/* =============================================================
   ITALOSVIZZERO — Design system
   La locanda sul confine: la casa sulla strada dello Spluga, tra il Lago di Como e la Svizzera.
   Granito della valle per le fasce scure, grigio pietra per quelle chiare, bianco per il resto;
   arancione profondo (testo bianco) sui bottoni, arancione vivo solo nei piccoli segni.
   ============================================================= */

/* ---------- Font (self-hosted, GDPR-safe) ---------- */
@font-face {
	font-family: 'Jost';
	src: url('../fonts/jost-latin-wght-normal.woff2') format('woff2');
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: 'Jost';
	src: url('../fonts/jost-latin-ext-wght-normal.woff2') format('woff2');
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
	unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: 'Plus Jakarta Sans';
	src: url('../fonts/plus-jakarta-sans-latin-wght-normal.woff2') format('woff2');
	font-weight: 200 800;
	font-style: normal;
	font-display: swap;
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: 'Plus Jakarta Sans';
	src: url('../fonts/plus-jakarta-sans-latin-ext-wght-normal.woff2') format('woff2');
	font-weight: 200 800;
	font-style: normal;
	font-display: swap;
	unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: 'Archivo';
	src: url('../fonts/archivo-latin-wdth-normal.woff2') format('woff2');
	font-weight: 100 900;
	font-stretch: 62% 125%;
	font-style: normal;
	font-display: swap;
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: 'Archivo';
	src: url('../fonts/archivo-latin-ext-wdth-normal.woff2') format('woff2');
	font-weight: 100 900;
	font-stretch: 62% 125%;
	font-style: normal;
	font-display: swap;
	unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
	font-family: 'Nunito';
	src: url('../fonts/nunito-latin-wght-normal.woff2') format('woff2');
	font-weight: 200 1000;
	font-style: normal;
	font-display: swap;
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: 'Nunito';
	src: url('../fonts/nunito-latin-ext-wght-normal.woff2') format('woff2');
	font-weight: 200 1000;
	font-style: normal;
	font-display: swap;
	unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
	font-family: 'Outfit';
	src: url('../fonts/outfit-latin-wght-normal.woff2') format('woff2');
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: 'Outfit';
	src: url('../fonts/outfit-latin-ext-wght-normal.woff2') format('woff2');
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
	unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Tokens ----------
   I colori sono sovrascritti dal pannello ItaloSvizzero tramite variabili stampate in <head>. Qui i default. */
:root {
	--isv-bg: #FFFFFF;
	--isv-surface: #FFFFFF;
	--isv-surface-2: #EEF6FD;
	--isv-ink: #29241E;
	--isv-ink-rgb: 41, 36, 30;
	--isv-ink-soft: #665E55;
	--isv-line: rgba(var(--isv-ink-rgb), .12);
	--isv-accent: #CF4A0A;        /* bottoni: arancione profondo, testo bianco */
	--isv-accent-rgb: 207, 74, 10;
	--isv-on-accent: #FFFFFF;
	--isv-accent-soft: #F08A1C;   /* piccoli segni */
	--isv-band-dark: #1D2428;     /* granito */
	--isv-band-light: #EEF6FD;    /* azzurro cielo, mai grigio */
	--isv-sign: #6E4527;          /* cartelli turistici marroni, solo per le distanze */

	--isv-radius: 14px;
	--isv-radius-sm: 10px;
	--isv-radius-pill: 999px;

	--isv-font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	--isv-wide: 112%;             /* larghezza titoli (asse wdth) */

	/* Larghezze: corpo pagina e sezioni larghe */
	--isv-max: 1320px;
	--isv-gutter: clamp(20px, 4vw, 56px);

	/* Scala tipografica fluida */
	--isv-t-xs: clamp(.74rem, .72rem + .1vw, .8rem);
	--isv-t-sm: clamp(.86rem, .83rem + .15vw, .95rem);
	--isv-t-base: clamp(1rem, .96rem + .2vw, 1.08rem);
	--isv-t-lg: clamp(1.18rem, 1.06rem + .55vw, 1.45rem);
	--isv-t-xl: clamp(1.7rem, 1.3rem + 1.7vw, 2.7rem);
	--isv-t-2xl: clamp(2.2rem, 1.6rem + 3vw, 4rem);
	--isv-t-hero: clamp(2.5rem, 1.6rem + 4.8vw, 5.4rem);

	/* Ritmo verticale */
	--isv-s-1: clamp(.5rem, .45rem + .25vw, .75rem);
	--isv-s-2: clamp(1rem, .9rem + .5vw, 1.5rem);
	--isv-s-3: clamp(1.75rem, 1.4rem + 1.2vw, 2.75rem);
	--isv-s-4: clamp(3rem, 2.2rem + 2.8vw, 5.5rem);
	--isv-s-5: clamp(4.5rem, 3.2rem + 4.5vw, 8rem);

	--isv-shadow-sm: 0 1px 2px rgba(var(--isv-ink-rgb), .06), 0 4px 14px rgba(var(--isv-ink-rgb), .06);
	--isv-shadow-lg: 0 10px 24px rgba(var(--isv-ink-rgb), .1), 0 30px 60px rgba(var(--isv-ink-rgb), .12);

	--isv-ease: cubic-bezier(.22, .61, .36, 1);
	--isv-header-h: 80px;
}

/* ---------- Reset essenziale ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--isv-bg);
	color: var(--isv-ink);
	font-family: var(--isv-font);
	font-size: var(--isv-base, var(--isv-t-base));
	line-height: var(--isv-lh, 1.65);
	font-feature-settings: 'ss01' on;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--isv-link, var(--isv-accent)); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: .2em; }
/* Nei testi i link sono sottolineati: si riconoscono anche senza distinguere i colori. */
.isv-page-content a:not(.isv-btn):not(.wp-element-button) { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--isv-accent); outline-offset: 3px; border-radius: 2px; }

/* ---------- Tipografia ---------- */
h1, h2, h3, h4 {
	font-family: var(--isv-font-heading, var(--isv-font));
	font-stretch: var(--isv-wide);
	font-weight: var(--isv-h-weight, 640);
	line-height: 1.06;
	letter-spacing: var(--isv-h-track, -.015em);
	color: var(--isv-heading, var(--isv-ink));
	margin: 0 0 var(--isv-s-2);
	text-wrap: balance;
}
h1 { font-size: var(--isv-t-2xl); }
h2 { font-size: var(--isv-t-xl); }
h3 { font-size: var(--isv-t-lg); }
p { margin: 0 0 var(--isv-s-2); }

/* Titoletto (colonne del footer e simili): normale, in grassetto, mai in maiuscolo spaziato. */
.isv-eyebrow {
	font-size: .95rem;
	font-weight: 700;
	letter-spacing: 0;
	color: var(--isv-ink);
	margin: 0 0 var(--isv-s-1);
}

/* ---------- Layout ---------- */
.isv-container { width: min(var(--isv-max), calc(100% - 2 * var(--isv-gutter))); margin-inline: auto; }
.isv-narrow { max-width: 760px; }
.isv-section { padding-block: var(--isv-s-4); }
.isv-main { min-height: 50vh; }

