/*
 * Living Liguria — tema "Libeccio" (2026).
 * Base chiara e liste veloci + foto immersive, onde e titoli Archivo espansi. Mobile first.
 * Indice: variabili, base, testata, spot, mattoni, card, costa, home, hero, articolo, archivio,
 * chi siamo, piede, meteo, testi, consenso, tablet, desktop.
 */

:root {
	--bianco: #fff;
	--foschia: #f1f8fc;
	--fondale: #062a4a;
	--mare: #0077b6;
	--turchese: #00b4d8;
	--schiuma: #caf0f8;
	--inchiostro: #0f2233;
	--grigio: #576a79;
	--linea: #e0edf4;

	--grad: linear-gradient(110deg, var(--mare), var(--turchese)); /* decorativo: barrette, avanzamento, bordi */
	--grad-testo: linear-gradient(110deg, #0077b6, #0e7db8); /* sotto testo bianco: contrasto ≥ 4,5:1 */
	--focus: #0b5f96; /* anello del focus sui fondi chiari (≥ 3:1); sui fondi blu diventa bianco */
	--velo: linear-gradient(180deg, rgba(6, 42, 74, 0) 30%, rgba(6, 42, 74, .55) 62%, rgba(6, 42, 74, .92) 100%);

	--f: "Archivo", system-ui, sans-serif;
	--f-lettura: var(--f); /* un solo carattere, Archivo, anche per leggere (scelta di Davide) */
	--grad-testata: linear-gradient(100deg, #0b5f96 0%, #0e7db8 100%); /* bianco sopra: 6,8:1 e 4,5:1 */
	--gutter: 1rem;
	--max: 78rem;
	--r: 18px;

	--ck-sfondo: #fff;
	--ck-testo: var(--inchiostro);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-family: var(--f); color: var(--inchiostro); background: var(--bianco); line-height: 1.5; }
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, .h3 { margin: 0; line-height: 1.08; letter-spacing: -0.015em; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
/* Su fondi blu, gradienti e foto l'anello del focus è bianco. */
:is(.testata, .banda, .chi-teaser, .chi__box, .piede, .card, .apertura, .hero, .spot, .voto, .is-oggi, .meteo-oggi__card, .ll-mappa, .contatto-fisso) :focus-visible { outline-color: #fff; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.salta { position: absolute; left: -999px; top: 0; z-index: 90; background: #fff; padding: .6rem 1rem; }
.salta:focus { left: 1rem; }
.link { font: inherit; background: none; border: 0; padding: 0; color: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* Titoli espansi (da B), usati con misura */
.grande, .spot h1, .hero h1, .banda h2 { font-variation-settings: "wdth" 118; font-weight: 900; }
.titoletto { font-size: 1.05rem; font-weight: 800; margin: 0 0 .8rem; }
.titoletto::before { content: ""; display: inline-block; width: 1.4rem; height: .3rem; margin-right: .5rem; border-radius: 4px; background: var(--grad); vertical-align: middle; }

.onda { display: block; width: 100%; height: 34px; position: relative; z-index: 2; margin-bottom: -1px; }
.onda--su { transform: scaleY(-1); margin: -1px 0 0; }

/* ---------- Testata (da C) ---------- */
.testata { position: sticky; top: 0; z-index: 40; background: var(--grad-testata); color: #fff; box-shadow: 0 6px 20px -12px rgba(6, 42, 74, .6); }
.testata__riga { display: flex; align-items: center; gap: 1rem; max-width: var(--max); margin: 0 auto; padding: .7rem var(--gutter) .3rem; }
.logo { flex: none; }
.logo img { width: 150px; }
.cerca { flex: 1; display: flex; align-items: center; gap: .5rem; padding: 0 .9rem; border-radius: 999px; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .28); color: #fff; min-width: 0; }
.cerca input { flex: 1; min-width: 0; font: inherit; font-size: 1rem; padding: .6rem 0; border: 0; background: none; color: #fff; }
.cerca input::placeholder { color: rgba(255, 255, 255, .85); }
.cerca input:focus { outline: none; }
.cerca:focus-within { outline: 2px solid #fff; background: rgba(255, 255, 255, .24); }
.schede { display: flex; gap: .2rem; overflow-x: auto; max-width: var(--max); margin: 0 auto; padding: .3rem var(--gutter) 0; scrollbar-width: none; }
.schede::-webkit-scrollbar { display: none; }
.schede a { flex: none; position: relative; padding: .55rem .8rem .75rem; font-weight: 600; color: #fff; text-decoration: none; }
.schede a:hover { background: rgba(255, 255, 255, .1); border-radius: 8px 8px 0 0; }
.schede a[aria-current] { color: #fff; font-weight: 800; }
.schede a[aria-current]::after { content: ""; position: absolute; left: .8rem; right: .8rem; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: #fff; }
.testata :focus-visible { outline-color: #fff; }

/* Burger sotto i 900px: il menu si apre in un pannello sotto la testata (senza JS resta la fila di schede) */
.burger, .cerca--menu { display: none; }
@media (max-width: 899px) {
	.js .burger { display: grid; place-items: center; flex: none; width: 46px; height: 46px; border: 0; border-radius: 12px; background: rgba(255, 255, 255, .16); color: #fff; cursor: pointer; }
	.burger__linee { display: grid; gap: 5px; width: 22px; }
	.burger__linee span { display: block; height: 2px; border-radius: 2px; background: currentColor; transition: transform .2s, opacity .2s; }
	.burger[aria-expanded="true"] .burger__linee span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
	.burger[aria-expanded="true"] .burger__linee span:nth-child(2) { opacity: 0; }
	.burger[aria-expanded="true"] .burger__linee span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
	.js .schede { display: none; }
	.js .testata.menu-aperto .schede { display: flex; flex-direction: column; gap: 0; max-height: calc(100vh - var(--alto-riga, 70px)); max-height: calc(100svh - var(--alto-riga, 70px)); overflow-y: auto; overscroll-behavior: contain; padding: .4rem var(--gutter) 1rem; }
	.js .testata.menu-aperto .schede a { padding: .95rem .4rem; font-size: 1.1rem; border-top: 1px solid rgba(255, 255, 255, .18); border-radius: 0; }
	.js .testata.menu-aperto .schede a[aria-current]::after { left: 0; right: auto; top: .8rem; bottom: .8rem; width: 4px; height: auto; border-radius: 4px; }
	.js .testata.menu-aperto .schede a[aria-current] { padding-left: 1rem; }
	.js .testata__riga { padding-bottom: .7rem; }
}
/* Telefoni stretti: nella riga solo logo e burger, la ricerca passa in cima al pannello del menu */
@media (max-width: 479px) {
	.js .testata__riga > .cerca { display: none; }
	.js .burger { margin-left: auto; }
	.js .testata.menu-aperto .cerca--menu { display: flex; flex: none; margin: .3rem 0 .6rem; }
}

/* ---------- Spot video in home ---------- */
.spot { position: relative; min-height: min(78svh, 46rem); /* come .hero--alta (Chi siamo, residenze) */ display: flex; flex-direction: column; justify-content: flex-end; color: #fff; isolation: isolate; overflow: hidden; }
.spot__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.spot::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(6, 42, 74, .1) 30%, rgba(0, 119, 182, .55) 75%, rgba(6, 42, 74, .85)); }
.spot__testo { max-width: var(--max); width: 100%; margin: 0 auto; padding: 0 var(--gutter) 1rem; }
.spot h1 { font-size: clamp(2.2rem, 10vw, 5.4rem); line-height: .98; }
.spot p { margin: .8rem 0 0; max-width: 32rem; font-size: 1.05rem; }

/* ---------- Mattoni ---------- */
.pagina { max-width: var(--max); margin: 0 auto; padding: 1.4rem var(--gutter) 2rem; display: grid; gap: 2rem; }
.testa-sezione { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .6rem 1rem; margin-bottom: 1rem; }
.testa-sezione .pulsante { flex: none; white-space: nowrap; }
.testa-sezione h2.grande, .grande { font-size: clamp(1.8rem, 7vw, 3rem); }
.tag { display: inline-block; margin-right: .5rem; padding: .1rem .5rem; border-radius: 6px; font-size: .74rem; font-weight: 800; color: var(--mare); background: #e2f3fb; }
.tag--eventi { color: #0b7a70; background: #dcf5f1; }
.tag--esperienze { color: #4848ad; background: #ebebfb; }
.tag--tradizionale { color: #0b5f96; background: #e2f3fb; }
.tag--street-food { color: #8a4b00; background: #fff1dc; }
.tag--gourmet { color: #4848ad; background: #ebebfb; }
.riga__sopra { margin: 0 0 .3rem; font-size: .82rem; color: var(--grigio); }
.riga__sotto { display: flex; flex-wrap: wrap; gap: .2rem 1rem; margin: .4rem 0 0; font-size: .8rem; color: var(--grigio); }
.riga__sotto strong { color: var(--mare); }

.riga { position: relative; display: grid; grid-template-columns: 1fr 112px; gap: 1rem; align-items: start; padding: 1rem 0; border-bottom: 1px solid var(--linea); }
.riga[hidden], .card[hidden] { display: none; }
.riga h3 { font-size: 1.04rem; font-weight: 700; line-height: 1.25; }
.riga h3 a { text-decoration: none; }
.riga h3 a::after { content: ""; position: absolute; inset: 0; }
.riga:hover h3 { color: var(--mare); }
.riga__img { width: 112px; aspect-ratio: 1; object-fit: cover; border-radius: 12px; }

/* Card a foto piena (da B) */
.card, .apertura { position: relative; border-radius: var(--r); overflow: hidden; background: var(--fondale); color: #fff; isolation: isolate; }
.card { aspect-ratio: 4 / 5; }
.card img, .apertura img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; transition: transform .6s ease; }
.card:hover img, .apertura:hover img { transform: scale(1.04); }
.card__velo { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: .45rem; padding: 1.2rem; background: var(--velo); }
.card__luogo { margin: 0; align-self: flex-start; font-size: .76rem; font-weight: 700; padding: .25rem .65rem; border-radius: 999px; background: rgba(255, 255, 255, .22); backdrop-filter: blur(6px); }
.card h3, .card .h3 { font-size: 1.25rem; font-weight: 800; font-variation-settings: "wdth" 106; }
.card h3 a, .apertura h2 a { text-decoration: none; }
.card h3 a::after, .apertura h2 a::after { content: ""; position: absolute; inset: 0; }
.card__info { display: flex; flex-wrap: wrap; gap: .3rem .9rem; margin: 0; font-size: .8rem; opacity: .88; }
.card--residenza { display: block; text-decoration: none; aspect-ratio: 4 / 3; }
.card--larga { aspect-ratio: 16 / 10; margin-bottom: .5rem; }
.card--larga h3 { font-size: clamp(1.3rem, 4.5vw, 2rem); }

.apertura { aspect-ratio: 4 / 5; }
.apertura h2 { font-size: clamp(1.6rem, 6.5vw, 2.6rem); font-weight: 900; font-variation-settings: "wdth" 110; text-wrap: balance; }

/* Binario a scorrimento (da B) */
.binario { display: grid; grid-auto-flow: column; grid-auto-columns: 80%; gap: .9rem; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: .4rem; scrollbar-width: none; }
.binario::-webkit-scrollbar { display: none; }
.binario > * { scroll-snap-align: start; }
.binario--larghe { grid-auto-columns: 88%; }

.banda { background: var(--grad-testo); color: #fff; }
.banda__dentro { max-width: var(--max); margin: 0 auto; padding: 1.4rem var(--gutter) 2.2rem; }
.banda h2 { font-size: clamp(1.8rem, 7vw, 3rem); }

/* Esplora la costa (da C) */
.esplora { background: var(--foschia); }
.esplora__dentro { max-width: var(--max); margin: 0 auto; padding: 2rem var(--gutter); display: grid; gap: 1rem; }
.esplora__comandi > p { margin: .3rem 0 0; color: var(--grigio); }
.esplora__stato { margin: .4rem 0 0; font-weight: 700; color: var(--mare) !important; }
.vuoto { padding: 1.5rem 0; color: var(--grigio); }

.costa { width: 100%; height: auto; margin: .8rem 0 .4rem; overflow: visible; }
.costa__mare { fill: #9ec6df; font: italic 500 20px var(--f); text-anchor: middle; }
.costa__tratto { cursor: pointer; outline: none; }
.costa__area { fill: none; stroke: transparent; stroke-width: 34; stroke-linecap: round; }
.costa__linea { fill: none; stroke: #b5d8ea; stroke-width: 8; stroke-linecap: round; transition: stroke .2s; }
.costa__tratto circle { fill: #fff; stroke: #86b9d4; stroke-width: 2.5; }
.costa__tratto text { font: 700 21px var(--f); fill: var(--grigio); text-anchor: middle; }
.costa__tratto:hover .costa__linea { stroke: var(--turchese); }
.costa__tratto:focus-visible .costa__linea { stroke: var(--focus); }
.costa__tratto:focus-visible .costa__area { stroke: rgba(11, 95, 150, .35); }
.costa__tratto.is-attiva .costa__linea { stroke: url(#costa-grad); stroke-width: 11; }
.costa__tratto.is-attiva circle { fill: var(--mare); stroke: var(--mare); }
.costa__tratto.is-attiva text { fill: var(--mare); font-weight: 900; }
#costa-grad stop:first-child { stop-color: var(--mare); }
#costa-grad stop:last-child { stop-color: var(--turchese); }

.segmenti { display: flex; flex-wrap: wrap; gap: 2px; padding: 3px; border-radius: 22px; background: #d9ecf5; }
.segmenti button { flex: 1; font: inherit; font-size: .88rem; font-weight: 700; min-height: 42px; border: 0; border-radius: 999px; background: none; color: var(--grigio); cursor: pointer; }
.segmenti button[aria-pressed="true"] { background: var(--grad-testo); color: #fff; }
.segmenti a { flex: 1; min-width: 0; display: grid; place-items: center; min-height: 42px; padding: 0 .4rem; border-radius: 999px; font-size: .88rem; font-weight: 700; color: var(--grigio); text-decoration: none; }
.segmenti a[aria-current] { background: var(--grad-testo); color: #fff; }

/* Calendario e chi siamo */
.calendario { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.calendario li { display: grid; grid-template-columns: 3.6rem 1fr; gap: .9rem; align-items: center; padding: .7rem; border-radius: 14px; background: var(--foschia); }
.calendario time { display: grid; justify-items: center; padding: .45rem 0; border-radius: 10px; background: var(--grad-testo); color: #fff; font-size: 1.4rem; font-weight: 900; line-height: 1.05; }
.calendario small { font-size: .7rem; font-weight: 600; }
.calendario a { display: block; font-weight: 700; text-decoration: none; line-height: 1.3; }
.calendario span { font-size: .82rem; color: var(--grigio); }
.teaser-colonna { display: grid; gap: 1rem; align-content: start; }
.chi-teaser { padding: 1.4rem; border-radius: var(--r); background: linear-gradient(160deg, var(--fondale), var(--mare)); color: #fff; }
.chi-teaser .titoletto { color: #fff; }
.chi-teaser__frase { font-size: 1.4rem; font-weight: 600; line-height: 1.3; margin: 0 0 .6rem; }
.chi-teaser p { color: rgba(255, 255, 255, .9); }

.pulsante { display: inline-flex; justify-content: center; align-items: center; min-height: 48px; padding: 0 1.3rem; border-radius: 999px; font-weight: 700; text-decoration: none; border: 2px solid currentColor; }
.pulsante--pieno { border: 0; background: var(--grad-testo); color: #fff; }

.residenze { max-width: var(--max); margin: 0 auto; padding: 1rem var(--gutter) 2.6rem; }
.residenze__nota { margin: -.6rem 0 1rem; color: var(--grigio); }

/* ---------- Hero di articolo, archivio, residenza, chi siamo (da B) ---------- */
.hero { position: relative; min-height: min(64svh, 38rem); display: flex; flex-direction: column; justify-content: flex-end; color: #fff; isolation: isolate; overflow: hidden; }
.hero--alta { min-height: min(78svh, 46rem); }
.hero--bassa { min-height: min(40svh, 24rem); }
.hero__foto { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(6, 42, 74, 0) 30%, rgba(0, 119, 182, .6) 72%, rgba(6, 42, 74, .92)); }
/* Tutto parte dallo stesso bordo sinistro del logo e del menu (richiesta di Davide, 12/10/2026). */
.hero__testo { max-width: var(--max); width: 100%; margin: 0 auto; padding: 0 var(--gutter) .6rem; }
.hero h1 { max-width: 22ch; font-size: clamp(1.8rem, 7vw, 3.6rem); text-wrap: balance; }
:is(.hero--articolo, .hero--chi) h1 { max-width: none; text-wrap: pretty; } /* titolo largo quanto il contenitore (articoli, Chi siamo) */
.hero .hero__enorme { font-size: clamp(2.4rem, 12vw, 7.5rem); line-height: .95; overflow-wrap: anywhere; }
.hero__testo p { margin: .5rem 0 0; font-weight: 600; }
.briciole { display: flex; gap: .5rem; margin-bottom: .9rem; font-size: .82rem; font-weight: 700; }
.briciole a { padding: .3rem .75rem; border-radius: 999px; background: rgba(255, 255, 255, .22); text-decoration: none; backdrop-filter: blur(6px); }

.progresso { position: fixed; inset: 0 0 auto; height: 4px; z-index: 50; pointer-events: none; }
.progresso span { display: block; height: 100%; background: var(--grad); transform-origin: left; transform: scaleX(0); }

/* ---------- Articolo (strumenti da C) ---------- */
.articolo__barra { max-width: var(--max); margin: 0 auto; padding: .6rem var(--gutter) 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: .8rem 1.6rem; }
.strumenti { display: flex; gap: .4rem; }
.strumento { font: inherit; font-weight: 700; min-width: 44px; min-height: 44px; padding: 0 .9rem; border-radius: 999px; border: 1px solid var(--linea); background: #fff; color: var(--inchiostro); cursor: pointer; }
.strumento--pieno { border: 0; background: var(--grad-testo); color: #fff; }
.condividi { position: relative; }
.condividi__menu { position: absolute; left: 0; top: calc(100% + .4rem); z-index: 35; display: grid; min-width: 13rem; max-width: calc(100vw - 2 * var(--gutter)); padding: .4rem; border-radius: 14px; background: #fff; box-shadow: 0 18px 40px -16px rgba(6, 42, 74, .45); border: 1px solid var(--linea); }
.condividi__menu[hidden] { display: none; }
@media (max-width: 479px) { .condividi__menu { left: auto; right: 0; } } /* il pulsante sta a destra della fila: il menu si apre verso sinistra */
.condividi__menu a, .condividi__menu button { display: flex; align-items: center; min-height: 44px; padding: 0 .9rem; border: 0; border-radius: 10px; background: none; font: inherit; font-weight: 700; color: var(--mare); text-decoration: none; text-align: left; cursor: pointer; }
.condividi__menu a:hover, .condividi__menu button:hover { background: var(--foschia); }
.articolo__griglia { max-width: var(--max); margin: 0 auto; padding: 1.4rem var(--gutter) 2.4rem; display: grid; gap: 2rem; }
.articolo__corpo, .residenza__corpo { font-size: 1.08rem; line-height: 1.7; max-width: 40rem; }
.articolo__corpo > p:first-of-type { font-size: 1.22em; line-height: 1.5; }
.articolo__corpo h2, .articolo__corpo h3, .residenza__corpo h2 { font-family: var(--f); font-weight: 900; font-variation-settings: "wdth" 110; font-size: 1.5rem; margin: 2.2rem 0 .7rem; color: var(--mare); }
.articolo__corpo img, .residenza__corpo img { border-radius: var(--r); margin: 1.4rem 0; }
.articolo__corpo a { color: var(--mare); }
.residenza__corpo > p:first-child { font-family: var(--f); font-size: 1.4rem; line-height: 1.3; font-weight: 800; color: var(--mare); }
.scheda-luogo, .contatto { display: grid; gap: .5rem; padding: 1.1rem; border-radius: var(--r); background: var(--foschia); }
.scheda-luogo__nome { margin: 0; font-size: 1.35rem; font-weight: 900; }
.scheda-luogo .costa { margin: 0; }
.contatto p { margin: 0; }
.contatto p:not(.titoletto) { color: var(--grigio); margin-bottom: .4rem; }
.contatto .pulsante:not(.pulsante--pieno, .pulsante--negativo) { color: var(--mare); }

/* Barra contatto fissa sul telefono (da B) */
.contatto-fisso { position: sticky; bottom: .7rem; z-index: 30; display: flex; align-items: center; gap: .5rem; width: calc(100% - 2 * var(--gutter)); max-width: 40rem; margin: 0 auto 1.5rem; padding: .55rem .55rem .55rem 1rem; border-radius: 999px; background: var(--fondale); color: #fff; box-shadow: 0 16px 40px -14px rgba(6, 42, 74, .7); }
.contatto-fisso p { margin: 0 auto 0 0; font-size: .82rem; line-height: 1.25; }
.contatto-fisso strong { display: block; font-size: .92rem; }
.pillola { display: inline-flex; align-items: center; min-height: 44px; padding: 0 1rem; border-radius: 999px; font-weight: 700; text-decoration: none; background: rgba(255, 255, 255, .15); color: #fff; }
.pillola--piena { background: var(--grad-testo); }

/* ---------- Archivio ---------- */
.archivio { max-width: var(--max); margin: 0 auto; padding: 1rem var(--gutter) 3rem; display: grid; gap: 1.4rem; }
.archivio__filtri { padding: 1rem; border-radius: var(--r); background: var(--foschia); }
.sezioni { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1rem; scrollbar-width: none; }
.sezioni a { flex: none; padding: .5rem 1rem; border-radius: 999px; font-weight: 700; text-decoration: none; background: #fff; color: var(--mare); }
.sezioni a[aria-current] { background: var(--grad-testo); color: #fff; }
.paginazione { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 1.6rem; }
.paginazione a { min-height: 44px; display: inline-flex; align-items: center; padding: 0 1.1rem; border-radius: 999px; font-weight: 700; text-decoration: none; background: var(--grad-testo); color: #fff; }
.paginazione a[aria-disabled] { background: var(--foschia); color: #9aaab6; pointer-events: none; }
.paginazione span { font-size: .9rem; color: var(--grigio); }

/* ---------- Chi siamo ---------- */
.chi__due { display: grid; gap: 1rem; margin: 2rem 0; font-size: 1rem; }
.chi__box { padding: 1.4rem; border-radius: var(--r); background: var(--grad-testo); color: #fff; }
.chi__box h2 { color: #fff !important; margin-top: 0 !important; }
.chi__contatti { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: .6rem; font-family: var(--f); font-size: .98rem; }
.chi__contatti li { padding: .85rem 1rem; border-radius: 14px; background: var(--foschia); }
.chi__contatti span { display: block; font-size: .76rem; font-weight: 800; color: var(--mare); }

/* ---------- Piede editoriale ---------- */
.piede { background: var(--fondale); color: rgba(255, 255, 255, .82); margin-top: 0; } /* la separazione la fa l'onda */
.piede__dentro { max-width: var(--max); margin: 0 auto; padding: 1.4rem var(--gutter) 1.6rem; }
.piede__testa { display: block; padding-bottom: 1.6rem; border-bottom: 1px solid rgba(255, 255, 255, .14); }
.piede__claim { margin: 0; font-size: clamp(1.8rem, 7vw, 3.6rem); font-weight: 900; line-height: 1; font-variation-settings: "wdth" 120; background: linear-gradient(90deg, #fff, var(--turchese)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.piede__colonne { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.6rem 1.2rem; padding: 1.8rem 0; }
.piede__colonne ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.piede__colonne ul.social { display: flex; gap: .6rem; }
.piede__colonne a, .piede__colonne .link { text-decoration: none; font-weight: 500; color: rgba(255, 255, 255, .85); }
.piede__colonne a:hover, .piede__colonne .link:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.piede__titolo { display: block; margin: 0 0 .7rem; font-weight: 800; color: #fff; font-size: .95rem; }
.piede__titolo--spazio { margin-top: 1.4rem; }
.piede__redazione { display: flex; flex-wrap: wrap; gap: .3rem 1.4rem; padding: 1.2rem 0; border-top: 1px solid rgba(255, 255, 255, .14); border-bottom: 1px solid rgba(255, 255, 255, .14); font-style: normal; font-size: .9rem; }
.piede__redazione strong { color: #fff; }
.piede__redazione a { color: inherit; }
/* Disclaimer: largo come tutto il contenitore (richiesta di Davide, 12/10/2026). */
.disclaimer { width: 100%; max-width: none; margin: 1rem 0 0; font-size: .82rem; line-height: 1.65; color: rgba(255, 255, 255, .6); }
.disclaimer strong { color: #fff; margin-right: .3rem; }
.disclaimer a, .firma a { color: var(--schiuma); }
.piede__fondo { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem 1.2rem; margin-top: 1.2rem; padding-top: 1rem; border-top: 1px solid rgba(255, 255, 255, .14); font-size: .82rem; color: rgba(255, 255, 255, .6); }
.piede__fondo p { margin: 0; }

/* ---------- Banner cookie (scheda bianca con bordo in gradiente) ---------- */
.ck { position: fixed; inset: auto .6rem .6rem; z-index: 60; }
.ck[hidden] { display: none; }
.ck__box { max-width: 30rem; margin: 0 auto; padding: 1.2rem; border-radius: var(--r); color: var(--ck-testo); border-top: 5px solid transparent; background: linear-gradient(var(--ck-sfondo), var(--ck-sfondo)) padding-box, var(--grad) border-box; box-shadow: 0 24px 60px -18px rgba(6, 42, 74, .55); }
.ck__titolo { margin: 0 0 .3rem; font-weight: 900; font-size: 1.15rem; }
.ck__testo { margin: 0; font-size: .9rem; color: var(--grigio); }
.ck__testo a { color: var(--mare); }
.ck__dettagli { display: grid; gap: .5rem; margin-top: .9rem; }
.ck__dettagli[hidden] { display: none; }
.ck__voce { display: flex; gap: .6rem; padding: .7rem; border-radius: 12px; background: var(--foschia); font-size: .86rem; }
.ck__voce input { width: 20px; height: 20px; accent-color: var(--mare); }
.ck__voce strong { display: block; }
.ck__azioni { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; margin-top: .9rem; }
.ck__btn { font: inherit; font-weight: 700; min-height: 46px; border-radius: 999px; cursor: pointer; border: 0; }
.ck__btn--link { grid-column: 1 / -1; min-height: 36px; background: none; color: var(--mare); text-decoration: underline; text-underline-offset: 3px; }
.ck__btn--secondario { background: var(--foschia); color: var(--inchiostro); }
.ck__btn--primario { background: var(--grad-testo); color: #fff; }
.ck__titolo:focus { outline: none; }
.ck__box:has(.ck__titolo:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.ck__box { max-height: calc(100vh - 2rem); overflow: auto; }
.ck__dettagli { border: 0; padding: 0; min-width: 0; }
.ck__legenda { padding: 0; margin-bottom: .2rem; font-size: .85rem; font-weight: 800; color: var(--mare); }

/* ---------- Tablet ---------- */
@media (min-width: 680px) {
	:root { --gutter: 1.6rem; }
	.logo img { width: 180px; }
	.onda { height: 60px; }
	.binario { grid-auto-columns: 46%; }
	.binario--larghe { grid-auto-columns: 62%; }
	.apertura { aspect-ratio: 16 / 11; }
	.pagina--basso { grid-template-columns: 1.4fr 1fr; align-items: start; }
	.chi__due { grid-template-columns: 1fr 1fr; }
	.chi-blocco { grid-template-columns: minmax(14rem, 1fr) 2fr; align-items: start; }
	.chi-blocco--redazione .chi__contatti { grid-template-columns: repeat(2, 1fr); }
	.piede__colonne { grid-template-columns: repeat(3, 1fr); }
	.ck { left: auto; right: 1.2rem; bottom: 1.2rem; width: 27rem; }
}

/* ---------- Desktop ---------- */
@media (min-width: 1000px) {
	:root { --gutter: 2rem; }
	.cerca { max-width: 26rem; margin-left: auto; }
	.pagina { grid-template-columns: 1.55fr 1fr; gap: 2.6rem; padding-top: 2.2rem; }
	.apertura { aspect-ratio: auto; min-height: 33rem; }
	.riga { grid-template-columns: 1fr 140px; }
	.riga__img { width: 140px; aspect-ratio: 4 / 3; }
	.binario { grid-auto-columns: calc((100% - 2 * .9rem) / 3); }
	.binario--larghe { grid-auto-columns: calc((100% - 2 * .9rem) / 3); }
	.card--alta { aspect-ratio: 4 / 5; }
	.esplora__dentro { grid-template-columns: 1fr 1.35fr; gap: 3rem; padding: 3rem var(--gutter); align-items: start; }
	.esplora__comandi { position: sticky; top: 120px; }
	.esplora .lista { max-height: 36rem; overflow-y: auto; padding-right: 1rem; }
	/* Griglia 8 + 4 su 12 colonne per articoli, residenze ed elenchi: contenuto a sinistra,
	   barra laterale a destra che resta ferma durante lo scorrimento. (Scelte di Davide, 12/10/2026.) */
	.articolo__griglia { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 3rem; }
	.articolo__griglia .articolo__corpo, .articolo__griglia .residenza__corpo { max-width: none; }
	/* --filtri-top lo calcola libeccio.js, come per gli elenchi */
	.articolo__lato > div { position: sticky; top: var(--filtri-top, 120px); }
	.contatto-fisso { display: none; }
	.archivio { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 3rem; align-items: start; }
	/* --filtri-top lo calcola libeccio.js: se la barra è più alta dello schermo si ferma quando ne appare il fondo */
	.archivio__filtri { order: 2; position: sticky; top: var(--filtri-top, 120px); }
	.piede__dentro { padding-top: 2rem; }
	.piede__colonne { grid-template-columns: repeat(5, 1fr); gap: 2rem; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- Social ---------- */
.social { list-style: none; margin: .4rem 0 0; padding: 0; display: flex; gap: .6rem; }
.social a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; text-decoration: none; transition: transform .2s; }
.social a:hover { transform: translateY(-2px); }
.social--piede a { background: rgba(255, 255, 255, .12); color: #fff; }
.social--piede a:hover { background: var(--grad); }
.social--chi a { background: var(--grad-testo); color: #fff; }
.chi__seguici, .chi-blocco .chi__seguici { margin: 1.4rem 0 .2rem; font-family: var(--f); font-weight: 800; font-size: 1rem; }

/* =====================================================================
   Parti del tema WordPress (oltre al mockup)
   ===================================================================== */

/* ---------- Spot video (home e Chi siamo) ---------- */
.spot .ll-spot, .hero--video .ll-spot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.ll-spot__pausa {
	position: absolute; right: var(--gutter); top: 1rem; z-index: 3; min-height: 40px; padding: .4rem .9rem;
	border: 0; border-radius: 999px; background: rgba(6, 42, 74, .6); color: #fff; font: inherit; font-size: .8rem; font-weight: 700; cursor: pointer; backdrop-filter: blur(6px);
}
.ll-spot__pausa:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }

/* ---------- Riga: zona cliccabile nella barra dell'articolo ---------- */
.riga__zona { color: var(--mare); font-weight: 800; text-decoration: none; }
.riga__zona:hover { text-decoration: underline; }
.conta { margin: 1rem 0 0; color: var(--grigio); font-size: .9rem; }
.lista--card .card--larga { margin-bottom: .6rem; }

/* ---------- Paginazione (paginate_links con type=list) ---------- */
.paginazione ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; justify-content: center; }
.paginazione ul.page-numbers { all: unset; display: flex; flex-wrap: wrap; gap: .4rem; justify-content: center; list-style: none; }
.paginazione li { list-style: none; }
.paginazione li .page-numbers { min-width: 44px; min-height: 44px; display: inline-grid; place-items: center; padding: 0 .9rem; border-radius: 999px; font-weight: 700; text-decoration: none; color: var(--mare); background: var(--foschia); }
.paginazione li .page-numbers.current { background: var(--grad-testo); color: #fff; }
.paginazione li .page-numbers.dots { background: none; }

/* ---------- Residenze in griglia ---------- */
.griglia-residenze { max-width: var(--max); margin: 0 auto; padding: 1.4rem var(--gutter) 1rem; display: grid; gap: 1rem; }
.griglia-articoli { max-width: var(--max); margin: 0 auto; padding: 1rem var(--gutter) 3rem; }
.griglia-articoli__card { display: grid; gap: 1rem; margin: 1.2rem 0 1.6rem; }
.griglia-articoli__card > :nth-child(n+7) { display: none; } /* sul telefono bastano 6, il resto con "Tutti gli articoli" */
@media (min-width: 680px) { .griglia-articoli__card { grid-template-columns: repeat(2, 1fr); } .griglia-articoli__card > :nth-child(n+7) { display: block; } }
@media (min-width: 1000px) { .griglia-articoli__card { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Pagine semplici (privacy, cookie, contatti, 404) ---------- */
/* Allineata al contenitore come il menu; righe di testo comunque non oltre 46rem */
.pagina-semplice { max-width: var(--max); margin: 0 auto; padding: 2rem var(--gutter) 3rem; }
.pagina-semplice > * { max-width: 46rem; }
.pagina-semplice--centro { text-align: center; }
.pagina-semplice--centro > * { margin-inline: auto; }
.pagina-semplice .grande { margin-bottom: 1rem; color: var(--fondale); }
.hero--404 .hero__enorme { margin: 0; color: rgba(255, 255, 255, .22); line-height: .85; }
.hero--404 h1 { margin-top: .2rem; }
.pagina-404 { padding-top: 1.5rem; }
.pagina-404 .cerca--grande { max-width: 40rem; margin-left: 0; }
.pagina-404__sezioni { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.2rem; }
.briciole--scure a { background: var(--foschia); color: var(--mare); }
.cerca--grande { max-width: 30rem; margin: 1.6rem auto; background: var(--foschia); border: 1px solid var(--linea); color: var(--grigio); }
.cerca--grande input { color: var(--inchiostro); }
.cerca--grande:focus-within { outline-color: var(--focus); }
.cerca--grande input::placeholder { color: var(--grigio); }
.sezioni--centro { justify-content: center; }
.sezioni--centro a { background: var(--foschia); }
.pulsanti { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; }
.pulsante:not(.pulsante--pieno, .pulsante--negativo) { color: var(--mare); }
/* Ogni testo cliccabile "vai a…" è un pulsante: pieno blu-azzurro sui fondi chiari, negativo (bianco) sui fondi blu.
   L'hover scurisce il pieno (il bianco resta sopra 4,5:1) e colora di schiuma il negativo. */
.pulsante--piccolo { min-height: 44px; padding: 0 1.1rem; font-size: .92rem; }
.pulsante--negativo { border: 0; background: #fff; color: #0b5f96; }
.pulsante--pieno:hover { filter: brightness(.9); }
.pulsante--negativo:hover { background: var(--schiuma); }
.vuoto:not([hidden]) { display: grid; justify-items: start; gap: .6rem; }
.scheda-luogo .pulsante { justify-self: stretch; } /* largo quanto il riquadro */
.contatti__intro { font-size: 1.15rem; color: var(--grigio); }
.contatti__griglia { display: grid; gap: 1.4rem; margin: 1.6rem 0 2rem; }

/* ---------- Testo degli articoli (contenuti scritti con l'editor) ---------- */
.testo { overflow-wrap: break-word; hyphens: manual; }
/* Misure e colori scelti a mano nell'editor: riportati nella scala e nei colori del tema. */
.testo .has-small-font-size { font-size: .9em !important; }
.testo .has-medium-font-size { font-size: 1.1em !important; }
.testo .has-large-font-size { font-size: clamp(1.2rem, 4.5vw, 1.5rem) !important; line-height: 1.35; font-weight: 600; }
.testo .has-x-large-font-size, .testo .has-xx-large-font-size, .testo .has-huge-font-size { font-size: clamp(1.4rem, 5.5vw, 2rem) !important; line-height: 1.2; }
.testo :is(h1, h2, h3, h4)[style*="color"] { color: var(--mare) !important; }
/* Ritmo verticale: stessa specificità per le due regole, vince la seconda (distanza tra blocchi). */
.testo > * { margin-top: 0; margin-bottom: 0; }
.testo > * + * { margin-top: 1.1em; }
.testo ul, .testo ol { padding-left: 1.3em; }
.testo li + li { margin-top: .4em; }
.testo h2, .testo h3, .testo h4 { font-weight: 900; font-variation-settings: "wdth" 110; color: var(--mare); line-height: 1.15; margin: 2rem 0 .6rem; }
.testo h2 { font-size: 1.55rem; }
.testo h3 { font-size: 1.3rem; }
.testo h4 { font-size: 1.1rem; }
.testo a { color: var(--mare); text-underline-offset: 3px; }
.testo strong { font-weight: 700; }
.testo img { height: auto; border-radius: var(--r); }
.testo figure { margin: 1.6rem 0; }
.testo figcaption { margin-top: .5rem; font-size: .85rem; color: var(--grigio); }
.testo blockquote { margin: 1.6rem 0; padding: .4rem 0 .4rem 1.2rem; border-left: 4px solid var(--turchese); font-size: 1.15em; font-weight: 500; }
.testo .wp-block-columns { display: grid; gap: 1.2rem; }
.testo .wp-block-buttons { display: flex; flex-wrap: wrap; gap: .6rem; }
.testo .wp-block-button__link { display: inline-flex; align-items: center; justify-content: center; text-align: center; line-height: 1.25; min-height: 48px; padding: .7rem 1.3rem; border-radius: 999px; background: var(--grad-testo); color: #fff; font-weight: 700; text-decoration: none; }
.testo .wp-block-spacer { display: none; } /* spazi vuoti messi a mano nell'editor: il ritmo lo dà il tema */
/* Tutto allineato a sinistra, anche i testi centrati a mano nell'editor (scelta di Davide, 12/10/2026). */
.testo :is(.has-text-align-center, .has-text-align-right) { text-align: left; }
.testo .wp-block-buttons.is-content-justification-center { justify-content: flex-start; }
.testo iframe, .testo video { max-width: 100%; border: 0; border-radius: var(--r); }
.testo .wp-block-embed__wrapper { position: relative; }
.testo table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.testo th, .testo td { padding: .6rem; border-bottom: 1px solid var(--linea); text-align: left; }

/* ---------- Meteo ---------- */
.meteo { max-width: var(--max); margin: 0 auto; padding: 2.4rem var(--gutter) 1rem; scroll-margin-top: 120px; }
.meteo__testa { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.meteo__citta { display: grid; grid-template-columns: repeat(4, auto); gap: 2px; padding: 3px; border-radius: 999px; background: #d9ecf5; }
.meteo__citta button { font: inherit; font-size: .82rem; font-weight: 700; min-height: 42px; padding: 0 .7rem; white-space: nowrap; border: 0; border-radius: 999px; background: none; color: var(--grigio); cursor: pointer; }
.meteo__citta button[aria-selected="true"] { background: var(--grad-testo); color: #fff; }
@media (max-width: 359px) { .meteo__citta button { padding: 0 .5rem; } } /* le 4 città stanno anche a 320px */
.meteo__settimana { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(132px, 1fr); gap: .6rem; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: .4rem; scrollbar-width: thin; }
.meteo__settimana[hidden] { display: none; }
.meteo__giorno { scroll-snap-align: start; display: grid; justify-items: center; gap: .2rem; padding: 1rem .6rem; border-radius: var(--r); background: var(--foschia); text-align: center; }
.meteo__giorno.is-oggi { background: linear-gradient(160deg, var(--fondale), var(--mare)); color: #fff; }
.meteo__giorno p { margin: 0; }
.meteo__data strong { display: block; font-size: 1rem; text-transform: capitalize; }
.meteo__data span { font-size: .8rem; color: var(--grigio); }
.is-oggi .meteo__data span, .is-oggi .meteo__min, .is-oggi .meteo__vento span { color: rgba(255, 255, 255, .8); }
.meteo__cielo { font-size: .82rem; font-weight: 600; min-height: 2.4em; display: grid; place-items: center; }
.meteo__gradi { display: flex; gap: .5rem; align-items: baseline; }
.meteo__max { font-size: 1.6rem; font-weight: 900; font-variation-settings: "wdth" 110; }
.meteo__min { font-size: 1.05rem; font-weight: 700; color: var(--grigio); }
.meteo__vento { font-size: .82rem; font-weight: 700; }
.meteo__vento span { display: block; font-weight: 500; color: var(--grigio); }
.meteo__pioggia { font-size: .8rem; font-weight: 700; color: #1d6fb8; }
.is-oggi .meteo__pioggia { color: var(--schiuma); }
.meteo__sole { display: flex; flex-wrap: wrap; justify-content: center; gap: .1rem .5rem; font-size: .76rem; font-weight: 600; color: var(--grigio); }
.meteo__sole > span { position: relative; display: inline-flex; align-items: center; gap: .15rem; } /* ancora il testo .sr dentro la card che scorre */
.is-oggi .meteo__sole, .meteo-oggi__card .meteo__sole { color: rgba(255, 255, 255, .85); }
.meteo__fonte { margin: .8rem 0 0; font-size: .78rem; color: var(--grigio); }
.meteo__fonte a { color: inherit; }

/* ---------- Elenchi: ultimi articoli sotto i filtri ---------- */
.ultimi { margin-top: 1.4rem; padding-top: 1.2rem; border-top: 1px solid var(--linea); }
/* Barra dell'articolo: un unico riquadro come la barra degli elenchi */
.articolo__lato-dentro { padding: 1rem; border-radius: var(--r); background: var(--foschia); }
.articolo__lato-dentro .scheda-luogo { padding: 0; background: none; }
.ultimi ol { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; }
.ultimi li a { display: block; font-weight: 700; line-height: 1.3; text-decoration: none; }
.ultimi li a:hover { color: var(--mare); text-decoration: underline; text-underline-offset: 3px; }
.ultimi .riga__sopra { margin-bottom: .2rem; }

/* ---------- Voto dei lettori ---------- */
.voto { margin: 1.2rem 0; border-radius: var(--r); background: linear-gradient(135deg, var(--fondale), #0b5f96); color: #fff; }
.voto-contenitore { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter) 1.6rem; }
.voto__dentro { display: grid; gap: .8rem 1.2rem; align-items: center; padding: 1.3rem; }
.voto__icona { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: rgba(255, 201, 77, .18); color: #ffc94d; font-size: 1.6rem; }
.voto__testo p { margin: 0; color: rgba(255, 255, 255, .88); }
.voto__titolo { font-size: 1.2rem; font-weight: 900; font-variation-settings: "wdth" 110; color: #fff !important; margin-bottom: .3rem !important; }
.voto__media { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .6rem; margin-bottom: .2rem !important; font-weight: 600; }
.voto__stelle { display: inline-flex; gap: 2px; }
.voto__btn { justify-self: start; }
/* Riquadro meteo tra gli articoli (stesso stile del voto) */
.meteo-box__citta { list-style: none; margin: .5rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr)); gap: .6rem; }
.meteo-box__citta li { display: grid; grid-template-columns: 40px minmax(0, 1fr); grid-template-rows: auto auto auto; column-gap: .5rem; align-items: center; padding: .55rem .6rem; border-radius: 12px; background: rgba(255, 255, 255, .1); }
.meteo-box__citta svg { grid-row: 1 / 4; width: 40px; height: 40px; }
.meteo-box__nome { font-weight: 800; color: #fff; }
.meteo-box__gradi { font-weight: 700; color: #fff; }
.meteo-box__cielo { font-size: .8rem; color: rgba(255, 255, 255, .85); overflow-wrap: anywhere; }
.vota__esito { padding: .9rem 1.1rem; border-radius: 12px; background: #e6f6ec; color: #135c32; font-weight: 700; }
.vota__esito--manca, .vota__esito--scaduto, .vota__esito--rete { background: #fff4e5; color: #7a4100; }
.vota__media { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.1rem; margin: 1rem 0 1.6rem; padding: 1.1rem 1.3rem; border-radius: var(--r); background: var(--foschia); }
.vota__media p { margin: 0; }
.vota__numero { font-size: 3rem; line-height: 1; font-weight: 900; font-variation-settings: "wdth" 112; color: var(--mare); }
.vota__numero span { margin-left: .05rem; font-size: 1rem; font-weight: 700; color: var(--grigio); }
.vota__media .voto__stelle svg { width: 26px; height: 26px; }
.vota__media div p { margin-top: .2rem; font-size: .92rem; color: var(--grigio); }
.vota__media .vota__fonte { flex-basis: 100%; font-size: .82rem; color: var(--grigio); }
.vota__modulo fieldset { border: 0; padding: 0; margin: 1rem 0; }
.vota__modulo legend { font-size: 1.2rem; font-weight: 800; margin-bottom: .6rem; }
.vota__stelle { display: inline-flex; gap: .2rem; }
.vota__stelle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
/* Stelle 1→5 nell'ordine naturale (frecce della tastiera giuste): si colorano fino alla scelta o al puntatore. */
.vota__stelle label { cursor: pointer; font-size: 2.6rem; line-height: 1; color: #8193a3; padding: .1rem; transition: color .15s; }
.vota__stelle:has(input:checked) label { color: #a86f00; }
.vota__stelle input:checked + label ~ label { color: #8193a3; }
@media (hover: hover) and (forced-colors: none) { .vota__stelle.vota__stelle:has(label:hover) label { color: #a86f00; } .vota__stelle.vota__stelle label:hover ~ label { color: #8193a3; } }
.vota__scelta { min-height: 1.5em; margin: .4rem 0 0; font-weight: 700; color: var(--mare); }
@media (forced-colors: active) { .vota__stelle label { forced-color-adjust: none; color: CanvasText; } .vota__stelle:has(input:checked) label { color: Highlight; } .vota__stelle input:checked + label ~ label { color: CanvasText; } }
.vota__stelle input:focus-visible + label { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
.vota__trappola { position: absolute; left: -9999px; }
/* Moduli (Segnala un evento) */
.modulo { display: grid; gap: 1.1rem; margin-top: 1rem; }
.pagina-semplice > .modulo { max-width: none; } /* campi larghi quanto il contenitore */
.modulo__nota, .modulo__aiuto { margin: 0; font-size: .88rem; color: var(--grigio); }
.modulo__campo { display: grid; gap: .35rem; }
.modulo__campo label { font-weight: 700; }
.modulo__campo label span { font-weight: 500; color: var(--grigio); }
.modulo input[type="text"], .modulo input[type="email"], .modulo input[type="url"], .modulo textarea { width: 100%; min-height: 48px; padding: .7rem .9rem; border: 1px solid #8193a3; border-radius: 12px; background: #fff; font: inherit; color: var(--inchiostro); }
.modulo textarea { resize: vertical; }
.modulo input:focus-visible, .modulo textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; border-color: var(--focus); }
.modulo__campo--errore input, .modulo__campo--errore textarea { border: 2px solid #b3261e; }
.modulo__errore { margin: 0; font-size: .88rem; font-weight: 700; color: #b3261e; }
.modulo__campo--spunta { grid-template-columns: auto 1fr; align-items: start; gap: .6rem; }
.modulo__campo--spunta input { width: 22px; height: 22px; margin-top: .15rem; accent-color: var(--focus); }
.modulo__campo--spunta label { font-weight: 500; }
.modulo__campo--spunta .modulo__errore { grid-column: 1 / -1; }
.modulo .pulsante { justify-self: start; }
.cf-turnstile { min-height: 65px; }
.vota__nota { font-size: .85rem; color: var(--grigio); }
@media (min-width: 680px) { .voto__dentro { grid-template-columns: auto 1fr auto; } .voto__btn { justify-self: end; } }
/* Il riquadro meteo è sempre su una colonna: città in griglia automatica (4 nell'elenco, 2 nella barra laterale) e pulsante a tutta larghezza */
.meteo-box .voto__dentro { grid-template-columns: 1fr; }
.meteo-box .voto__btn { justify-self: stretch; width: 100%; }
.articolo__lato .meteo-box { margin: 1rem 0 0; }
@media (min-width: 680px) { .meteo-box__citta { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
/* Versione compatta solo quando la barra è davvero laterale (griglia 8+4 da 1000px) */
@media (min-width: 1000px) {
	.articolo__lato .meteo-box .voto__dentro { padding: 1.1rem; }
	.articolo__lato .meteo-box__citta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.articolo__lato .meteo-box__citta li { grid-template-columns: 1fr; grid-template-rows: none; row-gap: .1rem; }
	.articolo__lato .meteo-box__citta svg { grid-row: auto; width: 32px; height: 32px; }
}

/* ---------- Chi siamo: a tutta larghezza del contenitore, a blocchi con sottotitoli ---------- */
.chi-pagina { max-width: var(--max); margin: 0 auto; padding: 1.6rem var(--gutter) 3rem; }
.chi-pagina__apertura { max-width: 52rem; margin: 0 0 2.4rem; font-size: clamp(1.35rem, 3.6vw, 2rem); line-height: 1.35; font-weight: 600; color: var(--fondale); }
.chi-blocco { display: grid; gap: .6rem 3rem; padding: 1.8rem 0; border-top: 1px solid var(--linea); }
.chi-blocco h2 { margin: 0; font-size: clamp(1.4rem, 4vw, 1.9rem); font-weight: 900; font-variation-settings: "wdth" 112; color: var(--mare); }
.chi-blocco p { margin: 0; max-width: 46rem; font-size: 1.08rem; line-height: 1.7; }
.chi-pagina .chi__due { margin: 1.8rem 0; }
.chi-pagina .chi__box p { font-size: 1.02rem; line-height: 1.65; }
.chi-blocco--redazione .chi__contatti { display: grid; gap: .6rem; margin-top: 1.2rem; }
/* Social e contatti sono elenchi dentro il testo: niente rientri né colori dei link del testo. */
:is(.chi-pagina, .testo) ul.social, :is(.chi-pagina, .testo) ul.chi__contatti { list-style: none; padding: 0; }
:is(.chi-pagina, .testo) ul.social li + li, :is(.chi-pagina, .testo) ul.chi__contatti li + li { margin-top: 0; }
:is(.chi-pagina, .testo) .social--chi a { color: #fff; }

/* ---------- Pagina Meteo ---------- */
.hero--meteo { background: linear-gradient(160deg, var(--fondale), var(--mare) 60%, #0e7db8); } /* bianco ≥ 4,5:1 fino in fondo */
.hero--meteo::before { display: none; }
.meteo-oggi { max-width: var(--max); margin: 0 auto; padding: 1.6rem var(--gutter) 0; }
.meteo-oggi__citta { display: grid; grid-template-columns: repeat(2, 1fr); gap: .7rem; }
.meteo-oggi__card { display: grid; justify-items: center; gap: .2rem; padding: 1.1rem .6rem; border-radius: var(--r); background: linear-gradient(160deg, var(--fondale), var(--mare)); color: #fff; text-align: center; text-decoration: none; }
.meteo-oggi__card p { margin: 0; }
.meteo-oggi__nome { font-weight: 900; font-size: 1.1rem; font-variation-settings: "wdth" 112; }
.meteo-oggi__card .meteo__min, .meteo-oggi__card .meteo__vento span { color: rgba(255, 255, 255, .8); }
.venti p { color: var(--grigio); }
.meteo-oggi__card > span { display: block; }
.meteo-oggi__card .meteo__gradi { display: flex; gap: .5rem; align-items: baseline; justify-content: center; }
.meteo--citta { padding-top: 2rem; }
.meteo--citta h2 { margin-bottom: .6rem; }
.meteo__riassunto { max-width: 46rem; margin: 0 0 1rem; color: var(--grigio); font-size: 1.02rem; }
.meteo__fonte--pagina { max-width: var(--max); margin: 1rem auto 0; padding: 0 var(--gutter); }
@media (min-width: 800px) { .meteo-oggi__citta { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Consenso: mappe caricate solo su richiesta ---------- */
.ll-mappa { display: grid; place-content: center; justify-items: center; gap: .6rem; min-height: 240px; padding: 1.2rem; border-radius: var(--r); background: linear-gradient(160deg, var(--fondale), var(--mare)); color: #fff; text-align: center; }
.ll-mappa.is-caricata { display: block; padding: 0; min-height: 0; background: none; }
.ll-mappa iframe { display: block; width: 100%; height: 360px; border: 0; border-radius: var(--r); }
.ll-mappa__testo { margin: 0; font-size: .85rem; max-width: 22rem; color: rgba(255, 255, 255, .85); }
.ll-mappa__btn { font: inherit; font-weight: 700; min-height: 44px; padding: 0 1.2rem; border: 0; border-radius: 999px; background: #fff; color: var(--mare); cursor: pointer; }
.ll-mappa__link { color: var(--schiuma); font-size: .85rem; }

@media (min-width: 680px) {
	.griglia-residenze { grid-template-columns: repeat(2, 1fr); }
	.testo .wp-block-columns { grid-template-columns: repeat(2, 1fr); }
	.contatti__griglia { grid-template-columns: 1fr 1.2fr; align-items: start; }
}
@media (min-width: 1000px) {
	.griglia-residenze { grid-template-columns: repeat(3, 1fr); }
	.meteo__settimana { overflow: visible; grid-auto-columns: minmax(0, 1fr); }
}

/* ---------- A tavola (rubrica dei locali) ---------- */
.tavola { max-width: var(--max); margin: 0 auto; padding: 1.6rem var(--gutter) 3rem; }
.tavola__intro p { font-size: 1.08rem; line-height: 1.7; } /* larghi quanto il contenitore */
.tavola__intro .tavola__metodo { font-size: .92rem; color: var(--grigio); }
.tavola__filtri:not([hidden]) { display: grid; gap: .6rem; margin: 1.4rem 0 .4rem; }
.tavola__filtri .segmenti button { flex: 1 0 auto; padding: 0 .9rem; white-space: nowrap; }
.tavola__conta { margin: 0; font-size: .9rem; font-weight: 700; color: var(--grigio); }
.tavola__zona { padding-top: 1.6rem; }
.tavola__zona[hidden] { display: none; }
.tavola__lista { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: 1rem; }
.locale { display: flex; flex-direction: column; gap: .35rem; padding: 1.1rem; border-radius: var(--r); background: var(--foschia); }
.locale[hidden] { display: none; }
.locale p { margin: 0; }
.locale h3 { order: 1; margin: 0; font-size: 1.2rem; font-weight: 800; line-height: 1.25; }
.locale__sopra { order: 0; } /* nel codice il nome viene prima (titoli in ordine per i lettori di schermo), a video sotto il tipo */
.locale > :nth-child(n+3) { order: 2; }
.locale__sopra { display: flex; align-items: center; flex-wrap: wrap; gap: .3rem; font-size: .85rem; color: var(--grigio); }
.locale__piatto { font-weight: 700; color: var(--mare); }
.locale__testo { line-height: 1.55; }
.locale__premi { font-size: .85rem; font-weight: 700; color: #8a4b00; }
.locale__link { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: auto !important; padding-top: .5rem; }
.tavola__fonte { margin-top: 2rem; font-size: .88rem; color: var(--grigio); }
.tavola__fonte a { color: var(--mare); }
@media (min-width: 680px) { .tavola__lista { grid-template-columns: repeat(2, 1fr); } .tavola__filtri:not([hidden]) { grid-template-columns: auto auto; justify-content: start; align-items: center; } .tavola__conta { grid-column: 1 / -1; } }
@media (min-width: 1000px) { .tavola__lista { grid-template-columns: repeat(3, 1fr); } }
/* Copertina di "A tavola": foto chiara e ricca di dettagli, quindi velo più scuro per leggere bene il titolo bianco */
.hero--tavola .hero__foto { object-position: center 30%; }
.hero--tavola::before { background: linear-gradient(180deg, rgba(6, 42, 74, .5) 0%, rgba(6, 42, 74, .6) 45%, rgba(6, 42, 74, .94) 100%); }
