/* ==========================================================================
   Sistema di design — carta, inchiostro, accento.
   I valori (colori, scale tipografiche, spaziature, raggi) replicano il mockup.
   ========================================================================== */

:root {
  --carta: #F3EEE4;
  --inchiostro: #1C1A17;
  --accento: #8C2F1F;
  --superficie: #ECE5D7;
  --testo: #45403A;
  --testo-forte: #2A2723;
  --tenue: #6B655B;
  --tenue-chiaro: #B8B0A0;
  --crema-tenue: #CFC7B8;
  --bordo: rgba(28, 26, 23, 0.14);
  --bordo-forte: rgba(28, 26, 23, 0.22);
  --bordo-scuro: rgba(243, 238, 228, 0.16);
  --serif: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  --lettura: 'Newsreader', Georgia, 'Times New Roman', serif;
  --sans: 'Geist', 'Helvetica Neue', system-ui, -apple-system, sans-serif;
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1360px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-sipario: cubic-bezier(0.77, 0, 0.18, 1);
  --vw: 100vw;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  background: var(--carta);
  color: var(--inchiostro);
  font-family: var(--sans);
  font-size: 16px;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: rgba(28, 26, 23, 0.08); }
button { font-family: inherit; -webkit-tap-highlight-color: rgba(28, 26, 23, 0.08); }
img, svg, video { max-width: 100%; }
::selection { background: var(--inchiostro); color: var(--carta); }
input::placeholder { color: #8F8778; }
input:focus { outline: none; }

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

.salta-al-contenuto {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  padding: 14px 20px;
  background: var(--inchiostro);
  color: var(--carta);
  font-size: 14px;
}
.salta-al-contenuto:focus { left: 12px; top: 12px; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

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

/* --------------------------------------------------------------------------
   Grana della carta
   -------------------------------------------------------------------------- */
.grana {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 90;
  opacity: 0.07;
}

/* --------------------------------------------------------------------------
   Animazioni di base
   -------------------------------------------------------------------------- */
@keyframes sale { from { transform: translateY(115%); } to { transform: translateY(0); } }
@keyframes sfuma-su { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes cresce { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes gira { to { transform: rotate(360deg); } }
@keyframes scarabocchio { from { stroke-dashoffset: 420; } to { stroke-dashoffset: 0; } }
@keyframes apre-clip { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes pulsa { 0% { box-shadow: 0 0 0 0 rgba(226, 85, 58, 0.6); } 100% { box-shadow: 0 0 0 10px rgba(226, 85, 58, 0); } }

/* Animazioni d'ingresso.
   Regola di sicurezza: il contenuto e' visibile per impostazione predefinita e
   le animazioni si attivano solo con [data-intro="on"], che lo script in <head>
   accende quando puo' davvero farle partire. Senza JavaScript, con «riduci
   movimento» o con le animazioni spente dal pannello, testata e apertura si
   vedono subito invece di restare nascoste dietro un'animazione ritardata. */
.mask { display: inline-flex; overflow: hidden; padding: 0.1em 0.05em 0.04em; margin: 0 -0.05em; }
.sale { display: inline-block; }
.ln { display: block; overflow: hidden; padding: 0.04em 0 0.12em; margin-bottom: -0.12em; }
.ln > span { display: block; }
.traccia { transform-origin: center; }
.scarabocchio { stroke-dasharray: 420; }

[data-intro="on"] .sale { animation: sale 1.1s var(--ease) both; }
[data-intro="on"] .ln > span { animation: sale 1.2s var(--ease) both; }
[data-intro="on"] .fu { animation: sfuma-su 1.1s var(--ease) both; }
[data-intro="on"] .traccia { animation: cresce 1.6s cubic-bezier(0.65, 0, 0.35, 1) both; }
[data-intro="on"] .scarabocchio { animation: scarabocchio 1.3s cubic-bezier(0.65, 0, 0.35, 1) both; }
[data-intro="on"] .apre { animation: apre-clip 1.7s var(--ease-sipario) both; }
.ruota { animation: gira 24s linear infinite; }
.ruota-veloce { animation: gira 9s linear infinite; }
.punto-live { animation: pulsa 1.6s ease-out infinite; }

/* Rivelazioni allo scroll: pilotate da IntersectionObserver (funziona ovunque,
   iOS compreso, al contrario di animation-timeline). */
.sr { opacity: 0; transform: translateY(56px); transition: opacity 0.9s var(--ease), transform 1s var(--ease); }
.sr.visibile { opacity: 1; transform: none; }
.sr-img { clip-path: inset(14% 7% 14% 7%); transition: clip-path 1.2s var(--ease); }
.sr-img.visibile { clip-path: inset(0 0 0 0); }
.sr-riga > span { display: block; transform: translateY(110%); transition: transform 1.1s var(--ease); }
.sr-riga.visibile > span { transform: none; }
.sr-riga:nth-child(2) > span { transition-delay: 0.1s; }

/* --------------------------------------------------------------------------
   Sipario di apertura
   -------------------------------------------------------------------------- */
.sipario { display: none; }
[data-intro="on"] .sipario {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--inchiostro);
  color: var(--carta);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: var(--gutter);
  text-align: center;
  transform: translateY(-101%);
  animation: sipario 0.95s var(--ease-sipario) 1.1s both;
  pointer-events: none;
}
@keyframes sipario { from { transform: translateY(0); } to { transform: translateY(-101%); } }
.sipario-barra { width: min(200px, 60vw); height: 1px; background: rgba(243, 238, 228, 0.18); overflow: hidden; }
.sipario-barra span { display: block; height: 1px; background: var(--carta); transform-origin: left center; animation: cresce 1s cubic-bezier(0.65, 0, 0.35, 1) 0.1s both; }
.sipario-nome { display: flex; flex-wrap: wrap; justify-content: center; font-family: var(--serif); font-size: clamp(34px, 9vw, 88px); line-height: 1; letter-spacing: -0.02em; }
.sipario-cap { font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--tenue-chiaro); }
.sipario-edizione { font-size: 11px; letter-spacing: 0.26em; color: var(--tenue-chiaro); }

@property --pc { syntax: '<integer>'; inherits: false; initial-value: 100; }
.contatore {
  font-family: var(--serif);
  font-size: clamp(64px, 14vw, 150px);
  line-height: 0.8;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  --pc: 100;
  counter-reset: pc var(--pc);
  animation: conta 1.05s cubic-bezier(0.65, 0, 0.35, 1) 0.05s both;
}
.contatore::after { content: counter(pc); }
@keyframes conta { from { --pc: 0; } to { --pc: 100; } }

/* --------------------------------------------------------------------------
   Testata
   -------------------------------------------------------------------------- */
.hdr { position: sticky; top: 0; z-index: 50; }
.hdr-sfondo {
  position: absolute;
  inset: 0;
  background: rgba(243, 238, 228, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(28, 26, 23, 0.12);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.hdr.attaccata .hdr-sfondo { opacity: 1; }
.hdr-scuro .hdr-sfondo { background: rgba(28, 26, 23, 0.9); border-bottom-color: rgba(243, 238, 228, 0.14); }

.hdr-barra {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  padding: 10px var(--gutter);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
}
.hdr-barra > * { min-width: 0; }
.hdr-nome {
  font-family: var(--serif);
  font-size: clamp(17px, 4.4vw, 26px);
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  justify-self: center;
  display: flex;
  align-items: center;
  min-height: 44px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s ease, transform 0.5s var(--ease);
}
.hdr.attaccata .hdr-nome { opacity: 1; transform: none; }
.hdr-azioni { justify-self: end; display: flex; align-items: center; gap: 8px; }
.hdr-progresso { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; }
.hdr-progresso i { display: block; height: 2px; background: var(--accento); transform-origin: left center; transform: scaleX(0); }

/* --------------------------------------------------------------------------
   Bottoni
   -------------------------------------------------------------------------- */
.btn {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid var(--bordo-forte);
  background: transparent;
  color: var(--inchiostro);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  transition: color 0.5s var(--ease);
}
.btn::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: var(--inchiostro);
  transform: translateY(102%);
  transition: transform 0.6s var(--ease-sipario);
  z-index: -1;
}
.btn-grande { min-height: 56px; padding: 0 28px; font-size: 15px; }
.btn-pieno { background: var(--inchiostro); color: var(--carta); border-color: var(--inchiostro); font-weight: 500; }
.btn-pieno::before { background: #E4DACA; }
.btn-crema { background: var(--carta); color: var(--inchiostro); border: 0; font-weight: 500; }
.btn-crema::before { background: var(--accento); }
.btn-scuro { border-color: rgba(243, 238, 228, 0.3); color: var(--carta); }
.btn-scuro::before { background: var(--carta); }
.btn-icona { width: 44px; min-height: 44px; padding: 0; }
.arr { transition: transform 0.5s var(--ease); flex: 0 0 auto; }

@media (hover: hover) and (pointer: fine) {
  .btn:hover::before { transform: translateY(0); }
  .btn:hover { color: var(--carta); }
  .btn-pieno:hover, .btn-scuro:hover { color: var(--inchiostro); }
  .btn-crema:hover { color: var(--carta); }
  .btn:hover .arr, a:hover .arr { transform: translateX(5px); }
}
.btn:active { transform: scale(0.985); }

/* Equalizzatore del bottone "ascolta" */
.eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 14px; flex: 0 0 auto; }
.eq i { display: block; width: 2px; background: currentColor; border-radius: 1px; }
.eq i:nth-child(1) { height: 6px; }
.eq i:nth-child(2) { height: 11px; }
.eq i:nth-child(3) { height: 4px; }
.eq i:nth-child(4) { height: 9px; }
.attiva .eq i { animation: eq 0.8s ease-in-out infinite alternate; }
.attiva .eq i:nth-child(2) { animation-delay: -0.3s; }
.attiva .eq i:nth-child(3) { animation-delay: -0.55s; }
.attiva .eq i:nth-child(4) { animation-delay: -0.15s; }
@keyframes eq { from { height: 3px; } to { height: 14px; } }

/* Sottolineatura animata */
.u {
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0% 1px;
  transition: background-size 0.8s var(--ease);
}
@media (hover: hover) and (pointer: fine) {
  a:hover .u, .card:hover .u { background-size: 100% 1px; }
}

/* --------------------------------------------------------------------------
   Riga di data / navigazione sezioni / testata gigante
   -------------------------------------------------------------------------- */
.riga-data {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 24px;
  padding: 14px 0;
  border-bottom: 1px solid var(--bordo);
  font-size: clamp(10px, 2.4vw, 11px);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #5A554C;
}

.testata-gigante {
  margin: 0;
  padding: clamp(14px, 2vw, 26px) 0 clamp(6px, 1vw, 12px);
  display: flex;
  justify-content: center;
  font-family: var(--serif);
  font-weight: 400;
  /* La dimensione si adatta al numero di lettere, cosi' il nome non va mai a capo
     ne' sborda. Attenzione: in font-size una percentuale si riferisce al font del
     genitore, non alla larghezza — serve per forza una misura di viewport. */
  font-size: min(
    15.5vw,
    236px,
    calc((min(var(--vw, 100vw), var(--max)) - 2 * var(--gutter)) / (var(--lettere, 12) * 0.46))
  );
  line-height: 0.86;
  letter-spacing: -0.035em;
  white-space: nowrap;
}

.filetto { height: 1px; background: var(--inchiostro); }

.nav-sezioni {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px clamp(14px, 3vw, 44px);
  padding: 12px 0;
  border-bottom: 1px solid var(--bordo);
  font-size: clamp(11px, 2.6vw, 12px);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.nav-sezioni a { padding: 6px 2px; }

/* --------------------------------------------------------------------------
   Apertura (hero)
   -------------------------------------------------------------------------- */
.apertura {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(460px, 100%), 1fr));
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
  padding-block: clamp(40px, 6vw, 96px) clamp(64px, 8vw, 120px);
}
.apertura-testo { display: flex; flex-direction: column; gap: clamp(20px, 3vw, 30px); min-width: 0; }
.occhiello {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  font-size: clamp(11px, 2.6vw, 12px);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.occhiello i { display: block; width: 28px; height: 1px; background: var(--accento); }
.occhiello b { color: var(--accento); font-weight: 500; }
.occhiello span { color: var(--tenue); }

.titolo-apertura {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(44px, 7vw, 116px);
  line-height: 0.92;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.titolo-apertura em { color: var(--accento); }

.sommario {
  margin: 0;
  font-family: var(--lettura);
  font-size: clamp(18px, 1.7vw, 25px);
  line-height: 1.45;
  color: var(--testo);
  max-width: 34ch;
  text-wrap: pretty;
}

.firma { display: flex; align-items: center; gap: 14px; }
.tondo-iniziali {
  flex: 0 0 auto;
  width: 46px; height: 46px;
  border-radius: 999px;
  background: var(--inchiostro);
  color: var(--carta);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif);
  font-size: 19px;
}
.firma-testo { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.firma-testo b { font-size: 15px; font-weight: 400; }
.firma-testo span { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--tenue); }

.azioni { display: flex; flex-wrap: wrap; gap: 10px; }

.copertina-apertura {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 4px;
  background: #16120F;
}
.copertina-apertura img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sigillo {
  position: absolute;
  left: 50%;
  bottom: -46px;
  transform: translateX(-50%);
  width: 150px; height: 150px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--carta);
  box-shadow: 0 20px 50px rgba(28, 26, 23, 0.18);
}

/* --------------------------------------------------------------------------
   Illustrazione di copertina (la citta' di notte)
   -------------------------------------------------------------------------- */
.illu { position: absolute; inset: 0; transform: scale(1.08); animation: respira 26s ease-in-out infinite alternate; }
.illu svg { display: block; width: 100%; height: 100%; }
@keyframes respira { from { transform: scale(1.04); } to { transform: scale(1.18) translate(-1.5%, -1%); } }

.tw { animation: scintilla 3.2s ease-in-out infinite alternate; }
@keyframes scintilla { from { opacity: 0.15; } to { opacity: 1; } }
.finestra { animation: finestra 9s steps(1, end) infinite; }
@keyframes finestra { 0% { opacity: 1; } 55% { opacity: 0.12; } 70% { opacity: 1; } 88% { opacity: 0.12; } }
.scia { animation: scia 7s linear infinite; }
@keyframes scia { from { transform: translateX(0); } to { transform: translateX(1700px); } }
.scia-ind { animation: scia-ind 9s linear infinite; }
@keyframes scia-ind { from { transform: translateX(0); } to { transform: translateX(-1700px); } }
.nuvola { animation: nuvola 38s ease-in-out infinite alternate; }
@keyframes nuvola { from { transform: translateX(-120px); } to { transform: translateX(160px); } }
.bagliore { animation: bagliore 5s ease-in-out infinite alternate; }
@keyframes bagliore { from { opacity: 0.55; } to { opacity: 1; } }

.segno-ora {
  position: absolute;
  left: 18px; top: 18px;
  display: flex; align-items: center; gap: 10px;
  font-size: 11px; letter-spacing: 0.22em;
  color: rgba(243, 238, 228, 0.82);
}

/* --------------------------------------------------------------------------
   Striscia ultime notizie
   -------------------------------------------------------------------------- */
.striscia { background: var(--inchiostro); color: var(--carta); }
.striscia-interno { display: flex; align-items: stretch; }
.striscia-eti {
  flex: 0 0 auto;
  position: relative;
  z-index: 1;
  background: var(--inchiostro);
  padding: 18px var(--gutter);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: clamp(10px, 2.4vw, 11px);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  border-right: 1px solid rgba(243, 238, 228, 0.14);
}
.striscia-eti i { width: 7px; height: 7px; border-radius: 999px; background: #E2553A; }
.striscia-pista { flex: 1; min-width: 0; overflow: hidden; display: flex; align-items: center; }
.mq { display: flex; align-items: center; width: max-content; animation: mq 48s linear infinite; }
.mq-lento { animation-duration: 80s; }
@keyframes mq { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (hover: hover) { .mq:hover { animation-play-state: paused; } }
.striscia a {
  padding: 0 clamp(16px, 4vw, 28px);
  font-family: var(--serif);
  font-size: clamp(20px, 4.6vw, 26px);
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Intestazioni di sezione
   -------------------------------------------------------------------------- */
.sez { padding-block: clamp(56px, 9vw, 140px) clamp(44px, 7vw, 100px); }
.sez-stretta { padding-block: 0 clamp(56px, 9vw, 140px); }

.sez-testa {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--inchiostro);
}
.sez-titolo {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(32px, 5vw, 50px);
  line-height: 1;
  letter-spacing: -0.015em;
}
.sez-titolo-grande {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(40px, 6vw, 96px);
  line-height: 0.95;
  letter-spacing: -0.025em;
}
.sez-nota { margin: 0; max-width: 32ch; font-family: var(--lettura); font-size: clamp(17px, 2vw, 19px); line-height: 1.5; color: var(--testo); }
.sez-link { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; min-height: 44px; }

/* --------------------------------------------------------------------------
   Card articolo
   -------------------------------------------------------------------------- */
.griglia-storie { display: flex; flex-wrap: wrap; gap: clamp(32px, 4vw, 56px); margin-top: clamp(32px, 5vw, 72px); }
.col-principale { flex: 1.35 1 520px; min-width: 0; }
.col-secondaria { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: clamp(32px, 4vw, 52px); }

.card { display: flex; flex-direction: column; gap: clamp(14px, 2vw, 22px); min-width: 0; }
.card-figura {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  aspect-ratio: 4 / 3;
  background: var(--tono, #C9BBA3);
}
.card-figura.larga { aspect-ratio: 16 / 10; }
.card-figura img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.card-figura .segno {
  position: absolute;
  left: 16px; bottom: 14px;
  font-size: 11px;
  letter-spacing: 0.22em;
  color: rgba(28, 26, 23, 0.72);
}
@media (hover: hover) and (pointer: fine) {
  .card:hover .card-figura img { transform: scale(1.06); }
}
.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-size: clamp(11px, 2.6vw, 12px);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.card-meta b { color: var(--accento); font-weight: 500; }
.card-meta span { color: var(--tenue); }
.card-titolo {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(28px, 3.4vw, 54px);
  line-height: 1.04;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.card-titolo-piccolo { font-size: clamp(24px, 2.4vw, 36px); line-height: 1.05; }
.card-testo { margin: 0; font-family: var(--lettura); font-size: clamp(17px, 2vw, 19px); line-height: 1.5; color: var(--testo); max-width: 46ch; }
.card-data { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--tenue); }
.card-corpo { display: flex; flex-direction: column; gap: clamp(10px, 1.4vw, 14px); }

/* --------------------------------------------------------------------------
   Righe archivio
   -------------------------------------------------------------------------- */
.riga {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 28px);
  padding: clamp(16px, 2.4vw, 24px) 0;
  border-bottom: 1px solid var(--bordo);
}
.riga-num { flex: 0 0 auto; width: clamp(26px, 6vw, 40px); font-size: 13px; letter-spacing: 0.1em; color: var(--tenue); font-variant-numeric: tabular-nums; }
.riga-miniatura {
  flex: 0 0 auto;
  width: 0;
  height: 84px;
  border-radius: 3px;
  background: var(--tono, #C9BBA3);
  opacity: 0;
  overflow: hidden;
  transition: width 0.8s var(--ease), opacity 0.4s ease;
}
.riga-miniatura img { width: 100%; height: 100%; object-fit: cover; }
.riga-titolo {
  flex: 1;
  min-width: 0;
  font-family: var(--serif);
  font-size: clamp(22px, 3.4vw, 42px);
  line-height: 1.06;
  letter-spacing: -0.01em;
  transition: transform 0.8s var(--ease);
}
.riga-cat { flex: 0 0 150px; font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accento); }
/* .riga-quando, non .riga-data: quel nome e' gia' della riga di data in testata. */
.riga-quando { flex: 0 0 120px; font-size: 13px; color: var(--tenue); }
.riga-freccia {
  flex: 0 0 auto;
  width: 44px; height: 44px;
  border-radius: 999px;
  border: 1px solid var(--bordo-forte);
  display: grid; place-items: center;
  transition: transform 0.6s var(--ease), background-color 0.4s, color 0.4s;
}
@media (hover: hover) and (pointer: fine) {
  .riga:hover .riga-miniatura { width: 128px; opacity: 1; }
  .riga:hover .riga-titolo { transform: translateX(10px); }
  .riga:hover .riga-freccia { transform: rotate(-45deg); background: var(--inchiostro); color: var(--carta); }
  .fx .riga .riga-miniatura { display: none; }
}

/* --------------------------------------------------------------------------
   Citazione in evidenza
   -------------------------------------------------------------------------- */
.conversazione { background: var(--superficie); border-top: 1px solid rgba(28, 26, 23, 0.12); border-bottom: 1px solid rgba(28, 26, 23, 0.12); }
.conversazione-interno {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(64px, 10vw, 160px) var(--gutter);
  display: flex;
  flex-wrap: wrap;
  gap: clamp(32px, 5vw, 72px);
  align-items: flex-start;
}
.conversazione-lato { flex: 1 1 200px; display: flex; flex-direction: column; gap: 28px; }
.etichetta { font-size: clamp(11px, 2.6vw, 12px); letter-spacing: 0.22em; text-transform: uppercase; color: #5A554C; }
.bollo { position: relative; width: 156px; height: 156px; display: grid; place-items: center; }
.bollo svg { position: absolute; inset: 0; }
.bollo .virgoletta { font-family: var(--serif); font-size: 88px; line-height: 0.6; padding-top: 28px; color: var(--accento); }
.conversazione-corpo { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: clamp(24px, 4vw, 40px); }
.citazione-grande {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(30px, 4.6vw, 76px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-wrap: balance;
  color: #C9C0AF;
  transition: color 1s ease;
}
.citazione-grande.visibile { color: var(--inchiostro); }
.citazione-grande em { font-style: italic; }
.citazione-fonte { font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--accento); }

/* --------------------------------------------------------------------------
   Esplora per sezione
   -------------------------------------------------------------------------- */
.tema {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: clamp(8px, 1.6vw, 22px) 0;
  border-bottom: 1px solid var(--bordo);
}
.tema-parola {
  display: inline-block;
  font-family: var(--serif);
  font-size: clamp(38px, 8.4vw, 132px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  transition: transform 0.9s var(--ease);
}
.tema-nota {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--lettura);
  font-size: 19px;
  color: var(--testo);
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity 0.5s ease, transform 0.8s var(--ease);
}
@media (hover: hover) and (pointer: fine) {
  .tema:hover .tema-parola { transform: translateX(26px); font-style: italic; }
  .tema:hover .tema-nota { opacity: 1; transform: none; }
}
.tema-conteggio { font-size: 12px; letter-spacing: 0.16em; color: var(--tenue); }

/* --------------------------------------------------------------------------
   Newsletter
   -------------------------------------------------------------------------- */
.scura { position: relative; overflow: hidden; background: var(--inchiostro); color: var(--carta); }
.scura .etichetta { color: var(--tenue-chiaro); }
.faro { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 0.6s ease; }
.stella-sfondo { position: absolute; opacity: 0.08; }

.newsletter-interno {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(64px, 10vw, 150px) var(--gutter);
  display: flex;
  flex-wrap: wrap;
  gap: clamp(32px, 5vw, 80px);
  align-items: flex-end;
}
.newsletter-testo { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.newsletter-titolo {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(40px, 8vw, 132px);
  line-height: 0.94;
  letter-spacing: -0.03em;
}
.newsletter-testo p { margin: 0; max-width: 42ch; font-family: var(--lettura); font-size: clamp(17px, 2.2vw, 20px); line-height: 1.55; color: var(--crema-tenue); }

.modulo { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.campo { position: relative; display: flex; flex-direction: column; gap: 8px; }
.campo label { font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--tenue-chiaro); }
.campo input {
  height: 58px;
  padding: 0;
  border: 0;
  border-bottom: 1px solid rgba(243, 238, 228, 0.3);
  background: transparent;
  color: var(--carta);
  font-family: var(--lettura);
  font-size: clamp(20px, 5vw, 26px);
  width: 100%;
  border-radius: 0;
  -webkit-appearance: none;
}
.campo .filo { position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--carta); transform: scaleX(0); transform-origin: left center; transition: transform 0.8s var(--ease); }
.campo:focus-within .filo { transform: scaleX(1); }
.modulo-nota { font-size: 13px; color: var(--tenue-chiaro); }
.modulo-esito { font-size: 14px; min-height: 1.2em; }
.modulo-esito.ok { color: #BFD8C0; }
.modulo-esito.errore { color: #F0A58F; }

/* --------------------------------------------------------------------------
   Piede
   -------------------------------------------------------------------------- */
.piede-striscia { overflow: hidden; padding: clamp(28px, 5vw, 64px) 0; border-bottom: 1px solid var(--bordo); }
.piede-parola { padding: 0 0.3em; font-family: var(--serif); font-size: clamp(56px, 12vw, 190px); line-height: 1; letter-spacing: -0.03em; white-space: nowrap; }
.contorno { color: transparent; -webkit-text-stroke: 1px var(--inchiostro); font-style: italic; }

.piede-interno { max-width: var(--max); margin: 0 auto; padding: clamp(32px, 5vw, 48px) var(--gutter) 32px; display: flex; flex-direction: column; gap: clamp(28px, 4vw, 48px); }
.piede-alto { display: flex; flex-wrap: wrap; justify-content: space-between; gap: clamp(24px, 4vw, 40px); }
.piede-bio { margin: 0; max-width: 34ch; font-family: var(--lettura); font-size: clamp(17px, 2.2vw, 20px); line-height: 1.5; color: var(--testo); }
.piede-colonne { display: flex; flex-wrap: wrap; gap: clamp(28px, 5vw, 56px); font-size: 15px; }
.piede-colonna { display: flex; flex-direction: column; gap: 10px; }
.piede-colonna b { font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--tenue); font-weight: 400; }
.piede-colonna a { padding: 3px 0; }
.piede-basso {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding-top: 20px;
  border-top: 1px solid rgba(28, 26, 23, 0.12);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--tenue);
}

/* --------------------------------------------------------------------------
   Menu a tutto schermo
   -------------------------------------------------------------------------- */
.menu {
  position: fixed;
  inset: 0;
  z-index: 95;
  background: var(--inchiostro);
  color: var(--carta);
  display: flex;
  flex-direction: column;
  padding: 0 var(--gutter);
  padding-bottom: env(safe-area-inset-bottom);
  overflow-y: auto;
  overscroll-behavior: contain;
  animation: menu-entra 0.9s var(--ease-sipario) both;
}
@keyframes menu-entra { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
.menu[hidden] { display: none; }
.menu-testa { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid rgba(243, 238, 228, 0.14); }
.menu-nome { font-family: var(--serif); font-size: clamp(20px, 5vw, 26px); }
.menu-nav { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 2px; padding: clamp(24px, 6vw, 48px) 0; }
.menu-voce { display: block; overflow: hidden; }
.menu-voce > span {
  display: inline-block;
  font-family: var(--serif);
  font-size: clamp(36px, 8vw, 112px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  animation: sale 1s var(--ease) both;
  transition: transform 0.7s var(--ease);
}
@media (hover: hover) and (pointer: fine) {
  .menu-voce:hover > span { font-style: italic; transform: translateX(16px); }
}
.menu-voce-tenue > span { color: var(--crema-tenue); font-style: italic; }
.menu-piede {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  padding: 18px 0;
  border-top: 1px solid rgba(243, 238, 228, 0.14);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--tenue-chiaro);
}
.menu-cerca { display: flex; gap: 10px; padding-bottom: 18px; }
.menu-cerca input {
  flex: 1;
  min-width: 0;
  height: 48px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(243, 238, 228, 0.3);
  background: transparent;
  color: var(--carta);
  font-family: var(--sans);
  font-size: 16px;
}

/* --------------------------------------------------------------------------
   Cursore personalizzato (solo mouse)
   -------------------------------------------------------------------------- */
.cursore { display: none; }
@media (hover: hover) and (pointer: fine) {
  .fx .cursore { display: block; position: fixed; left: 0; top: 0; z-index: 120; pointer-events: none; transition: opacity 0.3s ease; }
  .fx .cursore.nascosto { opacity: 0; }
}
.cur-anello {
  position: absolute;
  left: 0; top: 0;
  width: 36px; height: 36px;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  border: 1px solid rgba(28, 26, 23, 0.45);
  display: grid; place-items: center;
  overflow: hidden;
  transition: width 0.55s var(--ease), height 0.55s var(--ease), border-radius 0.55s var(--ease), background-color 0.4s, border-color 0.4s, box-shadow 0.4s;
}
.cur-eti { opacity: 0; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--carta); white-space: nowrap; transition: opacity 0.3s ease; }
.cursore.link .cur-anello { width: 64px; height: 64px; background: rgba(28, 26, 23, 0.07); border-color: rgba(28, 26, 23, 0.2); }
.cursore.leggi .cur-anello { width: 96px; height: 96px; background: var(--inchiostro); border-color: var(--inchiostro); }
.cursore.leggi .cur-eti { opacity: 1; }
.cursore.riga .cur-anello { width: 220px; height: 146px; border-radius: 6px; background: var(--tono, #C9BBA3); border-color: transparent; box-shadow: 0 30px 60px rgba(28, 26, 23, 0.25); }
.cursore.riga .cur-eti { opacity: 1; color: var(--inchiostro); }
.cursore.scuro .cur-anello { border-color: rgba(243, 238, 228, 0.55); }
.cursore.scuro.link .cur-anello { background: rgba(243, 238, 228, 0.1); border-color: rgba(243, 238, 228, 0.3); }
.cursore.scuro.leggi .cur-anello { background: var(--carta); border-color: var(--carta); }
.cursore.scuro.leggi .cur-eti { color: var(--inchiostro); }

.inclina { transition: transform 0.6s var(--ease); will-change: transform; }

/* --------------------------------------------------------------------------
   Pagina articolo
   -------------------------------------------------------------------------- */
.art-testa {
  max-width: 1100px;
  margin: 0 auto;
  padding: clamp(40px, 8vw, 120px) var(--gutter) clamp(32px, 5vw, 72px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(20px, 3vw, 30px);
  text-align: center;
}
.art-testa .occhiello { justify-content: center; }
.art-titolo {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(38px, 8.4vw, 136px);
  line-height: 0.93;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.art-titolo em { color: var(--accento); }
.art-sommario {
  margin: 0;
  max-width: 38ch;
  font-family: var(--lettura);
  font-size: clamp(18px, 2.4vw, 27px);
  line-height: 1.42;
  color: var(--testo);
  text-wrap: pretty;
}
.art-firma { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 16px 28px; }

.art-copertina-wrap { max-width: 1440px; margin: 0 auto; padding-inline: clamp(16px, 2.8vw, 40px); }
.art-copertina {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  background: #16120F;
  aspect-ratio: 21 / 9;
}
.art-copertina img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.art-copertina .segno-ora {
  position: absolute;
  left: 18px; top: 18px;
  display: flex; align-items: center; gap: 10px;
  font-size: 11px; letter-spacing: 0.22em;
  color: rgba(243, 238, 228, 0.86);
}
.didascalia {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 16px;
  padding-top: 12px;
  font-size: 13px;
  color: var(--tenue);
}
.didascalia em { font-family: var(--lettura); font-size: 16px; font-style: italic; }
.didascalia span { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; }

.art-corpo {
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(40px, 7vw, 100px) var(--gutter) clamp(32px, 5vw, 48px);
  display: flex;
  flex-direction: column;
  gap: clamp(22px, 3vw, 28px);
  font-family: var(--lettura);
  font-size: clamp(18px, 2.4vw, 21px);
  line-height: 1.7;
  color: var(--testo-forte);
}
.art-corpo p { margin: 0; text-wrap: pretty; }
.art-corpo .link-testo { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.capolettera {
  float: left;
  font-family: var(--serif);
  font-size: clamp(74px, 18vw, 118px);
  line-height: 0.78;
  padding: 10px 14px 0 0;
  color: var(--accento);
}
.art-h2 {
  margin: clamp(16px, 3vw, 28px) 0 0;
  display: flex;
  align-items: baseline;
  gap: 14px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(28px, 5vw, 48px);
  line-height: 1.06;
  letter-spacing: -0.015em;
  color: var(--inchiostro);
  text-wrap: balance;
}
.art-h2 i { font-style: italic; color: var(--accento); flex: 0 0 auto; }

.blocco-citazione {
  margin: clamp(16px, 3vw, 28px) 0;
  padding: clamp(28px, 5vw, 48px) 0 clamp(24px, 4vw, 40px);
  border-top: 1px solid var(--inchiostro);
  border-bottom: 1px solid rgba(28, 26, 23, 0.2);
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.blocco-citazione q {
  font-family: var(--serif);
  font-size: clamp(28px, 5.6vw, 58px);
  line-height: 1.06;
  letter-spacing: -0.02em;
  text-wrap: balance;
  quotes: "«" "»";
}
.blocco-citazione cite { font-family: var(--sans); font-style: normal; font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--accento); }

.fig-testo { margin: clamp(16px, 3vw, 28px) 0; display: flex; flex-direction: column; gap: 10px; }
.fig-larga {
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  width: min(1120px, calc(var(--vw) - 2 * var(--gutter)));
}
.fig-testo .telaio { position: relative; overflow: hidden; border-radius: 4px; background: var(--tono, #B3A690); }
.fig-testo img { display: block; width: 100%; height: auto; }
.fig-testo figcaption { font-family: var(--lettura); font-size: 16px; font-style: italic; color: var(--tenue); }

.timeline {
  margin: clamp(16px, 3vw, 24px) 0;
  padding: clamp(20px, 3vw, 40px);
  border-radius: 6px;
  background: var(--superficie);
  font-family: var(--sans);
}
.timeline-testa { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 16px; margin-bottom: clamp(18px, 3vw, 28px); }
.timeline-testa b { font-family: var(--serif); font-weight: 400; font-size: clamp(26px, 4vw, 34px); line-height: 1; }
.timeline-testa span { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--tenue); }
.timeline-voci { position: relative; display: flex; flex-direction: column; gap: 20px; padding-left: 28px; }
.timeline-filo { position: absolute; left: 5px; top: 8px; bottom: 8px; width: 1px; background: var(--inchiostro); transform-origin: top center; }
.timeline-voce { position: relative; display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: baseline; }
.timeline-voce i { position: absolute; left: -28px; top: 8px; width: 11px; height: 11px; border-radius: 999px; background: var(--accento); box-shadow: 0 0 0 4px var(--superficie); }
.timeline-voce b { flex: 0 0 64px; font-family: var(--serif); font-weight: 400; font-size: clamp(22px, 4vw, 28px); line-height: 1; }
.timeline-voce span { flex: 1 1 200px; font-family: var(--lettura); font-size: clamp(16px, 2.2vw, 18px); line-height: 1.5; color: var(--testo-forte); }

.stelline { display: flex; justify-content: center; gap: 20px; padding: 20px 0 4px; color: var(--accento); }

.tag-lista { display: flex; flex-wrap: wrap; gap: 8px; font-family: var(--sans); }
.tag {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(28, 26, 23, 0.2);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: background-color 0.4s ease, color 0.4s ease;
}
@media (hover: hover) and (pointer: fine) { .tag:hover { background: var(--inchiostro); color: var(--carta); } }

/* Barra azioni flottante */
.barra-azioni {
  position: sticky;
  bottom: calc(16px + env(safe-area-inset-bottom));
  z-index: 40;
  align-self: center;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(28, 26, 23, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: var(--carta);
  box-shadow: 0 24px 60px rgba(28, 26, 23, 0.28);
  font-family: var(--sans);
  max-width: 100%;
}
.azione {
  position: relative;
  min-width: 48px;
  height: 48px;
  padding: 0 16px;
  border-radius: 999px;
  border: 0;
  background: transparent;
  color: var(--carta);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.35s ease;
}
.azione-icona { padding: 0; }
@media (hover: hover) and (pointer: fine) { .azione:hover { background: rgba(243, 238, 228, 0.1); } }
.azione.attiva { background: rgba(226, 85, 58, 0.22); }
.azione .anello-su { position: absolute; inset: 0; }
.popover {
  position: absolute;
  bottom: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 220px;
  padding: 8px;
  border-radius: 20px;
  background: var(--carta);
  color: var(--inchiostro);
  border: 1px solid var(--bordo);
  box-shadow: 0 24px 60px rgba(28, 26, 23, 0.22);
  display: flex;
  flex-direction: column;
  animation: sfuma-su 0.35s var(--ease) both;
}
.popover[hidden] { display: none; }
.popover button, .popover a {
  min-height: 46px;
  padding: 0 14px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--inchiostro);
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: inherit;
  font-size: 14px;
  text-align: left;
  cursor: pointer;
}
@media (hover: hover) and (pointer: fine) { .popover button:hover, .popover a:hover { background: #E9E1D2; } }

.brindisi {
  position: fixed;
  left: 50%;
  bottom: calc(96px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 60;
  padding: 13px 20px;
  border-radius: 999px;
  background: var(--inchiostro);
  color: var(--carta);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  box-shadow: 0 20px 50px rgba(28, 26, 23, 0.3);
  animation: sfuma-su 0.5s var(--ease) both;
}
.brindisi[hidden] { display: none; }

.scheda-autrice {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: clamp(20px, 3vw, 28px);
  align-items: center;
  padding: clamp(20px, 3vw, 36px);
  border-radius: 6px;
  border: 1px solid var(--bordo);
  font-family: var(--sans);
}
.scheda-autrice .bollo { width: 120px; height: 120px; flex: 0 0 auto; }
.scheda-autrice .tondo-grande {
  width: 74px; height: 74px;
  border-radius: 999px;
  background: var(--inchiostro);
  color: var(--carta);
  display: grid; place-items: center;
  font-family: var(--serif);
  font-size: 28px;
}
.scheda-autrice-testo { flex: 1 1 260px; display: flex; flex-direction: column; gap: 10px; }
.scheda-autrice-testo b { font-family: var(--serif); font-weight: 400; font-size: clamp(26px, 4vw, 34px); line-height: 1; }
.scheda-autrice-testo p { margin: 0; font-family: var(--lettura); font-size: 17px; line-height: 1.55; color: var(--testo); }

.serie-elenco { display: flex; flex-direction: column; border-top: 1px solid var(--bordo-scuro); }
.serie-voce { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; padding: 14px 0; border-bottom: 1px solid var(--bordo-scuro); }
.serie-voce b { font-family: var(--lettura); font-weight: 400; font-size: clamp(17px, 2.4vw, 20px); }
.serie-voce span { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; }
.serie-voce.futura b, .serie-voce.futura span { color: var(--tenue-chiaro); }

.griglia-continua { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: clamp(24px, 3vw, 40px); margin-top: clamp(28px, 4vw, 48px); }

/* --------------------------------------------------------------------------
   Elenchi, ricerca, vuoti
   -------------------------------------------------------------------------- */
.pagina-testa { padding-block: clamp(36px, 6vw, 80px) clamp(20px, 3vw, 32px); }
.pagina-titolo { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(44px, 10vw, 120px); line-height: 0.95; letter-spacing: -0.03em; }
.pagina-nota { margin: 12px 0 0; font-family: var(--lettura); font-size: clamp(17px, 2.2vw, 20px); color: var(--testo); max-width: 46ch; }

.griglia-elenco { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: clamp(28px, 4vw, 48px); padding-bottom: clamp(48px, 7vw, 100px); }

.paginazione { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; padding-bottom: clamp(48px, 7vw, 100px); }
.paginazione a, .paginazione span {
  min-width: 44px; min-height: 44px;
  padding: 0 14px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px;
  border: 1px solid var(--bordo);
  font-size: 14px;
}
.paginazione .corrente { background: var(--inchiostro); color: var(--carta); border-color: var(--inchiostro); }

.cerca-modulo { display: flex; flex-wrap: wrap; gap: 10px; padding-bottom: clamp(28px, 4vw, 40px); }
.cerca-modulo input {
  flex: 1 1 260px;
  min-width: 0;
  height: 56px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid var(--bordo-forte);
  background: transparent;
  font-family: var(--lettura);
  font-size: 18px;
  color: var(--inchiostro);
}

.vuoto {
  padding: clamp(40px, 8vw, 90px) 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.vuoto p { margin: 0; font-family: var(--lettura); font-size: clamp(18px, 2.4vw, 22px); color: var(--testo); max-width: 44ch; }

/* --------------------------------------------------------------------------
   Adattamenti per schermi piccoli
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .riga-cat { flex: 0 0 110px; font-size: 11px; }
  .riga-quando { display: none; }
}

@media (max-width: 760px) {
  .nascondi-mobile { display: none !important; }
  .apertura { grid-template-columns: 1fr; }
  .apertura-testo { order: 2; }
  .apertura-media { order: 1; }
  .copertina-apertura { aspect-ratio: 3 / 4; }
  .sigillo { width: 112px; height: 112px; left: auto; right: 10px; bottom: -40px; transform: none; }
  .art-copertina { aspect-ratio: 4 / 5; }
  .col-principale, .col-secondaria { flex: 1 1 100%; }
  .riga-num { display: none; }
  .riga-freccia { width: 40px; height: 40px; }
  .conversazione-lato { flex-direction: row; align-items: center; gap: 18px; }
  .bollo { width: 104px; height: 104px; }
  .bollo svg { width: 104px; height: 104px; }
  .bollo .virgoletta { font-size: 60px; padding-top: 18px; }
  .tema { gap: 12px; }
  .barra-azioni { width: 100%; justify-content: space-between; border-radius: 999px; }
  .azione { padding: 0 12px; font-size: 13px; }
  .scheda-autrice { flex-direction: column; align-items: flex-start; text-align: left; }
  .piede-colonne { gap: 24px 32px; }
  .capolettera { font-size: 76px; padding-right: 10px; }
}

@media (max-width: 560px) {
  /* La barra in alto deve poter stringere: nessuna colonna rigida. */
  .hdr-barra { grid-template-columns: auto minmax(0, 1fr) auto; gap: 8px; padding-inline: 14px; }
  .btn { padding: 0 14px; font-size: 13px; gap: 8px; }
  .btn-grande { padding: 0 20px; font-size: 14px; }
}

@media (max-width: 420px) {
  .hdr-barra { gap: 6px; }
  .striscia-eti { padding-inline: 14px; }
  .azione span.testo-azione { display: none; }
  .timeline-voce b { flex: 0 0 56px; }
}

/* Schermi larghissimi: nessun testo che si sgrana */
@media (min-width: 1800px) {
  :root { --max: 1480px; }
}

/* --------------------------------------------------------------------------
   Dita, non puntatori: aree toccabili generose dove si naviga col pollice.
   Solo su schermi touch, per non gonfiare il layout sul desktop.
   -------------------------------------------------------------------------- */
@media (pointer: coarse) {
  .nav-sezioni a,
  .piede-colonna a,
  .piede-basso a,
  .sez-link,
  .riga-data a,
  .menu-piede a,
  .didascalia a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
  .nav-sezioni { gap: 0 clamp(14px, 3vw, 44px); padding: 4px 0; }
  .piede-colonna { gap: 0; }
  .piede-colonna b { min-height: 0; margin-bottom: 6px; }
  .tema { padding-block: clamp(10px, 2vw, 22px); }
  .tag { min-height: 44px; }
  .paginazione a, .paginazione span { min-height: 48px; min-width: 48px; }
}

/* --------------------------------------------------------------------------
   Preferenze di movimento e stampa
   -------------------------------------------------------------------------- */
.ferma *, .ferma *::before, .ferma *::after { animation: none !important; }
.ferma .sipario { display: none; }
.senza-intro .sipario { display: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-delay: 0s !important; /* senza questo il contenuto resta nascosto per l'intero ritardo */
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0s !important;
  }
  .sipario { display: none; }
  .sr, .sr-riga > span { opacity: 1; transform: none; }
  .sr-img { clip-path: none; }
  .citazione-grande { color: var(--inchiostro); }
}

@media print {
  .hdr, .striscia, .menu, .barra-azioni, .grana, .sipario, .cursore, .newsletter-interno, .piede-striscia { display: none !important; }
  body { background: #fff; }
  .art-corpo { max-width: none; font-size: 12pt; }
}
