/* Editorial refinements: selection, complete archive and a first project layout. */
.eyebrow { font-size: 11px; letter-spacing: .13em; }
.small-label { font-size: 12px; }
.desktop-nav { font-size: 13px; }
.nav-contact { font-size: 12px; }
.text-link { font-size: 14px; min-height: 44px; }
.hero-description { font-size: 15px; max-width: 390px; }
.hero-caption { font-size: 12px; }
.hero-side-label { font-size: 9px; }
.hero-bottom { font-size: 10px; letter-spacing: .09em; }
.section-intro { font-size: 14px; max-width: 330px; }
.card-meta { font-size: 11px; letter-spacing: .04em; }
.project-card h3 { font-size: 15px; }
.breadcrumb { font-size: 12px; flex-wrap: wrap; }
.project-data dt { font-size: 11px; letter-spacing: .08em; }
.project-data dd { font-size: 14px; }
.project-description { font-size: 15px; line-height: 1.85; }
.project-description p + p { margin-top: 20px; }
.project-source-note { font-size: 12px; }
.gallery-heading span { font-size: 12px; }
.image-enlarge { font-size: 12px; }
.filter-tab { font-size: 14px; min-height: 44px; }
.filter-tab sup { font-size: 10px; }
.search-field { max-width: 260px; }
.search-field input { font-size: 14px; padding-block: 13px; }
.results-count { font-size: 12px; }
.empty-state h2 { font: 38px/1.2 var(--serif); margin-bottom: 10px; }
.empty-state p, .empty-state button { font-size: 14px; }
.empty-state button { min-height: 44px; }

.home-selection { padding-block: 78px 76px; }
.home-selection .section-heading h2 { font-size: clamp(44px, 4.6vw, 66px); }
.selection-footer {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.selection-footer p { font-size: 13px; color: var(--muted); }
.selection-footer p > span:not([aria-hidden]) { color: var(--ink); }
.selection-footer p > span[aria-hidden] { margin-inline: 8px; }
.selection-footer .text-link { flex-shrink: 0; }
.home-page .profile-section { padding-block: 74px; }
.home-page .profile-title .section-title { font-size: clamp(48px, 4.5vw, 64px); }
.home-page .profile-title .section-title em { color: inherit; }
.home-page .teaching-teaser { padding-block: 64px; }
.home-page .teaching-teaser .eyebrow { margin-bottom: 8px; }
.teaching-section-name {
  display: block;
  margin-bottom: .45em;
  color: var(--accent);
  font: 600 clamp(1.1875rem, 1.8vw, 1.5rem)/1.3 var(--sans);
  letter-spacing: normal;
}
.home-page .teaching-teaser .section-title { font-size: clamp(46px, 4.5vw, 62px); }
.home-page .contact-title { font-size: clamp(60px, 6.6vw, 92px); }
.home-page .profile-fact span { font-size: 12px; }
.home-page .profile-copy > p,
.home-page .teaching-teaser p:not(.eyebrow) { font-size: 15px; line-height: 1.85; }

.project-catalog-page { padding-block: 46px 80px; }
.project-catalog-page > .breadcrumb { margin-bottom: 38px; }
.catalog-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 48px;
  padding-bottom: 38px;
}
.catalog-heading .eyebrow { color: var(--muted); margin-bottom: 17px; }
.catalog-heading h1 {
  font-family: var(--serif);
  font-size: clamp(52px, 6vw, 86px);
  letter-spacing: -.025em;
  line-height: 1.05;
}
.project-catalog .filter-row { flex-wrap: wrap; gap: 15px 30px; }
.project-catalog .filter-tabs { gap: 24px; }
.project-catalog .filter-row .search-field { flex: 1 1 220px; }

