/* ============================================================================
   II Incontro Mondiale delle Culture Religiose, Laiche e Accademiche
   Galtellì (NU), 15-17 ottobre 2026 — Associazione "Demetrio Marco De Luca"

   Registro visivo: la pubblicazione istituzionale stampata. Carta color
   pergamena, filetti in bronzo, blu d'inchiostro, il cremisi del marchio
   riservato a ciò che si deve cliccare. Nessun framework, nessuna risorsa
   esterna: tutto è servito dallo stesso dominio.
   ============================================================================ */

/* ---------------------------------------------------------------- 1. TOKEN */
:root {
  /* blu d'inchiostro: il colore dominante, dal cielo del Monte Tuttavista */
  --brand: #0B2239;
  --brand-dark: #061627;
  --brand-soft: #16456B;
  --brand-tint: #E8EEF4;

  /* cremisi del marchio storico dell'Associazione: SOLO azioni e marchio.
     Verificato: 5,76:1 su pergamena · bianco su cremisi 6,11:1 */
  --accent: #C1102E;
  --accent-dark: #97091F;
  --accent-soft: #F0899B;

  /* bronzo: filetti, ornamenti, occhielli. Due valori perché il filetto è
     decorativo (3,42:1) mentre il testo deve reggere l'AA (5,35:1) */
  --gold: #A57F3C;
  --gold-ink: #7F6129;
  --gold-soft: #DCBE86;

  /* pergamena: fondo caldo, non il bianco freddo dei portali aziendali */
  --paper: #FAF6EE;
  --paper-alt: #F2EADC;
  --white: #FFFDF8;

  --ink: #10161C;
  --text: #2B333C;
  --muted: #616B77;
  --line: rgba(11, 34, 57, .13);
  --line-strong: rgba(11, 34, 57, .22);
  --line-light: rgba(250, 246, 238, .18);

  --font-display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --shadow-sm: 0 1px 2px rgba(6, 22, 39, .05);
  --shadow-md: 0 14px 34px -12px rgba(6, 22, 39, .22);
  --shadow-lg: 0 30px 70px -20px rgba(6, 22, 39, .38);

  --radius: 10px;
  --radius-lg: 16px;
  --container: 1240px;
  --nav-h: 84px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

/* ----------------------------------------------------------- 2. RESET/BASE */
*, *::before, *::after { box-sizing: border-box; }

html {
  overflow-x: hidden;              /* pannello menu fuori schermo: vedi menu */
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.68;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

/* grana di carta: toglie la piattezza del fondo pieno senza farsi notare */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: 1;
  pointer-events: none; opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23g)' opacity='.055'/%3E%3C/svg%3E");
}
body > * { position: relative; z-index: 2; }

img { display: block; max-width: 100%; height: auto; }
a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-dark); }
button { font: inherit; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--brand); color: var(--white);
  padding: 10px 18px; border-radius: 0 0 8px 8px;
  text-decoration: none; font-weight: 600;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 0; color: var(--white); }

::selection { background: rgba(193, 16, 46, .16); }

/* --------------------------------------------------------- 3. TIPOGRAFIA */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--brand);
  font-weight: 600;
  line-height: 1.1;
  margin: 0 0 .55em;
  letter-spacing: -.015em;
}
h1 { font-size: clamp(2.4rem, 5.8vw, 4.6rem); font-weight: 700; letter-spacing: -.025em; }
h2 { font-size: clamp(1.95rem, 3.9vw, 3.15rem); }
h3 { font-size: clamp(1.28rem, 2.1vw, 1.62rem); }
h4 { font-size: 1.02rem; font-family: var(--font-body); font-weight: 600; letter-spacing: .01em; }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

/* occhiello: maiuscoletto spaziato con filetto in bronzo, come nelle
   testatine di una pubblicazione istituzionale */
.eyebrow {
  display: flex; align-items: center; gap: .85rem;
  font-family: var(--font-body);
  font-size: .73rem; font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--gold-ink);
  margin-bottom: 1.05rem;
}
.eyebrow::before {
  content: ''; width: 34px; height: 1px; flex: none;
  background: var(--gold);
}
.eyebrow.is-centered { justify-content: center; }
.eyebrow.is-centered::after {
  content: ''; width: 34px; height: 1px; flex: none; background: var(--gold);
}

