/**
 * Collezione Silvestri: lo stile del documento a parte. Era un <style> in
 * linea di circa 25 KB in template-collezione-silvestri.php (audit B10),
 * spostato qui cosi' com'era.
 */
  /* Admin bar offset */
  .admin-bar .nav { top: 32px !important; }
  @media screen and (max-width: 782px) {
    .admin-bar .nav { top: 46px !important; }
  }

  :root {
    --rosso: #C8102E;
    --nero: #1a1a1a;
    --bianco: #faf9f6;
    --avorio: #f0ece3;
    --grigio-caldo: #8a8278;
    --grigio-testo: #6b645a; /* il grigio caldo sul chiaro fa 3,6:1; questo 5,5:1 */
    --oro-testo: #7d6232; /* l'oro sul chiaro fa 2,6:1; questo 5,4:1 */
    --oro: #b8975a;
    --serif: 'Cormorant Garamond', Georgia, serif;
    --sans: 'Jost', sans-serif;
  }

  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
  /* Le sezioni hanno gia' il loro margine sotto l'header: lo spazio in alto
     di style.css (scroll-padding-top) sposterebbe le ancore. Il basso resta,
     per il pulsante di OneTap (2026-09-28). */
  html { scroll-behavior: smooth; scroll-padding-top: 0; }
  body {
    background: #faf9f6;
    color: #1a1a1a;
    font-family: var(--sans);
    font-weight: 300;
    overflow-x: hidden;
  }

  /* ─── NAVIGATION ─── */
  .nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 3rem;
    transition: background 0.4s, box-shadow 0.4s;
    /* Sopra il dipinto: su certe larghezze il menu cadeva su una parte chiara. */
    background: rgba(10,8,6,0.7);
  }
  .nav-principale {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
  }
  .nav.scrolled {
    background: rgba(250,249,246,0.96);
    box-shadow: 0 1px 0 rgba(0,0,0,0.08);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
  }
  .nav-logo {
    font-family: var(--serif);
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #faf9f6;
    text-decoration: none;
    transition: color 0.4s;
  }
  .nav.scrolled .nav-logo { color: #1a1a1a; }
  .nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
  }
  .nav-links a {
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: color 0.3s;
  }
  .nav.scrolled .nav-links a { color: #6b645a; }
  .nav-links a:hover { color: #C8102E !important; }

  /* ─── HERO ─── */
  .hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    background: #1a1a1a;
  }
  .hero-bg {
    position: absolute;
    inset: 0;
    transform: scale(1.05);
    animation: heroZoom 5s ease-out forwards; /* entro 5 s (WCAG 2.2.2) */
  }
  @keyframes heroZoom {
    from { transform: scale(1.05); }
    to   { transform: scale(1.0); }
  }
  .hero::before {
    content: '';
    position: absolute;
    left: 3rem;
    top: 25%;
    bottom: 8rem;
    width: 1px;
    background: linear-gradient(to bottom, transparent, #b8975a 30%, #b8975a 70%, transparent);
    opacity: 0.5;
  }
  .hero-content {
    position: relative;
    z-index: 2;
    padding: 0 3rem 6rem;
    max-width: 860px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1.2s 0.6s ease forwards;
  }
  @keyframes fadeUp {
    to { opacity: 1; transform: translateY(0); }
  }
  .hero-eyebrow {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.75rem;
  }
  .hero-eyebrow span {
    font-size: 0.7rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #b8975a;
    font-weight: 400;
  }
  .hero-eyebrow::before {
    content: '';
    display: block;
    width: 40px;
    height: 1px;
    background: #b8975a;
    flex-shrink: 0;
  }
  .hero h1 {
    font-family: var(--serif);
    font-size: clamp(2.8rem, 5.5vw, 5.5rem);
    font-weight: 300;
    line-height: 1.05;
    color: #fff;
    margin-bottom: 0.4rem;
  }
  .hero h1 em { font-style: italic; color: #f0ece3; }
  .hero-subtitle {
    font-family: var(--serif);
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    font-weight: 300;
    color: rgba(255,255,255,0.65);
    margin-bottom: 2.5rem;
    letter-spacing: 0.02em;
  }
  .hero-meta { display: flex; gap: 3rem; flex-wrap: wrap; }
  .hero-meta-item { border-left: 1px solid #b8975a; padding-left: 1rem; }
  .hero-meta-item .label {
    font-size: 0.65rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #b8975a;
    margin-bottom: 0.3rem;
  }
  .hero-meta-item .value {
    font-family: var(--serif);
    font-size: 1rem;
    color: rgba(255,255,255,0.85);
    font-weight: 300;
  }
  .hero-scroll {
    position: absolute;
    bottom: 2.5rem;
    right: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    z-index: 2;
  }
  .hero-scroll span {
    font-size: 0.62rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.5);
    writing-mode: vertical-rl;
  }
  .scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.5), transparent);
    animation: scrollPulse 2s ease-in-out 2 forwards; /* si ferma entro 5 s (WCAG 2.2.2) */
  }
  @keyframes scrollPulse {
    0%, 100% { opacity: 0.4; transform: scaleY(1); }
    50%       { opacity: 1;   transform: scaleY(0.7); }
  }

  /* ─── SECTION STRUCTURE ─── */
  .section { padding: 7rem 3rem; }
  .section-inner { max-width: 1200px; margin: 0 auto; }

  /* ─── INTRO BAND ─── */
  .intro-band { background: #1a1a1a; padding: 5rem 3rem; }
  .intro-band .section-inner {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 5rem;
    align-items: center;
  }
  .intro-left {
    border-right: 1px solid rgba(184,151,90,0.3);
    padding-right: 5rem;
  }
  .intro-left .numero {
    font-family: var(--serif);
    font-size: 5rem;
    line-height: 1;
    color: #b8975a;
    /* 0.3 dava 1,7:1 sul nero, e il numero e' un dato, non un ornamento
       (audit, «Aperti dopo i fix»): 0.65 da' 3,4:1, sopra il 3:1 del testo grande
       (WCAG 1.4.3, 2026-09-28). */
    opacity: 0.65;
    font-weight: 300;
    display: block;
    margin-bottom: 0.5rem;
  }
  .intro-left .label {
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #8a8278;
    margin-bottom: 2rem;
    display: block;
  }
  .intro-stat {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }
  .intro-stat:last-child { border-bottom: none; }
  .intro-stat-value {
    font-family: var(--serif);
    font-size: 2rem;
    color: #fff;
    font-weight: 300;
    display: block;
    margin-bottom: 0.2rem;
  }
  .intro-stat-label {
    font-size: 0.7rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #8a8278;
  }
  .intro-right h2 {
    font-family: var(--serif);
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    font-weight: 300;
    color: #fff;
    line-height: 1.25;
    margin-bottom: 1.5rem;
  }
  .intro-right p {
    font-size: 1rem;
    line-height: 1.85;
    color: rgba(255,255,255,0.62);
    margin-bottom: 1.2rem;
  }

  /* ─── SECTION TITLE BLOCK ─── */
  .section-title-block {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    margin-bottom: 4rem;
  }
  .section-number {
    font-family: var(--serif);
    font-size: 4rem;
    font-weight: 300;
    color: #f0ece3;
    line-height: 1;
    flex-shrink: 0;
    margin-top: -0.5rem;
  }
  .hero { background-color: #0a0806; }

  /* Numero decorativo: sta nel CSS, non e' testo della pagina. */
  .section-number::before,
  .method-number::before,
  .mostra-visual-text .anno::before { content: attr(data-numero); }
  .section-eyebrow {
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #C8102E;
    margin-bottom: 0.6rem;
    display: block;
  }
  .section-title-text h2 {
    font-family: var(--serif);
    font-size: clamp(1.6rem, 2.8vw, 2.4rem);
    font-weight: 400;
    line-height: 1.2;
    color: #1a1a1a;
  }
  .section-title-text h2 em { font-style: italic; color: #C8102E; }

  /* ─── TESTO ARTICOLATO ─── */
  .prose p {
    font-size: 1.05rem;
    line-height: 1.9;
    color: #3d3a36;
    margin-bottom: 1.4rem;
    font-family: var(--sans);
    font-weight: 300;
  }
  .prose strong { font-weight: 500; color: #1a1a1a; }
  .prose em { font-style: italic; font-family: var(--serif); font-size: 1.1em; }
  .prose .pull-quote {
    font-family: var(--serif);
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    font-weight: 300;
    font-style: italic;
    color: #1a1a1a;
    line-height: 1.45;
    border-left: 3px solid #C8102E;
    padding: 1rem 0 1rem 2rem;
    margin: 3rem 0;
  }

  /* ─── CONTENT WITH FLOATED IMAGE ─── */
  .content-image-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: start;
    margin-bottom: 5rem;
  }
  .content-image-row.reverse { direction: rtl; }
  .content-image-row.reverse > * { direction: ltr; }
  .content-img-wrap { position: relative; }
  .content-img-wrap img {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    display: block;
  }
  .content-img-wrap .img-caption {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: rgba(10,8,6,0.78); /* fondo pieno: sul dipinto chiaro la sfumatura scendeva a 2,4:1 */
    padding: 2rem 1.25rem 1.25rem;
    color: rgba(255,255,255,0.85);
    font-size: 0.75rem;
    font-style: italic;
    font-family: var(--serif);
    line-height: 1.5;
  }
  .content-img-wrap .img-caption strong {
    display: block;
    font-weight: 400;
    font-size: 0.85rem;
    margin-bottom: 0.15rem;
    color: #fff;
  }

  /* ─── ARTIST GRID ─── */
  .artists-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1px;
    background: #f0ece3;
    border: 1px solid #f0ece3;
    margin: 3rem 0;
  }
  .artist-item {
    background: #faf9f6;
    padding: 1.75rem 2rem;
    transition: background 0.25s;
    cursor: default;
  }
  .artist-item:hover { background: #fff; }
  .artist-work {
    font-family: var(--serif);
    font-size: 1rem;
    font-style: italic;
    color: #1a1a1a;
    margin-bottom: 0.35rem;
    line-height: 1.35;
  }
  .artist-name {
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #6b645a;
  }
  .artist-tag {
    display: inline-block;
    font-size: 0.62rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #C8102E;
    border: 1px solid rgba(200,16,46,0.3);
    padding: 0.2rem 0.5rem;
    margin-top: 0.5rem;
    font-weight: 400;
  }
  .artist-item.has-image {
    cursor: pointer;
  }
  .artist-item.has-image:hover {
    background: #fff;
    box-shadow: 0 2px 16px rgba(0,0,0,0.07);
  }
  .artist-img-hint {
    font-size: 0.6rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #7d6232;
    margin-top: 0.6rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
  }
  .artist-img-hint::before {
    content: '';
    display: inline-block;
    width: 12px;
    height: 12px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b8975a' stroke-width='1.5'%3E%3Crect x='3' y='3' width='18' height='18' rx='1'/%3E%3Ccircle cx='8.5' cy='8.5' r='1.5'/%3E%3Cpath d='m21 15-5-5L5 21'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    flex-shrink: 0;
  }
  /* Counter immagini nel lightbox attribution */
  .lightbox-counter {
    position: absolute;
    top: -2.5rem;
    left: 0;
    font-size: 0.65rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.4);
  }

  /* ─── TIMELINE ─── */
  .timeline {
    position: relative;
    padding-left: 3rem;
    margin: 3rem 0;
  }
  .timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5rem;
    bottom: 0;
    width: 1px;
    background: linear-gradient(to bottom, #C8102E, #f0ece3);
  }
  .timeline-item { position: relative; margin-bottom: 3rem; }
  .timeline-item::before {
    content: '';
    position: absolute;
    left: -3rem;
    top: 0.35rem;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #C8102E;
    transform: translateX(-3px);
  }
  .timeline-year {
    font-family: var(--serif);
    font-size: 1.4rem;
    font-weight: 300;
    color: #C8102E;
    margin-bottom: 0.4rem;
  }
  .timeline-text { font-size: 1rem; line-height: 1.75; color: #3d3a36; }

  /* ─── METHODOLOGY BOX ─── */
  .method-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
    background: #f0ece3;
    margin: 3rem 0;
  }
  .method-item { background: #faf9f6; padding: 2.5rem 2rem; }
  .method-number {
    font-family: var(--serif);
    font-size: 2.5rem;
    font-weight: 300;
    color: #f0ece3;
    line-height: 1;
    margin-bottom: 1rem;
  }
  .method-title {
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #1a1a1a;
    margin-bottom: 0.75rem;
    font-weight: 500;
  }
  .method-text { font-size: 0.9rem; line-height: 1.75; color: #6b645a; }

  /* ─── GALLERY ─── */
  .gallery-section {
    background: #1a1a1a;
    padding: 7rem 3rem;
    overflow: hidden;
  }
  .gallery-section .section-eyebrow { color: #b8975a; }
  .gallery-section .section-title-text h2 { color: #fff; }
  /* Il rosso del sito sul fondo scuro fa 3:1 appena: qui un tono piu' chiaro. */
  .gallery-section .section-title-text h2 em { color: #e8405a; }
  .gallery-section .section-number { color: rgba(255,255,255,0.07); }
  .gallery-intro {
    max-width: 600px;
    font-size: 1rem;
    line-height: 1.8;
    color: rgba(255,255,255,0.5);
    margin-bottom: 4rem;
  }
  .gallery-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: repeat(6, 160px);
    gap: 6px;
  }
  .g-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    background: #111;
  }
  .g-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.4s;
    opacity: 0.82;
  }
  .g-item:hover img { transform: scale(1.06); opacity: 1; }
  .g-item-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.4s;
    display: flex;
    align-items: flex-end;
    padding: 1.25rem;
  }
  .g-item:hover .g-item-overlay { opacity: 1; }
  .g-item-title {
    font-family: var(--serif);
    font-size: 0.95rem;
    font-style: italic;
    color: #fff;
    line-height: 1.3;
    margin-bottom: 0.2rem;
  }
  .g-item-author {
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #b8975a;
  }
  .g-item:nth-child(1)  { grid-column: 1/5;  grid-row: 1/3; }
  .g-item:nth-child(2)  { grid-column: 5/9;  grid-row: 1/2; }
  .g-item:nth-child(3)  { grid-column: 9/13; grid-row: 1/3; }
  .g-item:nth-child(4)  { grid-column: 5/7;  grid-row: 2/4; }
  .g-item:nth-child(5)  { grid-column: 7/9;  grid-row: 2/4; }
  .g-item:nth-child(6)  { grid-column: 1/5;  grid-row: 3/5; }
  .g-item:nth-child(7)  { grid-column: 9/13; grid-row: 3/5; }
  .g-item:nth-child(8)  { grid-column: 5/9;  grid-row: 4/6; }
  .g-item:nth-child(9)  { grid-column: 1/4;  grid-row: 5/7; }
  .g-item:nth-child(10) { grid-column: 4/6;  grid-row: 5/7; }
  .g-item:nth-child(11) { grid-column: 9/13; grid-row: 5/7; }
  .g-item:nth-child(12) { grid-column: 6/9;  grid-row: 6/7; }
  .g-item:nth-child(13) { grid-column: 5/6;  grid-row: 6/7; }

  /* ─── LIGHTBOX ─── */
  .lightbox {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(8,7,6,0.96);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s;
  }
  .lightbox.open { opacity: 1; pointer-events: all; }
  .lightbox-inner { max-width: 90vw; max-height: 90vh; position: relative; }
  .lightbox-inner img { max-width: 85vw; max-height: 80vh; object-fit: contain; display: block; }
  .lightbox-caption { margin-top: 1rem; text-align: center; }
  .lightbox-caption .title {
    font-family: var(--serif);
    font-size: 1.1rem;
    font-style: italic;
    color: #fff;
  }
  .lightbox-caption .author {
    font-size: 0.7rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #b8975a;
    margin-top: 0.3rem;
  }
  .lightbox-close {
    position: absolute;
    top: -2.5rem; right: 0;
    background: #080706; border: none;
    color: rgba(255,255,255,0.5);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.2s;
    line-height: 1;
    padding: 0.25rem;
  }
  .lightbox-close:hover { color: #fff; }
  .lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #080706;
    border: 1px solid rgba(255,255,255,0.2);
    color: rgba(255,255,255,0.6);
    width: 2.5rem; height: 2.5rem;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.9rem;
  }
  .lightbox-nav:hover { background: rgba(255,255,255,0.1); color: #fff; }
  .lightbox-nav.prev { left: -3.5rem; }
  .lightbox-nav.next { right: -3.5rem; }

  /* ─── MOSTRA SECTION ─── */
  .mostra-section { background: #f0ece3; padding: 7rem 3rem; }
  .mostra-card {
    background: #faf9f6;
    display: grid;
    grid-template-columns: 1fr 1fr;
    border: 1px solid rgba(0,0,0,0.06);
  }
  .mostra-content { padding: 4rem; }
  .mostra-visual {
    background: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem;
    position: relative;
    overflow: hidden;
  }
  .mostra-visual-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.15;
  }
  .mostra-visual-text { position: relative; z-index: 1; text-align: center; }
  .mostra-visual-text .anno {
    font-family: var(--serif);
    font-size: 5rem;
    font-weight: 300;
    color: rgba(255,255,255,0.15);
    line-height: 1;
    display: block;
  }
  .mostra-visual-text .titolo-mostra {
    font-family: var(--serif);
    font-size: 1.6rem;
    font-weight: 300;
    font-style: italic;
    color: #fff;
    line-height: 1.3;
  }
  .mostra-visual-text .date {
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #b8975a;
    margin-top: 1rem;
  }

  /* ─── RICERCATORI ─── */
  .ricercatori-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
    background: #f0ece3;
    margin: 3rem 0;
  }
  .ricercatore-card { background: #faf9f6; padding: 2.5rem; }
  .ricercatore-role {
    font-size: 0.62rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #C8102E;
    margin-bottom: 0.5rem;
  }
  .ricercatore-name {
    font-family: var(--serif);
    font-size: 1.3rem;
    font-weight: 400;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
    line-height: 1.25;
  }
  .ricercatore-desc { font-size: 0.85rem; line-height: 1.7; color: #6b645a; }

  /* ─── SEPARATORE DECORATIVO ─── */
  .divider-ornament {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem 0;
    max-width: 1200px;
    margin: 0 auto;
  }
  .divider-ornament::before,
  .divider-ornament::after { content: ''; flex: 1; height: 1px; background: #f0ece3; }
  .divider-ornament-symbol {
    width: 6px; height: 6px;
    background: #C8102E;
    transform: rotate(45deg);
    flex-shrink: 0;
  }

  /* ─── STICKY SIDE INDEX ─── */
  .page-index {
    position: fixed;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 50;
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }
  .page-index-dot {
    display: flex; align-items: center; gap: 0.75rem;
    cursor: pointer; justify-content: flex-end; text-decoration: none;
  }
  .page-index-label {
    font-size: 0.6rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    /* Passa sopra sezioni chiare e scure: il fondo la tiene leggibile. */
    color: #fff;
    background: rgba(0, 0, 0, 0.8);
    padding: 2px 6px;
    opacity: 0;
    transform: translateX(6px);
    transition: opacity 0.2s, transform 0.2s;
    white-space: nowrap;
  }
  .page-index-dot:hover .page-index-label,
  .page-index-dot:focus-visible .page-index-label { opacity: 1; transform: translateX(0); }
  /* Esc nasconde l'etichetta comparsa al passaggio del mouse (WCAG 1.4.13). */
  .page-index.senza-etichette .page-index-label { opacity: 0; }
  .page-index-pip {
    width: 6px; height: 6px;
    border-radius: 50%;
    border: 1px solid #8a8278;
    background: transparent;
    transition: background 0.2s, border-color 0.2s;
    flex-shrink: 0;
  }
  .page-index-dot.active .page-index-pip { background: #C8102E; border-color: #C8102E; }

  /* ─── SCROLL ANIMATIONS ─── */
  .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s ease, transform 0.8s ease; }
  .reveal.visible { opacity: 1; transform: translateY(0); }
  .reveal-delay-1 { transition-delay: 0.1s; }
  .reveal-delay-2 { transition-delay: 0.2s; }
  .reveal-delay-3 { transition-delay: 0.3s; }

  /* ─── FOOTER ─── */
  .page-footer { background: #1a1a1a; padding: 4rem 3rem; text-align: center; }
  .page-footer p {
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    color: rgba(255,255,255,0.5); /* 0.3 dava 2,72:1 sul nero (audit, M12) */
    text-transform: uppercase;
  }
  .page-footer a { color: #b8975a; text-decoration: underline; transition: opacity 0.2s; }
  .page-footer a:hover { opacity: 0.7; }

  /* ─── RESPONSIVE — TABLET ─── */
  @media (max-width: 1024px) {
    .page-index { display: none; }
    .intro-band .section-inner { grid-template-columns: 1fr 1.6fr; gap: 3rem; }
    .intro-left { padding-right: 3rem; }
    .content-image-row { gap: 3rem; }
    .method-grid { grid-template-columns: 1fr 1fr; }
    .method-item:last-child { grid-column: 1 / -1; }
    .gallery-grid {
      grid-template-columns: repeat(8, 1fr);
      grid-template-rows: repeat(7, 140px);
    }
    .g-item:nth-child(1)  { grid-column: 1/4;  grid-row: 1/3; }
    .g-item:nth-child(2)  { grid-column: 4/6;  grid-row: 1/2; }
    .g-item:nth-child(3)  { grid-column: 6/9;  grid-row: 1/3; }
    .g-item:nth-child(4)  { grid-column: 4/6;  grid-row: 2/4; }
    .g-item:nth-child(5)  { grid-column: 1/4;  grid-row: 3/5; }
    .g-item:nth-child(6)  { grid-column: 6/9;  grid-row: 3/5; }
    .g-item:nth-child(7)  { grid-column: 4/6;  grid-row: 4/6; }
    .g-item:nth-child(8)  { grid-column: 1/3;  grid-row: 5/7; }
    .g-item:nth-child(9)  { grid-column: 3/5;  grid-row: 5/7; }
    .g-item:nth-child(10) { grid-column: 6/9;  grid-row: 5/7; }
    .g-item:nth-child(11) { grid-column: 1/3;  grid-row: 7/8; }
    .g-item:nth-child(12) { grid-column: 3/6;  grid-row: 7/8; }
    .g-item:nth-child(13) { grid-column: 6/9;  grid-row: 7/8; }
  }

  /* ─── RESPONSIVE — MOBILE ─── */
  @media (max-width: 768px) {
    .nav { padding: 1rem 1.25rem; }
    .nav-links { display: none; }
    .nav-logo { font-size: 0.75rem; }
    .hero { min-height: 100svh; }
    .hero::before { display: none; }
    .hero-content { padding: 0 1.25rem 5rem; }
    .hero h1 { font-size: clamp(2.4rem, 10vw, 3.5rem); }
    .hero-subtitle { font-size: 1rem; }
    .hero-meta { gap: 1.5rem; flex-wrap: wrap; }
    .hero-meta-item .value { font-size: 0.85rem; }
    .hero-scroll { right: 1.25rem; }
    .intro-band { padding: 3.5rem 1.25rem; }
    .intro-band .section-inner { grid-template-columns: 1fr; gap: 2.5rem; }
    .intro-left {
      border-right: none;
      border-bottom: 1px solid rgba(184,151,90,0.25);
      padding-right: 0;
      padding-bottom: 2.5rem;
      display: grid;
      grid-template-columns: 1fr 1fr 1fr;
      gap: 1rem;
      align-items: start;
    }
    .intro-left .numero, .intro-left .label { display: none; }
    .intro-stat { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }
    .intro-stat-value { font-size: 1.6rem; }
    .intro-right h2 { font-size: 1.6rem; }
    .section { padding: 4rem 1.25rem; }
    .section-title-block { gap: 1rem; margin-bottom: 2.5rem; }
    .section-number { font-size: 2.5rem; }
    .section-title-text h2 { font-size: 1.5rem; }
    .content-image-row, .content-image-row.reverse {
      grid-template-columns: 1fr;
      direction: ltr;
      gap: 1.5rem;
    }
    .content-img-wrap img { aspect-ratio: 4/3; }
    .prose .pull-quote { font-size: 1.2rem; padding: 0.75rem 0 0.75rem 1.25rem; margin: 2rem 0; }
    .timeline { padding-left: 2rem; }
    .method-grid { grid-template-columns: 1fr; }
    .method-item:last-child { grid-column: auto; }
    .ricercatori-grid { grid-template-columns: 1fr; }
    .mostra-section { padding: 4rem 1.25rem; }
    .mostra-card { grid-template-columns: 1fr; }
    .mostra-content { padding: 2rem 1.25rem; }
    .mostra-visual { padding: 3rem 2rem; min-height: 220px; }
    .mostra-visual-text .anno { font-size: 3.5rem; }
    .mostra-visual-text .titolo-mostra { font-size: 1.3rem; }
    .gallery-section { padding: 4rem 1.25rem; }
    .gallery-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      grid-template-rows: none;
      gap: 4px;
    }
    .g-item { grid-column: auto !important; grid-row: auto !important; }
    .g-item:nth-child(odd)  { aspect-ratio: 3/4; }
    .g-item:nth-child(even) { aspect-ratio: 4/3; }
    .g-item:nth-child(1) { grid-column: 1 / -1 !important; aspect-ratio: 16/9; }
    .g-item-overlay { opacity: 1; background: linear-gradient(to top, rgba(0,0,0,0.72) 0%, transparent 55%); }
    .g-item-title { font-size: 0.8rem; }
    .g-item-author { font-size: 0.6rem; }
    .lightbox-inner { max-width: 100vw; max-height: 100vh; padding: 0 1rem; }
    .lightbox-inner img { max-width: 94vw; max-height: 72vh; }
    .lightbox-nav.prev { left: -0.5rem; width: 2rem; height: 2rem; }
    .lightbox-nav.next { right: -0.5rem; width: 2rem; height: 2rem; }
    .lightbox-close { top: -2rem; font-size: 1.2rem; }
    .page-footer { padding: 3rem 1.25rem; }
    .page-footer p { font-size: 0.72rem; line-height: 1.7; }
    .artists-grid { grid-template-columns: 1fr; }
  }

  /* ─── RESPONSIVE — SMALL MOBILE ─── */
  @media (max-width: 390px) {
    .hero h1 { font-size: 2.2rem; }
    .hero-meta { gap: 1rem; }
    .hero-meta-item:last-child { display: none; }
    .intro-left { grid-template-columns: 1fr 1fr; }
    .intro-stat:last-child { display: none; }
    .gallery-grid { grid-template-columns: 1fr; gap: 4px; }
    .g-item:nth-child(odd),
    .g-item:nth-child(even) { aspect-ratio: 4/3; }
    .g-item:nth-child(1) { aspect-ratio: 16/9; }
  }
