/* ===========================================================================
   assets/css/canti.css — pagine «Inferno canto per canto» e schede di verifica.

   Foglio dedicato: nessuna regola qui tocca premium.css / premium.src.css.
   Riusa i token di colore delle pagine editoriali (chi-siamo, per-i-docenti).
   Il footer resta vestito da assets/footer.css, il banner da cookie-banner.css.
   =========================================================================== */

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

:root {
  --nero-0: #050505;
  --oro: #C9A84C;
  --oro-chiaro: #E8C97A;
  --oro-scuro: #9A7A30;
  --oro-soft: rgba(201,168,76,0.28);
  --oro-faint: rgba(201,168,76,0.05);
  --pergamena: #F5E6C8;
  --pergamena-scura: #D4C4A0;
  --testo-muted: #a89c86;
  --surface-1: #0d0c0a;
  --surface-2: #131210;
  --hairline: rgba(201,168,76,0.14);
  --hairline-soft: rgba(201,168,76,0.08);
  --ease-soft: cubic-bezier(0.22,1,0.36,1);
}

html { -webkit-text-size-adjust: 100%; }
body {
  background-color: var(--nero-0);
  color: var(--pergamena);
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 1.15rem;
  line-height: 1.8;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection { background: rgba(201,168,76,0.26); color: var(--pergamena); }

/* HEADER — stesso disegno di chi-siamo */
header.cv-head {
  padding: 1.4rem 2.2rem;
  border-bottom: 1px solid var(--hairline-soft);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.brand { font-family: 'Cinzel', serif; text-decoration: none; display: flex; flex-direction: column; line-height: 1.2; }
.brand .logo-main { font-size: 16px; font-weight: 700; color: var(--oro-chiaro); letter-spacing: 0.22em; text-transform: uppercase; }
.brand .logo-sub { font-size: 9px; letter-spacing: 0.4em; color: var(--oro-scuro); text-transform: uppercase; margin-top: 3px; }
.header-back {
  font-family: 'Cinzel', serif; font-size: 11px; font-weight: 600; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--testo-muted); text-decoration: none;
  white-space: nowrap; min-height: 44px; display: inline-flex; align-items: center;
}
.header-back:hover { color: var(--oro); }

/* IMPIANTO */
.cv-main { max-width: 760px; margin: 0 auto; padding: 2.2rem 1.4rem 4rem; }
.briciole { font-size: 0.92rem; color: var(--testo-muted); margin-bottom: 2rem; }
.briciole a { color: var(--testo-muted); }
.briciole a:hover { color: var(--oro); }
.briciole span[aria-hidden] { margin: 0 0.4rem; color: var(--oro-scuro); }

.occhiello {
  font-family: 'Cinzel', serif; font-size: 0.72rem; letter-spacing: 0.3em;
  color: var(--oro-scuro); text-transform: uppercase; margin-bottom: 0.9rem;
}
h1 {
  font-family: 'Cinzel', serif; font-weight: 600; color: var(--oro-chiaro);
  font-size: clamp(1.6rem, 5vw, 2.35rem); line-height: 1.25; letter-spacing: 0.02em;
  margin-bottom: 1.2rem;
}
.sommario { font-size: 1.2rem; color: var(--pergamena-scura); font-style: italic; margin-bottom: 2.2rem; }
h2 {
  font-family: 'Cinzel', serif; font-weight: 600; color: var(--oro);
  font-size: 1.3rem; letter-spacing: 0.04em; line-height: 1.35;
  margin: 3rem 0 1rem; padding-top: 1.4rem; border-top: 1px solid var(--hairline);
}
h3 { font-family: 'Cinzel', serif; font-weight: 600; color: var(--oro-chiaro); font-size: 1.02rem; letter-spacing: 0.03em; margin: 1.8rem 0 0.5rem; }
p { margin-bottom: 1rem; }
.cv-main ul, .cv-main ol { margin: 0 0 1rem 1.3rem; }
.cv-main li { margin-bottom: 0.45rem; }
strong { color: var(--oro-chiaro); font-weight: 600; }
a { color: var(--oro-chiaro); text-underline-offset: 3px; }
a:hover { color: var(--oro); }

/* SCHEDA RAPIDA */
.scheda-rapida { width: 100%; border-collapse: collapse; margin: 0.5rem 0 1rem; background: var(--surface-1); border: 1px solid var(--hairline); }
.scheda-rapida th, .scheda-rapida td { text-align: left; vertical-align: top; padding: 0.6rem 0.9rem; border-bottom: 1px solid var(--hairline-soft); font-size: 1.02rem; }
.scheda-rapida th { font-family: 'Cinzel', serif; font-weight: 600; font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--oro); width: 34%; }
.scheda-rapida caption { caption-side: top; text-align: left; margin-bottom: 0.5rem; }
.scheda-rapida tr:last-child th, .scheda-rapida tr:last-child td { border-bottom: 0; }