.lead {
  font-size: clamp(1.08rem, 1.7vw, 1.26rem);
  line-height: 1.58; color: var(--text);
}
.small { font-size: .875rem; }
.muted { color: var(--muted); }

.rule { border: 0; height: 1px; background: var(--line); margin: 2.6rem 0; }

/* separatore ornamentale: filetto - rombo - filetto */
.ornament {
  display: flex; align-items: center; justify-content: center;
  gap: .9rem; margin: 0 0 2.6rem;
}
.ornament::before, .ornament::after {
  content: ''; height: 1px; width: min(120px, 18vw); background: var(--line-strong);
}
.ornament i {
  width: 7px; height: 7px; background: var(--gold);
  transform: rotate(45deg); display: block;
}

/* capolettera per l'apertura dei testi lunghi */
.has-dropcap > p:first-of-type::first-letter {
  float: left;
  font-family: var(--font-display);
  font-size: 3.9em; line-height: .84;
  font-weight: 700; color: var(--brand);
  padding: .08em .12em 0 0; margin-right: .04em;
}

/* ------------------------------------------------------------- 4. LAYOUT */
.container { width: min(100% - 2.6rem, var(--container)); margin-inline: auto; }
.container-narrow { width: min(100% - 2.6rem, 820px); margin-inline: auto; }

.section { padding: clamp(3.8rem, 7.5vw, 7rem) 0; }
.section-tight { padding: clamp(2.6rem, 5vw, 4rem) 0; }
.section-alt { background: var(--paper-alt); }

.section-dark {
  background: var(--brand); color: rgba(250, 246, 238, .82);
  position: relative; overflow: hidden;
}
.section-dark h1, .section-dark h2, .section-dark h3 { color: var(--white); }
.section-dark h4 { color: var(--gold-soft); }
.section-dark .eyebrow { color: var(--gold-soft); }
.section-dark .eyebrow::before, .section-dark .eyebrow::after { background: var(--gold-soft); }
.section-dark .muted { color: rgba(250, 246, 238, .6); }
.section-dark a { color: var(--gold-soft); }
.section-dark .lead { color: rgba(250, 246, 238, .86); }

/* il marchio come filigrana nelle fasce scure */
.section-dark::after {
  content: ''; position: absolute; z-index: 0;
  right: -90px; top: 50%; transform: translateY(-50%);
  width: 420px; height: 449px; opacity: .05;
  background: url('../img/logo-mark-light.png') center/contain no-repeat;
  pointer-events: none;
}
.section-dark > * { position: relative; z-index: 1; }

.section-head { max-width: 760px; margin-bottom: clamp(2.2rem, 4vw, 3.4rem); }
.section-head.is-centered { margin-inline: auto; text-align: center; }

.grid { display: grid; gap: 1.6rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.split {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4.6rem); align-items: center;
}

/* ------------------------------------------------------------ 5. BOTTONI */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  padding: .95rem 1.8rem;
  border: 1px solid transparent; border-radius: 3px;
  font-family: var(--font-body);
  font-size: .93rem; font-weight: 600; letter-spacing: .015em;
  text-decoration: none; cursor: pointer;
  transition: transform .25s var(--ease), background-color .25s var(--ease),
              color .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 16px; height: 16px; flex: none; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }

.btn-primary { background: var(--accent); color: var(--white); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--accent-dark); color: var(--white); box-shadow: var(--shadow-md); }

.btn-dark { background: var(--brand); color: var(--white); }
.btn-dark:hover { background: var(--brand-soft); color: var(--white); box-shadow: var(--shadow-md); }

.btn-outline { border-color: var(--line-strong); color: var(--brand); background: transparent; }
.btn-outline:hover { background: var(--brand); border-color: var(--brand); color: var(--white); }

.btn-ghost { border-color: rgba(250, 246, 238, .38); color: var(--white); background: transparent; }
.btn-ghost:hover { background: rgba(250, 246, 238, .1); border-color: var(--gold-soft); color: var(--white); }

.btn-sm { padding: .6rem 1.2rem; font-size: .85rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: .9rem; }

