/*
 * Caorle.com — quello che Bootstrap non copre.
 *
 * Griglia, spaziature, card e tipografia arrivano da Bootstrap 5.3.8. Qui
 * restano solo cinque cose: le variabili del tema, il velo sull'eroe, le
 * caselle categoria colorate, la spunta nel cerchio e il blocco a due meta'.
 *
 * Le misure vengono dal sito originale: contenitore 1164, eroe alto 504,
 * titoli sezione 45/600, riquadri categoria in rapporto 37/30, raggio 25px.
 */

:root,
[data-bs-theme="light"] {
	--bs-body-font-family: Sora, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--bs-body-color: #333;
	--bs-body-font-size: 1rem;
	--bs-heading-color: #000;
	--bs-border-radius-4: 25px;

	--caorle-yellow: #f3d824;
	--caorle-radius: 25px;

	/* Quanto spazio si prende la barra fissa: altezza piu' aria sopra e sotto. */
	--header-space: 7.5rem;
}

/*
 * Con la barra fissa, un salto a un'ancora porterebbe il titolo di
 * destinazione proprio sotto la barra. Questo lo ferma piu' in basso.
 */
html {
	scroll-padding-top: var(--header-space);
}

h1, h2, h3 {
	font-weight: 600;
	line-height: 1.15;
}

.rounded-4 {
	border-radius: var(--caorle-radius) !important;
}

/*
 * La barra galleggia sopra il contenuto e resta ferma mentre si scorre.
 * L'involucro e' trasparente e a tutta larghezza; la pillola dentro sta
 * nel container, cosi' e' allineata al resto della pagina.
 */
.site-header {
	position: fixed;
	top: 1rem;
	left: 0;
	right: 0;
	z-index: 1030;
	pointer-events: none;
}

/* Il contenitore non deve intercettare i clic, la pillola si'. */
.site-header__bar {
	pointer-events: auto;
	padding: .5rem 1.5rem;
	border: 1px solid #000;
	border-radius: var(--caorle-radius);
	background: #fff;
	box-shadow: 4px 4px 0 #000;
}

.header-bar {
	min-height: 89px;
}

/*
 * Spazio per la barra su tutte le pagine. L'eroe poi risale di altrettanto
 * con un margine negativo: cosi' la sua fascia gialla passa dietro alla
 * barra, mentre le altre pagine partono semplicemente piu' in basso.
 */
#content {
	padding-top: var(--header-space);
}

@media (max-width: 991.98px) {
	:root {
		--header-space: 6rem;
	}

	.header-bar {
		min-height: 64px;
	}

	.site-header__bar img {
		width: 150px;
		height: auto;
	}
}

.section-title {
	font-size: clamp(1.8rem, 4vw, 45px);
}

/* ------------------------------------------------------------------ eroe */

/*
 * Due colonne asimmetriche: testo a sinistra, pila di foto a destra.
 * Le cornici riprendono il pulsante .btn-ghost del sito (bordo nero da 1px
 * piu' ombra piena senza sfocatura), cosi' l'eroe parla la stessa lingua
 * del resto invece di inventarsi uno stile suo.
 */
/*
 * Fascia gialla molto tenue a tutta larghezza: l'eroe su bianco spariva
 * dentro la sezione bianca che viene subito dopo, e le due sembravano un
 * blocco solo. Il colore e' il giallo del marchio schiarito all'82%, non
 * una tinta nuova.
 */
.hero {
	position: relative;
	margin-top: calc(var(--header-space) * -1);
	padding: calc(var(--header-space) + clamp(1rem, 3vw, 2.5rem)) 0 clamp(3rem, 7vw, 6rem);
	overflow: hidden;
	background: #fdf8d8;
}

/*
 * La rosetta del marchio, grande, che esce dal bordo in basso a sinistra.
 * Sta dietro a tutto e non ruota: quella piccola nell'angolo l'ho tolta,
 * due marchi che girano nello stesso schermo si contendono l'occhio.
 */
.hero__watermark {
	position: absolute;
	left: -6%;
	bottom: -10%;
	width: clamp(280px, 34vw, 520px);
	height: auto;
	opacity: .16;
	z-index: 0;
	pointer-events: none;
}

.hero > .container {
	position: relative;
	z-index: 1;
}

.hero__kicker {
	margin: 0 0 .6rem;
	font-size: clamp(1rem, 1.6vw, 1.2rem);
	font-weight: 700;
	line-height: 1.35;
}

/* Lo slogan grande: non e' piu' un h1, ma resta uguale a prima. */
.hero__title {
	margin-top: 0;
	margin-bottom: 1.25rem;
	color: var(--bs-heading-color);
	font-size: clamp(2.4rem, 6vw, 75px);
	font-weight: 600;
	line-height: 1.15;
}

.hero__lead {
	max-width: 34ch;
	margin-bottom: 2rem;
	font-size: 1.125rem;
	line-height: 1.7;
}

/*
 * L'altezza e' riservata dal rapporto, non dal contenuto: le foto sono in
 * posizione assoluta e senza questo il blocco collasserebbe a zero, facendo
 * saltare la pagina quando arrivano.
 */
.hero__stack {
	position: relative;
	width: 100%;
	aspect-ratio: 7 / 6;
	margin-inline: auto;
}

.hero__blob {
	position: absolute;
	inset: 12% 6% 8% 14%;
	border-radius: 46% 54% 38% 62% / 52% 40% 60% 48%;
	background: var(--caorle-yellow);
}

.hero__photo {
	position: absolute;
	margin: 0;
	overflow: hidden;
	border: 1px solid #000;
	border-radius: var(--caorle-radius);
	background: #fff;
	box-shadow: 8px 8px 0 #000;
}

.hero__photo img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.hero__photo--main {
	top: 3%;
	left: 24%;
	width: 52%;
	height: 94%;
	transform: rotate(-3deg);
	z-index: 2;
}

.hero__photo--centro {
	top: 6%;
	left: 0;
	width: 40%;
	aspect-ratio: 1 / 1;
	transform: rotate(5deg);
	z-index: 3;
}

.hero__photo--laguna {
	right: 0;
	bottom: 5%;
	width: 45%;
	aspect-ratio: 4 / 3;
	transform: rotate(-6deg);
	z-index: 3;
}

/*
 * Entrata scaglionata: prima il testo, poi le foto una dopo l'altra. Serve
 * a dare un ordine di lettura, non a fare spettacolo, per questo e' breve e
 * non si ripete.
 */
@media (prefers-reduced-motion: no-preference) {
	.has-anim .hero__kicker,
	.has-anim .hero__title,
	.has-anim .hero__lead,
	.has-anim .hero__cta,
	.has-anim .hero__photo,
	.has-anim .hero__blob {
		animation: hero-in .55s cubic-bezier(.2, .7, .3, 1) backwards;
	}

	.has-anim .hero__title { animation-delay: .05s; }
	.has-anim .hero__lead  { animation-delay: .13s; }
	.has-anim .hero__cta   { animation-delay: .21s; }
	.has-anim .hero__blob  { animation-delay: .1s; }

	.has-anim .hero__photo--main   { animation-delay: .2s; }
	.has-anim .hero__photo--centro { animation-delay: .32s; }
	.has-anim .hero__photo--laguna { animation-delay: .42s; }
}

@keyframes hero-in {
	from {
		opacity: 0;
		transform: translateY(20px);
	}
}

/* La rotazione delle foto va ripristinata a fine entrata, o si raddrizzano. */
@media (prefers-reduced-motion: no-preference) {
	.has-anim .hero__photo--main   { animation-name: hero-in-main; }
	.has-anim .hero__photo--centro { animation-name: hero-in-centro; }
	.has-anim .hero__photo--laguna { animation-name: hero-in-laguna; }
}

@keyframes hero-in-main {
	from { opacity: 0; transform: translateY(24px) rotate(-3deg); }
	to   { opacity: 1; transform: translateY(0) rotate(-3deg); }
}

@keyframes hero-in-centro {
	from { opacity: 0; transform: translateY(24px) rotate(5deg); }
	to   { opacity: 1; transform: translateY(0) rotate(5deg); }
}

@keyframes hero-in-laguna {
	from { opacity: 0; transform: translateY(24px) rotate(-6deg); }
	to   { opacity: 1; transform: translateY(0) rotate(-6deg); }
}

/* Sotto lg le colonne si impilano: la pila di foto si stringe e sale. */
@media (max-width: 991.98px) {
	.hero__lead {
		max-width: none;
	}

	.hero__stack {
		max-width: 460px;
	}
}
/* ------------------------------------------------------------ categorie */

/*
 * L'illustrazione e' in posizione assoluta perche' i quattro SVG hanno
 * proporzioni diverse: lasciandola nel flusso, i due quadrati facevano
 * crescere il riquadro e le caselle finivano di altezze diverse.
 */
.category__box {
	position: relative;
	display: block;
	aspect-ratio: 37 / 30;
	border-radius: var(--caorle-radius);
	background: var(--category-color, var(--bs-secondary-bg));
	transition: transform .2s ease;
}

.category__box img {
	position: absolute;
	inset: 1.5rem;
	width: calc(100% - 3rem);
	height: calc(100% - 3rem);
	object-fit: contain;
}

.category__box:hover {
	transform: translateY(-3px);
}

/* Freccetta disegnata col bordo: nessun font di icone da caricare. */
.see-all::after {
	content: "";
	display: inline-block;
	width: .38em;
	height: .38em;
	margin-left: .5em;
	border-top: 2px solid currentColor;
	border-right: 2px solid currentColor;
	transform: rotate(45deg) translateY(-.05em);
}

.see-all:hover {
	text-decoration: underline !important;
	text-underline-offset: .25em;
}

/* ------------------------------------------------------ richiedi preventivo */

.quote {
	border-radius: var(--caorle-radius);
}

.quote__photo {
	min-height: 320px;
	background-image: var(--quote-image);
	background-size: cover;
	background-position: center;
}

.quote__panel {
	background: var(--caorle-yellow);
}

@media (min-width: 992px) {
	.quote__photo,
	.quote__panel {
		min-height: 666px;
	}
}

/* Icona di ogni vantaggio in un cerchio bianco con il bordo nero, sul giallo. */
.benefit__icon {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border: 2px solid #000;
	border-radius: 50%;
	background: #fff;
	color: #000;
}


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

/* ------------------------------------------------- schede con foto in testa */

/*
 * Stessa anatomia dell'originale per luoghi e webcam: riquadro con angoli da
 * 25px, foto in testa alta 250 con angoli da 15 solo in alto, poi titolo,
 * testo e collegamento.
 */
.place,
.webcam {
	border-radius: var(--caorle-radius);
}

.place {
	background: #e6e6e6;
}

.webcam {
	background: #fff;
}

.place__photo,
.webcam__photo {
	height: 250px;
	border-radius: 15px 15px 0 0;
	background-size: cover;
	background-position: center;
}

.place__photo {
	background-image: var(--place-image);
}

.webcam__photo {
	background-image: var(--webcam-image);
}

