/* Stile del sito della Fondazione Carri di Santa Lucia.
   Ricavato dai wireframe di docs/wireframe/ (home v2, Museo e Prenota v1) e dallo studio v0.5, §27.
   Contrasti verificati in docs/16. Caratteri: Archivo e Inter sono una proposta da confermare;
   finché non sono ospitati sul sito si usano quelli di sistema. Niente Google Fonts. */
:root {
  --surface: #FAFAF8;
  --surface-muted: #ECECE8;
  --ink: #171918;
  --ink-muted: #4A4F4B;
  --night: #111412;
  --night-2: #1A1E1B;
  --white: #FFFFFF;
  --brand-green: #287E42;
  --brand-green-dark: #1F6534;
  --brand-red: #B94237;
  --brand-gold: #D9B34A;
  --brand-gold-dark: #86671A;

  --font-titoli: "Archivo", "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-testo: "Inter", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Cascadia Mono", Consolas, ui-monospace, "SFMono-Regular", Menlo, monospace;

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1360px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 1rem; }
body { margin: 0; background: var(--surface); color: var(--ink); font: 400 1.0625rem/1.55 var(--font-testo); }
img { max-width: 100%; display: block; }
figure { margin: 0; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-titoli); margin: 0; letter-spacing: -0.025em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
dl, dd { margin: 0; }

:focus-visible { outline: 3px solid var(--brand-gold); outline-offset: 3px; border-radius: 2px; }
.chiaro :focus-visible { outline-color: var(--brand-green); }