/* ------------------------------------------------------------- 6. HEADER */
.topbar {
  background: var(--brand-dark); color: rgba(250, 246, 238, .74);
  font-size: .8rem; border-bottom: 1px solid rgba(165, 127, 60, .32);
}
.topbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: .52rem 0; flex-wrap: wrap;
}
.topbar a { color: rgba(250, 246, 238, .9); text-decoration: none; }
.topbar a:hover { color: var(--gold-soft); text-decoration: underline; }
.topbar-meta { display: flex; gap: 1.5rem; flex-wrap: wrap; align-items: center; }

.site-header {
  position: sticky; top: 0; z-index: 90;
  background: rgba(250, 246, 238, .9);
  backdrop-filter: saturate(170%) blur(14px);
  -webkit-backdrop-filter: saturate(170%) blur(14px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s var(--ease), background-color .3s var(--ease);
}
.site-header.scrolled {
  box-shadow: 0 1px 0 var(--line), 0 12px 30px -22px rgba(6, 22, 39, .5);
  background: rgba(250, 246, 238, .97);
}

.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.4rem; min-height: var(--nav-h);
}

.brand { display: flex; align-items: center; gap: .85rem; text-decoration: none; flex: none; }
.brand img { width: 52px; height: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.14; }
.brand-name {
  font-family: var(--font-display); font-size: 1.24rem; font-weight: 700;
  color: var(--brand); letter-spacing: -.01em;
}
.brand-sub {
  font-size: .625rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold-ink); font-weight: 600; margin-top: .12rem;
}

.nav-menu { display: flex; align-items: center; gap: .1rem; list-style: none; margin: 0; padding: 0; }
.nav-menu a {
  position: relative; display: block; padding: .55rem .78rem;
  font-size: .885rem; font-weight: 500; color: var(--text);
  text-decoration: none; white-space: nowrap;
  transition: color .2s var(--ease);
}
/* filetto animato invece del fondo grigio: più sobrio */
.nav-menu a::after {
  content: ''; position: absolute; left: .78rem; right: .78rem; bottom: .22rem;
  height: 1px; background: var(--gold);
  transform: scaleX(0); transform-origin: left;
  transition: transform .28s var(--ease);
}
.nav-menu a:hover { color: var(--brand); }
.nav-menu a:hover::after { transform: scaleX(1); }
.nav-menu a[aria-current="page"] { color: var(--brand); font-weight: 600; }
.nav-menu a[aria-current="page"]::after { transform: scaleX(1); background: var(--accent); }
.nav-cta { margin-left: .6rem; }
.nav-cta a::after { display: none; }

/* --------------------------------------------- 7. MENU MOBILE (collaudato) */
body.is-locked {
  position: fixed; width: 100%; overflow: hidden;
  top: var(--scroll-lock-top, 0); overflow-anchor: none;
}
.nav-overlay { display: none; }

/* CRITICO: un antenato con backdrop-filter diventa containing block dei
   position:fixed discendenti. Senza questa regola il pannello si ancora
   all'header e, a pagina scrollata, si apre fuori vista. */
.site-header.has-menu-open {
  backdrop-filter: none; -webkit-backdrop-filter: none;
  background: var(--paper);
}

.nav-toggle {
  display: none; width: 46px; height: 46px;
  border: 1px solid var(--line-strong); border-radius: 3px;
  background: transparent; cursor: pointer;
  align-items: center; justify-content: center; flex-direction: column; gap: 5px;
}
.nav-toggle span {
  display: block; width: 20px; height: 1.6px; background: var(--brand);
  transition: transform .3s var(--ease), opacity .25s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.6px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-toggle { display: flex; }

  .nav-overlay {
    display: block; position: fixed; inset: 0; z-index: 89;
    background: rgba(6, 22, 39, .55);
    border: 0; padding: 0; cursor: pointer;
    opacity: 0; visibility: hidden;
    transition: opacity .38s var(--ease), visibility 0s linear .38s;
  }
  .nav-overlay.is-open {
    opacity: 1; visibility: visible;
    transition: opacity .38s var(--ease), visibility 0s linear 0s;
  }

  .nav-menu {
    position: fixed; inset: 0 0 0 auto;
    width: min(86vw, 360px);
    background: var(--paper);
    border-left: 3px solid var(--gold);
    flex-direction: column; align-items: stretch; justify-content: flex-start;
    gap: 2px; padding: 100px 24px 40px;
    box-shadow: var(--shadow-lg);
    overflow-y: auto; overscroll-behavior: contain;
    transform: translateX(100%); visibility: hidden;
    transition: transform .38s var(--ease), visibility 0s linear .38s;
  }
  .nav-menu.is-open {
    transform: none; visibility: visible;
    transition: transform .38s var(--ease), visibility 0s linear 0s;
  }
  .nav-menu a {
    padding: 15px 14px; font-size: 1.06rem; white-space: normal;
    border-bottom: 1px solid var(--line);
  }
  .nav-menu a::after { display: none; }
  .nav-cta { margin: 18px 0 0; }
  .nav-cta .btn { width: 100%; }
}

