/* ---------- font self-hosted (GDPR: nessuna connessione a Google) ----------
   Anton · Archivo 400/500/600 · Source Serif 4 300/400 + italici ( variabili ) */
/* Anton · latin-ext */
@font-face {
  font-family: 'Anton';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/Anton-normal-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Anton · latin */
@font-face {
  font-family: 'Anton';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/Anton-normal-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Archivo · latin-ext */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url('../fonts/Archivo-normal-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Archivo · latin */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url('../fonts/Archivo-normal-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Archivo · latin-ext */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 500;
  font-stretch: 100%;
  font-display: swap;
  src: url('../fonts/Archivo-normal-500-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Archivo · latin */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 500;
  font-stretch: 100%;
  font-display: swap;
  src: url('../fonts/Archivo-normal-500-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Archivo · latin-ext */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 600;
  font-stretch: 100%;
  font-display: swap;
  src: url('../fonts/Archivo-normal-600-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Archivo · latin */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 600;
  font-stretch: 100%;
  font-display: swap;
  src: url('../fonts/Archivo-normal-600-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* SourceSerif4 · latin-ext */
@font-face {
  font-family: 'Source Serif 4';
  font-style: italic;
  font-weight: 300;
  font-display: swap;
  src: url('../fonts/SourceSerif4-italic-300-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* SourceSerif4 · latin */
@font-face {
  font-family: 'Source Serif 4';
  font-style: italic;
  font-weight: 300;
  font-display: swap;
  src: url('../fonts/SourceSerif4-italic-300-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* SourceSerif4 · latin-ext */
@font-face {
  font-family: 'Source Serif 4';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/SourceSerif4-italic-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* SourceSerif4 · latin */
@font-face {
  font-family: 'Source Serif 4';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/SourceSerif4-italic-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* SourceSerif4 · latin-ext */
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('../fonts/SourceSerif4-normal-300-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* SourceSerif4 · latin */
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('../fonts/SourceSerif4-normal-300-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* SourceSerif4 · latin-ext */
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/SourceSerif4-normal-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* SourceSerif4 · latin */
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/SourceSerif4-normal-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ============================================================
   Lutz Hunger — Ohne Werk
   Design system editoriale / archivio
   Palette: carta #F2EFE7 · inchiostro #161614 · rosso TEIA #D8232A
   ============================================================ */

:root {
  --paper: #F2EFE7;
  --paper-deep: #E9E4D7;
  --ink: #161614;
  --ink-soft: #4b4740;
  --grey: #8b8880;
  --line: rgba(22, 22, 20, .18);
  --red: #D8232A;

  --font-display: 'Anton', sans-serif;
  --font-serif: 'Source Serif 4', Georgia, serif;
  --font-sans: 'Archivo', 'Helvetica Neue', sans-serif;

  --pad-x: clamp(1.25rem, 5vw, 6rem);
  --max-w: 84rem;
  --ease: cubic-bezier(.19, 1, .22, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: auto; background: var(--paper); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  font-family: var(--font-sans);
  background: transparent; /* il grano su canvas deve vedersi: il colore carta sta su html */
  color: var(--ink);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

::selection { background: var(--red); color: var(--paper); }

a { color: inherit; }

button { font: inherit; background: none; border: 0; cursor: pointer; color: inherit; }

:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
/* fallback per i browser senza :focus-visible (Safari < 15.4) */
@supports not selector(:focus-visible) {
  a:focus, button:focus { outline: 2px solid var(--red); outline-offset: 3px; }
}

/* ---------- utilità ---------- */
.wrap { max-width: var(--max-w); margin-inline: auto; padding-inline: var(--pad-x); }

.label {
  font-size: .72rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink-soft);
}

.label::before {
  content: "";
  display: inline-block;
  width: 2.2em;
  height: 1px;
  background: var(--red);
  vertical-align: middle;
  margin-right: .9em;
  transform: translateY(-.08em);
}

.roman {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--red);
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}

/* ---------- header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem var(--pad-x);
  mix-blend-mode: normal;
  transition: background .4s, box-shadow .4s;
}

/* NB: niente backdrop-filter qui — crea un containing block e rompe
   il menu mobile fixed su iOS (il menu eredita l'header come contenitore) */
.site-header.scrolled {
  background: rgba(242, 239, 231, .96);
  box-shadow: 0 1px 0 var(--line);
}

/* menu aperto sotto l'overlay: header senza sfondo
   (:has come ridondanza, menu-open è impostato da JS) */
.site-header.menu-open,
.site-header:has(.site-nav.open) { background: transparent; box-shadow: none; }

/* header bianco sulla hero scura (home): torna ink quando .scrolled mette il fondo carta */
.on-hero .site-header:not(.scrolled) .wordmark,
.on-hero .site-header:not(.scrolled) .site-nav a { color: var(--paper); }
.on-hero .site-header:not(.scrolled) .wordmark em { color: #ff5a5f; }
.on-hero .site-header:not(.scrolled) .lang-switch { border-color: rgba(242, 239, 231, .45); }
.on-hero .site-header:not(.scrolled) .lang-switch button { color: rgba(242, 239, 231, .8); }
.on-hero .site-header:not(.scrolled) .lang-switch button[aria-pressed="true"] {
  background: var(--paper);
  color: var(--ink);
}
.on-hero .site-header:not(.scrolled) .nav-toggle span:not(.nt-label) { background: var(--paper); }
.on-hero .site-header:not(.scrolled) .nt-label { color: var(--paper); }

.wordmark {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  text-decoration: none;
}
.wordmark em { font-style: normal; color: var(--red); }

.site-nav { display: flex; align-items: center; }
.site-nav > * + * { margin-left: 2rem; }

.site-nav a {
  font-size: clamp(.85rem, 1vw, .95rem);
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 500;
  text-decoration: none;
  color: var(--ink-soft);
  position: relative;
  padding-block: .2em;
  transition: color .3s;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .45s var(--ease);
}
.site-nav a:hover { color: var(--red); }
.site-nav a:hover::after,
.site-nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.site-nav a[aria-current="page"] { color: var(--red); }

.lang-switch {
  display: flex;
  border: 1px solid var(--line);
  margin-left: .5rem;
}

.lang-switch button {
  font-size: .85rem;
  letter-spacing: .1em;
  padding: .2em .65em;
  color: var(--grey);
}
.lang-switch button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--paper);
}

/* menu mobile: etichetta MENÜ sopra due barre lunghe quanto la scritta */
.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: stretch;
  padding: .5rem;
}
.nav-toggle span:not(.nt-label) + span:not(.nt-label) { margin-top: 4px; }
.nav-toggle .nt-label {
  font-size: .68rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 3px;
  white-space: nowrap;
  transition: color .3s, opacity .3s, visibility .3s;
}
.nav-toggle span:not(.nt-label) {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--ink);
  transform-origin: center;
  transition: transform .35s var(--ease), opacity .3s;
}

/* menu aperto: due barre → X (la scritta MENÜ scompare) */
.nav-toggle[aria-expanded="true"] .nt-label { opacity: 0; visibility: hidden; }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(3px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-3px) rotate(-45deg); }

.site-header.menu-open .wordmark,
.site-header.menu-open .site-nav a { color: var(--paper); }
.site-header.menu-open .nt-label { color: var(--paper); }
.site-header.menu-open .nav-toggle span:not(.nt-label) { background: var(--paper); }

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--ink);
    color: var(--paper);
    flex-direction: column;
    justify-content: center;
    transform: translateY(-100%);
    transition: transform .55s var(--ease);
    z-index: -1;
  }
  .site-nav > * + * { margin-left: 0; margin-top: 1.5rem; }
  .site-nav.open { transform: translateY(0); }

  /* link del menu: display type cicciolone, numeri romani in rosso */
  .site-nav a {
    color: var(--paper);
    font-family: var(--font-display);
    font-size: clamp(1.9rem, 8.5vw, 3.2rem);
    line-height: 1;
    letter-spacing: .03em;
    display: inline-block;
  }
  .site-nav a::first-letter { color: var(--red); }
  @keyframes nav-float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-7px); }
  }
  .site-nav.open a { animation: nav-float 3.4s ease-in-out infinite; }
  .site-nav.open a:nth-of-type(1) { animation-delay: 0s; }
  .site-nav.open a:nth-of-type(2) { animation-delay: -.6s; }
  .site-nav.open a:nth-of-type(3) { animation-delay: -1.2s; }
  .site-nav.open a:nth-of-type(4) { animation-delay: -1.8s; }
  .site-nav.open a:nth-of-type(5) { animation-delay: -2.4s; }

  /* la lingua sta sotto, ferma: nessun loop */
  .site-nav .lang-switch {
    margin-top: 1.8rem;
    animation: none;
  }
  .site-nav.open .lang-switch { border-color: rgba(242,239,231,.35); }
  .site-nav.open .lang-switch button[aria-pressed="true"] { background: var(--red); color: #fff; }
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100vh; /* fallback per browser senza unità svh */
  min-height: 100svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--paper);
}

.hero-media {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -2;
  overflow: hidden;
}
/* margine di manovra per il parallax senza scoprire i bordi:
   overscan 12% sopra e sotto, assoluto per non ereditare il flusso */
.hero-media img {
  position: absolute;
  top: -12%;
  left: 0;
  width: 100%;
  height: 124%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.05);
}
.hero-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.05);
}
.hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
  background: linear-gradient(to top, rgba(22,22,20,.78) 0%, rgba(22,22,20,.18) 55%, rgba(22,22,20,.35) 100%);
}

.hero-inner { padding-block: clamp(4rem, 10vh, 8rem) clamp(2rem, 6vh, 4rem); }

.hero .label { color: rgba(242,239,231,.85); }

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(3.4rem, 14.5vw, 13rem);
  line-height: .92;
  text-transform: uppercase;
  letter-spacing: .01em;
  margin: .35rem 0 1.2rem;
}