.salta { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--ink); color: var(--white); padding: .75rem 1rem; }
.salta:focus { left: var(--gutter); top: .5rem; }
.contenitore { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* Fascia dell'anteprima (solo senza INDICIZZA) */
.anteprima { background: var(--brand-gold); color: var(--ink); font-size: .875rem; line-height: 1.4; padding: .5rem var(--gutter); text-align: center; }

/* ---------- Segnaposto: dati da confermare, foto da trovare ---------- */
.segnaposto { font-family: var(--font-mono); font-size: .875em; color: var(--brand-red); }
.scuro .segnaposto, .piede .segnaposto { color: var(--brand-gold); }
.segnaposto-foto {
  position: relative; overflow: hidden; background-color: #1E2321;
  background-image: repeating-linear-gradient(135deg, rgba(255,255,255,.05) 0 2px, transparent 2px 16px);
  color: rgba(255,255,255,.85); display: flex; align-items: center; justify-content: center; text-align: center;
  font: 500 .8125rem/1.4 var(--font-mono); padding: 1rem; border-radius: 4px;
}

/* ---------- Foto e didascalie ---------- */
/* Riquadro vuoto al posto di una foto tolta: prende le proporzioni del posto, altrimenti 3:2 */
:where(.foto-vuota) { aspect-ratio: 3 / 2; }
.foto-galleria.foto-vuota { border-radius: 4px; }
.hero .foto-vuota { background-color: #2A302D; } /* sul fondo scuro dell'apertura il riquadro deve vedersi */
.foto { position: relative; overflow: hidden; background: var(--night-2); border-radius: 4px; }
.foto picture { display: block; width: 100%; height: 100%; }
.foto img { width: 100%; height: 100%; object-fit: cover; }
.con-didascalia figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: 1.75rem .75rem .55rem; font-size: .75rem; line-height: 1.35; color: var(--white);
  background: linear-gradient(transparent, rgba(0,0,0,.78));
}
.con-didascalia figcaption .segnaposto { color: var(--brand-gold); }
.credito { display: block; margin-top: .15rem; color: #D5D9D5; }

/* ---------- Pulsanti e link ---------- */
.pulsante {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: .7rem 1.4rem; font: 600 1rem/1.2 var(--font-testo);
  text-decoration: none; border-radius: 999px; border: 2px solid transparent; white-space: nowrap;
}
.pulsante.primario { background: var(--brand-green); color: var(--white); }
.pulsante.primario:hover { background: var(--brand-green-dark); }
.pulsante.primario .segnaposto { color: var(--white); }
.pulsante.contorno-chiaro { border-color: var(--white); color: var(--white); }
.pulsante.contorno-chiaro:hover { background: rgba(255,255,255,.12); }
.pulsante.contorno-scuro { border-color: var(--ink); color: var(--ink); }
.pulsante.contorno-scuro:hover { background: var(--surface-muted); }
.pulsante.disattivo { border-style: dashed; cursor: default; }
.pulsante.disattivo:hover { background: none; }
.pulsante.bianco { background: var(--white); color: var(--brand-green-dark); }
.pulsante.bianco:hover { background: var(--surface); }
.freccia::after { content: "→"; }
.icona { width: 1.15em; height: 1.15em; flex: none; }

.link-freccia {
  display: inline-flex; gap: .45rem; align-items: center; font-weight: 600; color: var(--brand-green-dark);
  text-decoration: none; border-bottom: 2px solid currentColor; padding-bottom: 2px;
}
.link-freccia::after { content: "→"; }
.scuro .link-freccia { color: var(--white); }

.occhiello { font: 700 .8125rem/1.3 var(--font-testo); text-transform: uppercase; letter-spacing: .14em; color: var(--brand-gold-dark); margin-bottom: .75rem; }
.scuro .occhiello { color: var(--brand-gold); }
.riga-rossa { width: 48px; height: 4px; background: var(--brand-red); border: 0; margin: 1.25rem 0 0; }
.piccolo { font-size: .875rem; color: var(--ink-muted); }

/* ---------- Intestazione ---------- */
.intestazione { position: absolute; left: 0; right: 0; z-index: 10; color: var(--white); }
.intestazione.solida { position: relative; background: var(--night); }
/* Altezza della barra: segue il logo (63 x 102 px; 69 x 112 da 1100 px). La usano anche la foto della home e il titolo. */
:root { --altezza-intestazione: 112px; }
.intestazione .contenitore { display: flex; align-items: center; gap: .75rem; min-height: var(--altezza-intestazione); }
.marchio { display: flex; align-items: center; gap: .75rem; text-decoration: none; margin-right: auto; }
/* Logo trasparente, senza riquadro (dal 2026-11-08). */
.logo { display: block; width: 63px; height: auto; aspect-ratio: 240 / 389; }
.marchio .nome-marchio { font: 700 1.0625rem/1.1 var(--font-titoli); letter-spacing: -0.01em; display: none; }
/* Nome della Fondazione: una riga se c'è spazio, al massimo due ("Fondazione" / "Carri di Santa Lucia"). */
.nome-marchio .riga, .piede .nome .riga { white-space: nowrap; }
.menu-desktop { display: none; }
.menu-desktop ul { display: flex; gap: 1.6rem; }
.menu-desktop a { text-decoration: none; font-weight: 500; padding: .5rem 0; border-bottom: 2px solid transparent; }
.menu-desktop a:hover { border-bottom-color: currentColor; }
.menu-desktop a[aria-current] { border-bottom-color: var(--brand-gold); }
.intestazione .pulsante { min-height: 44px; padding: .5rem 1rem; font-size: .9375rem; }
.cta-lunga { display: none; }

.menu-mobile summary {
  list-style: none; cursor: pointer; min-height: 44px; min-width: 44px; padding: .5rem .8rem;
  border: 2px solid currentColor; border-radius: 999px; font-weight: 600; font-size: .9375rem; display: inline-flex; align-items: center;
}
.menu-mobile summary::-webkit-details-marker { display: none; }
.menu-mobile[open] summary { background: var(--white); color: var(--ink); border-color: var(--white); }
.menu-mobile .pannello {
  position: absolute; left: var(--gutter); right: var(--gutter); top: 84px;
  background: var(--surface); color: var(--ink); border-radius: 10px; box-shadow: 0 18px 40px rgba(0,0,0,.3); padding: .5rem 0;
}
.menu-mobile .nome-nel-menu { padding: .75rem 1.25rem .5rem; font: 700 1rem/1.2 var(--font-titoli); color: var(--ink-muted); }
.menu-mobile li a { display: block; padding: .8rem 1.25rem; text-decoration: none; font-weight: 600; font-size: 1.125rem; }
.menu-mobile li a[aria-current] { color: var(--brand-green-dark); }
.menu-mobile li + li { border-top: 1px solid var(--surface-muted); }

/* ---------- Briciole di pane ---------- */
.fascia-briciole.scuro { background: var(--night); color: #C9CDC9; }
.fascia-briciole.chiaro { color: var(--ink-muted); }
.briciole { font-size: .875rem; padding-top: 1.25rem; }
.briciole ol { display: flex; flex-wrap: wrap; gap: .35rem; }
.briciole li + li::before { content: "›"; margin-right: .35rem; color: var(--brand-gold); }
.briciole a { color: var(--white); text-underline-offset: 3px; }
.fascia-briciole.chiaro li + li::before { color: var(--brand-gold-dark); }
.fascia-briciole.chiaro a { color: var(--ink); }

/* ---------- Hero della home ---------- */
.hero { position: relative; background: var(--night); color: var(--white); overflow: hidden; }
.hero .foto { aspect-ratio: 4 / 3; margin-top: var(--altezza-intestazione); border-radius: 0; }
.hero .foto::after { content: ""; position: absolute; inset: auto 0 0 0; height: 30%; background: linear-gradient(0deg, var(--night), transparent); }
.hero .foto figcaption { top: .5rem; bottom: auto; left: auto; max-width: 70%; text-align: right; background: rgba(0,0,0,.55); padding: .35rem .55rem; border-radius: 3px; right: .5rem; }
.hero-testo { position: relative; z-index: 1; padding-top: .5rem; padding-bottom: 3rem; }
.hero .occhiello { margin-bottom: 1rem; }
.hero h1 { font-size: clamp(2.75rem, 6.2vw, 5.5rem); line-height: .98; font-weight: 800; max-width: 10ch; }
.hero .sottotitolo { font-size: clamp(1.125rem, 1.7vw, 1.375rem); margin-top: 1.25rem; max-width: 30ch; }
.azioni { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }

/* ---------- Sezioni ---------- */
.sezione { padding: clamp(3rem, 6vw, 5rem) 0; }
.bianco { background: var(--white); }
h2.grande { font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1.02; font-weight: 800; }
h2.grande.medio { font-size: clamp(1.75rem, 3.4vw, 2.6rem); }
.spazio-sotto { margin-bottom: 1.5rem; }
.spazio-sopra { margin-top: 1rem; }
.spazio-sopra-grande { margin-top: 2.5rem; }
.testo { margin-top: 1rem; max-width: 44ch; }
.testo + .link-freccia, .testo + .azioni-sezione { margin-top: 1.5rem; }
.due-colonne { display: grid; gap: 1rem; }
.due-colonne .testo { margin-top: 0; max-width: 60ch; font-size: 1.125rem; }
.griglia-40-60 { display: grid; gap: 2rem; align-items: center; }
.griglia-40-60 .segnaposto-foto, .griglia-40-60 .foto { aspect-ratio: 3 / 2; }
.tre-colonne { display: grid; gap: 1.25rem; }
.riquadro { background: var(--white); border: 1px solid var(--surface-muted); border-radius: 8px; padding: 1.35rem 1.4rem 1.5rem; display: flex; flex-direction: column; gap: .6rem; align-items: flex-start; }
.bianco .riquadro { background: var(--surface); }
.riquadro h3, .riquadro h2 { font-size: 1.35rem; line-height: 1.15; font-weight: 800; }
.riquadro p { color: var(--ink-muted); }
.riquadro .link-freccia { margin-top: auto; }
.riquadro.largo { max-width: 760px; }
.riquadro.largo .pulsante { margin-top: .5rem; }

/* Home: Fondazione 40/60 */
.fondazione .griglia { display: grid; gap: 2rem; align-items: center; }
.fondazione .segnaposto-foto { aspect-ratio: 3 / 2; }

/* Home: Museo, fascia scura a tre zone */
.museo { background: var(--night); color: var(--white); }
.museo .griglia { display: grid; gap: 1.75rem; align-items: center; }
.museo .foto { aspect-ratio: 4 / 3; }
.scheda-visita { background: var(--white); color: var(--ink); border-radius: 8px; padding: 1.75rem; border-left: 6px solid var(--brand-gold); }
.scheda-visita .icona { width: 30px; height: 30px; color: var(--brand-green); }
.scheda-visita h3 { font-size: 1.75rem; line-height: 1.1; margin-top: .75rem; font-weight: 800; }
.scheda-visita p { margin-top: .5rem; color: var(--ink-muted); }
.scheda-visita .pulsante { margin-top: 1.25rem; width: 100%; }

/* Home: Carri, testo e due foto */
.carri { background: var(--white); }
.carri .griglia { display: grid; gap: 1.25rem; align-items: center; }
.carri .foto { aspect-ratio: 3 / 2; }
.carri .testo-colonna { margin-bottom: .75rem; }

/* Home: Eventi e attività */
.eventi .griglia { display: grid; gap: 2rem; }
.eventi .link-freccia { margin-top: 1.5rem; }
.schede { display: grid; gap: 1.25rem; }
.scheda { position: relative; background: var(--white); border-radius: 6px; overflow: hidden; box-shadow: 0 0 0 1px var(--surface-muted); display: flex; flex-direction: column; }
.scheda .foto, .scheda .segnaposto-foto { aspect-ratio: 16 / 10; border-radius: 0; }
.scheda .corpo { padding: 1.1rem 1.25rem 1.35rem; display: flex; flex-direction: column; flex: 1; }
.scheda h3 { font-size: 1.3rem; line-height: 1.15; font-weight: 800; padding-left: .75rem; border-left: 4px solid var(--brand-red); }
.scheda:nth-child(2) h3 { border-left-color: var(--brand-gold); }
.scheda:nth-child(3) h3 { border-left-color: var(--brand-green); }
.scheda h3 a { text-decoration: none; }
.scheda h3 a::after { content: ""; position: absolute; inset: 0; z-index: 3; }
.scheda h3 a:focus-visible { outline: none; }
.scheda:focus-within { outline: 3px solid var(--brand-green); outline-offset: 3px; }
.scheda p { margin-top: .4rem; color: var(--ink-muted); font-size: .9688rem; padding-left: calc(.75rem + 4px); }
.finto-link { margin-top: auto; padding-top: 1rem; font-weight: 600; color: var(--brand-green-dark); font-size: .9375rem; }
.scheda .finto-link { padding-left: calc(.75rem + 4px); }
.finto-link::after { content: " →"; }
.scheda:hover h3 { text-decoration: underline; text-underline-offset: 5px; }

/* ---------- Testata delle pagine interne ---------- */
.testata { background: var(--night); color: var(--white); }
.testata .griglia { display: grid; gap: 2rem; align-items: center; padding-top: 1.5rem; padding-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.testata h1 { font-size: clamp(2.4rem, 5.4vw, 4.6rem); line-height: 1; font-weight: 800; }
.testata h1 .sottonome { display: block; font-size: .42em; line-height: 1.2; font-weight: 700; letter-spacing: -0.01em; margin-top: .6rem; color: #DDE0DD; }
.testata .sottotitolo { font-size: clamp(1.0625rem, 1.6vw, 1.25rem); margin-top: 1.25rem; max-width: 40ch; }
.testata .segnaposto-foto, .testata .foto { aspect-ratio: 4 / 3; }
.ancore ul { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.75rem; }
.ancore a { display: inline-flex; min-height: 44px; align-items: center; padding: .4rem 1rem; border: 1px solid rgba(255,255,255,.4); border-radius: 999px; text-decoration: none; font-weight: 600; font-size: .9375rem; }
.ancore a:hover { border-color: var(--brand-gold); }

/* Informazioni pratiche */
.info-pratiche { background: var(--white); border-bottom: 1px solid var(--surface-muted); }
.info-pratiche .contenitore { padding-top: 2rem; padding-bottom: 2rem; }
.info-griglia { display: grid; gap: 1px; background: var(--surface-muted); border: 1px solid var(--surface-muted); border-radius: 6px; overflow: hidden; }
.info-griglia > div { background: var(--white); padding: 1rem 1.15rem; }
.info-griglia dt { font: 700 .75rem/1.3 var(--font-testo); text-transform: uppercase; letter-spacing: .12em; color: var(--brand-gold-dark); }
.info-griglia dd { margin-top: .3rem; }
.info-griglia dd a { color: var(--brand-green-dark); font-weight: 600; }

/* Titolo di sezione con il testo a fianco */
.intestazione-sezione { display: grid; gap: .75rem; margin-bottom: 2rem; }
.intestazione-sezione.senza-margine { margin-bottom: 0; }
.intestazione-sezione .testo { margin-top: 0; }
.intestazione-sezione .link-freccia { margin-top: 1.25rem; }

/* Museo: schede del percorso */
.sale { display: grid; gap: 1.25rem; counter-reset: sala; }
.sala { background: var(--white); border: 1px solid var(--surface-muted); border-radius: 6px; overflow: hidden; }
.sala .segnaposto-foto { aspect-ratio: 3 / 2; border-radius: 0; }
.sala .corpo { padding: 1.1rem 1.25rem 1.35rem; }
.sala h3 { font-size: 1.3rem; line-height: 1.15; font-weight: 800; }
.sala h3::before { counter-increment: sala; content: "0" counter(sala) "  "; color: var(--brand-red); font-weight: 800; }
.sala p { margin-top: .45rem; color: var(--ink-muted); }

/* Fascia scura divisa */
.divisa-scura { background: var(--night); color: var(--white); }
.divisa-scura .griglia { display: grid; gap: 2rem; align-items: center; }
.divisa-scura .griglia > .segnaposto-foto, .divisa-scura .griglia > .foto { aspect-ratio: 16 / 10; }
/* Foto verticale (postazione touch): 4:5, al massimo 30rem di larghezza, centrata nella colonna. */
.divisa-scura .griglia > .foto.verticale { aspect-ratio: 4 / 5; width: 100%; max-width: 30rem; justify-self: center; }

/* Carri: coppia di foto della spaccata */
.coppia { display: grid; gap: 1.25rem; }
.coppia .foto { aspect-ratio: 4 / 3; }

/* Video: larghezza piena, didascalia sotto */
.video video { display: block; width: 100%; height: auto; background: var(--night); border-radius: 4px; }
.video figcaption { font-size: .875rem; padding-top: .65rem; color: var(--ink-muted); }
.scuro .video figcaption { color: #C9CDC9; }

/* Carri: galleria con didascalie sotto le foto */
.galleria { display: grid; gap: 1.75rem 1.25rem; }
.foto-galleria picture { display: block; aspect-ratio: 3 / 2; overflow: hidden; border-radius: 4px; background: var(--night-2); }
.foto-galleria img { width: 100%; height: 100%; object-fit: cover; }
.foto-galleria figcaption { position: static; background: none; color: var(--ink); font-size: .875rem; padding: .65rem 0 0; }
.foto-galleria figcaption .segnaposto { color: var(--brand-red); }
.foto-galleria .credito { color: var(--ink-muted); }

/* Domande frequenti, senza JavaScript */
.faq { max-width: 860px; }
.faq details { border-top: 1px solid var(--surface-muted); }
.faq details:last-of-type { border-bottom: 1px solid var(--surface-muted); }
.faq summary {
  cursor: pointer; list-style: none; padding: 1.1rem 2.5rem 1.1rem 0; position: relative;
  font: 700 1.125rem/1.35 var(--font-titoli); letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: .25rem; top: .85rem; font-size: 1.5rem; color: var(--brand-green-dark); }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 0 1.1rem; max-width: 65ch; }
.faq details a { color: var(--brand-green-dark); font-weight: 600; }

/* Fascia finale con il pulsante */
.banda-cta { background: var(--brand-green-dark); color: var(--white); }
.banda-cta .contenitore { display: flex; flex-wrap: wrap; gap: 1.25rem 2rem; align-items: center; justify-content: space-between; padding-top: 2.5rem; padding-bottom: 2.5rem; }
.banda-cta h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1.1; font-weight: 800; }
.banda-cta p { margin-top: .35rem; }

/* ---------- Pagine chiare: Prenota, Eventi, Contatti, Privacy ---------- */
.pagina-chiara h1 { font-size: clamp(2.4rem, 5.4vw, 4.2rem); line-height: 1; font-weight: 800; }
.pagina-chiara .apertura { padding-top: 1.25rem; padding-bottom: 2.5rem; }
.pagina-chiara .intro { font-size: 1.125rem; margin-top: 1rem; max-width: 58ch; }
.blocco { padding-top: 3rem; }
.ultimo { padding-bottom: 4rem; }

.scelta { display: grid; gap: 1rem; margin-top: 2rem; }
.scelta a {
  display: flex; flex-direction: column; gap: .35rem; text-decoration: none;
  background: var(--white); border: 2px solid var(--surface-muted); border-radius: 8px; padding: 1.25rem 1.35rem;
}
.scelta a:hover { border-color: var(--brand-green); }
.scelta strong { font: 800 1.35rem/1.15 var(--font-titoli); letter-spacing: -0.01em; }
.scelta span { color: var(--ink-muted); }
.scelta span.vai { color: var(--brand-green-dark); font-weight: 600; margin-top: .25rem; }
.scelta span.vai::after { content: " ↓"; }

.percorso { background: var(--white); border: 1px solid var(--surface-muted); border-radius: 8px; padding: clamp(1.25rem, 3vw, 2.25rem); scroll-margin-top: 1rem; margin-top: 1.5rem; }
.percorso h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); line-height: 1.1; font-weight: 800; }
.percorso .colonne { display: grid; gap: 1.75rem; margin-top: 1.25rem; }
.percorso h3 { font: 700 .8125rem/1.3 var(--font-testo); text-transform: uppercase; letter-spacing: .12em; color: var(--brand-gold-dark); margin-bottom: .75rem; }
.da-indicare { display: grid; gap: .5rem; }
.da-indicare li { padding-left: 1.75rem; position: relative; }
.da-indicare li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--brand-green); font-weight: 800; }
.da-indicare .facoltativo { color: var(--ink-muted); }
.contatti-visita { display: grid; gap: .75rem; align-content: start; }
.contatti-visita .pulsante { justify-content: flex-start; width: 100%; white-space: normal; text-align: left; }
.contatti-visita .nota-contatto { color: var(--ink-muted); font-size: .875rem; }