/* --------------------------------------------------------------- 8. HERO */
.hero { position: relative; background: var(--brand-dark); color: var(--white); overflow: hidden; }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 60%; }
/* velatura in due strati: verticale per la leggibilità, orizzontale per
   staccare il testo dalla croce sulla destra */
.hero-media::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(6,22,39,.62) 0%, rgba(6,22,39,.70) 45%, rgba(6,22,39,.94) 100%),
    linear-gradient(90deg, rgba(6,22,39,.74) 0%, rgba(6,22,39,.30) 62%, rgba(6,22,39,0) 100%);
}
.hero-inner {
  position: relative; z-index: 1;
  padding: clamp(4.6rem, 11vw, 9rem) 0 clamp(3.2rem, 6vw, 5rem);
  max-width: 950px;
}
.hero h1 { color: var(--white); margin-bottom: .42em; }
.hero .eyebrow { color: var(--gold-soft); }
.hero .eyebrow::before { background: var(--gold-soft); }

.hero-quote {
  position: relative;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.7vw, 2rem);
  font-style: italic; line-height: 1.3;
  color: var(--gold-soft);
  margin: 0 0 1.6rem; padding-left: 1.4rem;
  border-left: 2px solid var(--gold);
}
.hero-lead { color: rgba(250, 246, 238, .87); max-width: 640px; }
.hero .btn-row { margin-top: 2.2rem; }

.hero-facts {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: rgba(250, 246, 238, .14);
  border-top: 1px solid rgba(165, 127, 60, .45);
  margin: 0;
}
.hero-fact {
  background: rgba(6, 22, 39, .62); padding: 1.6rem 1.5rem;
  transition: background-color .3s var(--ease);
}
.hero-fact:hover { background: rgba(6, 22, 39, .38); }
.hero-fact dt {
  font-size: .68rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold-soft); font-weight: 600; margin-bottom: .45rem;
}
.hero-fact dd {
  margin: 0; font-family: var(--font-display); font-size: 1.4rem;
  font-weight: 600; color: var(--white); line-height: 1.2;
}
.hero-fact dd span {
  display: block; font-family: var(--font-body); font-size: .8rem;
  font-weight: 400; color: rgba(250, 246, 238, .62); margin-top: .25rem;
  letter-spacing: 0;
}

/* pagine interne: fascia blu con filigrana del marchio */
.page-hero {
  position: relative; overflow: hidden;
  background: var(--brand); color: var(--white);
  padding: clamp(3rem, 6vw, 5rem) 0 clamp(2.4rem, 4vw, 3.6rem);
  border-bottom: 3px solid var(--gold);
}
.page-hero::after {
  content: ''; position: absolute; z-index: 0;
  right: -70px; top: 50%; transform: translateY(-50%);
  width: 340px; height: 364px; opacity: .06;
  background: url('../img/logo-mark-light.png') center/contain no-repeat;
  pointer-events: none;
}
.page-hero > * { position: relative; z-index: 1; }
.page-hero h1 { color: var(--white); margin-bottom: .3em; }
.page-hero .lead { color: rgba(250, 246, 238, .84); max-width: 730px; }
.page-hero .eyebrow { color: var(--gold-soft); }
.page-hero .eyebrow::before { background: var(--gold-soft); }