.hero h1 .char { display: inline-block; }

.hero-sub {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.05rem, 2.2vw, 1.5rem);
  max-width: 34ch;
}

.hero-scroll {
  position: absolute;
  right: var(--pad-x);
  bottom: 2.2rem;
  writing-mode: vertical-rl;
  font-size: .7rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  opacity: .8;
}

.hero-scroll {
  position: absolute;
  left: var(--pad-x);
  bottom: 2.2rem;
  color: rgba(242,239,231,.8);
}
.hero-scroll::before { display: none; }

/* ---------- hero di capitolo ---------- */
.chapter-head h1 {
  overflow: hidden;
  padding-bottom: .08em;
  margin-bottom: 1.4rem;
}
.chapter-head h1 .char { display: inline-block; }
.chapter-head .quote { margin-top: 2.2rem; }

/* titoli animati: nascosti subito per evitare il "flash" pre-animazione
   (solo valori >= 0 — clip-path non accetta negativi) */
html.js .hero h1,
html.js .chapter-head h1[data-split] { clip-path: inset(0% 0% 102% 0%); }

/* ---------- capitoli / sezioni ---------- */
.section { padding-block: clamp(5rem, 14vh, 11rem); }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 1rem 2.5rem;
  margin-bottom: clamp(2.5rem, 6vh, 5rem);
}