.passi { display: grid; gap: 1rem; counter-reset: passo; margin-top: 1.25rem; }
.passi li { background: var(--white); border: 1px solid var(--surface-muted); border-radius: 8px; padding: 1.1rem 1.25rem 1.1rem 4rem; position: relative; }
.passi li::before {
  counter-increment: passo; content: counter(passo); position: absolute; left: 1.1rem; top: 1rem;
  width: 2rem; height: 2rem; border-radius: 50%; background: var(--brand-green); color: var(--white);
  display: grid; place-items: center; font-weight: 800;
}
.passi strong { display: block; font: 700 1.0625rem/1.3 var(--font-titoli); }
.passi span { color: var(--ink-muted); }

.riquadro-privacy { background: var(--surface-muted); border-radius: 8px; padding: 1.1rem 1.25rem; font-size: .9375rem; margin-top: 1.5rem; }
.riquadro-privacy a { color: var(--brand-green-dark); font-weight: 600; }

/* Eventi */
.elenco-eventi { display: grid; gap: 1.25rem; }
.voce-evento { position: relative; display: grid; background: var(--white); border: 1px solid var(--surface-muted); border-radius: 8px; overflow: hidden; }
.voce-evento .foto { aspect-ratio: 16 / 10; border-radius: 0; }
.voce-evento .corpo { padding: 1.25rem 1.35rem 1.4rem; display: flex; flex-direction: column; gap: .5rem; }
.voce-evento .quando { font-weight: 700; color: var(--brand-red); }
.voce-evento h3 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); line-height: 1.1; font-weight: 800; }
.voce-evento h3 a { text-decoration: none; }
.voce-evento h3 a::after { content: ""; position: absolute; inset: 0; }
.voce-evento:hover h3 { text-decoration: underline; text-underline-offset: 5px; }
.voce-evento:focus-within { outline: 3px solid var(--brand-green); outline-offset: 3px; }
.voce-evento h3 a:focus-visible { outline: none; }
.passati .voce-evento { opacity: .85; }
.vuoto { color: var(--ink-muted); }
.info-evento { display: grid; gap: .75rem; margin-top: 1.5rem; }
.info-evento dt { font: 700 .75rem/1.3 var(--font-testo); text-transform: uppercase; letter-spacing: .12em; color: var(--brand-gold-dark); }
.info-evento dd { font-size: 1.125rem; font-weight: 600; }
.evento .griglia-40-60 { align-items: start; }