.breadcrumb { font-size: .8rem; margin-bottom: 1.5rem; color: rgba(250, 246, 238, .6); }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: .45rem; margin: 0; padding: 0; }
.breadcrumb li::after { content: '\203A'; margin-left: .45rem; opacity: .55; }
.breadcrumb li:last-child::after { content: ''; }
.breadcrumb a { color: rgba(250, 246, 238, .82); text-decoration: none; }
.breadcrumb a:hover { color: var(--gold-soft); text-decoration: underline; }

/* ---------------------------------------------------------- 9. COUNTDOWN */
.countdown { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 2.4rem; }
.countdown-unit {
  min-width: 82px; padding: .8rem .9rem;
  background: rgba(250, 246, 238, .07);
  border: 1px solid rgba(165, 127, 60, .4);
  border-radius: 3px; text-align: center;
}
.countdown-num {
  display: block; font-family: var(--font-display); font-size: 2rem;
  font-weight: 700; color: var(--white); line-height: 1;
  font-variant-numeric: lining-nums;
}
.countdown-lab {
  display: block; font-size: .66rem; letter-spacing: .15em;
  text-transform: uppercase; color: var(--gold-soft); margin-top: .4rem;
}

/* ------------------------------------------------------------- 10. CARD */
.card {
  position: relative; overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.8rem;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
/* filetto in bronzo che si apre al passaggio: sostituisce l'ombra pesante */
.card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--gold); transform: scaleX(0); transform-origin: left;
  transition: transform .4s var(--ease);
}
.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md); border-color: var(--line-strong);
}
.card-hover:hover::before { transform: scaleX(1); }
.card h3 { margin-bottom: .4em; }
.card p:last-child { margin-bottom: 0; }

.card-icon {
  width: 48px; height: 48px; border-radius: 3px;
  display: grid; place-items: center;
  background: var(--brand); color: var(--gold-soft);
  margin-bottom: 1.2rem;
}
.card-icon svg { width: 22px; height: 22px; }

.card-num {
  font-family: var(--font-display); font-size: 2.2rem; font-weight: 700;
  color: var(--gold); line-height: 1; margin-bottom: .6rem; display: block;
  font-variant-numeric: lining-nums;
}

.card-link {
  display: inline-flex; align-items: center; gap: .45rem;
  margin-top: 1.2rem; font-size: .86rem; font-weight: 600;
  color: var(--brand); text-decoration: none;
}
.card-link svg { width: 14px; height: 14px; transition: transform .25s var(--ease); }
.card-hover:hover .card-link { color: var(--accent); }
.card-hover:hover .card-link svg { transform: translateX(4px); }

a.card { text-decoration: none; color: inherit; display: block; }

/* ------------------------------------------------------ 11. PANEL/TIMELINE */
.panel-day { margin-bottom: 3.6rem; }
.panel-day:last-child { margin-bottom: 0; }
.panel-date {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: .9rem;
  padding-bottom: 1rem; margin-bottom: .6rem;
  border-bottom: 2px solid var(--brand);
}
.panel-date h2 { margin: 0; }

.chip {
  display: inline-block; padding: .32rem .8rem;
  background: var(--brand-tint); color: var(--brand);
  border-radius: 999px; font-size: .74rem; font-weight: 600;
  letter-spacing: .05em;
}
.chip-accent { background: rgba(193, 16, 46, .1); color: var(--accent-dark); }

/* binario verticale con pallino: rende leggibile la sequenza dei lavori */
.slot {
  position: relative;
  display: grid; grid-template-columns: 112px 1fr;
  gap: 1.8rem; padding: 1.7rem 0 1.7rem 0;
}
.slot::before {
  content: ''; position: absolute; left: 112px; top: 0; bottom: 0;
  width: 1px; background: var(--line); transform: translateX(-.9rem);
}
.slot:first-of-type::before { top: 1.9rem; }
.slot:last-of-type::before { bottom: auto; height: 1.9rem; }
.slot::after {
  content: ''; position: absolute; left: 112px; top: 1.75rem;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--gold); transform: translateX(calc(-.9rem - 3px));
  box-shadow: 0 0 0 4px var(--paper);
}
.section-alt .slot::after { box-shadow: 0 0 0 4px var(--paper-alt); }