/* Il tratteggio segnala la foto che manca senza rompere la griglia. */
.figure-empty {
	background-color: var(--bs-secondary-bg);
	background-image: linear-gradient(135deg, #eef2f4 25%, transparent 25%, transparent 50%, #eef2f4 50%, #eef2f4 75%, transparent 75%);
	background-size: 18px 18px;
}

/* -------------------------------------------------------------- pulsante */

/*
 * Pulsante con cornice: fondo bianco, bordo nero sottile e angoli morbidi.
 * Va bene sia su <a> sia su <button>, per questo azzera i valori che i due
 * elementi ereditano in modo diverso (border, font, background).
 *
 * Il testo resta centrato anche su piu' righe e il bordo non fa saltare
 * l'allineamento perche' e' incluso nel calcolo della larghezza.
 */
.btn-ghost {
	display: inline-block;
	padding: .85rem 1.85rem;
	box-shadow: 4px 4px 0 #000!important;
    border: 1px solid #000;
	border-radius: 12px;
	background: #fff;
	color: var(--bs-heading-color, #000);
	font: inherit;
	font-size: 1rem;
	line-height: 1.3;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: background-color .2s ease, color .2s ease;
}

/* Al passaggio si inverte: il bordo resta perche' e' currentColor. */
.btn-ghost:hover {
	background: var(--bs-heading-color, #000);
	box-shadow: 1px 1px 0 #000!important;
	color: #fff;
}

.btn-ghost:focus-visible {
	outline: 3px solid var(--caorle-yellow);
	outline-offset: 2px;
}

.full-width {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}
.breadcrumb-nav {
    font-size: 13px;
}

.player {
  position: relative;
  width: 100%;
  overflow:hidden;
   aspect-ratio: 16 / 9;
  border-radius: clamp(var(--r-s), 1.6vw, var(--r));
}
.player--1 { aspect-ratio: 16 / 9; }

.player--3 {
  aspect-ratio: 1 / 1;
  margin-inline: auto;
}

.player--4 {
  aspect-ratio: 9 / 16;
  margin-inline: auto;
}

.player--2 {
  aspect-ratio: 4 / 3;
  margin-inline: auto;
}

.player iframe {
    height: 100%;
    width: 100%;
}


/* Su schermo stretto occupa tutta la riga invece di restare stretto. */
@media (max-width: 575.98px) {
	.btn-ghost {
		display: block;
		width: 100%;
	}
}

/* --------------------------------------------- foto delle schede elenco */

/*
 * Riquadro 4:3 uguale per tutte le schede. Le foto caricate hanno formati
 * diversi (16:9, verticali, quadrate): aspect-ratio decide lo spazio a
 * partire dalla larghezza della scheda, e object-fit ritaglia quello che
 * avanza invece di schiacciare l'immagine.
 *
 * Il server consegna gia' un ritaglio 640x480, quindi qui non c'e' niente da
 * tagliare: queste righe servono a tenere in piedi la griglia anche se un
 * giorno arrivasse un'immagine di proporzioni diverse.
 */
.card__photo {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: 15px;
}

/* ------------------------------------------------ targhetta della zona */

/*
 * Due targhette sulla foto, in angoli opposti: la zona in alto a sinistra,
 * il tipo in basso a destra. Nello stesso bordo, su una scheda stretta o con
 * nomi lunghi ("Porto Santa Margherita", "Lista Appartamenti privati"), si
 * sovrapponevano.
 *
 * In alto la zona finisce spesso sul cielo: l'alone scuro sotto la
 * targhetta la stacca anche da un fondo chiaro.
 *
 * Il contenitore e' il riferimento per il posizionamento; senza, le
 * targhette scapperebbero in cima alla scheda.
 */
.card__figure {
	position: relative;
}

.card__badge {
	position: absolute;
	top: .75rem;
	left: .75rem;
	max-width: calc(100% - 1.5rem);
	padding: .3rem .75rem;
	border-radius: 999px;
	background: #86888b;
	color: #fff;
	font-size: .8rem;
	font-weight: 600;
	line-height: 1.2;
	/* Alone scuro: stacca la targhetta anche da una foto molto chiara. */
	box-shadow: 0 1px 6px rgba(0, 0, 0, .35);
}

/* La targhetta della zona ha davanti un segnaposto: si capisce che e' un luogo. */
.card__badge--position {
	display: inline-flex;
	align-items: center;
	gap: .3rem;
}

.card__badge-icon {
	flex: 0 0 auto;
}

/*
 * Un colore del logo Caorle.com per ogni zona.
 *
 * Il numero e' l'identificativo dell'opzione nel campo "position", quello che
 * ProcessWire salva davvero: si legge in Impostazioni > Campi > position.
 * Il nome della zona resta scritto qui a fianco, altrimenti fra sei mesi
 * questi numeri non dicono niente. Attenzione: aggiungendo una voce in mezzo
 * all'elenco i numeri gia' assegnati NON si spostano, la nuova prende il
 * primo numero libero. Se pero' cancelli e riscrivi una voce, il suo numero
 * cambia e qui va corretto.
 *
 * Queste regole stanno dopo .card__badge di proposito: hanno lo stesso peso,
 * quindi vince l'ultima scritta. Manca una zona? Resta il grigio.
 */
.position--1 { background: #00aeef; }  /* Levante */
.position--2 { background: #ed8127; }  /* Ponente */
.position--3 { background: #ed1c24; }  /* Centro */
.position--4 { background: #657e23; }  /* Duna Verde */
.position--5 { background: #00a651; }  /* Porto Santa Margherita */
.position--6 { background: #86888b; }  /* Altro */
.position--7 { background: #9358a4; }  /* Altanea */
.position--8 { background: #00857f; }  /* Eraclea Mare, verde acqua: 4,5:1 col bianco */

/* ------------------------------------------- targhetta del tipo di struttura */

/*
 * Stessa forma della targhetta della zona, tinte diverse: fondo chiaro e
 * scritta scura invece di fondo pieno e scritta bianca.
 *
 * La differenza e' voluta. Sulla stessa scheda ci finiscono due targhette che
 * dicono cose diverse - dove sei e che cosa sei - e se avessero lo stesso peso
 * visivo l'occhio non saprebbe quale guardare per prima. Quella piena sulla
 * foto salta all'occhio, questa accompagna il titolo.
 *
 * Non e' posizionata: e' un elemento in riga, si mette dove serve. Se un
 * giorno la vuoi anche tu sopra la foto, basta scrivere
 * class="card__badge category--hotel-caorle" e prende posizione e colore da entrambe.
 */
.category-badge {
	top: auto;
	right: .75rem;
	bottom: .75rem;
	left: auto;
}

/*
 * Un colore per ogni tipo, dove il nome della classe e' il nome del
 * contenitore: la pagina dentro /ristoranti-caorle/ prende
 * .category--ristoranti-caorle senza che nessuno debba scegliere niente.
 * Un tipo nuovo vuol dire creare il contenitore e aggiungere una riga qui.
 *
 * Le tinte sono i colori del logo schiariti all'85% verso il bianco, con la
 * scritta nella stessa tinta scurita quanto basta a leggersi (tutte sopra
 * 4,5 di contrasto). Turchese e blu profondo non sono nel logo: con nove tipi
 * i colori disponibili non bastavano, e sono presi in mezzo a quelli che
 * ci sono.
 *
 * Nove tinte vicine si somigliano per forza. Il nome del tipo pero' e'
 * scritto dentro la targhetta: il colore aiuta a riconoscerlo al volo, non e'
 * l'unico modo per distinguerlo. Un tipo che manca da questo elenco resta grigio.
 */
.category--hotel-caorle                 { background: #d9f3fd; color: #00739e; }  /* azzurro */
.category--appartamenti-privati-caorle  { background: #d9f2e5; color: #007c3d; }  /* verde */
.category--agenzie-caorle               { background: #efe6f1; color: #8a539a; }  /* viola */
.category--campeggi-caorle              { background: #f2f8e1; color: #607721; }  /* verde chiaro */
.category--villaggi-caorle              { background: #d9f4f2; color: #007970; }  /* turchese */

.category--ristoranti-caorle            { background: #fcddde; color: #c9181f; }  /* rosso */
.category--pizzerie-caorle              { background: #fcecdf; color: #a4591b; }  /* arancione */
.category--stabilimenti-balneari-caorle { background: #fefadc; color: #80720a; }  /* giallo */
.category--nautica-caorle               { background: #dde9f4; color: #1a6bae; }  /* blu profondo */
.category--cantine-caorle               { background: #f4dde6; color: #8a1c4c; }  /* bordeaux, 6,9:1 */
.category--noleggio-caorle              { background: #f3e6d9; color: #8a4b12; }  /* marrone, 5,5:1 */
.category--bed-and-breakfast-caorle     { background: #e3eaee; color: #3f5a6b; }  /* grigio ardesia, 6:1 */
.category--divertimento-caorle          { background: #fde4ef; color: #a3195b; }  /* fucsia, 6:1 */
.category--aparthotel-caorle            { background: #e8e8f7; color: #4a4ea8; }  /* indaco, 5,9:1 */

/* ---------------------------------------------- colonna dei filtri elenco */

/*
 * Resta visibile durante lo scorrimento: e' scomodo dover risalire in cima
 * alla pagina per cambiare filtro dopo aver scorso l'elenco. Solo da lg in
 * su, dove i filtri stanno davvero in una colonna a fianco; sotto quella
 * soglia l'impaginazione torna a una colonna sola e "sticky" non farebbe
 * che accavallarsi al resto.
 */
@media (min-width: 992px) {
	.listing-filters {
		position: sticky;
		top: 1.5rem;
	}
}

/* ------------------------------------------------------ galleria fotografica */

/*
 * Foto grande a sinistra, quattro piccole a fianco in un mosaico 2x2: la
 * prima riga di markup e' la principale, con grid-row: span 2, le altre
 * quattro si sistemano da sole perche' la griglia salta le celle gia'
 * occupate. Nessuna posizione scritta a mano per ognuna.
 *
 * Il rapporto 2,35:1 tiene la fascia bassa e larga come nell'originale;
 * object-fit: cover fa il resto, qualunque proporzione abbia la foto
 * caricata (orizzontale, verticale, quadrata).
 */
.listing-gallery {
	display: grid;
	grid-template-columns: 1.8fr 1fr 1fr;
	grid-template-rows: repeat(2, 1fr);
	gap: .5rem;
	aspect-ratio: 2.35 / 1;
}

.listing-gallery__item {
	position: relative;
	display: block;
	overflow: hidden;
	border-radius: 15px;
}

.listing-gallery__item img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.listing-gallery__item--main {
	grid-row: span 2;
}

/*
 * Con meno di quattro foto piccole il mosaico standard lascerebbe caselle
 * vuote. Queste varianti restringono la griglia a quante ce ne sono davvero,
 * invece di mostrare un buco dove non c'e' niente da vedere.
 */
.listing-gallery--n0 {
	grid-template-columns: 1fr;
	grid-template-rows: 1fr;
	aspect-ratio: 16 / 9;
}

.listing-gallery--n0 .listing-gallery__item--main {
	grid-row: span 1;
}

.listing-gallery--n1 {
	grid-template-columns: 1.8fr 1fr;
	grid-template-rows: 1fr;
	aspect-ratio: 2.6 / 1;
}

.listing-gallery--n1 .listing-gallery__item--main {
	grid-row: span 1;
}

.listing-gallery--n2 {
	grid-template-columns: 1.8fr 1fr;
}

.listing-gallery--n3 {
	grid-template-columns: 1.8fr 1fr;
	grid-template-rows: repeat(3, 1fr);
}

.listing-gallery--n3 .listing-gallery__item--main {
	grid-row: span 3;
}

/* Targhetta col totale delle foto, appoggiata sull'ultimo riquadro visibile. */
.listing-gallery__count {
	position: absolute;
	right: .75rem;
	bottom: .75rem;
	display: flex;
	align-items: center;
	gap: .35rem;
	padding: .3rem .7rem;
	border-radius: 999px;
	background: rgba(0, 0, 0, .6);
	color: #fff;
	font-size: .8rem;
	font-weight: 600;
	line-height: 1.2;
}

/*
 * Sotto i 576px il mosaico stretto in tre colonne diventerebbe illeggibile:
 * la foto principale passa in cima a tutta larghezza, le piccole sotto in
 * un 2x2 vero e proprio, come su gran parte dei siti di prenotazione.
 */
@media (max-width: 575.98px) {
	.listing-gallery {
		grid-template-columns: repeat(2, 1fr);
		grid-template-rows: auto repeat(2, 1fr);
		aspect-ratio: auto;
	}

	.listing-gallery__item--main {
		grid-column: 1 / -1;
		grid-row: auto;
		aspect-ratio: 4 / 3;
	}

	.listing-gallery__item:not(.listing-gallery__item--main) {
		aspect-ratio: 1 / 1;
	}
}

/* --------------------------------------------------------------- lightbox */

/*
 * A schermo intero sopra tutto il resto, sfondo quasi nero. object-fit:
 * contain invece di cover perche' qui la foto non va tagliata: e' il posto
 * in cui vederla intera.
 */
/* Sopra al popup delle camere (1090): da li' si aprono le foto ingrandite. */
.lightbox {
	position: fixed;
	inset: 0;
	z-index: 1100;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, .92);
	padding: 4rem 1rem;
}

.lightbox[hidden] {
	display: none;
}

.lightbox__image {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	border-radius: 8px;
}

.lightbox__close,
.lightbox__nav {
	position: absolute;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border: none;
	border-radius: 50%;
	background: rgba(255, 255, 255, .12);
	color: #fff;
	cursor: pointer;
	transition: background-color .15s ease;
}

.lightbox__close:hover,
.lightbox__nav:hover {
	background: rgba(255, 255, 255, .25);
}

.lightbox__close {
	top: 1.25rem;
	right: 1.25rem;
}

.lightbox__nav--prev {
	left: 1.25rem;
	top: 50%;
	transform: translateY(-50%);
}

.lightbox__nav--next {
	right: 1.25rem;
	top: 50%;
	transform: translateY(-50%);
}

.lightbox__counter {
	position: absolute;
	bottom: 1.25rem;
	left: 50%;
	transform: translateX(-50%);
	margin: 0;
	color: #fff;
	font-size: .85rem;
	opacity: .8;
}

@media (max-width: 575.98px) {
	.lightbox {
		padding: 5.5rem 1rem 4rem;
	}

	.lightbox__nav--prev {
		left: .5rem;
	}

	.lightbox__nav--next {
		right: .5rem;
	}
}

/* -------------------------------------------------------------- servizi */

/*
 * Riquadro con bordo sottile e angoli morbidi, con dentro le pillole: una
 * per servizio, ognuna col proprio bordo.
 *
 * Il colore del testo/icona (--amenity-color) e' piu' chiaro di quanto il
 * contrasto richiederebbe per un testo piccolo: e' la tinta del riferimento
 * che e' stato dato. Se un domani il contrasto da' fastidio, la riga sotto
 * ha gia' pronta la versione che supera 4,5 restando nella stessa famiglia.
 */
:root {
	--amenity-color: #a8a13a;
	/* --amenity-color: #7c772b;  versione con contrasto AA sul bianco */
}

.amenities {
	border: 1px solid var(--bs-border-color, #dee2e6);
	border-radius: var(--caorle-radius);
	padding: 2rem clamp(1.25rem, 4vw, 2.5rem);
}

/*
 * Da computer le pillole sono larghe quanto il loro testo e vanno a capo;
 * da telefono stanno su una riga sola che scorre di lato, e il riquadro
 * non diventa una colonna lunghissima.
 */
.amenities__grid {
	display: flex;
	flex-wrap: wrap;
	gap: .5rem;
}

.amenities__track {
	position: relative;
}

.amenities__next {
	display: none;
}

/*
 * Che la riga continua lo dicono una sfumatura sul bordo destro e una
 * freccia, che porta avanti al tocco (scripts/amenities.js). Spariscono
 * arrivati in fondo, o se i servizi stanno tutti sullo schermo.
 */
@media (max-width: 767.98px) {
	.amenities__track {
		margin: 0 calc(-1 * clamp(1.25rem, 4vw, 2.5rem));
	}

	.amenities__track::after {
		content: "";
		position: absolute;
		top: 0;
		right: 0;
		bottom: 0;
		width: 72px;
		background: linear-gradient(to right, rgba(255, 255, 255, 0), var(--bs-body-bg, #fff) 70%);
		border-radius: 0 var(--caorle-radius) var(--caorle-radius) 0;
		pointer-events: none;
		opacity: 0;
		transition: opacity .2s ease;
	}

	.amenities__next {
		position: absolute;
		top: 50%;
		right: 8px;
		z-index: 1;
		display: flex;
		align-items: center;
		justify-content: center;
		width: 34px;
		height: 34px;
		margin-top: -17px;
		padding: 0;
		border: 1px solid #000;
		border-radius: 50%;
		background: var(--caorle-yellow);
		box-shadow: 2px 2px 0 #000;
		color: #000;
		opacity: 0;
		pointer-events: none;
		transition: opacity .2s ease;
	}

	.amenities__track.is-scrollable:not(.is-end)::after,
	.amenities__track.is-scrollable:not(.is-end) .amenities__next {
		opacity: 1;
	}

	.amenities__track.is-scrollable:not(.is-end) .amenities__next {
		pointer-events: auto;
		animation: amenities-nudge 1.2s ease-in-out 2;
	}

	.amenities__grid {
		flex-wrap: nowrap;
		overflow-x: auto;
		scroll-snap-type: x proximity;
		scrollbar-width: none;
		padding: 0 clamp(1.25rem, 4vw, 2.5rem) .25rem;
		scroll-padding: 0 clamp(1.25rem, 4vw, 2.5rem);
	}

	.amenities__grid::-webkit-scrollbar {
		display: none;
	}

	.amenity {
		flex: 0 0 auto;
		scroll-snap-align: start;
		white-space: nowrap;
	}
}

.amenity {
	display: flex;
	align-items: center;
	gap: .4rem;
	padding: .45rem .9rem;
	border: 1px solid var(--bs-border-color, #dee2e6);
	border-radius: 999px;
	color: var(--amenity-color);
	text-decoration: none;
	font-weight: 600;
	font-size: .8rem;
	letter-spacing: .03em;
	text-transform: uppercase;
	transition: background-color .15s ease, border-color .15s ease;
}

@keyframes amenities-nudge {
	50% { transform: translateX(4px); }
}

@media (prefers-reduced-motion: reduce) {
	.amenities__next {
		animation: none !important;
	}
}

.amenity__icon {
	flex: 0 0 auto;
}

.amenity:hover {
	background: var(--bs-tertiary-bg, #f8f9fa);
	border-color: var(--amenity-color);
	color: var(--amenity-color);
}

/* ---------------------------------------------------------- informazioni */

/*
 * Stesso riquadro dei servizi (bordo sottile, angoli morbidi), ma qui il
 * contenuto e' solo tre voci fisse, quindi si centra tutto invece di
 * incolonnare a sinistra come le pillole dei servizi.
 *
 * Sito e telefono stanno in riga, il CIN su una riga sua sotto: e' un codice
 * lungo, e con piu' unita' diventa un elenco di codici. In una colonna
 * stretta andava a capo a meta'.
 */
.details-panel {
	border: 1px solid var(--bs-border-color, #dee2e6);
	border-radius: var(--caorle-radius);
	padding: 2rem clamp(1.25rem, 4vw, 2.5rem);
}

.details-panel__grid {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 1.5rem;
	text-align: center;
}

.details-panel__item {
	display: flex;
	flex: 1 1 220px;
	flex-direction: column;
	align-items: center;
	gap: .6rem;
	min-width: 0;
}

.details-panel__item--wide {
	flex-basis: 100%;
}

.details-panel__icon {
	color: var(--bs-heading-color, #000);
}

.details-panel__value {
	color: inherit;
	text-decoration: none;
	word-break: break-word;
}

a.details-panel__value {
	color: var(--amenity-color);
}

a.details-panel__value:hover {
	text-decoration: underline;
}

/* ------------------------------------------------------------ preventivo */

/*
 * Stessa tecnica del box "Le nostre webcam" in home.php: l'illustrazione sta
 * dentro il riquadro ma con un margine negativo che la spinge sopra al bordo
 * arrotondato. Il riquadro non ha overflow:hidden apposta, per lasciarla
 * uscire.
 */
.quote-form {
	position: relative;
	background: var(--caorle-yellow);
	border-radius: var(--caorle-radius);
	padding: 1.75rem 1.25rem 1.25rem;
	text-align: center;
}

.quote-form__illustration {
	display: block;
	width: 120px;
	max-width: 50%;
	margin: -80px auto .5rem;
}

.quote-form__title {
	font-size: 1.75rem;
	font-weight: 800;
	margin-bottom: .25rem;
}

.quote-form__subtitle {
	margin-bottom: 1rem;
	font-size: .9rem;
	line-height: 1.35;
}

.quote-form__field {
	text-align: left;
	margin-bottom: .6rem;
}

.quote-form__field label {
	display: block;
	margin-bottom: .15rem;
	color: var(--amenity-color);
	font-size: .85rem;
	font-weight: 600;
}

.quote-form__field input:not([type="checkbox"]),
.quote-form__field select,
.quote-form__field textarea {
	width: 100%;
	padding: .4rem .7rem;
	border: 1.5px solid #000;
	border-radius: 10px;
	background: #fff;
	font: inherit;
	font-size: .9rem;
	resize: vertical;
}

.quote-form__field input:focus,
.quote-form__field select:focus,
.quote-form__field textarea:focus {
	outline: 3px solid rgba(0, 0, 0, .25);
	outline-offset: 1px;
}

.quote-form__submit {
	display: block;
	width: 100%;
	margin-top: .25rem;
	padding: .65rem;
	border: none;
	border-radius: 12px;
	background: #4fabdb;
	color: #0a2c3d;
	font: inherit;
	font-size: 1rem;
	font-weight: 700;
	cursor: pointer;
	transition: background-color .15s ease;
}

.quote-form__submit:hover {
	background: #3f97c6;
}

/* Campi in coppia (nome e cognome, arrivo e partenza): due colonne, una su schermo molto stretto. */
.quote-form__row {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0 .75rem;
}

/* L'email e' piu' lunga del telefono: prende piu' spazio. */
.quote-form__row--contact {
	grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
}

/* Barra laterale stretta (992-1199px): email e telefono uno sotto l'altro. */
@media (min-width: 992px) and (max-width: 1199.98px) {
	.quote-form__row--contact {
		grid-template-columns: minmax(0, 1fr);
	}
}

.quote-form__field[hidden] {
	display: none;
}

.quote-form__field input[aria-invalid="true"],
.quote-form__field select[aria-invalid="true"],
.quote-form__field textarea[aria-invalid="true"] {
	border-color: #b3261e;
	box-shadow: 0 0 0 1px #b3261e;
}

.quote-form__error {
	margin: .35rem 0 0;
	color: #8c1d18;
	font-size: .85rem;
	font-weight: 700;
}

.quote-form__alert,
.quote-form__done {
	margin-bottom: 1.25rem;
	padding: .9rem 1rem;
	border: 1.5px solid #000;
	border-radius: 12px;
	background: #fff;
	text-align: left;
}

.quote-form__alert {
	border-color: #b3261e;
	color: #5c1410;
}

/* Mesi di apertura, sotto le date (scripts/quote-dates.js): avviso, o errore se la struttura e' chiusa. */
.quote-form__notice {
	margin: 0 0 .75rem;
	padding: .6rem .8rem;
	border: 1px solid #8a6d00;
	border-radius: 10px;
	background: #fff;
	color: #3d3000;
	font-size: .85rem;
	font-weight: 600;
	line-height: 1.35;
	text-align: left;
}

.quote-form__notice.is-alert {
	border-color: #b3261e;
	background: #fdecea;
	color: #5c1410;
}

.quote-form__notice[hidden] {
	display: none;
}

.quote-form__check {
	display: flex;
	align-items: flex-start;
	gap: .5rem;
	font-size: .8rem;
	line-height: 1.3;
	font-weight: 400 !important;
	cursor: pointer;
}

.quote-form__check input {
	flex: 0 0 auto;
	width: 1.1rem;
	height: 1.1rem;
	margin-top: .15rem;
	accent-color: #000;
}

@media (max-width: 359.98px) {
	.quote-form__row {
		grid-template-columns: minmax(0, 1fr);
	}
}

/*
 * Resta visibile mentre si scorre il contenuto a fianco, come i filtri
 * dell'elenco: solo da lg in su, dove la barra laterale sta davvero a fianco
 * e non impilata sopra.
 *
 * L'offset qui e' piu' grande di quello dei filtri (6,5rem invece di 1,5)
 * perche' l'illustrazione esce dal riquadro giallo di 80px (120px di margine
 * negativo meno i 40px di padding che lo assorbono). Con un offset piccolo,
 * quando la barra si aggancia in alto quegli 80px finiscono sopra al bordo
 * della finestra e vengono tagliati. 6,5rem = 80px piu' un margine di
 * respiro di 24px, cosi' l'illustrazione resta sempre tutta visibile.
 */
.quote-form-sidebar {
	margin-top: 60px;
}

/*
 * Pulsante fisso in basso, solo da telefono e tablet (partials/listing-view.php):
 * porta al modulo, che li' e' in fondo alla pagina. L'arrivo lascia spazio
 * alla barra in alto e all'illustrazione che esce dal riquadro giallo.
 */
#preventivo {
	scroll-margin-top: calc(var(--header-space, 5rem) + 90px);
}

.quote-jump {
	display: none;
}

@media (max-width: 991.98px) {
	.quote-jump {
		position: fixed;
		left: 16px;
		right: 16px;
		bottom: calc(12px + env(safe-area-inset-bottom));
		z-index: 1030;
		display: block;
		padding: .85rem 1rem;
		border: 1px solid #000;
		border-radius: 12px;
		background: var(--caorle-yellow);
		box-shadow: 4px 4px 0 #000;
		color: #000;
		font-weight: 700;
		text-align: center;
		text-decoration: none;
		transition: opacity .2s ease, transform .2s ease;
	}

	.quote-jump:hover,
	.quote-jump:focus-visible {
		color: #000;
	}

	.quote-jump.is-hidden {
		opacity: 0;
		transform: translateY(150%);
		pointer-events: none;
	}

	body:has(.quote-jump) {
		padding-bottom: 80px;
	}
}

@media (min-width: 992px) {
	.quote-form-sidebar {
		position: sticky;
		top: 6.5rem;
	}
}

/* ------------------------------------------------------------------ camere */

/*
 * Pulsante piccolo: stesso .btn-ghost di sempre, solo piu' compatto. Usato
 * dentro le schede camera, dove il pulsante grande occuperebbe troppo spazio.
 */
.btn-ghost--sm {
	padding: .4rem 1rem;
	font-size: .85rem;
	box-shadow: 3px 3px 0 #000 !important;
}

.btn-ghost--sm:hover {
	box-shadow: 1px 1px 0 #000 !important;
}

/*
 * Nessuna freccia: si scorre trascinando col mouse (scripts/rooms.js,
 * enableDrag) o con lo swipe, che overflow-x: auto da' gia' gratis. Senza
 * le frecce la corsia occupa tutta la larghezza a disposizione, invece di
 * cederne un pezzo per lato a due pulsanti.
 */
.rooms__track {
	display: flex;
	gap: 1.5rem;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	padding-bottom: .25rem;
	scrollbar-width: none;
	cursor: grab;
}

.rooms__track::-webkit-scrollbar {
	display: none;
}

.rooms__track.is-dragging {
	cursor: grabbing;
	scroll-snap-type: none;
	scroll-behavior: auto;
	user-select: none;
}

/*
 * Un pallino per camera, sotto la fila: dice quante sono e a che punto si
 * e' arrivati scorrendo. scripts/rooms.js accende quello piu' vicino alla
 * camera davanti mentre si scorre o si trascina, e un clic sul pallino
 * porta dritto a quella camera.
 */
.rooms__dots {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: .5rem;
	margin-top: 1rem;
}

.rooms__dot {
	width: 9px;
	height: 9px;
	padding: 0;
	border: none;
	border-radius: 50%;
	background: var(--bs-border-color, #dee2e6);
	cursor: pointer;
	transition: background-color .15s ease, transform .15s ease;
}

.rooms__dot:hover {
	background: var(--bs-secondary-color, #adb5bd);
}

.rooms__dot.is-active {
	background: var(--bs-heading-color, #000);
	transform: scale(1.2);
}

/*
 * min-width: 0 e' il pezzo che manca sempre in un flex item con dentro
 * qualcosa di largo (qui, le foto a piena risoluzione della galleria
 * interna): senza, il browser rifiuta di stringere la scheda sotto la
 * larghezza che le spetta, e la percentuale di flex-basis resta lettera
 * morta. Con min-width: 0 la scheda sta davvero alla sua larghezza e cio'
 * che eccede scorre dentro la sua galleria, dove deve stare.
 */
.room-card {
	position: relative;
	display: flex;
	flex-direction: column;
	flex: 0 0 85%;
	min-width: 0;
	scroll-snap-align: start;
	border: 1px solid var(--bs-border-color, #dee2e6);
	border-radius: var(--caorle-radius);
	padding: 1rem;
	background: #fff;
}

/*
 * La proporzione 4:3 sta qui, sul contenitore, non sull'immagine dentro la
 * corsia flessibile: un'immagine figlia di un flex container con
 * align-items stretch (il default) si vede spesso ignorare l'aspect-ratio,
 * perche' lo stretch verticale vince e l'altezza resta legata a quella del
 * contenitore, che a sua volta non ce l'ha. Qui il contenitore ha una
 * larghezza vera (quella della scheda) e quindi un'altezza vera da questo
 * rapporto: l'immagine dentro si limita a riempirla con height: 100%.
 */
.room-card__gallery {
	position: relative;
	display: block;
	overflow: hidden;
	border-radius: 15px;
	margin-bottom: .75rem;
	aspect-ratio: 4 / 3;
}

.room-card__gallery-track {
	display: flex;
	height: 100%;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	scrollbar-width: none;
}

.room-card__gallery-track::-webkit-scrollbar {
	display: none;
}

.room-card__gallery-track img {
	flex: 0 0 100%;
	width: 100%;
	height: 100%;
	min-width: 0;
	scroll-snap-align: start;
	object-fit: cover;
	display: block;
}

/* Frecce piccole sopra la foto: qui invece stanno sopra, come nel riferimento. */
.room-card__nav {
	position: absolute;
	top: .6rem;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	border: none;
	border-radius: 8px;
	background: rgba(0, 0, 0, .75);
	color: #fff;
	cursor: pointer;
	transition: background-color .15s ease;
}

.room-card__nav--prev {
	left: .6rem;
}

.room-card__nav--next {
	right: .6rem;
}

.room-card__nav:hover {
	background: rgba(0, 0, 0, .92);
}

/*
 * Altezza riservata a due righe di titolo, che ci sia o no bisogno di
 * andare a capo: senza, un nome corto e uno lungo farebbero partire il resto
 * della scheda a due altezze diverse.
 */
/* Metri quadri e occupazione: dato di servizio, non deve competere col nome. */
.room-card__meta {
	margin-bottom: .5rem;
	color: #616161;
	font-size: .85rem;
}

.room-card__name {
	min-height: 2.9em;
	margin-bottom: .5rem;
	font-size: 1.1rem;
	font-weight: 700;
	line-height: 1.45;
}

/*
 * Stessa idea della descrizione camera sul sito WordPress: altezza fissa
 * (non massima) cosi' tutte le schede restano alte uguale, sfumatura
 * sull'ultima riga tagliata, pulsante "Leggi di piu'" solo se il testo
 * trabocca davvero. La misura del taglio la fa scripts/rooms.js dopo il
 * caricamento, perche' dipende dalla larghezza vera della scheda.
 */
.room-card__body-wrap {
	position: relative;
	height: 170px;
	overflow: hidden;
	margin-bottom: .5rem;
}

.room-card__body {
	font-size: .9rem;
}

.room-card__body ul {
	padding-left: 1.1rem;
	margin-bottom: .5rem;
}

.room-card__body li {
	margin-bottom: .25rem;
}

.room-card__fade {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 3.5em;
	pointer-events: none;
	background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, #fff 90%);
}

/*
 * Solo la sfumatura sparisce quando il testo ci sta tutto: non avrebbe
 * niente da velare. Il pulsante invece resta sempre, anche qui: apre il
 * popup con le foto piu' grandi, utile a prescindere da quanto e' lunga la
 * descrizione.
 */
.room-card.is-short .room-card__fade {
	display: none;
}

.room-card__more {
	align-self: flex-start;
	margin-top: auto;
}

/* --------------------------------------------------------- popup camera */

/*
 * Sfondo scuro a piena pagina, riquadro bianco con bordo nero: diverso di
 * proposito dalla lightbox delle foto, che e' scura e senza cornice. Qui il
 * popup deve leggersi come una scheda, non come un visore a schermo intero.
 */
.room-modal {
	position: fixed;
	inset: 0;
	z-index: 1090;
	overflow-y: auto;
	background: rgba(0, 0, 0, .6);
}

.room-modal[hidden] {
	display: none;
}

.room-modal__box {
	position: relative;
	width: calc(100% - 2rem);
	max-width: 640px;
	margin: 3rem auto;
	padding: 2rem;
	background: #fff;
	border: 1px solid #000;
	border-radius: var(--caorle-radius);
}

.room-modal__close {
	position: absolute;
	top: 1rem;
	right: 1rem;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border: 1px solid #000;
	border-radius: 50%;
	background: #fff;
	cursor: pointer;
}

.room-modal__title {
	margin: 0 2.5rem 1rem 0;
	font-size: 1.5rem;
	font-weight: 700;
}

.room-modal__gallery {
	margin-bottom: 1.25rem;
}

/*
 * Quante camere si vedono senza scorrere: una scheda ampia sul telefono
 * (con un pezzo della prossima che spunta, a far capire che si puo'
 * scorrere), due dal tablet in su, tre da lg in su, dove parte anche la
 * barra laterale del preventivo. Il calc toglie gli spazi fra le schede
 * (1,5rem ciascuno) prima di dividere, altrimenti le larghezze non
 * tornerebbero e l'ultima scheda visibile risulterebbe tagliata.
 */
@media (min-width: 576px) {
	.room-card {
		flex-basis: calc((100% - 1.5rem) / 2);
	}
}

@media (min-width: 992px) {
	.room-card {
		flex-basis: calc((100% - 3rem) / 3);
	}
}

/* --------------------------------------------------- approfondimenti */

/*
 * La galleria di un approfondimento e' quella delle camere, riusata tale e
 * quale: cambia solo che qui chiude il riquadro, quindi non le serve lo
 * stacco in basso.
 */
/*
 * Qui le foto stanno affiancate (tre, due o una secondo lo schermo), non una
 * per volta come nelle camere: l'altezza non la puo' dare il contenitore, la
 * danno le foto stesse, quindi il rapporto 4:3 si sposta sull'immagine.
 *
 * align-items: flex-start e' obbligatorio: senza, lo stiramento verticale
 * predefinito del flex vince sull'aspect-ratio e le foto tornano deformate.
 */
.feature-gallery {
	margin-bottom: 0;
	aspect-ratio: auto;
}

.feature-gallery .room-card__gallery-track {
	height: auto;
	align-items: flex-start;
	gap: .75rem;
}

.feature-gallery .room-card__gallery-track img {
	flex: 0 0 calc((100% - 1.5rem) / 3);
	height: auto;
	aspect-ratio: 4 / 3;
	border-radius: 12px;
}

@media (max-width: 991.98px) {
	.feature-gallery .room-card__gallery-track img {
		flex-basis: calc((100% - .75rem) / 2);
	}
}

@media (max-width: 575.98px) {
	.feature-gallery .room-card__gallery-track img {
		flex-basis: 100%;
	}
}

/* Frecce inutili quando le foto ci stanno tutte: le nasconde scripts/rooms.js. */
.is-not-scrollable .room-card__nav {
	display: none;
}

/* Qualunque foto apribile a schermo intero lo dichiara col cursore. */
[data-lightbox-item] {
	cursor: zoom-in;
}

[data-lightbox-item]:focus-visible {
	outline: 3px solid var(--caorle-yellow);
	outline-offset: 2px;
}

/* ------------------------------------------------------ piede del sito */

/*
 * Pannello giallo come quello del preventivo in home: stesso colore, stessi
 * angoli, testo nero. Il sito e' chiaro dalla testa ai piedi e resta chiaro
 * anche qui, invece di ribaltare a scuro nell'ultimo schermo.
 */
/*
 * Il fondo non e' bianco pieno: la girandola della "o" del logo, ripetuta
 * in un tassello sfalsato che si ripete senza cuciture. E' presa dal logo
 * vero, non ridisegnata, quindi le forme sono quelle del marchio.
 *
 * Monocroma di proposito. La versione a colori esiste (variante
 * .site-footer--color) ma sotto al pannello giallo e a fianco delle
 * targhette colorate delle categorie diventa rumore: il sito ha gia' un
 * solo accento, ed e' il giallo.
 */
.site-footer {
	margin-top: 4rem;
	padding-bottom: 2.5rem;
	background-image: url("../assets/pattern-pinwheel.png?v=2");
	background-size: 240px 240px;
	background-repeat: repeat;
}

.site-footer--color {
	background-image: url("../assets/pattern-pinwheel-color.png?v=2");
}

.site-footer__panel {
	padding: clamp(2rem, 5vw, 3.5rem);
	border-radius: var(--caorle-radius);
	background: var(--caorle-yellow);
	color: var(--bs-heading-color, #000);
}

.site-footer__logo {
	display: block;
	margin-bottom: 1.5rem;
}

.site-footer__claim {
	max-width: 34ch;
	margin: 0;
	line-height: 1.7;
}

.site-footer__heading {
	margin-bottom: 1rem;
	font-size: 1rem;
	font-weight: 700;
}

.site-footer__list {
	list-style: none;
	margin: 0;
	padding: 0;
	line-height: 2.1;
}

.site-footer__panel a {
	color: inherit;
	text-decoration: none;
}

.site-footer__panel a:hover {
	text-decoration: underline;
	text-underline-offset: .25em;
}

.site-footer__panel a:focus-visible {
	outline: 3px solid #000;
	outline-offset: 3px;
}

/*
 * I dati di legge stanno fuori dal pannello: sono un obbligo, non parte del
 * messaggio, e su fondo neutro si leggono senza rubare attenzione al giallo.
 */
.site-footer__legal {
	padding-top: 2rem;
	/* Scurito quel tanto che serve a restare leggibile anche sul punto piu' scuro del motivo. */
	color: #616161;
	font-size: .85rem;
}

.site-footer__company {
	margin: 0 0 1.25rem;
	line-height: 1.8;
}

.site-footer__company strong {
	color: var(--bs-heading-color, #000);
	font-weight: 600;
}

.site-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: .75rem;
	padding-top: 1.25rem;
	border-top: 1px solid var(--bs-border-color, #dee2e6);
}

.site-footer__policies {
	display: flex;
	flex-wrap: wrap;
	gap: 1.5rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.site-footer__legal a {
	color: inherit;
}

.site-footer__legal a:hover {
	color: var(--bs-heading-color, #000);
}

/* --------------------------------------------------------------- ricerca */

/*
 * Barra di ricerca: stesso bordo nero e stessa ombra piena di .btn-ghost,
 * cosi' si legge subito come un elemento su cui agire. Il pulsante sta dentro
 * la cornice e non ha ombra propria: due ombre una dentro l'altra
 * sembrerebbero due oggetti.
 */
.search-bar {
	max-width: 760px;
	margin: 0 auto;
}

.search-bar__field {
	display: flex;
	align-items: center;
	gap: .5rem;
	padding: .4rem;
	border: 1px solid #000;
	border-radius: 16px;
	background: #fff;
	box-shadow: 4px 4px 0 #000;
}

.search-bar__field:focus-within {
	outline: 3px solid var(--caorle-yellow);
	outline-offset: 2px;
}

.search-bar__input {
	flex: 1 1 auto;
	min-width: 0;
	padding: .7rem .9rem;
	border: 0;
	background: transparent;
	color: #000;
	font: inherit;
	font-size: 1.05rem;
}

.search-bar__input:focus {
	outline: none;
}

/* #6b6b6b su bianco: 5.3:1, sopra la soglia AA anche per il segnaposto. */
.search-bar__input::placeholder {
	color: #6b6b6b;
	opacity: 1;
}

.search-bar .search-bar__submit {
	flex: 0 0 auto;
	padding: .7rem 1.5rem;
	box-shadow: none !important;
	font-weight: 600;
}

.search-bar__submit[aria-disabled="true"] {
	pointer-events: none;
	background: #000;
	color: #fff;
}

.search-bar__help {
	margin-top: .9rem;
	color: #555;
	text-align: center;
}

.search-bar__help a {
	color: #000;
	text-underline-offset: 3px;
}

@media (max-width: 575.98px) {
	.search-bar__field {
		flex-direction: column;
		align-items: stretch;
	}

	.search-bar .search-bar__submit {
		width: 100%;
	}
}

.search-page .search-bar {
	margin: 0;
}

.search-page .search-bar__help {
	text-align: left;
}

/* Filtri capiti: si tolgono con un clic, quindi sono link e non etichette. */
.search-chip {
	display: inline-flex;
	align-items: center;
	gap: .4rem;
	padding: .35rem .85rem;
	border: 1px solid #000;
	border-radius: 999px;
	background: var(--caorle-yellow);
	color: #000;
	font-size: .9rem;
	text-decoration: none;
	transition: background-color .2s ease;
}

.search-chip:hover {
	background: #fff;
}

.search-chip:focus-visible {
	outline: 3px solid #000;
	outline-offset: 2px;
}

.search-chip--off {
	background: #fff;
	color: #555;
	text-decoration: line-through;
}

.search-chip--off:hover {
	background: var(--caorle-yellow);
	color: #000;
	text-decoration: none;
}

.search-empty {
	padding: 1.25rem 1.5rem;
	border: 1px solid #000;
	border-radius: 16px;
	background: #fdf8d8;
}

/* ------------------------------------------------- ricerca nella barra */

/*
 * Campo compatto nella barra in alto, su ogni pagina. Bordo nero sottile
 * come il resto della barra ma senza ombra propria: la pillola ha gia' la
 * sua, e due ombre una dentro l'altra sembrerebbero due oggetti.
 *
 * Sotto 1400px il campo resta chiuso e lo apre la lente: su un telefono la
 * barra ha posto solo per logo e icona, e fino a 1400px il menu. Aperto, va a capo e prende tutta
 * la larghezza della pillola.
 */
.header-search {
	display: none;
	align-items: center;
	gap: .25rem;
	width: 100%;
	max-width: 260px;
	padding: .25rem .25rem .25rem .9rem;
	border: 1px solid #000;
	border-radius: 999px;
	background: #fff;
}

.header-search:focus-within {
	outline: 3px solid var(--caorle-yellow);
	outline-offset: 2px;
}

.header-search__input {
	flex: 1 1 auto;
	min-width: 0;
	padding: .4rem 0;
	border: 0;
	background: transparent;
	color: #000;
	font: inherit;
	font-size: .95rem;
}

.header-search__input:focus {
	outline: none;
}

/* #6b6b6b su bianco: 5.3:1, come il campo grande. */
.header-search__input::placeholder {
	color: #6b6b6b;
	opacity: 1;
}

.header-search__submit,
.header-search-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 40px;
	height: 40px;
	border: 1px solid #000;
	border-radius: 50%;
	background: var(--caorle-yellow);
	color: #000;
	cursor: pointer;
	transition: background-color .2s ease, color .2s ease;
}

.header-search__submit:hover,
.header-search-toggle:hover,
.header-search-toggle[aria-expanded="true"] {
	background: #000;
	color: #fff;
}

.header-search__submit:focus-visible,
.header-search-toggle:focus-visible {
	outline: 3px solid var(--caorle-yellow);
	outline-offset: 2px;
}

.header-search__submit[aria-disabled="true"] {
	pointer-events: none;
	background: #000;
	color: #fff;
}

@media (min-width: 992px) {
	.header-search {
		display: flex;
	}
}

@media (max-width: 991.98px) {
	.header-search.is-open {
		display: flex;
		order: 10;
		max-width: none;
		margin: .25rem 0 .5rem;
	}
}

/* ---------------------------------------------------- ricerche suggerite */

/*
 * Pannello sotto il campo di ricerca, aperto quando il campo e' vuoto: fa
 * vedere cosa si puo' chiedere. Stessa cornice del resto del sito, bordo
 * nero e ombra piena. Sta sopra a tutto, compresa la barra fissa.
 */
.header-search,
.search-bar__field {
	position: relative;
}

.search-suggest {
	position: absolute;
	top: calc(100% + .6rem);
	left: 0;
	right: 0;
	z-index: 1040;
	max-height: min(70vh, 460px);
	overflow-y: auto;
	padding: 1rem 1rem .75rem;
	border: 1px solid #000;
	border-radius: 16px;
	background: #fff;
	box-shadow: 4px 4px 0 #000;
	text-align: left;
}

.search-suggest[hidden] {
	display: none;
}

.search-suggest__intro {
	margin: 0 0 .5rem;
	color: #555;
	font-size: .85rem;
}

/* #555 su bianco: 7.5:1. */
.search-suggest__group {
	margin: .75rem 0 .25rem;
	color: #555;
	font-size: .75rem;
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
}

.search-suggest__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.search-suggest__item {
	display: block;
	padding: .45rem .6rem;
	border-radius: 10px;
	color: #000;
	font-size: .95rem;
	text-decoration: none;
}

.search-suggest__item:hover,
.search-suggest__item:focus-visible {
	background: #fdf8d8;
	outline: none;
	box-shadow: inset 0 0 0 1px #000;
}

/* ------------------------------------------------------------------ news */

/* Foto della news: a proporzioni vere, non ritagliata, angoli del sito. */
.news-photo {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 15px;
}

.news-body p:last-child {
	margin-bottom: 0;
}

/*
 * Archivio: righe compatte per mese, con una miniatura. Le schede grandi
 * servono per gli appuntamenti in arrivo; per quelli passati basta
 * ritrovarli.
 */
.news-archive__month {
	margin-bottom: .75rem;
	padding-bottom: .5rem;
	border-bottom: 1px solid var(--bs-border-color, #dee2e6);
	font-size: 1.1rem;
	font-weight: 700;
}

.news-archive__list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
	gap: .5rem 1.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.news-archive__item {
	display: flex;
	align-items: center;
	gap: 1rem;
	padding: .5rem;
	border-radius: 12px;
	color: var(--bs-body-color);
	text-decoration: none;
}

.news-archive__item:hover {
	background: #fdf8d8;
}

.news-archive__item:focus-visible {
	outline: 3px solid var(--caorle-yellow);
	outline-offset: 2px;
}

.news-archive__thumb {
	flex: 0 0 80px;
	width: 80px;
	height: 60px;
	object-fit: cover;
	border-radius: 8px;
}

@media (max-width: 575.98px) {
	.news-archive__list {
		grid-template-columns: 1fr;
	}
}

/* ---------------------------------------------------- pagine informative */

/*
 * Testo lungo da leggere: sta nella colonna di sinistra, a destra l'indice
 * della sezione. Le immagini stanno dentro il testo, dove le ha messe chi
 * l'ha scritto, con gli stessi angoli morbidi delle foto del sito.
 */
.info-body {
	line-height: 1.7;
}

.info-body img {
	display: block;
	max-width: 100%;
	height: auto;
	margin: 1.5rem 0;
	border-radius: 15px;
}

.info-body h2,
.info-body h3,
.info-body h4 {
	margin-top: 2rem;
	font-weight: 700;
}

.info-body h2 { font-size: 1.5rem; }
.info-body h3 { font-size: 1.25rem; }
.info-body h4 { font-size: 1.1rem; }

.info-body table {
	width: 100%;
	margin: 1.5rem 0;
	border-collapse: collapse;
}

.info-body td,
.info-body th {
	padding: .5rem .75rem;
	border: 1px solid var(--bs-border-color, #dee2e6);
	vertical-align: top;
}

.info-body iframe {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	height: auto;
	margin: 1.5rem 0;
	border: 0;
	border-radius: 15px;
}

.info-body p:last-child {
	margin-bottom: 0;
}

/* Precedente, genitore, successiva: tre riquadri in riga, a capo su telefono. */
.info-pager {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
}

.info-pager__link {
	flex: 1 1 220px;
	padding: 1rem 1.25rem;
	border: 1px solid var(--bs-border-color, #dee2e6);
	border-radius: 16px;
	color: var(--bs-body-color);
	text-decoration: none;
	transition: background-color .2s ease, border-color .2s ease;
}

.info-pager__link:hover {
	border-color: #000;
	background: #fdf8d8;
}

.info-pager__link:focus-visible {
	outline: 3px solid var(--caorle-yellow);
	outline-offset: 2px;
}

.info-pager__link--up {
	text-align: center;
}

.info-pager__link--next {
	text-align: right;
}

/*
 * Indice della sezione nella colonna di destra. Stessa cornice leggera dei
 * riquadri della scheda struttura. Da desktop resta visibile mentre si
 * legge, sotto la barra fissa; se e' piu' alto dello schermo scorre da solo.
 */
.info-nav {
	padding: 1.25rem 1rem;
	border: 1px solid var(--bs-border-color, #dee2e6);
	border-radius: var(--caorle-radius);
	background: #fff;
}

@media (min-width: 992px) {
	.info-nav {
		position: sticky;
		top: calc(var(--header-space) + 1rem);
		max-height: calc(100vh - var(--header-space) - 2rem);
		overflow-y: auto;
	}
}

.info-nav__title {
	margin: 0 .5rem .75rem;
	font-size: 1.1rem;
	font-weight: 700;
}

.info-nav__title a {
	color: var(--bs-heading-color, #000);
	text-decoration: none;
}

.info-nav__list,
.info-nav__sublist {
	margin: 0;
	padding: 0;
	list-style: none;
}

.info-nav__sublist {
	margin: .15rem 0 .35rem .75rem;
	padding-left: .5rem;
	border-left: 2px solid var(--caorle-yellow);
}

.info-nav__link {
	display: block;
	padding: .35rem .5rem;
	border-radius: 8px;
	color: var(--bs-body-color);
	font-size: .92rem;
	line-height: 1.35;
	text-decoration: none;
}

.info-nav__link:hover {
	background: #fdf8d8;
}

.info-nav__link:focus-visible {
	outline: 3px solid var(--caorle-yellow);
	outline-offset: 1px;
}

.info-nav__link.is-open {
	font-weight: 600;
}

.info-nav__link[aria-current="page"] {
	background: var(--caorle-yellow);
	color: #000;
	font-weight: 700;
}

/* Distanze nella scheda (lib/distances.php): nome a sinistra, distanza a destra, due colonne da computer. */
.distances {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
	gap: 0 2rem;
	margin: 0;
}

.distances__row {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	padding: .45rem 0;
	border-bottom: 1px solid var(--bs-border-color, #dee2e6);
}

.distances dt {
	font-weight: 400;
}

.distances dd {
	margin: 0;
	font-weight: 700;
	white-space: nowrap;
}

.distances__row--beach dd {
	color: #0b6fb8;
}

/* Spiaggia e centro sulla card, sotto le categorie. */
.card__distances {
	display: flex;
	flex-wrap: wrap;
	gap: .15rem .9rem;
	color: var(--bs-secondary-color, #555c63);
}

.card__distances strong {
	color: #000;
}

/* Dettagli dell'evento sopra il testo della news: artisti, ingresso, organizzatore. */
.news-details {
	display: grid;
	gap: .35rem;
	margin: 0 0 1.5rem;
	padding: 1rem 1.25rem;
	border: 1px solid #000;
	border-radius: 12px;
	background: #fff;
}

.news-details div {
	display: flex;
	flex-wrap: wrap;
	gap: 0 .5rem;
}

.news-details dt {
	font-weight: 700;
}

.news-details dt::after {
	content: ':';
}

.news-details dd {
	margin: 0;
}

.news-details a {
	color: #000;
	font-weight: 600;
}

/* Rimando dalla news all'evento che si ripete ogni anno. */
.news-event {
	padding: 1rem 1.25rem;
	border-left: 4px solid var(--caorle-yellow);
	border-radius: 0 12px 12px 0;
	background: #fdf8d8;
}

.news-event a {
	color: #000;
}

/*
 * Scelta del periodo nella pagina news. Stessa cornice della ricerca (bordo
 * nero, ombra piena): e' un'azione, non un'informazione. Da telefono i due
 * campi e il pulsante vanno uno sotto l'altro.
 */
.news-range {
	padding: 1.25rem 1.5rem;
	border: 1px solid #000;
	border-radius: 16px;
	background: #fdf8d8;
	box-shadow: 4px 4px 0 #000;
}

.news-range__title {
	margin: 0 0 .25rem;
	font-size: 1.25rem;
	font-weight: 700;
}

.news-range__help {
	margin: 0 0 1rem;
	color: #555;
	font-size: .95rem;
}

.news-range__fields {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: .75rem 1rem;
}

.news-range__field {
	display: flex;
	flex-direction: column;
	gap: .3rem;
}

.news-range__field label {
	font-weight: 600;
	font-size: .9rem;
}

.news-range__field input {
	min-width: 11rem;
	padding: .6rem .8rem;
	border: 1px solid #000;
	border-radius: 12px;
	background: #fff;
	color: #000;
	font: inherit;
}

.news-range__field input:focus-visible {
	outline: 3px solid var(--caorle-yellow);
	outline-offset: 2px;
}

.news-range .news-range__submit {
	padding: .6rem 1.4rem;
	box-shadow: none !important;
}

.news-range__shortcuts {
	display: flex;
	flex-wrap: wrap;
	gap: .5rem;
	margin-top: 1rem;
}

.news-range__shortcuts a {
	padding: .3rem .8rem;
	border: 1px solid #000;
	border-radius: 999px;
	background: #fff;
	color: #000;
	font-size: .9rem;
	text-decoration: none;
}

.news-range__shortcuts a:hover {
	background: var(--caorle-yellow);
}

.news-range__shortcuts .news-range__reset {
	border-style: dashed;
}

@media (max-width: 575.98px) {
	.news-range__fields,
	.news-range__field {
		align-items: stretch;
		width: 100%;
	}

	.news-range__fields {
		flex-direction: column;
	}

	.news-range .news-range__submit {
		width: 100%;
	}
}

/* ------------------------------------------------------- menu principale */

/*
 * Da desktop: cinque voci su una riga nella pillola, e sotto la pillola un
 * pannello largo quanto lei, con la stessa cornice (bordo nero, ombra
 * piena). Da telefono: l'hamburger apre il menu sotto la barra, e ogni voce
 * si apre a fisarmonica.
 *
 * Il pannello e' dentro la barra (position: relative) e sta sopra la
 * pagina come la barra stessa: nessuno z-index in piu' da inventare.
 */
.site-header__bar {
	position: relative;
}

.main-menu {
	flex: 1 1 auto;
	min-width: 0;
}

.main-menu__list {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: .25rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.main-menu__trigger {
	display: inline-flex;
	align-items: center;
	gap: .35rem;
	padding: .55rem .8rem;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: #000;
	font: inherit;
	font-weight: 600;
	white-space: nowrap;
	text-decoration: none;
	cursor: pointer;
	transition: background-color .2s ease;
}

.main-menu__trigger:hover,
.main-menu__item.is-open > .main-menu__trigger {
	background: #fdf8d8;
}

.main-menu__trigger:focus-visible {
	outline: 3px solid var(--caorle-yellow);
	outline-offset: 2px;
}

/* La sezione della pagina corrente: una riga gialla sotto la voce. */
.main-menu__item.is-active > .main-menu__trigger,
.main-menu__trigger[aria-current="page"] {
	box-shadow: inset 0 -3px 0 var(--caorle-yellow);
}

.main-menu__chevron {
	transition: transform .2s ease;
}

.main-menu__item.is-open .main-menu__chevron {
	transform: rotate(180deg);
}

.main-menu__panel {
	padding: 1.5rem;
	border: 1px solid #000;
	border-radius: var(--caorle-radius);
	background: #fff;
	box-shadow: 4px 4px 0 #000;
	text-align: left;
}

.main-menu__panel[hidden] {
	display: none;
}

.main-menu__columns {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
	gap: 1.5rem 2rem;
}

.main-menu__heading {
	margin: 0 0 .5rem;
	padding-bottom: .4rem;
	border-bottom: 1px solid var(--bs-border-color, #dee2e6);
	font-size: .95rem;
	font-weight: 700;
}

.main-menu__sublist {
	margin: 0;
	padding: 0;
	list-style: none;
}

.main-menu__sublink {
	display: flex;
	align-items: center;
	gap: .6rem;
	padding: .4rem .5rem;
	margin: 0 -.5rem;
	border-radius: 8px;
	color: var(--bs-body-color);
	font-size: .95rem;
	line-height: 1.3;
	text-decoration: none;
}

.main-menu__sublink:hover {
	background: #fdf8d8;
	color: #000;
}

.main-menu__sublink:focus-visible {
	outline: 3px solid var(--caorle-yellow);
	outline-offset: 1px;
}

.main-menu__sublink[aria-current="page"] {
	background: var(--caorle-yellow);
	color: #000;
	font-weight: 700;
}

/*
 * Quadratino del colore della tipologia: lo stesso della targhetta sulle
 * schede. Si prende il colore del testo della targhetta, quello scuro, che
 * su bianco si vede; il fondo chiaro fa da alone.
 */
.menu-swatch {
	flex: 0 0 auto;
	width: 12px;
	height: 12px;
	border-radius: 4px;
	background: currentColor !important;
	box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 20%, #fff);
}

.menu-stars {
	margin-left: auto;
	color: #c9a400;
	font-size: .8rem;
	letter-spacing: .05em;
	white-space: nowrap;
}

.menu-stars small {
	margin-left: .15rem;
	color: #6b5a00;
	font-size: .7rem;
	font-weight: 700;
}

.main-menu__feature {
	padding: 1.25rem;
	border-radius: 16px;
	background: #fdf8d8;
}

.main-menu__feature-title {
	margin: 0 0 .35rem;
	font-weight: 700;
}

.main-menu__feature-text {
	margin: 0 0 1rem;
	color: #555;
	font-size: .9rem;
}

.main-menu__feature .btn-ghost--sm {
	white-space: normal;
	text-align: left;
}

.main-menu__sublink--event {
	flex-direction: column;
	align-items: flex-start;
	gap: .1rem;
}

.main-menu__date {
	color: #555;
	font-size: .8rem;
	font-weight: 600;
}

.main-menu__more {
	display: flex;
	flex-wrap: wrap;
	gap: .5rem 1.25rem;
	margin: .75rem 0 0;
	font-size: .9rem;
	font-weight: 600;
}

.main-menu__more a {
	color: #000;
	text-underline-offset: 3px;
}

@media (min-width: 992px) {
	.main-menu__panel {
		position: absolute;
		top: calc(100% + .6rem);
		left: 0;
		right: 0;
		max-height: calc(100vh - var(--header-space) - 1rem);
		overflow-y: auto;
	}

	/* Un solo elenco breve: pannello stretto sotto la sua voce. */
	.main-menu__item--small {
		position: relative;
	}

	.main-menu__panel--small {
		left: 50%;
		right: auto;
		width: 280px;
		transform: translateX(-50%);
	}

	.main-menu__columns--wide {
		grid-template-columns: repeat(5, minmax(0, 1fr));
	}

	.main-menu__column--wide {
		grid-column: span 2;
	}
}

@media (min-width: 992px) and (max-width: 1199.98px) {
	.main-menu__columns--wide {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.menu-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border: 1px solid #000;
	border-radius: 50%;
	background: #fff;
	color: #000;
	cursor: pointer;
}

.menu-toggle[aria-expanded="true"] {
	background: #000;
	color: #fff;
}

.menu-toggle:focus-visible {
	outline: 3px solid var(--caorle-yellow);
	outline-offset: 2px;
}

@media (max-width: 991.98px) {
	.main-menu {
		display: none;
		order: 20;
		flex-basis: 100%;
		max-height: calc(100vh - var(--header-space) - 1rem);
		margin: .5rem 0 .75rem;
		overflow-y: auto;
	}

	.main-menu.is-open {
		display: block;
	}

	.main-menu__list {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
	}

	.main-menu__item {
		border-top: 1px solid var(--bs-border-color, #dee2e6);
	}

	.main-menu__trigger {
		justify-content: space-between;
		width: 100%;
		padding: .85rem .25rem;
		border-radius: 0;
	}

	.main-menu__trigger:hover,
	.main-menu__item.is-open > .main-menu__trigger {
		background: transparent;
	}

	.main-menu__item.is-active > .main-menu__trigger,
	.main-menu__trigger[aria-current="page"] {
		box-shadow: inset 3px 0 0 var(--caorle-yellow);
		padding-left: .75rem;
	}

	.main-menu__panel {
		padding: .25rem .25rem 1rem;
		border: 0;
		border-radius: 0;
		box-shadow: none;
	}

	.main-menu__columns {
		grid-template-columns: 1fr;
		gap: 1rem;
	}

	.main-menu__sublink {
		margin: 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	.main-menu__chevron,
	.main-menu__trigger {
		transition: none;
	}
}

/*
 * Richiesta a piu' strutture (/richieste/).
 */
.request-page__lead {
	max-width: 46rem;
	margin-bottom: 1.5rem;
	font-size: 1.05rem;
}

.request-choose {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 1rem 1.5rem;
	padding: 1.25rem 1.5rem;
	border: 1px solid #000;
	border-radius: 16px;
	background: #fdf8d8;
	box-shadow: 4px 4px 0 #000;
}

.request-choose__label {
	display: block;
	margin-bottom: .35rem;
	font-weight: 700;
}

.request-choose__row {
	display: flex;
	gap: .6rem;
}

.request-choose__row .request-input {
	flex: 1 1 auto;
	min-width: 0;
}

.request-choose .request-choose__submit {
	flex: 0 0 auto;
	padding: .6rem 1.2rem;
	box-shadow: none !important;
}

.request-input {
	width: 100%;
	padding: .6rem .8rem;
	border: 1px solid #000;
	border-radius: 12px;
	background: #fff;
	color: #000;
	font: inherit;
}

.request-input:focus-visible {
	outline: 3px solid var(--caorle-yellow);
	outline-offset: 2px;
}

.request-input[aria-invalid="true"] {
	border-color: #b3261e;
	box-shadow: 0 0 0 1px #b3261e;
}

.request-understood {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .4rem;
	margin: 1rem 0 0;
	font-size: .95rem;
}

.request-form {
	margin-top: 2rem;
}

.request-errors {
	margin-bottom: 1.5rem;
	padding: 1rem 1.25rem;
	border: 1px solid #b3261e;
	border-radius: 12px;
	background: #fdecea;
	color: #5c1410;
}

.request-recipients,
.request-fields {
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
}

.request-recipients {
	padding: 1.25rem;
	border: 1px solid var(--bs-border-color, #dee2e6);
	border-radius: 16px;
}

.request-recipients__title {
	float: none;
	margin-bottom: .25rem;
	font-size: 1.15rem;
	font-weight: 700;
}

.request-recipients__count {
	margin: 0 0 .5rem;
	color: #444;
}

.request-recipients__count span {
	color: #000;
	font-weight: 700;
}

.request-recipients__tools {
	display: flex;
	gap: .5rem;
	margin: 0 0 .75rem;
}

.request-recipients__tools button {
	padding: .2rem .8rem;
	border: 1px solid #000;
	border-radius: 999px;
	background: #fff;
	color: #000;
	font-size: .85rem;
}

.request-recipients__tools button:hover {
	background: var(--caorle-yellow);
}

.request-recipients__list {
	max-height: 30rem;
	margin: 0 -.5rem;
	padding: 0;
	overflow-y: auto;
	list-style: none;
}

.request-recipients__list li {
	display: flex;
	align-items: center;
	gap: .5rem;
	padding: .15rem .5rem;
	border-radius: 10px;
}

.request-recipients__list li:hover {
	background: #f6f6f6;
}

.request-recipient {
	display: flex;
	flex: 1 1 auto;
	align-items: flex-start;
	gap: .6rem;
	padding: .35rem 0;
	cursor: pointer;
}

.request-recipient input,
.request-check input,
.request-board__option input {
	flex: 0 0 auto;
	width: 1.1rem;
	height: 1.1rem;
	margin-top: .2rem;
	accent-color: #000;
}

.request-recipient__name {
	display: block;
	font-weight: 600;
	line-height: 1.3;
}

/* Le stesse tinte delle targhette sulle schede: categoria chiara, zona piena. */
.request-recipient__badges {
	display: flex;
	flex-wrap: wrap;
	gap: .25rem;
	margin-top: .25rem;
}

.request-recipient__badge {
	display: inline-block;
	padding: .1rem .55rem;
	border-radius: 999px;
	font-size: .75rem;
	font-weight: 600;
	line-height: 1.4;
}

.request-recipient__badge--position {
	color: #fff;
}

/* Grigio per le zone senza colore proprio: :where() pesa zero, vince position--N. */
:where(.request-recipient__badge--position) {
	background: #86888b;
}

.request-recipient__link {
	flex: 0 0 auto;
	color: #333;
	font-size: .85rem;
	text-underline-offset: 3px;
}

.request-recipients__missing {
	margin-top: 1rem;
	padding-top: .75rem;
	border-top: 1px solid var(--bs-border-color, #dee2e6);
	font-size: .9rem;
}

.request-recipients__missing summary {
	cursor: pointer;
	font-weight: 600;
}

.request-recipients__missing ul {
	margin: 0;
	padding-left: 1.1rem;
}

.request-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem 1.25rem;
}

.request-field {
	display: flex;
	flex-direction: column;
	gap: .35rem;
	margin-bottom: 1rem;
}

.request-grid .request-field {
	margin-bottom: 0;
}

.request-field--wide {
	grid-column: 1 / -1;
}

.request-field[hidden] {
	display: none;
}

.request-field > label {
	font-weight: 600;
	font-size: .95rem;
}

.request-field__help {
	margin: 0;
	color: #555;
	font-size: .85rem;
}

.request-field__error {
	margin: 0;
	color: #b3261e;
	font-size: .875rem;
	font-weight: 600;
}

.request-board {
	margin: 1.5rem 0;
	padding: 0;
	border: 0;
}

.request-board legend {
	float: none;
	margin-bottom: .5rem;
	font-size: .95rem;
	font-weight: 600;
}

.request-board__options {
	display: flex;
	flex-wrap: wrap;
	gap: .5rem;
}

.request-board__option {
	display: flex;
	align-items: center;
	gap: .45rem;
	padding: .45rem .9rem;
	border: 1px solid #000;
	border-radius: 999px;
	background: #fff;
	cursor: pointer;
}

.request-board__option input {
	margin-top: 0;
}

.request-board__option:has(input:checked) {
	background: var(--caorle-yellow);
	font-weight: 600;
}

.request-board__option:has(input:focus-visible) {
	outline: 3px solid var(--caorle-yellow);
	outline-offset: 2px;
}

.request-board__notice {
	margin-top: .75rem;
	padding: .9rem 1.1rem;
	border: 1px solid #8a6d00;
	border-radius: 12px;
	background: #fff7d1;
	color: #3d3000;
}

[data-dates-notice] {
	margin: 0 0 1.25rem;
}

.request-board__notice.is-alert {
	border-color: #b3261e;
	background: #fdecea;
	color: #5c1410;
}

.request-board__notice[hidden] {
	display: none;
}

/* Trattamento che nessuna struttura dell'elenco offre: visibile, ma spento. */
.request-board__option.is-unavailable {
	border-color: #c4c4c4;
	background: #f2f2f2;
	color: #6b6b6b;
	cursor: not-allowed;
}

.request-board__option.is-unavailable input {
	accent-color: #c4c4c4;
	cursor: not-allowed;
}

/* Struttura tolta perche' non offre il trattamento scelto. */
.request-recipients__list li.is-blocked {
	opacity: .5;
}

.request-recipients__list li.is-blocked .request-recipient {
	cursor: not-allowed;
}

.request-check {
	display: flex;
	align-items: flex-start;
	gap: .6rem;
	cursor: pointer;
}

.request-submit {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .75rem 1.25rem;
	margin-top: 1.5rem;
}

.request-submit .request-submit__button {
	width: auto;
	padding-inline: 2rem;
}

.request-submit__note {
	flex: 1 1 16rem;
	margin: 0;
	color: #555;
	font-size: .9rem;
}

.request-hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.request-done {
	max-width: 44rem;
	padding: 1.5rem;
	border: 1px solid #000;
	border-radius: 16px;
	background: #fdf8d8;
	box-shadow: 4px 4px 0 #000;
}

.request-done__title {
	font-size: 1.35rem;
	font-weight: 700;
}

.request-done__list {
	margin-bottom: 1.25rem;
}

.request-done__list summary {
	cursor: pointer;
	font-weight: 600;
}

@media (min-width: 992px) {
	.request-recipients {
		position: sticky;
		top: calc(var(--header-space, 110px) + 1rem);
	}
}

@media (max-width: 575.98px) {
	.request-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.request-choose {
		padding: 1rem;
	}

	.request-choose .request-choose__submit {
		display: inline-block;
		width: auto;
	}
}

.request-cta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: .75rem 1.5rem;
	padding: 1rem 1.25rem;
	border: 1px solid #000;
	border-radius: 16px;
	background: #fdf8d8;
}

.request-cta__text {
	flex: 1 1 22rem;
	margin: 0;
}

.request-cta .btn-ghost {
	flex: 0 0 auto;
}

/*
 * Fascia in testa alle pagine di un tipo (partials/page-band.php): riquadro
 * arrotondato largo quanto il contenuto, nella tinta del tipo. Il percorso
 * prende il colore scuro della tinta, il titolo resta nero.
 *
 * L'onda a destra e' una maschera riempita con currentColor: prende da sola
 * il colore del tipo, senza un'immagine per ognuno.
 */
.page-band {
	position: relative;
	overflow: hidden;
	padding: 1rem 1.75rem 1.75rem;
	border-radius: var(--caorle-radius);
	isolation: isolate;
}

/* Senza tipo: grigio. :where() pesa zero, cosi' vince sempre .category--nome. */
:where(.page-band) {
	background: #f1f1f1;
	color: #555;
}

.page-band::after {
	content: "";
	position: absolute;
	right: -2rem;
	bottom: -1px;
	z-index: -1;
	width: min(52%, 560px);
	height: 70%;
	background: currentColor;
	opacity: .12;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 560 120' preserveAspectRatio='none'%3E%3Cpath d='M0 120V78c46 0 70-26 116-26s70 26 116 26 70-26 116-26 70 26 116 26 50-18 96-22v64z'/%3E%3Cpath d='M0 120V40C46 40 70 14 116 14s70 26 116 26 70-26 116-26 70 26 116 26S534 20 560 16v104z' opacity='.5'/%3E%3C/svg%3E") no-repeat right bottom / 100% 100%;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 560 120' preserveAspectRatio='none'%3E%3Cpath d='M0 120V78c46 0 70-26 116-26s70 26 116 26 70-26 116-26 70 26 116 26 50-18 96-22v64z'/%3E%3Cpath d='M0 120V40C46 40 70 14 116 14s70 26 116 26 70-26 116-26 70 26 116 26S534 20 560 16v104z' opacity='.5'/%3E%3C/svg%3E") no-repeat right bottom / 100% 100%;
	pointer-events: none;
}

.page-band .breadcrumb {
	--bs-breadcrumb-divider-color: currentColor;
	--bs-breadcrumb-item-active-color: currentColor;
	margin: 0;
	padding: 0 !important;
}

.page-band .breadcrumb a {
	color: inherit;
	font-weight: 600;
	text-decoration: none;
}

.page-band .breadcrumb a:hover {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.page-band .breadcrumb-item.active {
	font-weight: 400;
}

.page-band__title {
	position: relative;
	max-width: 44rem;
	margin: .6rem 0 0;
	color: #000;
	line-height: 1.1;
}

/* Solo il percorso (scheda di una struttura): fascia bassa, onda piu' piccola. */
.page-band--compact {
	padding: .8rem 1.5rem;
}

.page-band--compact::after {
	width: min(34%, 320px);
	height: 100%;
}

@media (max-width: 575.98px) {
	.page-band {
		padding: .9rem 1.1rem 1.4rem;
		border-radius: 18px;
	}

	.page-band--compact {
		padding: .7rem 1.1rem;
	}

	.page-band::after {
		width: 70%;
		height: 45%;
	}
}

/*
 * Pagina non trovata (not_found.php): il faro di Caorle cerca la strada,
 * sotto le voci del menu come riquadri. Le animazioni toccano solo
 * transform e opacity, e si fermano con prefers-reduced-motion.
 */
.nf {
	padding-top: 1.5rem;
}

.nf-hero {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
	align-items: center;
	gap: 1rem 3rem;
	padding: 2rem 2.5rem 0;
	overflow: hidden;
	border: 1px solid #000;
	border-radius: var(--caorle-radius);
	background: linear-gradient(180deg, #fdf8d8 0%, #eaf6fc 100%);
	box-shadow: 4px 4px 0 #000;
}

.nf-hero__text {
	padding-bottom: 2rem;
}

.nf-hero__code {
	margin: 0;
	color: #1d7fb0;
	font-size: clamp(4.5rem, 12vw, 8.5rem);
	font-weight: 800;
	line-height: .9;
	letter-spacing: -.04em;
	animation: nf-float 5s ease-in-out infinite;
}

.nf-hero__title {
	margin: .75rem 0 .75rem;
	line-height: 1.1;
}

.nf-hero__lead {
	max-width: 30rem;
	margin: 0;
	color: #333;
	font-size: 1.05rem;
}

.nf-scene {
	display: block;
	width: 100%;
	height: auto;
	align-self: end;
	/* Le onde sono piu' larghe del disegno e scorrono: fuori dal riquadro non escono, ne' verso il testo ne' oltre il bordo. */
	overflow: hidden;
}

.nf-beam {
	transform-box: view-box;
	transform-origin: 170px 86px;
	animation: nf-sweep 6s ease-in-out infinite alternate;
}

.nf-lamp {
	animation: nf-glow 2s ease-in-out infinite alternate;
}

.nf-boat {
	transform-box: view-box;
	transform-origin: 470px 262px;
	animation: nf-bob 3.6s ease-in-out infinite;
}

.nf-wave {
	animation: nf-wave 9s linear infinite;
}

.nf-wave--mid {
	animation-duration: 6.5s;
	animation-direction: reverse;
}

.nf-wave--front {
	animation-duration: 4.5s;
}

@keyframes nf-wave {
	from { transform: translateX(0); }
	to   { transform: translateX(-200px); }
}

@keyframes nf-sweep {
	from { transform: rotate(-14deg); }
	to   { transform: rotate(10deg); }
}

@keyframes nf-glow {
	from { opacity: .75; }
	to   { opacity: 1; }
}

@keyframes nf-bob {
	0%, 100% { transform: translateY(0) rotate(-3deg); }
	50%      { transform: translateY(-7px) rotate(3deg); }
}

@keyframes nf-float {
	0%, 100% { transform: translateY(0); }
	50%      { transform: translateY(-6px); }
}

@keyframes nf-rise {
	from { opacity: 0; transform: translateY(14px); }
	to   { opacity: 1; transform: translateY(0); }
}

.nf-heading {
	margin: 2.75rem 0 1rem;
	font-size: 1.5rem;
	font-weight: 700;
}

.nf-cards {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 1.25rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.nf-card {
	display: flex;
	flex-direction: column;
	border: 1px solid #000;
	border-radius: 20px;
	box-shadow: 4px 4px 0 #000;
	transition: transform .2s ease, box-shadow .2s ease;
	animation: nf-rise .5s cubic-bezier(.16, 1, .3, 1) both;
	animation-delay: var(--nf-delay, 0ms);
}

.nf-card:hover,
.nf-card:focus-within {
	transform: translate(-2px, -2px);
	box-shadow: 6px 6px 0 #000;
}

.nf-card__main {
	position: relative;
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	gap: .35rem;
	padding: 1.25rem 3.25rem 1.25rem 1.35rem;
	color: #000;
	text-decoration: none;
}

.nf-card__main:focus-visible {
	outline: 3px solid #000;
	outline-offset: -6px;
	border-radius: 20px;
}

.nf-card__title {
	font-size: 1.2rem;
	font-weight: 700;
}

.nf-card__text {
	color: #1f1f1f;
	font-size: .95rem;
}

.nf-card__arrow {
	position: absolute;
	top: 1.25rem;
	right: 1.2rem;
	color: currentColor;
	transition: transform .2s ease;
}

.nf-card:hover .nf-card__arrow,
.nf-card__main:focus-visible .nf-card__arrow {
	transform: translateX(4px);
}

.nf-card__links {
	display: flex;
	flex-wrap: wrap;
	gap: .4rem;
	margin: 0;
	padding: 0 1.35rem 1.2rem;
}

.nf-card__links a {
	display: inline-flex;
	align-items: center;
	gap: .45rem;
	padding: .25rem .7rem;
	border: 1px solid #000;
	border-radius: 999px;
	background: #fff;
	color: #000;
	font-size: .85rem;
	text-decoration: none;
}

.nf-card__links a:hover {
	background: var(--caorle-yellow);
}

.nf-search .search-bar {
	margin: 0;
}

@media (max-width: 991.98px) {
	.nf-hero {
		grid-template-columns: minmax(0, 1fr);
		padding: 1.5rem 1.5rem 0;
	}

	.nf-hero__text {
		padding-bottom: 0;
	}

	.nf-scene {
		max-width: 520px;
		margin: 0 auto;
	}
}

@media (prefers-reduced-motion: reduce) {
	.nf-hero__code,
	.nf-beam,
	.nf-lamp,
	.nf-boat,
	.nf-wave,
	.nf-card {
		animation: none;
	}

	.nf-card,
	.nf-card__arrow {
		transition: none;
	}
}

/*
 * Cielo vivo della testata in home (partials/hero-sky.php, scripts/now.js).
 *
 * .hero riceve data-phase (dawn, day, sunset, night) e data-weather (clear,
 * cloudy, rain, storm, fog, snow) dall'ora e dal meteo veri di Caorle, e la
 * posizione del sole in --sky-x/--sky-y. In fondo il cielo sfuma sempre nel
 * crema del sito, tranne di notte.
 *
 * Il sole sta dietro a testo e foto: il contenuto lascia passare i clic
 * dove non c'e' niente, cosi' il sole resta cliccabile (apre il gioco).
 */
.hero[data-phase="day"]    { background: linear-gradient(180deg, #bfe3f5 0%, #e1f0f2 45%, #fdf8d8 85%); }
.hero[data-phase="dawn"]   { background: linear-gradient(180deg, #f5bfae 0%, #fad9c3 40%, #fdf8d8 85%); }
.hero[data-phase="sunset"] { background: linear-gradient(180deg, #ee8a5c 0%, #f6b681 35%, #fbe2b3 65%, #fdf8d8 90%); }
.hero[data-phase="night"]  { background: linear-gradient(180deg, #0b1a33 0%, #16305a 55%, #24466f 100%); }

.hero[data-phase="night"] .hero__kicker,
.hero[data-phase="night"] .hero__title,
.hero[data-phase="night"] .hero__lead {
	color: #fff;
}

.hero[data-phase="night"] .hero__watermark {
	filter: invert(1);
	opacity: .08;
}

.sky {
	position: absolute;
	inset: 0;
	z-index: 0;
	overflow: hidden;
	pointer-events: none;
}

/* Velo del tempo: grigio con le nuvole, piu' scuro con la pioggia, bianco con la nebbia. */
.sky::after {
	content: "";
	position: absolute;
	inset: 0;
	opacity: 0;
	transition: opacity .8s ease;
}

.hero[data-weather="cloudy"] .sky::after { background: linear-gradient(180deg, rgba(120, 132, 145, .32), transparent 75%); opacity: 1; }
.hero[data-weather="rain"] .sky::after,
.hero[data-weather="storm"] .sky::after  { background: linear-gradient(180deg, rgba(70, 82, 98, .45), transparent 80%); opacity: 1; }
.hero[data-weather="fog"] .sky::after    { background: linear-gradient(180deg, rgba(255, 255, 255, .55), rgba(255, 255, 255, .15)); opacity: 1; }

.sky__stars {
	position: absolute;
	inset: 0 0 35%;
	opacity: 0;
	background-image:
		radial-gradient(1.5px 1.5px at 12% 18%, #fff 50%, transparent 51%),
		radial-gradient(1px 1px at 28% 32%, #fff 50%, transparent 51%),
		radial-gradient(1.5px 1.5px at 44% 12%, #fff 50%, transparent 51%),
		radial-gradient(1px 1px at 57% 40%, #fff 50%, transparent 51%),
		radial-gradient(2px 2px at 69% 22%, #fff 50%, transparent 51%),
		radial-gradient(1px 1px at 81% 36%, #fff 50%, transparent 51%),
		radial-gradient(1.5px 1.5px at 92% 14%, #fff 50%, transparent 51%),
		radial-gradient(1px 1px at 6% 44%, #fff 50%, transparent 51%),
		radial-gradient(1px 1px at 36% 52%, #fff 50%, transparent 51%),
		radial-gradient(1.5px 1.5px at 74% 54%, #fff 50%, transparent 51%);
	transition: opacity .8s ease;
}

.hero[data-phase="night"] .sky__stars {
	opacity: .9;
	animation: sky-twinkle 4s ease-in-out infinite alternate;
}

.sky__cloud {
	position: absolute;
	left: -240px;
	width: 220px;
	height: 60px;
	border-radius: 60px;
	background: #fff;
	opacity: 0;
	transition: opacity .8s ease;
}

.sky__cloud::before,
.sky__cloud::after {
	content: "";
	position: absolute;
	border-radius: 50%;
	background: inherit;
}

.sky__cloud::before { width: 110px; height: 90px; left: 30px; top: -45px; }
.sky__cloud::after  { width: 80px;  height: 70px; right: 35px; top: -30px; }

.sky__cloud--1 { top: 18%; animation: sky-drift 70s linear infinite; }
.sky__cloud--2 { top: 32%; scale: .7; animation: sky-drift 95s linear -40s infinite; }
.sky__cloud--3 { top: 10%; scale: .85; animation: sky-drift 120s linear -80s infinite; }

.hero[data-weather="cloudy"] .sky__cloud,
.hero[data-weather="rain"] .sky__cloud,
.hero[data-weather="storm"] .sky__cloud,
.hero[data-weather="snow"] .sky__cloud {
	opacity: .85;
}

.hero[data-phase="night"] .sky__cloud {
	background: #4a6283;
}

.hero[data-weather="rain"] .sky__cloud,
.hero[data-weather="storm"] .sky__cloud {
	background: #c9d1da;
}

.sky__rain {
	position: absolute;
	inset: 0;
	opacity: 0;
	/* Gocce corte su due piani: le grandi davanti e veloci, le piccole dietro e piu' lente. */
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cg stroke='%23fff' stroke-width='1.5' stroke-linecap='round'%3E%3Cpath d='M12 4l-3 12M44 28l-3 12M78 8l-3 12M104 48l-3 12M26 66l-3 12M62 82l-3 12M92 98l-3 12M116 14l-3 12M8 104l-3 12M52 52l-3 12'/%3E%3C/g%3E%3C/svg%3E"), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80'%3E%3Cg stroke='%23fff' stroke-opacity='.6' stroke-width='1' stroke-linecap='round'%3E%3Cpath d='M18 10l-2 8M58 22l-2 8M34 46l-2 8M72 60l-2 8M6 64l-2 8'/%3E%3C/g%3E%3C/svg%3E");
	background-size: 120px 120px, 80px 80px;
}

.hero[data-weather="rain"] .sky__rain,
.hero[data-weather="storm"] .sky__rain {
	opacity: .8;
	animation: sky-rain .6s linear infinite;
}

/* Sole di giorno, luna di notte: stesso pulsante, stessa posizione sull'arco. */
.sky__sun {
	position: absolute;
	left: var(--sky-x, 70%);
	top: var(--sky-y, 20%);
	z-index: 0;
	width: 64px;
	height: 64px;
	margin: -32px 0 0 -32px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: radial-gradient(circle at 40% 38%, #fff6b8 0 22%, #f3d824 60%, #f0b90b 100%);
	box-shadow: 0 0 0 10px rgba(243, 216, 36, .22), 0 0 50px 18px rgba(243, 216, 36, .45);
	cursor: pointer;
	transition: transform .25s ease;
}

.sky__sun:hover {
	transform: scale(1.08);
}

.sky__sun:focus-visible {
	outline: 3px solid #000;
	outline-offset: 6px;
}

.hero[data-phase="dawn"] .sky__sun,
.hero[data-phase="sunset"] .sky__sun {
	background: radial-gradient(circle at 40% 38%, #ffe3b0 0 20%, #f7a14a 65%, #e8742f 100%);
	box-shadow: 0 0 0 10px rgba(247, 161, 74, .22), 0 0 60px 22px rgba(247, 161, 74, .45);
}

.hero[data-phase="night"] .sky__sun {
	width: 48px;
	height: 48px;
	margin: -24px 0 0 -24px;
	background: #f4efd9;
	box-shadow: inset -12px -6px 0 #d9d2b4, 0 0 40px 10px rgba(244, 239, 217, .25);
}

.hero[data-phase="night"] .sky__sun:focus-visible {
	outline-color: #fff;
}

.hero[data-weather="rain"] .sky__sun,
.hero[data-weather="storm"] .sky__sun,
.hero[data-weather="fog"] .sky__sun {
	opacity: .55;
}

.hero[data-sky] > .container,
.hero[data-sky] > .container .row,
.hero[data-sky] > .container .row > [class*="col"],
.hero[data-sky] .hero__stack {
	pointer-events: none;
}

.hero[data-sky] > .container .row > [class*="col"] > *,
.hero[data-sky] .hero__photo {
	pointer-events: auto;
}

@keyframes sky-drift {
	to { translate: calc(100vw + 480px) 0; }
}

@keyframes sky-rain {
	to { background-position: -30px 120px, -20px 80px; }
}

@keyframes sky-twinkle {
	from { opacity: .55; }
	to   { opacity: .95; }
}

/* "Caorle, adesso": il riquadro sotto il pulsante della testata. */
.now {
	display: flex;
	align-items: stretch;
	gap: .9rem;
	max-width: 30rem;
	margin-top: 1.75rem;
	padding: .6rem;
	border: 1px solid #000;
	border-radius: 18px;
	background: rgba(255, 255, 255, .94);
	box-shadow: 4px 4px 0 #000;
	color: #000;
}

.now__cam {
	position: relative;
	flex: 0 0 auto;
	width: 116px;
	overflow: hidden;
	border-radius: 12px;
	background: #dfe8ee;
}

.now__cam img {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 84px;
	object-fit: cover;
}

/* L'unico pallino della pagina: dice una cosa vera, la webcam e' in diretta. */
.now__live {
	position: absolute;
	left: .4rem;
	top: .4rem;
	display: inline-flex;
	align-items: center;
	gap: .3rem;
	padding: .1rem .45rem;
	border-radius: 999px;
	background: rgba(0, 0, 0, .7);
	color: #fff;
	font-size: .7rem;
	font-weight: 700;
	letter-spacing: .02em;
}

.now__live::before {
	content: "";
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #ff4d4d;
	animation: now-pulse 1.6s ease-in-out infinite;
}

.now__info {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: .2rem;
	min-width: 0;
	padding-right: .4rem;
}

.now__title {
	margin: 0;
	font-weight: 700;
}

.now__clock {
	margin-left: .35rem;
	color: #1d6f99;
	font-variant-numeric: tabular-nums;
}

.now__line {
	display: flex;
	flex-wrap: wrap;
	gap: .1rem .8rem;
	margin: 0;
	font-size: .9rem;
}

.now__event {
	margin: 0;
	overflow: hidden;
	font-size: .85rem;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.now__event a {
	color: #000;
	font-weight: 600;
	text-underline-offset: 3px;
}

@keyframes now-pulse {
	0%, 100% { opacity: 1; }
	50%      { opacity: .35; }
}

@media (max-width: 991.98px) {
	.sky__sun {
		width: 48px;
		height: 48px;
		margin: -24px 0 0 -24px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.sky__cloud,
	.sky__rain,
	.hero[data-phase="night"] .sky__stars,
	.now__live::before {
		animation: none;
	}
}

/*
 * "Non sai da dove partire?": carte da sfogliare (partials/vacation-quiz.php,
 * scripts/quiz.js). Senza javascript le carte restano un elenco; con lo
 * script (.is-ready) diventano un mazzo, e si vede solo quella in cima con
 * le due dietro appena accennate.
 */

/* Fascia a tutta larghezza, grigio chiaro come "Caorle Eventi" (bg-body-secondary). */
.quiz {
	padding: clamp(3.5rem, 7vw, 5.5rem) 0;
}

.quiz > .container {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	align-items: center;
	gap: 2.5rem 4rem;
}

.quiz__title {
	margin: 0 0 1rem;
	line-height: 1.1;
}

.quiz__lead {
	max-width: 30rem;
	margin: 0;
	font-size: 1.05rem;
	line-height: 1.6;
}

/* Due carte sparse dietro al mazzo: si capisce subito che si sfogliano. */
.quiz__game.is-ready::before,
.quiz__game.is-ready::after {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 330px;
	border: 1px solid #000;
	border-radius: 24px;
	pointer-events: none;
}

.quiz__game.is-ready::before {
	background: var(--caorle-yellow);
	transform: rotate(-6deg) translate(-12px, 6px);
}

.quiz__game.is-ready::after {
	background: #fff;
	transform: rotate(4deg) translate(12px, 4px);
}

.quiz__game.is-done::before,
.quiz__game.is-done::after {
	display: none;
}

.quiz__game.is-ready .quiz__deck {
	z-index: 1;
}

.quiz__game {
	position: relative;
	width: 100%;
	max-width: 380px;
	margin-inline: auto;
	outline: none;
}

.quiz__deck {
	display: grid;
	gap: 1rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.quiz__card {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: .75rem;
	padding: 1.75rem 1.5rem 1.25rem;
	border: 1px solid #000;
	border-radius: 24px;
	background: #fff;
	box-shadow: 4px 4px 0 #000;
	text-align: center;
	user-select: none;
	-webkit-user-select: none;
}

.quiz__icon {
	width: 88px;
	height: 88px;
	padding: 16px;
	border: 1px solid #000;
	border-radius: 50%;
	background: var(--caorle-yellow);
	color: #000;
}

.quiz__question {
	margin: 0;
	font-size: 1.35rem;
	font-weight: 700;
	line-height: 1.2;
}

.quiz__hint {
	display: none;
	width: 100%;
	justify-content: space-between;
	margin: .5rem 0 0;
	color: #444;
	font-size: .85rem;
	font-weight: 600;
}

.quiz__stamp {
	position: absolute;
	top: 1.1rem;
	display: none;
	padding: .2rem .7rem;
	border: 2px solid currentColor;
	border-radius: 8px;
	font-size: 1rem;
	font-weight: 800;
	text-transform: uppercase;
	pointer-events: none;
}

.quiz__stamp--yes {
	left: 1.1rem;
	color: #0d7a3e;
	opacity: var(--quiz-yes, 0);
	transform: rotate(-12deg);
}

.quiz__stamp--no {
	right: 1.1rem;
	color: #b3261e;
	opacity: var(--quiz-no, 0);
	transform: rotate(12deg);
}

/* Mazzo: solo con lo script. */
.quiz__game.is-ready .quiz__deck {
	display: block;
	position: relative;
	height: 330px;
}

.quiz__game.is-ready .quiz__card {
	position: absolute;
	inset: 0;
	opacity: 0;
	pointer-events: none;
	touch-action: pan-y;
	transition: transform .32s cubic-bezier(.2, .7, .3, 1), opacity .32s ease;
}

.quiz__game.is-ready .quiz__hint,
.quiz__game.is-ready .quiz__stamp {
	display: flex;
}

.quiz__game.is-ready .quiz__card.is-top {
	z-index: 3;
	opacity: 1;
	pointer-events: auto;
	cursor: grab;
}

.quiz__game.is-ready .quiz__card.is-next {
	z-index: 2;
	opacity: 1;
	transform: translateY(12px) scale(.95);
}

.quiz__game.is-ready .quiz__card.is-after {
	z-index: 1;
	opacity: 1;
	transform: translateY(24px) scale(.9);
}

.quiz__game.is-ready .quiz__card.is-next *,
.quiz__game.is-ready .quiz__card.is-after * {
	visibility: hidden;
}

.quiz__game.is-ready .quiz__card.is-dragging {
	cursor: grabbing;
	transition: none;
}

.quiz__game.is-ready .quiz__card.is-out-yes {
	opacity: 0;
	transform: translateX(140%) rotate(18deg) !important;
}

.quiz__game.is-ready .quiz__card.is-out-no {
	opacity: 0;
	transform: translateX(-140%) rotate(-18deg) !important;
}

.quiz__game.is-done .quiz__deck {
	display: none;
}

.quiz__controls {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin-top: 2.25rem;
}

.quiz__controls[hidden] {
	display: none;
}

.quiz__button {
	min-width: 7.5rem;
	padding: .7rem 1.1rem;
	border: 1px solid #000;
	border-radius: 999px;
	background: #fff;
	box-shadow: 3px 3px 0 #000;
	color: #000;
	font: inherit;
	font-weight: 700;
	cursor: pointer;
	transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}

.quiz__button:hover {
	transform: translate(-1px, -1px);
	box-shadow: 4px 4px 0 #000;
}

.quiz__button:active {
	transform: translate(2px, 2px);
	box-shadow: 1px 1px 0 #000;
}

.quiz__button:focus-visible,
.quiz__restart:focus-visible {
	outline: 3px solid #000;
	outline-offset: 3px;
}

.quiz__button--yes {
	background: var(--caorle-yellow);
}

.quiz__progress {
	margin: 0;
	color: #333;
	font-size: .9rem;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
}

.quiz__result {
	padding: 1.75rem 1.5rem;
	border: 1px solid #000;
	border-radius: 24px;
	background: #fff;
	box-shadow: 4px 4px 0 #000;
	text-align: center;
	outline: none;
	animation: quiz-pop .4s cubic-bezier(.2, .7, .3, 1);
}

.quiz__result[hidden] {
	display: none;
}

.quiz__result-label {
	margin: 0 0 .35rem;
	color: #444;
	font-size: .9rem;
	font-weight: 600;
}

.quiz__result-text {
	margin: 0 0 1.25rem;
	font-size: 1.3rem;
	font-weight: 700;
	line-height: 1.3;
}

.quiz__result-actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: .75rem;
}

.quiz__request {
	background: var(--caorle-yellow);
}

.quiz__restart {
	margin-top: 1rem;
	padding: 0;
	border: 0;
	background: none;
	color: #000;
	font: inherit;
	font-size: .9rem;
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
}

@keyframes quiz-pop {
	from { opacity: 0; transform: scale(.94); }
	to   { opacity: 1; transform: scale(1); }
}

@media (max-width: 991.98px) {
	.quiz > .container {
		grid-template-columns: minmax(0, 1fr);
	}
}

/*
 * Telefono: mazzo piu' stretto, cosi' le due carte ruotate dietro non escono
 * dallo schermo (facevano scorrere la pagina di lato); pulsanti piu' piccoli
 * e "1 di 9" sempre su una riga.
 */
@media (max-width: 575.98px) {
	.quiz {
		overflow-x: clip;
	}

	.quiz__game {
		max-width: 300px;
	}

	.quiz__game.is-ready::before,
	.quiz__game.is-ready::after,
	.quiz__game.is-ready .quiz__deck {
		height: 290px;
	}

	.quiz__card {
		gap: .6rem;
		padding: 1.25rem 1.1rem 1rem;
	}

	.quiz__icon {
		width: 72px;
		height: 72px;
		padding: 13px;
	}

	.quiz__question {
		font-size: 1.15rem;
	}

	.quiz__hint {
		font-size: .78rem;
	}

	.quiz__controls {
		gap: .5rem;
		margin-top: 1.75rem;
	}

	.quiz__button {
		flex: 1 1 0;
		min-width: 0;
		padding: .45rem .6rem;
		box-shadow: 2px 2px 0 #000;
		font-size: .85rem;
		line-height: 1.25;
	}

	.quiz__progress {
		flex: 0 0 auto;
		font-size: .8rem;
		white-space: nowrap;
	}
}

@media (prefers-reduced-motion: reduce) {
	.quiz__game.is-ready .quiz__card,
	.quiz__result {
		transition: none;
		animation: none;
	}
}

/*
 * Il bragozzo: gioco nascosto (scripts/game.js, scripts/bragozzo.js). Si
 * apre dal sole della testata in home e dal faro della pagina 404, in una
 * finestra <dialog>: Esc la chiude e il fuoco torna dove era.
 */
.game {
	width: min(860px, calc(100vw - 24px));
	max-height: calc(100dvh - 24px);
	padding: 0;
	overflow-x: hidden;
	overflow-y: auto;
	border: 1px solid #000;
	border-radius: var(--caorle-radius);
	background: #fff;
	box-shadow: 6px 6px 0 #000;
	color: #000;
}

.game::backdrop {
	background: rgba(11, 26, 51, .6);
}

.game:focus {
	outline: none;
}

.game__head {
	display: flex;
	align-items: center;
	gap: 1rem;
	padding: .75rem 1rem .75rem 1.25rem;
	border-bottom: 1px solid #000;
	background: var(--caorle-yellow);
}

.game__title {
	margin: 0;
	font-size: 1.25rem;
	font-weight: 800;
}

.game__score {
	display: flex;
	gap: 1rem;
	margin: 0 0 0 auto;
	font-size: .95rem;
	font-variant-numeric: tabular-nums;
}

.game__best {
	color: #333;
}

.game__close {
	width: 2.25rem;
	height: 2.25rem;
	border: 1px solid #000;
	border-radius: 50%;
	background: #fff;
	color: #000;
	font-size: 1.4rem;
	line-height: 1;
	cursor: pointer;
}

.game__close:hover {
	background: #000;
	color: #fff;
}

.game__close:focus-visible {
	outline: 3px solid #000;
	outline-offset: 2px;
}

/*
 * Tela e riquadro sovrapposti nella stessa cella della griglia, non in
 * posizione assoluta: se il testo di fine partita e i pulsanti per
 * condividere non ci stanno sopra la tela (da telefono e' bassa), il
 * riquadro si allunga sotto invece di uscire in alto e in basso.
 */
.game__stage {
	position: relative;
	display: grid;
}

.game__canvas,
.game__overlay {
	grid-area: 1 / 1;
}

.game__canvas {
	align-self: start;
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
	cursor: ns-resize;
}

.game__overlay {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: .5rem;
	padding: 1.5rem;
	background: rgba(253, 248, 216, .9);
	text-align: center;
}

.game__overlay[hidden] {
	display: none;
}

.game__overlay-title {
	margin: 0;
	font-size: clamp(1.5rem, 4vw, 2.25rem);
	font-weight: 800;
}

.game__overlay-text {
	max-width: 30rem;
	margin: 0 0 .75rem;
}

.game__overlay .btn-ghost {
	width: auto;
}

/* Il faro della 404 si puo' cliccare: lo dice il cursore, e il fuoco da tastiera. */
.nf-lighthouse {
	cursor: pointer;
	outline: none;
}

.nf-lighthouse:focus-visible {
	outline: 3px solid #000;
	outline-offset: 4px;
}

@media (max-width: 575.98px) {
	.game__score .game__best {
		display: none;
	}
}

/* Condivisione del punteggio, a fine partita. */
.game__share {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: .5rem;
	margin-top: 1rem;
}

.game__share[hidden] {
	display: none;
}

.game__share-text {
	flex-basis: 100%;
	margin: 0;
	font-size: .9rem;
	font-weight: 600;
}

.game__share-button {
	display: inline-flex;
	align-items: center;
	padding: .5rem 1rem;
	border: 1px solid #000;
	border-radius: 999px;
	background: #fff;
	color: #000;
	font: inherit;
	font-size: .9rem;
	font-weight: 700;
	text-decoration: none;
	cursor: pointer;
}

.game__share-button:hover {
	background: #000;
	color: #fff;
}

.game__share-button:focus-visible {
	outline: 3px solid #000;
	outline-offset: 2px;
}

/* Il blu di Facebook, con la scritta bianca: 5,5:1. */
.game__share-button--facebook {
	border-color: #1464d8;
	background: #1464d8;
	color: #fff;
}

.game__share-button--facebook:hover {
	background: #0d4fb0;
	color: #fff;
}

/* Pagina /gioco/: dove arriva chi apre un punteggio condiviso. */
.game-page__card {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
	align-items: center;
	gap: 2rem 3rem;
	padding: clamp(1.25rem, 4vw, 2.5rem);
	border: 1px solid #000;
	border-radius: var(--caorle-radius);
	background: #eaf6fc;
	box-shadow: 6px 6px 0 #000;
}

.game-page__challenge {
	display: inline-block;
	margin: 0 0 .75rem;
	padding: .25rem .8rem;
	border: 1px solid #000;
	border-radius: 999px;
	background: var(--caorle-yellow);
	font-weight: 700;
}

.game-page__title {
	margin: 0 0 1rem;
	line-height: 1.1;
}

.game-page__lead {
	max-width: 32rem;
	font-size: 1.05rem;
}

.game-page__image {
	display: block;
	width: 100%;
	height: auto;
	border: 1px solid #000;
	border-radius: 18px;
}

.game-page__more {
	margin: 1.5rem 0 0;
	text-align: center;
}

@media (max-width: 991.98px) {
	.game-page__card {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* Mentre il server firma il punteggio i pulsanti aspettano. */
.game__share.is-loading .game__share-button {
	opacity: .5;
	pointer-events: none;
}

/*
 * Vetrina (lib/promotion.php). Una struttura in evidenza deve staccarsi
 * dalle altre al primo sguardo: fondo giallo chiaro, bordo nero sottile con
 * una piccola ombra piena, e la targhetta "In evidenza" in testa.
 */
.card--featured {
	border: 1px solid #000 !important;
	background: #fdf8d8;
	box-shadow: 3px 3px 0 rgba(0, 0, 0, .85);
}

/* Il grigio di Bootstrap sul fondo giallino non arriva a 4,5:1: uno appena piu' scuro. */
.card__figure picture {
	display: contents;
}

.card--featured .text-secondary {
	color: #555c63 !important;
}

.card__featured {
	display: inline-flex;
	align-items: center;
	align-self: flex-start;
	gap: .35rem;
	margin: -.5rem 0 .75rem;
	padding: .25rem .75rem;
	border: 1px solid #000;
	border-radius: 999px;
	background: var(--caorle-yellow);
	color: #000;
	font-size: .8rem;
	font-weight: 700;
	line-height: 1.3;
}

/* Box nelle pagine senza elenco: una riga che si scorre. */
.featured__head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 1.25rem;
}

.featured__title {
	margin: 0;
}

.featured__arrows {
	display: flex;
	gap: .5rem;
}

.featured__arrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.75rem;
	height: 2.75rem;
	border: 1px solid #000;
	border-radius: 50%;
	background: #fff;
	box-shadow: 3px 3px 0 #000;
	color: #000;
	cursor: pointer;
	transition: transform .15s ease, box-shadow .15s ease;
}

.featured__arrow:hover:not(:disabled) {
	background: var(--caorle-yellow);
}

.featured__arrow:active:not(:disabled) {
	transform: translate(2px, 2px);
	box-shadow: 1px 1px 0 #000;
}

.featured__arrow:disabled {
	opacity: .35;
	cursor: default;
}

.featured__arrow:focus-visible,
.featured__track:focus-visible {
	outline: 3px solid #000;
	outline-offset: 3px;
}

.featured__track {
	display: flex;
	gap: 1.5rem;
	margin: 0 -.5rem;
	padding: .5rem .5rem 1.25rem;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-padding-inline: .5rem;
	scrollbar-width: thin;
	overscroll-behavior-x: contain;
}

.featured__track > .col {
	flex: 0 0 calc((100% - 3 * 1.5rem) / 4);
	max-width: none;
	scroll-snap-align: start;
}

@media (max-width: 1199.98px) {
	.featured__track > .col {
		flex-basis: calc((100% - 2 * 1.5rem) / 3);
	}
}

@media (max-width: 767.98px) {
	.featured__track > .col {
		flex-basis: 80%;
	}

	.featured__arrows {
		display: none;
	}
}

.featured__arrows[hidden] {
	display: none;
}

/*
 * Mappa dell'elenco (partials/listing-map.php, scripts/listing-map.js):
 * pulsante accanto al numero di risultati, mappa in una finestra. Da
 * telefono la finestra prende tutto lo schermo; da computer lascia un
 * margine intorno.
 */
.listing-list__bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: .75rem 1rem;
}

.listing-map__open {
	display: inline-flex;
	align-items: center;
	gap: .5rem;
	padding: .5rem 1.1rem;
	border: 1px solid #000;
	border-radius: 999px;
	background: #fff;
	box-shadow: 3px 3px 0 #000;
	color: #000;
	font: inherit;
	font-size: .95rem;
	font-weight: 700;
	cursor: pointer;
	transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}

.listing-map__open:hover {
	background: var(--caorle-yellow);
}

.listing-map__open:active {
	transform: translate(2px, 2px);
	box-shadow: 1px 1px 0 #000;
}

.listing-map__open:focus-visible {
	outline: 3px solid #000;
	outline-offset: 3px;
}

.listing-map {
	width: min(1200px, calc(100vw - 48px));
	height: min(820px, calc(100dvh - 48px));
	max-width: none;
	max-height: none;
	padding: 0;
	overflow: hidden;
	border: 1px solid #000;
	border-radius: var(--caorle-radius);
	background: #fff;
	box-shadow: 6px 6px 0 #000;
}

.listing-map[open] {
	display: flex;
	flex-direction: column;
}

.listing-map::backdrop {
	background: rgba(11, 26, 51, .55);
}

.listing-map__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: .75rem 1rem .75rem 1.5rem;
	border-bottom: 1px solid #000;
	background: var(--caorle-yellow);
}

.listing-map__title {
	margin: 0;
	font-size: 1.15rem;
	font-weight: 800;
	line-height: 1.2;
}

.listing-map__title span {
	display: block;
	font-size: .85rem;
	font-weight: 500;
}

.listing-map__close {
	flex: 0 0 auto;
	width: 2.5rem;
	height: 2.5rem;
	border: 1px solid #000;
	border-radius: 50%;
	background: #fff;
	color: #000;
	font-size: 1.5rem;
	line-height: 1;
	cursor: pointer;
}

.listing-map__close:hover {
	background: #000;
	color: #fff;
}

.listing-map__close:focus-visible {
	outline: 3px solid #000;
	outline-offset: 2px;
}

.listing-map__canvas {
	position: relative;
	flex: 1 1 auto;
	min-height: 0;
	background: #e6eef2;
}

.listing-map__loading {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0;
	padding: 1rem;
	color: #333;
	text-align: center;
}

.has-map-open {
	overflow: hidden;
}

/* Scheda nel fumetto della mappa. */
.map-card {
	width: 240px;
	font-family: inherit;
}

.map-card__photo {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 3;
	margin-bottom: .5rem;
	border-radius: 10px;
	object-fit: cover;
}

.map-card__badges {
	display: flex;
	flex-wrap: wrap;
	gap: .25rem;
	margin: 0 0 .35rem;
}

.map-card__badge {
	padding: .05rem .5rem;
	border-radius: 999px;
	font-size: .72rem;
	font-weight: 700;
	line-height: 1.5;
}

.map-card__badge--position {
	color: #fff;
}

:where(.map-card__badge--position) {
	background: #86888b;
}

.map-card__badge--top {
	border: 1px solid #000;
	background: var(--caorle-yellow);
	color: #000;
}

.map-card__title {
	margin: 0;
	color: #000;
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.25;
}

.map-card__cats {
	margin: .15rem 0 0;
	color: #555;
	font-size: .8rem;
}

.map-card__link {
	display: inline-block;
	margin-top: .5rem;
	color: #000;
	font-size: .9rem;
	font-weight: 700;
	text-underline-offset: 3px;
}

@media (max-width: 767.98px) {
	.listing-map {
		width: 100vw;
		height: 100dvh;
		border: 0;
		border-radius: 0;
		box-shadow: none;
	}

	.listing-map__head {
		padding: .6rem .75rem .6rem 1rem;
	}
}

/*
 * Banner dei cookie (partials/cookie-banner.php): riquadro in basso a
 * sinistra, che non copre la pagina e non la blocca. I tre pulsanti hanno
 * lo stesso peso: rifiutare deve essere facile quanto accettare.
 */
.consent {
	position: fixed;
	left: 16px;
	bottom: 16px;
	z-index: 1080;
	width: min(440px, calc(100vw - 32px));
	max-height: calc(100dvh - 32px);
	overflow-y: auto;
	padding: 1.25rem 1.25rem 1rem;
	border: 1px solid #000;
	border-radius: 20px;
	background: #fff;
	box-shadow: 4px 4px 0 #000;
	color: #000;
}

.consent[hidden] {
	display: none;
}

.consent__close {
	position: absolute;
	top: .6rem;
	right: .6rem;
	width: 2rem;
	height: 2rem;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: #000;
	font-size: 1.4rem;
	line-height: 1;
	cursor: pointer;
}

.consent__close:hover {
	background: #f0f0f0;
}

.consent__title {
	margin: 0 2rem .5rem 0;
	font-size: 1.05rem;
	font-weight: 700;
}

.consent__text {
	margin: 0 0 1rem;
	font-size: .88rem;
	line-height: 1.5;
}

.consent__text a {
	color: #000;
	font-weight: 600;
	text-underline-offset: 3px;
}

.consent__choices {
	display: grid;
	gap: .6rem;
	margin-bottom: 1rem;
	padding: .75rem;
	border-radius: 12px;
	background: #f6f6f6;
}

.consent__choices[hidden] {
	display: none;
}

.consent__choice {
	display: flex;
	align-items: flex-start;
	gap: .6rem;
	font-size: .85rem;
	line-height: 1.4;
	cursor: pointer;
}

.consent__choice input {
	flex: 0 0 auto;
	width: 1.1rem;
	height: 1.1rem;
	margin-top: .1rem;
	accent-color: #000;
}

.consent__choice strong {
	display: block;
}

.consent__actions {
	display: flex;
	flex-wrap: wrap;
	gap: .5rem;
}

.consent__button {
	flex: 1 1 auto;
	padding: .55rem .9rem;
	border: 1px solid #000;
	border-radius: 999px;
	background: #fff;
	color: #000;
	font: inherit;
	font-size: .88rem;
	font-weight: 700;
	cursor: pointer;
}

.consent__button:hover {
	background: var(--caorle-yellow);
}

.consent__button[hidden] {
	display: none;
}

.consent__button:focus-visible,
.consent__close:focus-visible,
.site-footer__consent:focus-visible {
	outline: 3px solid #000;
	outline-offset: 2px;
}

.site-footer__consent {
	padding: 0;
	border: 0;
	background: none;
	color: inherit;
	font: inherit;
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
}

/* Mappa della scheda senza consenso: al suo posto, il perche' e il pulsante. */
.map-consent {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	gap: 1rem;
	min-height: 220px;
	padding: 1.5rem;
	border: 1px dashed #8a8a8a;
	border-radius: 16px;
	background: #f1f5f7;
}

.map-consent__text {
	max-width: 34rem;
	margin: 0;
	font-size: .95rem;
}

.map-consent__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .75rem 1.25rem;
}

.map-consent__link {
	color: #000;
	font-weight: 600;
	text-underline-offset: 3px;
}

.listing-map__loading {
	flex-direction: column;
	gap: 1rem;
}

.listing-map__consent-text {
	max-width: 30rem;
}

/* Pagine legali: testo lungo, righe non troppo larghe, tabelle leggibili. */
.legal__updated {
	margin-bottom: 2rem;
	color: #555;
	font-size: .9rem;
}

.legal__body {
	max-width: 46rem;
	line-height: 1.7;
}

.legal__body h2 {
	margin: 2.5rem 0 .75rem;
	font-size: 1.4rem;
	font-weight: 700;
	scroll-margin-top: calc(var(--header-space) + 1rem);
}

.legal__body h3 {
	margin: 1.5rem 0 .5rem;
	font-size: 1.05rem;
	font-weight: 700;
}

.legal__body a {
	color: #000;
	text-underline-offset: 3px;
}

.legal__body table {
	width: 100%;
	margin: 1rem 0 1.5rem;
	border-collapse: collapse;
	font-size: .9rem;
}

.legal__body th,
.legal__body td {
	padding: .6rem .75rem;
	border-bottom: 1px solid var(--bs-border-color, #dee2e6);
	text-align: left;
	vertical-align: top;
}

.legal__body th {
	background: #f6f6f6;
}

.legal__body code {
	color: #000;
	font-size: .85rem;
}

.legal__index-list {
	margin: 0;
	padding-left: 1.2rem;
	font-size: .92rem;
	line-height: 1.8;
}

.legal__index-list a {
	color: #000;
	text-underline-offset: 3px;
}

@media (max-width: 575.98px) {
	.consent {
		left: 8px;
		right: 8px;
		bottom: 8px;
		width: auto;
	}

	.legal__body table,
	.legal__body thead,
	.legal__body tbody,
	.legal__body tr,
	.legal__body td,
	.legal__body th {
		display: block;
	}

	.legal__body thead {
		display: none;
	}

	.legal__body tr {
		padding: .5rem 0;
		border-bottom: 1px solid var(--bs-border-color, #dee2e6);
	}

	.legal__body td {
		padding: .15rem 0;
		border: 0;
	}
}

/*
 * Filtri dell'elenco da telefono (scripts/listing-filters.js): un pulsante
 * "Filtra" accanto al numero di risultati apre un pannello dal basso, con
 * gli stessi filtri della colonna da computer. Senza javascript il pannello
 * resta al suo posto, sopra l'elenco.
 */
.listing-list__bar > p {
	flex: 1 1 auto;
}

.listing-filters__head,
.listing-filters__foot {
	display: none;
}

.listing-filters__open {
	display: inline-flex;
	align-items: center;
	gap: .5rem;
	padding: .5rem 1.1rem;
	border: 1px solid #000;
	border-radius: 999px;
	background: #fff;
	box-shadow: 3px 3px 0 #000;
	color: #000;
	font: inherit;
	font-size: .95rem;
	font-weight: 700;
	cursor: pointer;
}

.listing-filters__open[hidden] {
	display: none;
}

.listing-filters__open:hover {
	background: var(--caorle-yellow);
}

.listing-filters__open:focus-visible,
.listing-filters__close:focus-visible {
	outline: 3px solid #000;
	outline-offset: 3px;
}

.listing-filters__count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 1.4rem;
	height: 1.4rem;
	padding: 0 .35rem;
	border-radius: 999px;
	background: #000;
	color: #fff;
	font-size: .75rem;
}

.listing-filters__backdrop[hidden] {
	display: none;
}

@media (min-width: 992px) {
	.listing-filters__open {
		display: none;
	}
}

@media (max-width: 991.98px) {
	.listing-filters.is-enhanced {
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 1070;
		width: auto;
		max-height: 85dvh;
		margin: 0;
		padding: 0 1.25rem 0 !important;
		overflow-y: auto;
		border: 1px solid #000 !important;
		border-bottom: 0 !important;
		border-radius: 24px 24px 0 0 !important;
		background: #fff;
		box-shadow: 0 -6px 30px rgba(0, 0, 0, .18);
		transform: translateY(105%);
		visibility: hidden;
		transition: transform .28s cubic-bezier(.2, .7, .3, 1), visibility 0s linear .28s;
	}

	.listing-filters.is-enhanced.is-open {
		transform: translateY(0);
		visibility: visible;
		transition: transform .28s cubic-bezier(.2, .7, .3, 1);
	}

	.listing-filters.is-enhanced .listing-filters__head {
		position: sticky;
		top: 0;
		z-index: 1;
		display: flex;
		align-items: center;
		justify-content: space-between;
		margin: 0 -1.25rem 1rem;
		padding: 1rem 1.25rem .75rem;
		border-bottom: 1px solid var(--bs-border-color, #dee2e6);
		background: #fff;
	}

	.listing-filters__title {
		margin: 0;
		font-size: 1.15rem;
		font-weight: 800;
	}

	.listing-filters__close {
		width: 2.25rem;
		height: 2.25rem;
		border: 1px solid #000;
		border-radius: 50%;
		background: #fff;
		color: #000;
		font-size: 1.4rem;
		line-height: 1;
		cursor: pointer;
	}

	.listing-filters.is-enhanced .listing-filters__foot {
		position: sticky;
		bottom: 0;
		display: block;
		margin: 1rem -1.25rem 0;
		padding: .75rem 1.25rem calc(.75rem + env(safe-area-inset-bottom));
		border-top: 1px solid var(--bs-border-color, #dee2e6);
		background: #fff;
	}

	.listing-filters__done {
		display: block;
		width: 100%;
		box-shadow: none !important;
	}

	.listing-filters__backdrop {
		position: fixed;
		inset: 0;
		z-index: 1065;
		background: rgba(11, 26, 51, .45);
	}

	.has-filters-open {
		overflow: hidden;
	}
}

@media (prefers-reduced-motion: reduce) {
	.listing-filters.is-enhanced,
	.listing-filters.is-enhanced.is-open {
		transition: none;
	}
}

/* Da telefono: numero di risultati sopra, "Filtra" e "Vedi sulla mappa" affiancati sotto. */
@media (max-width: 991.98px) {
	.listing-list__bar > p {
		flex-basis: 100%;
	}
}

/*
 * Richiesta a piu' strutture, da telefono: al posto dell'elenco lungo un
 * riepilogo ("Scriverai a 32 strutture: ... e altre 30"), e l'elenco si
 * apre in un pannello dal basso, come i filtri degli elenchi.
 */
.request-summary,
.request-recipients__close,
.request-recipients__foot {
	display: none;
}

@media (max-width: 991.98px) {
	.request-summary:not([hidden]) {
		display: flex;
		flex-wrap: wrap;
		align-items: center;
		justify-content: space-between;
		gap: .6rem 1rem;
		padding: 1rem 1.1rem;
		border: 1px solid #000;
		border-radius: 16px;
		background: #fdf8d8;
	}

	.request-summary__text {
		flex: 1 1 12rem;
		margin: 0;
		font-size: .92rem;
		line-height: 1.4;
	}

	.request-summary__text strong {
		display: block;
		font-size: 1rem;
	}

	.request-summary .request-field__error {
		flex-basis: 100%;
	}

	.request-summary__edit {
		flex: 0 0 auto;
		padding: .5rem 1rem;
		border: 1px solid #000;
		border-radius: 999px;
		background: #fff;
		box-shadow: 3px 3px 0 #000;
		color: #000;
		font: inherit;
		font-size: .9rem;
		font-weight: 700;
		cursor: pointer;
	}

	.request-summary__edit:focus-visible,
	.request-recipients__close:focus-visible {
		outline: 3px solid #000;
		outline-offset: 3px;
	}

	.request-recipients.is-enhanced {
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 1070;
		max-height: 85dvh;
		padding: 1rem 1.25rem 0;
		overflow-y: auto;
		border: 1px solid #000;
		border-bottom: 0;
		border-radius: 24px 24px 0 0;
		background: #fff;
		box-shadow: 0 -6px 30px rgba(0, 0, 0, .18);
		transform: translateY(105%);
		visibility: hidden;
		transition: transform .28s cubic-bezier(.2, .7, .3, 1), visibility 0s linear .28s;
	}

	.request-recipients.is-enhanced.is-open {
		transform: translateY(0);
		visibility: visible;
		transition: transform .28s cubic-bezier(.2, .7, .3, 1);
	}

	.request-recipients.is-enhanced .request-recipients__close {
		position: absolute;
		top: .8rem;
		right: 1rem;
		display: block;
		width: 2.25rem;
		height: 2.25rem;
		border: 1px solid #000;
		border-radius: 50%;
		background: #fff;
		color: #000;
		font-size: 1.4rem;
		line-height: 1;
		cursor: pointer;
	}

	/*
	 * Una legend normale si disegna sul bordo superiore del fieldset: nel
	 * pannello, che scorre, finiva fuori in alto. Flottante torna testo
	 * come gli altri, dentro al pannello.
	 */
	.request-recipients.is-enhanced .request-recipients__title {
		float: left;
		width: 100%;
		margin: .45rem 0 .75rem;
		padding-right: 3rem;
	}

	.request-recipients.is-enhanced .request-recipients__count {
		clear: both;
	}

	/* Nel pannello l'elenco non ha bisogno di una sua barra di scorrimento. */
	.request-recipients.is-enhanced .request-recipients__list {
		max-height: none;
		overflow: visible;
	}

	.request-recipients.is-enhanced .request-recipients__foot {
		position: sticky;
		bottom: 0;
		display: block;
		margin: 1rem -1.25rem 0;
		padding: .75rem 1.25rem calc(.75rem + env(safe-area-inset-bottom));
		border-top: 1px solid var(--bs-border-color, #dee2e6);
		background: #fff;
	}

	.request-recipients__done {
		display: block;
		width: 100%;
		box-shadow: none !important;
	}

	.request-recipients__backdrop:not([hidden]) {
		position: fixed;
		inset: 0;
		z-index: 1065;
		background: rgba(11, 26, 51, .45);
	}

	.has-recipients-open {
		overflow: hidden;
	}
}

@media (prefers-reduced-motion: reduce) {
	.request-recipients.is-enhanced,
	.request-recipients.is-enhanced.is-open {
		transition: none;
	}
}

/*
 * Richiesta a piu' strutture, da telefono, con le strutture gia' scelte:
 * introduzione e scelta dell'elenco si riducono a una riga ("Elenco: Hotel 3
 * stelle · Cambia"), cosi' il modulo si vede appena si apre la pagina.
 */
.request-change {
	display: none;
}

@media (max-width: 991.98px) {
	.request-page__intro {
		display: none;
	}

	.request-change:not([hidden]) {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: .75rem;
		margin-bottom: 1rem;
		padding: .6rem .6rem .6rem 1rem;
		border: 1px solid var(--bs-border-color, #dee2e6);
		border-radius: 999px;
		background: #fff;
	}

	.request-change__text {
		min-width: 0;
		margin: 0;
		overflow: hidden;
		font-size: .92rem;
		text-overflow: ellipsis;
		white-space: nowrap;
	}

	.request-change__text span {
		color: #555;
	}

	.request-change__button {
		flex: 0 0 auto;
		padding: .4rem .95rem;
		border: 1px solid #000;
		border-radius: 999px;
		background: #fff;
		color: #000;
		font: inherit;
		font-size: .88rem;
		font-weight: 700;
		cursor: pointer;
	}

	.request-change__button:focus-visible {
		outline: 3px solid #000;
		outline-offset: 2px;
	}

	.request-choose.is-collapsible.is-enhanced:not(.is-open) {
		display: none;
	}

	.request-choose.is-collapsible.is-open {
		margin-bottom: 1rem;
	}

	.request-page .request-form {
		margin-top: 1rem;
	}
}

/*
 * Lingua (header): la sigla corrente in una pillola come i pulsanti tondi
 * della barra, e sotto le altre lingue in un riquadro con la stessa cornice
 * dei pannelli del menu. E' un <details>: si apre anche senza javascript.
 */
.lang-menu {
	position: relative;
	flex: 0 0 auto;
}

.lang-menu__current {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 1px solid #000;
	border-radius: 999px;
	background: #fff;
	color: #000;
	font-size: .85rem;
	font-weight: 700;
	letter-spacing: .03em;
	list-style: none;
	cursor: pointer;
	user-select: none;
}

.lang-menu__current::-webkit-details-marker {
	display: none;
}

.lang-menu__current:hover,
.lang-menu[open] .lang-menu__current {
	background: var(--caorle-yellow);
}

.lang-menu__current:focus-visible {
	outline: 2px solid #000;
	outline-offset: 2px;
}

.lang-menu__list {
	position: absolute;
	top: calc(100% + .6rem);
	right: 0;
	z-index: 5;
	min-width: 11rem;
	margin: 0;
	padding: .4rem;
	border: 1px solid #000;
	border-radius: 18px;
	background: #fff;
	box-shadow: 4px 4px 0 #000;
	list-style: none;
}

.lang-menu__link {
	display: flex;
	align-items: center;
	gap: .6rem;
	padding: .5rem .75rem;
	border-radius: 12px;
	color: #000;
	text-decoration: none;
}

.lang-menu__link:hover,
.lang-menu__link:focus-visible {
	background: #f1f1f1;
}

.lang-menu__link[aria-current] {
	font-weight: 700;
}

.lang-menu__code {
	min-width: 1.6rem;
	font-weight: 700;
	font-size: .8rem;
	color: #555;
}

/* Bandierina accanto alla sigla o al nome della lingua (anche nella barra, dove le immagini sono il logo). */
.lang-flag,
.site-header__bar .lang-flag {
	flex: 0 0 auto;
	width: 20px;
	height: 14px;
	border-radius: 2px;
	box-shadow: 0 0 0 1px rgba(0, 0, 0, .18);
}

/* La lingua corrente: pillola con bandierina e sigla. */
.lang-menu__current {
	gap: .4rem;
	width: auto;
	padding: 0 .75rem;
}

/*
 * Da computer la barra ha due righe: sopra logo, ricerca e lingua, sotto
 * tutte le voci del menu a tutta larghezza. Cosi' c'e' posto anche per le
 * voci del tedesco e per quelle che verranno, senza stringere niente. Le
 * righe sono basse: la barra resta alta quanto quella di una riga sola.
 */
@media (min-width: 992px) {
	:root {
		--header-space: 8rem;
	}

	.site-header__bar {
		padding: .8rem 1.5rem 0;
	}

	.header-bar {
		flex-wrap: wrap !important;
		min-height: 0;
	}

	.header-bar > a:first-child {
		order: 1;
	}

	.header-bar > a:first-child img {
		display: block;
		width: 180px;
		height: auto;
	}

	.header-search {
		order: 2;
		max-width: 320px;
		margin-left: auto;
		padding-block: 0;
	}

	.header-search__submit {
		width: 34px;
		height: 34px;
		margin-block: 2px;
	}

	.lang-menu {
		order: 3;
	}

	.lang-menu__current {
		height: 40px;
	}

	.main-menu {
		order: 4;
		flex: 0 0 calc(100% + 3rem);
		margin: .4rem -1.5rem 0;
		padding: .2rem 1.1rem;
		border-top: 1px solid #e3e3e3;
	}

	.main-menu__list {
		justify-content: flex-start;
	}

	.main-menu__trigger {
		padding: .4rem .8rem;
	}
}

/* Icona e testo della voce principale, tenuti insieme (da telefono la freccina va a destra). */
.main-menu__label {
	display: inline-flex;
	align-items: center;
	gap: .45rem;
}

.main-menu__icon {
	flex: 0 0 auto;
}

@media (min-width: 992px) and (max-width: 1199.98px) {
	.main-menu__icon {
		display: none;
	}
}

.main-menu__languages {
	display: flex;
	flex-wrap: wrap;
	gap: .5rem;
	margin: 0;
	padding: .85rem .25rem .25rem;
	border-top: 1px solid var(--bs-border-color, #dee2e6);
}

.main-menu__languages a {
	display: inline-flex;
	align-items: center;
	gap: .45rem;
	padding: .35rem .85rem;
	border: 1px solid #000;
	border-radius: 999px;
	color: #000;
	font-size: .9rem;
	font-weight: 600;
	text-decoration: none;
}

.main-menu__languages a[aria-current] {
	background: var(--caorle-yellow);
}

.is-sending {
	opacity: .7;
	cursor: progress;
	pointer-events: none;
}

/*
 * Microfono nel campo di ricerca (partials/search-mic.php): tondo e
 * discreto, rosso e pulsante mentre ascolta.
 */
.search-bar__entry {
	display: flex;
	flex: 1 1 auto;
	align-items: center;
	min-width: 0;
}

.search-mic {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: #000;
	cursor: pointer;
	transition: background-color .2s ease, color .2s ease;
}

.search-mic[hidden] {
	display: none;
}

.search-mic:hover {
	background: #f1f1f1;
}

.search-mic:focus-visible {
	outline: 3px solid var(--caorle-yellow);
	outline-offset: 2px;
}

.search-mic.is-listening {
	background: #c62828;
	color: #fff;
	animation: search-mic-pulse 1.2s ease-in-out infinite;
}

.header-search .search-mic {
	width: 34px;
	height: 34px;
}

@keyframes search-mic-pulse {
	0%, 100% {
		box-shadow: 0 0 0 0 rgba(198, 40, 40, .45);
	}

	50% {
		box-shadow: 0 0 0 7px rgba(198, 40, 40, 0);
	}
}

@media (prefers-reduced-motion: reduce) {
	.search-mic.is-listening {
		animation: none;
	}
}

/* "Portami qui" sotto la mappa della scheda: testo e freccia sulla stessa riga. */
.directions-button {
	display: inline-flex;
	align-items: center;
	gap: .5rem;
}

/*
 * Domande frequenti (faq.php): casella di ricerca come quella del sito,
 * argomenti come pillole, ogni domanda un riquadro che si apre.
 */
.faq__intro {
	max-width: 46rem;
	margin-bottom: 1.5rem;
	font-size: 1.05rem;
}

.faq-search {
	max-width: 46rem;
	margin-bottom: 1.5rem;
}

.faq-search__label {
	display: block;
	margin-bottom: .4rem;
	font-weight: 600;
}

.faq-search__field {
	display: flex;
	align-items: center;
	gap: .6rem;
	padding: .4rem .9rem;
	border: 1px solid #000;
	border-radius: 16px;
	background: #fff;
	box-shadow: 4px 4px 0 #000;
}

.faq-search__field:focus-within {
	outline: 3px solid var(--caorle-yellow);
	outline-offset: 2px;
}

.faq-search__input {
	flex: 1 1 auto;
	min-width: 0;
	padding: .6rem 0;
	border: 0;
	background: transparent;
	color: #000;
	font: inherit;
	font-size: 1.05rem;
}

.faq-search__input:focus {
	outline: none;
}

.faq-search__input::placeholder {
	color: #6b6b6b;
	opacity: 1;
}

.faq-search__status {
	margin-top: .6rem;
	color: #555;
}

.faq-topics {
	display: flex;
	flex-wrap: wrap;
	gap: .5rem;
	margin-bottom: 2rem;
}

.faq-topics[hidden] {
	display: none;
}

.faq-topics__link {
	padding: .35rem .85rem;
	border: 1px solid #000;
	border-radius: 999px;
	background: #fff;
	color: #000;
	font-size: .9rem;
	font-weight: 600;
	text-decoration: none;
}

.faq-topics__link:hover,
.faq-topics__link:focus-visible {
	background: var(--caorle-yellow);
}

.faq__groups {
	max-width: 52rem;
}

.faq-group {
	margin-bottom: 2.5rem;
	scroll-margin-top: var(--header-space);
}

.faq-group__title {
	margin-bottom: 1rem;
	font-size: 1.5rem;
	font-weight: 700;
}

.faq-item {
	margin-bottom: .75rem;
	border: 1px solid #000;
	border-radius: 16px;
	background: #fff;
	scroll-margin-top: var(--header-space);
}

.faq-item[open] {
	box-shadow: 4px 4px 0 #000;
}

.faq-item__question {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 1rem 1.25rem;
	list-style: none;
	cursor: pointer;
}

.faq-item__question::-webkit-details-marker {
	display: none;
}

.faq-item__question::after {
	content: "+";
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border: 1px solid #000;
	border-radius: 50%;
	font-size: 1.1rem;
	font-weight: 700;
	line-height: 1;
}

.faq-item[open] > .faq-item__question::after {
	content: "\2212";
	background: var(--caorle-yellow);
}

.faq-item__question:focus-visible {
	outline: 3px solid var(--caorle-yellow);
	outline-offset: 2px;
	border-radius: 16px;
}

.faq-item__question h3 {
	margin: 0;
	font-size: 1.05rem;
	font-weight: 600;
	line-height: 1.4;
}

.faq-item__answer {
	padding: 0 1.25rem 1rem;
}

.faq-item__answer > :last-child {
	margin-bottom: 0;
}

.faq-item__answer a {
	color: #000;
	text-underline-offset: 3px;
}

.faq-empty {
	max-width: 46rem;
	padding: 1.25rem;
	border: 1px dashed #000;
	border-radius: 16px;
}

/* ---------- Feedback: stelle dopo l'invio, risposte all'email di esito (lib/feedback.php) ---------- */

.quote-form__help {
	margin: .35rem 0 0;
	color: #555;
	font-size: .8rem;
}

.feedback-rating {
	max-width: 44rem;
	margin-top: 1.25rem;
	padding: 1.25rem 1.5rem;
	border: 1px solid #000;
	border-radius: 16px;
	background: #fff;
}

.quote-form .feedback-rating {
	margin: 0 0 1.25rem;
	padding: 1rem;
}

.feedback-rating fieldset {
	margin: 0;
	padding: 0;
	border: 0;
}

.feedback-rating__question {
	margin-bottom: .5rem;
	font-size: 1.05rem;
	font-weight: 700;
}

.feedback-stars {
	display: flex;
	gap: .15rem;
}

.feedback-stars__star {
	display: inline-flex;
	padding: .2rem;
	border-radius: 8px;
	cursor: pointer;
}

.feedback-stars__star svg {
	fill: #fff;
	stroke: #555;
	stroke-width: 1.4;
	stroke-linejoin: round;
	transition: fill .15s, transform .15s;
}

.feedback-stars:has(input:nth-of-type(1):checked) .feedback-stars__star:nth-of-type(-n+1) svg,
.feedback-stars:has(input:nth-of-type(2):checked) .feedback-stars__star:nth-of-type(-n+2) svg,
.feedback-stars:has(input:nth-of-type(3):checked) .feedback-stars__star:nth-of-type(-n+3) svg,
.feedback-stars:has(input:nth-of-type(4):checked) .feedback-stars__star:nth-of-type(-n+4) svg,
.feedback-stars:has(input:nth-of-type(5):checked) .feedback-stars__star:nth-of-type(-n+5) svg {
	fill: var(--caorle-yellow);
	stroke: #000;
}

@media (hover: hover) {
	.feedback-stars:has(.feedback-stars__star:nth-of-type(1):hover) .feedback-stars__star:nth-of-type(-n+1) svg,
	.feedback-stars:has(.feedback-stars__star:nth-of-type(2):hover) .feedback-stars__star:nth-of-type(-n+2) svg,
	.feedback-stars:has(.feedback-stars__star:nth-of-type(3):hover) .feedback-stars__star:nth-of-type(-n+3) svg,
	.feedback-stars:has(.feedback-stars__star:nth-of-type(4):hover) .feedback-stars__star:nth-of-type(-n+4) svg,
	.feedback-stars:has(.feedback-stars__star:nth-of-type(5):hover) .feedback-stars__star:nth-of-type(-n+5) svg {
		fill: #fbeea0;
		stroke: #000;
	}

	.feedback-stars__star:hover svg {
		transform: scale(1.1);
	}
}

.feedback-stars input:focus-visible + .feedback-stars__star {
	outline: 2px solid #000;
	outline-offset: 1px;
}

.feedback-stars input:checked + .feedback-stars__star svg {
	fill: var(--caorle-yellow);
	stroke: #000;
}

.feedback-stars__scale {
	display: flex;
	justify-content: space-between;
	max-width: 13.5rem;
	margin: .2rem 0 0;
	color: #555;
	font-size: .8rem;
}

.feedback-rating__comment {
	margin-top: 1rem;
}

.feedback-rating__comment label {
	display: block;
	margin-bottom: .35rem;
	font-weight: 600;
}

.feedback-rating__comment textarea {
	width: 100%;
}

.feedback-rating__optional,
.feedback-listing__optional {
	color: #555;
	font-weight: 400;
}

.feedback-rating__submit {
	margin: .75rem 0 0;
}

.feedback-rating__status:not(:empty) {
	margin-top: .75rem;
	font-weight: 600;
}

.feedback-box {
	max-width: 44rem;
	padding: 1.5rem;
	border: 1px solid #000;
	border-radius: 16px;
	background: #fdf8d8;
	box-shadow: 4px 4px 0 #000;
}

.feedback-box__lead {
	font-size: 1.2rem;
	font-weight: 700;
}

.feedback-listing fieldset {
	margin: 0 0 1rem;
	padding: 0;
	border: 0;
}

.feedback-listing__question {
	margin-bottom: .5rem;
	font-size: 1rem;
	font-weight: 700;
}

.feedback-listing__option {
	display: flex;
	margin-bottom: .35rem;
}

/* ---------- Banner pubblicitari prima del piede, in ogni pagina (partials/banners.php) ---------- */

.site-banners__label {
	margin-bottom: .5rem;
	color: #666;
	font-size: .75rem;
	letter-spacing: .06em;
	text-align: center;
	text-transform: uppercase;
}

.site-banners__list {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 1rem 2rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-banners__link {
	display: block;
	overflow: hidden;
	border: 1px solid #ddd;
	border-radius: 8px;
	transition: box-shadow .15s, transform .15s;
}

.site-banners__link img {
	display: block;
	max-width: 100%;
	height: auto;
}

.site-banners__link:hover,
.site-banners__link:focus-visible {
	box-shadow: 0 4px 14px rgba(0, 0, 0, .15);
	transform: translateY(-2px);
}

/* ---------- Meteo (weather.php) ---------- */

.weather__title {
	margin: 2.5rem 0 1rem;
	font-size: 1.35rem;
	font-weight: 700;
}

.weather__now {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1.25rem 2rem;
	padding: 1.5rem;
	border: 1px solid #000;
	border-radius: 24px;
	background: var(--caorle-yellow);
	box-shadow: 4px 4px 0 #000;
}

.weather__now-main {
	display: flex;
	align-items: center;
	gap: 1.25rem;
}

.weather__now-main p {
	margin: 0;
}

.weather__now-label {
	font-weight: 600;
}

.weather__now-temp {
	font-size: 3rem;
	font-weight: 800;
	line-height: 1;
}

.weather__now-details {
	display: flex;
	gap: 2rem;
	margin: 0;
}

.weather__now-details dt {
	font-size: .85rem;
	font-weight: 600;
}

.weather__now-details dd {
	margin: 0;
	font-size: 1.1rem;
	font-weight: 700;
}

/*
 * position: relative perche' la descrizione nascosta di ogni ora
 * (.visually-hidden, in posizione assoluta) resti dentro la riga che scorre:
 * senza, sfuggiva allo scorrimento e da telefono allargava la pagina.
 */
.weather__hours {
	position: relative;
	display: flex;
	gap: .75rem;
	margin: 0;
	padding: 0 0 .5rem;
	overflow-x: auto;
	list-style: none;
	scroll-snap-type: x proximity;
}

.weather__hour {
	display: flex;
	flex: 0 0 5.25rem;
	flex-direction: column;
	align-items: center;
	gap: .3rem;
	padding: .75rem .5rem;
	border: 1px solid #000;
	border-radius: 16px;
	background: #fff;
	scroll-snap-align: start;
}

.weather__hour-time,
.weather__hour-extra {
	color: #444;
	font-size: .8rem;
}

.weather__hour-temp {
	font-size: 1.15rem;
	font-weight: 700;
}

.weather__days {
	margin: 0;
	padding: 0;
	border: 1px solid #000;
	border-radius: 16px;
	background: #fff;
	list-style: none;
	overflow: hidden;
}

.weather__day {
	display: grid;
	grid-template-columns: 7.5rem 2.75rem 1fr auto;
	align-items: center;
	gap: .25rem 1rem;
	padding: .75rem 1rem;
}

.weather__day + .weather__day {
	border-top: 1px solid #ddd;
}

.weather__day-name {
	font-weight: 700;
	text-transform: capitalize;
}

.weather__day-temp {
	display: flex;
	gap: .6rem;
	font-weight: 700;
}

.weather__day-min {
	color: #555;
	font-weight: 600;
}

.weather__day-extra {
	grid-column: 3 / -1;
	color: #555;
	font-size: .85rem;
}

.weather-icon--sun,
.weather-icon--sun-cloud {
	color: #c77700;
}

.weather-icon--rain,
.weather-icon--thunder {
	color: #1f5f99;
}

.weather__now .weather-icon {
	color: #000;
}

.weather__source {
	margin-top: 1rem;
}

@media (max-width: 575.98px) {
	.weather__day {
		grid-template-columns: 5.5rem 2.5rem 1fr auto;
		gap: .2rem .6rem;
		padding: .7rem .75rem;
	}

	.weather__day-text {
		font-size: .9rem;
	}

	.weather__now-temp {
		font-size: 2.5rem;
	}
}

/*
 * Recensione privata dopo l'email di esito (feedback.php): cinque stelle da
 * toccare, scritte dalla 5 alla 1 e girate, cosi' con :checked ~ si
 * accendono quella scelta e le precedenti.
 */
.feedback-review {
	display: grid;
	gap: .75rem;
	margin-top: 1.5rem;
	text-align: left;
}

.feedback-review__stars {
	margin: 0;
	padding: 0;
	border: 0;
}

.feedback-review__stars legend {
	margin-bottom: .5rem;
}

.feedback-review__row {
	display: flex;
	flex-direction: row-reverse;
	justify-content: flex-end;
	gap: .25rem;
}

.feedback-review__radio {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.feedback-review__star {
	font-size: 2.25rem;
	line-height: 1;
	color: #c9c9c9;
	cursor: pointer;
	transition: color .15s ease, transform .15s ease;
}

.feedback-review__radio:checked ~ .feedback-review__star,
.feedback-review__star:hover,
.feedback-review__star:hover ~ .feedback-review__star {
	color: #e0a800;
}

.feedback-review__radio:focus-visible + .feedback-review__star {
	outline: 3px solid #000;
	outline-offset: 2px;
	border-radius: 4px;
}

.feedback-review__label {
	font-weight: 600;
}

.feedback-review__note {
	margin: 0;
	padding: .6rem .8rem;
	border-radius: 10px;
	background: #fdf8d8;
	font-size: .9rem;
}

/* Indice delle sezioni sotto il primo paragrafo (partials/page-text.php). */
.page-toc {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .4rem .5rem;
	margin-top: 1rem;
}

.page-toc__label {
	margin-right: .25rem;
	font-weight: 700;
}

.page-toc__link {
	padding: .3rem .8rem;
	border: 1px solid #000;
	border-radius: 999px;
	background: #fff;
	color: #000;
	font-size: .9rem;
	text-decoration: none;
}

.page-toc__link:hover,
.page-toc__link:focus-visible {
	background: var(--caorle-yellow);
}

.page-text h2[id] {
	scroll-margin-top: calc(var(--header-space) + 1rem);
}

/* Testo delle pagine elenco (partials/page-text.php): sopra l'elenco l'inizio, sotto il resto. */
.page-text {
	max-width: 52rem;
}

.page-text h2 {
	margin: 1.75rem 0 .6rem;
	font-size: 1.3rem;
	font-weight: 700;
}

.page-text--intro p:last-child {
	margin-bottom: 0;
}

.offer-card {
	display: flex;
	gap: 1.5rem;
	align-items: flex-start;
	padding: 1.25rem 0;
	border-top: 1px solid var(--bs-border-color, #dee2e6);
}

.offer-card:first-of-type {
	padding-top: 0;
	border-top: 0;
}

.offer-card__photo {
	flex: 0 0 auto;
	width: min(240px, 38%);
	height: auto;
	border-radius: var(--caorle-radius);
	object-fit: cover;
}

.offer-card__title {
	font-size: 1.25rem;
	font-weight: 700;
	margin: 0 0 .25rem;
}

.offer-card__period {
	font-weight: 600;
	margin: 0 0 .75rem;
}

.offer-card__text > :last-child {
	margin-bottom: 0;
}

@media (max-width: 575.98px) {
	.offer-card {
		flex-direction: column;
	}

	.offer-card__photo {
		width: 100%;
	}
}

@media (min-width: 992px) and (max-width: 1399.98px) {
	.main-menu__list {
		gap: .1rem;
	}

	.main-menu__trigger {
		padding: .5rem .6rem;
		font-size: .95rem;
	}
}