.project-feature .page-intro { padding-block: 42px 36px; }
.project-feature .project-title { font-size: clamp(48px, 5vw, 72px); max-width: 1130px; }
.project-feature .project-overview {
  grid-template-columns: minmax(0, 1.6fr) minmax(220px, .55fr);
  gap: 48px;
  padding-bottom: 48px;
}
.project-feature .project-info { border-top: 1px solid var(--line); }
.project-feature .project-data > div { grid-template-columns: 84px 1fr; }
.project-feature .project-info .text-link { margin-top: 6px; }
.project-reading {
  display: grid;
  grid-template-columns: .55fr 1.45fr;
  gap: 70px;
  border-top: 1px solid var(--line);
  padding-block: 38px 65px;
}
.project-reading > h2 { font: 38px/1.15 var(--serif); max-width: 260px; }
.project-reading > div { max-width: 760px; }
.project-feature .project-description { font-size: 16px; line-height: 1.85; }
.gallery-grid--feature { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.gallery-grid--feature > .gallery-item { grid-column: span 2; }
.gallery-grid--feature > .gallery-item:first-child { grid-column: span 4; grid-row: span 2; }
.project-feature .related-section .section-heading h2 { font-size: 46px; }

@media (max-width: 1100px) {
  .desktop-nav > a:not(.nav-contact) { font-size: 35px; }
  .project-feature .project-overview { gap: 30px; grid-template-columns: minmax(0, 1.6fr) minmax(190px, .6fr); }
  .project-reading { gap: 36px; }
}

@media (max-width: 800px) {
  .project-feature .project-overview { grid-template-columns: 1fr; gap: 28px; }
  .project-feature .project-data { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 24px; margin-bottom: 15px; }
  .project-feature .project-data > div { display: block; padding-block: 16px; }
  .project-feature .project-data dd { margin-top: 7px; }
  .project-reading { grid-template-columns: 1fr; gap: 23px; }
  .project-reading > h2 { max-width: none; }
  .gallery-grid--feature { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery-grid--feature > .gallery-item { grid-column: auto; grid-row: auto; }
  .gallery-grid--feature > .gallery-item:first-child,
  .gallery-grid--feature > .gallery-item:last-child { grid-column: 1 / -1; grid-row: auto; }
  .catalog-heading { display: block; }
  .catalog-heading .section-intro { margin-top: 24px; max-width: 500px; }
}

@media (max-width: 640px) {
  .eyebrow { font-size: 10px; letter-spacing: .1em; }
  .small-label { font-size: 11px; }
  .hero-description { font-size: 15px; }
  .hero-caption { font-size: 11px; }
  .hero-bottom { font-size: 9px; letter-spacing: .06em; }
  .hero-bottom .scroll-note { font-size: 9px; }
  .hero-side-label { font-size: 8px; }
  .discipline-index, .discipline-count { font-size: 10px; }
  .text-link, .hero .text-link { font-size: 13px; }
  .card-meta { font-size: 10px; flex-wrap: wrap; }
  .project-card h3, .related-section .project-card h3 { font-size: 14px; }
  .breadcrumb { font-size: 11px; line-height: 1.7; }
  .project-description { font-size: 15px; }
  .project-data dt { font-size: 10px; }
  .project-data dd { font-size: 13px; }
  .project-source-note { font-size: 11px; }
  .gallery-heading span { font-size: 11px; }
  .image-enlarge { font-size: 11px; }
  .home-selection { padding-block: 48px 52px; }
  .home-selection .section-heading h2 { font-size: 46px; }
  .home-selection .section-intro { font-size: 14px; }
  .selection-footer { margin-top: 30px; padding-top: 20px; flex-direction: column; align-items: start; gap: 13px; }
  .selection-footer p { font-size: 12px; }
  .home-page .profile-section { padding-block: 52px; }
  .home-page .profile-title .section-title { font-size: 52px; }
  .home-page .teaching-teaser { padding-block: 48px; }
  .home-page .teaching-teaser .section-title { font-size: 49px; }
  .home-page .profile-copy > p,
  .home-page .teaching-teaser p:not(.eyebrow) { font-size: 14px; }
  .home-page .profile-fact span { font-size: 11px; }
  .home-page .contact-title { font-size: 70px; }
  .project-catalog-page { padding-block: 30px 55px; }
  .project-catalog-page > .breadcrumb { margin-bottom: 28px; }
  .catalog-heading { padding-bottom: 28px; }
  .catalog-heading h1 { font-size: 53px; }
  .catalog-heading .section-intro { font-size: 14px; margin-top: 20px; }
  .project-catalog .filter-tabs { gap: 0 20px; justify-content: start; }
  .filter-tab { font-size: 13px; padding-block: 12px; }
  .filter-tab sup { font-size: 10px; margin-left: 4px; }
  .project-catalog .filter-row { gap: 12px; margin-bottom: 24px; }
  .project-catalog .filter-row .search-field { flex-basis: 100%; max-width: none; }
  .search-field input { font-size: 14px; }
  .results-count { font-size: 11px; }
  .project-feature .page-intro { padding-block: 28px 28px; }
  .project-feature .project-title { font-size: 46px; }
  .project-feature .project-overview { padding-bottom: 30px; gap: 24px; }
  .project-feature .project-data { column-gap: 14px; }
  .project-feature .project-data > div { padding-block: 12px; }
  .project-reading { padding-block: 28px 40px; gap: 20px; }
  .project-reading > h2 { font-size: 33px; }
  .project-feature .project-description { font-size: 15px; }
  .project-feature .related-section .section-heading h2 { font-size: 40px; }
}

@media (hover: none) {
  .gallery-item .image-enlarge { opacity: 1; padding: 10px; }
}

.footer-links { flex-wrap: wrap; row-gap: 8px; }
.image-rights { margin: 1.5rem 0; color: var(--muted); font-size: .875rem; line-height: 1.6; }
.image-rights summary { cursor: pointer; width: fit-content; color: var(--ink); }
.image-rights p { max-width: 68ch; margin-top: .6rem; }
.image-rights a { text-decoration: underline; text-underline-offset: .2em; }

/* Testata con marchio labirintico */
.site-header {
  --wide-art: url("./brand/intestazione-sat.svg?v=9745e5206e95");
  --portrait-art: url("./brand/labirinto-compatto-it.svg?v=1de4d45d7adb");
  --landscape-art: url("./brand/labirinto-orizzontale-it.svg?v=de926c333642");
  --header-paper: #f2f1eb;
  --header-ink: #28332e;
  --header-secondary: #74796f;
  background: var(--header-paper);
  color: var(--header-ink);
}
html[lang="en"] .site-header {
  --wide-art: url("./brand/intestazione-sat-en.svg?v=ffd128e2a664");
  --portrait-art: url("./brand/labirinto-compatto-en.svg?v=a44bb3a11cb9");
  --landscape-art: url("./brand/labirinto-orizzontale-en.svg?v=32cddbfb927a");
}
.site-header .header-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  grid-template-areas: "brand languages toggle";
  align-items: center;
  gap: clamp(12px, 2vw, 32px);
  height: auto;
  padding-block: clamp(12px, 1.6vw, 24px);
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}
.site-header .brand {
  grid-area: brand;
  min-width: 0;
  max-width: 100%;
  justify-self: start;
}
.site-header .brand::before {
  width: clamp(440px, 38.5vw, 615px);
  max-width: 100%;
  height: auto;
  aspect-ratio: 832 / 192;
  content: "";
  display: block;
  background: var(--wide-art) left center / contain no-repeat;
}
.site-header .brand > img.brand-lockup { display: none; }
.site-header .language-switcher, .site-header .menu-toggle {
  position: relative;
  top: clamp(3px, .53vw, 9px);
  margin: 0;
}
.site-header .language-switcher {
  grid-area: languages;
  gap: clamp(8px, 1vw, 16px);
  font-size: clamp(.875rem, 1.35vw, 1.125rem);
  line-height: 1.25;
}
.site-header .language-switcher > a {
  position: relative;
  display: inline-flex;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  color: var(--header-secondary);
  text-decoration: none;
}
.site-header .language-switcher > a[aria-current="true"] { color: var(--header-ink); }
.site-header .language-switcher > a[aria-current="true"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: calc(50% + 9px);
  height: 1px;
  background: currentColor;
}
.site-header .menu-toggle {
  grid-area: toggle;
  display: flex;
  align-items: flex-end;
  width: 44px;
  height: 44px;
  gap: 15px;
  padding: 0;
}
.site-header .menu-toggle span { width: 35px; height: 2px; background: currentColor; }
.site-header .menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(8.5px) rotate(45deg); }
.site-header .menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-8.5px) rotate(-45deg); }