.slot-time {
  font-family: var(--font-display); font-size: 1.36rem; font-weight: 700;
  color: var(--brand); line-height: 1.24; font-variant-numeric: lining-nums;
}
.slot-time span {
  display: block; font-family: var(--font-body); font-size: .68rem;
  font-weight: 600; color: var(--gold-ink); letter-spacing: .15em;
  text-transform: uppercase; margin-top: .3rem;
}
.slot-body h3 { margin-bottom: .45em; }
.slot-list { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: .6rem; }
.slot-list li { padding-left: 1.2rem; position: relative; font-size: .95rem; }
.slot-list li::before {
  content: ''; position: absolute; left: 0; top: .62em;
  width: 6px; height: 1px; background: var(--gold);
}
.slot-list strong { color: var(--brand); font-weight: 600; }

/* ------------------------------------------------------------ 12. RELATORI */
.people { display: grid; gap: 1rem; grid-template-columns: repeat(3, 1fr); }
.person {
  display: flex; align-items: flex-start; gap: .95rem;
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.15rem 1.25rem;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.person:hover { border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
/* monogramma: dà ritmo alla griglia senza inventare ritratti che non abbiamo */
.person-mono {
  flex: none; width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--brand-tint); color: var(--brand);
  border: 1px solid rgba(11, 34, 57, .1);
  font-family: var(--font-display); font-size: .95rem; font-weight: 700;
  letter-spacing: .02em;
}
.person-name {
  display: block;
  font-family: var(--font-display); font-size: 1.14rem; font-weight: 600;
  color: var(--brand); line-height: 1.22; margin: .1rem 0 .25rem;
}
.person-role { display: block; font-size: .84rem; color: var(--muted); line-height: 1.45; }

.group-head { display: flex; align-items: center; gap: 1rem; margin: 3rem 0 1.4rem; }
.group-head:first-of-type { margin-top: 0; }
.group-head h3 { margin: 0; white-space: nowrap; color: var(--brand); }
.group-head::after { content: ''; flex: 1; height: 1px; background: var(--line-strong); }

/* -------------------------------------------------------------- 13. TEMI */
.theme {
  display: grid; grid-template-columns: 74px 1fr; gap: 1.8rem;
  padding: 2.2rem 0; border-bottom: 1px solid var(--line);
}
.theme:last-child { border-bottom: 0; }
/* targhetta numerata invece del numero nudo */
.theme-num {
  width: 56px; height: 56px; display: grid; place-items: center;
  border: 1px solid var(--gold); color: var(--gold-ink);
  font-family: var(--font-display); font-size: 1.5rem; font-weight: 700;
  line-height: 1; font-variant-numeric: lining-nums;
}
.theme h3 { margin-bottom: .45em; }
.theme-meta {
  margin-top: 1.1rem; font-size: .87rem; color: var(--muted);
  padding-top: .85rem; border-top: 1px solid var(--line);
}
.theme-meta strong { color: var(--brand); font-weight: 600; }

/* ---------------------------------------------------------- 14. DOCUMENTI */
.doc {
  display: flex; align-items: flex-start; gap: 1.2rem;
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.5rem 1.6rem;
  text-decoration: none; color: inherit;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.doc:hover {
  transform: translateY(-3px); box-shadow: var(--shadow-md);
  border-color: var(--gold); color: inherit;
}
.doc-icon {
  flex: none; width: 46px; height: 56px; border-radius: 2px;
  display: grid; place-items: center;
  background: var(--brand); color: var(--gold-soft);
  font-size: .64rem; font-weight: 700; letter-spacing: .08em;
  box-shadow: inset -3px 0 0 rgba(165, 127, 60, .45);
}
.doc h3 { font-size: 1.1rem; margin-bottom: .3em; }
.doc .small { display: block; line-height: 1.5; }
.doc-meta {
  display: block; font-size: .76rem; color: var(--gold-ink);
  margin-top: .7rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 600;
}

/* -------------------------------------------------------------- 15. FORM */
.form-wrap {
  background: var(--white); border: 1px solid var(--line);
  border-top: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: clamp(1.7rem, 3.4vw, 2.8rem);
  box-shadow: var(--shadow-sm);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.15rem; }
.field { display: flex; flex-direction: column; gap: .42rem; }
.field-full { grid-column: 1 / -1; }
.field label { font-size: .8rem; font-weight: 600; color: var(--brand); letter-spacing: .02em; }
.field .hint { font-size: .76rem; color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea {
  font-family: var(--font-body); font-size: .95rem; color: var(--text);
  padding: .85rem 1rem;
  border: 1px solid var(--line-strong); border-radius: 3px;
  background: var(--paper);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background-color .2s var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); background: var(--white);
  box-shadow: 0 0 0 3px rgba(193, 16, 46, .12);
}
.field textarea { resize: vertical; min-height: 130px; }
.field select {
  appearance: none; padding-right: 2.6rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23616B77' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center; background-size: 16px;
}

.checks { display: grid; gap: .6rem; }
.check { display: flex; align-items: flex-start; gap: .65rem; font-size: .9rem; }
.check input { width: 18px; height: 18px; margin-top: .22rem; flex: none; accent-color: var(--accent); }
.check label { font-weight: 400; color: var(--text); font-size: .9rem; }

.form-status { margin-top: 1rem; font-size: .89rem; font-weight: 500; color: var(--brand); min-height: 1.4em; }

/* ------------------------------------------------------------ 16. FOOTER */
.site-footer {
  position: relative; overflow: hidden;
  background: var(--brand-dark); color: rgba(250, 246, 238, .68);
  padding: clamp(3.2rem, 6vw, 5rem) 0 0;
  border-top: 3px solid var(--gold);
}
.site-footer::after {
  content: ''; position: absolute; z-index: 0;
  left: 50%; bottom: -160px; transform: translateX(-50%);
  width: 560px; height: 599px; opacity: .04;
  background: url('../img/logo-mark-light.png') center/contain no-repeat;
  pointer-events: none;
}
.site-footer > * { position: relative; z-index: 1; }
.footer-grid {
  display: grid; grid-template-columns: 1.7fr 1fr 1fr 1.35fr;
  gap: 2.6rem; padding-bottom: 3rem;
}
.site-footer h4 {
  font-size: .72rem; letter-spacing: .19em; text-transform: uppercase;
  color: var(--gold-soft); margin-bottom: 1.2rem;
  padding-bottom: .7rem; border-bottom: 1px solid rgba(165, 127, 60, .3);
}
.site-footer a { color: rgba(250, 246, 238, .78); text-decoration: none; }
.site-footer a:hover { color: var(--gold-soft); text-decoration: underline; }
.footer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; font-size: .89rem; }
.footer-brand img { width: 64px; height: auto; margin-bottom: 1.1rem; }
.footer-brand p { font-size: .89rem; line-height: 1.62; }
.footer-brand .footer-name {
  font-family: var(--font-display); font-size: 1.42rem; font-weight: 700;
  color: var(--white); margin-bottom: .45rem; line-height: 1.2;
}
.footer-bottom {
  border-top: 1px solid var(--line-light);
  padding: 1.5rem 0 1.9rem;
  display: flex; flex-wrap: wrap; gap: .8rem 1.6rem;
  align-items: center; justify-content: space-between;
  font-size: .8rem;
}
.footer-bottom-links { display: flex; flex-wrap: wrap; gap: 1.3rem; }

/* -------------------------------------------------------- 17. CTA BANNER */
.cta-banner {
  position: relative; overflow: hidden;
  background: var(--brand); color: var(--white);
  border-radius: var(--radius-lg);
  border-top: 3px solid var(--gold);
  padding: clamp(2.4rem, 5vw, 3.8rem);
  text-align: center;
}
.cta-banner::after {
  content: ''; position: absolute; z-index: 0;
  right: -80px; bottom: -110px;
  width: 340px; height: 364px; opacity: .06;
  background: url('../img/logo-mark-light.png') center/contain no-repeat;
  pointer-events: none;
}
.cta-banner > * { position: relative; z-index: 1; }
.cta-banner h2 { color: var(--white); }
.cta-banner p { color: rgba(250, 246, 238, .84); max-width: 640px; margin-inline: auto; }
.cta-banner .btn-row { justify-content: center; margin-top: 1.9rem; }

/* ------------------------------------------------------------- 18. VARIE */
.quote {
  position: relative;
  padding: .2rem 0 .2rem 1.8rem;
  border-left: 2px solid var(--gold);
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 1.95rem);
  font-style: italic; line-height: 1.34; color: var(--brand);
}
.section-dark .quote { color: var(--white); border-left-color: var(--gold-soft); }
.quote cite {
  display: block; margin-top: 1rem;
  font-family: var(--font-body); font-size: .82rem; font-style: normal;
  color: var(--muted); letter-spacing: .06em; text-transform: uppercase;
}
.section-dark .quote cite { color: var(--gold-soft); }