.isv-skip {
	position: absolute; left: -9999px; top: 0;
	background: var(--isv-ink); color: #fff; padding: 12px 20px; z-index: 200;
	border-radius: 0 0 var(--isv-radius-sm) 0;
}
.isv-skip:focus { left: 0; }

/* ---------- Bottoni ----------
   Arancione profondo, testo bianco, angoli morbidi. Al passaggio si scurisce: niente salti né sottolineature. */
.isv-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .55em;
	background: var(--isv-accent); color: var(--isv-on-accent);
	font-family: var(--isv-font); font-weight: 700; font-size: 1rem; line-height: 1.2; letter-spacing: .005em;
	padding: calc(.95em * var(--isv-btn-scale, 1)) calc(1.6em * var(--isv-btn-scale, 1));
	border: 1px solid transparent;
	border-radius: var(--isv-btn-radius, 10px);
	transition: background-color .18s, box-shadow .18s, color .18s;
	box-shadow: 0 1px 0 rgba(0, 0, 0, .08), 0 6px 16px rgba(var(--isv-accent-rgb), .22);
	text-decoration: none;
}
.isv-btn:hover, .isv-btn:focus-visible {
	text-decoration: none; color: var(--isv-on-accent);
	background: color-mix(in srgb, var(--isv-accent) 86%, #000);
	box-shadow: 0 1px 0 rgba(0, 0, 0, .08), 0 8px 22px rgba(var(--isv-accent-rgb), .3);
}
.isv-btn svg { width: 1.15em; height: 1.15em; flex: none; }
.isv-btn-light { background: #fff; color: var(--isv-ink); box-shadow: 0 2px 12px rgba(0,0,0,.18); }
.isv-btn-light:hover { background: #fff; color: var(--isv-ink); box-shadow: 0 8px 22px rgba(0,0,0,.24); }
.isv-btn-ghost { background: transparent; color: var(--isv-ink); border-color: rgba(var(--isv-ink-rgb), .35); box-shadow: none; }
.isv-btn-ghost:hover { background: rgba(var(--isv-ink-rgb), .05); border-color: var(--isv-ink); box-shadow: none; color: var(--isv-ink); }

/* ---------- Header ----------
   Logo, menu visibile, Prenota e il pulsante Info (pannello laterale con dove siamo, contatti, pagine utili).
   I selettori partono da .isv-header: più specifici delle regole globali dei kit di Elementor. */
.isv-header {
	position: sticky; top: 0; z-index: 100;
	background: var(--isv-header-bg, #fff);
	border-bottom: 1px solid var(--isv-line);
	transition: background .3s, border-color .3s, box-shadow .3s;
}
.isv-header.is-scrolled { box-shadow: 0 6px 24px rgba(var(--isv-ink-rgb), .07); }
.isv-header-inner { display: flex; align-items: center; gap: clamp(16px, 2vw, 32px); min-height: var(--isv-header-h); }
.isv-brand { flex: none; }
.isv-brand img.custom-logo, .isv-logo { max-height: var(--isv-logo-h, 44px); width: auto; }
/* Telefono: il logo si stringe per lasciare posto al bottone del menu (mai pagina più larga dello schermo). */
@media (max-width: 560px) {
	.isv-brand { flex: 0 1 auto; min-width: 0; }
	.isv-brand img.custom-logo, .isv-logo { max-height: min(var(--isv-logo-h, 44px), 40px); max-width: 100%; height: auto; }
	.isv-header-inner { gap: 12px; }
}
.isv-brand-name { color: var(--isv-ink); font-weight: 700; font-stretch: 118%; font-size: var(--isv-t-lg); letter-spacing: -.01em; }
.isv-brand-name:hover { text-decoration: none; }
.isv-brand-link { display: flex; align-items: center; }

.isv-nav { flex: 1; display: flex; justify-content: center; }
.isv-menu { display: flex; align-items: center; gap: clamp(0px, .4vw, 6px); list-style: none; margin: 0; padding: 0; }
.isv-menu > li { position: relative; }
.isv-header .isv-menu a {
	color: var(--isv-menu-color, var(--isv-ink));
	font-family: var(--isv-menu-font, var(--isv-font));
	font-size: var(--isv-menu-size, .98rem);
	font-weight: var(--isv-menu-weight, 600);
	letter-spacing: var(--isv-menu-track, 0);
	text-transform: var(--isv-menu-case, none);
	display: inline-block; position: relative;
	padding: .6em .9em; border-radius: 8px;
	transition: background-color .18s, color .18s;
}
/* Al passaggio e sulla pagina aperta: un fondo tenue. Nessuna sottolineatura. */
.isv-header .isv-menu a:hover,
.isv-header .isv-menu a:focus-visible,
.isv-header .isv-menu .current-menu-item > a,
.isv-header .isv-menu .current-menu-ancestor > a,
.isv-header .isv-menu .current-page-ancestor > a {
	text-decoration: none; color: var(--isv-menu-hover, var(--isv-ink)); background-color: var(--isv-band-light);
}
.isv-header .isv-menu .menu-item-has-children > a { padding-right: 1.5em; }
.isv-header .isv-menu .menu-item-has-children > a::before {
	content: ''; position: absolute; right: .7em; top: 50%; width: .36em; height: .36em;
	border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor;
	transform: translateY(-70%) rotate(45deg); opacity: .6;
}
/* Sottomenu a tendina: al passaggio del mouse e con la tastiera. */
.isv-menu .sub-menu {
	position: absolute; top: calc(100% + 8px); left: -.5em; z-index: 120; min-width: 240px;
	list-style: none; margin: 0; padding: 8px;
	background: #fff; border: 1px solid var(--isv-line); border-radius: 12px; box-shadow: var(--isv-shadow-lg);
	opacity: 0; visibility: hidden; transform: translateY(4px);
	transition: opacity .16s, transform .16s, visibility 0s .16s;
}
.isv-menu .sub-menu::before { content: ''; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
.isv-menu li:hover > .sub-menu, .isv-menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; transition: opacity .16s, transform .16s; }
.isv-header .isv-menu .sub-menu a { display: block; padding: .6em .9em; border-radius: 8px; font-weight: 500; text-transform: none; letter-spacing: 0; color: var(--isv-ink); }
.isv-header .isv-menu .sub-menu a:hover, .isv-header .isv-menu .sub-menu .current-menu-item > a { background: var(--isv-band-light); }

.isv-header-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; flex: none; }
.isv-header .isv-header-book { padding: .78em 1.3em; font-size: .95rem; }
.isv-infobtn {
	display: inline-flex; align-items: center; gap: .5rem; height: 46px; padding: 0 1rem;
	border: 1px solid rgba(var(--isv-ink-rgb), .2); border-radius: 10px; background: #fff;
	color: var(--isv-ink); font: inherit; font-weight: 650; font-size: .95rem; cursor: pointer;
	transition: border-color .15s, background-color .15s;
}
.isv-infobtn:hover { border-color: var(--isv-ink); background: var(--isv-band-light); }
.isv-infobtn:focus-visible { outline: 2px solid var(--isv-ink); outline-offset: 2px; }
.isv-infobtn__label--narrow { display: none; }

/* Header trasparente sopra la foto del tema (non usato dalle pagine Elementor) */
.isv-header.is-transparent:not(.is-scrolled) { background: transparent; border-bottom-color: transparent; box-shadow: none; }
.isv-header.is-transparent:not(.is-scrolled) .isv-menu > li > a,
.isv-header.is-transparent:not(.is-scrolled) .isv-brand-name { color: var(--isv-menu-over, #fff); }
.isv-header.is-transparent:not(.is-scrolled) .isv-menu > li > a:hover { background-color: rgba(255, 255, 255, .16); }
.isv-logo-light { display: none; }
.isv-header.is-transparent:not(.is-scrolled) .isv-logo-light { display: block; }
.isv-header.is-transparent:not(.is-scrolled) .isv-brand-link .custom-logo { display: none; }

@media (max-width: 1360px) {
	.isv-nav { display: none; }
	.isv-infobtn__label--wide { display: none; }
	.isv-infobtn__label--narrow { display: inline; }
}
@media (max-width: 900px) {
	:root { --isv-header-h: 68px; }
	.isv-header .isv-header-book { display: none; }
}

/* ---------- Barra sotto il menu (dicembre 2026) ----------
   Un messaggio e i bottoni scelti nel pannello. Sta nella pagina subito sotto l'intestazione: scorrendo passa sotto
   il menu, che resta. Il suo posto resta sempre lì (niente salti della pagina): quando è coperta del tutto si spegne,
   e torna scendendo dall'alto solo con la pagina di nuovo tutta in cima (main.js). Due aspetti:
   fascia colorata (band, proposta C) e riga al centro (line, proposta D).
   Il contenuto sta sempre su una riga e al centro, anche su telefono (il cliente: "mai su due righe"). Se la riga
   non basta, via il disegno del calendario, poi i bottoni mostrano solo l'icona, dall'ultimo al primo, finché il
   messaggio si legge intero (italosvizzero_topbar); un messaggio lunghissimo finisce con "…". */
:root { --isv-topbar-h: 42px; }
.isv-topbar { position: relative; z-index: 2; overflow: hidden; view-transition-name: isv-topbar; }
.isv-topbar__bar { transition: transform .5s var(--isv-ease), visibility 0s; }
.isv-topbar.is-hidden .isv-topbar__bar { transform: translateY(-100%); visibility: hidden; transition: none; }
.isv-topbar__in { display: flex; flex-wrap: nowrap; align-items: center; gap: 24px; min-height: var(--isv-topbar-h); box-sizing: border-box; }
/* Al centro quando c'è posto; se il contenuto è più largo della riga parte da sinistra (così niente resta fuori) */
.isv-topbar__in > :first-child { margin-left: auto; }
.isv-topbar__in > :last-child { margin-right: auto; }
.isv-topbar__msg { display: flex; align-items: center; gap: 8px; flex: 0 1 auto; min-width: 0; margin: 0; font: 700 .9rem/1.25 var(--isv-font); }
.isv-topbar__msg span { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.isv-topbar__msg .isv-i, .isv-topbar__links .isv-i { flex: none; }
/* I bottoni restano interi: a stringersi è il messaggio. Solo se non bastasse la riga intera la loro fila scorre di lato. */
.isv-topbar__links { display: flex; flex-wrap: nowrap; align-items: center; gap: 16px; flex: none; max-width: 100%; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.isv-topbar__links::-webkit-scrollbar { display: none; }
.isv-topbar__links a { display: inline-flex; flex: none; align-items: center; gap: 6px; white-space: nowrap; text-decoration: none; }
/* Riga stretta: via il disegno del calendario. Bottone con la sola icona: il nome resta, nascosto, per i lettori di schermo */
.isv-topbar.is-tight .isv-topbar__msg .isv-i { display: none; }
.isv-topbar .isv-topbar__links a.is-compact { position: relative; justify-content: center; min-width: 44px; padding-inline: 0; }
.isv-topbar .isv-topbar__links a.is-compact > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.isv-topbar__sep { display: none; flex: none; }
/* C: fascia del colore scelto, testo bianco o scuro (il più leggibile), bottoni contornati */
.isv-topbar--band .isv-topbar__bar { background: var(--isv-topbar-bg); color: var(--isv-topbar-fg); }
.isv-topbar--band .isv-topbar__links { gap: 8px; padding-block: 3px; }
.isv-topbar--band .isv-topbar__links a {
	padding: 6px 14px; border: 1.5px solid rgba(var(--isv-topbar-fg-rgb), .75); border-radius: var(--isv-radius-pill, 999px);
	color: var(--isv-topbar-fg); font: 700 .84rem/1 var(--isv-font); transition: background-color .15s;
}
.isv-topbar--band .isv-topbar__links a:hover { background: rgba(var(--isv-topbar-fg-rgb), .14); }
.isv-topbar--band .isv-topbar__links a:focus-visible { outline: 2px solid var(--isv-topbar-fg); outline-offset: -4px; }
/* D: una riga al centro, sul fondo dell'header, collegamenti del colore scelto */
.isv-topbar--line .isv-topbar__bar { background: var(--isv-header-bg, #fff); border-bottom: 1px solid var(--isv-line); }
.isv-topbar--line .isv-topbar__in { gap: 18px; min-height: 38px; }
.isv-topbar--line .isv-topbar__msg { font-weight: 500; color: var(--isv-ink); }
.isv-topbar--line .isv-topbar__msg .isv-i { color: var(--isv-ink-soft); }
.isv-topbar--line .isv-topbar__sep { display: block; width: 1px; height: 16px; background: rgba(var(--isv-ink-rgb), .25); }
.isv-topbar--line .isv-topbar__links a { font: 600 .9rem/1.25 var(--isv-font); color: var(--isv-topbar-link); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.isv-topbar--line .isv-topbar__links a .isv-i { color: var(--isv-topbar-icon); }
.isv-topbar--line .isv-topbar__links a:hover { text-decoration-thickness: 2px; }
/* La foto dell'hero del tema (front-page.php), che passa sotto l'intestazione, passa anche sotto la barra.
   Le testate delle pagine di Elementor (anche loro .isv-hero) stanno sotto la barra e non si toccano. */
.isv-has-topbar .isv-hero:not(.elementor-element) { margin-top: calc(-1 * (var(--isv-header-h) + var(--isv-topbar-h))); }
/* Telefono: sempre una riga, al centro; scritte un poco più piccole, tasti alti 44 px */
@media (max-width: 560px) {
	:root { --isv-topbar-h: 44px; }
	.isv-topbar__in { width: calc(100% - 24px); gap: 10px; }
	.isv-topbar__msg { gap: 6px; font-size: clamp(11.5px, 3.4vw, 13px); }
	.isv-topbar__links { gap: 6px; }
	.isv-topbar__links a { min-height: 44px; font-size: clamp(11.5px, 3.4vw, 13px); }
	/* Il bottone si vede alto 30 px ma si tocca su 44: la fila dei bottoni lascia lo spazio per l'area in più
	   (7 px sopra e sotto, 2 ai lati), così l'area non la fa mai sembrare più larga di quanto è */
	.isv-topbar--band .isv-topbar__links { padding: 7px 2px; }
	.isv-topbar--band .isv-topbar__links a { position: relative; min-height: 30px; padding: 4px 10px; }
	/* L'area si misura da dentro il bordo di 1,5 px: 7 + 1,5 sopra e sotto fanno 44 px giusti; ai lati 1,5 px in più */
	.isv-topbar--band .isv-topbar__links a::after { content: ''; position: absolute; inset: -8.5px -3px; }
	.isv-topbar--line .isv-topbar__in { gap: 10px; min-height: 44px; }
}
/* Telefoni stretti (fino a 359 px): via l'icona del messaggio, così testo e bottone stanno sulla stessa riga */
@media (max-width: 359px) {
	.isv-topbar__msg .isv-i { display: none; }
	.isv-topbar--band .isv-topbar__links a { padding: 4px 8px; gap: 4px; }
	.isv-topbar__in, .isv-topbar--line .isv-topbar__in { gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
	.isv-topbar__bar { transition: none; }
}

/* ---------- Pannello Info (da destra), chiaro ---------- */
.isv-oc { position: fixed; inset: 0; z-index: 300; }
.isv-oc[hidden] { display: none; }
.isv-oc__backdrop { position: absolute; inset: 0; background: rgba(41, 36, 30, .32); opacity: 0; transition: opacity .25s var(--isv-ease); }
.isv-oc__panel {
	position: absolute; top: 0; right: 0; bottom: 0; width: min(440px, 100%); overflow-y: auto; overscroll-behavior: contain;
	display: flex; flex-direction: column; gap: 22px; padding: 22px clamp(20px, 3vw, 32px) calc(28px + env(safe-area-inset-bottom));
	background: #fff; color: var(--isv-ink); box-shadow: -20px 0 50px rgba(41, 36, 30, .14);
	transform: translateX(100%); transition: transform .28s var(--isv-ease);
}
.isv-oc.is-open .isv-oc__backdrop { opacity: 1; }
.isv-oc.is-open .isv-oc__panel { transform: none; }
body.isv-oc-open { overflow: hidden; }
.isv-oc__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.isv-oc__title { margin: 0; font-family: var(--isv-font-heading, var(--isv-font)); font-weight: 700; font-size: 1.3rem; }
.isv-oc__logo { display: block; line-height: 0; }
.isv-oc__logo img { display: block; width: auto; height: 46px; max-width: 220px; object-fit: contain; }
.isv-oc__socials { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.isv-oc__close { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid rgba(var(--isv-ink-rgb), .2); border-radius: 10px; background: #fff; color: var(--isv-ink); }
.isv-oc__close:hover { border-color: var(--isv-ink); }
.isv-oc a { color: var(--isv-ink); }
.isv-oc a:hover { text-decoration: none; }
.isv-oc__menu { display: none; }
.isv-oc-menu, .isv-oc-menu .sub-menu, .isv-oc-links { list-style: none; margin: 0; padding: 0; }
.isv-oc-menu > li > a { display: flex; align-items: center; min-height: 48px; padding: .4rem 0; font-family: var(--isv-font-heading, var(--isv-font)); font-size: 1.4rem; font-weight: 600; }
.isv-oc-menu .sub-menu { padding: 0 0 .4rem 1rem; }
/* Voci interne alte almeno 44 px: si toccano col dito senza prendere quella accanto. */
.isv-oc-menu .sub-menu a { display: flex; align-items: center; min-height: 44px; padding: .2rem 0; font-size: 1rem; color: var(--isv-ink-soft); }
.isv-oc-menu a:hover, .isv-oc-links a:hover { color: var(--isv-accent); }
.isv-oc__season { display: flex; align-items: center; gap: .7rem; margin: 0; padding: .9rem 1rem; border-radius: 12px; background: var(--isv-band-light); font-weight: 650; }
.isv-oc__season .isv-i { color: var(--isv-accent-soft); flex: none; }
.isv-oc__block { display: flex; flex-direction: column; gap: 4px; padding-top: 18px; border-top: 1px solid var(--isv-line); }
.isv-oc__label { margin: 0 0 6px; font-size: .85rem; font-weight: 700; color: var(--isv-ink-soft); }
.isv-oc__row { display: flex; align-items: flex-start; gap: .8rem; margin: 0; padding: .55rem 0; line-height: 1.45; }
.isv-oc__row .isv-i { flex: none; margin-top: .1rem; color: var(--isv-accent); }
.isv-oc__row small { display: block; margin-top: .15rem; font-size: .85rem; color: var(--isv-ink-soft); text-decoration: underline; text-underline-offset: .2em; }
a.isv-oc__row:hover span { text-decoration: underline; text-underline-offset: .2em; }
.isv-oc__note { display: flex; gap: .8rem; margin: 8px 0 0; padding: .9rem 1rem; border-radius: 12px; background: var(--isv-band-light); font-size: .92rem; line-height: 1.5; }
.isv-oc__note .isv-i { flex: none; margin-top: .15rem; color: var(--isv-accent); }
.isv-oc-links { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 16px; }
.isv-oc-links a { display: block; padding: .45rem 0; font-weight: 600; }
.isv-oc__foot { display: flex; flex-direction: column; gap: 14px; margin-top: auto; padding-top: 18px; border-top: 1px solid var(--isv-line); }
.isv-oc__book { width: 100%; }
.isv-oc__social { display: inline-flex; align-items: center; gap: .6rem; min-height: 44px; font-weight: 600; }
.isv-oc__social .isv-i { color: var(--isv-accent); }
.isv-oc__cin { margin: 0; font-size: .78rem; color: var(--isv-ink-soft); }
@media (max-width: 1360px) { .isv-oc__menu { display: block; } }

/* ---------- Hero ---------- */
.isv-hero {
	position: relative;
	min-height: min(calc(var(--isv-hero-h, 92) * 1svh), 900px);
	margin-top: calc(-1 * var(--isv-header-h));
	background-color: var(--isv-ink);
	background-size: cover; background-position: center;
	display: flex; align-items: flex-end;
	color: #fff;
}
.isv-hero-scrim {
	position: absolute; inset: 0;
	background:
		linear-gradient(to top, rgba(8,10,12,.62) 0%, rgba(8,10,12,.18) 42%, rgba(8,10,12,.05) 70%, rgba(8,10,12,.25) 100%);
	opacity: var(--isv-scrim, 1);
}
.isv-hero-inner {
	position: relative; z-index: 2;
	padding-block: var(--isv-s-4) var(--isv-s-4);
	max-width: 1200px;
}
.isv-hero-eyebrow { color: rgba(255,255,255,.85); }
.isv-hero-title {
	color: #fff;
	font-size: var(--isv-t-hero);
	font-stretch: 118%;
	font-weight: 660;
	letter-spacing: -.02em;
	max-width: 14ch;
	margin-bottom: var(--isv-s-2);
	text-shadow: 0 2px 24px rgba(0,0,0,.25);
}
.isv-hero-subtitle {
	font-size: var(--isv-t-lg); font-weight: 420;
	max-width: 46ch; color: rgba(255,255,255,.92);
	margin-bottom: var(--isv-s-3);
}
.isv-hero-cta { display: flex; gap: var(--isv-s-2); flex-wrap: wrap; }

/* ---------- Fascia CTA ---------- */
.isv-band { background: var(--isv-accent); color: var(--isv-on-accent); }
.isv-band-inner {
	display: flex; align-items: center; justify-content: space-between;
	gap: var(--isv-s-3); flex-wrap: wrap;
	padding-block: var(--isv-s-4);
}
.isv-band-eyebrow { color: color-mix(in srgb, var(--isv-on-accent) 75%, transparent); }
.isv-band-title { color: var(--isv-on-accent); margin: 0; font-size: var(--isv-t-xl); }

/* ---------- Titoli di pagina ---------- */
.isv-page-header { padding: var(--isv-s-4) 0 var(--isv-s-3); }
.isv-page-title { margin-bottom: 0; }
/* Testata con foto (pagine di Vik e pagine con immagine in evidenza): velata, come le testate di Elementor. */
.isv-page-header--photo {
	position: relative; isolation: isolate; overflow: hidden; overflow: clip; display: flex; align-items: flex-end;
	/* Stessa altezza delle testate brevi di Elementor: sugli schermi larghi una testata bassa diventa una striscia
	   e la foto sembra zoomata (con 1920 px di larghezza si vedeva meno di metà della foto). */
	min-height: clamp(400px, max(60vh, 40vw), 82vh); padding: var(--isv-s-5) 0 clamp(36px, 5vw, 60px); margin-bottom: var(--isv-s-3); color: #fff;
}
/* Inquadratura un po' alta: di un edificio si vedono finestre e tetto, non la recinzione davanti. */
.isv-page-header--photo::after { content: ''; position: absolute; inset: 0; z-index: -2; background: var(--isv-ph) center 35% / cover no-repeat; animation: isv-kb 26s cubic-bezier(.22, .61, .36, 1) both; }
.isv-page-header--photo::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(20, 17, 14, .55), rgba(20, 17, 14, .08) 70%), linear-gradient(90deg, rgba(20, 17, 14, .3), rgba(20, 17, 14, 0) 60%); }
.isv-page-header--photo > .isv-container { flex: 0 0 auto; }
.isv-page-header--photo .isv-page-title { color: #fff; font-size: var(--isv-t-hero, var(--isv-t-2xl)); line-height: 1; letter-spacing: -.02em; text-shadow: 0 2px 26px rgba(0, 0, 0, .28); }
.isv-page-lead { margin: .9rem 0 0; max-width: 52ch; font-size: clamp(1.05rem, 1rem + .35vw, 1.25rem); color: rgba(255, 255, 255, .94); }
@keyframes isv-kb { from { scale: 1.03; } to { scale: 1; } }
@media (prefers-reduced-motion: reduce) { .isv-page-header--photo::after { animation: none; } }
.isv-page-content { padding-bottom: var(--isv-s-4); }
.isv-front-content { padding-block: var(--isv-s-4) var(--isv-s-2); }
.isv-single-media { border-radius: var(--isv-radius); overflow: hidden; margin-bottom: var(--isv-s-3); }
.isv-single-media img { width: 100%; }

/* Prose */
.isv-page-content > p, .isv-page-content > ul, .isv-page-content > ol { max-width: 72ch; }
.isv-page-content img { border-radius: var(--isv-radius-sm); }
.isv-page-content blockquote {
	margin: var(--isv-s-3) 0; padding-left: var(--isv-s-2);
	border-left: 3px solid var(--isv-accent);
	font-size: var(--isv-t-lg); font-weight: 460; font-style: normal;
}

/* ---------- Cards ---------- */
.isv-post-grid {
	display: grid; gap: var(--isv-s-3);
	grid-template-columns: repeat(auto-fill, minmax(var(--isv-card-min, 300px), 1fr));
}
.isv-card {
	background: var(--isv-surface);
	border: 1px solid var(--isv-line);
	border-radius: var(--isv-radius);
	overflow: hidden;
	box-shadow: var(--isv-shadow-sm);
	transition: transform .3s var(--isv-ease), box-shadow .3s var(--isv-ease);
	display: flex; flex-direction: column;
}
.isv-card:hover { transform: translateY(-4px); box-shadow: var(--isv-shadow-lg); }
.isv-card-media { display: block; aspect-ratio: 3 / 2; overflow: hidden; }
.isv-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--isv-ease); }
.isv-card:hover .isv-card-media img { transform: scale(1.045); }
.isv-card-body { padding: var(--isv-s-2) var(--isv-s-2) var(--isv-s-3); }
.isv-card-title { font-size: var(--isv-t-lg); margin-bottom: var(--isv-s-1); }
.isv-card-title a { color: var(--isv-ink); }
.isv-card-title a:hover { text-decoration: none; color: var(--isv-accent-text, var(--isv-accent)); }
.isv-card-excerpt { color: var(--isv-ink-soft); font-size: var(--isv-t-sm); }
.isv-card-excerpt p { margin: 0; }

/* ---------- Footer ----------
   Bianco, come la pagina di attesa: in fondo le tre creste delle montagne, che salgono al loro posto
   mentre il footer entra nello schermo (quelle lontane più lente). */
.isv-footer {
	--isv-mtn-h: clamp(150px, 19vw, 320px);
	--isv-mtn-fill: #CFE3F5;
	position: relative; isolation: isolate; overflow: hidden;
	/* Le montagne sono lo sfondo: creste in alto, poi il loro azzurro riempie tutto il footer fino in fondo. */
	background: linear-gradient(180deg, var(--isv-footer-bg, #fff) 0, var(--isv-footer-bg, #fff) 40px, var(--isv-mtn-fill) calc(var(--isv-mtn-h) - 1px), #C4DCF1 100%);
	color: var(--isv-footer-ink, var(--isv-ink));
	margin-top: var(--isv-s-5);
}
body.isv-has-hero .isv-footer, .isv-band + .isv-footer, body.elementor-template-full-width .isv-footer, body.elementor-template-canvas .isv-footer { margin-top: 0 !important; }
.isv-footer > .isv-container { position: relative; z-index: 1; padding-top: clamp(56px, 7vw, 96px); }
.isv-footer__mountains { position: absolute; left: 0; right: 0; top: 0; height: var(--isv-mtn-h); z-index: 0; pointer-events: none; }
/* Ogni fila di montagne è un livello: overflow visibile per le parti spinte giù, il footer taglia sotto. */
.isv-footer__mountains svg { position: absolute; inset: 0; display: block; width: 100%; height: 100%; overflow: visible; }
@supports (animation-timeline: view()) {
	@media (prefers-reduced-motion: no-preference) {
		.isv-footer { view-timeline: --isv-foot block; }
		.isv-footer__mountains .isv-mtn { animation: isv-mtn-rise linear both; animation-timeline: --isv-foot; animation-range: entry 0% entry 100%; will-change: translate; }
		.isv-footer__mountains .isv-mtn--1 { --isv-rise: 14%; }
		.isv-footer__mountains .isv-mtn--2 { --isv-rise: 26%; }
		.isv-footer__mountains .isv-mtn--3 { --isv-rise: 40%; }
	}
}
@keyframes isv-mtn-rise { from { translate: 0 var(--isv-rise, 0); } to { translate: 0 0; } }
.isv-footer__mountains .m1 { fill: #EDF5FC; }
.isv-footer__mountains .m2 { fill: #DEECF8; }
.isv-footer__mountains .m3 { fill: var(--isv-mtn-fill); }
.isv-footer a { color: var(--isv-footer-ink, var(--isv-ink)); }
.isv-footer a:hover { color: var(--isv-footer-ink, var(--isv-ink)); text-decoration: underline; text-underline-offset: .2em; }
.isv-footer-top {
	display: grid; gap: var(--isv-s-3);
	grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
	padding-block: var(--isv-s-4) var(--isv-s-3);
}
.isv-footer .isv-eyebrow { color: var(--isv-footer-ink, var(--isv-ink)); font-size: 1rem; margin-bottom: .9rem; }
.isv-footer-brand img.custom-logo { max-height: 48px; width: auto; }
.isv-footer-name { font-family: var(--isv-font-heading, var(--isv-font)); font-weight: 700; font-size: var(--isv-t-lg); color: var(--isv-footer-ink, var(--isv-ink)); margin: 0; }
.isv-footer-claim { color: var(--isv-footer-ink, var(--isv-ink)); opacity: .8; font-size: .95rem; line-height: 1.55; margin-top: 1rem; max-width: 32ch; }
.isv-footer-col a, .isv-footer-col p { display: block; margin: 0 0 .55em; font-size: .95rem; opacity: .9; }
.isv-footer-menu { list-style: none; margin: 0; padding: 0; }
.isv-footer-menu a { padding: .1em 0; }
.isv-footer-social { display: flex; flex-wrap: wrap; gap: .4em 1.2em; margin-top: var(--isv-s-1); }
.isv-footer-social a { display: inline-flex !important; align-items: center; gap: .45rem; }
.isv-footer-social .isv-i { width: 18px; height: 18px; }
.isv-footer-cta p { opacity: .85; }
.isv-footer-cta .isv-btn { margin-top: var(--isv-s-1); }
.isv-footer a.isv-btn, .isv-footer a.isv-btn:hover { color: var(--isv-on-accent); text-decoration: none; opacity: 1; }
.isv-footer-bottom { border-top: 1px solid color-mix(in srgb, var(--isv-footer-ink, #29241E) 14%, transparent); padding-block: var(--isv-s-2); }
.isv-legal { margin: 0; font-size: var(--isv-t-xs); color: var(--isv-footer-ink, var(--isv-ink)); opacity: .75; letter-spacing: .02em; line-height: 1.7; }
.isv-legal a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }
@media (max-width: 900px) { .isv-footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .isv-footer-top { grid-template-columns: 1fr; } }

/* ---------- Book bar (mobile, stile app) ---------- */
.isv-bookbar {
	position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 90;
	display: none; align-items: center; justify-content: space-between; gap: 12px;
	background: rgba(255, 255, 255, .96);
	/* niente sfocatura dietro: costa a ogni fotogramma dello scroll */
	color: var(--isv-ink);
	border: 1px solid rgba(var(--isv-accent-rgb), .16);
	border-radius: calc(var(--isv-radius) + 4px);
	padding: 10px 10px 10px 18px;
	box-shadow: 0 10px 34px rgba(var(--isv-accent-rgb), .18), 0 2px 8px rgba(41, 36, 30, .08);
	transform: translateY(120%);
	transition: transform .35s var(--isv-ease);
}
.isv-bookbar.is-visible { transform: none; }
.isv-bookbar-text { display: grid; line-height: 1.3; min-width: 0; }
.isv-bookbar-text strong { font-size: var(--isv-t-sm); font-stretch: 110%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.isv-bookbar-text span { font-size: var(--isv-t-xs); color: var(--isv-ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.isv-bookbar-btn { flex-shrink: 0; }
@media (max-width: 782px) {
	body.isv-has-bookbar .isv-bookbar { display: flex; }
	body.isv-has-bookbar .isv-main { padding-bottom: 74px; }
}

/* ---------- WhatsApp float ---------- */
.isv-wa {
	position: fixed; right: 16px; bottom: 16px; z-index: 89;
	width: 52px; height: 52px;
	display: flex; align-items: center; justify-content: center;
	background: #22c15e; color: #fff;
	border-radius: 50%;
	box-shadow: 0 8px 24px rgba(0,0,0,.22);
	transition: transform .2s var(--isv-ease);
}
.isv-wa:hover { transform: scale(1.07); color: #fff; }
@media (max-width: 782px) {
	body.isv-has-bookbar .isv-wa { bottom: 84px; }
}

/* ---------- Varie ---------- */
.isv-pagination { margin-top: var(--isv-s-3); }
.isv-pagination .nav-links { display: flex; gap: .5em; flex-wrap: wrap; }
.isv-pagination .page-numbers {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 42px; height: 42px; padding: 0 .8em;
	border: 1px solid var(--isv-line); border-radius: var(--isv-radius-pill);
	color: var(--isv-ink); font-size: var(--isv-t-sm);
}
.isv-pagination .page-numbers.current { background: var(--isv-accent); color: #fff; border-color: var(--isv-accent); }
.isv-pagination a.page-numbers:hover { border-color: var(--isv-ink); text-decoration: none; }

.isv-searchform { display: flex; gap: .6em; max-width: 480px; }
.isv-searchform input[type="search"] {
	flex: 1; padding: .8em 1.1em;
	border: 1px solid var(--isv-line); border-radius: var(--isv-radius-pill);
	background: var(--isv-surface); font: inherit; color: var(--isv-ink);
}
.isv-searchform input[type="search"]:focus {
	outline: none; border-color: var(--isv-accent);
	box-shadow: 0 0 0 3px rgba(var(--isv-accent-rgb, 14,85,102), .14);
}

.isv-404 { text-align: center; padding-block: var(--isv-s-5); }
.isv-404 .isv-page-title { margin-bottom: var(--isv-s-2); }
.isv-404-actions { display: flex; gap: var(--isv-s-2); justify-content: center; flex-wrap: wrap; margin-top: var(--isv-s-3); }

/* Reveal on scroll */
[data-isv-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--isv-ease), transform .7s var(--isv-ease); }
[data-isv-reveal].is-revealed { opacity: 1; transform: none; }

/* Allineamenti Gutenberg */
.alignwide { width: min(var(--isv-max), calc(100% - 40px)); margin-inline: auto; }
.alignfull { width: 100%; }

/* Motion ridotto */
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
	[data-isv-reveal] { opacity: 1; transform: none; }
}

/* ---------- Controlli granulari dal pannello ---------- */
body.isv-btn-upper .isv-btn { text-transform: uppercase; letter-spacing: .07em; font-size: calc(var(--isv-t-sm) * .92); }
body.isv-header-static .isv-header { position: static; }
.isv-hero-center .isv-hero-inner { text-align: center; }
.isv-hero-center .isv-hero-title, .isv-hero-center .isv-hero-subtitle { margin-inline: auto; }
.isv-hero-center .isv-hero-cta { justify-content: center; }

/* Logo invertito solo su footer scuro (classe calcolata dal tema) */
body.isv-footer-dark .isv-footer-brand img.custom-logo { filter: brightness(0) invert(1); }

/* ---------- Barra di navigazione in basso (telefono, stile app) ---------- */
.isv-tabbar { display: none; }
@media (max-width: 900px) {
	.isv-tabbar {
		display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 95;
		background: rgba(255, 255, 255, .96); /* niente sfocatura dietro: costa a ogni fotogramma dello scroll */
		border-top: 1px solid rgba(0, 0, 0, .08); padding-bottom: env(safe-area-inset-bottom);
	}
	.isv-tabbar ul { list-style: none; margin: 0; padding: 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
	.isv-tabbar__item {
		display: flex; flex-direction: column; align-items: center; gap: 3px;
		padding: 9px 4px 8px; color: var(--isv-ink-soft); font-size: .68rem; font-weight: 600; text-decoration: none; line-height: 1.1;
	}
	.isv-tabbar__item:hover { color: var(--isv-ink); text-decoration: none; }
	.isv-tabbar__item span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
	.isv-tabbar__item.is-active { color: var(--isv-ink); }
	.isv-tabbar__item.is-active svg { stroke-width: 2.2; }
	.isv-tabbar__item.is-book { color: var(--isv-ink); }
	.isv-tabbar__item.is-book svg { color: var(--isv-accent); stroke-width: 2.1; }
	body.isv-has-tabbar .isv-main { padding-bottom: 0; }
	body.isv-has-tabbar .isv-footer { padding-bottom: calc(70px + env(safe-area-inset-bottom)); }
	body.isv-has-tabbar .isv-wa { bottom: calc(78px + env(safe-area-inset-bottom)); }
}

/* I collegamenti interni (#alloggi) non finiscono sotto l'header fisso. */
.isv-main [id] { scroll-margin-top: calc(var(--isv-header-h) + 20px); }

/* I bottoni pieni hanno sempre il testo bianco, anche dentro contenitori che colorano i link (pannello Info, footer…). */
a.isv-btn:not(.isv-btn-ghost):not(.isv-btn-light), a.isv-btn:not(.isv-btn-ghost):not(.isv-btn-light):hover, a.isv-btn:not(.isv-btn-ghost):not(.isv-btn-light):focus-visible { color: var(--isv-on-accent); }

/* "Salvati" nell'header e nel pannello Info: compare solo se chi visita ha salvato almeno un alloggio. */
.isv-savedlink { display: inline-flex; align-items: center; gap: .45rem; min-height: 44px; padding: 0 .9rem; border-radius: 999px; border: 1px solid var(--isv-line); color: var(--isv-ink); font-weight: 700; font-size: .95rem; text-decoration: none !important; }
.isv-savedlink[hidden], .isv-oc__saved[hidden], .isv-savedlink__n[hidden] { display: none !important; }
.isv-oc__saved .isv-savedlink__n { margin-left: auto; }
.isv-savedlink:hover { border-color: var(--isv-ink); }
.isv-savedlink .isv-cuore { width: 22px; }
.isv-savedlink__n { display: grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--isv-accent); color: #fff; font-size: .78rem; }
@media (max-width: 900px) { .isv-savedlink__label { display: none; } .isv-savedlink { padding: 0 .6rem; } }
.isv-oc__saved { display: flex; align-items: center; gap: .6rem; padding: 12px 14px; margin-top: 4px; border-radius: 12px; background: var(--isv-band-light); font-weight: 700; }
.isv-oc__saved .isv-cuore { width: 24px; }
.isv-savedlink__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } .isv-savedlink { padding: 0 .6rem; }
.isv-menu > li > a { white-space: nowrap; }
[data-isv-filters] { scroll-margin-top: calc(var(--isv-header-h, 76px) + 80px); }
@media (min-width: 1361px) {
	.isv-infobtn__label--wide { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
	.isv-infobtn { padding-inline: .75rem; }
	.isv-header .isv-menu a { padding-inline: .55rem; }
	.isv-header-inner { gap: 16px; }
}

/* ---------- Foto a schermo intero (lightbox del tema) ---------- */
html.isv-lb-open { overflow: hidden; }
.isv-lb {
	position: fixed; inset: 0; z-index: 10000; display: grid; grid-template-rows: auto 1fr; opacity: 0; visibility: hidden;
	background: rgba(255, 255, 255, .97); /* niente sfocatura dietro: costa a ogni fotogramma dello scroll */
	transition: opacity .25s var(--isv-ease), visibility 0s .25s;
}
.isv-lb.is-open { opacity: 1; visibility: visible; transition: opacity .25s var(--isv-ease); }
.isv-lb__bar { display: flex; align-items: center; justify-content: space-between; padding: 14px clamp(14px, 3vw, 28px); }
.isv-lb__count { font-weight: 700; font-size: .95rem; color: var(--isv-ink); font-variant-numeric: tabular-nums; }
.isv-lb__close { margin-left: auto; }
.isv-lb__stage { margin: 0; min-height: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 0 clamp(12px, 7vw, 110px) clamp(16px, 3vw, 32px); touch-action: pan-y; }
.isv-lb__img { display: block; max-width: 100%; max-height: calc(100svh - 150px); width: auto; height: auto; object-fit: contain; border-radius: 10px; box-shadow: 0 20px 60px -20px rgba(41, 36, 30, .35); transition: opacity .2s; user-select: none; -webkit-user-drag: none; }
.isv-lb.is-loading .isv-lb__img { opacity: .35; }
.isv-lb__cap { max-width: 70ch; text-align: center; font-size: .92rem; color: var(--isv-ink-soft); }
.isv-lb__btn {
	display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border: 1px solid rgba(41, 36, 30, .1); border-radius: 50%;
	background: #fff; color: var(--isv-ink); box-shadow: 0 6px 20px rgba(41, 36, 30, .14); cursor: pointer; transition: transform .15s, background-color .15s, color .15s;
}
.isv-lb__btn:hover { background: var(--isv-accent); color: #fff; border-color: var(--isv-accent); }
.isv-lb__btn:focus-visible { outline: 3px solid rgba(var(--isv-accent-rgb), .45); outline-offset: 3px; }
.isv-lb__nav { position: absolute; top: 50%; translate: 0 -50%; width: 56px; height: 56px; }
.isv-lb__prev { left: clamp(10px, 2.5vw, 32px); }
.isv-lb__next { right: clamp(10px, 2.5vw, 32px); }
.isv-lb__nav:active { transform: scale(.94); }
.isv-lb__btn[hidden] { display: none; }
@media (max-width: 700px) {
	.isv-lb__stage { padding: 0 8px 90px; }
	.isv-lb__img { max-height: calc(100svh - 190px); border-radius: 6px; }
	.isv-lb__nav { top: auto; bottom: 22px; translate: none; width: 52px; height: 52px; }
	.isv-lb__prev { left: calc(50% - 64px); }
	.isv-lb__next { right: calc(50% - 64px); }
}
@media (prefers-reduced-motion: reduce) { .isv-lb, .isv-lb__img { transition: none; } }

/* Scorrimento morbido (Lenis): regole della libreria. */
html.lenis, html.lenis body { height: auto; }
html.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: clip; }
.lenis.lenis-smooth iframe { pointer-events: none; }

/* ==========================================================================
   Passaggio morbido da una pagina all'altra del sito (View Transitions del browser, senza script):
   la pagina che esce sfuma, quella che entra sale appena; intestazione e barra in basso restano ferme.
   Dove il browser non lo supporta si cambia pagina come sempre.
   ========================================================================== */
@view-transition { navigation: auto; }
.isv-header { view-transition-name: isv-header; }
.isv-tabbar { view-transition-name: isv-tabbar; }
::view-transition-group(isv-header), ::view-transition-group(isv-tabbar) { animation-duration: .45s; }
@media (prefers-reduced-motion: no-preference) {
	::view-transition-old(root) { animation: isv-vt-out .3s cubic-bezier(.4, 0, .2, 1) both; }
	::view-transition-new(root) { animation: isv-vt-in .55s cubic-bezier(.2, .7, .2, 1) both; }
}
@media (prefers-reduced-motion: reduce) {
	@view-transition { navigation: none; }
}
@keyframes isv-vt-out { to { opacity: 0; } }
@keyframes isv-vt-in { from { opacity: 0; translate: 0 18px; } }

/* ==========================================================================
   Lingue: le bandiere di GTranslate (lingue, ordine e misura sono quelli scelti nel plugin).
   Nell'intestazione da 561 px in su, in cima al pannello Menu e in fondo al footer. La lingua in uso ha un anello.
   ========================================================================== */
.isv-flags ul { display: flex; align-items: center; list-style: none; margin: 0; padding: 0; }
.isv-flags a { display: grid; place-items: center; color: var(--isv-ink); text-decoration: none !important; }
.isv-flags img { display: block; height: auto; max-width: none; border-radius: 2px; box-shadow: 0 0 0 1px rgba(var(--isv-ink-rgb), .16); }
.isv-flags a:focus-visible { outline: 2px solid var(--isv-ink); outline-offset: 1px; border-radius: 6px; }
.isv-flags--flags a { min-width: 28px; height: 36px; opacity: .72; transition: opacity .15s; }
.isv-flags--flags a:hover, .isv-flags--flags a:focus-visible, .isv-flags--flags a.gt-current-lang { opacity: 1; }
.isv-flags a.gt-current-lang img { box-shadow: 0 0 0 1px #fff, 0 0 0 2.25px var(--isv-ink); }
/* Gli altri aspetti di GTranslate (sigle, nomi, bandiera con nome) restano su una riga. */
.isv-flags:not(.isv-flags--flags) a { display: inline-flex; align-items: center; gap: .4rem; min-height: 36px; padding: 0 .5rem; font-size: .9rem; font-weight: 650; white-space: nowrap; opacity: .75; }
.isv-flags:not(.isv-flags--flags) a.gt-current-lang { opacity: 1; font-weight: 800; }
.isv-flags:not(.isv-flags--flags) a.gt-current-lang img { box-shadow: 0 0 0 1px rgba(var(--isv-ink-rgb), .16); }
.isv-flags--header ul { gap: 2px; }
.isv-header.is-transparent:not(.is-scrolled) .isv-flags a.gt-current-lang img { box-shadow: 0 0 0 1.5px rgba(0, 0, 0, .25), 0 0 0 3px #fff; }
@media (max-width: 560px) { .isv-flags--header { display: none; } }
/* Pannello: tre tasti grandi, comodi col dito. */
.isv-flags--panel ul { gap: 8px; }
.isv-flags--panel a { min-width: 56px; height: 44px; padding-inline: 12px; border: 1px solid var(--isv-line); border-radius: 10px; background: #fff; opacity: 1; transition: border-color .15s; }
.isv-flags--panel a:hover { border-color: rgba(var(--isv-ink-rgb), .45); }
.isv-flags--panel a.gt-current-lang { border-color: var(--isv-ink); box-shadow: inset 0 0 0 1px var(--isv-ink); }
.isv-flags--panel a.gt-current-lang img { box-shadow: 0 0 0 1px rgba(var(--isv-ink-rgb), .16); }
/* Footer: in fondo, accanto ai dati legali. */
.isv-footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; }
.isv-footer-bottom .isv-legal { flex: 1 1 320px; }
.isv-flags--footer { flex: none; margin-inline: -6px; }
.isv-flags--footer ul { gap: 2px; }
/* Se GTranslate aggiunge da sé la sua voce ai menu del tema, non la si mostra due volte. */
.isv-menu > .menu-item-gtranslate, .isv-oc-menu > .menu-item-gtranslate, .isv-footer-menu > .menu-item-gtranslate { display: none !important; }

/* L'intestazione sta su una riga anche in inglese e in tedesco: se le voci non ci stanno si avvicinano un poco
   (isv-nav-snug), se ancora non bastano compare il bottone Menu (isv-nav-tight). Lo decide lo script in header.php
   misurando la riga, non una larghezza fissa. */
html.isv-nav-snug .isv-menu { gap: 0; }
html.isv-nav-snug .isv-header .isv-menu > li > a { padding-left: .42rem; padding-right: .42rem; }
html.isv-nav-snug .isv-header .isv-menu > li.menu-item-has-children > a { padding-right: 1.4em; }
html.isv-nav-snug .isv-header .isv-menu > li.menu-item-has-children > a::before { right: .55em; }
html.isv-nav-snug .isv-header-inner { gap: 12px; }
html.isv-nav-tight .isv-nav { display: none; }
html.isv-nav-tight .isv-oc__menu { display: block; }
html.isv-nav-tight .isv-infobtn { padding-inline: 1rem; }
html.isv-nav-tight .isv-infobtn__label--wide { display: none; }
html.isv-nav-tight .isv-infobtn__label--narrow { display: inline; }

/* Pagina tradotta nel browser: resta nascosta finché Google non ha tradotto (al massimo 2,5 secondi), poi compare. */
html.isv-gt-wait :is(.isv-main, .isv-footer, .isv-nav, .isv-header-book, .isv-tabbar, .isv-bookbar) { opacity: 0; }
html.isv-gt-on :is(.isv-main, .isv-footer, .isv-nav, .isv-header-book, .isv-tabbar, .isv-bookbar) { transition: opacity .35s var(--isv-ease); }
@media print { html.isv-gt-wait :is(.isv-main, .isv-footer) { opacity: 1; } }