.section-head .num {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(2.4rem, 6vw, 5rem);
  color: var(--red);
  line-height: 1;
}

.section-head h2 {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: clamp(2.2rem, 6.5vw, 5.4rem);
  line-height: .95;
  letter-spacing: .01em;
}

.section-head .years {
  margin-left: auto;
  font-size: .95rem;
  color: var(--ink-soft);
  letter-spacing: .12em;
}

/* citazioni */
.quote {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(1.35rem, 3.1vw, 2.4rem);
  line-height: 1.35;
  max-width: 30ch;
  margin-block: 1em;
}
.quote em { color: var(--red); }

.quote-big {
  font-size: clamp(1.8rem, 4.6vw, 3.6rem);
  max-width: 22ch;
}

/* citazione a tutta larghezza, allineata a sinistra */
.quote-full {
  max-width: none;
  width: 100%;
  text-align: left;
}

/* testo a due colonne editoriali */
.prose { max-width: 62ch; }
.prose p + p { margin-top: 1.2em; }

.split-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}
@media (max-width: 760px) { .split-2 { grid-template-columns: 1fr; } }

/* figure d'archivio */
.figure { position: relative; }
.figure figcaption {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: .85rem;
  color: var(--grey);
  margin-top: .7rem;
}
.figure img { width: 100%; height: auto; background: var(--paper-deep); }