.figure {
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); background: var(--white);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.figure:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.figure img { width: 100%; }
.figure figcaption {
  padding: 1rem 1.15rem; font-size: .81rem; line-height: 1.5;
  color: var(--muted); border-top: 1px solid var(--line);
}
.figure figcaption strong { color: var(--brand); font-weight: 600; }

.notice {
  background: var(--brand-tint);
  border-left: 3px solid var(--brand);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.25rem 1.6rem; font-size: .92rem;
}
.notice strong { color: var(--brand); }
.notice-accent { background: rgba(193, 16, 46, .07); border-left-color: var(--accent); }
.notice-accent strong { color: var(--accent-dark); }

.prose h2 { margin-top: 2.8rem; }
.prose h3 { margin-top: 2rem; }
.prose ul, .prose ol { padding-left: 1.3rem; margin: 0 0 1.1em; }
.prose li { margin-bottom: .55rem; }
.prose li::marker { color: var(--gold); }
.prose > *:first-child { margin-top: 0; }

.tag-row { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.2rem; }

.reveal {
  opacity: 0; transform: translateY(22px);
  transition: opacity .75s var(--ease), transform .75s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ------------------------------------------------------- 19. BREAKPOINT */
@media (max-width: 1100px) {
  .section-dark::after, .page-hero::after, .cta-banner::after { opacity: .035; }
}

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2.2rem; }
  .hero-facts { grid-template-columns: repeat(2, 1fr); }
  .people { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
  .split-flip > *:first-child { order: 2; }
}