/* Tabella dei contributi pubblici (Trasparenza) */
.tabella-scorrevole { overflow-x: auto; }
.contributi { border-collapse: collapse; width: 100%; min-width: 560px; background: var(--white); font-size: .9375rem; }
.contributi caption { text-align: left; font-weight: 700; padding-bottom: .5rem; }
.contributi th, .contributi td { text-align: left; padding: .6rem .75rem; border-bottom: 1px solid var(--surface-muted); vertical-align: top; }
.contributi th { font: 700 .75rem/1.3 var(--font-testo); text-transform: uppercase; letter-spacing: .1em; color: var(--brand-gold-dark); }
.contributi .numero { text-align: right; white-space: nowrap; }

/* Testi lunghi (privacy) e collegamenti della 404 */
.testo-lungo > * { max-width: 860px; }
.testo-lungo h2 { font-size: 1.5rem; line-height: 1.2; font-weight: 800; margin-top: 2.25rem; }
.testo-lungo p { margin-top: .75rem; max-width: 70ch; }
.collegamenti { display: grid; gap: 1rem; margin-top: .5rem; }

/* ---------- Piè di pagina ---------- */
.piede { background: var(--night); color: #C9CDC9; font-size: .9375rem; position: relative; }
.piede .contenitore { padding-top: 3rem; padding-bottom: 2.5rem; }
.piede .colonne { display: grid; gap: 2rem; }
.piede .marchio-piede { display: flex; align-items: center; gap: 1rem; }
.piede .logo { width: 84px; }
.piede .nome { font: 700 1.25rem/1.15 var(--font-titoli); color: var(--white); }
.piede h2 { font: 700 .8125rem/1.3 var(--font-testo); text-transform: uppercase; letter-spacing: .12em; color: var(--brand-gold); margin-bottom: .75rem; }
.piede nav ul { display: grid; grid-template-columns: repeat(2, max-content); gap: .5rem 2.5rem; }
.piede a { color: var(--white); text-underline-offset: 3px; }
.piede .contatti li { display: flex; gap: .65rem; align-items: flex-start; }
.piede .contatti li + li { margin-top: .55rem; }
.piede .contatti .icona { margin-top: .2rem; color: var(--brand-gold); }
.piede .legale { border-top: 1px solid #2A302C; margin-top: 2rem; padding-top: 1rem; font-size: .8125rem; color: #AEB3AF; }

/* ---------- Da 440 px: nome accanto al logo ---------- */
@media (min-width: 440px) {
  .marchio .nome-marchio { display: block; }
  .menu-mobile .nome-nel-menu { display: none; }
}

/* ---------- Da 768 px ---------- */
@media (min-width: 768px) {
  .cta-breve { display: none; }
  .cta-lunga { display: inline; }
  .fondazione .griglia { grid-template-columns: 45fr 55fr; gap: 3rem; }
  .museo .griglia { grid-template-columns: 1fr 1fr; }
  .museo .scheda-visita { grid-column: 1 / -1; }
  .carri .griglia { grid-template-columns: 1fr 1fr; }
  .carri .testo-colonna { grid-column: 1 / -1; }
  .schede { grid-template-columns: repeat(2, 1fr); }
  .piede .colonne { grid-template-columns: 1fr 1fr; }

  .info-griglia { grid-template-columns: repeat(3, 1fr); }
  /* L'ultima riga incompleta si allarga: niente celle vuote */
  .info-griglia > div:last-child:nth-child(3n+1) { grid-column: 1 / -1; }
  .info-griglia > div:last-child:nth-child(3n+2) { grid-column: span 2; }
  .sale { grid-template-columns: repeat(2, 1fr); }
  .scelta { grid-template-columns: 1fr 1fr; }
  .percorso .colonne { grid-template-columns: 1.2fr 1fr; gap: 2.5rem; }
  .passi { grid-template-columns: repeat(3, 1fr); }
  .intestazione-sezione { grid-template-columns: 1fr 1fr; align-items: end; gap: 2rem; }
  .due-colonne { grid-template-columns: 1fr 1fr; gap: 2rem; align-items: start; }
  .griglia-40-60 { grid-template-columns: 40fr 60fr; gap: 3rem; }
  .tre-colonne { grid-template-columns: repeat(2, 1fr); }
  .coppia { grid-template-columns: 2fr 3fr; }
  .coppia .foto { aspect-ratio: auto; height: clamp(300px, 38vw, 540px); }
  .galleria { grid-template-columns: repeat(2, 1fr); }
  .voce-evento { grid-template-columns: 2fr 3fr; }
  .voce-evento .foto { aspect-ratio: auto; min-height: 100%; }
  .voce-evento .corpo { padding: 1.75rem 2rem; justify-content: center; }
  .info-evento { grid-template-columns: repeat(2, max-content); gap: 2.5rem; }
}

/* ---------- Da 1100 px: impaginazione del mockup approvato ---------- */
@media (min-width: 1100px) {
  .menu-desktop { display: block; }
  .menu-mobile { display: none; }
  .intestazione .contenitore { gap: 2rem; }
  :root { --altezza-intestazione: 128px; }
  .logo { width: 69px; }

  .hero { min-height: min(86vh, 800px); display: flex; align-items: center; }
  .hero .foto { position: absolute; top: 0; right: 0; bottom: 0; height: 100%; width: auto; margin: 0; }
  .hero .foto::after { inset: 0; height: auto; background: linear-gradient(90deg, var(--night) 0%, rgba(17,20,18,.85) 14%, rgba(17,20,18,0) 42%); }
  .hero .foto figcaption { top: auto; bottom: 1rem; right: 1rem; max-width: 40%; }
  .hero-testo { width: 100%; padding-top: calc(var(--altezza-intestazione) + 1.5rem); padding-bottom: 4rem; }
  .hero-testo > * { max-width: 560px; }

  .fondazione .griglia { grid-template-columns: 40fr 60fr; gap: 4rem; }
  .fondazione .segnaposto-foto { aspect-ratio: 16 / 9; }

  .museo .griglia { grid-template-columns: 34fr 38fr 28fr; gap: 2.5rem; }
  .museo .scheda-visita { grid-column: auto; }

  .carri .griglia { grid-template-columns: 28fr 36fr 36fr; gap: 1.5rem; }
  .carri .testo-colonna { grid-column: auto; margin: 0; }
  .carri h2.grande, .eventi h2.grande { font-size: clamp(2.25rem, 3vw, 2.9rem); }

  .eventi .griglia { grid-template-columns: 27fr 73fr; gap: 3rem; align-items: start; }
  .schede { grid-template-columns: repeat(3, 1fr); }

  .testata .griglia { grid-template-columns: 52fr 48fr; gap: 4rem; padding-top: 2rem; }
  .sale { grid-template-columns: repeat(4, 1fr); }
  .divisa-scura .griglia { grid-template-columns: 1fr 1fr; gap: 4rem; }
  .tre-colonne { grid-template-columns: repeat(3, 1fr); }
  .galleria { grid-template-columns: repeat(3, 1fr); }

  /* Prima colonna larga abbastanza per il nome su una riga a 1440 px; più stretto va su due. */
  .piede .colonne { grid-template-columns: 1.7fr 1fr 1.3fr auto; gap: 3rem; align-items: start; }
}

@media (prefers-reduced-motion: no-preference) {
  .pulsante, .menu-desktop a, .scelta a, .ancore a { transition: background-color .15s ease, border-color .15s ease; }
}