/* VERSI */
.versi { margin: 1.4rem 0; padding: 1.1rem 1.3rem; border-left: 2px solid var(--oro-scuro); background: var(--oro-faint); }
.versi p { margin: 0; font-style: italic; line-height: 1.7; }
.versi footer, .versi .rif { display: block; margin-top: 0.5rem; font-style: normal; font-size: 0.9rem; color: var(--testo-muted); }
.versi + p.commento { margin-top: -0.4rem; }

/* FAQ */
.faq h3 { margin-top: 1.5rem; }

/* RIQUADRO FINALE */
.riquadro {
  margin: 3rem 0 1.5rem; padding: 1.8rem 1.6rem; text-align: center;
  background: var(--surface-2); border: 1px solid var(--oro-soft); border-radius: 4px;
}
.riquadro .riquadro-titolo { font-family: 'Cinzel', serif; color: var(--oro-chiaro); font-size: 1.15rem; margin-bottom: 0.7rem; letter-spacing: 0.03em; }
.riquadro p { color: var(--pergamena-scura); }
.btn {
  display: inline-block; margin-top: 0.6rem; padding: 0.8rem 1.5rem; min-height: 44px;
  font-family: 'Cinzel', serif; font-size: 0.82rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: #0b0a08; background: var(--oro); border: 0; border-radius: 3px; text-decoration: none; cursor: pointer;
}
.btn:hover { background: var(--oro-chiaro); color: #0b0a08; }

.link-scheda { margin: 1.5rem 0; padding: 1rem 1.2rem; border: 1px dashed var(--oro-soft); }

/* NAVIGAZIONE TRA CANTI */
.nav-canti { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: 2.5rem; padding-top: 1.4rem; border-top: 1px solid var(--hairline); font-family: 'Cinzel', serif; font-size: 0.85rem; letter-spacing: 0.06em; }
.nav-canti a { text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.nav-canti .vuoto { min-width: 1px; }

/* INDICE */
.elenco-canti { list-style: none; margin: 0 !important; }
.elenco-canti li { padding: 1rem 0; border-bottom: 1px solid var(--hairline-soft); margin: 0 !important; }
.elenco-canti .num { font-family: 'Cinzel', serif; color: var(--oro); font-weight: 600; margin-right: 0.4rem; }
.elenco-canti .collegamenti { display: block; margin-top: 0.3rem; font-size: 1rem; }
.elenco-canti .collegamenti a { margin-right: 1.2rem; }
.in-arrivo { columns: 2 16rem; column-gap: 2rem; list-style: none; margin: 0 !important; color: var(--testo-muted); font-size: 1rem; }
.in-arrivo li { break-inside: avoid; margin-bottom: 0.35rem !important; }
.in-arrivo .num { font-family: 'Cinzel', serif; color: var(--oro-scuro); margin-right: 0.3rem; }
.etichetta { font-size: 0.8rem; font-family: 'Cinzel', serif; letter-spacing: 0.08em; color: var(--oro-scuro); }

/* SCHEDA DI VERIFICA */
.intestazione-alunno { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 1rem; margin: 1.5rem 0 2rem; }
.intestazione-alunno div { border-bottom: 1px solid var(--pergamena-scura); padding-bottom: 0.2rem; font-family: 'Cinzel', serif; font-size: 0.8rem; letter-spacing: 0.08em; color: var(--testo-muted); min-height: 2.2rem; display: flex; align-items: flex-end; }
.istruzioni { font-size: 1rem; color: var(--pergamena-scura); }
.domanda { margin: 0 0 1.6rem; break-inside: avoid; }
.domanda .testo { font-weight: 500; margin-bottom: 0.4rem; }
.domanda .testo .n { color: var(--oro); font-weight: 700; margin-right: 0.35rem; font-variant-numeric: lining-nums; }
.opzioni { list-style: none; margin: 0 0 0 1.4rem !important; }
.opzioni li { margin-bottom: 0.25rem !important; }
.righe { margin-top: 0.4rem; }
.righe span { display: block; height: 2rem; border-bottom: 1px solid rgba(212,196,160,0.35); }
.punti { font-size: 0.85rem; color: var(--testo-muted); }
.soluzioni { margin-top: 3rem; }
.soluzioni ol { margin-left: 1.3rem; }
.soluzioni li { margin-bottom: 0.8rem; }
.azioni-stampa { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin: 1rem 0 2rem; }
.azioni-stampa p { margin: 0; font-size: 0.95rem; color: var(--testo-muted); }
.solo-stampa { display: none; }

@media (max-width: 600px) {
  header.cv-head { padding: 1.1rem 1rem; }
  .brand .logo-sub { display: none; }
  .cv-main { padding: 1.6rem 1rem 3rem; }
  .scheda-rapida th { width: 38%; padding: 0.55rem 0.6rem; }
  .scheda-rapida td { padding: 0.55rem 0.6rem; }
  .intestazione-alunno { grid-template-columns: 1fr 1fr; }
  .intestazione-alunno div:first-child { grid-column: 1 / -1; }
  .riquadro { padding: 1.4rem 1rem; }
}

/* STAMPA — bianco e nero, niente interfaccia del sito */
@page { size: A4; margin: 16mm 16mm 20mm; }
@media print {
  html, body { background: #fff !important; color: #000 !important; font-size: 11.5pt; line-height: 1.45; }
  header.cv-head, footer.icv-footer, #cookie-banner, #icv-cookie-review, .briciole,
  .nav-canti, .azioni-stampa, .riquadro, .no-stampa { display: none !important; }
  .cv-main { max-width: none; padding: 0; }
  h1, h2, h3, strong, .occhiello, .domanda .testo .n, a { color: #000 !important; }
  h1 { font-size: 17pt; margin-bottom: 0.4rem; }
  h2 { font-size: 13pt; border-top: 1px solid #000; margin: 1.2rem 0 0.6rem; padding-top: 0.6rem; break-after: avoid; page-break-after: avoid; }
  .versi { break-inside: avoid; break-after: avoid; }
  a { text-decoration: none; }
  .sommario, .istruzioni, .punti, .intestazione-alunno div { color: #000 !important; }
  .versi { background: none; border-left: 2px solid #000; }
  .righe span { border-bottom: 1px solid #777; height: 1.75rem; }
  .intestazione-alunno div { border-bottom: 1px solid #000; }
  .soluzioni { break-before: page; page-break-before: always; margin-top: 0; }
  .domanda { break-inside: avoid; page-break-inside: avoid; }
  .solo-stampa { display: block; }
  .piede-stampa {
    position: fixed; bottom: 0; left: 0; right: 0; text-align: center;
    font-family: Georgia, serif; font-size: 8pt; color: #000;
  }
  .corpo-stampa { padding-bottom: 8mm; }
}