.img-reveal { overflow: hidden; position: relative; }
.img-reveal img { transform-origin: top; }

/* cornice d'archivio per foto b/n */
.archive { filter: grayscale(1) contrast(1.04); }
.photo-frame {
  border: 1px solid var(--line);
  padding: clamp(.5rem, 1.4vw, 1rem);
  background: #fff;
  box-shadow: 0 18px 40px -22px rgba(22,22,20,.35);
}

/* ---------- timeline home ---------- */
.timeline { position: relative; }

.timeline-track {
  display: flex;
  padding-inline: var(--pad-x);
  padding-block: 3rem 4rem;
  overflow-x: auto;
  scrollbar-width: none;
  border-block: 1px solid var(--line);
  scroll-snap-type: x proximity;
}
.timeline-track::-webkit-scrollbar { display: none; }

.tl-item {
  margin-right: clamp(2.5rem, 6vw, 7rem);
  min-width: min(320px, 78vw);
  scroll-snap-align: start;
  border-left: 1px solid var(--line);
  padding-left: 1.4rem;
  cursor: pointer;
  text-decoration: none;
  display: block;
}

.tl-item .tl-year {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1;
  color: var(--ink);
  transition: color .3s;
}
.tl-item:hover .tl-year { color: var(--red); }

.tl-item .tl-num {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--red);
  font-size: 1rem;
  display: block;
  margin-bottom: .4rem;
}

.tl-item h3 {
  font-size: .95rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin: .8rem 0 .4rem;
}
.tl-item p { font-size: .92rem; color: var(--ink-soft); max-width: 30ch; }

/* ---------- indice capitoli ---------- */
.inhalt { border-top: 1px solid var(--line); }
.inhalt-item {
  display: grid;
  grid-template-columns: 5rem 1fr auto;
  align-items: center;
  gap: 1.5rem;
  padding-block: 1.6rem;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  position: relative;
}
.inhalt-item .inhalt-num {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.6rem;
  color: var(--red);
}
.inhalt-item h3 {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: clamp(1.5rem, 4.2vw, 3rem);
  line-height: 1;
  transition: transform .45s var(--ease), color .3s;
}
.inhalt-item:hover h3 { transform: translateX(1.2rem); color: var(--red); }
.inhalt-item .inhalt-meta { font-size: clamp(1rem, 1.6vw, 1.4rem); color: var(--grey); letter-spacing: .08em; text-transform: uppercase; font-variant-numeric: tabular-nums; }

.hover-preview {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 40;
  width: min(320px, 30vw);
  aspect-ratio: 4 / 3;
  pointer-events: none;
  opacity: 0;
  transition: opacity .25s;
  overflow: hidden;
  border: 1px solid var(--paper);
  box-shadow: 0 30px 60px -20px rgba(22,22,20,.5);
}
/* mostra/nascondi via classe: niente tween, sempre affidabile */
.hover-preview.show { opacity: 1; }
/* preview al passaggio del mouse: solo su dispositivi con hover (desktop) */
@media (hover: none), (max-width: 900px) {
  .hover-preview { display: none; }
}
.hover-preview img {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .25s;
}
.hover-preview img.active { opacity: 1; }

/* ---------- contatori ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2px;
  background: var(--line);
  border-block: 1px solid var(--line);
}
.stat {
  position: relative;
  background: var(--paper);
  padding: clamp(2rem, 5vw, 4rem) clamp(1.2rem, 3vw, 2.5rem);
  overflow: hidden;
}
/* i contenuti restano sopra la grana */
.stat > * { position: relative; z-index: 1; }
.stat .stat-value {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 5rem);
  line-height: 1;
  display: block;
}
.stat .stat-value sup { font-size: .4em; color: var(--red); }
.stat .stat-label {
  display: block;
  margin-top: .8rem;
  font-size: .8rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ---------- sezione video pinned ---------- */
.video-pin {
  background: var(--ink);
  color: var(--paper);
}
.video-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #000;
}
.video-frame video { width: 100%; height: 100%; object-fit: cover; }
.video-frame .video-caption {
  position: absolute;
  left: var(--pad-x);
  bottom: 1.4rem;
  z-index: 2;
  font-size: .75rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(242,239,231,.85);
}

