/* =========================================================================
 * Horizon Lake View — foglio di stile del tema
 * =========================================================================
 *
 * Scritto a mano, senza passaggio di compilazione: si modifica direttamente
 * questo file e si ricarica la pagina. Non serve Node, npm o Tailwind.
 *
 * I nomi delle classi seguono le convenzioni Tailwind perche' il markup e'
 * portato dal progetto Lovable originale, che le usava. Qui sono definite
 * solo quelle effettivamente presenti nei template: aggiungendo una classe
 * nuova al markup, va aggiunta anche qui.
 *
 * ORGANIZZAZIONE
 *   1. Token del design system
 *   2. Azzeramento e stili di base
 *   3. Utility di layout
 *   4. Utility di spaziatura
 *   5. Utility tipografiche
 *   6. Colori, bordi ed effetti
 *   7. Componenti (bottoni, campi, FAQ, sezioni)
 *   8. Varianti responsive
 * ========================================================================= */

/* =========================================================================
 * 1. TOKEN
 *
 * Colori in oklch: spazio percettivamente uniforme, le trasparenze restano
 * coerenti. Valori portati 1:1 dal progetto originale.
 * ========================================================================= */

:root {
	--radius: 0.25rem;
	--radius-md: 0.25rem;

	/* -------------------------------------------------------------------
	 * Palette ricavata dalle foto della casa e dal logo.
	 * Le tonalita' stanno quasi tutte fra 75 e 95 gradi: neutri caldi,
	 * saturazione bassissima. L'unico colore che si fa notare e' l'ottone,
	 * preso dai rubinetti e dall'intonaco della terrazza.
	 * ----------------------------------------------------------------- */

	--background: oklch(0.973 0.005 95);        /* crema, il fondo del logo   */
	--foreground: oklch(0.219 0.007 78);        /* inchiostro caldo           */
	--card: oklch(0.997 0.003 85);              /* bianco delle pareti        */
	--card-foreground: oklch(0.219 0.007 78);
	--primary: oklch(0.258 0.009 75);           /* sezioni scure              */
	--primary-foreground: oklch(0.973 0.005 95);
	--secondary: oklch(0.929 0.010 82);         /* sabbia, sezioni alternate  */
	--secondary-foreground: oklch(0.258 0.009 75);
	--muted: oklch(0.950 0.009 85);
	--muted-foreground: oklch(0.518 0.015 71);  /* grigio caldo               */
	--accent: oklch(0.686 0.081 81);            /* ottone                     */
	--accent-foreground: oklch(0.219 0.007 78);
	--sage: oklch(0.635 0.023 107);             /* salvia, divano e letto     */
	--destructive: oklch(0.485 0.132 30);       /* terracotta, non rosso acceso */
	--destructive-foreground: oklch(0.973 0.005 95);
	--border: oklch(0.899 0.013 82);
	--input: oklch(0.869 0.016 83);
	--ring: oklch(0.686 0.081 81);

	--font-sans: "Jost", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
	--font-display: "Cormorant Garamond", ui-serif, Georgia, "Times New Roman", serif;
	--font-script: "Allura", ui-serif, cursive;

	/* Ombre appena accennate: su fondo crema quelle nette sporcano. */
	--shadow: 0 1px 2px 0 oklch(0.219 0.007 78 / 0.05);
	--shadow-lg: 0 8px 24px -8px oklch(0.219 0.007 78 / 0.12);
	--shadow-xl: 0 18px 40px -12px oklch(0.219 0.007 78 / 0.14);
	--shadow-2xl: 0 24px 60px -16px oklch(0.219 0.007 78 / 0.18);
}

/* =========================================================================
 * 2. AZZERAMENTO E BASE
 * ========================================================================= */

*,
*::before,
*::after {
	box-sizing: border-box;
	border: 0 solid var(--border);
	margin: 0;
	padding: 0;
}

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	/* L'header e' fisso: senza questo, un salto a un'ancora finisce sotto. */
	scroll-padding-top: 6rem;
}

body {
	background-color: var(--background);
	color: var(--foreground);
	font-family: var(--font-sans);
	font-size: 1.0625rem;
	font-weight: 300;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

img,
svg,
iframe,
video {
	display: block;
	max-width: 100%;
}

img,
video {
	height: auto;
}

button,
input,
textarea,
select {
	font: inherit;
	color: inherit;
	background: none;
}

button {
	cursor: pointer;
}

a {
	color: inherit;
	text-decoration: none;
}

h1, h2, h3, h4, h5, h6 {
	font-size: inherit;
	font-weight: inherit;
}

ul, ol {
	list-style: none;
}

blockquote, q {
	quotes: none;
}

[hidden] {
	display: none !important;
}

/* La barra di amministrazione non deve coprire l'header fisso. */
body.admin-bar .site-header {
	top: 32px;
}

@media screen and (max-width: 782px) {
	body.admin-bar .site-header {
		top: 46px;
	}
}

/* =========================================================================
 * 3. LAYOUT
 * ========================================================================= */

.block { display: block; }
.inline-flex { display: inline-flex; }
.flex { display: flex; }
.grid { display: grid; }
.hidden { display: none; }

.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }

.inset-0 { inset: 0; }
.inset-x-0 { left: 0; right: 0; }
.top-0 { top: 0; }
.top-5 { top: 1.25rem; }
.right-4 { right: 1rem; }
.right-5 { right: 1.25rem; }
.bottom-4 { bottom: 1rem; }
.bottom-5 { bottom: 1.25rem; }
.left-4 { left: 1rem; }
.left-\[-9999px\] { left: -9999px; }

.z-10 { z-index: 10; }
.z-30 { z-index: 30; }
.z-40 { z-index: 40; }
.z-50 { z-index: 50; }

.overflow-hidden { overflow: hidden; }
.overflow-x-hidden { overflow-x: hidden; }

.flex-wrap { flex-wrap: wrap; }
.shrink-0 { flex-shrink: 0; }

.items-start { align-items: flex-start; }
.items-center { align-items: center; }
.items-end { align-items: flex-end; }
.items-baseline { align-items: baseline; }

.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }

.content-start { align-content: start; }
.place-items-center { place-items: center; }

.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-\[auto_1fr\] { grid-template-columns: auto 1fr; }
.grid-cols-\[auto_1fr_auto\] { grid-template-columns: auto 1fr auto; }
.grid-cols-\[minmax\(0\,1fr\)_auto\] { grid-template-columns: minmax(0, 1fr) auto; }

.col-span-2 { grid-column: span 2 / span 2; }
.row-span-2 { grid-row: span 2 / span 2; }

/* Dimensioni */
.size-4 { width: 1rem; height: 1rem; }
.size-5 { width: 1.25rem; height: 1.25rem; }
.size-12 { width: 3rem; height: 3rem; }
.size-full { width: 100%; height: 100%; }

.h-12 { height: 3rem; }
.h-20 { height: 5rem; }
.h-fit { height: fit-content; }
.h-\[420px\] { height: 420px; }

.w-full { width: 100%; }
.min-w-0 { min-width: 0; }

.min-h-screen { min-height: 100vh; }
.min-h-\[70vh\] { min-height: 70vh; }
.min-h-\[70svh\] { min-height: 70svh; }

.max-w-full { max-width: 100%; }
.max-w-lg { max-width: 32rem; }
.max-w-md { max-width: 28rem; }
.max-w-xl { max-width: 36rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-5xl { max-width: 64rem; }
.max-h-\[90vh\] { max-height: 90vh; }

.aspect-\[4\/5\] { aspect-ratio: 4 / 5; }

.object-cover { object-fit: cover; }
.object-contain { object-fit: contain; }

.list-none { list-style: none; }
.resize-none { resize: none; }

/* =========================================================================
 * 4. SPAZIATURA
 * ========================================================================= */

.m-0 { margin: 0; }
.mx-auto { margin-left: auto; margin-right: auto; }
.my-6 { margin-top: 1.5rem; margin-bottom: 1.5rem; }

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-5 { margin-top: 1.25rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-7 { margin-top: 1.75rem; }
.mt-8 { margin-top: 2rem; }
.mt-9 { margin-top: 2.25rem; }
.mt-10 { margin-top: 2.5rem; }
.mt-12 { margin-top: 3rem; }
.mt-14 { margin-top: 3.5rem; }
.mt-16 { margin-top: 4rem; }
.-mt-5 { margin-top: -1.25rem; }

.mb-5 { margin-bottom: 1.25rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }

.p-0 { padding: 0; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem; }
.p-6 { padding: 1.5rem; }
.p-7 { padding: 1.75rem; }
.p-8 { padding: 2rem; }

.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-5 { padding-left: 1.25rem; padding-right: 1.25rem; }

.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-5 { padding-top: 1.25rem; padding-bottom: 1.25rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-10 { padding-top: 2.5rem; padding-bottom: 2.5rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.py-24 { padding-top: 6rem; padding-bottom: 6rem; }
.py-32 { padding-top: 8rem; padding-bottom: 8rem; }

.pb-6 { padding-bottom: 1.5rem; }
.pb-20 { padding-bottom: 5rem; }
.pt-6 { padding-top: 1.5rem; }
.pt-7 { padding-top: 1.75rem; }
.pt-28 { padding-top: 7rem; }
.pt-36 { padding-top: 9rem; }

.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-5 { gap: 1.25rem; }
.gap-6 { gap: 1.5rem; }
.gap-7 { gap: 1.75rem; }
.gap-10 { gap: 2.5rem; }
.gap-12 { gap: 3rem; }
.gap-14 { gap: 3.5rem; }
.gap-px { gap: 1px; }

.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-4 > * + * { margin-top: 1rem; }

/* =========================================================================
 * 5. TIPOGRAFIA
 * ========================================================================= */

.font-display {
	font-family: var(--font-display);
	font-weight: 400;
	letter-spacing: 0.005em;
}

.font-script {
	font-family: var(--font-script);
	font-weight: 400;
}
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem; line-height: 1.5rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-5xl { font-size: 3rem; line-height: 1; }
.text-6xl { font-size: 3.75rem; line-height: 1; }
.text-7xl { font-size: 4.5rem; line-height: 1; }
.text-8xl { font-size: 6rem; line-height: 1; }

.leading-5 { line-height: 1.25rem; }
.leading-6 { line-height: 1.5rem; }
.leading-7 { line-height: 1.75rem; }
.leading-8 { line-height: 2rem; }
.leading-snug { line-height: 1.375; }
.leading-tight { line-height: 1.25; }
.leading-\[\.95\] { line-height: 0.95; }

.tracking-widest { letter-spacing: 0.1em; }
.tracking-\[\.18em\] { letter-spacing: 0.18em; }
.tracking-\[\.2em\] { letter-spacing: 0.2em; }

.uppercase { text-transform: uppercase; }
.text-left { text-align: left; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.underline { text-decoration-line: underline; }
.underline-offset-2 { text-underline-offset: 2px; }
.break-all { word-break: break-all; }

/* =========================================================================
 * 6. COLORI, BORDI, EFFETTI
 *
 * Le trasparenze usano color-mix, come fa Tailwind v4: mantiene il colore
 * nello spazio oklab invece di sbiadirlo verso il grigio.
 * ========================================================================= */

.bg-background { background-color: var(--background); }
.bg-foreground { background-color: var(--foreground); }
.bg-card { background-color: var(--card); }
.bg-primary { background-color: var(--primary); }
.bg-secondary { background-color: var(--secondary); }
.bg-muted { background-color: var(--muted); }
.bg-accent { background-color: var(--accent); }
.bg-border { background-color: var(--border); }

.bg-primary\/40 { background-color: color-mix(in oklab, var(--primary) 40%, transparent); }
.bg-primary\/45 { background-color: color-mix(in oklab, var(--primary) 45%, transparent); }
.bg-primary\/55 { background-color: color-mix(in oklab, var(--primary) 55%, transparent); }
.bg-foreground\/95 { background-color: color-mix(in oklab, var(--foreground) 95%, transparent); }
.bg-primary-foreground\/10 { background-color: color-mix(in oklab, var(--primary-foreground) 10%, transparent); }

.text-foreground { color: var(--foreground); }
.text-background { color: var(--background); }
.text-primary { color: var(--primary); }
.text-primary-foreground { color: var(--primary-foreground); }
.text-secondary-foreground { color: var(--secondary-foreground); }
.text-muted-foreground { color: var(--muted-foreground); }
.text-accent-foreground { color: var(--accent-foreground); }
.text-destructive { color: var(--destructive); }

.text-background\/40 { color: color-mix(in oklab, var(--background) 40%, transparent); }
.text-background\/50 { color: color-mix(in oklab, var(--background) 50%, transparent); }
.text-background\/60 { color: color-mix(in oklab, var(--background) 60%, transparent); }
.text-primary-foreground\/60 { color: color-mix(in oklab, var(--primary-foreground) 60%, transparent); }
.text-primary-foreground\/70 { color: color-mix(in oklab, var(--primary-foreground) 70%, transparent); }
.text-primary-foreground\/85 { color: color-mix(in oklab, var(--primary-foreground) 85%, transparent); }

.accent-\[var\(--color-primary\)\] { accent-color: var(--primary); }

.border { border-width: 1px; }
.border-0 { border-width: 0; }
.border-t { border-top-width: 1px; }
.border-b { border-bottom-width: 1px; }
.border-l { border-left-width: 1px; }
.border-r { border-right-width: 1px; }
.border-y { border-top-width: 1px; border-bottom-width: 1px; }
.border-dashed { border-style: dashed; }

.border-border { border-color: var(--border); }
.border-input { border-color: var(--input); }
.border-primary-foreground\/20 { border-color: color-mix(in oklab, var(--primary-foreground) 20%, transparent); }
.border-primary-foreground\/40 { border-color: color-mix(in oklab, var(--primary-foreground) 40%, transparent); }
.border-background\/15 { border-color: color-mix(in oklab, var(--background) 15%, transparent); }

.divide-y > * + * { border-top-width: 1px; }
.divide-primary-foreground\/20 > * + * { border-color: color-mix(in oklab, var(--primary-foreground) 20%, transparent); }

.rounded-md { border-radius: var(--radius-md); }
.rounded-full { border-radius: 9999px; }

.shadow { box-shadow: var(--shadow); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.shadow-xl { box-shadow: var(--shadow-xl); }
.shadow-2xl { box-shadow: var(--shadow-2xl); }

.backdrop-blur-md { backdrop-filter: blur(12px); }
.grayscale-\[20\%\] { filter: grayscale(20%); }

.transition-colors {
	transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
	transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
	transition-duration: 150ms;
}

.transition-opacity {
	transition-property: opacity;
	transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
	transition-duration: 150ms;
}

.transition-transform {
	transition-property: transform;
	transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
	transition-duration: 150ms;
}

.duration-700 { transition-duration: 700ms; }

/* Stati */
.hover\:opacity-70:hover { opacity: 0.7; }
.hover\:scale-105:hover { transform: scale(1.05); }
.hover\:text-foreground:hover { color: var(--foreground); }
.hover\:text-background\/70:hover { color: color-mix(in oklab, var(--background) 70%, transparent); }

.group:hover .group-hover\:scale-\[1\.03\] { transform: scale(1.03); }

/* Accessibilita': contenuto riservato ai lettori di schermo. */
.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border-width: 0;
}

.focus\:not-sr-only:focus {
	position: static;
	width: auto;
	height: auto;
	padding: 0;
	margin: 0;
	overflow: visible;
	clip: auto;
	white-space: normal;
}

.focus\:absolute:focus { position: absolute; }
.focus\:left-4:focus { left: 1rem; }
.focus\:top-4:focus { top: 1rem; }
.focus\:z-50:focus { z-index: 50; }
.focus\:rounded-md:focus { border-radius: var(--radius-md); }
.focus\:bg-card:focus { background-color: var(--card); }
.focus\:px-4:focus { padding-left: 1rem; padding-right: 1rem; }
.focus\:py-2:focus { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.focus\:shadow-lg:focus { box-shadow: var(--shadow-lg); }

/* =========================================================================
 * 7. COMPONENTI
 * ========================================================================= */

/* --- Contenitore di sezione ------------------------------------------- */
.section-shell {
	width: min(100% - 2rem, 76rem);
	margin-inline: auto;
}

/* --- Sopratitolo ------------------------------------------------------- */
.eyebrow {
	font-size: 0.72rem;
	line-height: 1rem;
	text-transform: uppercase;
	letter-spacing: 0.18em;
	font-weight: 700;
	color: var(--primary);
}

/* --- Campi del modulo -------------------------------------------------- */
.field-label {
	display: block;
	margin-bottom: 0.45rem;
	font-size: 0.7rem;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	font-weight: 700;
	color: var(--muted-foreground);
}

.field-control {
	width: 100%;
	min-height: 3rem;
	border: 1px solid var(--border);
	border-radius: var(--radius-md);
	background: var(--background);
	padding: 0.7rem 0.85rem;
	font-size: 0.9rem;
	outline: none;
}

.field-control:focus-visible {
	border-color: var(--ring);
	box-shadow: 0 0 0 1px var(--ring);
}

/* --- Bottoni ----------------------------------------------------------- */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	white-space: nowrap;
	border-radius: var(--radius-md);
	font-size: 0.875rem;
	font-weight: 500;
	height: 2.25rem;
	padding-inline: 1rem;
	cursor: pointer;
	transition: background-color 150ms cubic-bezier(0.4, 0, 0.2, 1),
	            color 150ms cubic-bezier(0.4, 0, 0.2, 1),
	            border-color 150ms cubic-bezier(0.4, 0, 0.2, 1);
}

.btn > svg {
	pointer-events: none;
	width: 1rem;
	height: 1rem;
	flex-shrink: 0;
}

.btn:focus-visible {
	outline: none;
	box-shadow: 0 0 0 1px var(--ring);
}

.btn:disabled {
	pointer-events: none;
	cursor: not-allowed;
	opacity: 0.5;
}

.btn-primary {
	background-color: var(--primary);
	color: var(--primary-foreground);
	box-shadow: var(--shadow);
}

.btn-primary:hover {
	background-color: color-mix(in oklab, var(--primary) 90%, transparent);
}

.btn-premium {
	background-color: var(--primary);
	color: var(--primary-foreground);
	box-shadow: var(--shadow-lg);
}

.btn-premium:hover {
	background-color: color-mix(in oklab, var(--primary) 90%, transparent);
}

.btn-glass {
	border: 1px solid color-mix(in oklab, var(--primary-foreground) 40%, transparent);
	background-color: color-mix(in oklab, var(--primary-foreground) 10%, transparent);
	color: var(--primary-foreground);
	backdrop-filter: blur(12px);
}

.btn-glass:hover {
	background-color: color-mix(in oklab, var(--primary-foreground) 20%, transparent);
}

.btn-outline {
	border: 1px solid var(--input);
	background-color: var(--background);
	box-shadow: var(--shadow);
}

.btn-outline:hover {
	background-color: var(--accent);
	color: var(--accent-foreground);
}

.btn-ghost:hover {
	background-color: var(--accent);
	color: var(--accent-foreground);
}

.btn-lg {
	height: 3rem;
	padding-inline: 2rem;
}

.btn-icon {
	height: 2.25rem;
	width: 2.25rem;
	padding-inline: 0;
}

/* --- FAQ ---------------------------------------------------------------
 * <details>/<summary> nativi al posto dell'accordion JavaScript: stesso
 * comportamento, testo trovabile dalla ricerca del browser anche a pannello
 * chiuso.
 * ---------------------------------------------------------------------- */

.faq-item {
	border-bottom: 1px solid var(--border);
}

.faq-item > summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding-block: 1.5rem;
	font-size: 1rem;
	font-weight: 500;
	cursor: pointer;
	list-style: none;
}

.faq-item > summary::-webkit-details-marker {
	display: none;
}

.faq-item > summary > svg {
	width: 1rem;
	height: 1rem;
	flex-shrink: 0;
	transition: transform 200ms ease;
}

.faq-item[open] > summary > svg {
	transform: rotate(180deg);
}

.faq-answer {
	padding-bottom: 1.5rem;
	line-height: 1.75rem;
	color: var(--muted-foreground);
}

.faq-answer > p + p {
	margin-top: 0.75rem;
}

/* --- Pagine informative ------------------------------------------------ */
.legal-copy {
	display: grid;
	gap: 1.5rem;
	color: var(--muted-foreground);
	line-height: 1.8;
}

.legal-copy h2 {
	color: var(--foreground);
	font-family: var(--font-display);
	font-size: 2rem;
	margin-top: 1rem;
}

.legal-copy h3 {
	color: var(--foreground);
	font-family: var(--font-display);
	font-size: 1.5rem;
}

.legal-copy ul,
.legal-copy ol {
	padding-left: 1.25rem;
	display: grid;
	gap: 0.5rem;
}

.legal-copy ul { list-style: disc; }
.legal-copy ol { list-style: decimal; }

.legal-copy a {
	color: var(--primary);
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* --- Navigazione (menu WordPress) -------------------------------------- */
.horizon-nav ul {
	display: flex;
	gap: 1.75rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.horizon-nav a {
	font-size: 0.75rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	transition: opacity 150ms;
}

.horizon-nav a:hover {
	opacity: 0.7;
}

#menu-mobile ul {
	display: grid;
	list-style: none;
	margin: 0;
	padding: 0;
}

#menu-mobile a {
	display: block;
	padding-block: 0.75rem;
	font-size: 0.875rem;
	text-transform: uppercase;
	letter-spacing: 0.1em;
}

/* --- Animazione di entrata ---------------------------------------------
 * Usa animation-timeline: view() dove disponibile. Dove non lo e', il
 * contenuto resta semplicemente visibile: mai testo invisibile.
 * ---------------------------------------------------------------------- */


@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}

/* =========================================================================
 * 8. VARIANTI RESPONSIVE
 *
 * Soglie Tailwind: sm 640px, md 768px, lg 1024px.
 * ========================================================================= */

@media (min-width: 640px) {
	.sm\:block { display: block; }
	.sm\:inline-flex { display: inline-flex; }

	.sm\:items-center { align-items: center; }
	.sm\:items-end { align-items: flex-end; }

	.sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.sm\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.sm\:grid-cols-\[1fr_auto\] { grid-template-columns: 1fr auto; }
	.sm\:grid-cols-\[1fr_1fr_1fr_auto\] { grid-template-columns: 1fr 1fr 1fr auto; }

	.sm\:col-span-2 { grid-column: span 2 / span 2; }

	.sm\:p-8 { padding: 2rem; }
	.sm\:p-12 { padding: 3rem; }
	.sm\:px-8 { padding-left: 2rem; padding-right: 2rem; }
	.sm\:py-16 { padding-top: 4rem; padding-bottom: 4rem; }
	.sm\:py-32 { padding-top: 8rem; padding-bottom: 8rem; }
	.sm\:pb-28 { padding-bottom: 7rem; }
	.sm\:pt-32 { padding-top: 8rem; }

	.sm\:min-h-\[76svh\] { min-height: 76svh; }
	.sm\:pb-24 { padding-bottom: 6rem; }
	.sm\:text-lg { font-size: 1.125rem; line-height: 1.75rem; }
	.sm\:text-6xl { font-size: 3.75rem; line-height: 1; }
	.sm\:text-7xl { font-size: 4.5rem; line-height: 1; }
}

@media (min-width: 768px) {
	.md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.md\:grid-rows-2 { grid-template-rows: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
	.lg\:block { display: block; }
	.lg\:flex { display: flex; }
	.lg\:hidden { display: none; }

	.lg\:items-center { align-items: center; }
	.lg\:sticky { position: sticky; }
	.lg\:top-24 { top: 6rem; }

	.lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.lg\:grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
	.lg\:grid-cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
	.lg\:grid-cols-\[1fr_auto_1fr\] { grid-template-columns: 1fr auto 1fr; }
	.lg\:grid-cols-\[1fr_23rem\] { grid-template-columns: 1fr 23rem; }
	.lg\:grid-cols-\[1\.1fr_\.9fr\] { grid-template-columns: 1.1fr 0.9fr; }
	.lg\:grid-cols-\[1\.2fr_\.8fr_\.8fr\] { grid-template-columns: 1.2fr 0.8fr 0.8fr; }
	.lg\:grid-cols-\[\.8fr_1\.2fr\] { grid-template-columns: 0.8fr 1.2fr; }

	.lg\:text-8xl { font-size: 6rem; line-height: 1; }
}

/* =========================================================================
 * 9. IDENTITA' — logo, header, dettagli aggiunti col restyling
 * ========================================================================= */

/* --- Marchio nell'header -----------------------------------------------
 * Ricostruito in caratteri vivi: Cormorant in maiuscoletto spaziato per il
 * nome, Allura per il pay-off, come nel logo originale. L'ombra tenue lo
 * stacca dal cielo chiaro della foto senza aggiungere un velo scuro.
 * ---------------------------------------------------------------------- */

.site-logo {
	display: block;
	line-height: 1;
	white-space: nowrap;
}

.site-logo-name {
	display: block;
	font-family: var(--font-display);
	font-size: 1.15rem;
	font-weight: 500;
	letter-spacing: 0.22em;
	text-transform: uppercase;
}

.site-logo-tagline {
	display: block;
	margin-top: 0.15rem;
	margin-left: 0.1em;
	font-family: var(--font-script);
	font-size: 1.35rem;
	line-height: 0.85;
	letter-spacing: 0.04em;
	opacity: 0.92;
}


@media (max-width: 420px) {
	.site-logo-name { font-size: 0.95rem; letter-spacing: 0.16em; }
	.site-logo-tagline { font-size: 1.1rem; }
}

/* --- Header -------------------------------------------------------------
 * Banda scura piena, sempre. La versione trasparente sopra la foto era piu'
 * scenografica, ma le voci di menu finivano su un cielo chiaro e si leggevano
 * male: su un sito che deve far prenotare, la navigazione viene prima.
 *
 * Il colore e' l'inchiostro caldo del tema, non nero puro: con una palette
 * tutta su tonalita' calde un nero freddo stonerebbe.
 * ---------------------------------------------------------------------- */

.site-header {
	background-color: var(--primary);
	color: var(--primary-foreground);
	border-bottom: 1px solid transparent;
	transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Scorrendo, la banda si stacca appena dal contenuto sottostante. */
.site-header[data-scrolled] {
	border-bottom-color: oklch(1 0 0 / 0.12);
	box-shadow: 0 6px 24px -12px oklch(0.219 0.007 78 / 0.5);
}

/* Il menu mobile prosegue la stessa banda. */
#menu-mobile {
	background-color: var(--primary);
	color: var(--primary-foreground);
}

/* --- Pay-off in corsivo -------------------------------------------------- */

.tagline {
	font-family: var(--font-script);
	font-weight: 400;
	line-height: 1;
}

/* --- Proporzioni usate dalla galleria ----------------------------------- */

.aspect-\[8\/5\] { aspect-ratio: 8 / 5; }

/* --- Misure aggiunte ----------------------------------------------------- */

.w-56 { width: 14rem; }
.max-w-\[52vw\] { max-width: 52vw; }
.tracking-\[\.28em\] { letter-spacing: 0.28em; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.opacity-0 { opacity: 0; }

/* --- Filetto decorativo sotto i sopratitoli -----------------------------
 * Un tratto d'ottone corto: e' l'unico ornamento del tema, e riprende il
 * colore dei rubinetti e dell'intonaco della terrazza.
 * ---------------------------------------------------------------------- */

.eyebrow {
	/* flex e non inline-flex: su un <p> l'inline-flex annulla il
	   comportamento a blocco e il sopratitolo si affianca a quello che lo
	   precede, invece di andare a capo. */
	display: flex;
	align-items: center;
	gap: 0.7rem;
}

.eyebrow::before {
	content: "";
	width: 1.75rem;
	height: 1px;
	background-color: var(--accent);
	flex-shrink: 0;
}

/* Sui fondi scuri il filetto resta ottone ma il testo diventa chiaro. */
.bg-primary .eyebrow,
.text-primary-foreground .eyebrow {
	color: var(--primary-foreground);
}

/* --- Velatura dell'hero -------------------------------------------------
 * Due sfumature sovrapposte invece di un velo uniforme: una scende dall'alto
 * e tiene leggibile il logo bianco, l'altra sale dal basso sotto il titolo e
 * i pulsanti. In mezzo la foto resta pulita, e il cielo del tramonto non
 * viene spento.
 * ---------------------------------------------------------------------- */

.hero-scrim {
	background-image:
		/* Una sola sfumatura, dal basso verso l'alto. L'header e' una banda
		   piena e non ha piu' bisogno di velature; questa serve al testo.
		   Accorciando l'hero il blocco di testo e' salito, quindi la
		   sfumatura sale fino quasi in cima: resta tenue lassu', ma basta a
		   staccare il sopratitolo dal cielo chiaro. */
		linear-gradient(
			to top,
			oklch(0.219 0.007 78 / 0.76) 0%,
			oklch(0.219 0.007 78 / 0.56) 26%,
			oklch(0.219 0.007 78 / 0.34) 50%,
			oklch(0.219 0.007 78 / 0.18) 72%,
			oklch(0.219 0.007 78 / 0.08) 88%,
			oklch(0.219 0.007 78 / 0) 100%
		);
}

/* =========================================================================
 * 10. SEZIONE COMFORT
 *
 * Due registri diversi: i numeri della casa in cifre grandi, le dotazioni
 * in tono minore. Non piu' dieci caselle identiche in una griglia squadrata.
 * ========================================================================= */

/* --- I numeri ----------------------------------------------------------- */

.spec-row {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	list-style: none;
	gap: 0;
	border-top: 1px solid var(--border);
}

.spec {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	padding: 2.25rem 0 2.25rem 1.5rem;
	border-bottom: 1px solid var(--border);
	border-left: 1px solid var(--border);
	position: relative;
}

/* Il filetto d'ottone sopra ogni numero: lo stesso segno dei sopratitoli. */
.spec::before {
	content: "";
	position: absolute;
	top: -1px;
	left: -1px;
	width: 2rem;
	height: 1px;
	background-color: var(--accent);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
	transition-delay: var(--delay, 0ms);
}

.spec-row.is-visible .spec::before,
html:not(.js-anim) .spec::before {
	transform: scaleX(1);
}

.spec-value {
	font-family: var(--font-display);
	font-size: clamp(3rem, 7vw, 4.5rem);
	font-weight: 400;
	line-height: 0.95;
	font-variant-numeric: lining-nums;
}

.spec-label {
	font-size: 0.72rem;
	text-transform: uppercase;
	letter-spacing: 0.18em;
	font-weight: 500;
	color: var(--muted-foreground);
}

@media (min-width: 768px) {
	.spec-row { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* --- Le dotazioni -------------------------------------------------------
 * Nessun riquadro: solo icona e parola, con una linea sottile che si
 * accende passandoci sopra. Volutamente piu' silenziose dei numeri.
 * ---------------------------------------------------------------------- */

.amenity-row {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1px;
	list-style: none;
	background-color: var(--border);
	border: 1px solid var(--border);
	border-radius: var(--radius-md);
	overflow: hidden;
}

.amenity {
	display: flex;
	align-items: center;
	gap: 0.85rem;
	padding: 1.35rem 1.25rem;
	background-color: var(--background);
	font-size: 0.9rem;
	transition: background-color 0.3s ease;
}

.amenity-icon {
	display: grid;
	place-items: center;
	width: 2.25rem;
	height: 2.25rem;
	flex-shrink: 0;
	border-radius: 999px;
	color: var(--muted-foreground);
	background-color: var(--muted);
	transition: background-color 0.35s ease, color 0.35s ease, transform 0.35s ease;
}

.amenity:hover {
	background-color: var(--card);
}

.amenity:hover .amenity-icon {
	color: var(--accent-foreground);
	background-color: var(--accent);
	transform: translateY(-2px);
}

@media (min-width: 640px) {
	.amenity-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
	.amenity-row { grid-template-columns: repeat(6, minmax(0, 1fr)); }

	.amenity {
		flex-direction: column;
		align-items: flex-start;
		gap: 1.5rem;
		padding: 1.75rem 1.4rem;
	}
}

/* =========================================================================
 * 11. MOVIMENTO
 *
 * Tre livelli, in ordine di evidenza decrescente:
 *   a) ingresso allo scorrimento (il piu' visibile)
 *   b) micro-reazioni al passaggio del mouse
 *   c) un respiro lentissimo sulla foto dell'hero
 *
 * REGOLA DI SICUREZZA: gli stati iniziali stanno tutti sotto .js-anim, che
 * viene aggiunta a <html> da uno script inline nel <head> solo quando il
 * sistema operativo non chiede movimento ridotto. Senza quella classe il
 * sito e' semplicemente fermo e completamente leggibile. Mai testo invisibile.
 * ========================================================================= */

/* --- a) Ingresso allo scorrimento -------------------------------------- */

html.js-anim .anim {
	opacity: 0;
	transform: translateY(18px);
}

html.js-anim .anim.is-visible {
	opacity: 1;
	transform: none;
	/* Curva in uscita decisa: parte veloce e si posa. Un ease lineare
	   sembrerebbe meccanico. */
	transition:
		opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
		transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
	transition-delay: var(--delay, 0ms);
}

/* Le immagini entrano con una scala appena percettibile invece che salendo:
   su un riquadro fotografico grande la traslazione si nota troppo. */
html.js-anim .anim-img {
	opacity: 0;
	transform: scale(1.03);
}

html.js-anim .anim-img.is-visible {
	opacity: 1;
	transform: none;
	transition:
		opacity 1s cubic-bezier(0.22, 1, 0.36, 1),
		transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
	transition-delay: var(--delay, 0ms);
}

/* --- b) Micro-reazioni --------------------------------------------------- */

.btn {
	transition:
		background-color 0.25s ease,
		color 0.25s ease,
		border-color 0.25s ease,
		transform 0.25s cubic-bezier(0.22, 1, 0.36, 1),
		box-shadow 0.25s ease;
}

.btn:hover {
	transform: translateY(-2px);
}

.btn:active {
	transform: translateY(0);
	transition-duration: 0.08s;
}

/* La freccia dentro i pulsanti accompagna il verso del movimento. */
.btn svg {
	transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.btn:hover svg { transform: translateX(2px); }
.btn-glass:hover svg { transform: translateX(2px); }

/* Voci di menu: un filetto che cresce da sinistra. */
.horizon-nav a,
.site-header nav a {
	position: relative;
}

.horizon-nav a::after,
.site-header nav a::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: -0.35rem;
	width: 100%;
	height: 1px;
	background-color: var(--accent);
	transform: scaleX(0);
	transform-origin: right;
	transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.horizon-nav a:hover::after,
.site-header nav a:hover::after {
	transform: scaleX(1);
	transform-origin: left;
}

/* Le celle delle distanze si sollevano appena. */
.distance-tile {
	transition: background-color 0.3s ease, transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.distance-tile:hover {
	background-color: var(--card);
	transform: translateY(-3px);
}

/* Il pulsante WhatsApp respira una volta sola all'apparire, poi sta fermo. */
html.js-anim .wa-float {
	animation: wa-pop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 1.2s both;
}

@keyframes wa-pop {
	from { opacity: 0; transform: scale(0.6); }
	to   { opacity: 1; transform: scale(1); }
}

/* --- c) Respiro sulla foto dell'hero -------------------------------------
 * Venti secondi per un 3% di scala: non si "vede" muovere, si percepisce
 * che l'immagine e' viva. Piu' veloce di cosi' diventa un effetto da
 * presentazione aziendale.
 * ---------------------------------------------------------------------- */

html.js-anim #home > picture img,
html.js-anim #home > img {
	animation: hero-breathe 20s ease-out both;
}

@keyframes hero-breathe {
	from { transform: scale(1); }
	to   { transform: scale(1.03); }
}

/* Le voci della sezione esperienza entrano sfalsate. */
html.js-anim .exp-item {
	opacity: 0;
	transform: translateX(-12px);
}

html.js-anim .exp-item.is-visible {
	opacity: 1;
	transform: none;
	transition:
		opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
		transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
	transition-delay: var(--delay, 0ms);
}

/* --- Reti di sicurezza del movimento ------------------------------------
 * Due casi in cui gli stati iniziali devono decadere sempre, a prescindere
 * da .js-anim e dall'osservatore:
 *
 *   1. STAMPA — un elemento mai entrato nel campo visivo resterebbe
 *      invisibile sul foglio. Su pagine come le informative legali
 *      significherebbe stampare un documento con dei buchi.
 *
 *   2. MOVIMENTO RIDOTTO — lo script inline controlla la preferenza al
 *      caricamento, ma se viene cambiata a pagina aperta solo il CSS se ne
 *      accorge.
 * ---------------------------------------------------------------------- */

@media print {
	html.js-anim .anim,
	html.js-anim .anim-img,
	html.js-anim .exp-item {
		opacity: 1 !important;
		transform: none !important;
	}

	html.js-anim .spec::before {
		transform: scaleX(1) !important;
	}
}

@media (prefers-reduced-motion: reduce) {
	html.js-anim .anim,
	html.js-anim .anim-img,
	html.js-anim .exp-item {
		opacity: 1 !important;
		transform: none !important;
		transition: none !important;
	}

	html.js-anim .spec::before {
		transform: scaleX(1) !important;
		transition: none !important;
	}

	html.js-anim #home > picture img,
	html.js-anim #home > img,
	html.js-anim .wa-float {
		animation: none !important;
	}

	.btn:hover,
	.distance-tile:hover,
	.amenity:hover .amenity-icon {
		transform: none !important;
	}
}

/* =========================================================================
 * 12. MOTORE DI PRENOTAZIONE ESTERNO
 *
 * Il widget del gestionale arriva col suo aspetto. Non possiamo riscriverlo,
 * ma possiamo dargli una cornice che appartenga al sito e passargli i nostri
 * caratteri: la maggior parte di questi motori eredita font-family, e gia'
 * questo avvicina molto il risultato.
 * ========================================================================= */

.booking-embed {
	margin-top: 3rem;
	padding: 1.25rem;
	background-color: var(--card);
	border: 1px solid var(--border);
	border-radius: var(--radius-md);
	box-shadow: var(--shadow-lg);
	/* Evita il salto di layout mentre il widget si carica da fuori. */
	min-height: 26rem;
	font-family: var(--font-sans);
}

@media (min-width: 640px) {
	.booking-embed { padding: 2rem; }
}

/* Gli iframe di questi motori arrivano spesso con larghezza fissa. */
.booking-embed iframe {
	width: 100% !important;
	max-width: 100%;
	border: 0;
	display: block;
}

.booking-embed-fallback {
	display: grid;
	justify-items: center;
	gap: 0.5rem;
	padding: 4rem 1rem;
	text-align: center;
	color: var(--muted-foreground);
	font-size: 0.9rem;
}

/* =========================================================================
 * 13. CALENDARIO DELLE DISPONIBILITA'
 *
 * Verde = notte libera, rosso = notte prenotata. Sono gli unici due colori
 * saturi del sito oltre all'ottone, ed e' voluto: qui il colore e'
 * un'informazione, non un decoro. Restano pero' smorzati, alla stessa
 * luminosita' della sabbia, per non strappare con la palette.
 *
 * Il colore non e' mai l'unico segnale: le notti prenotate sono anche
 * barrate, per chi non distingue il rosso dal verde.
 * ========================================================================= */

:root {
	--available: oklch(0.915 0.062 150);
	--available-foreground: oklch(0.335 0.075 150);
	--booked: oklch(0.885 0.062 27);
	--booked-foreground: oklch(0.430 0.130 27);
}

.cal-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
}

.cal-head .field-label { margin-bottom: 0; }

.cal-nav {
	display: grid;
	place-items: center;
	width: 2.5rem;
	height: 2.5rem;
	border: 1px solid var(--border);
	border-radius: var(--radius-md);
	background: var(--background);
	font-size: 1.4rem;
	line-height: 1;
	cursor: pointer;
}

.cal-nav:disabled { opacity: 0.35; cursor: default; }

.cal-nav:focus-visible,
.cal-day:focus-visible {
	outline: 2px solid var(--ring);
	outline-offset: 2px;
}

.cal-months {
	display: grid;
	gap: 2rem;
	margin-top: 1rem;
}

/* Su telefono un mese alla volta: due affiancati renderebbero i giorni
   troppo piccoli da toccare. */
.cal-month + .cal-month { display: none; }

@media (min-width: 640px) {
	.cal-months { grid-template-columns: 1fr 1fr; }
	.cal-month + .cal-month { display: block; }
}

.cal-title {
	font-family: var(--font-display);
	font-size: 1.5rem;
	text-align: center;
	text-transform: capitalize;
}

.cal-grid {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 0.25rem;
	margin-top: 0.75rem;
}

.cal-wd {
	padding-bottom: 0.25rem;
	font-size: 0.65rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	text-align: center;
	color: var(--muted-foreground);
}

.cal-day {
	display: grid;
	place-items: center;
	aspect-ratio: 1;
	min-height: 2.25rem;
	border: 0;
	border-radius: var(--radius-md);
	font-size: 0.85rem;
	font-variant-numeric: tabular-nums;
	background: transparent;
	color: var(--muted-foreground);
}

.cal-day.is-free,
.cal-key.is-free {
	background: var(--available);
	color: var(--available-foreground);
}

.cal-day.is-free { cursor: pointer; font-weight: 500; }

.cal-day.is-free:hover { box-shadow: inset 0 0 0 2px var(--available-foreground); }

.cal-day.is-booked,
.cal-key.is-booked {
	background: var(--booked);
	color: var(--booked-foreground);
}

.cal-day.is-booked { text-decoration: line-through; }

/* Una notte prenotata puo' comunque essere il giorno di partenza di chi
   arriva prima: in quel caso torna cliccabile. */
.cal-day.is-booked:not(:disabled) { cursor: pointer; }
.cal-day.is-booked:not(:disabled):hover { box-shadow: inset 0 0 0 2px var(--booked-foreground); }

.cal-day.is-past { opacity: 0.45; }

.cal-day.is-range {
	background: var(--secondary);
	color: var(--secondary-foreground);
	text-decoration: none;
}

.cal-day.is-selected,
.cal-key.is-selected {
	background: var(--primary);
	color: var(--primary-foreground);
	text-decoration: none;
	font-weight: 700;
}

.cal-legend {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1.5rem;
	margin-top: 1.25rem;
	font-size: 0.8rem;
	color: var(--muted-foreground);
}

.cal-legend li {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.cal-key {
	width: 0.9rem;
	height: 0.9rem;
	border-radius: 2px;
}

/* --- Versione compatta, a tendina, per la barra in cima -----------------
   Stessi colori e stessa logica del calendario del modulo, ma un mese solo
   e celle piu' piccole: sopra la foto dell'hero deve restare discreto. */

.cal-anchor { position: relative; }

.cal-trigger {
	display: flex;
	align-items: center;
	text-align: left;
	cursor: pointer;
}

.cal-pop {
	position: absolute;
	top: calc(100% + 0.5rem);
	left: 1rem;
	z-index: 20;
	width: min(18rem, calc(100% - 2rem));
	padding: 0.9rem;
	background: var(--card);
	border: 1px solid var(--border);
	border-radius: var(--radius-md);
	box-shadow: var(--shadow-xl);
}

.cal-pop .cal-months { margin-top: 0.5rem; grid-template-columns: 1fr; }
.cal-pop .cal-title { font-size: 1.15rem; }
.cal-pop .cal-grid { gap: 0.15rem; margin-top: 0.4rem; }
.cal-pop .cal-wd { font-size: 0.58rem; }
.cal-pop .cal-day { min-height: 0; font-size: 0.75rem; }
.cal-pop .cal-nav { width: 2rem; height: 2rem; font-size: 1.1rem; }
.cal-pop .cal-legend { margin-top: 0.7rem; gap: 0.25rem 1rem; font-size: 0.7rem; }
.cal-pop .cal-key { width: 0.7rem; height: 0.7rem; }

/* --- Prezzo della notte dentro il giorno --------------------------------
   Come nei portali di prenotazione: sotto il numero, piu' piccolo. Solo nel
   calendario grande: in quello a tendina le celle sono troppo strette. */

.cal-day { align-content: center; gap: 0.1rem; }

.cal-num { line-height: 1; }

.cal-price {
	font-size: 0.62rem;
	line-height: 1;
	font-weight: 400;
	opacity: 0.85;
	white-space: nowrap;
}

@media (min-width: 640px) {
	.cal-price { font-size: 0.68rem; }
}

/* --- Avviso sotto il calendario (es. soggiorno minimo in estate) -------- */
.cal-error {
	margin-top: 1rem;
	padding: 0.7rem 0.9rem;
	border-radius: var(--radius-md);
	background: var(--booked);
	color: var(--booked-foreground);
	font-size: 0.85rem;
	font-weight: 500;
}

/* =========================================================================
 * 14. NEI DINTORNI
 *
 * Tre elenchi affiancati. Sono liste di nomi, non paragrafi: un filetto
 * sopra ogni gruppo e righe sottili fra le voci bastano a dare ordine, senza
 * icone che per una farmacia o un benzinaio sarebbero solo rumore.
 * ========================================================================= */

.nearby-grid {
	display: grid;
	gap: 3rem;
}

@media (min-width: 768px) {
	.nearby-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem; }
}

.nearby-group {
	border-top: 1px solid var(--accent);
	padding-top: 1.25rem;
}

.nearby-list { margin-top: 1.25rem; }

.nearby-list li {
	padding: 0.6rem 0;
	border-bottom: 1px solid var(--border);
	font-size: 0.9rem;
	line-height: 1.5;
}

.nearby-list li:last-child { border-bottom: 0; }

/* Stesso fondo della sezione "posizione" che la precede: e' la sua
   continuazione, quindi niente stacco in alto. */
.nearby { padding-bottom: 6rem; }

@media (min-width: 640px) {
	.nearby { padding-bottom: 8rem; }
	.sm\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* =========================================================================
 * 15. SELETTORE DELLA LINGUA
 *
 * Tre sigle nell'header. La lingua in uso e' piena, le altre attenuate:
 * devono farsi trovare da chi le cerca senza competere con "Prenota".
 * ========================================================================= */

.lang-switch {
	align-items: center;
	gap: 0.15rem;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.08em;
}

.lang-switch a {
	padding: 0.5rem 0.4rem;
	opacity: 0.55;
	transition: opacity 0.2s;
}

.lang-switch a:hover,
.lang-switch a[aria-current] { opacity: 1; }

.lang-switch a[aria-current] {
	text-decoration: underline;
	text-underline-offset: 4px;
}

.lang-switch-mobile {
	display: flex;
	gap: 0.5rem;
	margin-top: 0.75rem;
	padding-top: 0.75rem;
	border-top: 1px solid color-mix(in oklab, var(--primary-foreground) 20%, transparent);
}

.lang-switch.hidden { display: none; }

@media (min-width: 640px) {
	.sm\:flex,
	.lang-switch.sm\:flex { display: flex; }
}

/* Foto del paese accanto al titolo dei dintorni. Su telefono va sotto il
   titolo e non occupa tutto lo schermo: e' un invito, non la protagonista. */
.nearby-intro {
	display: grid;
	gap: 2rem;
	align-items: end;
}

.nearby-photo {
	width: 100%;
	max-width: 22rem;
	aspect-ratio: 4 / 5;
}

@media (min-width: 768px) {
	.nearby-intro { grid-template-columns: 1fr auto; }
	.nearby-photo { width: 18rem; }
}

@media (min-width: 1024px) {
	.nearby-photo { width: 22rem; }
}
