/* geograficamente.ch — sito pubblico: la pagina d'attesa e la manutenzione,
   e le pagine del sito (home, articolo, elenchi). Grafica della bozza 2.
   I caratteri stanno sul nostro server (public/assets/fonts, licenza OFL):
   nessun file da fuori. */

@font-face { font-family: "Source Sans"; font-style: normal; font-weight: 200 900; font-display: swap;
    src: url(/assets/fonts/source-sans-3-latin-wght-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: "Source Sans"; font-style: normal; font-weight: 200 900; font-display: swap;
    src: url(/assets/fonts/source-sans-3-latin-ext-wght-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Source Sans"; font-style: normal; font-weight: 200 900; font-display: swap;
    src: url(/assets/fonts/source-sans-3-greek-wght-normal.woff2) format("woff2");
    unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF; }
@font-face { font-family: "Source Sans"; font-style: italic; font-weight: 200 900; font-display: swap;
    src: url(/assets/fonts/source-sans-3-latin-wght-italic.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: "Source Sans"; font-style: italic; font-weight: 200 900; font-display: swap;
    src: url(/assets/fonts/source-sans-3-latin-ext-wght-italic.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Source Sans"; font-style: italic; font-weight: 200 900; font-display: swap;
    src: url(/assets/fonts/source-sans-3-greek-wght-italic.woff2) format("woff2");
    unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF; }
@font-face { font-family: "Source Serif"; font-style: normal; font-weight: 200 900; font-display: swap;
    src: url(/assets/fonts/source-serif-4-latin-opsz-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: "Source Serif"; font-style: normal; font-weight: 200 900; font-display: swap;
    src: url(/assets/fonts/source-serif-4-latin-ext-opsz-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Source Serif"; font-style: normal; font-weight: 200 900; font-display: swap;
    src: url(/assets/fonts/source-serif-4-greek-opsz-normal.woff2) format("woff2");
    unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF; }
@font-face { font-family: "Source Serif"; font-style: italic; font-weight: 200 900; font-display: swap;
    src: url(/assets/fonts/source-serif-4-latin-opsz-italic.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: "Source Serif"; font-style: italic; font-weight: 200 900; font-display: swap;
    src: url(/assets/fonts/source-serif-4-latin-ext-opsz-italic.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Source Serif"; font-style: italic; font-weight: 200 900; font-display: swap;
    src: url(/assets/fonts/source-serif-4-greek-opsz-italic.woff2) format("woff2");
    unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF; }

/* I caratteri di riserva, finché quelli veri non sono arrivati: Arial e
   Times rimpiccioliti o ingranditi perché occupino lo stesso spazio di
   Source Sans e Source Serif. Senza, il menu scritto in Arial andava su due
   righe e, all'arrivo del carattere vero, tutta la pagina saltava su di 60
   pixel (PageSpeed: «Cumulative Layout Shift»). Misure prese dai file. */
@font-face { font-family: "Source Sans fallback"; font-weight: 200 500;
    src: local("Arial"), local("ArialMT"), local("Helvetica"), local("Liberation Sans");
    size-adjust: 94.9%; ascent-override: 107.9%; descent-override: 42.2%; line-gap-override: 0%; }
@font-face { font-family: "Source Sans fallback"; font-weight: 600 900;
    src: local("Arial Bold"), local("Arial-BoldMT"), local("Helvetica Bold"), local("Liberation Sans Bold");
    size-adjust: 86%; ascent-override: 119.1%; descent-override: 46.5%; line-gap-override: 0%; }
@font-face { font-family: "Source Serif fallback"; font-weight: 200 500;
    src: local("Times New Roman"), local("TimesNewRomanPSMT"), local("Liberation Serif"), local("Times");
    size-adjust: 110.3%; ascent-override: 93.9%; descent-override: 30.4%; line-gap-override: 0%; }
@font-face { font-family: "Source Serif fallback"; font-weight: 600 900;
    src: local("Times New Roman Bold"), local("TimesNewRomanPS-BoldMT"), local("Liberation Serif Bold"), local("Times Bold");
    size-adjust: 103.2%; ascent-override: 100.4%; descent-override: 32.5%; line-gap-override: 0%; }

:root {
    --fondo: #f6f6f3;
    --carta: #ffffff;
    --testo: #1f2328;
    --testo-lungo: #26261f;
    --secondario: #4a4a45;
    --tenue: #6b6b66;
    --linea: #e2e2dc;
    --scuro: #1f2328;
    --accento: #0077a0;
    --accento-sopra: #0088b0;
    --largo: 77.5rem;
    --margine: 2rem;
    --sans: "Source Sans", "Source Sans fallback", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --serif: "Source Serif", "Source Serif fallback", Georgia, "Times New Roman", serif;
    --carattere: var(--sans);
}
@media (max-width: 40rem) { :root { --margine: 1.25rem; } }

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

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
    margin: 0;
    min-height: 100vh;
    background: var(--fondo);
    color: var(--testo);
    font-family: var(--carattere);
    font-size: 1.0625rem;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--accento); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover, a:focus-visible { color: #005a7a; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--accento); outline-offset: 3px; border-radius: 2px; }

img { max-width: 100%; height: auto; }
picture { display: block; }
.scheda-foto picture, .scheda-foto picture img { height: 100%; }

.nascosto {
    position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.salta { position: absolute; left: -999px; top: 0; z-index: 100; background: var(--scuro); color: #fff; padding: .5rem 1rem; }
.salta:focus { left: 0; color: #fff; }

/* La striscia a colori degli argomenti, in cima alle pagine d'attesa. */
.cartello::before {
    content: "";
    position: fixed; left: 0; right: 0; top: 0; height: 5px;
    background: linear-gradient(90deg,
        #4c8a2b 0 10%, #ad5a0c 10% 20%, #7b3fc4 20% 30%, #b0307a 30% 40%, #8a6c0e 40% 50%,
        #2264b0 50% 60%, #2b8a72 60% 70%, #9b472a 70% 80%, #556274 80% 90%, #1a84a4 90% 100%);
}

/* ------------------------------------------------ pagina d'attesa / manutenzione */

body.cartello {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: var(--carta);
}
.cartello-dentro {
    flex: 1;
    width: 100%;
    max-width: 34rem;
    margin: 0 auto;
    padding: 4rem 1.5rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.cartello-nome { margin: 0 0 2rem; line-height: 0; }
.cartello-logo { display: block; width: 100%; max-width: 20rem; height: auto; }
.cartello .occhiello { margin: 0 0 .5rem; font-size: 1.375rem; font-weight: 600; line-height: 1.3; color: var(--testo); }
.cartello p { margin: 0 0 1rem; color: var(--tenue); }
.cartello-piede { padding: 1.25rem 1.5rem; text-align: center; font-size: .875rem; }
.cartello-piede a { color: var(--testo); text-decoration: none; }

/* ------------------------------------------------ strisce di servizio */

.anteprima, .striscia-bozza {
    margin: 0; padding: .5rem 1rem; text-align: center; font-size: .9375rem;
    background: #fff4d6; color: #5c4400; border-bottom: 1px solid #ecd9a0;
}
.anteprima a, .striscia-bozza a { color: #5c4400; font-weight: 600; }

/* ------------------------------------------------ impaginato */

.largo { width: 100%; max-width: var(--largo); margin-left: auto; margin-right: auto; padding-left: var(--margine); padding-right: var(--margine); }
.stretto { max-width: 46rem; }
.pagina { padding: 0 0 4.5rem; }
.con-colonna { display: flex; flex-wrap: wrap; gap: 3rem 4rem; align-items: flex-start; }
.con-colonna > :first-child { flex: 999 1 40rem; min-width: 0; }
.colonna { flex: 1 1 18.75rem; max-width: 21.25rem; display: flex; flex-direction: column; gap: 1.75rem; }
@media (max-width: 60rem) { .colonna { max-width: none; } }

.briciole { margin: 0; font-size: .875rem; color: var(--tenue); }
.briciole a { color: var(--tenue); text-decoration: none; }
.briciole a:hover { color: var(--accento-sopra); }

/* ------------------------------------------------ testata e menu */

.testata { background: var(--carta); }
.testata-dentro {
    max-width: var(--largo); margin: 0 auto; padding: 1.375rem var(--margine);
    display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap;
}
.testata-marchio { display: block; line-height: 0; }
.testata-marchio img { display: block; height: 78px; width: auto; }
.cerca {
    display: flex; align-items: center; gap: .5rem; width: 16.25rem; height: 2.75rem; padding: 0 1rem;
    border: 1px solid #d9d9d4; border-radius: 999px; color: var(--tenue); background: var(--carta);
}
.cerca:focus-within { border-color: var(--accento); }
.cerca svg { flex: none; }
.cerca input {
    flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: 1rem; color: var(--testo);
    -webkit-appearance: none; appearance: none;
}
.cerca input::-webkit-search-decoration { -webkit-appearance: none; }
.menu-bottone {
    display: none; align-items: center; gap: .5rem; height: 2.75rem; padding: 0 1rem;
    border: 1px solid var(--scuro); border-radius: 999px; background: var(--carta); color: var(--scuro);
    font: inherit; font-weight: 600; cursor: pointer; -webkit-appearance: none; appearance: none;
}

.striscia { display: flex; height: 5px; }
.striscia span { flex: 1; }

.menu { background: var(--scuro); }
.menu-dentro { max-width: var(--largo); margin: 0 auto; padding: 0 var(--margine); display: flex; flex-wrap: wrap; }
/* Ogni voce è un bottone con la riga del suo colore sopra e sotto: la
   striscia in alto è fatta dalle voci stesse, così le righe combaciano. */
.testata > .striscia { display: none; }
.menu a {
    padding: 1rem .8rem; border-top: 5px solid var(--colore); border-bottom: 4px solid var(--colore); color: #fff; text-decoration: none;
    font-weight: 600; font-size: .96875rem; letter-spacing: .035em; text-transform: uppercase; line-height: 1.2;
}
.menu a:hover, .menu a:focus-visible { color: #fff; background: rgba(255, 255, 255, .12); }
/* La voce dell'argomento in cui si è resta del suo colore. */
.menu a.attiva, .menu a.attiva:hover { background: var(--colore); }

@media (max-width: 60rem) {
    .testata-dentro { padding-top: 1rem; padding-bottom: 1rem; gap: .75rem 1rem; }
    .testata-marchio img { height: 56px; }
    .js .menu-bottone { display: inline-flex; }
    .cerca { order: 3; width: 100%; }
    .js .menu { display: none; }
    .js .menu.aperto { display: block; }
    .menu-dentro { flex-direction: column; padding: .5rem 0; }
    .testata > .striscia { display: flex; }
    .menu a { border-top: 0; border-bottom: 0; border-left: 6px solid var(--colore); padding: .85rem var(--margine); }
}

/* ------------------------------------------------ segni: argomenti ed etichette */

.segno-argomento, .segno-etichetta {
    display: inline-block; padding: .3rem .6rem; border-radius: 4px; font-size: .8125rem; font-weight: 700;
    letter-spacing: .05em; text-transform: uppercase; line-height: 1.2; text-decoration: none;
}
.segno-argomento { background: var(--colore); color: #fff; }
/* Le scritte piccole nel colore dell'argomento, e il bianco sopra quel
   colore, usano il colore un poco più scuro: con alcuni argomenti (Ambiente,
   Sostenibilità, Viaggi) il contrasto non bastava per leggere bene. Strisce,
   menu e carta restano del colore pieno. */
.segno-argomento { background: color-mix(in srgb, var(--colore) 85%, #000); }
a.segno-argomento:hover { color: #fff; filter: brightness(1.1); }
.segno-etichetta { background: #ebebe6; color: var(--secondario); }
.scheda-apertura .segno-etichetta { background: #fff; color: var(--testo); }

.scheda-argomenti { display: inline-flex; flex-wrap: wrap; gap: .25rem .5rem; font-size: .75rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.scheda-argomenti a { color: var(--colore); color: color-mix(in srgb, var(--colore) 85%, #000); text-decoration: none; }
.scheda-argomenti a + a::before { content: "·"; color: #8a8a85; margin-right: .5rem; }
.etichetta { display: inline-block; background: #ebebe6; color: var(--secondario); padding: .2rem .5rem; border-radius: 4px; font-size: .75rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }

.senza-foto { display: block; width: 100%; height: 100%; min-height: 6rem; background: #e4e4de; }

/* ------------------------------------------------ home */

.home { padding-top: 3rem; display: flex; flex-direction: column; gap: 4rem; }
@media (max-width: 40rem) { .home { padding-top: 1.5rem; gap: 3rem; } }

.apertura { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); grid-template-rows: auto auto; gap: 1.5rem; }
.apertura .scheda-apertura:first-child { grid-row: 1 / span 2; }
@media (max-width: 52rem) {
    .apertura { grid-template-columns: minmax(0, 1fr); }
    .apertura .scheda-apertura:first-child { grid-row: auto; }
}
.scheda-apertura { position: relative; border-radius: 10px; overflow: hidden; background: #222; min-height: 15.5rem; }
.apertura .scheda-apertura:first-child { min-height: 32.5rem; }
@media (max-width: 52rem) { .apertura .scheda-apertura:first-child { min-height: 24rem; } }
.scheda-apertura-link { position: absolute; inset: 0; display: block; color: #fff; text-decoration: none; }
.scheda-apertura-link:hover, .scheda-apertura-link:focus-visible { color: #fff; }
.scheda-apertura img, .scheda-apertura .senza-foto {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s;
}
.scheda-apertura-link:hover img { transform: scale(1.03); }
.scheda-apertura-link::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 32%, rgba(0, 0, 0, .82) 100%); }
.scheda-apertura-testo { position: absolute; z-index: 1; left: 1.375rem; right: 1.375rem; bottom: 1.25rem; display: flex; flex-direction: column; gap: .5rem; }
.apertura .scheda-apertura:first-child .scheda-apertura-testo { left: 2rem; right: 2rem; bottom: 1.875rem; gap: .75rem; }
.scheda-segni { display: flex; flex-wrap: wrap; gap: .5rem; }
.scheda-apertura .scheda-titolo { font-family: var(--serif); font-size: 1.4375rem; line-height: 1.2; font-weight: 700; }
.apertura .scheda-apertura:first-child .scheda-titolo { font-size: 2.5rem; line-height: 1.15; }
@media (max-width: 40rem) { .apertura .scheda-apertura:first-child .scheda-titolo { font-size: 1.75rem; } }
.scheda-apertura .scheda-data { font-size: .875rem; color: rgba(255, 255, 255, .9); }

.fascia-testa {
    display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
    border-bottom: 2px solid var(--scuro); padding-bottom: .75rem; margin-bottom: 1.75rem;
}
.fascia-testa h2 { margin: 0; font-family: var(--serif); font-size: 1.875rem; line-height: 1.2; font-weight: 700; }
.fascia-testa a { font-weight: 600; white-space: nowrap; text-decoration: none; }
@media (max-width: 40rem) { .fascia-testa h2 { font-size: 1.5rem; } }

.griglia-carte { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.75rem; }
@media (max-width: 64rem) { .griglia-carte { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 36rem) { .griglia-carte { grid-template-columns: minmax(0, 1fr); } }
.scheda-carta { display: flex; flex-direction: column; gap: .75rem; }
.scheda-carta .scheda-foto { display: block; aspect-ratio: 4 / 3; border-radius: 8px; overflow: hidden; background: #e4e4de; }
.scheda-carta .scheda-foto img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.scheda-carta .scheda-foto:hover img { transform: scale(1.03); }
.scheda-titolo { margin: 0; font-family: var(--serif); font-weight: 700; }
.scheda-titolo a { color: var(--testo); text-decoration: none; }
.scheda-titolo a:hover { color: var(--accento-sopra); }
.scheda-carta .scheda-titolo { font-size: 1.375rem; line-height: 1.25; }
.scheda-riassunto {
    margin: 0; font-size: 1rem; line-height: 1.55; color: var(--secondario);
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.scheda-data { margin: 0; font-size: .875rem; color: var(--tenue); }

.due-fasce { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4rem 3rem; }
@media (max-width: 56rem) { .due-fasce { grid-template-columns: minmax(0, 1fr); } }
.due-fasce .fascia-testa { margin-bottom: 0; }
.scheda-riga { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 1.25rem; padding: 1rem 0; border-bottom: 1px solid var(--linea); align-items: baseline; }
@media (max-width: 36rem) { .scheda-riga { grid-template-columns: minmax(0, 1fr); gap: .25rem; } }
.scheda-riga .scheda-titolo { font-size: 1.25rem; line-height: 1.3; margin-bottom: .25rem; }
.scheda-dettagli { margin: 0; display: flex; flex-wrap: wrap; gap: .25rem .5rem; align-items: center; font-size: .8125rem; }
.scheda-argomento { color: var(--colore); color: color-mix(in srgb, var(--colore) 85%, #000); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; text-decoration: none; }
.scheda-argomento + .scheda-fonte::before { content: "·"; color: #8a8a85; margin-right: .5rem; }
.scheda-fonte { color: var(--secondario); font-weight: 600; font-size: .875rem; }

.griglia-argomenti { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .875rem; }
@media (max-width: 64rem) { .griglia-argomenti { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 36rem) { .griglia-argomenti { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.griglia-argomenti a {
    background: var(--colore); color: #fff; border-radius: 8px; padding: 1.25rem; text-decoration: none;
    display: flex; flex-direction: column; gap: .25rem;
    background: color-mix(in srgb, var(--colore) 85%, #000);
}
.griglia-argomenti a:hover { color: #fff; filter: brightness(1.08); }
.argomento-nome { font-size: 1.25rem; font-weight: 700; line-height: 1.2; }
.argomento-conto { font-size: .875rem; }

/* ------------------------------------------------ elenchi */

.testa-elenco { padding: 2.75rem 0 1.75rem; border-bottom: 4px solid var(--colore, var(--scuro)); display: flex; flex-direction: column; gap: .625rem; margin-bottom: 1.75rem; }
.testa-elenco h1 { margin: 0; font-family: var(--serif); font-size: 3.25rem; line-height: 1.1; color: var(--colore, var(--testo)); font-weight: 700; overflow-wrap: anywhere; }
@media (max-width: 40rem) { .testa-elenco { padding-top: 1.75rem; } .testa-elenco h1 { font-size: 2.25rem; } }
.testa-testo { margin: 0; font-size: 1.125rem; color: var(--secondario); max-width: 50rem; }
.testa-nota { margin: 0; font-size: 1.0625rem; color: var(--secondario); }

.tipi { display: flex; flex-wrap: wrap; gap: .625rem; padding-bottom: .5rem; }
.tipi a {
    display: inline-flex; align-items: center; gap: .4rem; height: 2.5rem; padding: 0 1.125rem; border-radius: 999px;
    border: 1px solid #cfcfc8; background: var(--carta); color: var(--testo); font-weight: 600; font-size: .9375rem; text-decoration: none;
}
.tipi a span { color: var(--tenue); font-weight: 400; }
.tipi a:hover { border-color: var(--scuro); color: var(--testo); }
.tipi a.attivo { background: var(--colore, var(--scuro)); border-color: var(--colore, var(--scuro)); color: #fff; }
.tipi a.attivo span { color: rgba(255, 255, 255, .85); }

.scheda-elenco { display: grid; grid-template-columns: 17.5rem minmax(0, 1fr); gap: 1.75rem; padding: 1.5rem 0; border-bottom: 1px solid var(--linea); }
@media (max-width: 48rem) { .scheda-elenco { grid-template-columns: minmax(0, 1fr); gap: 1rem; } }
.scheda-elenco .scheda-foto { display: block; aspect-ratio: 3 / 2; border-radius: 8px; overflow: hidden; background: #e4e4de; align-self: start; }
.scheda-elenco .scheda-foto img { display: block; width: 100%; height: 100%; object-fit: cover; }
.scheda-elenco-testo { display: flex; flex-direction: column; gap: .5rem; min-width: 0; }
.scheda-elenco .scheda-titolo { font-size: 1.5625rem; line-height: 1.22; }
@media (max-width: 40rem) { .scheda-elenco .scheda-titolo { font-size: 1.375rem; } }
.scheda-elenco .scheda-dettagli { gap: .5rem .75rem; }

.vuoto { color: var(--secondario); padding: 1.5rem 0; }

.pagine { display: flex; flex-wrap: wrap; gap: .5rem; padding-top: 2rem; align-items: center; }
.pagine a, .pagine span {
    min-width: 2.75rem; height: 2.75rem; padding: 0 .75rem; display: inline-flex; align-items: center; justify-content: center;
    border-radius: 6px; font-weight: 600; text-decoration: none;
}
.pagine a { border: 1px solid #cfcfc8; background: var(--carta); color: var(--testo); }
.pagine a:hover { border-color: var(--scuro); }
.pagine .pagine-qui { background: var(--colore, var(--scuro)); color: #fff; }
.pagine .pagine-salto { min-width: 1rem; padding: 0; color: var(--tenue); }

.riquadro-colonna { display: flex; flex-direction: column; gap: 1rem; }
.riquadro-colonna h2 {
    margin: 0; font-size: .9375rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
    color: var(--colore, var(--testo)); border-bottom: 2px solid var(--colore, var(--testo)); padding-bottom: .5rem;
}
.nuvola { margin: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.nuvola a, .articolo-tag a {
    background: var(--carta); border: 1px solid #dcdcd5; border-radius: 4px; padding: .3rem .625rem;
    color: var(--testo); font-size: .875rem; text-decoration: none;
}
.nuvola a:hover, .articolo-tag a:hover { border-color: var(--scuro); }

.elenco-testate { list-style: none; margin: 0; padding: 0; columns: 3 14rem; column-gap: 3rem; }
.elenco-testate li { break-inside: avoid; padding: .5rem 0; border-bottom: 1px solid var(--linea); display: flex; justify-content: space-between; gap: 1rem; }
.elenco-testate a { color: var(--testo); font-weight: 600; text-decoration: none; }
.elenco-testate a:hover { color: var(--accento-sopra); }
.elenco-testate span { color: var(--tenue); }

.cerca-grande { display: flex; gap: .5rem; max-width: 36rem; margin: .5rem 0; }
.cerca-grande input {
    flex: 1; min-width: 0; height: 3rem; padding: 0 1rem; border: 1px solid #cfcfc8; border-radius: 6px;
    font: inherit; font-size: 1.0625rem; background: var(--carta); -webkit-appearance: none; appearance: none;
}
.cerca-grande button {
    height: 3rem; padding: 0 1.5rem; border: 0; border-radius: 6px; background: var(--scuro); color: #fff;
    font: inherit; font-weight: 700; cursor: pointer; -webkit-appearance: none; appearance: none;
}
.non-trovata { padding-top: 3rem; }
.non-trovata h1 { font-family: var(--serif); font-size: 2.5rem; line-height: 1.15; margin: 0 0 1rem; }

/* ------------------------------------------------ articolo */

.articolo-testa { padding-top: 2.5rem; display: flex; flex-direction: column; gap: 1rem; }
@media (max-width: 40rem) { .articolo-testa { padding-top: 1.5rem; } }
.briciole .briciola-argomento { color: var(--colore); color: color-mix(in srgb, var(--colore) 85%, #000); font-weight: 600; }
.articolo-segni { margin: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.articolo-testa h1 { margin: 0; max-width: 60rem; font-family: var(--serif); font-size: 3.375rem; line-height: 1.1; font-weight: 700; overflow-wrap: anywhere; }
@media (max-width: 52rem) { .articolo-testa h1 { font-size: 2.5rem; } }
@media (max-width: 40rem) { .articolo-testa h1 { font-size: 2rem; } }
.articolo-sommario { margin: 0; max-width: 53.75rem; font-size: 1.3125rem; line-height: 1.5; color: var(--secondario); }
@media (max-width: 40rem) { .articolo-sommario { font-size: 1.125rem; } }
.articolo-dati { margin: 0; font-size: .9375rem; color: var(--tenue); }
.articolo-dati a { color: var(--secondario); font-weight: 600; }

.articolo-copertina { margin: 2rem auto 0; }
.copertina-apri { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 10px; -webkit-appearance: none; appearance: none; }
.articolo-copertina img { display: block; width: 100%; height: auto; max-height: 37.5rem; object-fit: cover; border-radius: 10px; }
.articolo-copertina figcaption, .testo figcaption { margin-top: .5rem; font-family: var(--sans); font-size: .9375rem; color: var(--tenue); line-height: 1.45; }

.articolo .con-colonna { padding-top: 2.75rem; }
.articolo-corpo { max-width: 47.5rem; }

.testo { font-family: var(--serif); font-size: 1.25rem; line-height: 1.7; color: var(--testo-lungo); overflow-wrap: break-word; }
@media (max-width: 40rem) { .testo { font-size: 1.125rem; } }
.testo::after { content: ""; display: table; clear: both; }
.testo > :first-child { margin-top: 0; }
.testo p, .testo ul, .testo ol, .testo table, .testo pre { margin: 0 0 1.375rem; }
.testo li { margin-bottom: .375rem; }
.testo h2 { font-size: 1.875rem; line-height: 1.25; margin: 2.5rem 0 1rem; font-weight: 700; }
.testo h3 { font-size: 1.5rem; line-height: 1.3; margin: 2rem 0 .75rem; font-weight: 700; }
.testo h4 { font-family: var(--sans); font-size: 1.125rem; letter-spacing: .03em; text-transform: uppercase; margin: 2rem 0 .75rem; }
.testo a { color: var(--accento); }
.testo a:hover { color: #005a7a; }
.testo blockquote {
    margin: 2rem 0; padding: .25rem 0 .25rem 1.625rem; border-left: 4px solid var(--colore);
    font-style: italic; font-size: 1.375rem; line-height: 1.5; color: var(--testo);
}
.testo blockquote p:last-child { margin-bottom: 0; }
.testo hr { border: 0; border-top: 1px solid var(--linea); margin: 2.5rem 0; }
.testo table { border-collapse: collapse; width: 100%; font-family: var(--sans); font-size: 1rem; display: block; overflow-x: auto; }
.testo th, .testo td { border: 1px solid var(--linea); padding: .5rem .75rem; text-align: left; vertical-align: top; }
.testo th { background: #efefea; }
.testo code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .9em; }
/* Su WordPress il blocco «Preformattato» faceva da riquadro di approfondimento
   (curiosità, schede, inviti): qui è un riquadro col carattere del sito che va
   a capo da solo, tenendo gli a capo scritti nel testo. */
.testo pre {
    font-family: var(--sans); font-size: .9em; line-height: 1.55;
    white-space: pre-wrap; overflow-wrap: break-word;
    background: #efefea; padding: 1rem 1.25rem; border-left: 3px solid var(--accento);
}
.testo figure { margin: 2rem 0; }
.testo figure .nel-testo.piena { margin: 0; }

/* Le fotografie dentro al testo: a destra o a sinistra, in tre grandezze, o a tutta colonna. */
.nel-testo { display: block; line-height: 0; }
.nel-testo img { display: block; width: 100%; height: auto; border-radius: 6px; }
.nel-testo.a-destra { float: right; margin: .4rem 0 1rem 1.5rem; }
.nel-testo.a-sinistra { float: left; margin: .4rem 1.5rem 1rem 0; }
.nel-testo.piccola { width: 12rem; }
.nel-testo.media { width: 18rem; }
.nel-testo.minuscola { width: 6rem; }
.nel-testo.piena { float: none; width: auto; margin: 2rem 0; }
@media (max-width: 36rem) {
    .nel-testo.media { float: none; width: auto; margin: 1.5rem 0; }
    .nel-testo.piccola { width: 40%; }
}

/* Le gallerie: miniature che si aprono a schermo intero e si sfogliano. */
.galleria-testo { list-style: none; margin: 2rem 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr)); gap: .6rem; }
.testo .galleria-testo li { margin: 0; }
.galleria-testo button { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 4px; overflow: hidden; }
.galleria-testo img { display: block; width: 100%; aspect-ratio: 4 / 3; height: auto; object-fit: cover; transition: transform .2s; }
.galleria-testo button:hover img, .galleria-testo button:focus-visible img { transform: scale(1.03); }
@media (max-width: 30rem) { .galleria-testo { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.lightbox {
    width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none;
    margin: 0; padding: 0; border: 0; background: #0e0e0c; color: #fff;
}
.lightbox[open] { display: grid; grid-template-columns: 3rem minmax(0, 1fr) 3rem; align-items: center; }
.lightbox::backdrop { background: #0e0e0c; }
.lightbox figure { margin: 0; height: 100%; display: flex; flex-direction: column; justify-content: center; padding: 3.5rem 0 1rem; min-width: 0; }
.lightbox img { max-height: calc(100vh - 7rem); max-height: calc(100dvh - 7rem); width: auto; max-width: 100%; margin: 0 auto; object-fit: contain; }
.lightbox figcaption { text-align: center; font-family: var(--sans); font-size: .9375rem; color: #c9c8c2; padding: .75rem 1rem 0; min-height: 2.5rem; }
.lightbox button { background: none; border: 0; color: #fff; cursor: pointer; padding: .5rem; display: grid; place-items: center; -webkit-appearance: none; appearance: none; }
.lightbox button[hidden] { visibility: hidden; }
.lightbox-chiudi { position: absolute; top: .75rem; right: .75rem; }
.lightbox-prec, .lightbox-succ { height: 100%; }
.lightbox button:hover, .lightbox button:focus-visible { color: #9fd3e6; }

/* I video: il lettore di YouTube arriva solo al clic. */
.video { margin: 2rem 0; font-family: var(--sans); }
.video-avvia {
    position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .5rem;
    width: 100%; aspect-ratio: 16 / 9; padding: 1.5rem; border: 0; border-radius: 8px; cursor: pointer;
    background: var(--scuro); color: #fff; font: inherit; text-align: center; -webkit-appearance: none; appearance: none;
}
.video-avvia:hover .video-gioca, .video-avvia:focus-visible .video-gioca { background: #c4001f; }
.video-gioca { display: grid; place-items: center; width: 4.5rem; height: 3.25rem; border-radius: 12px; background: rgba(255, 255, 255, .18); transition: background .15s; }
.video-titolo { font-weight: 700; font-size: 1.125rem; line-height: 1.3; max-width: 32rem; }
.video-nota { font-size: .875rem; color: #c9c9c4; }
.video-fuori { display: inline-block; margin-top: .5rem; font-size: .9375rem; }
.video iframe { display: block; width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: 8px; }

/* I riquadri del testo. */
.box-riquadro, .box-avviso { padding: 1.125rem 1.375rem; margin: 0 0 1.375rem; border-radius: 8px; background: #efefea; overflow: hidden; }
.box-avviso { background: #fff4d6; border-left: 4px solid #ad5a0c; }
.box-riquadro > :last-child, .box-avviso > :last-child { margin-bottom: 0; }

.articolo-originale { margin: 2rem 0 0; padding: 1.125rem 1.375rem; border-radius: 8px; background: var(--carta); border: 1px solid var(--linea); font-weight: 700; }
.articolo-originale a { text-decoration: none; }
.articolo-tag { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin: 2rem 0 0; padding: 1.5rem 0; border-top: 1px solid var(--linea); border-bottom: 1px solid var(--linea); }
.articolo-tag > span { font-weight: 700; margin-right: .375rem; }

.correlato { display: grid; grid-template-columns: 6rem minmax(0, 1fr); gap: .875rem; align-items: center; color: var(--testo); text-decoration: none; }
.correlato img, .correlato .senza-foto { display: block; width: 6rem; height: 4.5rem; min-height: 0; object-fit: cover; border-radius: 6px; }
.correlato > span:last-child { font-family: var(--serif); font-size: 1.0625rem; line-height: 1.3; font-weight: 600; }
.correlato:hover { color: var(--accento-sopra); }
.riquadro-tutti { font-weight: 600; text-decoration: none; }

/* ------------------------------------------------ carta degli articoli (carta.js) */

.carta-disegno { display: block; width: 100%; height: 100%; touch-action: none; -webkit-tap-highlight-color: transparent; user-select: none; -webkit-user-select: none; }
.carta-sfera { fill: #d5e5ec; stroke: #b8ccd5; stroke-width: .6; vector-effect: non-scaling-stroke; }
.carta-paese { fill: #fbfbf8; stroke: #bcc5c0; stroke-width: .5; vector-effect: non-scaling-stroke; }
.carta-punto { stroke: #fff; stroke-width: 2; transition: opacity .3s; cursor: pointer; }
.carta-punto.scelto { stroke: var(--scuro); stroke-width: 3; }
.carta-punto.spento { opacity: .22; }
.carta-punto.nascosto { display: none; }
.carta-punto.in-gruppo { display: none; }
/* I gruppi di punti vicini: un tondo del colore dell'argomento, o a fette se sono più d'uno. */
.carta-gruppo { cursor: pointer; }
.carta-fetta { stroke: #fff; stroke-width: 1; stroke-linejoin: round; }
.carta-gruppo-bordo { fill: none; stroke: #fff; stroke-width: 2; }
.carta-nome { fill: var(--testo); font-family: var(--sans); font-size: 12px; font-weight: 600; opacity: 0; pointer-events: none; paint-order: stroke; stroke: #fff; stroke-width: 3px; stroke-linejoin: round; transition: opacity .25s; }
.carta-nome.mostra { opacity: 1; }
.carta-nome.spento { opacity: 0; }

.pallino { display: inline-block; width: .625rem; height: .625rem; border-radius: 50%; flex: none; }
.carta-filtri { display: flex; flex-wrap: wrap; gap: .375rem; align-items: center; margin: 0; }
.carta-filtri-nome { font-weight: 700; font-size: .875rem; margin-right: .25rem; }
.filtro {
    display: inline-flex; align-items: center; gap: .4rem; height: 2.125rem; padding: 0 .75rem; border-radius: 999px;
    border: 1px solid #d5d5ce; background: var(--carta); color: var(--testo); font: inherit; font-size: .875rem; font-weight: 600;
    cursor: pointer; text-decoration: none; -webkit-appearance: none; appearance: none;
}
.filtro:hover { border-color: var(--scuro); color: var(--testo); }
.filtro.attivo { background: var(--scuro); border-color: var(--scuro); color: #fff; }
/* Nel riquadro della carta i bottoni sono più piccoli: il riquadro deve
   stare tutto nello schermo anche con una finestra bassa. */
.carta-pannello .carta-filtri { gap: .3rem; }
.carta-pannello .filtro { height: auto; padding: .25rem .6rem; gap: .35rem; font-size: .8125rem; }
.carta-pannello .pallino { width: .5rem; height: .5rem; }

/* La pagina della carta: a tutto schermo sotto la testata. */
.carta-pagina { position: relative; height: calc(100vh - 12.5rem); height: calc(100dvh - 12.5rem); min-height: 34rem; background: #d5e5ec; overflow: hidden; }
.pagina:has(.carta-pagina) { padding-bottom: 0; }
.carta-spazio { position: absolute; inset: 0; }
.carta-pannello {
    position: absolute; left: 1.5rem; top: 1.5rem; z-index: 2; width: 21.25rem; max-height: calc(100% - 3rem); overflow: auto;
    display: flex; flex-direction: column; gap: .75rem; padding: 1.125rem;
    background: rgba(255, 255, 255, .97); border: 1px solid var(--linea); border-radius: 12px; box-shadow: 0 6px 24px rgba(0, 0, 0, .08);
}
.carta-pannello h1 { margin: 0; font-family: var(--serif); font-size: 1.625rem; line-height: 1.2; }
.carta-testo { margin: 0; font-size: .9375rem; line-height: 1.5; color: var(--secondario); }
.carta-cerca { width: 100%; }
.carta-risultati { list-style: none; margin: -.375rem 0 0; padding: .25rem 0; border: 1px solid var(--linea); border-radius: 8px; background: var(--carta); }
.carta-risultati button { display: block; width: 100%; text-align: left; padding: .4rem .75rem; border: 0; background: none; font: inherit; font-size: .9375rem; font-weight: 600; color: var(--testo); cursor: pointer; }
.carta-risultati button:hover, .carta-risultati button:focus-visible { background: #f1f1ec; }
.carta-risultati button span { display: block; font-weight: 400; font-size: .8125rem; color: var(--tenue); }
.carta-risultati .tenue { padding: .4rem .75rem; color: var(--tenue); font-size: .9375rem; }
.carta-conto { margin: 0; padding-top: .75rem; border-top: 1px solid var(--linea); font-size: .875rem; color: var(--secondario); }
.carta-scheda {
    position: absolute; right: 1.5rem; top: 1.5rem; z-index: 2; width: 21.25rem; max-height: calc(100% - 3rem); overflow: auto;
    background: var(--carta); border: 1px solid var(--linea); border-radius: 12px; box-shadow: 0 6px 24px rgba(0, 0, 0, .1);
}
.carta-scheda[hidden] { display: none; }
.carta-scheda > img { display: block; width: 100%; height: 11.875rem; object-fit: cover; }
.carta-scheda-chiudi {
    position: absolute; top: .5rem; right: .5rem; width: 2.5rem; height: 2.5rem; border: 0; border-radius: 50%;
    background: rgba(255, 255, 255, .92); color: var(--testo); display: grid; place-items: center; cursor: pointer; -webkit-appearance: none; appearance: none;
}
.carta-scheda-testo { padding: 1.125rem; display: flex; flex-direction: column; gap: .5rem; }
.carta-scheda-dove { margin: 0; padding-right: 2.5rem; font-size: .8125rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.carta-scheda h2 { margin: 0; font-family: var(--serif); font-size: 1.4375rem; line-height: 1.25; }
.carta-scheda h2 a { color: var(--testo); text-decoration: none; }
.carta-scheda h2 a:hover { color: var(--accento-sopra); }
.bottone-scuro {
    align-self: flex-start; display: inline-flex; align-items: center; height: 2.75rem; padding: 0 1.125rem; margin-top: .375rem;
    border-radius: 6px; background: var(--scuro); color: #fff; font-weight: 700; text-decoration: none;
}
.bottone-scuro:hover { color: #fff; background: #3a4048; }
.carta-scheda-vicini { margin-top: .625rem; padding-top: .625rem; border-top: 1px solid var(--linea); font-size: .875rem; display: flex; flex-direction: column; gap: .25rem; align-items: flex-start; }
.carta-scheda-vicini p { margin: 0; color: var(--secondario); }
.carta-scheda-vicini .collegamento { padding: 0; border: 0; background: none; font: inherit; font-weight: 600; color: var(--accento); text-align: left; cursor: pointer; }
.carta-zoom { position: absolute; right: 1.5rem; bottom: 1.5rem; z-index: 1; display: flex; flex-direction: column; gap: .375rem; }
.carta-zoom button {
    width: 2.75rem; height: 2.75rem; border: 1px solid #d5d5ce; border-radius: 8px; background: var(--carta); color: var(--testo);
    font: inherit; font-size: 1.375rem; line-height: 1; cursor: pointer; -webkit-appearance: none; appearance: none;
}
.carta-senza-js { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); background: var(--carta); padding: 1rem 1.5rem; border-radius: 8px; }
@media (max-width: 56.24rem) {
    .carta-pagina { height: auto; min-height: 0; display: flex; flex-direction: column; background: var(--fondo); overflow: visible; }
    .carta-pannello { position: static; order: -1; width: auto; max-height: none; margin: 1rem var(--margine); box-shadow: none; }
    .carta-pannello .carta-cerca { order: 0; }
    .carta-spazio { position: relative; inset: auto; height: 70vh; height: 70dvh; min-height: 22rem; background: #d5e5ec; }
    .carta-zoom { right: 1rem; bottom: 1rem; }
    .carta-scheda { position: fixed; left: .75rem; right: .75rem; top: auto; bottom: .75rem; width: auto; max-height: 60vh; z-index: 20; }
    .carta-scheda > img { height: 8rem; }
}

/* La fascia della carta in home. */
.carta-fascia-dentro { display: grid; grid-template-columns: minmax(0, 1fr) 18.75rem; gap: 1.5rem; align-items: stretch; }
@media (max-width: 56rem) { .carta-fascia-dentro { grid-template-columns: minmax(0, 1fr); } }
.carta-home { position: relative; min-height: 26rem; border-radius: 10px; overflow: hidden; border: 1px solid var(--linea); background: #d5e5ec; }
.carta-home-conto {
    position: absolute; left: 1rem; bottom: 1rem; z-index: 1; background: rgba(255, 255, 255, .94); border: 1px solid var(--linea); border-radius: 8px;
    padding: .5rem .75rem; font-size: .875rem; color: var(--testo); text-decoration: none;
}
.carta-fascia-lato { display: flex; flex-direction: column; gap: 1rem; }
.carta-fascia-lato > p:first-child { margin: 0; font-size: 1rem; line-height: 1.55; color: var(--secondario); }
.geoscope {
    margin-top: auto; display: flex; flex-direction: column; gap: .625rem; padding: 1.375rem; border-radius: 10px;
    background: var(--scuro); color: #fff; text-decoration: none;
}
.geoscope:hover { color: #fff; background: #2a3038; }
.geoscope-occhiello { font-size: .8125rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #9fd3e6; }
.geoscope-nome { font-family: var(--serif); font-size: 1.625rem; font-weight: 700; line-height: 1.1; }
.geoscope-testo { font-size: .9375rem; line-height: 1.5; color: #d6d6d0; }
.geoscope-vai { font-weight: 700; }

/* La carta piccola nella colonna dell'articolo: è un link alla carta grande. */
.carta-piccola { display: block; position: relative; height: 12.5rem; border-radius: 8px; overflow: hidden; border: 1px solid var(--linea); background: #d5e5ec; }
.carta-piccola .carta-disegno { pointer-events: none; }
.carta-piccola .carta-nome { display: none; }

/* Il menu: la voce della carta, in fondo a destra. */
.menu a.menu-carta { --colore: transparent; margin-left: auto; display: inline-flex; align-items: center; gap: .5rem; }
.menu a.menu-carta.attiva, .menu a.menu-carta.attiva:hover { background: rgba(255, 255, 255, .2); }
@media (max-width: 60rem) { .menu a.menu-carta { margin-left: 0; } }

/* ------------------------------------------------ piè di pagina */

.piede { background: var(--scuro); color: #c9c9c4; font-size: .9375rem; }
.piede-dentro {
    max-width: var(--largo); margin: 0 auto; padding: 1.4rem var(--margine);
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem;
}
.piede-marchio { display: flex; align-items: center; gap: .875rem; }
.piede-marchio img { height: 2.75rem; width: auto; }
.piede-link { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.375rem; }
.piede a { color: #fff; text-decoration: none; }
.piede a:hover { color: #9fd3e6; }
.piede svg { display: block; }

/* ------------------------------------------------ annunci */

/* Ogni annuncio porta la scritta «Annuncio», anche quando è nostro. */
.annuncio { display: flex; flex-direction: column; align-items: center; gap: .3rem; margin: 0; }
.annuncio-segno { align-self: stretch; font-family: var(--sans); font-size: .6875rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--tenue); text-align: center; }
.annuncio a { display: block; line-height: 0; }
.annuncio img { display: block; width: 100%; height: auto; }
.annuncio-rettangolo { width: 100%; max-width: 336px; margin-inline: auto; }
.annuncio-leaderboard { width: 728px; max-width: 100%; }
/* Il banner non si taglia mai: si vede intero, con le sue proporzioni (il
   pannello avvisa se non sono quelle del formato). Il lungo non supera
   l'altezza del suo posto. */
.annuncio-leaderboard img { height: 90px; width: auto; max-width: 100%; object-fit: contain; }
.annuncio-google { min-height: 0; }
.annuncio-google ins { width: 100%; }
/* In home, al posto della quarta scheda degli originali: la riga del titolo
   copre le tre schede, «Annuncio» sta alla sua altezza e il banner parte
   con le foto. Sugli schermi stretti viene sotto le schede. */
.fascia-annuncio-segno { margin: 1.75rem 0 .3rem; }
.carta-annuncio .annuncio-rettangolo { max-width: 336px; margin: 0 auto; }
@media (min-width: 64.0625rem) {
    .fascia-con-annuncio { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 1.75rem; }
    .fascia-con-annuncio > .fascia-testa { grid-column: 1 / 4; grid-row: 1; }
    .fascia-con-annuncio > .fascia-annuncio-segno { grid-column: 4; grid-row: 1; align-self: end; margin: 0 0 1.75rem; padding-bottom: .75rem; border-bottom: 2px solid transparent; }
    .fascia-con-annuncio > .griglia-carte { grid-column: 1 / 4; grid-row: 2; grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .fascia-con-annuncio > .carta-annuncio { grid-column: 4; grid-row: 2; }
}
/* Nel testo: un blocco a sé, separato dal testo da due fili. */
.annuncio-nel-testo { margin: 2rem 0; padding: 1rem 0; border-top: 1px solid var(--linea); border-bottom: 1px solid var(--linea); clear: both; }

/* La testata con il banner lungo: solo sugli schermi larghi, e la ricerca
   diventa una lente che apre il campo. Sotto i 1200 pixel il banner sparisce
   e la ricerca torna com'è. */
.testata-annuncio, .cerca-lente { display: none; }
@media (min-width: 75rem) {
    .testata-dentro.con-annuncio { position: relative; flex-wrap: nowrap; }
    .con-annuncio .testata-annuncio { display: block; flex: 0 1 auto; min-width: 0; }
    /* Nella testata la scritta «Annuncio» sta in verticale, alla destra del banner. */
    .testata-annuncio .annuncio { flex-direction: row; align-items: center; gap: .35rem; width: auto; }
    .testata-annuncio .annuncio-segno { order: 2; align-self: center; writing-mode: vertical-rl; text-align: center; line-height: 1; }
    .js .con-annuncio .cerca-lente {
        display: inline-flex; align-items: center; justify-content: center; flex: none; width: 2.75rem; height: 2.75rem; padding: 0;
        border: 1px solid #d9d9d4; border-radius: 999px; background: var(--carta); color: var(--tenue); cursor: pointer; -webkit-appearance: none; appearance: none;
    }
    .js .con-annuncio .cerca-lente:hover { border-color: var(--accento); color: var(--accento); }
    .js .con-annuncio .cerca { display: none; }
    .js .con-annuncio .cerca.aperta {
        display: flex; position: absolute; right: var(--margine); top: 50%; transform: translateY(-50%); z-index: 5;
        width: 20rem; box-shadow: 0 6px 24px rgba(0, 0, 0, .12);
    }
}

/* ------------------------------------------------ commenti e moduli */

.commenti { margin: 2.5rem 0 0; font-family: var(--sans); }
.commenti > h2 { font-family: var(--serif); font-size: 1.625rem; margin: 0 0 1.25rem; }
.commento-filo { padding: 1.25rem 0; border-top: 1px solid var(--linea); }
.commento { margin: 0; }
.commento-testa { margin: 0 0 .35rem; font-size: .9375rem; color: var(--secondario); }
.commento-testa strong { color: var(--testo); }
.commento-testo { font-size: 1.0625rem; line-height: 1.6; }
.commento-testo p { margin: 0 0 .6rem; }
.commento-risposta { margin: 1rem 0 0 1.5rem; padding-left: 1rem; border-left: 3px solid var(--colore, var(--accento)); }
.commento-redazione .commento-testa strong { color: var(--colore, var(--accento)); }
.commento-grazie { margin: 1.5rem 0; padding: .9rem 1.1rem; border-left: 4px solid #2e7d4f; background: #eef7f1; color: #17643b; font-family: var(--sans); }
.commento-modulo { margin: 1.5rem 0 0; padding: 1.5rem 0 0; border-top: 1px solid var(--linea); font-family: var(--sans); }
.commento-modulo h3 { margin: 0 0 1rem; font-size: 1.125rem; }
.commento-modulo p { margin: 0 0 1rem; }
.commento-modulo label { display: block; margin-bottom: .35rem; font-weight: 600; font-size: .9375rem; }
.commento-modulo label span { font-weight: 400; color: var(--tenue); }
.commento-modulo input[type=text], .commento-modulo input[type=email], .commento-modulo textarea {
    display: block; width: 100%; padding: .65rem .8rem; border: 1px solid #cfcfc9; border-radius: 6px; background: var(--carta);
    font: inherit; font-size: 1rem; color: var(--testo); -webkit-appearance: none; appearance: none;
}
.commento-modulo input:focus, .commento-modulo textarea:focus { outline: 2px solid var(--accento); outline-offset: 1px; border-color: var(--accento); }
.commento-modulo textarea { resize: vertical; min-height: 8rem; }
.commento-modulo .bottone-scuro { border: 0; font: inherit; font-weight: 700; cursor: pointer; }
.modulo-affiancati { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 0 1rem; }
.modulo-nota { font-size: .875rem; color: var(--tenue); }
.modulo-errore { padding: .75rem 1rem; border-left: 4px solid #b3261e; background: #fbeeee; color: #8b1e17; }
/* Il campo che solo i programmi riempiono. */
.esca { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.testo-pagina { font-size: 1.125rem; }

@media print {
    .testata .cerca, .menu-bottone, .menu, .colonna, .piede, .anteprima, .striscia-bozza, .video-avvia,
    .annuncio, .annuncio-nel-testo, .testata-annuncio, .cerca-lente, .commento-modulo { display: none !important; }
    body { background: #fff; }
}