/* ---------- griglia copertine ---------- */
.covers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: clamp(1.4rem, 3vw, 2.8rem);
}
.covers .figure:nth-child(even) { margin-top: clamp(1.5rem, 4vw, 4rem); }

/* ---------- dedica ---------- */
.dedica {
  background: var(--ink);
  color: var(--paper);
}
/* dedica centrata: titolo al centro, testo sotto */
.dedica-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.dedica-center .quote { margin-block: .5em; }
.dedica-center .prose {
  max-width: 52ch;
  margin-top: 2.8rem;
}
.dedica .quote { color: var(--paper); }
.dedica .signature {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.05rem;
  color: rgba(242,239,231,.75);
  margin-top: 2.5rem;
  display: block;
}
.dedica .signature strong { color: var(--red); font-style: normal; letter-spacing: .1em; }

/* ---------- senza opera (desaturazione) ---------- */
.fade-words .w { color: var(--ink); transition: color .2s linear; }

/* ---------- pagine legali (privacy / cookie) ---------- */
.page-title {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: clamp(2.6rem, 8vw, 6rem);
  line-height: .95;
  margin: .6rem 0 1.8rem;
  /* parole lunghe tedesche (DATENSCHUTZERKLÄRUNG): spezza invece di uscire */
  overflow-wrap: anywhere;
  text-wrap: balance;
}
.prose h2 {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: clamp(1.25rem, 2.6vw, 1.8rem);
  line-height: 1.1;
  margin: 2.2em 0 .8em;
}
.prose ul {
  margin-block: 1em;
  padding-left: 1.2em;
}
.prose li { margin-top: .5em; }
.prose a { text-decoration: underline; text-underline-offset: .2em; }

/* ---------- banner privacy / cookie ---------- */
/* Nessun cookie di tracciamento sul sito: il banner è solo informativo.
   Una volta confermato, la scelta resta nel localStorage (lh-consent).
   Design: piccola card in basso a destra, tono editoriale/emotivo. */
.consent-banner {
  position: fixed;
  right: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 2rem);
  z-index: 90;
  width: min(370px, calc(100vw - 2rem));
  padding: 1.6rem 1.6rem 1.5rem;
  background: var(--ink);
  color: var(--paper);
  box-shadow: 0 30px 70px -28px rgba(22, 22, 20, .65);
  border-top: 2px solid var(--red);
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.consent-banner.show { opacity: 1; transform: none; }

.consent-banner .cb-label {
  display: block;
  font-size: .66rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  font-weight: 600;
  color: rgba(242, 239, 231, .6);
  margin-bottom: .8rem;
}
.consent-banner .cb-label::before {
  content: "";
  display: inline-block;
  width: 2.2em;
  height: 1px;
  background: var(--red);
  vertical-align: middle;
  margin-right: .9em;
  transform: translateY(-.08em);
}

/* il tono emotivo: serif corsivo, come le citazioni del libro */
.consent-banner .cb-text {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 300;
  font-size: 1.02rem;
  line-height: 1.55;
  color: rgba(242, 239, 231, .92);
}
.consent-banner .cb-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .9rem 1rem;
  margin-top: 1.2rem;
}
.consent-banner .cb-links { display: flex; gap: 1rem; }
.consent-banner .cb-link {
  font-size: .62rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 1px solid rgba(242, 239, 231, .35);
  padding-bottom: .15em;
  color: rgba(242, 239, 231, .7);
  transition: color .3s, border-color .3s;
}
.consent-banner .cb-link:hover { color: var(--paper); border-color: var(--red); }
.consent-banner .cb-accept {
  font-size: .72rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-weight: 600;
  padding: .75em 1.4em;
  background: var(--red);
  color: #fff;
  transition: background .3s, transform .3s var(--ease);
}
.consent-banner .cb-accept:hover {
  background: #b01e24;
  transform: translateY(-2px);
}

@media (max-width: 700px) {
  .consent-banner {
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    width: auto;
    padding: 1.3rem 1.3rem 1.2rem;
  }
}

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding-block: clamp(3.5rem, 9vh, 7rem) 2rem;
}
.site-footer .footer-quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.2rem, 2.6vw, 1.9rem);
  max-width: 28ch;
}
.site-footer .footer-quote cite {
  display: block;
  font-style: normal;
  font-family: var(--font-sans);
  font-size: .75rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  margin-top: 1.2rem;
  color: var(--grey);
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  margin-top: clamp(3rem, 8vh, 6rem);
  font-size: .78rem;
  color: var(--grey);
  letter-spacing: .06em;
}
.footer-bottom a { text-decoration: none; }
.footer-bottom a:hover { color: var(--red); }