.site-header .desktop-nav {
  display: none;
  position: absolute;
  inset: 100% 0 auto;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  margin: 0;
  max-height: calc(100vh - 100%);
  max-height: calc(100dvh - 100%);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 8px max(var(--gutter), calc((100vw - 1512px) / 2 + var(--gutter))) max(24px, env(safe-area-inset-bottom, 0px));
  border-bottom: 1px solid var(--line);
  background: var(--header-paper);
  box-shadow: 0 18px 28px #25312c0a;
}
.site-header .desktop-nav.is-open { display: flex; }
.site-header .desktop-nav > a { flex-shrink: 0; }
.site-header .desktop-nav > a:not(.nav-contact) {
  font: clamp(1.5rem, 2.5vw, 2.2rem)/1.2 var(--serif);
  padding-block: .4em;
  border-bottom: 1px solid var(--line);
  min-height: 44px;
}
.site-header .desktop-nav > a:not(.nav-contact)::after { display: none; }
.site-header .desktop-nav .nav-contact { align-self: start; min-height: 44px; margin-top: 16px; gap: 32px; }

@media (max-width: 38rem) {
  html { scroll-padding-top: 160px; }
  .site-header .brand { width: min(100%, 25rem); }
  .site-header .brand::before { width: 100%; aspect-ratio: 800 / 192; background-image: var(--portrait-art); }
  .site-header .header-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "brand brand" "languages toggle";
    gap: 0 14px;
    padding-block: 8px 1px;
  }
  .site-header .language-switcher { justify-self: end; }
  .site-header .language-switcher, .site-header .menu-toggle { top: 0; }
}
@media (orientation: landscape) and (max-height: 32rem) {
  .site-header .header-inner { padding-block: 4px; }
  .site-header .brand { width: min(100%, 25rem); }
  .site-header .brand::before { width: 100%; aspect-ratio: 832 / 192; background-image: var(--landscape-art); }
  .site-header .desktop-nav { padding-block-start: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .site-header .menu-toggle span { transition: none; }
}