@media (max-width: 768px) {
  :root { --nav-h: 68px; }
  .container, .container-narrow { width: min(100% - 2rem, var(--container)); }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .people { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }

  /* la timeline diventa una colonna sola: il binario passa a sinistra */
  .slot { grid-template-columns: 1fr; gap: .6rem; padding-left: 1.5rem; }
  .slot::before { left: 0; transform: none; }
  .slot::after { left: 0; transform: translateX(-3px); top: 1.85rem; }
  .slot-time { font-size: 1.16rem; }
  .slot-time span { display: inline; margin-left: .7rem; }

  .theme { grid-template-columns: 1fr; gap: 1rem; }
  .footer-bottom { justify-content: flex-start; }
  .brand-sub { display: none; }
  .topbar { font-size: .74rem; }
  .topbar-inner { justify-content: center; gap: .2rem .9rem; padding: .42rem 0; }
  .topbar-inner > span { display: none; }
  .topbar-meta { gap: .9rem; }
  .section-dark::after, .page-hero::after, .cta-banner::after { display: none; }
  .has-dropcap > p:first-of-type::first-letter { font-size: 3.2em; }
}

@media (max-width: 640px) {
  .hero-facts { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .btn { width: 100%; }
  .btn-row .btn { width: auto; flex: 1 1 auto; min-width: 210px; }
  .countdown-unit { min-width: 70px; flex: 1 1 auto; }
}

@media (max-width: 480px) {
  .card { padding: 1.6rem 1.35rem; }
  .brand img { width: 44px; }
  .brand-name { font-size: 1.06rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}

@media print {
  body::before, .site-header, .topbar, .site-footer, .nav-toggle,
  .cta-banner, .btn, .breadcrumb { display: none !important; }
  body { background: #fff; color: #000; }
  .page-hero, .section-dark { background: #fff !important; color: #000 !important; }
  .page-hero h1, .section-dark h2, .section-dark h3 { color: #000 !important; }
}