/* ---------- next chapter ---------- */
.next-chapter {
  display: block;
  position: relative;
  text-decoration: none;
  padding-block: clamp(4rem, 10vh, 8rem);
  text-align: center;
  background: var(--paper-deep);
  overflow: hidden;
}
/* i contenuti restano sopra la grana */
.next-chapter > * { position: relative; z-index: 1; }
.noise-band {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  opacity: .07;
  pointer-events: none;
}
.next-chapter .label { justify-content: center; }
.next-chapter h2 {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: clamp(2.6rem, 9vw, 8rem);
  line-height: 1;
  transition: color .35s;
}
.next-chapter:hover h2 { color: var(--red); }

/* ---------- transizione pagina ---------- */
.page-transition {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
  background: var(--red);
  transform: translateY(102%);
  pointer-events: none;
  display: grid;
  place-items: center;
}
.page-transition .pt-num {
  font-family: var(--font-display);
  font-size: clamp(10rem, 44vw, 34rem);
  line-height: 1;
  color: var(--paper);
  opacity: .9;
}

/* ---------- preloader ---------- */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 120;
  background: var(--ink);
  color: var(--paper);
  display: grid;
  place-items: center;
}
.preloader .pre-num {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(7rem, 30vw, 22rem);
  line-height: 1;
  color: var(--red);
}

/* senza JS il preloader non deve mai bloccare la pagina */
html:not(.js) .preloader { display: none; }

/* ---------- cursore personalizzato (solo desktop con mouse) ---------- */
html.has-cursor * { cursor: none !important; }
.cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9990; /* sopra tutto, anche la tendina di transizione */
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--red);
  mix-blend-mode: difference; /* le scritte che passano sotto cambiano colore nel pallino */
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: transform .25s ease, width .25s ease, height .25s ease;
}
.cursor.grow { transform: translate(-50%, -50%) scale(7); }
/* sulle foto il pallino si allarga e dice »zoom« */
.cursor .lbl {
  display: block;
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #fff;
  text-align: center;
  line-height: 1;
  opacity: 0;
  transition: opacity .2s;
}
/* sulle foto il pallino cresce in larghezza reale: la scritta resta dentro */
.cursor.show-label {
  transform: translate(-50%, -50%);
  width: 104px;
  height: 104px;
}
.cursor.show-label .lbl { opacity: 1; }

/* ---------- zoom fotografico al click (+30%) ---------- */
.img-zoom-host { position: relative; overflow: hidden; }
.img-zoom-host img { will-change: transform; }
.img-zoom-host img { transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
.img-zoom-host img.zoomed { transform: scale(1.3) !important; }
@media (prefers-reduced-motion: reduce) {
  .img-zoom-host img { transition: none; }
}
@media (prefers-reduced-motion: reduce) {
  .cursor { transition: none; }
}
/* effetto magnete sulle voci del menu (testo che segue il cursore) */
html.has-cursor .site-nav a {
  transition: transform .15s ease-out;
  will-change: transform;
}

/* ---------- preloader home: polaroid lanciate al centro, % in basso a destra ---------- */
.preloader-home {
  display: block;
  overflow: hidden;
}
/* pila di polaroid: ogni foto parte dal centro e viene "lanciata" fuori,
   atterrando ruotata in un punto diverso del mucchio */
.pre-stack {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
}
.pol {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  width: max-content; /* lo stack è un punto 0x0: la card non deve collassare */
  background: #fff;
  padding: .55rem .55rem 1.35rem;
  box-shadow: 0 20px 40px -16px rgba(0, 0, 0, .55);
  opacity: 0;
}
/* atterraggio diverso per ogni polaroid: posizione + rotazione propria */
.pol:nth-child(1) { --x: -111px; --y: -72px; --r:  -8deg; }
.pol:nth-child(2) { --x:   87px; --y: -93px; --r:   5deg; }
.pol:nth-child(3) { --x:  126px; --y:  63px; --r:  -4deg; }
.pol:nth-child(4) { --x:  -87px; --y:  87px; --r:   9deg; }
.pol:nth-child(5) { --x:   24px; --y: -27px; --r:  -3deg; }
.pol:nth-child(6) { --x:  -24px; --y:  36px; --r:   6deg; }
.pol img {
  width: 375px;
  height: 250px;
  object-fit: cover;
  filter: grayscale(1) contrast(1.06);
  pointer-events: none;
  display: block;
}
@media (prefers-reduced-motion: no-preference) {
  .pol {
    animation: pre-throw .75s cubic-bezier(.16, 1.1, .3, 1) both;
  }
  .pol:nth-child(1) { animation-delay: .15s; }
  .pol:nth-child(2) { animation-delay: .5s; }
  .pol:nth-child(3) { animation-delay: .85s; }
  .pol:nth-child(4) { animation-delay: 1.2s; }
  .pol:nth-child(5) { animation-delay: 1.55s; }
  .pol:nth-child(6) { animation-delay: 1.9s; }
}
@keyframes pre-throw {
  from { opacity: 0; transform: translate(-50%, -50%) scale(.55) rotate(-14deg); }
  18%  { opacity: 1; }
  to   { opacity: 1; transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y))) scale(1) rotate(var(--r)); }
}

