/* TuttoRaggiolo online: stile del sito */
/* Caratteri ospitati sul sito (licenza SIL Open Font License, vedi static/font):
   nessuna richiesta a server esterni, quindi nessun dato del visitatore inviato a Google. */
@font-face { font-family: "Cormorant"; font-style: normal; font-weight: 500; font-display: swap; src: url("font/cormorant-latin-ext-500-normal.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; }
@font-face { font-family: "Cormorant"; font-style: normal; font-weight: 500; font-display: swap; src: url("font/cormorant-latin-500-normal.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; }
@font-face { font-family: "Cormorant"; font-style: normal; font-weight: 600; font-display: swap; src: url("font/cormorant-latin-ext-600-normal.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; }
@font-face { font-family: "Cormorant"; font-style: normal; font-weight: 600; font-display: swap; src: url("font/cormorant-latin-600-normal.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; }
@font-face { font-family: "Cormorant"; font-style: normal; font-weight: 700; font-display: swap; src: url("font/cormorant-latin-ext-700-normal.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; }
@font-face { font-family: "Cormorant"; font-style: normal; font-weight: 700; font-display: swap; src: url("font/cormorant-latin-700-normal.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; }
@font-face { font-family: "Heebo"; font-style: normal; font-weight: 400; font-display: swap; src: url("font/heebo-latin-ext-400-normal.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; }
@font-face { font-family: "Heebo"; font-style: normal; font-weight: 400; font-display: swap; src: url("font/heebo-latin-400-normal.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; }
@font-face { font-family: "Heebo"; font-style: normal; font-weight: 500; font-display: swap; src: url("font/heebo-latin-ext-500-normal.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; }
@font-face { font-family: "Heebo"; font-style: normal; font-weight: 500; font-display: swap; src: url("font/heebo-latin-500-normal.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; }
@font-face { font-family: "Heebo"; font-style: normal; font-weight: 700; font-display: swap; src: url("font/heebo-latin-ext-700-normal.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; }
@font-face { font-family: "Heebo"; font-style: normal; font-weight: 700; font-display: swap; src: url("font/heebo-latin-700-normal.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; }

:root {
  --carta: #faf8f3;
  --crema: #f0ede4;
  --inchiostro: #1b1424;
  --testo: #3b3446;
  --tenue: #5b5466;
  --viola: #2c0453;
  --viola-hover: #4a1a7a;
  --linea: #d5dce3;
  --castagna: #8a4b1f;
  --sabbia: #d5c4a8;
  --notte: #1b1424;
  --serif: Cormorant, Georgia, "Times New Roman", serif;
  --sans: Heebo, system-ui, -apple-system, "Segoe UI", sans-serif;
  --largo: 1240px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--carta); color: var(--inchiostro); font-family: var(--sans); font-size: 17px; line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--viola); }
a:hover { color: var(--viola-hover); }
.contenitore { max-width: var(--largo); margin: 0 auto; padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px)); }
.salta { position: absolute; left: -9999px; }
.salta:focus { left: 16px; top: 16px; background: #fff; padding: 8px 12px; z-index: 10; }

/* Barra superiore e testata */
.barra { background: var(--viola); color: var(--crema); font-size: 13px; }
.barra .contenitore { display: flex; flex-wrap: wrap; gap: 6px 24px; justify-content: space-between; padding-top: 8px; padding-bottom: 8px; }
.barra a { color: var(--crema); text-decoration: none; }
.barra nav { display: flex; gap: 20px; flex-wrap: wrap; }
.testata { border-bottom: 1px solid var(--linea); background: var(--carta); }
.testata .contenitore { display: flex; flex-wrap: wrap; gap: 12px 40px; align-items: center; justify-content: space-between; padding-top: 20px; padding-bottom: 20px; }
.marchio { text-decoration: none; color: var(--viola); display: flex; flex-direction: column; }
.marchio img { display: block; height: 90px; width: auto; max-width: 100%; }
.marchio b { font-family: var(--serif); font-weight: 700; font-size: 46px; line-height: 1; letter-spacing: -0.01em; }
.marchio span { font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--tenue); margin-top: 6px; }
.menu { display: flex; flex-wrap: wrap; gap: 0 28px; font-weight: 500; font-size: 16px; }
.menu a { text-decoration: none; color: var(--inchiostro); padding: 10px 0; border-bottom: 2px solid transparent; }
.menu a[aria-current="page"] { color: var(--viola); border-bottom-color: var(--viola); }
.apri-menu { display: none; }

/* Menu a tre strisce sui telefoni (senza JavaScript il menu resta sempre visibile) */
@media (max-width: 760px) {
  .testata .contenitore { flex-wrap: wrap; gap: 0; padding-top: 14px; padding-bottom: 14px; }
  .marchio { max-width: calc(100% - 60px); }
  .js .apri-menu { display: flex; flex-direction: column; justify-content: center; gap: 5px; width: 48px; height: 48px; padding: 12px; margin-right: -12px; border: 0; background: none; cursor: pointer; color: var(--viola); }
  .apri-menu span { display: block; height: 3px; border-radius: 2px; background: currentColor; transition: transform .2s, opacity .2s; }
  .menu-aperto .apri-menu span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .menu-aperto .apri-menu span:nth-child(2) { opacity: 0; }
  .menu-aperto .apri-menu span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .js .menu { display: none; }
  .js .menu-aperto .menu { display: flex; }
  .menu { flex: 0 0 100%; flex-direction: column; gap: 0; margin-top: 12px; border-top: 1px solid var(--linea); font-size: 18px; }
  .menu a { padding: 14px 0; border-bottom: 1px solid var(--linea); }
  .menu a[aria-current="page"] { border-bottom-color: var(--linea); font-weight: 700; }
}

/* Tipografia */
h1, h2, h3, .serif { font-family: var(--serif); font-weight: 600; color: var(--viola); }
.occhiello { font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--castagna); }
.data { font-size: 14px; color: var(--tenue); }
.percorso { font-size: 14px; color: var(--tenue); }
.percorso a { color: var(--tenue); }
.pulsante { display: inline-block; padding: 12px 22px; border-radius: 999px; background: var(--viola); color: var(--carta); text-decoration: none; font-weight: 500; font-size: 15px; border: 1px solid var(--viola); }
.pulsante:hover { background: var(--viola-hover); color: var(--carta); }
.pulsante.vuoto { background: transparent; color: var(--viola); }
.pulsante.chiaro { background: var(--crema); color: var(--viola); border-color: var(--crema); }
.pulsanti { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.titolo-sezione { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; border-top: 2px solid var(--viola); padding-top: 14px; margin: 0 0 28px; }
.titolo-sezione h2 { margin: 0; font-size: 36px; }
.titolo-sezione a { font-size: 15px; font-weight: 500; }
.fascia { padding: 64px 0; }
.fascia.crema { background: var(--crema); }
.fascia.viola { background: var(--viola); color: var(--crema); }
.fascia.viola h1, .fascia.viola h2 { color: #fff; }
.fascia.viola .occhiello { color: var(--sabbia); }
.fascia.viola p { color: #e6e0ee; }

/* Apertura */
.apertura .contenitore { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.apertura .testo { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.apertura h1 { margin: 0; font-size: clamp(48px, 7vw, 84px); line-height: 0.98; }
.apertura p { margin: 0; font-size: 20px; max-width: 620px; }
.apertura img { flex: 1 1 320px; min-width: 0; width: 100%; max-width: 440px; border-radius: 16px; }

/* Schede */
.griglia { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 36px 28px; }
.scheda { display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: inherit; }
.scheda .foto { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px; background: var(--linea); }
.scheda h3 { margin: 0; font-size: 26px; line-height: 1.12; color: var(--inchiostro); }
.scheda:hover h3 { color: var(--viola); }
.scheda .occhiello { font-size: 12px; letter-spacing: 0.12em; }
.scheda p { margin: 0; font-size: 15px; color: var(--testo); }
.colonne { display: flex; flex-wrap: wrap; gap: 48px; }
.colonne > .principale { flex: 999 1 640px; min-width: 0; }
.colonne > .laterale { flex: 1 1 300px; display: flex; flex-direction: column; gap: 32px; }
.riquadro { background: var(--crema); border-radius: 18px; padding: 24px 26px; }
.riquadro h2 { margin: 0 0 4px; font-size: 30px; }
.riquadro .elenco a { display: block; padding: 14px 0; border-top: 1px solid var(--linea); text-decoration: none; color: inherit; }
.riquadro .elenco a b { font-weight: 500; display: block; }
.riquadro .elenco a:hover b { color: var(--viola); }

/* Giornale in home e archivio */
.numero { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.numero .copertina { flex: 0 1 340px; max-width: 340px; border-radius: 6px; box-shadow: 0 2px 0 rgba(27, 20, 36, 0.08); }
.numero .testo { flex: 1 1 420px; display: flex; flex-direction: column; gap: 14px; }
.numero h2, .numero h1 { margin: 0; font-size: clamp(40px, 5vw, 60px); line-height: 1.04; }
.indice { margin: 8px 0 0; padding: 0; list-style: none; border-top: 2px solid var(--viola); }
.indice li { display: flex; flex-wrap: wrap; gap: 6px 24px; align-items: baseline; padding: 18px 0; border-bottom: 1px solid var(--linea); }
.indice .pag { flex: 0 0 72px; font-family: var(--serif); font-weight: 600; font-size: 26px; color: var(--castagna); }
.indice .voce { flex: 1 1 380px; display: flex; flex-direction: column; gap: 2px; }
.indice .rubrica { font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--tenue); }
.indice .titolo { font-family: var(--serif); font-weight: 600; font-size: 26px; line-height: 1.15; color: var(--inchiostro); text-decoration: none; }
.indice a.titolo:hover { color: var(--viola); }
.indice .autore { font-size: 15px; color: var(--tenue); }
.indice .azioni { display: flex; gap: 14px; align-items: baseline; }
.etichetta { font-size: 14px; padding: 6px 12px; border-radius: 999px; background: var(--crema); color: var(--viola); text-decoration: none; font-weight: 500; }
.fascia.crema .etichetta { background: #fff; }
.indice.compatto li { padding: 12px 0; }
.indice.compatto .titolo { font-size: 20px; }
.archivio { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 28px; }
.archivio .scheda .foto { aspect-ratio: 3 / 4; border-radius: 4px; }
.segnaposto { display: flex; align-items: center; justify-content: center; text-align: center; color: var(--testo); font-size: 15px; background: var(--linea); }

/* Eventi */
.evento-scheda { border: 1px solid var(--linea); border-radius: 18px; overflow: hidden; background: #fff; gap: 0; }
.evento-scheda .foto { border-radius: 0; aspect-ratio: 16 / 10; }
.evento-scheda .corpo { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 8px; }
.evento-scheda h3 { font-size: 30px; }
.edizioni { display: flex; flex-wrap: wrap; gap: 8px; }
.edizioni a { padding: 7px 15px; border-radius: 999px; border: 1px solid #b9b2c4; color: var(--inchiostro); text-decoration: none; font-size: 14px; font-weight: 500; }
.edizioni a[aria-current="page"] { background: var(--viola); border-color: var(--viola); color: var(--carta); }

/* Articolo */
.articolo-testa { max-width: 820px; margin: 0 auto; padding: 56px 24px 32px; display: flex; flex-direction: column; gap: 16px; }
.articolo-testa h1 { margin: 0; font-size: clamp(42px, 6vw, 68px); line-height: 1.02; }
.articolo-testa .sommario { margin: 0; font-size: 21px; line-height: 1.45; color: var(--testo); }
.firma { display: flex; flex-wrap: wrap; gap: 6px 24px; font-size: 14px; color: var(--tenue); border-top: 1px solid var(--linea); padding-top: 14px; }
.articolo-foto { max-width: var(--largo); margin: 0 auto; padding: 0 24px; }
.articolo-foto img { width: 100%; max-height: 680px; object-fit: cover; border-radius: 20px; }
.corpo-articolo { max-width: 720px; margin: 0 auto; padding: 40px 24px 24px; font-size: 19px; line-height: 1.72; }
.corpo-articolo > * { margin: 0 0 22px; }
.corpo-articolo h2, .corpo-articolo h3, .corpo-articolo h4 { line-height: 1.15; margin-top: 36px; }
.corpo-articolo h2 { font-size: 34px; }
.corpo-articolo h3 { font-size: 28px; }
.corpo-articolo h4 { font-size: 24px; }
.corpo-articolo blockquote { margin: 12px 0 28px; padding: 6px 0 6px 26px; border-left: 3px solid var(--castagna); font-family: var(--serif); font-size: 28px; line-height: 1.3; color: var(--viola); }
.corpo-articolo figure { margin: 0 0 28px; }
.corpo-articolo figure img, .corpo-articolo > img, .corpo-articolo p > img { border-radius: 14px; }
.corpo-articolo figcaption { font-size: 14px; color: var(--tenue); margin-top: 8px; }
.corpo-articolo hr { border: 0; border-top: 1px solid var(--linea); margin: 36px 0; }
.corpo-articolo ul, .corpo-articolo ol { padding-left: 1.2em; }
/* Galleria centrata rispetto alla pagina: le foto vanno a capo e restano al centro anche nell'ultima riga */
.galleria { display: flex !important; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 8px -24px 28px !important; }
@media (min-width: 900px) { .galleria { margin-left: -120px !important; margin-right: -120px !important; } }
.galleria figure { margin: 0 !important; flex: 0 0 calc(50% - 6px); }
@media (min-width: 600px) { .galleria figure { flex-basis: 236px; } }
.galleria img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px !important; }
.incorpora a { display: inline-block; padding: 12px 20px; border: 1px solid var(--viola); border-radius: 999px; text-decoration: none; font-size: 16px; }
.fonte { font-size: 14px; color: var(--tenue); }
.etichette { display: flex; flex-wrap: wrap; gap: 8px; }

/* Elenchi e paginazione */
.paginazione { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 48px; }
.paginazione a, .paginazione span { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 0 14px; border-radius: 999px; border: 1px solid var(--linea); text-decoration: none; color: var(--inchiostro); }
.paginazione span[aria-current] { background: var(--viola); color: var(--carta); border-color: var(--viola); }
.riga { display: flex; gap: 20px; align-items: flex-start; padding: 22px 0; border-bottom: 1px solid var(--linea); text-decoration: none; color: inherit; }
.riga .quando { flex: 0 0 110px; font-size: 14px; color: var(--tenue); padding-top: 6px; }
.riga h3 { margin: 0 0 4px; font-size: 26px; line-height: 1.15; color: var(--inchiostro); }
.riga:hover h3 { color: var(--viola); }
.riga p { margin: 0; font-size: 15px; color: var(--testo); }

/* Newsletter */
.newsletter { display: flex; flex-wrap: wrap; gap: 24px 48px; align-items: center; justify-content: space-between; border: 1px solid var(--linea); border-radius: 20px; padding: 32px 36px; }
.newsletter h2 { margin: 0 0 6px; font-size: 32px; }
.newsletter p { margin: 0; color: var(--testo); font-size: 16px; }
.newsletter form { flex: 1 1 420px; display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.newsletter label { flex: 1 1 240px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 500; }
.newsletter input { font: inherit; font-weight: 400; font-size: 16px; padding: 12px 14px; border: 1px solid #b9b2c4; border-radius: 10px; background: #fff; color: var(--inchiostro); }
.newsletter button { font: inherit; font-weight: 500; font-size: 15px; padding: 13px 24px; min-height: 48px; border: 0; border-radius: 999px; background: var(--viola); color: var(--carta); cursor: pointer; }

/* Piede */
.piede { background: var(--notte); color: #e6e0ee; font-size: 15px; }
.piede .contenitore { display: flex; flex-wrap: wrap; gap: 40px; padding-top: 56px; padding-bottom: 40px; }
.piede .colonna { display: flex; flex-direction: column; gap: 8px; }
.piede .colonna:first-child { flex: 2 1 360px; }
.piede .colonna { flex: 1 1 180px; }
.piede a { color: #e6e0ee; text-decoration: none; }
.piede a:hover { color: #fff; text-decoration: underline; }
.piede b { font-family: var(--serif); font-weight: 700; font-size: 34px; color: #fff; }
.piede .tenue { color: #b9b2c4; }

@media (max-width: 640px) {
  body { font-size: 16px; }
  .marchio b { font-size: 38px; }
  .marchio img { height: 64px; }
  .fascia { padding: 48px 0; }
  .titolo-sezione h2 { font-size: 30px; }
  .riga { flex-direction: column; gap: 4px; }
  .riga .quando { flex: none; padding: 0; }
  .corpo-articolo { font-size: 18px; }
}

/* Visore delle foto */
.ingrandibile { cursor: zoom-in; }
.ingrandibile:focus-visible { outline: 3px solid var(--castagna); outline-offset: 3px; }
.visore { position: fixed; inset: 0; z-index: 100; background: rgba(15, 10, 20, 0.94); display: flex; align-items: center; justify-content: center; padding: max(16px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) max(16px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); }
.visore[hidden] { display: none; }
.visore figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 12px; max-width: 100%; max-height: 100%; }
.visore img { max-width: min(92vw, 1600px); max-height: 84vh; width: auto; height: auto; object-fit: contain; border-radius: 6px; }
.visore figcaption { color: #e6e0ee; font-size: 14px; text-align: center; max-width: 720px; }
.visore button { position: absolute; background: rgba(255, 255, 255, 0.12); color: #fff; border: 0; border-radius: 999px; width: 48px; height: 48px; font-size: 30px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.visore button:hover, .visore button:focus-visible { background: rgba(255, 255, 255, 0.28); outline: none; }
.visore-chiudi { top: max(16px, env(safe-area-inset-top, 0px)); right: max(16px, env(safe-area-inset-right, 0px)); }
.visore-prec { left: max(16px, env(safe-area-inset-left, 0px)); top: 50%; transform: translateY(-50%); }
.visore-succ { right: max(16px, env(safe-area-inset-right, 0px)); top: 50%; transform: translateY(-50%); }
@media (max-width: 640px) { .visore-prec, .visore-succ { top: auto; bottom: max(16px, env(safe-area-inset-bottom, 0px)); transform: none; } }

/* Commenti */
.commenti { max-width: 720px; margin: 0 auto; padding: 8px 24px 56px; }
.commenti h2 { font-size: 34px; margin: 0 0 16px; border-top: 2px solid var(--viola); padding-top: 18px; }
.commenti h3 { font-size: 26px; margin: 0 0 4px; }
.commenti-nota { color: var(--tenue); font-size: 15px; margin: 0 0 16px; }
.commento { border-bottom: 1px solid var(--linea); padding: 14px 0; }
.commento p { margin: 0 0 8px; }
.commento-testa { font-size: 14px; color: var(--tenue); }
.commento-testa b { color: var(--inchiostro); font-size: 16px; }
.commenti-modulo { margin-top: 32px; display: flex; flex-direction: column; gap: 14px; background: var(--crema); border-radius: 18px; padding: 24px; }
.commenti-modulo label { display: flex; flex-direction: column; gap: 6px; font-size: 15px; font-weight: 500; }
.commenti-modulo input, .commenti-modulo textarea { font: inherit; font-weight: 400; font-size: 16px; padding: 11px 13px; border: 1px solid #b9b2c4; border-radius: 10px; background: #fff; color: var(--inchiostro); }
.commenti-modulo .facoltativo { font-weight: 400; color: var(--tenue); }
.commenti-modulo .consenso { flex-direction: row; align-items: flex-start; gap: 10px; font-weight: 400; }
.commenti-modulo .consenso input { margin-top: 4px; }
.commenti-modulo .nascosto { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.commenti-modulo button { align-self: flex-start; cursor: pointer; }
.commenti-esito { margin: 0; font-weight: 500; color: var(--viola); }

/* consenso alle statistiche */
.avviso-statistiche { position: fixed; z-index: 90; left: 16px; right: 16px; bottom: max(16px, env(safe-area-inset-bottom, 0px)); max-width: 640px; margin: 0 auto; background: var(--carta); color: var(--testo); border: 1px solid var(--linea); border-radius: 14px; box-shadow: 0 8px 30px rgba(27, 20, 36, 0.18); padding: 18px 20px; font-size: 15px; line-height: 1.5; }
.avviso-statistiche[hidden] { display: none; }
.avviso-statistiche p { margin: 0 0 14px; }
.avviso-statistiche a { color: var(--viola); }
.avviso-statistiche-pulsanti { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.avviso-statistiche-pulsanti .pulsante { cursor: pointer; font-family: inherit; }

/* Programma completo richiudibile nella pagina di un'edizione */
.programma { margin-top: 36px; border-top: 1px solid var(--viola); padding-top: 18px; }
.programma > summary { cursor: pointer; font-weight: 500; color: var(--viola); list-style: none; display: flex; align-items: center; gap: 10px; }
.programma > summary::-webkit-details-marker { display: none; }
.programma > summary::before { content: "+"; display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; flex: none; border: 1px solid var(--viola); border-radius: 50%; font-size: 18px; line-height: 1; }
.programma[open] > summary::before { content: "\2212"; }
.programma > summary:focus-visible { outline: 3px solid var(--castagna); outline-offset: 3px; }
.programma-testo { margin-top: 22px; font-size: 17px; line-height: 1.5; }
.programma-testo p { margin: 0 0 4px; }
.programma-testo h2 { font-size: 24px; margin: 22px 0 6px; }
.programma-testo h3 { font-size: 20px; margin: 18px 0 4px; }
.programma-testo h4 { font-size: 18px; margin: 18px 0 4px; }
.programma-testo div:not(:has(*)) { margin: 30px 0 4px; padding-bottom: 4px; border-bottom: 1px solid var(--viola); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--viola); }
.programma-testo div:has(> h2) > div:not(:has(*)) { margin: 0; padding: 0; border: 0; font-weight: 400; letter-spacing: 0; text-transform: none; font-size: 15px; }
