/* Correzioni conservative: il tema resta il proprietario dell'identità visiva. */
:root {
  --muted: #595853;
}

@media (min-width: 1181px) {
  .office-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .lab-project-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .lab-principles .principle-grid[data-card-count="4"] {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .people-grid[data-card-count="10"] {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .people-grid[data-card-count="10"] h2 {
    font-size: clamp(1.8rem, 2.3vw, 3.2rem);
  }

  .project-people-grid[data-card-count="1"] {
    grid-template-columns: minmax(0, 1fr);
  }

  .project-people-grid[data-card-count="2"] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project-people-grid[data-card-count="3"] {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .project-people-grid[data-card-count="4"] {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 641px) and (max-width: 1180px) {
  .lab-project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lab-principles .principle-grid[data-card-count="4"],
  .project-people-grid[data-card-count="4"] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project-people-grid[data-card-count="1"] {
    grid-template-columns: minmax(0, 1fr);
  }

  .project-people-grid[data-card-count="2"] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project-people-grid[data-card-count="3"] {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.project-principles .principle-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.section-dark .principle-grid p,
.path-list p,
.format-list p {
  color: rgba(255, 255, 255, 0.7);
}

.people-grid small {
  color: rgba(255, 255, 255, 0.58);
}

.people-grid article[data-person-url],
.project-people-grid article[data-person-url] {
  cursor: pointer;
  transition: background 180ms ease;
}

.people-grid article[data-person-url]:hover,
.people-grid article[data-person-url]:focus-visible {
  background: rgba(255, 255, 255, 0.055);
}

.project-people-grid article[data-person-url]:hover,
.project-people-grid article[data-person-url]:focus-visible {
  background: rgba(5, 5, 5, 0.035);
}

.people-grid article[data-person-url]:hover h2,
.people-grid article[data-person-url]:focus-visible h2,
.project-people-grid article[data-person-url]:hover h2,
.project-people-grid article[data-person-url]:focus-visible h2 {
  color: var(--red);
}

.single-post .entry-cover {
  display: none;
}

.single-post .content-shell {
  max-width: 960px;
}

.single-post .content-shell p a,
.single-post .content-shell li a,
.single-post .content-shell blockquote a,
.single-post .entry-content p a,
.single-post .entry-content li a,
.single-post .entry-content blockquote a {
  color: var(--red, #e51619);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: .1em;
  text-underline-offset: .18em;
}

.single-post .content-shell p a:hover,
.single-post .content-shell li a:hover,
.single-post .content-shell blockquote a:hover,
.single-post .entry-content p a:hover,
.single-post .entry-content li a:hover,
.single-post .entry-content blockquote a:hover {
  color: #9f0d0f;
}

.fukyo-article-gallery {
  margin: clamp(2.5rem, 6vw, 5rem) 0;
}

.fukyo-article-gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.fukyo-article-gallery figure {
  margin: 0;
}

.fukyo-article-gallery img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.fukyo-article-gallery figcaption {
  margin-top: .65rem;
  color: var(--muted);
  font-size: .78rem;
  line-height: 1.45;
}

.fukyo-original-source {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-top: clamp(2.5rem, 6vw, 5rem);
  padding: 1.4rem 0;
  border-top: 2px solid var(--black, #050505);
  border-bottom: 1px solid var(--line, #ccc);
}

.fukyo-original-source span {
  color: var(--muted);
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.fukyo-original-source a {
  color: var(--red, #e51619);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: .2em;
}

.fukyo-related-content {
  margin-top: clamp(3.5rem, 8vw, 7rem);
  padding-top: clamp(2rem, 4vw, 3.5rem);
  border-top: 2px solid var(--black, #050505);
}

.fukyo-related-content > header {
  display: grid;
  grid-template-columns: minmax(8rem, .28fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: start;
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

.fukyo-related-content > header > span {
  color: var(--red, #e51619);
  font-size: .68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .1em;
}

.fukyo-related-content h2 {
  max-width: 15ch;
  margin: 0;
  font-size: clamp(2.1rem, 4.6vw, 5rem);
  line-height: .96;
  letter-spacing: -.05em;
}

.fukyo-related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line, rgba(5, 5, 5, .18));
  border-left: 1px solid var(--line, rgba(5, 5, 5, .18));
}

.fukyo-related-grid > a {
  display: flex;
  min-width: 0;
  min-height: 21rem;
  flex-direction: column;
  padding: clamp(1rem, 2.1vw, 1.6rem);
  border-right: 1px solid var(--line, rgba(5, 5, 5, .18));
  border-bottom: 1px solid var(--line, rgba(5, 5, 5, .18));
  background: var(--paper-dark, #e7e2d8);
  color: var(--black, #050505);
  text-decoration: none;
  transition: background 160ms ease, color 160ms ease;
}

.fukyo-related-grid > a:hover,
.fukyo-related-grid > a:focus-visible {
  background: var(--black, #050505);
  color: #fff;
}

.fukyo-related-grid > a > span {
  color: var(--red, #e51619);
  font-size: .65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.fukyo-related-grid h3 {
  margin: 2.2rem 0 .85rem;
  font-size: clamp(1.3rem, 2vw, 2rem);
  line-height: 1.05;
  letter-spacing: -.035em;
}

.fukyo-related-grid p {
  margin: 0;
  color: var(--muted, #595853);
  font-size: .82rem;
  line-height: 1.55;
}

.fukyo-related-grid > a:hover p,
.fukyo-related-grid > a:focus-visible p { color: rgba(255,255,255,.68); }

.fukyo-related-grid strong {
  margin-top: auto;
  padding-top: 1.5rem;
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.fukyo-related-all {
  display: inline-block;
  margin-top: 1.5rem;
  padding-bottom: .2rem;
  border-bottom: 2px solid var(--red, #e51619);
  font-size: .78rem;
  font-weight: 800;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.fukyo-article-byline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .4rem 1rem;
  margin: 0 0 1.5rem;
  padding: .75rem 0;
  border-top: 1px solid rgba(17, 17, 17, .18);
  border-bottom: 1px solid rgba(17, 17, 17, .18);
  color: rgba(17, 17, 17, .72);
  font-size: .82rem;
  line-height: 1.4;
}

.fukyo-article-byline span {
  color: #111;
  font-weight: 700;
}

.fukyo-video-lead {
  width: 100%;
  margin: 0 0 clamp(2rem, 4vw, 4rem);
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #050505;
}

.fukyo-video-lead > *,
.fukyo-video-lead iframe,
.fukyo-video-lead .wp-block-embed__wrapper {
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
}

.fukyo-video-lead figure {
  max-width: none !important;
}

.person-detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(23rem, .42fr);
  min-height: calc(100svh - 5.2rem);
  overflow: hidden;
  background: var(--black);
  color: var(--white);
}

.person-detail-title {
  position: relative;
  display: flex;
  min-height: 43rem;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  padding: clamp(5rem, 8vw, 9rem) var(--pad);
}

.person-detail-title > a {
  position: absolute;
  top: 2.2rem;
  border-bottom: 1px solid rgba(255,255,255,.45);
  color: rgba(255,255,255,.72);
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .09em;
}

.person-detail-title h1 {
  max-width: 10ch;
  margin: 0;
  font-size: clamp(4.4rem, 8vw, 10rem);
  line-height: .88;
  letter-spacing: -.065em;
}

.person-name-row {
  display: grid;
  width: 100%;
  grid-template-columns: minmax(0, 1fr) clamp(8rem, 12vw, 13rem);
  gap: clamp(1.5rem, 3vw, 3.5rem);
  align-items: end;
}

.person-portrait {
  width: 100%;
  margin: 0 0 .55rem;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border: 3px solid var(--red);
  background: #050505;
  box-shadow: 0 0 0 .45rem #050505, 0 0 0 calc(.45rem + 1px) rgba(255,255,255,.82);
}

.person-portrait img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.person-detail-title > p:last-child {
  max-width: 42rem;
  margin: 2rem 0 0;
  color: rgba(255,255,255,.72);
  font-size: clamp(1rem, 1.45vw, 1.4rem);
}

.person-detail-title > p:not(.eyebrow) {
  max-width: 42rem;
  margin: 2rem 0 0;
  color: rgba(255,255,255,.72);
  font-size: clamp(1rem, 1.45vw, 1.4rem);
}

.person-hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  margin-top: 1.5rem;
}

.person-hero-links a {
  padding: .65rem .8rem;
  border: 1px solid rgba(255,255,255,.34);
  color: var(--white);
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
}

.person-detail-mark {
  position: relative;
  min-height: 43rem;
  overflow: hidden;
  padding: 1.5rem;
  border-left: 1px solid var(--line-light);
  background: var(--red);
  background-position: center;
  background-size: cover;
}

.person-detail-mark span {
  position: relative;
  z-index: 1;
  font-size: .67rem;
  font-weight: 700;
  letter-spacing: .12em;
}

.person-detail-mark strong {
  position: absolute;
  right: -.08em;
  bottom: -.16em;
  font-size: clamp(12rem, 25vw, 30rem);
  line-height: .75;
  letter-spacing: -.1em;
}

.project-body {
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(24rem, .62fr);
  gap: clamp(3rem, 7vw, 8rem);
  align-items: start;
}

.project-story-readable {
  display: grid;
  grid-template-columns: minmax(5rem, .2fr) minmax(0, 1fr);
  gap: clamp(2rem, 4vw, 5rem);
}

.project-story-readable .section-index { margin: 0; }
.project-story-readable-copy { max-width: 46rem; border-top: 1px solid var(--line); }
.project-story-readable-copy p { margin: 0; padding: 1.35rem 0; border-bottom: 1px solid var(--line); color: var(--muted); font-size: clamp(1rem, 1.2vw, 1.14rem); line-height: 1.72; }
.project-story-readable-copy .project-lead { color: var(--black); font-size: clamp(1.15rem, 1.5vw, 1.45rem); font-weight: 650; }
.project-media-column { position: sticky; top: 6.5rem; display: grid; gap: 1.25rem; }
.project-media-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
.project-media-item { min-width: 0; margin: 0; overflow: hidden; background: var(--black); }
.project-media-item img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.project-media-item iframe { display: block; width: 100% !important; height: 100% !important; aspect-ratio: 16 / 9; }
.project-media-video { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
.project-media-item figcaption { padding: .6rem; background: var(--paper-dark); color: var(--muted); font-size: .72rem; }
.project-highlight-stack { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.project-highlight-stack > div { display: grid; min-height: 10rem; align-content: space-between; gap: 2rem; padding: 1rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper-dark); }
.project-highlight-stack span { color: var(--red); font-size: .63rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.project-highlight-stack strong { font-size: .95rem; line-height: 1.35; }
.project-highlight-stack > .project-highlight-video { min-height: 0; align-content: start; gap: .75rem; padding: 0; }
.project-highlight-video > span { padding: 1rem 1rem 0; }
.project-highlight-embed { width: 100%; aspect-ratio: 16 / 9; overflow: hidden; background: var(--black); }
.project-highlight-embed iframe { display: block; width: 100% !important; height: 100% !important; aspect-ratio: 16 / 9; border: 0; }
.fsm-video-consent {
  display: grid;
  width: 100%;
  min-height: 13rem;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--black);
  color: #fff;
}
.fsm-video-consent-copy {
  display: grid;
  align-content: center;
  gap: .7rem;
  padding: clamp(1rem, 3vw, 2rem);
}
.fsm-video-consent-copy > span {
  color: var(--red);
  font-size: .65rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.fsm-video-consent-copy > strong { font-size: clamp(1rem, 2vw, 1.35rem); line-height: 1.15; }
.fsm-video-consent-copy > p { max-width: 34rem; margin: 0; color: rgba(255,255,255,.72); font-size: .8rem; line-height: 1.5; }
.fsm-video-consent-copy > div { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem; }
.fsm-video-consent-button {
  appearance: none;
  padding: .72rem 1rem;
  border: 1px solid var(--red);
  background: var(--red);
  color: #fff;
  font: inherit;
  font-size: .75rem;
  font-weight: 800;
  cursor: pointer;
}
.fsm-video-consent-button:hover,
.fsm-video-consent-button:focus-visible { background: #fff; color: var(--black); }
.fsm-video-consent-copy a { color: #fff; font-size: .72rem; text-underline-offset: .2em; }
.fsm-video-consent.is-loaded { min-height: 0; }
.fsm-video-consent iframe { display: block; width: 100% !important; height: 100% !important; aspect-ratio: 16 / 9; border: 0; }
.project-highlight-embed .fsm-video-consent { min-height: 0; }
.project-highlight-embed .fsm-video-consent-copy { gap: .45rem; padding: .8rem; }
.project-highlight-embed .fsm-video-consent-copy > strong { font-size: .86rem; }
.project-highlight-embed .fsm-video-consent-copy > p { display: none; }
.project-highlight-embed .fsm-video-consent-button { padding: .55rem .7rem; font-size: .65rem; }
.project-highlight-stack a { align-self: end; color: inherit; overflow-wrap: anywhere; text-decoration: underline; text-underline-offset: .18em; }
.project-person-link { display: block; min-height: 17rem; color: inherit; text-decoration: none; }

.people-grid article { position: relative; }
.person-card-overlay { position: absolute; z-index: 2; inset: 0; }
.people-grid article:has(.person-card-overlay):hover { background: rgba(255,255,255,.035); }
.people-grid article:has(.person-card-overlay):focus-within { outline: 2px solid var(--red); outline-offset: -2px; }

.person-profile-sidebar { position: sticky; top: 6.5rem; }

.person-competencies {
  display: grid;
  gap: 1.5rem;
  margin: 0;
  padding: 1.25rem;
  border: 1px solid var(--line);
  background: var(--paper-dark);
}

.person-competencies p,
.person-competencies ul { margin: 0; }
.person-competencies p { color: var(--muted); font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; }
.person-competencies ul { display: flex; flex-wrap: wrap; gap: .6rem; padding: 0; list-style: none; }
.person-competencies li { padding: .65rem .8rem; border: 1px solid var(--line); font-size: .78rem; font-weight: 700; }

.person-projects {
  display: grid;
  grid-template-columns: minmax(0, .65fr) minmax(24rem, 1fr);
  gap: clamp(4rem, 9vw, 10rem);
}

.fukyo-legal-page .content-shell { max-width: 78rem; }
.fukyo-legal-page .entry-content { max-width: 52rem; }
.fukyo-legal-page .entry-content > h2 { margin: 3.25rem 0 1rem; font-size: clamp(1.45rem, 2.5vw, 2.2rem); line-height: 1.05; }
.fukyo-legal-page .entry-content > h2:first-child { margin-top: 0; }
.fukyo-legal-page .entry-content > h3 { margin: 2rem 0 .75rem; font-size: 1.1rem; }
.fukyo-legal-page .entry-content p,
.fukyo-legal-page .entry-content li { color: var(--muted); font-size: clamp(.96rem, 1.2vw, 1.08rem); line-height: 1.72; }
.fukyo-legal-page .entry-content ul { display: grid; gap: .55rem; padding-left: 1.25rem; }
.fukyo-legal-page .entry-content a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
.fukyo-legal-page .entry-content .legal-updated { padding: 1rem; border-left: 3px solid var(--red); background: var(--paper-dark); color: var(--black); font-weight: 700; }

.person-projects h2 { max-width: 10ch; margin: 0; font-size: clamp(3rem, 5.3vw, 6.5rem); line-height: .94; letter-spacing: -.055em; }
.person-project-list { border-top: 1px solid var(--line-light); }
.person-project-list a { display: grid; grid-template-columns: 3rem 1fr auto 2rem; align-items: center; gap: 1rem; padding: 1.5rem 0; border-bottom: 1px solid var(--line-light); }
.person-project-list span, .person-project-list small { color: rgba(255,255,255,.55); font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; }
.person-project-list strong { font-size: clamp(1.4rem, 2.3vw, 2.8rem); line-height: 1; }
.person-projects-fallback { color: rgba(255,255,255,.75); font-size: clamp(1.4rem, 2.3vw, 2.5rem); }
.person-links > div { display: flex; flex-wrap: wrap; gap: 1rem; }
.person-links a { padding: .85rem 1rem; border: 1px solid var(--line); font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }

@media (max-width: 900px) {
  .site-header .main-nav {
    align-items: stretch;
    max-height: calc(100svh - 4.6rem);
    overflow-y: auto;
  }
  .site-header .main-nav .fukyo-menu {
    display: flex;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
  }
  .site-header .main-nav .fukyo-menu > li { width: 100%; }
  .site-header .main-nav .fukyo-menu > li > a { display: block; width: 100%; }
  .person-detail-hero, .person-profile, .person-projects, .project-body { grid-template-columns: 1fr; }
  .person-detail-mark { min-height: 12rem; border-top: 1px solid var(--line-light); border-left: 0; }
  .person-detail-mark strong { right: 1rem; bottom: 0; font-size: 11rem; }
  .person-name-row { grid-template-columns: minmax(0, 1fr) clamp(7rem, 19vw, 10rem); }
  .project-media-column { position: static; }
  .person-profile-sidebar { position: static; }
}

@media (max-width: 640px) {
  .fukyo-related-content > header { grid-template-columns: 1fr; gap: .75rem; }
  .fukyo-related-grid { grid-template-columns: 1fr; }
  .fukyo-related-grid > a { min-height: 17rem; }
  .fukyo-article-gallery-grid { grid-template-columns: 1fr; }
  .fukyo-original-source { align-items: flex-start; flex-direction: column; }
  .project-principles .principle-grid { grid-template-columns: 1fr; }
  .person-detail-title { min-height: 39rem; }
  .person-detail-title h1 { font-size: clamp(3.7rem, 18vw, 6rem); }
  .person-name-row { grid-template-columns: 1fr; gap: 1.25rem; }
  .person-portrait { width: 7.5rem; margin: 0 .55rem .35rem; }
  .person-competencies { grid-template-columns: 1fr; }
  .person-project-list a { grid-template-columns: 2rem 1fr 1.5rem; }
  .person-project-list small { display: none; }
  .project-story-readable { grid-template-columns: 1fr; }
  .project-media-grid, .project-highlight-stack { grid-template-columns: 1fr; }
  .project-media-video { grid-column: auto; }
}