/* percentuale enorme, ancorata in basso a destra */
.pre-count {
  position: absolute;
  right: var(--pad-x);
  bottom: .6rem;
  z-index: 2;
  font-family: var(--font-display);
  font-size: clamp(6rem, 17vw, 16rem);
  line-height: .85;
  color: var(--paper);
  font-variant-numeric: tabular-nums;
}
.pre-count .pre-pct { color: var(--red); font-size: .38em; margin-left: .05em; }


/* tagline: angolo alto a sinistra, come una d'interludio del cinema */
.pre-foot {
  position: absolute;
  top: 2.2rem;
  left: var(--pad-x);
  z-index: 2;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: .92rem;
  color: rgba(242, 239, 231, .55);
  max-width: 30ch;
  margin: 0;
  padding: 0;
}

/* data e ora reali, in alto a destra, aggiornate ogni secondo */
.pre-datetime {
  position: absolute;
  top: 2.3rem;
  right: var(--pad-x);
  z-index: 2;
  margin: 0;
  padding: 0;
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(242, 239, 231, .6);
  font-variant-numeric: tabular-nums;
  text-align: right;
}

/* grana pellicola del preloader */
.pre-noise {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  opacity: .07;
  pointer-events: none;
}

@media (max-width: 700px) {
  .pol img { width: 252px; height: 168px; }
  .pol { padding: .55rem .55rem 1.15rem; }
  /* atterraggi più ravvicinati su schermi piccoli */
  .pol:nth-child(1) { --x: -72px; --y: -48px; }
  .pol:nth-child(2) { --x:  57px; --y: -63px; }
  .pol:nth-child(3) { --x:  81px; --y:  42px; }
  .pol:nth-child(4) { --x: -57px; --y:  57px; }
  .pol:nth-child(5) { --x:  15px; --y: -18px; }
  .pol:nth-child(6) { --x: -18px; --y:  24px; }
}

/* ---------- stati reveal (solo con JS) — nascosti dal primo paint ---------- */
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(34px);
}
html.js .img-reveal { clip-path: inset(0% 0% 100% 0%); }
html.js .img-reveal img { scale: 1.14; }
html.js .quote { opacity: 0; transform: translateY(30px); }
html.js .tl-item { opacity: 0; transform: translateY(40px); }

/* ---------- rumore pellicola (canvas), stile vecchio cinema ---------- */
/* z-index -1: il rumore sta SOTTO testi e immagini (tranne la hero di home:
   .hero-media è a -2, quindi lì la grana scava sull'immagine).
   Semplice e stabile. */
.film-noise {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
  opacity: .07;
}

/* ---------- fallback aspect-ratio (Safari < 15, browser vecchi) ---------- */
@supports not (aspect-ratio: 1) {
  .hover-preview { padding-top: 75%; }              /* 4/3 */
  .video-frame { padding-top: 56.25%; height: 0; }  /* 16/9 */
  .video-frame video {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
  }
}
