/* ============================================================
   Residence Il Villaggio — Design system v4 "Sogni di famiglia"
   Blueprint: palazzosogni.com — video hero senza testo, gradienti
   pastello di sezione, titoli grandi uppercase leggeri, form a linee.
   Adattato: palette dal luogo (acqua piscina, sabbia, verde logo),
   copy onesto da famiglia. Jost (display) + Montserrat (testo).
   Motion: GSAP + Lenis. Fallback statico completo.
   ============================================================ */
:root {
  --base: #f8fbfe;
  --bianco: #ffffff;
  --navy: #0e2a4a;
  --ink: #22384e;
  --ink-60: rgba(34, 56, 78, .68);
  --cobalto: #0b57c9;
  --acqua: #7db8f0;
  --verde-brand: #43c520;   /* firma: logo, WhatsApp, spunte */
  --salvia: #6f8f74;         /* colore d'ambiente: giardino/natura */
  --salvia-deep: #4f7057;
  --solare: #f6b01e;         /* oro delle stelle recensioni */
  /* colori delle scritte "momenti" (scelti dal pannello ?colori) */
  --mt-l1: #386f7a;          /* titolo riga 1 — verde-petrolio */
  --mt-l2: #8a7b19;          /* titolo riga 2 — oro-oliva (tinta piena) */
  --mt-sub: #333611;         /* sottotitolo — verde-oliva scuro */
  --mt-sub-strong: #6f6601;  /* parole chiave grassetto — oliva-oro */
  --mt-sub-font: 'Marcellus', serif;  /* font sottotitolo */
  --mt-sub-weight: 900;      /* grassetto parole chiave */
  --hairline: rgba(14, 42, 74, .16);

  --r-card: 20px;            /* raggio angoli card/immagini (come reference hotel-loris) */
  /* menu (config scelta): vetro + Fraunces + verde salvia su crema */
  --menu-font: 'Fraunces', serif; --menu-weight: 500;
  --menu-color: #405946; --menu-bg: #ffffff; --menu-glass: 50%; --menu-glass-bri: 2;
  /* titoli di sezione + fondo sezione camere (la valle usa la stessa variabile) */
  --title-font: 'Fraunces', var(--font-serif); --title-weight: 500;
  --rooms-bg: #f8fbfe;
  --shadow-1: 0 10px 30px -16px rgba(14, 42, 74, .28);
  --shadow-2: 0 26px 60px -30px rgba(14, 42, 74, .40);

  --font-script: "Great Vibes", "Snell Roundhand", cursive;
  --font-serif: "Cormorant Garamond", Georgia, serif;
  --font-display: var(--font-serif);
  --font-body: "Montserrat", "Helvetica Neue", sans-serif;

  --wrap: 1240px;
  --pad: clamp(1.4rem, 5vw, 4rem);
  --space: clamp(3rem, 6vw, 5.5rem);

  --ease-out-quint: cubic-bezier(.23, 1, .32, 1);
  --ease-out-cubic: cubic-bezier(.33, 1, .68, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  font-family: var(--font-body); font-weight: 400;
  color: var(--ink); background: var(--base);
  line-height: 1.7; font-size: .98rem;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); }

/* Gradienti di sezione (la firma del modello, coi nostri colori) */
.aquaGradient { background: linear-gradient(to bottom, var(--base) 0%, rgba(125, 184, 240, .32) 100%); }
.sandGradient { background: linear-gradient(to bottom, var(--base) 0%, rgba(255, 211, 145, .3) 100%); }
/* "dal verde al mare": la sezione giardino tinge di salvia, poi la piscina va sul blu */
.greenGradient { background: linear-gradient(to bottom, var(--base) 0%, rgba(111, 143, 116, .16) 100%); }

/* ---------- Tipografia ---------- */
/* Titoli calligrafici (il "Rooms and Suites" del modello) con reveal a pennellata */
.script {
  font-family: var(--font-script); font-weight: 400;
  font-size: clamp(2.6rem, 6.5vw, 5rem); line-height: 1.18;
  color: var(--navy); text-wrap: balance;
  padding-inline: .12em .25em; padding-bottom: .12em; /* code e discendenti del corsivo */
  /* bordo quasi netto: la scritta "esce dalla penna" invece di sfumare */
  -webkit-mask-image: linear-gradient(97deg, #000 0% 48.5%, transparent 51.5% 100%);
  mask-image: linear-gradient(97deg, #000 0% 48.5%, transparent 51.5% 100%);
  -webkit-mask-size: 230% 100%; mask-size: 230% 100%;
  -webkit-mask-position: 98% 0; mask-position: 98% 0;
  transition: -webkit-mask-position 3200ms cubic-bezier(.3, .15, .45, .95), mask-position 3200ms cubic-bezier(.3, .15, .45, .95);
}
.script.in { -webkit-mask-position: 0% 0; mask-position: 0% 0; }
.script-light { color: #fff; }

/* Titoli scritti a penna (SVG generati da scripts/gen_titoli.py) */
.script-svg { margin: 0; }
.script-svg svg { display: block; width: 100%; height: auto; }
.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}
h3 { font-family: var(--font-serif); font-weight: 600; font-size: 1.5rem; letter-spacing: .01em; color: var(--navy); }
.section-note { color: var(--ink-60); max-width: 62ch; margin-top: 1.1rem; font-size: 1.05rem; line-height: 1.65; }
p { text-wrap: pretty; }

/* ---------- Icone ---------- */
.icon {
  display: inline-block; width: 1.35em; height: 1.35em; flex-shrink: 0;
  background: currentColor; vertical-align: -.32em;
  -webkit-mask: var(--i) no-repeat center / contain; mask: var(--i) no-repeat center / contain;
}
.i-pool   { --i: url(../icons/swimming-pool.svg); }
.i-tree   { --i: url(../icons/tree.svg); }
.i-car    { --i: url(../icons/car.svg); }
.i-wifi   { --i: url(../icons/wifi-high.svg); }
.i-bike   { --i: url(../icons/bicycle.svg); }
.i-snow   { --i: url(../icons/snowflake.svg); }
.i-lock   { --i: url(../icons/lock-key.svg); }
.i-basket { --i: url(../icons/basket.svg); }
.i-caret  { --i: url(../icons/caret-right.svg); }
.i-map    { --i: url(../icons/map-pin.svg); }
.i-wa     { --i: url(../icons/whatsapp-logo.svg); }
.i-phone  { --i: url(../icons/phone.svg); }
.i-check  { --i: url(../icons/check.svg); }
.i-mail   { --i: url(../icons/envelope-simple.svg); }

/* ---------- Sipario d'ingresso (pattern del modello: cover → video) ---------- */
.intro-cover {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center;
  background: linear-gradient(165deg, #dcecfb 0%, #a8cdf0 55%, #7db8f0 100%);
  overflow: hidden;
  transition: opacity 1400ms cubic-bezier(.19, 1, .22, 1), visibility 0s 1400ms;
}
.intro-cover.out { opacity: 0; visibility: hidden; }
.cover-waves i {
  position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55;
  will-change: transform;
}
.cover-waves i:nth-child(1) {
  width: 60vmax; height: 60vmax; left: -15vmax; top: -20vmax;
  background: radial-gradient(circle, rgba(255,255,255,.9), transparent 65%);
  animation: wave-drift 11s ease-in-out infinite alternate;
}
.cover-waves i:nth-child(2) {
  width: 50vmax; height: 50vmax; right: -18vmax; bottom: -22vmax;
  background: radial-gradient(circle, rgba(11,87,201,.4), transparent 65%);
  animation: wave-drift 13s ease-in-out infinite alternate-reverse;
}
.cover-waves i:nth-child(3) {
  width: 40vmax; height: 40vmax; left: 30vw; top: 40vh;
  background: radial-gradient(circle, rgba(125,184,240,.65), transparent 65%);
  animation: wave-drift 9s ease-in-out infinite alternate;
}
@keyframes wave-drift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(6vmax, -4vmax) scale(1.15); }
}
/* splash statico rimosso: il logo compare solo come maschera che apre il video */
.cover-logo { display: none; }
@keyframes logo-breath { 0%, 100% { opacity: .92; transform: scale(1); } 50% { opacity: 1; transform: scale(1.03); } }

/* ---------- Maschere di riga (splitText del modello: 101% → 0, easeOutExpo) ---------- */
.split-mask { display: block; overflow: hidden; }
.split-line {
  display: block; transform: translateY(101%);
  transition: transform 1100ms cubic-bezier(.19, 1, .22, 1);
}
.in > .split-mask .split-line, .mline.in .split-line { transform: none; }
.mline { display: block; overflow: hidden; }

/* ---------- Header minimal: logo a sinistra, azioni + hamburger a destra ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: 84px;
  display: flex; align-items: center; justify-content: space-between;
  padding-inline: var(--pad); gap: 1rem;
  opacity: 0; transform: translateY(-14px); pointer-events: none;
  transition: background 300ms ease, box-shadow 300ms ease, height 300ms ease,
              opacity 1000ms cubic-bezier(.19, 1, .22, 1), transform 1000ms cubic-bezier(.19, 1, .22, 1);
}
.site-header.show { opacity: 1; transform: none; pointer-events: auto; }
.site-header.is-solid { background: var(--header-bg, rgba(248, 251, 254, .92)); backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--hairline); height: 68px; }
.brand-logo { height: 32px; width: auto; filter: drop-shadow(0 1px 8px rgba(14, 42, 74, .45)); transition: filter 300ms ease; }
/* --- Prova header stile hotel-loris (?header=2) --- proporzioni loro:
   striscia 34px full width + curva 904x151 centrata + logo centrato; Menu a sx, CTA in basso --- */
.hdr-strip, .hdr-curve, .nav-label { display: none; }
body[data-header="2"] .site-header,
body[data-header="2"] .site-header.is-solid {
  opacity: 1; transform: none; pointer-events: auto; background: none; box-shadow: none; height: 104px;
  /* niente vetro: creerebbe una striscia orizzontale e bloccherebbe le CTA fixed in alto */
  backdrop-filter: none; -webkit-backdrop-filter: none;
}
body[data-header="2"] .hdr-strip { display: block; position: absolute; top: 0; left: 50%; translate: -50% 0; width: 100vw; height: 34px; background: var(--hdr-bg, #fff); z-index: 0; }
body[data-header="2"] .hdr-curve { display: block; position: absolute; top: 0; left: 50%; translate: -50% 0; width: min(var(--hdr-curve-w, 720px), 88vw); height: auto; z-index: 1; pointer-events: none; }
body[data-header="2"] .hdr-curve path { fill: var(--hdr-bg, #fff); }
body[data-header="2"] .brand { position: absolute; top: var(--hdr-logo-top, 26px); left: 50%; translate: -50% 0; z-index: 2; }
body[data-header="2"] .brand-logo { filter: none; height: var(--hdr-logo-h, 44px); }
/* Menu a sinistra, con etichetta */
body[data-header="2"] .nav-toggle { position: fixed; top: 44px; left: var(--pad); z-index: 61; }
body[data-header="2"] .nav-label {
  display: block; position: absolute; left: calc(100% + .6rem); top: 50%; translate: 0 -50%;
  white-space: nowrap; color: #fff; font-size: .95rem; font-weight: 600; text-shadow: 0 1px 10px rgba(14,42,74,.55);
}
/* CTA spostate in basso a destra, come loro */
body[data-header="2"] .header-actions { position: fixed; bottom: 20px; right: 20px; left: auto; z-index: 60; gap: .55rem; }
/* il Menu è a sinistra: il pannello si apre da sinistra (specificità sopra le regole ?menu) */
body[data-header="2"][data-menu="2"] .menu-drawer,
body[data-header="2"][data-menu="3"] .menu-drawer { left: 0; right: auto; transform: translateX(-100%); }
body.menu-open[data-header="2"][data-menu="2"] .menu-drawer,
body.menu-open[data-header="2"][data-menu="3"] .menu-drawer { transform: none; }
body[data-header="2"][data-menu="3"] .menu-drawer { border-left: 0; border-right: 1px solid rgba(255,255,255,.5); box-shadow: 24px 0 60px -24px rgba(14,42,74,.22); }
body[data-header="2"][data-menu="2"] .menu-drawer { box-shadow: 24px 0 60px -24px rgba(14,42,74,.28); }
/* ============ PALETTE ARMONICHE ============
   Regola: UN accento per le azioni, uno per il marchio, superfici neutre.
   --cobalto è l'accento del sito (CTA, link, tab attive, frecce): cambiandolo cambia tutto insieme. */
body[data-pal="natura"] {
  --cobalto: #4f7057;            /* accento unico: salvia profondo */
  --logo-color: #3b9414;
  --menu-color: #405946;
  --header-bg: #f7f5ef; --hdr-bg: #f7f5ef;   /* superfici neutre calde */
  --rooms-bg: #f7f8f4;
  /* footer chiaro → testo scuro, logo senza schiarita */
  --footer-bg: #eff5fd; --footer-fg: #22384e; --footer-logo-filter: none;
}
body[data-pal="mare"] {
  --cobalto: #0b57c9;
  --logo-color: #0e2a4a;
  --menu-color: #0e2a4a;
  --header-bg: #ffffff; --hdr-bg: #ffffff;
  --rooms-bg: #f8fbfe; --footer-bg: #0e2a4a;
}
body[data-pal="riviera"] {
  --cobalto: #96603a;            /* terracotta/bronzo, contrasto ok su bianco */
  --logo-color: #0e2a4a;
  --menu-color: #5a4632;
  --header-bg: #f6efe2; --hdr-bg: #f6efe2;
  --rooms-bg: #faf6ee; --footer-bg: #3a3129;
}

/* --- Logo ricolorabile: la sagoma del PNG usata come maschera, riempita col colore scelto --- */
.brand-tint { display: none; }
body[data-logotint="1"] .brand-logo { display: none; }
body[data-logotint="1"] .brand-tint {
  display: block; height: var(--hdr-logo-h, 36px); width: calc(var(--hdr-logo-h, 36px) * 3.676);
  background: var(--logo-color, #43c520);
  -webkit-mask: url('../img/logo-il-villaggio.png') center / contain no-repeat;
  mask: url('../img/logo-il-villaggio.png') center / contain no-repeat;
  transition: background 320ms ease, filter 320ms ease;
}
/* in cima il logo sta sul video: bianco e leggibile. Scorrendo (header solido) vira al colore del brand.
   Escluso il layout 2, dove il logo poggia sulla curva bianca. */
body[data-logotint="1"]:not([data-header="2"]):not(.subpage) .site-header:not(.is-solid) .brand-tint {
  background: #fff; filter: drop-shadow(0 1px 8px rgba(14, 42, 74, .45));
}
body[data-header="1"][data-logotint="1"] .brand-tint,
body[data-header="3"][data-logotint="1"] .brand-tint { height: 32px; width: 117px; }

/* --- Posizione delle CTA (variante 2, barra fissa in basso) --- */
body[data-header="2"][data-cta="center"] .header-actions { left: 50%; right: auto; translate: -50% 0; }
body[data-header="2"][data-cta="left"] .header-actions { left: 20px; right: auto; }
body[data-header="2"][data-cta="bar"] .header-actions { position: static; bottom: auto; right: auto; left: auto; translate: none; margin-left: auto; }

/* --- Variante 3: barra attuale, ma logo AL CENTRO e CTA bilanciate (alcune a sinistra) --- */
body[data-header="3"] .site-header { justify-content: flex-start; }
body[data-header="3"] .brand { position: absolute; left: 50%; top: 50%; translate: -50% -50%; z-index: 2; }
body[data-header="3"] .header-actions { width: 100%; justify-content: flex-start; gap: .55rem; }
body[data-header="3"] .hbtn-cta { margin-left: auto; }
@media (max-width: 760px) {
  body[data-header="3"] .brand { position: static; translate: none; margin-right: auto; }
  body[data-header="3"] .header-actions { width: auto; }
  body[data-header="3"] .hbtn-cta { margin-left: 0; }
}

@media (max-width: 760px) {
  body[data-header="2"] .site-header { height: 88px; }
  body[data-header="2"] .hdr-strip { height: 24px; }
  body[data-header="2"] .brand-logo { height: 34px; }
  body[data-header="2"] .brand { top: 20px; }
  body[data-header="2"] .nav-toggle { top: 26px; }
  body[data-header="2"] .header-actions { left: 12px; right: 12px; justify-content: center; }
}
.site-header.is-solid .brand-logo { filter: none; }
.header-actions { display: flex; align-items: center; gap: clamp(.5rem, 1.1vw, .8rem); }
/* Pulsanti header prominenti */
.hbtn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  height: 46px; border-radius: 999px; border: 0; cursor: pointer; text-decoration: none;
  font-family: var(--font-body); font-weight: 600; font-size: .84rem; letter-spacing: .01em;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}
.hbtn:hover { transform: translateY(-2px); }
.hbtn-ic { width: 20px; height: 20px; fill: currentColor; flex: none; }
.hbtn-phone { padding: 0 1.15rem; background: rgba(255, 255, 255, .92); color: var(--cobalto); box-shadow: 0 6px 16px -8px rgba(14, 42, 74, .45); }
.hbtn-phone:hover { background: #fff; color: var(--navy); }
.hbtn-wa { width: 46px; padding: 0; background: var(--verde-brand); color: #fff; box-shadow: 0 8px 18px -8px rgba(67, 197, 32, .65); }
.hbtn-wa:hover { background: #37a81a; }
.hbtn-wa .hbtn-ic { width: 23px; height: 23px; }
.hbtn-cta { padding: 0 1.5rem; background: var(--cobalto); color: #fff; box-shadow: 0 10px 22px -10px rgba(11, 87, 201, .7); }
.hbtn-cta:hover { background: var(--navy); }

/* Hamburger in tondo bianco */
.nav-toggle {
  width: 46px; height: 46px; border-radius: 999px; padding: 0; border: 0; cursor: pointer; z-index: 61;
  background: #fff; box-shadow: 0 6px 16px -8px rgba(14, 42, 74, .45);
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav-toggle span:not(.nav-label) {
  display: block; height: 2px; width: 20px; border-radius: 2px; background: var(--navy);
  transition: transform 350ms cubic-bezier(.19,1,.22,1), opacity 200ms ease, background 300ms ease;
}
body.menu-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.menu-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Drawer laterale (scivola da destra) */
.menu-scrim {
  position: fixed; inset: 0; z-index: 54; background: rgba(7, 42, 85, .35);
  opacity: 0; visibility: hidden; transition: opacity 400ms ease, visibility 0s linear 400ms;
}
.menu-scrim[hidden] { display: block; } /* [hidden] lo teniamo per il fallback no-JS, ma lo animiamo */
body.menu-open .menu-scrim { opacity: 1; visibility: visible; transition: opacity 400ms ease; }

/* ---- Base condivisa ---- */
.menu-drawer { position: fixed; z-index: 56; display: flex; overflow: hidden; }
.menu-inner { display: flex; flex-direction: column; width: 100%; overflow-y: auto; position: relative; z-index: 1; }
.menu-photo { display: none; }
.menu-close { position: absolute; top: 1.4rem; right: 1.4rem; z-index: 3; width: 40px; height: 40px; border: 0; background: none; cursor: pointer; color: var(--navy); font-size: 2rem; line-height: 1; opacity: .8; transition: opacity 200ms, transform 300ms; }
.menu-close:hover { opacity: 1; transform: rotate(90deg); }
.menu-drawer-nav ul { list-style: none; display: flex; flex-direction: column; }
.menu-drawer-nav a { font-family: var(--menu-font, var(--font-serif)); font-weight: var(--menu-weight, 600); text-transform: var(--menu-case, none); letter-spacing: var(--menu-spacing, normal); text-decoration: none; display: block; color: var(--menu-color, var(--navy)); transition: color 200ms ease, transform 250ms cubic-bezier(.5,0,0,1); }
.menu-drawer-nav a:hover { color: var(--menu-accent, var(--cobalto)); }
.mi-eyebrow { display: none; }
.menu-langs { display: flex; gap: .6rem; }
.menu-langs a { width: 42px; height: 42px; border-radius: 999px; border: 1.5px solid var(--hairline); display: grid; place-items: center; text-decoration: none; color: var(--navy); font-size: .82rem; font-weight: 600; letter-spacing: .04em; transition: background 200ms, border-color 200ms, color 200ms; }
.menu-langs a:hover { border-color: var(--cobalto); }
.menu-langs a.active { background: var(--cobalto); color: #fff; border-color: var(--cobalto); }
.menu-contact { display: flex; flex-direction: column; gap: .5rem; font-size: .95rem; }
.menu-contact a { color: var(--ink-60); text-decoration: none; }
.menu-contact a:first-child { color: var(--navy); font-weight: 700; font-size: 1.15rem; font-family: var(--font-serif); }
.menu-contact a:hover { color: var(--cobalto); }
/* ingresso orchestrato delle voci (respira una alla volta) */
.menu-drawer-nav li { opacity: 0; transform: translateY(14px); }
body.menu-open .menu-drawer-nav li { opacity: 1; transform: none; transition: opacity 500ms ease, transform 620ms var(--ease-out-quint); }
body.menu-open .menu-drawer-nav li:nth-child(1) { transition-delay: 90ms; }
body.menu-open .menu-drawer-nav li:nth-child(2) { transition-delay: 150ms; }
body.menu-open .menu-drawer-nav li:nth-child(3) { transition-delay: 210ms; }
body.menu-open .menu-drawer-nav li:nth-child(4) { transition-delay: 270ms; }
body.menu-open .menu-drawer-nav li:nth-child(5) { transition-delay: 330ms; }
body.menu-open .menu-drawer-nav li:nth-child(6) { transition-delay: 390ms; }
@media (prefers-reduced-motion: reduce) { .menu-drawer-nav li { opacity: 1; transform: none; } }

/* edere del menu: spostabili e moltiplicabili */
.menu-ivy { position: absolute; z-index: 0; pointer-events: none; user-select: none; height: auto; display: none; }
.menu-ivy-1 { top: var(--mi1-top,-5%); left: var(--mi1-left,-24%); width: var(--mi1-width,63%); opacity: var(--mi1-op,.86); transform: rotate(var(--mi1-rot,22deg)) scaleX(var(--mi1-flip,1)); }
.menu-ivy-2 { top: var(--mi2-top,-4%); left: var(--mi2-left,65%);  width: var(--mi2-width,64%); opacity: var(--mi2-op,.89); transform: rotate(var(--mi2-rot,-6deg)) scaleX(var(--mi2-flip,-1)); }
.menu-ivy-3 { top: var(--mi3-top,76%); left: var(--mi3-left,58%);  width: var(--mi3-width,52%); opacity: var(--mi3-op,.90); transform: rotate(var(--mi3-rot,43deg)) scaleX(var(--mi3-flip,-1)); }
.menu-ivy-4 { top: var(--mi4-top,66%); left: var(--mi4-left,-1%);  width: var(--mi4-width,66%); opacity: var(--mi4-op,.86); transform: rotate(var(--mi4-rot,-90deg)) scaleX(var(--mi4-flip,1)); }
body:is([data-menu="2"],[data-menu="3"]) .menu-ivy-1 { display: block; }
body:is([data-menu="2"],[data-menu="3"])[data-mivy="2"] .menu-ivy-2,
body:is([data-menu="2"],[data-menu="3"])[data-mivy="3"] :is(.menu-ivy-2, .menu-ivy-3),
body:is([data-menu="2"],[data-menu="3"])[data-mivy="4"] :is(.menu-ivy-2, .menu-ivy-3, .menu-ivy-4) { display: block; }
body:is([data-menu="2"],[data-menu="3"])[data-mivy="0"] .menu-ivy-1 { display: none; }

/* ---- Opzione 1 · overlay chiaro a tutto schermo ---- */
body[data-menu="1"] .menu-drawer { inset: 0; width: 100%; background: var(--menu-bg, var(--base)); opacity: 0; visibility: hidden; transform: scale(1.03); transition: opacity 420ms ease, transform 640ms var(--ease-out-quint), visibility 0s linear 420ms; }
body.menu-open[data-menu="1"] .menu-drawer { opacity: 1; visibility: visible; transform: none; transition: opacity 420ms ease, transform 640ms var(--ease-out-quint); }
body[data-menu="1"] .menu-inner { align-items: center; justify-content: center; text-align: center; gap: 2rem; padding: 5rem 1.5rem; }
body[data-menu="1"] .menu-drawer-nav ul { align-items: center; gap: .1rem; }
body[data-menu="1"] .menu-drawer-nav a { font-size: clamp(2rem, 6vw, 3.4rem); padding: .28rem 0; }
body[data-menu="1"] .menu-contact { align-items: center; margin-top: .5rem; }

/* ---- Opzione 2 · pannello laterale chiaro + tocco d'edera ---- */
body[data-menu="2"] .menu-drawer { top: 0; right: 0; bottom: 0; width: min(420px, 88vw); background: var(--menu-bg, var(--base)); transform: translateX(100%); box-shadow: -24px 0 60px -24px rgba(14,42,74,.28); transition: transform 500ms cubic-bezier(.5,0,0,1); }
body.menu-open[data-menu="2"] .menu-drawer { transform: none; }
body[data-menu="2"] .menu-inner { gap: 2rem; padding: clamp(2rem,5vw,3.5rem) clamp(1.8rem,4vw,3rem); }
body[data-menu="2"] .menu-drawer-nav { margin-top: 2.5rem; }
body[data-menu="2"] .menu-drawer-nav ul { gap: .3rem; }
body[data-menu="2"] .menu-drawer-nav a { font-size: clamp(1.6rem,4.5vw,2.2rem); padding: .25rem 0; }
body[data-menu="2"] .menu-drawer-nav a:hover { transform: translateX(.6rem); }
body[data-menu="2"] .menu-contact { margin-top: auto; }

/* ---- Opzione 3 · vetro smerigliato ---- */
body[data-menu="3"] .menu-drawer { top: 0; right: 0; bottom: 0; width: min(420px, 88vw); background: color-mix(in srgb, var(--menu-bg, #f8fbfe) var(--menu-glass, 68%), transparent); backdrop-filter: blur(20px) saturate(1.1) brightness(var(--menu-glass-bri, 1)); -webkit-backdrop-filter: blur(20px) saturate(1.1) brightness(var(--menu-glass-bri, 1)); border-left: 1px solid rgba(255,255,255,.5); box-shadow: -24px 0 60px -24px rgba(14,42,74,.22); transform: translateX(100%); transition: transform 500ms cubic-bezier(.5,0,0,1); }
body.menu-open[data-menu="3"] .menu-drawer { transform: none; }
/* reframe: contenuto rientrato e centrato, l'edera incornicia gli angoli senza invadere */
body[data-menu="3"] .menu-inner { justify-content: center; gap: 1.5rem; padding: clamp(4rem,11vh,7rem) clamp(2.4rem,6vw,3.6rem); }
body[data-menu="3"] .menu-drawer-nav { margin-top: 0; }
body[data-menu="3"] .menu-drawer-nav ul { gap: .2rem; }
body[data-menu="3"] .menu-drawer-nav a { font-size: clamp(1.5rem,4vw,2.05rem); padding: .22rem 0; }
body[data-menu="3"] .menu-drawer-nav a:hover { transform: translateX(.6rem); }
body[data-menu="3"] .menu-contact { margin-top: 1.1rem; }

/* ---- Opzione 4 · split fotografico (foto + menu) ---- */
body[data-menu="4"] .menu-drawer, body[data-menu="5"] .menu-drawer { inset: 0; width: 100%; background: var(--menu-bg, var(--base)); flex-direction: row; opacity: 0; visibility: hidden; transition: opacity 400ms ease, visibility 0s linear 400ms; }
body.menu-open[data-menu="4"] .menu-drawer, body.menu-open[data-menu="5"] .menu-drawer { opacity: 1; visibility: visible; transition: opacity 400ms ease; }
body[data-menu="4"] .menu-photo, body[data-menu="5"] .menu-photo { display: block; flex: 0 0 46%; position: relative; background: #0b2038 center/cover no-repeat; background-image: url('../img/piscina-residence-il-villaggio-bellaria-igea-marina.webp'); }
body[data-menu="4"] .menu-photo::after, body[data-menu="5"] .menu-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(14,42,74,.4) 0%, rgba(14,42,74,.08) 70%); }
body[data-menu="4"] .menu-inner, body[data-menu="5"] .menu-inner { justify-content: center; gap: 2rem; padding: clamp(3rem,7vw,6rem) clamp(2rem,6vw,5rem); }
body[data-menu="4"] .menu-drawer-nav ul, body[data-menu="5"] .menu-drawer-nav ul { gap: .12rem; }
body[data-menu="4"] .menu-drawer-nav a, body[data-menu="5"] .menu-drawer-nav a { font-size: clamp(1.8rem,4.2vw,2.8rem); padding: .2rem 0; }
body[data-menu="4"] .menu-drawer-nav a:hover, body[data-menu="5"] .menu-drawer-nav a:hover { transform: translateX(.5rem); }
body[data-menu="4"] .menu-contact, body[data-menu="5"] .menu-contact { margin-top: 1rem; }
/* Opzione 5 · la foto segue la voce sotto il mouse */
body[data-menu="5"] .menu-photo { transition: opacity 300ms ease; }

/* ---- Opzione 6 · indice "cartolina" con occhielli ---- */
body[data-menu="6"] .menu-drawer { inset: 0; width: 100%; background: var(--menu-bg, var(--base)); opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity 420ms ease, transform 600ms var(--ease-out-quint), visibility 0s linear 420ms; }
body.menu-open[data-menu="6"] .menu-drawer { opacity: 1; visibility: visible; transform: none; transition: opacity 420ms ease, transform 600ms var(--ease-out-quint); }
body[data-menu="6"] .menu-inner { align-items: center; justify-content: center; text-align: center; gap: 1.8rem; padding: 5rem 1.5rem; }
body[data-menu="6"] .menu-drawer-nav ul { width: min(560px, 92vw); gap: 0; }
body[data-menu="6"] .menu-drawer-nav li { border-top: 1px solid var(--hairline); }
body[data-menu="6"] .menu-drawer-nav li:last-child { border-bottom: 1px solid var(--hairline); }
body[data-menu="6"] .menu-drawer-nav a { display: flex; flex-direction: column; align-items: center; padding: .95rem 0; font-size: clamp(1.5rem,3.8vw,2.1rem); }
body[data-menu="6"] .mi-eyebrow { display: block; order: -1; font-family: var(--font-body); font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--salvia-deep); font-weight: 600; margin-bottom: .25rem; }
body[data-menu="6"] .menu-drawer-nav a:hover .mi-eyebrow { color: var(--cobalto); }

@media (max-width: 760px) {
  body[data-menu="4"] .menu-drawer, body[data-menu="5"] .menu-drawer { flex-direction: column; }
  body[data-menu="4"] .menu-photo, body[data-menu="5"] .menu-photo { flex-basis: 32%; }
}

/* Footer lang switch */
.lang-switch { display: flex; gap: .55rem; }
.lang-switch a { text-decoration: none; color: rgba(255,255,255,.7); opacity: .8; font-weight: 600; }
.lang-switch a.active { opacity: 1; color: #fff; border-bottom: 1px solid currentColor; }

/* ---------- Hero: solo video ---------- */
.hero { position: relative; height: 100dvh; overflow: hidden; }
.hero-media { position: absolute; inset: 0; will-change: transform; }
.hero-media video, .hero-fallback {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.hero-media video { z-index: 2; opacity: 0; transition: opacity 1200ms ease; }
.hero-media video.is-playing { opacity: 1; }
.hero::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 30%;
  /* sfumatura "eased": quasi tutta trasparente, si chiude solo negli ultimi centimetri.
     Niente linea netta, e il video resta leggibile fin quasi al bordo. */
  background: linear-gradient(to top,
    var(--base) 0%,
    color-mix(in srgb, var(--base) 82%, transparent) 7%,
    color-mix(in srgb, var(--base) 52%, transparent) 16%,
    color-mix(in srgb, var(--base) 26%, transparent) 30%,
    color-mix(in srgb, var(--base) 10%, transparent) 50%,
    color-mix(in srgb, var(--base) 3%, transparent) 75%,
    transparent 100%);
  z-index: 3; pointer-events: none;
}
.scroll-down {
  position: absolute; bottom: 2rem; left: 50%; translate: -50% 0; z-index: 4;
  color: #fff; text-decoration: none;
  font-size: .68rem; font-weight: 500; letter-spacing: .3em; text-transform: uppercase;
  display: flex; flex-direction: column; align-items: center; gap: .7rem;
  opacity: 0; transition: opacity 1000ms cubic-bezier(.19, 1, .22, 1);
}
.scroll-down.show { opacity: 1; }
/* tasto audio dell'hero: discreto, in basso a destra, appare con lo scroll-down */
.hero-sound {
  position: absolute; right: 1.6rem; bottom: 1.6rem; z-index: 4;
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .55rem .9rem .55rem .7rem; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.55); background: rgba(20,30,25,.4);   /* niente backdrop-filter: sopra un video va ricalcolato a ogni fotogramma e lo fa scattare */
  color: #fff; font: 500 .68rem/1 inherit; letter-spacing: .22em; text-transform: uppercase;
  cursor: pointer; opacity: 0; transition: opacity 1000ms cubic-bezier(.19,1,.22,1), background 200ms;
}
.hero-sound.show { opacity: 1; }
.hero-sound:hover { background: rgba(20,30,25,.55); }
.hero-sound svg { width: 20px; height: 20px; }
.hero-sound .ico-on { display: none; }
.hero-sound[aria-pressed="true"] .ico-on { display: block; }
.hero-sound[aria-pressed="true"] .ico-off { display: none; }
@media (max-width: 640px) { .hero-sound { right: 1rem; bottom: 4.6rem; } .hero-sound-label { display: none; } }
/* «Video»: piccolo, a specchio del pulsante audio in basso a sinistra; apre il film intero con la musica */
.hero-film {
  position: absolute; left: 1.6rem; bottom: 1.6rem; z-index: 4;
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .3rem .85rem .3rem .3rem; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.55); background: rgba(20,30,25,.4);
  color: #fff; font: 500 .64rem/1 inherit; letter-spacing: .2em; text-transform: uppercase;
  cursor: pointer; opacity: 0; transition: opacity 1000ms cubic-bezier(.19,1,.22,1), background 200ms;
}
.hero-film.show { opacity: 1; }
.hero-film:hover { background: rgba(20,30,25,.55); }
.hero-film:focus-visible, .hero-sound:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.hero-film-play { width: 24px; height: 24px; border-radius: 50%; background: #fff; color: var(--navy); display: grid; place-items: center; transition: transform 400ms cubic-bezier(.19,1,.22,1); }
.hero-film-play svg { width: 12px; height: 12px; margin-left: 2px; }
.hero-film:hover .hero-film-play { transform: scale(1.1); }
/* telefono: solo il cerchio, come il pulsante audio che resta solo icona */
@media (max-width: 640px) { .hero-film { left: 1rem; bottom: 4.6rem; padding: .45rem; } .hero-film-txt { display: none; } }

.film-dialog { width: min(92vw, 1280px, calc((100dvh - 9rem) * 16 / 9)); max-width: none; max-height: none; margin: auto; padding: 0;   /* margin: il reset globale toglie il centraggio nativo */
  border: 0; background: transparent; color: var(--navy); overflow: visible; }
/* stesso vetro chiaro del menu laterale: la pagina resta intuibile dietro, sfocata */
.film-dialog::backdrop { background: color-mix(in srgb, var(--base, #f8fbfe) 88%, transparent); backdrop-filter: blur(16px) saturate(1.1); -webkit-backdrop-filter: blur(16px) saturate(1.1); }
.film-dialog[open] { animation: film-in 600ms cubic-bezier(.19,1,.22,1) both; }
.film-dialog[open]::backdrop { animation: film-fondo 400ms ease both; }
@keyframes film-in { from { opacity: 0; transform: translateY(22px) scale(.98); } }
@keyframes film-fondo { from { opacity: 0; } }
.film-close { position: absolute; top: 0; right: 0; z-index: 3; width: 40px; height: 40px; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--navy) 35%, transparent); background: #fff; color: var(--navy); font-size: 1.5rem; line-height: 1; cursor: pointer; box-shadow: 0 6px 18px -8px rgba(14,42,74,.35); transition: background 200ms, color 200ms, border-color 200ms, transform 300ms; }
.film-close:hover { background: var(--cobalto); border-color: var(--cobalto); color: #fff; transform: rotate(90deg); }
.film-close:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; }
/* testata del film: il logo originale (verde, scritta in blu per il fondo chiaro) e un occhiello salvia */
.film-testa { text-align: center; padding: 0 3.5rem; margin-bottom: clamp(1rem, 2.4vh, 1.5rem); }
.film-logo { display: block; width: clamp(170px, 16vw, 230px); height: auto; margin: 0 auto; }
.film-occhiello { margin-top: .7rem; font: 600 .64rem/1 var(--font-body); letter-spacing: .26em; text-transform: uppercase; color: var(--salvia-deep); }
.film-gira { display: none; }
.film-video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #000; border-radius: 14px; box-shadow: 0 40px 90px -30px rgba(14, 42, 74, .45); }
@media (max-width: 640px) {
  .film-dialog { width: 100vw; padding: 0 1rem; }
  .film-close { right: 1rem; top: -.2rem; }
  .film-testa { padding: 0 2.6rem; }
  .film-logo { width: 190px; }
  .film-video { border-radius: 12px; }
}
@media (max-width: 640px) and (orientation: portrait) {
  .film-gira { display: flex; align-items: center; justify-content: center; gap: .5rem; margin-top: 1.1rem; font: 500 .74rem/1.3 var(--font-body); color: color-mix(in srgb, var(--navy) 70%, transparent); }
  .film-gira svg { width: 20px; height: 20px; flex: none; color: var(--salvia-deep); }
}
@media (orientation: landscape) and (max-height: 560px) {
  /* telefono girato: il film a schermo pieno, bande nere come al cinema */
  .film-dialog { position: fixed; inset: 0; width: 100%; height: 100%; margin: 0; }
  .film-dialog::backdrop { background: #000; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .film-testa, .film-gira { display: none; }
  .film-dialog { padding: 0; }
  .film-close { top: .6rem; right: .8rem; width: 36px; height: 36px; font-size: 1.3rem; background: rgba(0,0,0,.35); border-color: rgba(255,255,255,.6); color: #fff; box-shadow: none; }
  .film-video { width: 100%; height: 100%; aspect-ratio: auto; object-fit: contain; border-radius: 0; box-shadow: none; }
}
@media (prefers-reduced-motion: reduce) { .film-dialog[open], .film-dialog[open]::backdrop { animation: none; } }
.scroll-down span { width: 1px; height: 46px; background: rgba(255,255,255,.8); overflow: hidden; position: relative; }
.scroll-down span::after {
  content: ""; position: absolute; inset: 0; background: #fff;
  transform-origin: top; animation: line-drop 2s var(--ease-out-cubic) infinite;
}
@keyframes line-drop {
  0% { transform: scaleY(0); transform-origin: top; }
  45% { transform: scaleY(1); transform-origin: top; }
  55% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ---------- Dettagli del modello: arco, acquerello, blur-in ---------- */
.arch-figure { position: relative; }
.aquarelle {
  position: absolute; top: -6%; left: -14%; width: 120%; height: auto;
  z-index: 0; pointer-events: none;
}
.arch {
  position: relative; z-index: 1;
  width: min(380px, 88%); margin-inline: auto;
  aspect-ratio: 3 / 4; overflow: hidden;
  border-radius: 999px 999px 0 0;
}
.arch img { width: 100%; height: 100%; object-fit: cover; }
.blur-in > img {
  filter: blur(16px); opacity: .55; transform: scale(1.04);
  transition: filter 1600ms ease, opacity 1600ms ease, transform 1600ms var(--ease-out-quint);
}
.blur-in.in > img { filter: blur(0); opacity: 1; transform: none; }
.apt-card:hover .apt-media.blur-in.in img { transform: scale(1.04); } /* l'hover resta vivo dopo il reveal */

/* ---------- Il residence ---------- */
.residence { padding-block: var(--space); }
.residence .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 0 clamp(2rem, 5vw, 5rem); align-items: start; }
.residence .script { grid-column: 1 / -1; }
.residence .manifesto { grid-column: 1; }
.residence .arch-figure { grid-column: 2; grid-row: 2 / 4; align-self: center; }
.residence .residence-cols { grid-column: 1; grid-template-columns: 1fr; max-width: none; }
.residence .residence-facts { grid-column: 1 / -1; }
.manifesto { margin-top: 2.4rem; font-family: var(--font-display); font-weight: 300; font-size: clamp(1.25rem, 2.6vw, 2rem); line-height: 1.45; color: var(--navy); display: grid; gap: .1em; max-width: 56ch; }
.manifesto strong { font-weight: 500; }
.mline { display: block; }
.residence-cols { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 4rem); margin-top: 3rem; max-width: 62rem; }
.residence-cols p { color: var(--ink-60); font-size: .95rem; }
.residence-facts {
  list-style: none; display: flex; flex-wrap: wrap; gap: 1rem 2.4rem;
  margin-top: 3.2rem; padding-top: 1.8rem; border-top: 1px solid var(--hairline);
  font-size: .82rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--navy);
}
.residence-facts li { display: flex; align-items: center; gap: .6rem; }
.residence-facts .icon { color: var(--cobalto); }

/* ---------- Appartamenti ---------- */
.apartments { padding-block: var(--space) 0; }
.apartments-head { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 1rem 2rem; }
.apartments-head .section-note { grid-column: 1; }
.rail-nav { grid-row: 1 / 3; grid-column: 2; display: flex; gap: .6rem; align-self: end; }
.rail-btn {
  width: 48px; height: 48px; border-radius: 999px; border: 1px solid var(--navy);
  background: transparent; color: var(--navy); cursor: pointer;
  display: grid; place-items: center;
  transition: background 200ms ease, color 200ms ease, opacity 200ms ease;
}
.rail-btn:hover { background: var(--navy); color: #fff; }
.rail-btn[disabled] { opacity: .3; pointer-events: none; }
.rail-btn[data-dir="-1"] .icon { transform: rotate(180deg); }
.apt-rail-wrap {
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: max(var(--pad), calc((100vw - var(--wrap)) / 2 + var(--pad)));
  padding-block: 3rem var(--space);
  cursor: grab; scrollbar-width: none;
}
.apt-rail-wrap::-webkit-scrollbar { display: none; }
.apt-rail-wrap.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.apt-rail-wrap.is-dragging .apt-card { pointer-events: none; }
.apt-rail {
  display: flex; gap: clamp(1.4rem, 3vw, 2.6rem); width: max-content;
  padding-inline: max(var(--pad), calc((100vw - var(--wrap)) / 2 + var(--pad)));
}
.apt-card { width: min(420px, 82vw); flex-shrink: 0; scroll-snap-align: start; display: flex; flex-direction: column; gap: .55rem; }
.apt-media { aspect-ratio: 4 / 3; overflow: hidden; margin-bottom: .8rem; }
.apt-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease-out-quint); }
.apt-card:hover .apt-media img { transform: scale(1.045); }
.apt-meta { font-size: .7rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-60); }
.apt-desc { font-size: .9rem; color: var(--ink-60); }
.apt-link {
  margin-top: .5rem; align-self: flex-start; text-decoration: none;
  font-size: .74rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase;
  color: var(--navy); border-bottom: 1px solid var(--navy); padding-bottom: 3px;
  transition: color 200ms ease, border-color 200ms ease;
}
.apt-link:hover { color: var(--cobalto); border-color: var(--cobalto); }

/* ---------- La giornata: timeline interattiva (clic o avanzamento automatico) ---------- */
.day { padding-block: var(--space); }
.day-player { margin-top: 2.6rem; }
.day-stage {
  position: relative; height: min(62dvh, 560px);
  border-radius: var(--r-card); overflow: hidden; box-shadow: var(--shadow-2);
}
.day-scene { position: absolute; inset: 0; opacity: 0; transition: opacity 700ms var(--ease-out-cubic); }
.day-scene img { width: 100%; height: 100%; object-fit: cover; }
.day-scene.is-active { opacity: 1; }
.day-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; margin-top: 1.6rem; }
.day-tab {
  position: relative; text-align: left; background: none; border: 0; cursor: pointer;
  font-family: var(--font-body); color: var(--ink);
  padding: 1.1rem 0 1.3rem; border-top: 2px solid rgba(14, 27, 42, .14);
  opacity: .55; transition: opacity 300ms ease;
}
.day-tab:hover { opacity: .85; }
.day-tab.is-active { opacity: 1; }
.day-time {
  font-family: var(--font-serif); font-weight: 600; font-size: 1.05rem;
  letter-spacing: .12em; color: var(--cobalto); display: block;
}
.day-name { font-family: var(--font-serif); font-weight: 600; font-size: 1.35rem; color: var(--navy); display: block; margin-top: .25rem; }
.day-desc { display: block; color: var(--ink-60); font-size: .95rem; line-height: 1.55; margin-top: .45rem; max-width: 34ch; }
.day-progress {
  position: absolute; top: -2px; left: 0; height: 2px; width: 100%;
  background: var(--cobalto); transform: scaleX(0); transform-origin: left;
}
.day-tab.is-active .day-progress { animation: day-run var(--day-interval, 5000ms) linear forwards; }
@keyframes day-run { to { transform: scaleX(1); } }
.day-tabs.paused .day-progress { animation-play-state: paused; }

/* ---------- Servizi ---------- */
/* sfondo verde leggero; il fogliame è dato da più layer sovrapposti (profondità) */
.services { position: relative; padding-block: var(--space) clamp(2rem, 4vw, 3.2rem); overflow-x: clip;
  background: linear-gradient(180deg, var(--base) 0%, rgba(111, 143, 116, .12) 100%); }
.services .wrap { position: relative; z-index: 2; }
/* più piani di fogliame a intensità diverse: lontano (chiaro/sfocato) → vicino (nitido/pieno) */
.fol { position: absolute; pointer-events: none; user-select: none; will-change: transform; }
.fol img { display: block; width: 100%; height: auto; }
.fol-1 { top: var(--f1-top, 7%);  left: var(--f1-left, 2%);  width: var(--f1-width, 111%); opacity: var(--f1-op, .1);  filter: blur(var(--f1-blur, 2px)) saturate(.95); z-index: var(--f1-z, 0); }
.fol-2 { top: var(--f2-top, 28%); left: var(--f2-left, -4%); width: var(--f2-width, 108%); opacity: var(--f2-op, .1);  filter: blur(var(--f2-blur, 3px)); z-index: var(--f2-z, 0); }
.fol-3 { top: var(--f3-top, 66%); left: var(--f3-left, 21%); width: var(--f3-width, 68%);  opacity: var(--f3-op, .1); filter: blur(var(--f3-blur, 2.6px)); z-index: var(--f3-z, 0); }
.fol-1 img { transform: scale(var(--f1-scale, 1.04)); }
.fol-2 img { transform: scale(var(--f2-scale, 1)); }
.fol-3 img { transform: scale(var(--f3-scale, 1.8)); }
/* edera cascante: overlay elegante, istanze multiple posizionabili/ruotabili */
.ivy { position: absolute; pointer-events: none; user-select: none; will-change: transform; }
.ivy img { display: block; width: 100%; height: auto; -webkit-mask-image: linear-gradient(to bottom, #000 60%, transparent 96%); mask-image: linear-gradient(to bottom, #000 60%, transparent 96%); }
.ivy-1 { top: var(--iv1-top, 1%);   left: var(--iv1-left, -22%); width: var(--iv1-width, 46.4%); opacity: var(--iv1-op, 1); z-index: var(--iv1-z, 5); filter: saturate(.96) drop-shadow(var(--ivy-shadow, 0px 19px 3px rgba(18,38,20,.67))); }
.ivy-2 { top: var(--iv2-top, -7%);  left: var(--iv2-left, 87.4%);  width: var(--iv2-width, 66%); opacity: var(--iv2-op, 1); z-index: var(--iv2-z, 5); filter: saturate(.96) drop-shadow(var(--ivy-shadow, 0px 19px 3px rgba(18,38,20,.67))); }
.ivy-3 { top: var(--iv3-top, 48%);  left: var(--iv3-left, -40%); width: var(--iv3-width, 41%); opacity: var(--iv3-op, 1); z-index: var(--iv3-z, 5); filter: saturate(.96) drop-shadow(var(--ivy-shadow, 0px 19px 3px rgba(18,38,20,.67))); }
.ivy-4 { top: var(--iv4-top, 33%);  left: var(--iv4-left, 87%);  width: var(--iv4-width, 35%); opacity: var(--iv4-op, 1); z-index: var(--iv4-z, 5); filter: saturate(.96) drop-shadow(var(--ivy-shadow, 0px 19px 3px rgba(18,38,20,.67))); }
.ivy-5 { top: var(--iv5-top, 79%);  left: var(--iv5-left, 84%);  width: var(--iv5-width, 28%); opacity: var(--iv5-op, 1); z-index: var(--iv5-z, 5); filter: saturate(.96) drop-shadow(var(--ivy-shadow, 0px 19px 3px rgba(18,38,20,.67))); }
.ivy-1 img { transform: rotate(var(--iv1-rot, 0deg)) scaleX(var(--iv1-flip, 1)); }
.ivy-2 img { transform: rotate(var(--iv2-rot, -17deg)) scaleX(var(--iv2-flip, -1)); }
.ivy-3 img { transform: rotate(var(--iv3-rot, 42deg)) scaleX(var(--iv3-flip, 1)); }
.ivy-4 img { transform: rotate(var(--iv4-rot, -18deg)) scaleX(var(--iv4-flip, -1)); }
.ivy-5 img { transform: rotate(var(--iv5-rot, 23deg)) scaleX(var(--iv5-flip, -1)); }
@media (max-width: 640px) { .ivy-2, .ivy-3, .ivy-4, .ivy-5 { display: none; } .ivy-1 { --iv1-width: 52%; } }
/* maschera chiara dietro al titolo: lascia libera la scritta (come nei momenti) */
.services .services-head { position: relative; }
.services .services-head::before { content: ""; position: absolute; z-index: -1; left: 50%; top: -60%; transform: translateX(-50%); width: min(920px, 96%); height: 240%; pointer-events: none;
  background: radial-gradient(ellipse 60% 50% at 50% 50%, #f8fbfe 0%, #f8fbfe 46%, rgba(248,251,254,.7) 66%, transparent 88%); }
.services .wrap { max-width: var(--container); margin-inline: auto; padding-inline: var(--pad); }
.services-eyebrow { text-align: center; font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; color: var(--salvia-deep); font-weight: 600; }
.services-h2 { text-align: center; font-family: var(--title-font, var(--font-serif)); font-weight: var(--title-weight, 600); font-size: clamp(2rem, 4.5vw, 3.2rem); color: var(--navy); margin: .3rem 0 clamp(2rem, 4vw, 3rem); }
/* V2 · righe alternate */
.srow { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.6rem, 4vw, 3.4rem); align-items: center; margin-bottom: clamp(2rem, 4vw, 3.2rem); text-align: left; }
.srow:nth-child(even) .srow-ph { order: 2; }
.srow-ph { margin: 0; height: clamp(220px, 26vw, 320px); border-radius: var(--r-card); overflow: hidden; box-shadow: var(--shadow-2); }
.srow-ph img, .srow-ph video { width: 100%; height: 100%; object-fit: cover; display: block; }
/* parcheggio e biciclette: due foto nella stessa card, si alternano con una dissolvenza lenta */
.srow-alterna { position: relative; }
.srow-alterna img + img { position: absolute; inset: 0; opacity: 0; animation: srow-alterna 12s ease-in-out infinite; }
@keyframes srow-alterna { 0%, 40% { opacity: 0; } 50%, 90% { opacity: 1; } 100% { opacity: 0; } }
.srow-sfasata img + img { animation-delay: -6s; }
.srow-sfasata-2 img + img { animation-delay: -3s; }   /* piscina e parcheggio non cambiano foto nello stesso istante */
@media (prefers-reduced-motion: reduce) { .srow-alterna img + img { animation: none; } }
.srow-eyebrow { font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--salvia-deep); font-weight: 600; margin-bottom: .5rem; }
.srow-t { font-family: var(--font-serif); font-weight: 600; font-size: clamp(1.5rem, 3vw, 2.1rem); color: var(--navy); margin-bottom: .6rem; }
.srow-s { color: var(--ink-60); font-size: 1.02rem; line-height: 1.65; max-width: 42ch; }
.schips { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem; margin-top: clamp(1.5rem, 3vw, 2.4rem); border-top: 1px solid var(--hairline); padding-top: clamp(1.8rem, 3vw, 2.4rem); }
.schip { display: inline-flex; align-items: center; gap: .55rem; background: var(--bianco); border: 1px solid var(--hairline); border-radius: 999px; padding: .65rem 1.15rem; font-size: .92rem; font-weight: 500; color: var(--navy); box-shadow: var(--shadow-1); }
.schip .icon { width: 1.25em; height: 1.25em; color: var(--cobalto); transition: transform .25s ease; }
.schip:hover .icon { transform: scale(1.18) rotate(-4deg); }
/* ogni servizio un colore diverso */
.schip:nth-child(1) .icon { color: #0b57c9; }  /* parcheggio */
.schip:nth-child(2) .icon { color: #2f8f86; }  /* wi-fi */
.schip:nth-child(3) .icon { color: #38a9c9; }  /* aria condizionata */
.schip:nth-child(4) .icon { color: #6f8f74; }  /* cassaforte */
.schip:nth-child(5) .icon { color: #c2872b; }  /* lavatrice */
/* pulsante "Scopri tutti i servizi" in fondo alle righe */
.services-more { text-align: center; margin-top: clamp(1.8rem, 3vw, 2.6rem); }
.btn-services { display: inline-flex; align-items: center; gap: .55rem; background: var(--cobalto); color: #fff; font-weight: 600; font-size: .95rem; padding: .9rem 1.7rem; border-radius: 999px; text-decoration: none; transition: gap .25s ease, background .25s ease; }
.btn-services:hover { gap: .9rem; background: var(--navy); }
.btn-services .icon { width: 1.1em; height: 1.1em; }

/* === Proposte estetiche (interruttore ?stile) === */
/* A · Card unificata: foto + testo in un'unica card bianca */
.services.sty-card .srow { background: var(--bianco); border-radius: var(--r-card); box-shadow: var(--shadow-2); overflow: hidden; gap: 0; align-items: stretch; }
.services.sty-card .srow-ph { height: auto; min-height: 260px; border-radius: 0; box-shadow: none; }
/* qui le foto hanno altezza automatica: width/height nell'HTML riservano lo spazio prima che arrivino,
   se no la riga cresceva quando la foto (lazy) arrivava e lo scorrimento verso il modulo scattava */
.services.sty-card .srow-tx { padding: clamp(1.8rem, 3vw, 3rem); display: flex; flex-direction: column; justify-content: center; }

@media (max-width: 700px) {
  .srow { grid-template-columns: 1fr; }
  .srow:nth-child(even) .srow-ph { order: 0; }
  .services.sty-card .srow-ph { min-height: 200px; }
}

/* ---------- Recensioni ---------- */
.reviews { padding-block: var(--space); }
.rev-todo { color: #c0392b; font-weight: 600; font-size: .85em; }
.rev-badge {
  display: inline-flex; align-items: center; gap: .7rem;
  margin-top: 1.4rem; padding: .7rem 1.3rem;
  background: var(--bianco); border-radius: 999px; box-shadow: var(--shadow-1);
}
.rev-badge strong { font-family: var(--font-serif); font-size: 1.5rem; font-weight: 600; color: var(--navy); }
.rev-stars { color: var(--solare); letter-spacing: .1em; font-size: 1.1rem; }
.rev-count { color: var(--ink-60); font-size: .88rem; }
.rev-count strong { font-family: var(--font-body); font-size: .95rem; color: var(--navy); }
/* stelle frazionarie precise: base grigia + oro ritagliato alla percentuale */
.stars-frac { position: relative; display: inline-block; color: #d9dee6; }
.stars-frac::before {
  content: "★★★★★"; position: absolute; top: 0; left: 0; height: 100%;
  width: var(--stars, 100%); overflow: hidden; white-space: nowrap; color: var(--solare);
}
.rev-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 340px)); justify-content: center; gap: 1.4rem; margin-top: 2.6rem; align-items: start; }
.rev-card {
  position: relative; background: var(--bianco); border-radius: var(--r-card);
  padding: 2.6rem 1.8rem 1.6rem; box-shadow: var(--shadow-1);
}
.rev-card-mid { transform: translateY(1.2rem); } /* ritmo: la card centrale scende un filo */
.rev-quote {
  position: absolute; top: .4rem; left: 1.2rem;
  font-family: var(--font-script); font-size: 3.4rem; line-height: 1; color: var(--acqua);
}
.rev-card blockquote { font-family: var(--font-serif); font-size: 1.18rem; line-height: 1.5; color: var(--ink); }
.rev-card figcaption { margin-top: 1.1rem; display: flex; flex-direction: column; gap: .1rem; }
.rev-name { font-weight: 600; font-size: .92rem; color: var(--navy); }
.rev-src { color: var(--ink-60); font-size: .8rem; }

/* ---------- Recensioni: carosello (progressive enhancement via JS) ---------- */
.rev-carousel { position: relative; margin-top: 2.6rem; }
.rev-carousel .rev-viewport { overflow: hidden; }
.rev-carousel .rev-grid {
  display: flex; grid-template-columns: none; justify-content: flex-start;
  flex-wrap: nowrap; align-items: stretch; margin-top: 0;
  transition: transform .55s cubic-bezier(.65, 0, .2, 1); will-change: transform;
}
.rev-carousel .rev-card {
  flex: 0 0 auto; display: flex; flex-direction: column;
  transition: transform .35s ease, box-shadow .35s ease;
  border-top: 3px solid transparent; overflow: hidden;
}
.rev-carousel .rev-card::after { /* accento superiore acqua→salvia */
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: linear-gradient(90deg, var(--acqua), var(--salvia));
  opacity: 0; transition: opacity .35s ease;
}
.rev-carousel .rev-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-2, 0 24px 50px -24px rgba(11,58,134,.45)); }
.rev-carousel .rev-card:hover::after { opacity: 1; }
.rev-carousel .rev-card blockquote { flex: 1 0 auto; }
.rev-card-stars { color: var(--solare); letter-spacing: .12em; font-size: .95rem; margin-bottom: .7rem; }
.rev-card figcaption { margin-top: 1.1rem; }
.rev-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--acqua);
  background: var(--bianco); color: var(--navy); cursor: pointer;
  display: grid; place-items: center; box-shadow: var(--shadow-1);
  transition: background .2s, color .2s, opacity .2s;
}
.rev-arrow:hover { background: var(--cobalto); color: #fff; border-color: var(--cobalto); }
.rev-arrow svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; }
.rev-arrow.prev { left: -8px; }
.rev-arrow.next { right: -8px; }
.rev-arrow[disabled] { opacity: 0; pointer-events: none; }
.rev-dots { display: flex; justify-content: center; gap: .5rem; margin-top: 1.8rem; }
.rev-dots button {
  width: 9px; height: 9px; padding: 0; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--acqua); opacity: .45; transition: opacity .2s, transform .2s;
}
.rev-dots button.is-active { opacity: 1; transform: scale(1.35); background: var(--cobalto); }
@media (max-width: 720px) { .rev-arrow.prev { left: -4px; } .rev-arrow.next { right: -4px; } }
@media (prefers-reduced-motion: reduce) { .rev-carousel .rev-grid { transition: none; } }

/* ---------- Dove siamo ---------- */
.where { padding-block: var(--space) 0; }
.where-facts { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; margin-block: 2rem 2.6rem; }
.where-facts li { display: flex; gap: .8rem; align-items: flex-start; }
.where-facts .icon { width: 1.7em; height: 1.7em; margin-top: .1em; color: var(--cobalto); }
.where-facts strong { display: block; font-family: var(--font-serif); font-weight: 600; font-size: 1.15rem; color: var(--navy); }
.where-facts small { color: var(--ink-60); font-size: .92rem; }
.where-map { position: relative; }
.where-map iframe {
  display: block; width: 100%; height: min(60dvh, 520px); border: 0;
  filter: saturate(.75); transition: filter 400ms ease;
}
.where-map:hover iframe { filter: saturate(1); }
.where-cta { position: absolute; bottom: 1.6rem; left: 50%; translate: -50% 0; box-shadow: var(--shadow-2); }

/* ---------- FAQ: fisarmonica elegante ---------- */
.faq { padding-block: var(--space); }
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; margin-top: .5rem; }
.faq-intro p { margin-top: 1.2rem; color: var(--ink-60); font-size: 1.06rem; line-height: 1.7; max-width: 34ch; }
.faq-intro a { color: var(--cobalto); text-decoration: none; font-weight: 600; }
.faq-list { display: flex; flex-direction: column; }
.faq-item { border-bottom: 1px solid rgba(14, 27, 42, .14); }
.faq-item:first-child { border-top: 1px solid rgba(14, 27, 42, .14); }
.faq-item summary {
  list-style: none; cursor: pointer; position: relative;
  font-family: var(--font-serif); font-weight: 600; font-size: 1.3rem; color: var(--navy);
  padding: 1.35rem 3rem 1.35rem 0; line-height: 1.35;
  transition: color 200ms ease;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--cobalto); }
.faq-item summary::after {
  content: "+"; position: absolute; right: .4rem; top: 50%; translate: 0 -50%;
  font-family: var(--font-body); font-weight: 300; font-size: 1.7rem; color: var(--cobalto);
  transition: rotate 250ms var(--ease-out-cubic);
}
.faq-item[open] summary::after { rotate: 45deg; }
.faq-item p { padding: 0 0 1.5rem; color: var(--ink-60); font-size: 1.05rem; line-height: 1.7; max-width: 60ch; }

/* ---------- Preventivo: form a linee, respiro largo ---------- */
.quote { padding-block: var(--space); background: linear-gradient(180deg, var(--bianco) 0%, #f5efe3 100%); }
.quote .section-note { margin-bottom: 3rem; }
.quote-form { max-width: 60rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.15rem 2.2rem; }
.quote-form label {
  display: flex; flex-direction: column; gap: .28rem;
  font-size: .74rem; font-weight: 600; letter-spacing: .13em; text-transform: uppercase;
  color: var(--ink-60);
}
.quote-form input, .quote-form select, .quote-form textarea {
  font: inherit; font-family: var(--font-serif); font-size: 1.05rem; color: var(--ink);
  background: transparent; border: 0; border-bottom: 1.5px solid rgba(14, 27, 42, .3);
  padding: .3rem .1rem; border-radius: 0;
  transition: border-color 200ms ease;
}
.quote-form input:focus, .quote-form select:focus, .quote-form textarea:focus {
  outline: none; border-bottom-color: var(--cobalto);
}
.quote-form textarea { resize: vertical; min-height: 2rem; }
.form-full { grid-column: 1 / -1; }
.consent {
  grid-column: 1 / -1; display: flex; flex-direction: row !important; align-items: flex-start; gap: .85rem !important;
  margin: .5rem 0 .3rem;
  font-weight: 400 !important; letter-spacing: 0 !important; text-transform: none !important;
  color: var(--ink-60); font-size: .95rem !important; line-height: 1.6;
}
/* la regola generale dei campi (.quote-form input: width 100%, niente bordi) va battuta per specificita':
   da Safari una casella larga 100% dentro gli span di Contact Form 7 si riduceva a zero e spariva */
.quote-form .consent input[type="checkbox"] {
  -webkit-appearance: checkbox; appearance: auto; flex: none;
  width: 1.15rem !important; min-width: 1.15rem; max-width: none; height: 1.15rem;
  margin: .22rem 0 0; padding: 0; border: 0; accent-color: var(--cobalto); cursor: pointer;
}
.consent a { color: var(--cobalto); }
/* il testo va tenuto in un solo blocco: da flex i nodi di testo sciolti diventavano
   colonne separate e su schermo stretto la frase si spezzava a scalini */
.consent > span { flex: 1 1 auto; min-width: 0; }
/* le tre <label> qui dentro servono solo a rendere cliccabile il testo: non devono
   prendere lo stile maiuscoletto delle etichette del modulo, ne' andare a capo */
.consent label {
  display: inline; font: inherit; font-size: inherit; font-weight: inherit;
  letter-spacing: inherit; text-transform: none; color: inherit; margin: 0; cursor: pointer;
}
.quote-actions { grid-column: 1 / -1; display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; margin-top: .1rem; }
/* i due bottoni nuovi copiano esattamente la forma di .btn-wa, che resta il riferimento:
   stesso font, stesso maiuscoletto, stesso ingombro. Cambia solo il colore. */
.btn-invia, .btn-tel {
  display: inline-flex; align-items: center; gap: .7rem; cursor: pointer; text-decoration: none;
  font-family: var(--font-body); font-size: .82rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  padding: 1.05rem 2.2rem; border-radius: 999px; white-space: nowrap;
  transition: transform 150ms var(--ease-out-cubic), box-shadow 200ms var(--ease-out-quint), background 200ms ease, border-color 200ms ease;
}
.btn-invia { background: var(--navy); color: #fff; border: 0; box-shadow: 0 14px 34px -12px rgba(14,42,74,.55); }
.btn-invia:hover { transform: translateY(-2px); box-shadow: 0 18px 38px -12px rgba(14,42,74,.7); }
.btn-tel { background: transparent; color: var(--navy); border: 1.5px solid color-mix(in srgb, var(--navy) 26%, transparent); padding-block: calc(1.05rem - 1.5px); }
.btn-tel:hover { transform: translateY(-2px); border-color: var(--navy); background: color-mix(in srgb, var(--navy) 6%, transparent); }
.quote-alt { grid-column: 1 / -1; margin-top: .9rem; font-size: .88rem; color: var(--ink-60); }
/* «Invia richiesta» resta l'azione principale; sotto, staccate, le due alternative */
.quote-oppure { grid-column: 1 / -1; margin: 1.5rem 0 .8rem; font-size: .82rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; color: var(--ink-60);
  display: flex; align-items: center; gap: .9rem; }
.quote-oppure::after { content: ""; flex: 1; height: 1px; background: var(--hairline, rgba(14,42,74,.14)); }
.quote-actions-alt { margin-top: 0; }
@media (max-width: 520px) {
  .quote-actions { flex-direction: column; align-items: stretch; }
  .btn-invia, .btn-wa, .btn-tel { width: 100%; }
}
.btn-wa {
  display: inline-flex; align-items: center; gap: .7rem;
  background: #23b33a; color: #fff; border: 0; cursor: pointer; text-decoration: none;
  font-family: var(--font-body); font-size: .82rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  padding: 1.05rem 2.2rem; border-radius: 999px;
  box-shadow: 0 14px 34px -10px rgba(35, 179, 58, .55);
  transition: transform 150ms var(--ease-out-cubic), box-shadow 200ms var(--ease-out-quint);
}
.btn-wa:hover { transform: translateY(-2px); }
.btn-wa:active { transform: scale(.97); }
.btn-wa .icon { width: 1.5em; height: 1.5em; }
.quote-alt { color: var(--ink-60); font-size: 1rem; }
.quote-alt a { color: var(--navy); font-weight: 600; text-decoration: none; }

/* ---------- Prefooter condiviso: form + mappa + recensioni (su ogni pagina) ---------- */
/* compatto: titolo + form devono stare in una schermata, senza scorrere */
.site-prefooter { background: var(--ghiaccio, #eef5fd); padding-block: clamp(1.8rem, 3.6vw, 3rem) 0; position: relative; }
.site-prefooter > .wrap { max-width: var(--container); margin-inline: auto; padding-inline: var(--pad); }
.pf-head { text-align: center; margin-bottom: 1.1rem; }
.pf-title { font-family: var(--title-font, var(--font-serif)); font-weight: var(--title-weight, 600); font-size: clamp(1.65rem, 3.1vw, 2.35rem); color: var(--navy); line-height: 1.15; }
.pf-sub { color: var(--ink-60); max-width: 56ch; margin: .45rem auto 0; font-size: .96rem; line-height: 1.5; }
/* Form a tutta larghezza (come prima) con francobollo */
.pf-formwrap { position: relative; max-width: 60rem; margin-inline: auto; }
.pf-formwrap .stamp { position: absolute; top: -2.5rem; right: -1rem; width: clamp(90px, 10vw, 150px); rotate: 5deg; z-index: 2; filter: drop-shadow(0 10px 22px rgba(60,40,20,.25)); }
.pf-formwrap .quote-form { background: var(--bianco); border-radius: var(--r-card); padding: clamp(1.2rem, 2.4vw, 1.9rem); box-shadow: var(--shadow-2); }
/* il bottone qui dentro sta più basso: fuori resta della misura piena */
.pf-formwrap .btn-wa { padding: .85rem 1.9rem; }
/* schermi bassi (portatili 13"): stringe ancora, così il form entra comunque senza scorrere */
@media (min-width: 821px) and (max-height: 780px) {
  .site-prefooter { padding-block: 1.2rem 0; }
  .pf-head { margin-bottom: .7rem; }
  .pf-title { font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
  .pf-sub { font-size: .88rem; margin-top: .3rem; }
  .pf-formwrap .quote-form { padding: 1.1rem 1.3rem; }
  .form-grid { gap: .8rem 2rem; }
  .quote-form input, .quote-form select, .quote-form textarea { font-size: .98rem; padding: .22rem .1rem; }
  .quote-form label { font-size: .7rem; gap: .2rem; }
  .quote-form textarea { min-height: 1.7rem; }
  .consent { font-size: .88rem !important; line-height: 1.45; }
  .pf-formwrap .btn-wa { padding: .7rem 1.6rem; }
}
/* Mappa "full page": banda a tutta larghezza, edge-to-edge */
.pf-secondary {
  position: relative;
  width: 100vw; margin-left: calc(50% - 50vw);
  max-width: none; margin-top: clamp(2.5rem, 6vw, 4.5rem);
}
.pf-map { position: relative; overflow: hidden; box-shadow: none; border-radius: 0; }
.pf-map iframe { display: block; width: 100%; height: clamp(400px, 62vh, 640px); min-height: 0; border: 0; }
/* Mappa: l'anteprima (immagine, 64 KB) compare subito e riempie il riquadro.
   Google si carica sopra appena e' pronto e solo dopo il consenso ai cookie. */
.pf-map-holder { position: relative; width: 100%; height: clamp(400px, 62vh, 640px); overflow: hidden;
  /* stesso grigio con cui Google disegna il fondo: quando la mappa arriva non si vede alcuno stacco */
  background: #e5e3df; }
 /* Prima qui c'era un'immagine statica di Google: brutta e muta per chi rifiuta i cookie.
   Al suo posto l'indirizzo e il link, che restano utili anche se la mappa non si carica mai. */
.pf-map-vuota { position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: .55rem; text-align: center; padding: 1.5rem;
  background: linear-gradient(160deg, #eef2ea 0%, #e6ece6 55%, #dfe7e0 100%); color: var(--navy); }
.pf-map-vuota .icon { width: 2.1rem; height: 2.1rem; color: var(--salvia-deep, #4f7057); opacity: .8; }
.pf-map-vuota p { margin: 0; font-size: .98rem; line-height: 1.5; color: var(--ink-60); }
.pf-map-vuota strong { font-family: var(--font-serif); font-size: 1.15rem; font-weight: 600; color: var(--navy); }
.pf-map-vuota a { margin-top: .35rem; font-size: .78rem; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: var(--salvia-deep, #4f7057); text-decoration: none;
  border-bottom: 1px solid currentColor; padding-bottom: .15rem; }
.pf-map-vuota a:hover { color: var(--navy); }
.pf-map-holder iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
  opacity: 0; transition: opacity 500ms ease; }
.pf-map-holder iframe.pronta { opacity: 1; }
  color: #fff; background: var(--salvia-deep, #4f7057); padding: .55rem 1.3rem; border-radius: 999px; }

/* vecchia facciata a click: non piu' usata, resta per sicurezza se qualche pagina non e' rigenerata */
.pf-map-open {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .55rem;
  width: 100%; height: clamp(400px, 62vh, 640px); border: 0; cursor: pointer; padding: 2rem;
  font-family: var(--font-body); color: var(--navy); text-align: center;
  background-color: #e9eef0;
  /* strade stilizzate: solo gradienti, zero immagini da scaricare */
  background-image:
    linear-gradient(rgba(255,255,255,.9) 2px, transparent 2px),
    linear-gradient(90deg, rgba(255,255,255,.9) 2px, transparent 2px),
    linear-gradient(rgba(255,255,255,.55) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.55) 1px, transparent 1px),
    linear-gradient(115deg, transparent 46%, rgba(255,255,255,.75) 46% 49%, transparent 49%),
    linear-gradient(180deg, #dfe8ea, #eef2f0);
  background-size: 132px 132px, 132px 132px, 44px 44px, 44px 44px, 100% 100%, 100% 100%;
  transition: background-color 200ms ease;
}
.pf-map-open:hover { background-color: #e2e9eb; }
.pf-map-pin { width: 34px; height: 34px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg);
  background: var(--salvia-deep, #4f7057); box-shadow: 0 8px 18px -6px rgba(31,46,35,.6); position: relative; }
.pf-map-pin::after { content: ""; position: absolute; inset: 10px; border-radius: 50%; background: #fff; }
.pf-map-txt { display: flex; flex-direction: column; gap: .1rem; font-size: .95rem; color: var(--ink-60); margin-top: .5rem; }
.pf-map-txt b { font-family: var(--font-serif); font-size: 1.25rem; font-weight: 600; color: var(--navy); }
.pf-map-cta { margin-top: .4rem; background: var(--bianco); border-radius: 999px; padding: .6rem 1.4rem;
  font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--salvia-deep, #4f7057);
  box-shadow: var(--shadow-1); }
.pf-map-open:hover .pf-map-cta { background: var(--salvia-deep, #4f7057); color: #fff; }
/* Contatti integrati come card sulla mappa */
.pf-map-card {
  position: absolute; left: clamp(1.4rem, 4vw, 3rem); bottom: clamp(1.4rem, 4vw, 3rem); z-index: 2;
  width: min(360px, 82%); background: var(--bianco); border-radius: var(--r-card); box-shadow: var(--shadow-2);
  padding: clamp(1.3rem, 2.5vw, 1.7rem) clamp(1.4rem, 3vw, 1.9rem);
  display: flex; flex-direction: column; gap: .95rem;
}
.pf-cb-item { display: flex; flex-direction: column; gap: .15rem; }
.pf-cb-label { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--salvia-deep); font-weight: 600; }
.pf-cb-item address { font-style: normal; color: var(--ink); line-height: 1.4; }
.pf-cb-item a { color: var(--cobalto); text-decoration: none; }
.pf-phone { font-family: var(--font-serif); font-size: 1.35rem; font-weight: 600; color: var(--navy); text-decoration: none; }
.pf-cb-wa { margin-left: 0; justify-content: center; }
/* recensioni come sezione a sé (spostata dopo le offerte) */
.reviews-block { padding-block: var(--space); }
.reviews-block .wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); }
.reviews-block .pf-reviews { margin-top: 0; }
.pf-reviews { margin-top: clamp(2.5rem, 5vw, 4rem); }
.pf-reviews-head { display: flex; align-items: center; justify-content: center; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 1.8rem; }
.pf-reviews-head h3 { font-family: var(--title-font, var(--font-serif)); font-weight: var(--title-weight, 600); font-size: 1.6rem; color: var(--navy); }
@media (max-width: 760px) {
  .pf-formwrap .stamp { display: none; }
  .pf-map iframe { height: clamp(300px, 50vh, 420px); }
  .pf-map-card { position: static; width: auto; margin: clamp(1rem,4vw,1.6rem) clamp(1.2rem,5vw,1.8rem); }
}

/* ---------- Eventi & offerte: blocco dinamico (stile "Acquario") ---------- */
.events { padding-block: var(--space) 0; }
.events[hidden] { display: none; }
.events-head { text-align: center; margin-bottom: clamp(2rem, 4vw, 3rem); }
.events-eyebrow { font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; color: var(--salvia-deep); font-weight: 600; }
.events-title { font-family: var(--title-font, var(--font-serif)); font-weight: var(--title-weight, 600); font-size: clamp(2rem, 4.5vw, 3.2rem); color: var(--navy); margin-top: .3rem; }
.events-stage { position: relative; }
.event { display: none; }
.event.is-active {
  display: block; position: relative; height: clamp(440px, 42vw, 540px);
  animation: eventIn .5s var(--ease-out-cubic);
}
@keyframes eventIn { from { opacity: 0; transform: translateX(28px); } to { opacity: 1; transform: none; } }
/* pannello colorato a sinistra, più corto dell'immagine */
.event-panel {
  position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 60%; height: 84%; z-index: 1;
  background: linear-gradient(150deg, var(--cobalto), var(--navy));
  color: #fff; border-radius: var(--r-card);
  padding: clamp(1.8rem, 3.5vw, 3.2rem); padding-right: 13%;
  display: flex; flex-direction: column; justify-content: center;
}
.event-date { font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; color: var(--acqua); font-weight: 600; margin-bottom: .8rem; }
.event-name { font-family: var(--font-serif); font-weight: 600; font-size: clamp(1.7rem, 3.2vw, 2.6rem); line-height: 1.08; margin-bottom: 1rem; }
.event-desc { color: rgba(255, 255, 255, .9); line-height: 1.6; font-size: 1rem; margin-bottom: 1.6rem; max-width: 34ch; }
.event-cta {
  align-self: flex-start; display: inline-flex; align-items: center; gap: .5rem;
  background: #fff; color: var(--navy); font-weight: 600; font-size: .95rem;
  padding: .85rem 1.6rem; border-radius: 999px; text-decoration: none;
  transition: gap .25s, background .25s, color .25s;
}
.event-cta:hover { gap: .9rem; background: var(--acqua); }
/* immagine grande a destra che scavalca il pannello (sporge sopra e sotto) */
.event-media {
  position: absolute; right: 0; top: 0; height: 100%; width: 52%; z-index: 2;
  border-radius: var(--r-card); overflow: hidden; box-shadow: var(--shadow-2);
}
.event-media img { width: 100%; height: 100%; object-fit: cover; }
/* controlli centrati sotto (frecce + puntini), stile Acquario */
.events-controls { display: flex; align-items: center; justify-content: center; gap: 1.3rem; margin-top: 1.8rem; }
.events-arrow {
  width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--hairline); cursor: pointer;
  background: var(--bianco); color: var(--navy); display: grid; place-items: center;
  box-shadow: var(--shadow-1); transition: background .2s, color .2s, border-color .2s;
}
.events-arrow:hover { background: var(--cobalto); color: #fff; border-color: var(--cobalto); }
.events-arrow svg { width: 20px; height: 20px; }
.events-dots { display: flex; gap: .5rem; }
.events-dots button { width: 9px; height: 9px; padding: 0; border-radius: 50%; border: 0; cursor: pointer; background: var(--acqua); opacity: .4; transition: opacity .2s, transform .2s; }
.events-dots button.is-active { opacity: 1; transform: scale(1.35); background: var(--cobalto); }
@media (max-width: 760px) {
  .event.is-active { display: flex; flex-direction: column-reverse; height: auto; border-radius: var(--r-card); overflow: hidden; box-shadow: var(--shadow-2); }
  .event-panel { position: static; transform: none; width: 100%; height: auto; border-radius: 0; padding: clamp(1.6rem, 5vw, 2.2rem); }
  .event-media { position: static; width: 100%; height: 210px; border-radius: 0; box-shadow: none; }
}

/* ============ PROVE STILE OFFERTE (interruttore ?offerte) ============ */
/* OPZIONE 1 — editoriale chiara, coerente col sito (card bianca, no gradiente blu) */
body[data-offerte="1"] .event.is-active {
  height: auto; display: grid; grid-template-columns: 1.02fr .98fr; gap: 0;
  background: var(--bianco); border-radius: var(--r-card); overflow: hidden; box-shadow: var(--shadow-2); animation: eventIn .5s var(--ease-out-cubic);
}
body[data-offerte="1"] .event-panel {
  position: static; transform: none; width: auto; height: auto; z-index: auto;
  background: none; color: var(--ink); padding: clamp(2rem, 4vw, 3.4rem); padding-right: clamp(2rem, 4vw, 3.4rem);
}
body[data-offerte="1"] .event-date { color: var(--salvia-deep); }
body[data-offerte="1"] .event-name { color: var(--navy); }
body[data-offerte="1"] .event-desc { color: var(--ink-60); max-width: 40ch; }
body[data-offerte="1"] .event-cta { background: var(--cobalto); color: #fff; }
body[data-offerte="1"] .event-cta:hover { background: var(--navy); }
body[data-offerte="1"] .event-media {
  position: relative; width: auto; height: 100%; min-height: 0;
  border-radius: 0; box-shadow: none; z-index: auto;
}
/* FORMATO FISSO: la card ha sempre la stessa altezza e la foto la riempie tagliandosi.
   Qualunque immagine (anche verticale) non cambia mai il riquadro. */
body[data-offerte="1"] .event.is-active { height: clamp(380px, 34vw, 460px); }
body[data-offerte="1"] .event-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* OPZIONE 2 — full-bleed cinematografica (immagine a tutta larghezza, testo in sovrimpressione) */
body[data-offerte="2"] .event.is-active {
  height: clamp(420px, 44vw, 560px); border-radius: var(--r-card); overflow: hidden; box-shadow: var(--shadow-2); animation: eventIn .5s var(--ease-out-cubic);
}
body[data-offerte="2"] .event-media {
  position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 0; box-shadow: none; z-index: 1;
}
body[data-offerte="2"] .event-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(95deg, rgba(14,42,74,.86) 0%, rgba(14,42,74,.55) 44%, rgba(14,42,74,.06) 78%);
}
body[data-offerte="2"] .event-panel {
  position: absolute; inset: auto auto 0 0; transform: none; z-index: 2;
  width: min(58%, 48ch); height: auto; background: none;
  padding: clamp(2rem, 4vw, 3.4rem); color: #fff;
}
body[data-offerte="2"] .event-date { color: var(--acqua); }
body[data-offerte="2"] .event-name { color: #fff; }
body[data-offerte="2"] .event-desc { color: rgba(255,255,255,.92); }
body[data-offerte="2"] .event-cta { background: #fff; color: var(--navy); }
body[data-offerte="2"] .event-cta:hover { background: var(--acqua); }
@media (max-width: 760px) {
  body[data-offerte="1"] .event.is-active { grid-template-columns: 1fr; height: auto; }
  body[data-offerte="1"] .event-media { height: auto; aspect-ratio: 16 / 10; order: -1; }
  body[data-offerte="2"] .event-panel { width: 100%; }
}

/* ---------- Pagina FAQ dedicata ---------- */
.faq-page { padding-block: 0 var(--space); }
.faq-page .wrap { max-width: 820px; margin-inline: auto; padding-inline: var(--pad); }
.faq-more { text-align: center; margin-top: 2rem; color: var(--ink-60); }
.faq-more a { color: var(--cobalto); font-weight: 600; text-decoration: none; }

/* ---------- Footer ---------- */
.site-footer { background: var(--footer-bg, var(--navy)); color: color-mix(in srgb, var(--footer-fg, #fff) 85%, transparent); padding-top: 1.7rem; }
.footer-grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1.1fr; gap: 2rem;
  padding-bottom: 2rem; align-items: start;
}
.footer-logo { height: 34px; width: auto; filter: var(--footer-logo-filter, brightness(1.2)); }
.site-footer address { font-style: normal; margin-top: .75rem; font-size: .92rem; line-height: 1.55; max-width: 32ch; }
.site-footer h3 {
  color: color-mix(in srgb, var(--footer-fg, #fff) 58%, transparent); font-family: var(--font-body); font-weight: 600;
  font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; margin-bottom: 1.1rem;
}
.footer-nav { display: flex; flex-direction: column; gap: .42rem; font-size: .96rem; }
.site-footer a { color: color-mix(in srgb, var(--footer-fg, #fff) 85%, transparent); text-decoration: none; transition: color 150ms ease; }
.site-footer a:hover { color: var(--footer-fg, #fff); }
.footer-contact { display: flex; flex-direction: column; gap: .42rem; font-size: .96rem; }
.site-footer .lang-switch { margin-top: .7rem; display: flex; gap: .45rem; font-size: .8rem; }
.site-footer .lang-switch a { padding: .15rem .4rem; border-radius: 6px; opacity: 1; border: 0; color: color-mix(in srgb, var(--footer-fg, #fff) 62%, transparent); }
.site-footer .lang-switch a.active { background: color-mix(in srgb, var(--footer-fg, #fff) 16%, transparent); color: var(--footer-fg, #fff); }
.footer-bottom {
  border-top: 1px solid color-mix(in srgb, var(--footer-fg, #fff) 15%, transparent); padding: .9rem 1.5rem;
  text-align: center; font-size: .8rem; color: color-mix(in srgb, var(--footer-fg, #fff) 50%, transparent);
}


/* (pattern romagnolo di sfondo rimosso su richiesta) */
.moments, .quote, .where { position: relative; }

/* ---------- Elementi decorativi (floreali + marini) sporadici, su più livelli ---------- */
.moments, .reviews, .quote { overflow: clip; }
.deco { position: absolute; z-index: 0; pointer-events: none; will-change: transform; }
.moments > .wrap, .reviews > .wrap, .quote > .wrap { position: relative; z-index: 1; }
.deco-flora-r { top: 4%; right: -6%; width: clamp(220px, 26vw, 460px); opacity: .1; transform: scaleX(-1); }
.deco-marine-l { bottom: -4%; left: -5%; width: clamp(240px, 30vw, 520px); opacity: .09; }
.deco-flora-tl { top: -4%; left: -7%; width: clamp(180px, 20vw, 340px); opacity: .08; rotate: 200deg; }
@media (max-width: 820px) { .deco { display: none; } }

/* ---------- Sezione Momenti: intro che si colora + 3 immagini ---------- */
.moments { padding-block: var(--space); text-align: center; position: relative;
  /* verde solo a metà, bianco in cima e in fondo: il confine con la piscina sparisce */
  background: linear-gradient(to bottom, var(--base) 0%, rgba(111, 143, 116, .14) 38%, var(--base) 82%); }
/* Onda di mare che risale dal basso (immagine con licenza dell'utente).
   In overlay dietro al contenuto: non occupa spazio, invisibile finché manca il file. */
.moments-wave {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 0; pointer-events: none;
  height: clamp(560px, 84vw, 1120px); overflow: hidden;
  /* l'onda resta colorata all'esterno; sfuma solo in alto (verso il video) e in basso
     (verso la piscina) per non lasciare righe nette */
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 34%, #000 54%, transparent 86%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 34%, #000 54%, transparent 86%);
}
.moments-wave video {                   /* video onda: mare che si muove davvero */
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: var(--wave-opacity, .40);
  filter: saturate(var(--wave-sat, 2)) brightness(var(--wave-bri, 1.2));
}
@media (prefers-reduced-motion: reduce) { .moments-wave video { display: none; } }
@media (prefers-reduced-motion: reduce) { .moments-wave { background: url('../img/onda-mare-schiuma.webp') center / cover no-repeat; } }
/* "buco" bianco ampio dietro le scritte: dove c'è il testo è già dissolto (bianco),
   l'onda resta colorata ai bordi e sfuma sotto fondendosi con la sezione seguente */
.moments::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(ellipse 64% 52% at 50% 15%, #f8fbfe 0%, #f8fbfe 50%, rgba(248, 251, 254, .45) 74%, transparent 95%);
}
.moments .wrap { max-width: var(--container); margin-inline: auto; padding-inline: var(--pad); }
.color-fill {
  font-family: var(--mt-sub-font, var(--font-serif)); font-weight: 500;
  font-size: clamp(1.25rem, 2.6vw, 1.75rem); line-height: 1.5; letter-spacing: -.005em;
  max-width: 42ch; margin: 1.4rem auto clamp(2.5rem, 5vw, 4rem);
  text-align: center; text-wrap: balance;
  color: var(--mt-sub); /* fallback no-JS: testo pieno */
}
.color-fill .cf-word { color: var(--mt-sub); display: inline-block; }
.color-fill .cf-strong { font-weight: var(--mt-sub-weight, 800); color: var(--mt-sub-strong, var(--mt-sub)); }
/* Titolo momenti: serif leggibile, centrato */
.moments-title {
  font-family: var(--font-serif); font-weight: 600;
  font-size: clamp(2.4rem, 6vw, 4.2rem); line-height: 1.08; letter-spacing: -.01em;
  color: var(--navy); text-align: center; text-wrap: balance;
}
.moments-title span { display: block; }
.moments-title .mt-l1 { color: var(--mt-l1); }
.moments-title .mt-l2 {                     /* riga 2 "mare": gradiente cobalto → azzurro */
  background: linear-gradient(92deg, var(--cobalto), #34a0dd);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
/* riga 2 a tinta piena (quando scelta dal pannello colori) */
.moments-title.solid-l2 .mt-l2 { background: none; color: var(--mt-l2); -webkit-text-fill-color: var(--mt-l2); }
.sea-divider { display: flex; justify-content: center; margin: 1.1rem 0 1.7rem; }
.sea-divider svg { width: clamp(170px, 26vw, 270px); height: auto; }
/* 3 immagini sfalsate: centrale più grande, laterali più piccole e abbassate */
.moments-grid {
  display: grid; grid-template-columns: 1fr 1.18fr 1fr; gap: clamp(1rem, 2.5vw, 2rem);
  align-items: start; max-width: 1100px; margin-inline: auto;
}
.moment {
  position: relative; border-radius: 26px; overflow: hidden;
  box-shadow: 0 30px 55px -22px rgba(7, 42, 85, .45), 0 8px 20px -10px rgba(7, 42, 85, .25);
  /* la rotazione/scala le gestisce GSAP sul transform; qui animiamo solo il sollevamento (translate) */
  transition: translate 400ms var(--ease-out-quint), box-shadow 400ms var(--ease-out-quint);
}
.moment-center { aspect-ratio: 3 / 4; }
.moment-side { aspect-ratio: 4 / 5; margin-top: clamp(2rem, 6vw, 5rem); }
.moment:hover { translate: 0 -6px; box-shadow: 0 40px 70px -22px rgba(7, 42, 85, .5); }
.moment picture { display: block; width: 100%; height: 100%; }
.moment img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease-out-quint); }
.moment:hover img { transform: scale(1.05); }
.moment figcaption {
  position: absolute; inset: auto 0 0 0; padding: 2.5rem 1.1rem 1.1rem; text-align: left;
  background: linear-gradient(to top, rgba(7, 42, 85, .85), transparent);
  color: #fff; font-family: var(--font-serif); font-weight: 600; font-size: 1.2rem;
}

/* ---------- Camere: slider stile hotel-loris (onda mobile + contatore) ---------- */
.rooms { padding-block: clamp(2rem, 4vw, 3.4rem) var(--space); text-align: center;
  /* il verde continua dalla sezione servizi e sfuma nel bianco */
  /* il gradiente chiude su --base PRIMA del bordo alto dell'immagine (~265px):
     così la valle, riempita di --base, ha esattamente lo stesso colore del fondo di fianco */
  background: linear-gradient(180deg, rgba(111, 143, 116, .16) 0, var(--rooms-bg, var(--base)) 180px); }
.rooms .wrap { max-width: var(--container); margin-inline: auto; padding-inline: var(--pad); }
.rooms-title { text-align: center; font-family: var(--title-font, var(--font-serif)); font-weight: var(--title-weight, 600); font-size: clamp(2.1rem, 4.8vw, 3.4rem); color: var(--navy); line-height: 1.08; }
.rooms .section-note { margin: .8rem auto 2rem; }
.rooms-select { position: relative; max-width: 780px; margin: 0 auto; }
.rooms-tabs { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; align-items: end; }
.room-tab {
  font: inherit; font-size: .82rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-60); background: none; border: 0; cursor: pointer; padding: .5rem .4rem; will-change: transform;
  transition: color 260ms ease, transform 460ms var(--ease-out-quint);
}
.room-tab:hover { color: var(--navy); }
/* la tab attiva SCENDE nel notch e risale quando se ne sceglie un'altra (come hotel-loris) */
.room-tab.is-active { color: var(--cobalto); transform: translateY(var(--tab-drop, 1.5rem)); pointer-events: none; }
.rooms-slider { position: relative; margin: 3.4rem auto 0; max-width: var(--rooms-w, 1020px); }
/* valle beige che scorre sotto la tab attiva e si incava nell'immagine (stile hotel-loris) */
.rooms-wave {
  position: absolute; top: -1px; left: var(--wave-x, 50%); translate: -50% 0; z-index: 4;
  width: 300px; max-width: 64%; pointer-events: none;
  transition: left 560ms var(--ease-out-quint);
}
.rooms-wave-dip { display: block; width: 100%; height: auto; }
/* la valle usa ESATTAMENTE lo stesso colore del fondo sezione: stessa variabile */
.rooms-wave-dip path { fill: var(--rooms-bg, var(--base)); }
.rooms-wave-label {
  position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); margin-bottom: .5rem;
  display: flex; flex-direction: column; align-items: center; gap: .3rem;
}
.rooms-wave-name { font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--cobalto); white-space: nowrap; line-height: 1; }
.rooms-wave-arrow { display: block; width: 17px; height: 16px; color: var(--cobalto); }
.rooms-stage {
  position: relative; border-radius: var(--r-card); overflow: hidden;
  aspect-ratio: var(--rooms-ar, 1.65); box-shadow: var(--shadow-2); background: #0b2038;
  container-type: inline-size;
}
.room-slide {
  position: absolute; inset: 0; margin: 0; opacity: 0; visibility: hidden;
  transition: opacity 600ms var(--ease-out-quint), visibility 0s linear 600ms;
}
.room-slide.is-active { opacity: 1; visibility: visible; transition: opacity 600ms var(--ease-out-quint); }
.room-slide img { width: 100%; height: 100%; object-fit: cover; }
.room-slide::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(7,42,85,.6) 0%, transparent 42%);
}
.room-caption {
  position: absolute; inset: auto 0 0 0; z-index: 2; color: #fff; text-align: center;
  padding: 0 4cqw clamp(1.1rem, 5cqw, 3rem);
}
.room-counter { font-family: var(--font-serif); display: inline-flex; align-items: baseline; gap: .1em; opacity: .9; }
.room-counter b { font-size: clamp(1.8rem, 7cqw, 4.5rem); font-weight: 500; line-height: 1; }
.room-counter i { font-style: normal; font-size: clamp(.9rem, 2.3cqw, 1.4rem); opacity: .7; }
.room-counter span { font-size: clamp(.9rem, 2.3cqw, 1.4rem); opacity: .7; }
.room-caption h3 { font-family: var(--font-serif); font-weight: 600; font-size: clamp(1.3rem, 5cqw, 3rem); margin-top: .2rem; }
.room-cap-meta { font-size: clamp(.66rem, 1.5cqw, .82rem); letter-spacing: .1em; text-transform: uppercase; opacity: .85; margin-top: .3rem; }
.room-cap-cta {
  display: inline-block; margin-top: 1rem; color: #fff; text-decoration: none;
  font-size: clamp(.66rem, 1.5cqw, .8rem); font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  border: 1.5px solid rgba(255,255,255,.7); border-radius: 999px; padding: .7rem 1.6rem;
  transition: background 200ms ease, color 200ms ease;
}
.room-cap-cta:hover { background: #fff; color: var(--navy); }

/* Frecce */
.rooms-nav {
  position: absolute; bottom: 1.4rem; z-index: 4; width: 46px; height: 46px; border-radius: 999px;
  border: 1.5px solid rgba(255,255,255,.6); background: rgba(7,42,85,.2); backdrop-filter: blur(4px);
  color: #fff; cursor: pointer; display: grid; place-items: center;
  transition: background 200ms ease, transform 200ms var(--ease-out-cubic);
}
.rooms-nav:hover { background: rgba(255,255,255,.9); color: var(--navy); }
.rooms-nav:active { transform: scale(.92); }
.rooms-nav .icon { width: 1.1em; height: 1.1em; }
.rooms-prev { left: 1.4rem; }
.rooms-prev .icon { transform: rotate(180deg); }
.rooms-next { right: 1.4rem; }

@media (max-width: 820px) {
  .moments-grid { grid-template-columns: 1fr; }
  .moment, .moment-center, .moment-side { aspect-ratio: 16 / 10; margin-top: 0; rotate: 0deg; }
  /* su schermo stretto le quattro voci in colonna unica si disallineavano
     e «Doppi servizi» sbordava: due per riga, allineate in alto e centrate */
  /* come hotel-loris da telefono: una sola riga che scorre di lato, la voce attiva
     viene portata al centro (sopra la valle) e le altre sbucano ai bordi */
  /* la riga esce dal .wrap per tutta la larghezza: cosi' le voci laterali sbucano
     dai bordi dello schermo invece di essere tagliate dal contenitore */
  .rooms { overflow-x: clip; }   /* la riga a tutta larghezza non deve allargare la pagina */
  .rooms-select { max-width: none; width: 100vw; margin-inline: calc(50% - 50vw); }
  .rooms-tabs { display: flex; grid-auto-flow: unset; gap: 2.2rem; align-items: end;
    overflow-x: auto; overscroll-behavior-x: contain; scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
    padding-inline: 50vw; box-sizing: border-box; font-size: .74rem; --tab-drop: 1.1rem;
    /* la voce attiva scende: serve aria sotto, se no la riga la taglia a meta' */
    padding-bottom: 1.6rem; margin-bottom: -1.6rem;
    /* le voci ai lati sfumano invece di finire di netto contro il bordo */
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 14%, #000 86%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0, #000 14%, #000 86%, transparent 100%); }
  .rooms-tabs::-webkit-scrollbar { display: none; }
  .room-tab { flex: 0 0 auto; white-space: nowrap; text-align: center; padding: .5rem .1rem; }
  .rooms-slider { margin-top: 2.6rem; }
  .rooms-select + .rooms-slider { margin-inline: auto; }
  .rooms-stage { aspect-ratio: 4 / 5; touch-action: pan-y; }
  .room-counter { font-size: 2.4rem; }
}

.residence, .quote, .where { position: relative; }

/* Carta da bollo (il francobollo del modello, in romagnolo) */
.quote .wrap { position: relative; }
.stamp {
  position: absolute; top: -.5rem; right: clamp(0px, 3vw, 3rem);
  width: clamp(110px, 12vw, 170px); height: auto;
  rotate: 4deg; z-index: 2;
  filter: drop-shadow(0 10px 22px rgba(60, 40, 20, .25));
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .intro-cover { display: none; }
  .site-header { opacity: 1; transform: none; pointer-events: auto; }
  .scroll-down { opacity: 1; }
  .scroll-down span::after { animation: none; }
  .split-line { transform: none !important; transition: none; }
  .script { -webkit-mask-image: none !important; mask-image: none !important; }
  .blur-in > img { filter: none !important; }
  .cover-waves i, .cover-logo { animation: none; }
  .day-scene { transition: none; }
  .day-tab { opacity: 1; }
  .day-tab.is-active .day-progress { animation: none; }
  .hero-media video { display: none; }
}

/* ---------- Pagine interne (subpage) ---------- */
body.subpage { background: var(--base); }
body.subpage .site-header { position: fixed; background: var(--header-bg, rgba(248,251,254,.92)); backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--hairline); height: 68px; opacity: 1; transform: none; pointer-events: auto; }
body.subpage .site-header .brand-logo { filter: none; }
/* sottopagina: header gia solido → il logo va colorato (non bianco come sul video) */
body.subpage[data-logotint="1"] .site-header .brand-tint { background: var(--logo-color, #43c520); filter: none; }
body.subpage .site-header .header-phone, body.subpage .site-header .nav-cta { color: var(--ink); text-shadow: none; }
body.subpage .site-header .nav-toggle span:not(.nav-label) { background: var(--ink); box-shadow: none; }
.subpage-hero { max-width: 820px; margin: 0 auto; padding: clamp(7rem,14vh,10rem) var(--pad) clamp(2.5rem,5vw,4rem); text-align: center; }
.subpage-eyebrow { font-size: .74rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--cobalto); margin-bottom: 1rem; }
.subpage-hero h1 { font-family: var(--title-font, var(--font-serif)); font-weight: var(--title-weight, 600); font-size: clamp(2.6rem,7vw,4.5rem); color: var(--navy); line-height: 1.05; }
.subpage-lead { color: var(--ink-60); font-size: 1.1rem; line-height: 1.7; max-width: 60ch; margin: 1.4rem auto 0; }

.apt-row {
  max-width: var(--container); margin: 0 auto; padding: clamp(2rem,5vw,4rem) var(--pad);
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem,5vw,4.5rem); align-items: center;
}
.apt-row-flip .apt-row-media { order: 2; }
/* colonna media: una sola foto grande cliccabile; tutte le foto vivono nel lightbox */
.apt-row-media { position: relative; }
.apt-hero { position: relative; display: block; width: 100%; aspect-ratio: 4 / 3.05; border: 0; padding: 0; margin: 0; cursor: pointer; background: none; border-radius: var(--r-card); overflow: hidden; box-shadow: var(--shadow-2); }
.apt-hero img { width: 100%; height: 100%; object-fit: cover; transition: transform 800ms var(--ease-out-quint); }
.apt-hero:hover img { transform: scale(1.045); }
.apt-hero::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0; transition: opacity 400ms ease; background: linear-gradient(to top, rgba(22,31,24,.5), rgba(22,31,24,.02) 45%, transparent); }
.apt-hero:hover::before, .apt-hero:focus-visible::before { opacity: 1; }
.apt-hero-badge { position: absolute; right: .85rem; bottom: .85rem; z-index: 2; display: inline-flex; align-items: center; gap: .4rem; background: rgba(31,46,35,.74); color: #fff; font-family: var(--font-body); font-size: .78rem; font-weight: 600; letter-spacing: .02em; padding: .45rem .85rem; border-radius: 999px; backdrop-filter: blur(4px); }
.apt-hero-badge svg { width: 1.05em; height: 1.05em; fill: currentColor; }
.apt-thumbs { display: none; }

/* ---------- Striscia foto delle tipologie (si sfoglia con le frecce o trascinando) ---------- */
.apt-strip { position: relative; margin-top: .7rem; }
.apt-strip-track {
  display: flex; gap: .55rem; overflow-x: auto; scroll-behavior: smooth;
  scroll-snap-type: x proximity; scrollbar-width: none; cursor: grab; padding-bottom: 2px;
}
.apt-strip-track::-webkit-scrollbar { display: none; }
.apt-strip-track.is-grabbing { cursor: grabbing; }
.apt-shot {
  flex: 0 0 clamp(108px, 22%, 170px); aspect-ratio: 4 / 3; padding: 0; border: 0; background: none;
  border-radius: calc(var(--r-card) * .55); overflow: hidden; cursor: pointer; scroll-snap-align: start;
  transition: transform 320ms var(--ease-out-quint), box-shadow 320ms ease;
}
.apt-shot img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; -webkit-user-drag: none; }
.apt-shot:hover { transform: translateY(-2px); box-shadow: var(--shadow-1); }
.apt-strip-nav {
  position: absolute; top: 50%; translate: 0 -50%; z-index: 2;
  width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--navy) 12%, transparent);
  background: rgba(255,255,255,.94); color: var(--navy); cursor: pointer;
  box-shadow: var(--shadow-1); opacity: 0; transition: opacity 220ms ease, background 200ms;
}
.apt-strip.is-scrollabile .apt-strip-nav { opacity: 1; }
.apt-strip-nav:hover { background: #fff; transform: translate(0,-50%) scale(1.08); }
.apt-strip-nav:disabled { opacity: 0 !important; pointer-events: none; }
.apt-strip-nav svg { width: 17px; height: 17px; }
.apt-strip-prev { left: -8px; } .apt-strip-next { right: -8px; }
@media (max-width: 900px) { .apt-strip-prev { left: 2px; } .apt-strip-next { right: 2px; } }
@media (hover: none) { .apt-strip-nav { display: none; } }

/* ---------- Frecce anche sulla galleria della piscina ---------- */
.psc-galleria-wrap { position: relative; }
.psc-nav {
  position: absolute; top: calc(50% - 1.2rem); translate: 0 -50%; z-index: 3;
  width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--navy) 10%, transparent);
  background: rgba(255,255,255,.92); color: var(--navy); cursor: pointer; box-shadow: var(--shadow-2);
  transition: opacity 220ms ease, transform 220ms var(--ease-out-quint);
}
.psc-nav:hover { transform: translate(0,-50%) scale(1.06); }
.psc-nav:disabled { opacity: 0; pointer-events: none; }
.psc-nav svg { width: 20px; height: 20px; }
.psc-prev { left: clamp(.6rem, 2vw, 1.6rem); } .psc-next { right: clamp(.6rem, 2vw, 1.6rem); }

/* ---------- Segnaposto mappa: bottone per mostrarla ---------- */
.pf-map-load {
  font: inherit; font-size: .74rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  margin: .2rem 0 .6rem; padding: .7rem 1.3rem; border-radius: 999px; cursor: pointer;
  border: 0; background: var(--salvia-deep, #4f7057); color: #fff;
}
.pf-map-load:hover { filter: brightness(1.08); }

/* ===================== 3 impaginazioni di pagina (switcher "Impaginazione") ===================== */
/* 1 · EDITORIALE (default): righe alternate ampie, con un filetto sottile tra le tipologie */
.apt-list > .apt-row + .apt-row { border-top: 1px solid color-mix(in srgb, var(--salvia-deep, #4f7057) 15%, transparent); }

/* 2 · VETRINA: griglia boutique di card (foto sopra, testo essenziale sotto) */
body[data-layout="vetrina"] .apt-list { max-width: var(--container); margin: 0 auto; padding: clamp(2rem,5vw,4rem) var(--pad); display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.8rem,3.5vw,3rem) clamp(1.6rem,3vw,2.6rem); }
body[data-layout="vetrina"] .apt-list > .apt-row, body[data-layout="vetrina"] .apt-list > .apt-row + .apt-row { max-width: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1.1rem; border-top: 0; }
body[data-layout="vetrina"] .apt-row-flip .apt-row-media { order: 0; }
body[data-layout="vetrina"] .apt-hero { aspect-ratio: 3 / 2.15; }
body[data-layout="vetrina"] .apt-row-body { padding: 0 .2rem .2rem; }
body[data-layout="vetrina"] .apt-row-desc { font-size: .98rem; }
body[data-layout="vetrina"] .apt-row-feats { display: none; }
body[data-layout="vetrina"] .apt-row-cta { margin-top: .4rem; }

/* 3 · RIVISTA (immersivo): pannello crema + foto che riempie tutto il lato, una alla volta e FLUSH al pannello (niente seam). Scorri col mouse per la successiva. */
body[data-layout="rivista"] .apt-list { display: flex; flex-direction: column; background: #f7f3ec; }
/* niente stacco netto tra il bianco della pagina e le fasce: ci sfuma dentro l'onda di mare
   (stesso video e stesso trattamento della sezione "momenti" in home) */
.apt-wave { display: none; }
/* l'onda fa già da respiro sotto al titolo: la testata chiude più stretta */
body[data-layout="rivista"] .subpage-hero { padding-bottom: clamp(.6rem, 1.4vw, 1.2rem); }
body[data-layout="rivista"] .apt-wave {
  display: block; position: relative; flex: 0 0 auto; pointer-events: none;
  height: clamp(170px, 21vw, 300px); overflow: hidden;
  background: linear-gradient(to bottom, var(--base) 0%, #f7f3ec 100%);
}
body[data-layout="rivista"] .apt-wave video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  /* più corpo: il blu del mare resta leggibile invece di sbiadire nel bianco */
  opacity: var(--wave-opacity, .72);
  filter: saturate(var(--wave-sat, 2.3)) brightness(var(--wave-bri, 1.02));
  /* rampa progressiva: il mare emerge e si dissolve senza nessuna linea netta */
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,.10) 14%, rgba(0,0,0,.34) 26%, rgba(0,0,0,.66) 38%, #000 52%, #000 64%, rgba(0,0,0,.62) 78%, rgba(0,0,0,.24) 90%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,.10) 14%, rgba(0,0,0,.34) 26%, rgba(0,0,0,.66) 38%, #000 52%, #000 64%, rgba(0,0,0,.62) 78%, rgba(0,0,0,.24) 90%, transparent 100%);
}
@media (prefers-reduced-motion: reduce) {
  body[data-layout="rivista"] .apt-wave video { display: none; }
  body[data-layout="rivista"] .apt-wave { background: url('../img/onda-mare-schiuma.webp') center / cover no-repeat; }
}
body[data-layout="rivista"] .apt-list::after {
  content: ""; display: block; flex: 0 0 auto; height: clamp(2rem, 5vw, 4rem);
  background: linear-gradient(to top, var(--base), #f7f3ec);
}

/* --- reveal allo scroll (attivo solo se il JS aggiunge .reveal-on: senza JS resta tutto visibile) --- */
@media (prefers-reduced-motion: no-preference) {
  body[data-layout="rivista"] .apt-list.reveal-on .apt-row-media {
    opacity: 0; transform: scale(1.04);
    transition: opacity 900ms var(--ease-out-quint), transform 1300ms var(--ease-out-quint);
  }
  body[data-layout="rivista"] .apt-list.reveal-on .apt-row.is-in .apt-row-media { opacity: 1; transform: none; }
  body[data-layout="rivista"] .apt-list.reveal-on .apt-row-body > * {
    opacity: 0; transform: translateY(18px);
    transition: opacity 700ms var(--ease-out-quint), transform 700ms var(--ease-out-quint);
  }
  body[data-layout="rivista"] .apt-list.reveal-on .apt-row.is-in .apt-row-body > * { opacity: 1; transform: none; }
  body[data-layout="rivista"] .apt-list.reveal-on .apt-row.is-in .apt-row-body > *:nth-child(1) { transition-delay: 120ms; }
  body[data-layout="rivista"] .apt-list.reveal-on .apt-row.is-in .apt-row-body > *:nth-child(2) { transition-delay: 200ms; }
  body[data-layout="rivista"] .apt-list.reveal-on .apt-row.is-in .apt-row-body > *:nth-child(3) { transition-delay: 280ms; }
  body[data-layout="rivista"] .apt-list.reveal-on .apt-row.is-in .apt-row-body > *:nth-child(4) { transition-delay: 360ms; }
  body[data-layout="rivista"] .apt-list.reveal-on .apt-row.is-in .apt-row-body > *:nth-child(5) { transition-delay: 440ms; }
}
body[data-layout="rivista"] .apt-list > .apt-row,
body[data-layout="rivista"] .apt-list > .apt-row + .apt-row {
  max-width: none; margin: 0; padding: 0; border-top: 0; gap: 0;
  display: grid; grid-template-columns: 34% 66%; align-items: stretch;
  min-height: 0;   /* l'altezza la detta il frame foto */
}
body[data-layout="rivista"] .apt-list > .apt-row.apt-row-flip { grid-template-columns: 66% 34%; }
/* pannello crema, pieno, testo centrato */
body[data-layout="rivista"] .apt-row-body {
  grid-column: 1; grid-row: 1; align-self: stretch;
  display: flex; flex-direction: column; justify-content: center; gap: .1rem;
  background: #f7f3ec; padding: clamp(1.8rem, 4vw, 4rem);
}
body[data-layout="rivista"] .apt-list > .apt-row.apt-row-flip .apt-row-body { grid-column: 2; }
body[data-layout="rivista"] .apt-row-body h2 { font-size: clamp(1.45rem, 2.4vw, 2rem); margin: .1rem 0 .3rem; }
body[data-layout="rivista"] .apt-row-desc { font-size: .93rem; }
/* dotazioni: visibili nella panel, compatte */
body[data-layout="rivista"] .apt-row-feats { display: grid; grid-template-columns: 1fr; gap: .12rem 1rem; margin: .7rem 0 0; font-size: .88rem; }
/* foto: riempie tutta la colonna, una alla volta, flush (niente seam), si trascina col mouse */
body[data-layout="rivista"] .apt-row-media {
  grid-column: 2; grid-row: 1;
  /* FRAME 3:2 = esattamente il formato delle foto orizzontali (così non vengono mai tagliate).
     Larghezza = colonna, altezza dedotta dal rapporto; align-self:center per non farlo stirare. */
  width: 100%; aspect-ratio: 3 / 2; height: auto; max-width: none; min-height: 0; align-self: center;
  display: flex; gap: 0; overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scroll-behavior: smooth;
  cursor: zoom-in; user-select: none; scrollbar-width: none;
}
body[data-layout="rivista"] .apt-list > .apt-row.apt-row-flip .apt-row-media { grid-column: 1; }
body[data-layout="rivista"] .apt-row-media::-webkit-scrollbar { display: none; }
body[data-layout="rivista"] .apt-row-media.is-grabbing { cursor: grabbing; }
body[data-layout="rivista"] .apt-thumbs { display: contents; }
body[data-layout="rivista"] .apt-hero,
body[data-layout="rivista"] .apt-thumb {
  flex: 0 0 100%; height: 100%; width: 100%; scroll-snap-align: start;
  position: relative; border: 0; padding: 0; margin: 0;
  background: #e9e4d9 center/cover no-repeat;   /* bg-image = la stessa foto, impostata via JS */
  border-radius: 0; box-shadow: none; overflow: hidden; cursor: inherit;
}
body[data-layout="rivista"] .apt-hero { aspect-ratio: auto; }
/* riempimento: la stessa foto sfocata, così non ci sono barre bianche su nessun formato */
body[data-layout="rivista"] .apt-hero::before,
body[data-layout="rivista"] .apt-thumb::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background-image: inherit; background-size: cover; background-position: center;
  filter: blur(30px) saturate(1.08) brightness(.9); transform: scale(1.25);
  /* la regola base dello scrim mette opacity:0 e la accende all'hover: qui il blur deve restare sempre visibile */
  opacity: 1; transition: none;
}
/* ORIZZONTALI: riempiono il frame, senza bordo (cover) */
body[data-layout="rivista"] .apt-hero img,
body[data-layout="rivista"] .apt-thumb img {
  position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; display: block;
  pointer-events: none; -webkit-user-drag: none; user-select: none;
}
/* VERTICALI: intere (contain), con il riempimento (blur/colore) ai lati */
body[data-layout="rivista"] .apt-hero.slide-portrait img,
body[data-layout="rivista"] .apt-thumb.slide-portrait img { object-fit: contain; }
body[data-layout="rivista"] .apt-hero:hover img { transform: none; }
/* piccolo contatore "N foto" per invitare a sfogliare (sta sulla prima foto) */
body[data-layout="rivista"] .apt-hero-badge { display: inline-flex; z-index: 2; top: auto; left: auto; right: 1rem; bottom: 1rem; }

/* Lightbox galleria appartamenti */
.apt-lightbox { position: fixed; inset: 0; z-index: 1000; background: rgba(12,16,13,.97); backdrop-filter: blur(6px); display: none; align-items: center; justify-content: center; padding: clamp(.6rem,2vw,1.4rem); }
.apt-lightbox.is-open { display: flex; }
.apt-lb-fig { margin: 0; max-width: 96vw; display: flex; flex-direction: column; gap: .6rem; align-items: center; }
.apt-lb-fig img { max-width: 96vw; max-height: 86vh; object-fit: contain; border-radius: 10px; box-shadow: 0 30px 80px -30px rgba(0,0,0,.75); }
.apt-lb-cap { color: rgba(255,255,255,.92); font-family: var(--font-body); font-size: .98rem; text-align: center; }
.apt-lb-count { color: rgba(255,255,255,.55); font-family: var(--font-body); font-size: .8rem; letter-spacing: .06em; }
.apt-lb-btn { position: absolute; background: rgba(255,255,255,.13); border: 0; color: #fff; cursor: pointer; width: 48px; height: 48px; border-radius: 999px; display: grid; place-items: center; transition: background 180ms ease; }
.apt-lb-btn:hover { background: rgba(255,255,255,.26); }
.apt-lb-btn svg { width: 22px; height: 22px; stroke: currentColor; stroke-width: 2; fill: none; }
.apt-lb-close { top: 1.2rem; right: 1.2rem; }
.apt-lb-nav { top: 50%; transform: translateY(-50%); }
.apt-lb-prev { left: 1.2rem; } .apt-lb-next { right: 1.2rem; }
.apt-lb-prev svg { transform: rotate(180deg); }
@media (max-width: 640px) { .apt-lb-nav { top: auto; bottom: 1.1rem; transform: none; } .apt-lb-prev { left: calc(50% - 58px); } .apt-lb-next { right: calc(50% - 58px); } }
@media (prefers-reduced-motion: reduce) { .apt-hero img, .apt-thumb img { transition: none; } }
.apt-row-tag { font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--cobalto); }
.apt-row-body h2 { font-family: var(--font-serif); font-weight: 600; font-size: clamp(2rem,4vw,2.8rem); color: var(--navy); margin: .3rem 0 .8rem; }
.apt-row-desc { color: var(--ink-60); font-size: 1.05rem; line-height: 1.7; }
.apt-row-feats { list-style: none; margin: 1.4rem 0; display: grid; grid-template-columns: 1fr 1fr; gap: .5rem 1.2rem; }
.apt-row-feats li { position: relative; padding-left: 1.4rem; font-size: .95rem; color: var(--ink); }
.apt-row-feats li::before { content: "✓"; position: absolute; left: 0; color: var(--verde-brand, #43c520); font-weight: 700; }
.apt-row-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 1.2rem; margin-top: 1.6rem; }
.apt-row-alt { color: var(--ink-60); font-size: .95rem; text-decoration: none; }
.apt-row-alt:hover { color: var(--cobalto); }

.subpage-cta-band {
  background: linear-gradient(155deg, var(--cobalto), var(--navy)); color: #fff; text-align: center;
  padding: clamp(3.5rem,8vw,6rem) var(--pad); margin-top: 2rem;
  display: flex; flex-direction: column; align-items: center; gap: .85rem;
}
.subpage-cta-band .cta-kicker { font-family: var(--font-body); font-size: .74rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: rgba(255,255,255,.62); margin: 0; }
.subpage-cta-band .cta-title, .subpage-cta-band p { font-family: var(--title-font, var(--font-serif)); font-weight: 500; font-size: clamp(2.4rem,5.6vw,3.9rem); line-height: 1.04; letter-spacing: -.01em; max-width: 18ch; text-wrap: balance; margin: 0; }
.subpage-cta-band .cta-sub { font-family: var(--font-body); font-weight: 400; font-size: 1.16rem; line-height: 1.6; color: rgba(255,255,255,.84); max-width: 46ch; text-wrap: balance; margin: .15rem 0 0; }
.subpage-cta-band .btn-wa { margin-top: 1.4rem; }
/* fascia con la foto sotto: la famiglia al residence, velata col blu della palette perché il bianco resti leggibile */
.subpage-cta-band.cta-foto { position: relative; isolation: isolate; background-color: var(--navy); background-size: cover; background-position: center; background-repeat: no-repeat; text-shadow: 0 2px 18px rgba(7, 26, 48, .35); }
.subpage-cta-band.cta-foto::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(155deg, color-mix(in srgb, var(--cobalto) 72%, transparent), color-mix(in srgb, var(--navy) 88%, transparent));
}
@media (max-width: 640px) {
  .subpage-cta-band.cta-foto::before { background: linear-gradient(180deg, color-mix(in srgb, var(--cobalto) 78%, transparent), color-mix(in srgb, var(--navy) 92%, transparent)); }
}

@media (max-width: 820px) {
  .apt-row { grid-template-columns: 1fr; gap: 1.5rem; }
  .apt-row-flip .apt-row-media { order: 0; }
  .apt-row-feats { grid-template-columns: 1fr; }
  .apt-hero, .apt-row-flip .apt-hero { aspect-ratio: 16 / 10; }
  /* impaginazioni: su mobile a colonna singola */
  body[data-layout="vetrina"] .apt-list { grid-template-columns: 1fr; padding-block: clamp(1.5rem,6vw,2.5rem); }
  /* Rivista impilata: foto sopra, pannello crema sotto */
  body[data-layout="rivista"] .apt-list > .apt-row,
  body[data-layout="rivista"] .apt-list > .apt-row + .apt-row,
  body[data-layout="rivista"] .apt-list > .apt-row.apt-row-flip { grid-template-columns: 1fr; min-height: 0; }
  body[data-layout="rivista"] .apt-row-body,
  body[data-layout="rivista"] .apt-list > .apt-row + .apt-row .apt-row-body,
  body[data-layout="rivista"] .apt-list > .apt-row.apt-row-flip .apt-row-body { grid-column: 1; grid-row: 2; padding: clamp(1.4rem,6vw,2rem); }
  body[data-layout="rivista"] .apt-row-media,
  body[data-layout="rivista"] .apt-list > .apt-row + .apt-row .apt-row-media,
  body[data-layout="rivista"] .apt-list > .apt-row.apt-row-flip .apt-row-media { grid-column: 1; grid-row: 1; height: auto; width: 100%; max-width: none; aspect-ratio: 3 / 2; }
}

/* Servizi */
.srv-grid-wrap { max-width: var(--container); margin: 0 auto; padding: 0 var(--pad); }
/* flex invece di grid: così le card avanzate nell'ultima riga restano centrate
   invece di accumularsi a sinistra lasciando il buco a destra */
.srv-grid { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 1.4rem; }
.srv-grid > li { flex: 1 1 300px; }
@media (min-width: 1000px) { .srv-grid > li { max-width: calc((100% - 2.8rem) / 3); } }
@media (min-width: 660px) and (max-width: 999px) { .srv-grid > li { max-width: calc((100% - 1.4rem) / 2); } }
.srv-grid li { background: color-mix(in srgb, var(--tile, var(--cobalto)) 5%, var(--bianco)); border-radius: var(--r-card); padding: 1.7rem; box-shadow: var(--shadow-1); display: flex; gap: 1.1rem; align-items: flex-start;
  transition: transform 280ms var(--ease-out-quint), box-shadow 280ms ease; }
.srv-grid li:hover { transform: translateY(-5px); box-shadow: var(--shadow-2); }
/* piastrella-icona colorata: un colore per servizio (accento su superficie neutra) */
.srv-tile { width: 54px; height: 54px; border-radius: 15px; flex-shrink: 0; display: grid; place-items: center;
  background: color-mix(in srgb, var(--tile, var(--cobalto)) 15%, #fff); color: var(--tile, var(--cobalto)); }
.srv-tile .icon { width: 1.55em; height: 1.55em; }
.srv-grid strong { display: block; font-family: var(--font-serif); font-size: 1.3rem; color: var(--navy); margin-bottom: .3rem; }
.srv-grid p { color: var(--ink-60); font-size: .95rem; line-height: 1.6; }
.srv-notes { max-width: 760px; margin: clamp(2.5rem,5vw,4rem) auto 0; padding: 0 var(--pad); }
.srv-notes h2 { font-family: var(--font-serif); font-weight: 600; font-size: 1.8rem; color: var(--navy); margin-bottom: 1rem; }
.srv-notes ul { list-style: none; display: flex; flex-direction: column; gap: .8rem; }
.srv-notes li { position: relative; padding-left: 1.6rem; color: var(--ink-60); line-height: 1.6; }
.srv-notes li::before { content: "•"; position: absolute; left: .3rem; color: var(--cobalto); font-weight: 700; }

/* Prezzi */
/* ======== Pagina Prezzi · listino a fasce stagionali ======== */
/* decorazioni vegetali della pagina prezzi (regolabili con ?edera) */
.listino { position: relative; z-index: 0; }
.listino > *:not(.listino-deco) { position: relative; z-index: 1; }
.listino-deco { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 100vw; height: 100%; z-index: 0; pointer-events: none; overflow: hidden; }

/* Sfondo vegetale sotto le card: fasce di foglie grandi, sfocate e tenui */
.listino-deco .fol { position: absolute; }
.listino-deco .fol img { display: block; width: 100%; height: auto; opacity: var(--fol-op, 1); filter: blur(var(--fol-blur, .5px)) saturate(.95); }
.listino-deco .fol-1 { top: var(--fol1-top, 16%); left: -8%; width: 118%; }
.listino-deco .fol-2 { top: var(--fol2-top, 33%); left: -10%; width: 118%; }
.listino-deco .fol-3 { top: var(--fol3-top, 63%); left: 6%;  width: 92%; }
.listino-deco .fol-1 img { transform: scale(var(--fol-scale, 1.05)); }
.listino-deco .fol-2 img { transform: scale(var(--fol-scale, 1)) scaleX(-1); }
.listino-deco .fol-3 img { transform: scale(calc(var(--fol-scale, 1) * 1.4)); }
.listino[data-fol="off"] .fol { display: none; }

/* Edera (tralci) agli angoli, in primo piano */
.listino-deco .ivy { position: absolute; }
.listino-deco .ivy img { display: block; width: 100%; height: auto; -webkit-mask-image: linear-gradient(to bottom, #000 60%, transparent 96%); mask-image: linear-gradient(to bottom, #000 60%, transparent 96%); filter: saturate(.96) drop-shadow(0 16px 22px rgba(18,38,20,.22)); opacity: var(--ivy-op, 1); }
.listino-deco .ivy-1 { top: var(--iv1-top, 3%);  left: var(--iv1-left, -28%); width: var(--iv1-width, 43%); }
.listino-deco .ivy-2 { top: var(--iv2-top, 1%);  left: var(--iv2-left, 88%);  width: var(--iv2-width, 60%); }
.listino-deco .ivy-3 { top: var(--iv3-top, 27%); left: var(--iv3-left, -37%); width: var(--iv3-width, 49%); }
.listino-deco .ivy-4 { top: var(--iv4-top, 33%); left: var(--iv4-left, 84%);  width: var(--iv4-width, 48%); }
.listino-deco .ivy-5 { top: var(--iv5-top, 83%); left: var(--iv5-left, -60%); width: var(--iv5-width, 10%); }
.listino-deco .ivy-1 img { transform: rotate(var(--iv1-rot, 0deg))   scaleX(var(--iv1-flip, 1)); }
.listino-deco .ivy-2 img { transform: rotate(var(--iv2-rot, -7deg))  scaleX(var(--iv2-flip, -1)); }
.listino-deco .ivy-3 img { transform: rotate(var(--iv3-rot, -59deg)) scaleX(var(--iv3-flip, -1)); }
.listino-deco .ivy-4 img { transform: rotate(var(--iv4-rot, 44deg))  scaleX(var(--iv4-flip, 1)); }
.listino-deco .ivy-5 img { transform: rotate(var(--iv5-rot, -21deg)) scaleX(var(--iv5-flip, 1)); }
.listino[data-ivy="off"] .ivy { display: none; }
@media (max-width: 720px) { .listino-deco .ivy-2, .listino-deco .ivy-4, .listino-deco .ivy-5 { display: none; } .listino-deco .ivy-1 { width: 54%; } }
.listino { max-width: 940px; margin: 0 auto; padding: clamp(6rem,12vh,8rem) var(--pad) 0;
  --f-bassa: #6f8f74; --f-media: #2f8fbf; --f-alta: #d79a2b; --f-picco: #d8632f; }
/* hero asimmetrico */
/* hero centrato + animato all'ingresso */
.lst-hero { text-align: center; max-width: 680px; margin: 0 auto; }
.lst-hero > * { opacity: 0; transform: translateY(18px); animation: lstUp .8s var(--ease-out-quint) both; }
.lst-hero > *:nth-child(1) { animation-delay: .05s; }
.lst-hero > *:nth-child(2) { animation-delay: .16s; }
.lst-hero > *:nth-child(3) { animation-delay: .27s; }
.lst-hero > *:nth-child(4) { animation-delay: .38s; }
@keyframes lstUp { to { opacity: 1; transform: none; } }
.lst-title { font-family: var(--title-font, var(--font-serif)); font-weight: 500; font-size: clamp(2.3rem,5.6vw,3.9rem); line-height: 1.03; color: var(--navy); margin: 0; letter-spacing: -.01em; }
.lst-title em { font-style: italic; color: var(--salvia-deep); }
.lst-lead { color: var(--ink-60); font-size: 1.05rem; line-height: 1.7; max-width: 48ch; margin: 1rem auto 0; }
.lst-incl { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem .7rem; margin: 1.3rem 0 0; }
.lst-incl li { display: inline-flex; align-items: center; gap: .4rem; font-size: .86rem; font-weight: 600; color: var(--navy); background: var(--bianco); border: 1px solid var(--hairline); padding: .4rem .8rem; border-radius: 999px; }
.lst-incl .icon { width: 1.05em; height: 1.05em; color: var(--salvia-deep); }
.lst-anchor { display: inline-flex; align-items: baseline; gap: .5rem; margin: 1.4rem auto 0; padding: .5rem 1.1rem; border: 1px solid var(--hairline); border-radius: 999px; background: var(--bianco); }
.lst-anchor span { font-size: .82rem; color: var(--ink-60); }
.lst-anchor strong { font-family: var(--font-serif); font-weight: 600; font-size: 1.7rem; color: var(--navy); line-height: 1; }
@media (prefers-reduced-motion: reduce) { .lst-hero > * { animation: none; opacity: 1; transform: none; } .lst-gallery figure { animation: none; opacity: 1; transform: none; } }
/* galleria atmosfera */
.lst-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: .9rem; margin-top: 2.4rem; }
.lst-gallery figure { position: relative; margin: 0; height: clamp(180px, 24vw, 250px); border-radius: var(--r-card); overflow: hidden; box-shadow: var(--shadow-1); opacity: 0; transform: translateY(18px); animation: lstUp .8s var(--ease-out-quint) both; animation-delay: calc(.45s + var(--d) * .1s); }
.lst-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease-out-quint); }
.lst-gallery figure:hover img { transform: scale(1.05); }
.lst-gallery figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.4rem .9rem .8rem; color: #fff; font-family: var(--font-serif); font-size: 1.02rem; background: linear-gradient(to top, rgba(14,42,74,.72), transparent); }
/* controlli: selettore tipologia + legenda */
.lst-controls { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 1rem; margin: 1.6rem 0 .4rem; }
.lst-types { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; }
.lst-type { font: inherit; text-align: left; cursor: pointer; background: var(--bianco); border: 1.5px solid var(--hairline); border-radius: 14px; padding: .5rem .9rem; transition: border-color 180ms ease, background 180ms ease, transform 180ms ease; }
.lst-type b { display: block; font-size: .92rem; color: var(--navy); }
.lst-type span { font-size: .74rem; color: var(--ink-60); }
.lst-type:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--tile, var(--cobalto)) 55%, var(--hairline)); }
.lst-type.is-active { border-color: var(--tile, var(--cobalto)); background: color-mix(in srgb, var(--tile, var(--cobalto)) 9%, #fff); }
.lst-legend { display: flex; align-items: center; gap: .55rem; flex-wrap: wrap; }
.lst-legend .lg-key { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-60); font-weight: 600; }
.lst-legend .lg { font-size: .76rem; font-weight: 600; color: var(--navy); display: inline-flex; align-items: center; gap: .35rem; }
.lst-legend .lg::before { content: ""; width: 11px; height: 11px; border-radius: 3px; }
.lg.band-bassa::before { background: var(--f-bassa); } .lg.band-media::before { background: var(--f-media); }
.lg.band-alta::before { background: var(--f-alta); } .lg.band-picco::before { background: var(--f-picco); }
/* listino: tabella classica */
.prezzi-table-wrap { overflow-x: auto; border-radius: var(--r-card); box-shadow: var(--shadow-2); background: var(--bianco); margin-top: 1rem; }
.prezzi-table { width: 100%; border-collapse: collapse; min-width: 580px; }
.prezzi-table caption { caption-side: top; text-align: left; padding: 1rem 1.2rem .2rem; font-size: .78rem; letter-spacing: .04em; text-transform: uppercase; color: var(--salvia-deep); font-weight: 600; }
.prezzi-table thead th { background: var(--navy); color: #fff; font-family: var(--font-body); font-weight: 600; font-size: .9rem; padding: .85rem 1rem; text-align: center; }
.prezzi-table thead th:first-child { text-align: left; }
.prezzi-table thead th span { display: inline-block; margin-left: .35rem; width: 1.35em; height: 1.35em; line-height: 1.35em; border-radius: 50%; background: rgba(255,255,255,.18); font-size: .72rem; }
.prezzi-table th[scope="row"] { text-align: left; color: var(--navy); font-family: var(--font-body); font-weight: 600; white-space: nowrap; }
.prezzi-table td, .prezzi-table th[scope="row"] { padding: .72rem 1rem; border-bottom: 1px solid var(--hairline); }
.prezzi-table td { text-align: center; color: var(--navy); font-family: var(--font-serif); font-size: 1.2rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.prezzi-table td::before { content: "€ "; color: var(--ink-60); font-size: .62em; font-family: var(--font-body); }
.prezzi-table tbody tr:nth-child(even) { background: color-mix(in srgb, var(--salvia-deep) 4%, #fff); }
.prezzi-table tr.pk-alta { background: color-mix(in srgb, var(--f-alta) 9%, #fff); }
.prezzi-table tr.pk-picco { background: color-mix(in srgb, var(--f-picco) 13%, #fff); }
.prezzi-table tr.pk-alta:hover { background: color-mix(in srgb, var(--f-alta) 16%, #fff); }
.prezzi-table tr.pk-picco:hover { background: color-mix(in srgb, var(--f-picco) 20%, #fff); }
.prezzi-table tr:last-child td, .prezzi-table tr:last-child th { border-bottom: 0; }
.prezzi-table .wk { display: inline-block; }
.prezzi-table .arw { color: var(--ink-60); font-weight: 400; }
/* badge alta stagione / ferragosto: compaiono solo all'hover della riga */
.prezzi-badge { display: inline-block; margin-left: .5rem; font-size: .62rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: .12rem .5rem; border-radius: 999px; vertical-align: middle; opacity: 0; transform: translateX(-5px); transition: opacity .25s ease, transform .25s ease; pointer-events: none; }
.prezzi-badge.alta { background: color-mix(in srgb, var(--f-alta) 32%, #fff); color: #8a6410; }
.prezzi-badge.picco { background: var(--f-picco); color: #fff; }
.prezzi-table tbody tr:hover .prezzi-badge, .prezzi-table tbody tr:focus-within .prezzi-badge { opacity: 1; transform: none; }
/* filtro: mostra solo la tipologia scelta */
.listino[data-only="A"] .prezzi-table [data-t]:not([data-t="A"]),
.listino[data-only="B"] .prezzi-table [data-t]:not([data-t="B"]),
.listino[data-only="C"] .prezzi-table [data-t]:not([data-t="C"]),
.listino[data-only="D"] .prezzi-table [data-t]:not([data-t="D"]) { display: none; }
/* reveal allo scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease-out-quint), transform .7s var(--ease-out-quint); transition-delay: calc(var(--i, 0) * .08s); }
.reveal.is-in { opacity: 1; transform: none; }
.prezzi-table-wrap.reveal { transform: none; }
.prezzi-table tbody tr { opacity: 0; transform: translateY(10px); transition: opacity .5s var(--ease-out-quint), transform .5s var(--ease-out-quint); transition-delay: calc(var(--i, 0) * .035s); }
.prezzi-table-wrap.is-in tbody tr { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal, .prezzi-table tbody tr { opacity: 1 !important; transform: none !important; transition: none; } }
.lst-note { color: var(--ink-60); font-size: .9rem; line-height: 1.6; margin: 1.4rem auto 0; text-align: center; max-width: 60ch; }
/* fatti: incluso / da sapere */
.lst-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; margin-top: 2.4rem; }
.lst-fact { background: var(--bianco); border-radius: var(--r-card); box-shadow: var(--shadow-1); padding: 1.6rem 1.8rem; }
.lst-fact h3 { display: flex; align-items: center; gap: .5rem; font-family: var(--font-serif); font-weight: 600; font-size: 1.25rem; color: var(--navy); margin-bottom: .9rem; }
.lst-fact h3 .icon { width: 1.2em; height: 1.2em; color: var(--salvia-deep); }
.lst-fact ul { list-style: none; display: flex; flex-direction: column; gap: .55rem; }
.lst-fact li { position: relative; padding-left: 1.2rem; color: var(--ink-60); line-height: 1.5; font-size: .95rem; }
.lst-fact li::before { content: ""; position: absolute; left: 0; top: .55em; width: 6px; height: 6px; border-radius: 50%; background: var(--salvia); }
/* come si prenota */
.lst-howto { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 1.4rem; }
.lst-step { display: flex; gap: .8rem; align-items: flex-start; background: color-mix(in srgb, var(--salvia) 9%, var(--bianco)); border-radius: var(--r-card); padding: 1.1rem 1.2rem; }
.lst-step em { font-style: normal; flex-shrink: 0; width: 1.9rem; height: 1.9rem; border-radius: 50%; background: var(--salvia-deep); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .9rem; }
.lst-step b { display: block; color: var(--navy); font-size: .95rem; margin-bottom: .1rem; }
.lst-step span { color: var(--ink-60); font-size: .88rem; line-height: 1.45; }
@media (max-width: 720px) {
  .lst-gallery { grid-template-columns: 1fr 1fr; }
  .lst-gallery figure:last-child { grid-column: 1 / -1; }
  .lst-facts, .lst-howto { grid-template-columns: 1fr; }
  .wk { flex-direction: column; align-items: flex-start; gap: .5rem; }
  .wk-prices { align-self: stretch; justify-content: space-between; }
}

/* Contatti */
.contatti-wrap { max-width: 780px; margin: 0 auto; padding: 0 var(--pad); }
.contatti-block { margin-bottom: 2rem; }
.contatti-info h2 { font-family: var(--font-serif); font-weight: 600; font-size: 1.8rem; color: var(--navy); }
.contatti-info h3 { font-family: var(--font-serif); font-weight: 600; font-size: 1.3rem; color: var(--navy); margin-bottom: .7rem; }
.contatti-info address { font-style: normal; color: var(--ink-60); line-height: 1.7; margin-top: .5rem; }
.contatti-lines { display: flex; flex-direction: column; gap: .3rem; margin-bottom: 1.2rem; }
.contatti-lines a { color: var(--cobalto); text-decoration: none; }
.contatti-lines a.big { font-family: var(--font-serif); font-size: 1.6rem; font-weight: 600; color: var(--navy); }
.contatti-how { list-style: none; display: flex; flex-direction: column; gap: 1rem; }
.contatti-how li { display: flex; gap: .9rem; align-items: flex-start; }
.contatti-how .srv-tile { width: 44px; height: 44px; border-radius: 12px; }
.contatti-how .srv-tile .icon { width: 1.35em; height: 1.35em; }
.contatti-how strong { display: block; color: var(--navy); }
.contatti-how small { color: var(--ink-60); }
.btn-outline { display: inline-flex; align-items: center; gap: .5rem; margin-top: 1.2rem; padding: .7rem 1.4rem; border: 1.5px solid var(--cobalto); color: var(--cobalto); border-radius: 999px; text-decoration: none; font-weight: 600; font-size: .9rem; transition: background 200ms ease, color 200ms ease; }
.btn-outline:hover { background: var(--cobalto); color: #fff; }
.btn-outline .icon { width: 1.1em; height: 1.1em; }
.contatti-fisc { font-size: .82rem; color: var(--ink-60); margin-top: 1rem; }

/* ===================== Contatti: 3 impaginazioni a confronto ===================== */

/* A · CENTRATO — editoriale e minimale, tutto su un asse solo */
body[data-contatti="centro"] .contatti-wrap { max-width: 640px; text-align: center; }
body[data-contatti="centro"] .contatti-block { margin-bottom: 2.6rem; }
body[data-contatti="centro"] .contatti-block + .contatti-block { padding-top: 2.4rem; border-top: 1px solid color-mix(in srgb, var(--salvia-deep,#4f7057) 16%, transparent); }
body[data-contatti="centro"] .contatti-info h2 { font-size: 1.5rem; letter-spacing: .01em; }
body[data-contatti="centro"] .contatti-info h3 { font-size: .74rem; font-family: var(--font-body); font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; color: var(--salvia-deep,#4f7057); margin-bottom: 1.1rem; }
body[data-contatti="centro"] .contatti-lines { align-items: center; gap: .45rem; margin-bottom: 1.6rem; }
body[data-contatti="centro"] .contatti-lines a.big { font-size: 2.4rem; line-height: 1.1; }
body[data-contatti="centro"] .contatti-how { flex-direction: row; justify-content: center; gap: 2.2rem; text-align: center; }
body[data-contatti="centro"] .contatti-how li { flex-direction: column; align-items: center; gap: .55rem; max-width: 15rem; }
body[data-contatti="centro"] .contatti-how small { display: block; margin-top: .2rem; }
body[data-contatti="centro"] .contatti-dir { margin-top: 1.8rem; }
body[data-contatti="centro"] .contatti-fisc { margin-top: 2.4rem; }


@media (max-width: 820px) {
  body[data-contatti="centro"] .contatti-how { flex-direction: column; align-items: center; }
}
.contatti-map { position: relative; border-radius: var(--r-card); overflow: hidden; box-shadow: var(--shadow-2); }
.contatti-map iframe { display: block; width: 100%; height: min(60vh, 520px); border: 0; }
@media (max-width: 820px) { .prezzi-cols, .contatti-wrap { grid-template-columns: 1fr; } }

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed; left: 50%; bottom: 1.2rem; translate: -50% 0; z-index: 70;
  width: min(680px, calc(100vw - 2rem));
  background: var(--navy); color: rgba(255,255,255,.9); border-radius: var(--r-card);
  box-shadow: 0 20px 50px -14px rgba(7, 42, 85, .5);
  animation: cookie-rise 500ms cubic-bezier(.19,1,.22,1) both;
}
.cookie-banner[hidden] { display: none; }
@keyframes cookie-rise { from { opacity: 0; transform: translateY(24px); } }
.cookie-inner { padding: 1.2rem 1.4rem; display: flex; align-items: center; gap: 1.4rem; flex-wrap: wrap; }
.cookie-inner p { font-size: .9rem; line-height: 1.55; margin: 0; flex: 1; min-width: 240px; }
.cookie-inner a { color: var(--acqua); }
.cookie-actions { display: flex; gap: .7rem; }
.cookie-btn {
  font: inherit; font-size: .85rem; font-weight: 600; cursor: pointer;
  padding: .6rem 1.3rem; border-radius: 999px; border: 1.5px solid transparent;
  transition: transform 150ms var(--ease-out-cubic), background 150ms ease;
}
.cookie-btn:active { transform: scale(.96); }
.cookie-reject { background: transparent; color: rgba(255,255,255,.85); border-color: rgba(255,255,255,.4); }
.cookie-reject:hover { border-color: #fff; }
.cookie-accept { background: var(--verde-brand, #43c520); color: #062a0f; }
.cookie-accept:hover { filter: brightness(1.08); }

/* Footer legale */
.footer-legal { display: flex; gap: 1.2rem; flex-wrap: wrap; justify-content: center; padding: 0 var(--pad) .7rem; font-size: .82rem; }
.footer-legal a, .cookie-reopen {
  font: inherit; font-size: .8rem; color: color-mix(in srgb, var(--footer-fg, #fff) 62%, transparent); text-decoration: none;
  background: none; border: 0; cursor: pointer; padding: 0;
}
.footer-legal a:hover, .cookie-reopen:hover { color: var(--footer-fg, #fff); }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .hbtn-phone .hbtn-txt { display: none; }        /* solo icona sotto i 1020px */
  .hbtn-phone { width: 46px; padding: 0; }
  .residence .wrap { grid-template-columns: 1fr; }
  .residence .script, .residence .manifesto, .residence .arch-figure, .residence .residence-cols { grid-column: 1; grid-row: auto; }
  .residence .arch-figure { margin-block: 2.5rem 1rem; }
  .residence-cols, .faq-grid { grid-template-columns: 1fr; }
  .rev-grid, .where-facts { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; gap: 1.8rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .rev-card-mid { transform: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.6rem; }
}
@media (max-width: 640px) {
  .hbtn-phone { display: none; }                  /* su smartphone restano WhatsApp + Preventivo + menu */
  .hbtn-cta { padding: 0 1.15rem; font-size: .8rem; }
  .apartments-head { grid-template-columns: 1fr; }
  .rail-nav { grid-row: auto; grid-column: 1; }
  .pool-band { height: 60dvh; }
}

/* ---------- Pagina La piscina ---------- */
/* Apertura a tutto schermo: l'intestazione sta trasparente sopra il video e si solidifica
   scorrendo, esattamente come in home (la classe .is-solid la mette gia' main.js). */
body.subpage[data-apertura="piena"] .site-header {
  background: transparent; backdrop-filter: none; box-shadow: none; height: 84px;
}
body.subpage[data-apertura="piena"] .site-header.is-solid {
  background: var(--header-bg, rgba(248, 251, 254, .92)); backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--hairline); height: 68px;
}
body.subpage[data-apertura="piena"][data-logotint="1"] .site-header:not(.is-solid) .brand-tint {
  background: #fff; filter: drop-shadow(0 1px 8px rgba(14, 42, 74, .45));
}
body.subpage[data-apertura="piena"] .site-header:not(.is-solid) .brand-logo {
  filter: drop-shadow(0 1px 8px rgba(14, 42, 74, .45));
}

/* 1. apertura a tutto schermo, costruita come il hero della home:
      media a schermo pieno, dissolvenza bianca in basso, parallasse allo scroll */
.psc-hero { position: relative; height: 100dvh; min-height: 480px; overflow: hidden; }
.psc-hero-media { position: absolute; inset: 0; will-change: transform; }
.psc-hero-media img,
.psc-hero-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* come nella home: il video sta sopra e sale in dissolvenza, l'immagine resta dietro come rete */
.psc-hero-media video { z-index: 2; opacity: 0; transition: opacity 1200ms ease; }
.psc-hero-media video.is-playing { opacity: 1; }
.psc-hero::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 22%;
  background: linear-gradient(to top, var(--base), transparent);
  z-index: 3; pointer-events: none;
}
.psc-scroll {
  position: absolute; bottom: 2rem; left: 50%; translate: -50% 0; z-index: 4;
  color: var(--navy); text-decoration: none;
  font-size: .68rem; font-weight: 600; letter-spacing: .3em; text-transform: uppercase;
  display: flex; flex-direction: column; align-items: center; gap: .7rem;
}
.psc-scroll span { display: block; width: 1px; height: 42px; background: currentColor; opacity: .7; }
@media (prefers-reduced-motion: no-preference) {
  .psc-scroll span { animation: psc-filo 2.4s ease-in-out infinite; transform-origin: top; }
}
@keyframes psc-filo { 0%,100% { transform: scaleY(.35); opacity: .35; } 50% { transform: scaleY(1); opacity: .8; } }

/* 2. blocco titolo centrato, subito sotto la foto */
.psc-intro { max-width: 820px; margin: 0 auto; padding: clamp(3rem, 6vw, 5rem) var(--pad) clamp(2.4rem, 5vw, 3.6rem); text-align: center; }
.psc-occhiello { font-size: .74rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  color: var(--salvia-deep, #4f7057); margin-bottom: 1rem; }
.psc-intro h1 { font-family: var(--title-font, var(--font-serif)); font-weight: var(--title-weight, 600);
  font-size: clamp(2.4rem, 6vw, 4.2rem); color: var(--navy); line-height: 1.05; letter-spacing: -.01em;
  margin: 0; text-wrap: balance; }
.psc-intro-lead { color: var(--ink-60); font-size: 1.1rem; line-height: 1.7; max-width: 54ch;
  margin: 1.4rem auto 0; text-wrap: pretty; }

/* 6. orari e servizi inclusi, in fondo dopo la galleria: la piscina dal drone sotto un velo d'acqua,
   stessi toni delle fasce di chiusura del sito (testo bianco, bollini chiari) */
.psc-info { padding: 0 var(--pad); margin: 0 auto clamp(3.5rem, 7vw, 6rem); }
.psc-info-card {
  position: relative; isolation: isolate; overflow: hidden;
  max-width: var(--container); margin: 0 auto; text-align: center; color: #fff;
  padding: clamp(2.4rem, 5.5vw, 4rem) clamp(1.4rem, 5vw, 3.6rem);
  border-radius: calc(var(--r-card, 18px) + 6px);
  background-color: var(--navy); background-size: cover; background-position: center;
  box-shadow: 0 34px 70px -40px rgba(14, 42, 74, .6);
}
.psc-info-card::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(150deg, rgba(20, 138, 190, .78) 0%, rgba(14, 92, 140, .82) 45%, color-mix(in srgb, var(--navy) 90%, transparent) 100%);
}
.psc-info-titolo { font-size: .74rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
  color: rgba(255, 255, 255, .78); margin: 0 0 1.5rem; }
.psc-orari { display: grid; grid-template-columns: 1fr 1fr; max-width: 820px; margin: 0 auto; }
.psc-orario { display: flex; flex-direction: column; align-items: center; gap: .35rem; padding: 0 1rem; }
.psc-orario + .psc-orario { border-left: 1px solid rgba(255, 255, 255, .28); }
.psc-orario span { font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .72); }
.psc-orario strong { font-family: var(--title-font, var(--font-serif)); font-weight: var(--title-weight, 600);
  font-size: clamp(2.1rem, 4.6vw, 3.3rem); line-height: 1.05; color: #fff; font-variant-numeric: lining-nums; white-space: nowrap;
  text-shadow: 0 2px 18px rgba(7, 26, 48, .3); }
.psc-orario em { font-style: italic; font-family: var(--font-serif); font-size: 1.12rem; color: rgba(255, 255, 255, .86); }
.psc-incluso { list-style: none; margin: clamp(1.8rem, 3.6vw, 2.4rem) auto 0; padding: clamp(1.4rem, 3vw, 1.9rem) 0 0; max-width: 820px;
  border-top: 1px solid rgba(255, 255, 255, .22);
  display: flex; flex-wrap: wrap; justify-content: center; gap: .7rem 1rem; }
.psc-incluso li { display: inline-flex; align-items: center; gap: .5rem; padding: .55rem 1.05rem; border-radius: 999px;
  background: rgba(255, 255, 255, .94); color: var(--navy); font-size: .92rem; font-weight: 500; }
.psc-incluso svg { width: 18px; height: 18px; color: #1a8fc4; flex: 0 0 auto; }
@media (max-width: 560px) {
  .psc-orari { grid-template-columns: 1fr; gap: 1.4rem; }
  .psc-orario + .psc-orario { border-left: 0; border-top: 1px solid rgba(255, 255, 255, .28); padding-top: 1.4rem; }
}

/* 4. racconto a due colonne: titolo, due paragrafi, due note; a destra due foto sovrapposte */
.psc-due { max-width: var(--container); margin: 0 auto clamp(3.5rem, 7vw, 6rem); padding: 0 var(--pad);
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.4rem, 6vw, 5.5rem); align-items: center; }
.psc-due-testo { min-width: 0; max-width: 34rem; }
.psc-due-occhiello { font-size: .74rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  color: var(--salvia-deep, #4f7057); margin-bottom: .9rem; }
.psc-due-testo h2 { font-family: var(--title-font, var(--font-serif)); font-weight: var(--title-weight, 600);
  font-size: clamp(1.9rem, 3.4vw, 2.7rem); line-height: 1.1; color: var(--navy); margin: 0 0 1.4rem; text-wrap: balance; }
.psc-due-testo > p:not(.psc-due-occhiello) { color: var(--ink-60); font-size: 1.08rem; line-height: 1.75; text-wrap: pretty; }
.psc-due-testo > p + p { margin-top: 1rem; }
.psc-due-note { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem 1.6rem; }
.psc-due-note li { display: flex; flex-direction: column; gap: .2rem; padding-left: 1rem;
  border-left: 2px solid color-mix(in srgb, var(--salvia-deep,#4f7057) 42%, transparent); }
.psc-due-note strong { font-family: var(--font-serif); font-size: 1.15rem; font-weight: 600; color: var(--navy); line-height: 1.25; }
.psc-due-note span { font-size: .88rem; color: var(--ink-60); line-height: 1.45; }
.psc-due-foto { position: relative; margin: 0; min-width: 0; padding-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.psc-due-foto img { display: block; border-radius: var(--r-card); object-fit: cover; }
.psc-due-grande { width: 88%; margin-left: auto; aspect-ratio: 4 / 5; box-shadow: var(--shadow-1); }
.psc-due-piccola { position: absolute; left: 0; bottom: 0; width: 56%; aspect-ratio: 4 / 3;
  border: 6px solid var(--base, #fff); box-shadow: var(--shadow-2); }
@media (max-width: 880px) {
  .psc-due { grid-template-columns: 1fr; }
  .psc-due-testo { max-width: none; }
  .psc-due-foto { max-width: 520px; margin-inline: auto; width: 100%; }
}
@media (max-width: 520px) { .psc-due-note { grid-template-columns: 1fr; } }

/* 5. galleria trascinabile, grande come la foto di apertura */
.psc-galleria-wrap { margin-bottom: clamp(3.5rem, 7vw, 6rem); }
.psc-galleria { display: flex; gap: .7rem; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 0 var(--pad); cursor: grab; user-select: none; scrollbar-width: none; }
.psc-galleria::-webkit-scrollbar { display: none; }
.psc-galleria.is-grabbing { cursor: grabbing; }
.psc-galleria img { flex: 0 0 auto; height: clamp(320px, 62vh, 640px); width: auto;
  border-radius: var(--r-card); object-fit: cover; scroll-snap-align: start; box-shadow: var(--shadow-1);
  -webkit-user-drag: none; cursor: zoom-in; }
.psc-nota { max-width: var(--container); margin: 1rem auto 0; padding: 0 var(--pad);
  font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-60); }


/* ---------- Piscina: movimento ---------- */
/* la foto di apertura respira, come il video della home */
@media (prefers-reduced-motion: no-preference) {
  .psc-hero-fallback { animation: psc-respiro 30s ease-in-out infinite alternate; will-change: transform; }
}
@keyframes psc-respiro {
  from { transform: scale(1) translate3d(0,0,0); }
  to   { transform: scale(1.06) translate3d(-1%, -.8%, 0); }
}

/* Onda di mare: non e' piu' in pagina (la dissolvenza la fa il hero). Regole tenute pronte. */
.psc-onda {
  position: relative; pointer-events: none; overflow: hidden;
  height: clamp(150px, 18vw, 260px);
  background: linear-gradient(to bottom, var(--base) 0%, #f7f3ec 100%);
}
.psc-onda video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: var(--wave-opacity, .72);
  filter: saturate(var(--wave-sat, 2.3)) brightness(var(--wave-bri, 1.02));
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,.10) 14%, rgba(0,0,0,.34) 26%, rgba(0,0,0,.66) 38%, #000 52%, #000 64%, rgba(0,0,0,.62) 78%, rgba(0,0,0,.24) 90%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,.10) 14%, rgba(0,0,0,.34) 26%, rgba(0,0,0,.66) 38%, #000 52%, #000 64%, rgba(0,0,0,.62) 78%, rgba(0,0,0,.24) 90%, transparent 100%);
}
@media (prefers-reduced-motion: reduce) {
  .psc-onda video { display: none; }
  .psc-onda { background: url('../img/onda-mare-schiuma.webp') center / cover no-repeat; }
}


/* reveal allo scroll: stessa dissolvenza delle fasce Appartamenti */
@media (prefers-reduced-motion: no-preference) {
  html.js-rivela [data-rivela] {
    opacity: 0; transform: translateY(22px);
    transition: opacity 850ms var(--ease-out-quint), transform 850ms var(--ease-out-quint);
  }
  html.js-rivela [data-rivela].is-in { opacity: 1; transform: none; }
}

/* Header su schermo stretto: «Preventivo» diventa una busta, se no la barra non ci sta */
.hbtn-ico { display: none; }
@media (max-width: 720px) {
  .hbtn-cta .hbtn-txt { display: none; }
  .hbtn-cta .hbtn-ico { display: inline-block; width: 1.2rem; height: 1.2rem; }
  /* resta piena e colorata: è l'azione principale, non deve sembrare uno dei tanti tondi */
  .hbtn-cta { padding-inline: 0; width: 46px; justify-content: center; }
}

/* Ancoraggi: senza questo il blocco finisce sotto l'intestazione fissa */
:target, .apt-row[id], [id="preventivo"] { scroll-margin-top: 96px; }

/* ---------- Gallerie delle tipologie: si deve capire che ci sono altre foto ----------
   La striscia scorre in orizzontale ma senza indizi sembra una foto sola: frecce ai lati
   e pallini sotto. Compaiono solo se le foto sono piu' di una (ci pensa il JS). */
body[data-layout="rivista"] .apt-row-media { position: relative; }
/* le frecce stanno in un contenitore FUORI dalla striscia che scorre:
   dentro scorrerebbero via con la prima foto (era il motivo per cui si vedevano solo lì) */
.apt-gal { position: relative; min-width: 0; }
body[data-layout="rivista"] .apt-gal { grid-column: 2; grid-row: 1; align-self: center; }
body[data-layout="rivista"] .apt-list > .apt-row.apt-row-flip .apt-gal { grid-column: 1; }
@media (max-width: 820px) {
  body[data-layout="rivista"] .apt-gal,
  body[data-layout="rivista"] .apt-list > .apt-row.apt-row-flip .apt-gal { grid-column: 1; grid-row: 1; }
}
.gal-nav {
  position: absolute; top: 50%; translate: 0 -50%; z-index: 4;
  width: 42px; height: 42px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center;
  background: rgba(255,255,255,.92); color: var(--navy);
  box-shadow: 0 8px 22px -8px rgba(14,42,74,.55);
  opacity: .96; transition: opacity 260ms ease, transform 260ms var(--ease-out-quint), background 200ms ease;
}
.apt-gal:hover .gal-nav, .gal-nav:focus-visible { opacity: 1; }
.gal-nav:hover { background: #fff; transform: scale(1.06); }
.gal-nav[disabled] { opacity: 0 !important; pointer-events: none; }
.gal-prev { left: 14px; }
.gal-next { right: 14px; }
.gal-nav svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2;
  stroke-linecap: round; stroke-linejoin: round; }
/* su touch le frecce restano visibili: non c'e' il passaggio del mouse */
@media (hover: none) { .apt-gal .gal-nav { opacity: .95; } }

.gal-dots {
  position: absolute; left: 50%; translate: -50% 0; bottom: 14px; z-index: 4;
  display: flex; gap: 7px; padding: 7px 11px; border-radius: 999px;
  background: rgba(14,42,74,.34); backdrop-filter: blur(6px); pointer-events: none;
}
.gal-dots i {
  width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.55);
  transition: background 220ms ease, width 220ms var(--ease-out-quint);
}
.gal-dots i.on { background: #fff; width: 16px; border-radius: 999px; }
@media (max-width: 520px) { .gal-nav { width: 36px; height: 36px; } .gal-prev { left: 8px; } .gal-next { right: 8px; } }

/* Il tasto «Richiedi un preventivo» dentro la fascia scura: chiaro su fondo scuro */
.btn-invia-chiara { background: #fff; color: var(--navy); box-shadow: 0 14px 34px -12px rgba(0,0,0,.45); }
.btn-invia-chiara:hover { background: #fff; transform: translateY(-2px); box-shadow: 0 18px 38px -12px rgba(0,0,0,.55); }


/* ---------- Servizi: banner a tutta larghezza sotto il titolo, una foto alla volta che scorre di lato ---------- */
.srv-banner {
  position: relative; overflow: hidden; width: 100%;
  height: clamp(300px, 58vh, 660px); margin: clamp(.4rem, 2vw, 1.2rem) 0 clamp(2.4rem, 5vw, 4rem); background: #e9e4d9;
}
.srv-banner-track { display: flex; height: 100%; transition: transform 1.3s cubic-bezier(.65, 0, .35, 1); will-change: transform; }
.srv-banner-foto { position: relative; flex: 0 0 100%; height: 100%; margin: 0; }
.srv-banner-foto img { width: 100%; height: 100%; object-fit: cover; display: block; }
.srv-banner-dots {
  position: absolute; right: clamp(1rem, 4vw, 3rem); bottom: clamp(1.5rem, 4.2vw, 2.9rem); display: flex; gap: 7px;
  padding: 7px 11px; border-radius: 999px; background: rgba(14, 42, 74, .34); backdrop-filter: blur(6px);
}
.srv-banner-dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, .55); transition: background 220ms ease, width 220ms ease; }
.srv-banner-dots i.on { background: #fff; width: 16px; border-radius: 999px; }
@media (prefers-reduced-motion: reduce) { .srv-banner-track { transition: none; } }

/* Servizi: la stessa onda di mare degli appartamenti dietro al titolo, che sfuma piano verso il banner */
.srv-testa { position: relative; isolation: isolate; overflow: hidden; }
.srv-testa .subpage-hero { position: relative; z-index: 1; }
.srv-onda-testa { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.srv-onda-testa video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: var(--wave-opacity, .5); filter: saturate(var(--wave-sat, 2.1)) brightness(var(--wave-bri, 1.04));
  /* sotto al menu è trasparente, sale piano, dietro al titolo resta leggero e poi si spegne verso il banner */
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,.18) 22%, rgba(0,0,0,.5) 42%, rgba(0,0,0,.62) 60%, rgba(0,0,0,.36) 80%, transparent 100%);
          mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,.18) 22%, rgba(0,0,0,.5) 42%, rgba(0,0,0,.62) 60%, rgba(0,0,0,.36) 80%, transparent 100%);
}
@media (prefers-reduced-motion: reduce) {
  .srv-onda-testa video { display: none; }
}

/* Contatti: le stesse foglie ed edera di sfondo della pagina Prezzi (riusa .listino-deco) */
.contatti-deco { position: relative; z-index: 0; padding-bottom: clamp(2rem, 5vw, 4rem); overflow-x: clip; }
.contatti-deco > *:not(.listino-deco) { position: relative; z-index: 1; }
/* «Come arrivare»: alone chiaro ovale solo attorno al blocco, sfuma verso l'esterno dove le foglie restano visibili */
.contatti-deco .contatti-arrivo { position: relative; isolation: isolate; }
.contatti-deco .contatti-arrivo::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  left: 50%; top: 50%; translate: -50% -50%;
  width: min(150%, 100vw); height: calc(100% + clamp(6rem, 12vw, 10rem));
  background: radial-gradient(closest-side, rgba(248, 251, 254, .92) 0%, rgba(248, 251, 254, .88) 45%, rgba(248, 251, 254, .6) 72%, rgba(248, 251, 254, .22) 88%, rgba(248, 251, 254, 0) 100%);
}

/* Home da telefono (classe hero-intero su <html>): intestazione in cima su fondo chiaro, non sopra il video;
   sotto, il video intero bordo a bordo con la stessa sfumatura, e la pagina riparte subito */
@media (max-width: 820px) {
  .hero-intero .hero { height: auto; padding-top: 68px; background: var(--base); }
  .hero-intero .hero-media { position: relative; inset: auto; aspect-ratio: 16 / 9; }
  .hero-intero .scroll-down { display: none; }
  .hero-intero .hero-sound { bottom: .8rem; }
  .hero-intero .hero-film { bottom: .8rem; left: .8rem; }
  .hero-intero .site-header.is-solid { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--base); }   /* scorrendo passa sopra il video: la sfocatura lo farebbe scattare */
  .hero-intero .moments { padding-top: .6rem; }
}

/* ---------- Mobile ---------- */
/* nessuna pagina deve scorrere di lato: le animazioni d'entrata (scale/translate) sforavano di pochi pixel */
html, body { overflow-x: clip; }
.apt-list { overflow-x: clip; }
/* tabella prezzi: da telefono sta tutta nello schermo, senza scorrere dentro al riquadro */
@media (max-width: 560px) {
  .prezzi-table { min-width: 0; table-layout: fixed; }
  .prezzi-table caption { padding: .9rem .8rem .2rem; font-size: .7rem; }
  .prezzi-table thead th { padding: .7rem .2rem; font-size: .74rem; line-height: 1.2; }
  .prezzi-table thead th:first-child { width: 29%; padding-left: .7rem; }
  .prezzi-table thead th span { display: block; margin: .25rem auto 0; }
  .prezzi-table td, .prezzi-table th[scope="row"] { padding: .62rem .2rem; }
  .prezzi-table th[scope="row"] { padding-left: .7rem; white-space: normal; font-size: .8rem; line-height: 1.25; }
  .prezzi-table td { font-size: 1.02rem; }
  .prezzi-table td::before { content: none; }
}

/* modulo preventivo: i campi restano larghi quanto il modulo, anche se una voce del menu e' lunga (EN/DE/FR) */
.form-grid > * { min-width: 0; }
.quote-form input, .quote-form select, .quote-form textarea { width: 100%; max-width: 100%; min-width: 0; }
.quote-form select { text-overflow: ellipsis; }
/* schede appartamenti: il testo non allarga la colonna; da telefono i pulsanti vanno a capo invece di sforare */
.apt-row > * { min-width: 0; }
@media (max-width: 560px) {
  .btn-invia, .btn-wa, .btn-outline { white-space: normal; max-width: 100%; text-align: center; line-height: 1.3; }
}
/* mappa da telefono: il riquadro e' alto quanto la mappa, niente fascia grigia sotto */
@media (max-width: 760px) {
  .pf-map-holder { height: clamp(300px, 50vh, 420px); }
  .pf-map-holder iframe { height: 100%; }
}

/* lingue pronte ma non ancora pubblicate (si accendono da scripts/lingue.py, VISIBILI) */
.lingua-spenta { display: none !important; }

/* Menu laterale (desktop): largo abbastanza per «Domande frequenti» su una riga;
   numeri e mail leggibili anche sopra l'edera (alone chiaro dietro e foglie in basso piu' leggere) */
body[data-menu="3"] .menu-drawer { width: min(480px, 92vw); }
.menu-drawer-nav a { white-space: nowrap; }
.menu-contact { position: relative; isolation: isolate; }
.menu-contact::before {
  content: ""; position: absolute; z-index: -1; inset: -1.1rem -1.6rem; pointer-events: none;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--menu-bg, #f8fbfe) 92%, transparent) 55%, color-mix(in srgb, var(--menu-bg, #f8fbfe) 60%, transparent) 80%, transparent 100%);
}
.menu-contact a { color: var(--navy); }
.menu-langs { position: relative; z-index: 1; }
/* le voci stanno sempre nello spazio libero tra le edere: dimensioni legate all'altezza dello schermo,
   cosi' la colonna non sborda (prima «Home» finiva sotto le foglie in alto e i numeri sopra quelle in basso) */
body[data-menu="3"] .menu-inner { justify-content: safe center; gap: clamp(.8rem, 2.2vh, 1.5rem); padding: clamp(6.6rem, 13vh, 7.5rem) clamp(2.4rem,6vw,3.6rem) clamp(1.5rem, 4vh, 3rem); }
body[data-menu="3"] .menu-drawer-nav a { font-size: clamp(1.3rem, min(4vw, 3.5vh), 2.05rem); padding: clamp(.08rem, .5vh, .22rem) 0; }
body[data-menu="3"] .menu-contact { margin-top: clamp(.2rem, 1vh, 1.1rem); gap: clamp(.2rem, .7vh, .5rem); }
/* edere solo negli angoli: in alto sopra «Home», a destra oltre le voci, in basso sotto i contatti */
body:is([data-menu="2"],[data-menu="3"]) .menu-ivy-1 { top: -104px; left: -33%; width: 68%; --mi1-rot: 32deg; }
body:is([data-menu="2"],[data-menu="3"]) .menu-ivy-2 { top: -56px; left: 63%; width: 68%; }
body:is([data-menu="2"],[data-menu="3"]) .menu-ivy-3 { top: 68%; left: 62%; width: 50%; opacity: .85; }
body:is([data-menu="2"],[data-menu="3"]) .menu-ivy-4 { top: 86%; left: -8%; width: 60%; opacity: .7; --mi4-rot: -70deg; }
body[data-menu="3"] .menu-close { background: color-mix(in srgb, var(--menu-bg, #f8fbfe) 88%, transparent); border-radius: 50%; box-shadow: 0 0 18px 10px color-mix(in srgb, var(--menu-bg, #f8fbfe) 70%, transparent); opacity: 1; }
@media (max-width: 480px) { body:is([data-menu="2"],[data-menu="3"]) .menu-ivy-3 { left: 74%; width: 42%; } }
@media (max-width: 640px) { .services-head { padding-inline: 2.4rem; } }   /* l'edera in alto a sinistra non tocca l'occhiello (in inglese e' piu' lungo) */   /* telefono: la mail arriva quasi al bordo */
@media (max-width: 420px) { .menu-drawer-nav a { white-space: normal; } }

/* Home, blocco appartamenti: scritte piu' leggibili sulla foto e «Scopri» pieno (bianco con testo blu) */
.room-slide::after { background: linear-gradient(to top, rgba(7,42,85,.82) 0%, rgba(7,42,85,.45) 30%, transparent 58%); }
.room-caption { text-shadow: 0 2px 14px rgba(7, 26, 48, .45); }
/* sulla foto il titolo prendeva il blu dei titoli generali e non si leggeva */
.room-caption h3 { color: #fff; }
.room-cap-meta { font-size: clamp(.78rem, 1.6cqw, .95rem); opacity: 1; font-weight: 500; }
.room-cap-cta { background: #fff; color: var(--navy); border-color: #fff; text-shadow: none; font-size: clamp(.74rem, 1.5cqw, .86rem); box-shadow: 0 10px 26px -12px rgba(7, 26, 48, .6); }
.room-cap-cta:hover { background: transparent; color: #fff; border-color: #fff; }

/* ---------- Pagina di dettaglio di un evento o di un'offerta (tema WordPress: /eventi/<nome>/) ---------- */
.evento-pagina { padding: clamp(7rem, 14vh, 9.5rem) var(--pad) clamp(3rem, 6vw, 5rem); }
.evento { max-width: 820px; margin: 0 auto; }
.evento-testa { text-align: center; margin-bottom: clamp(1.6rem, 4vw, 2.6rem); }
.evento-occhiello { font-size: .74rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; margin: 0 0 .9rem; }
.evento-occhiello a { color: var(--salvia-deep, #4f7057); text-decoration: none; }
.evento h1 { font-family: var(--title-font, var(--font-serif)); font-weight: var(--title-weight, 600); font-size: clamp(2.2rem, 5.5vw, 3.6rem); line-height: 1.08; color: var(--navy); margin: 0; text-wrap: balance; }
.evento-data { margin: .9rem 0 0; font-family: var(--font-serif); font-style: italic; font-size: 1.2rem; color: var(--ink-60); }
.evento-foto { margin: 0 0 clamp(1.6rem, 4vw, 2.4rem); }
.evento-foto img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r-card); box-shadow: var(--shadow-2); }
.evento-testo { color: var(--ink); font-size: 1.1rem; line-height: 1.75; max-width: 64ch; margin: 0 auto; }
.evento-testo p + p { margin-top: 1rem; }
.evento-testo > * + * { margin-top: 1rem; }
.evento-testo :is(h2, h3, h4) { font-family: var(--title-font, var(--font-serif)); font-weight: var(--title-weight, 600); color: var(--navy); line-height: 1.2; margin-top: 2rem; }
.evento-testo h2 { font-size: 1.7rem; } .evento-testo h3 { font-size: 1.35rem; } .evento-testo h4 { font-size: 1.12rem; }
.evento-testo :is(ul, ol) { padding-left: 1.3rem; } .evento-testo li + li { margin-top: .35rem; }
.evento-testo a { color: var(--cobalto); text-underline-offset: 3px; }
.evento-testo blockquote { border-left: 3px solid var(--salvia); padding: .2rem 0 .2rem 1.1rem; color: var(--ink-60); font-style: italic; }
.evento-testo img { max-width: 100%; height: auto; border-radius: 14px; }
.evento-testo :is(figure, .wp-caption) { max-width: 100%; margin-inline: 0; }
.evento-testo :is(figcaption, .wp-caption-text) { font-size: .88rem; color: var(--ink-60); margin-top: .4rem; }
.evento-testo .aligncenter { display: block; margin-inline: auto; }
@media (min-width: 700px) { .evento-testo .alignleft { float: left; margin: .3rem 1.4rem 1rem 0; max-width: 50%; } .evento-testo .alignright { float: right; margin: .3rem 0 1rem 1.4rem; max-width: 50%; } }
.evento-testo::after { content: ""; display: table; clear: both; }
.evento-azioni { display: flex; flex-wrap: wrap; justify-content: center; gap: .9rem 1.2rem; margin-top: clamp(2rem, 4vw, 2.8rem); }
.evento-torna { text-align: center; margin-top: 2rem; }
.evento-torna a { color: var(--ink-60); text-decoration: none; font-size: .95rem; }
.evento-torna a:hover { color: var(--cobalto); }

/* Footer da telefono: solo le due righe finali (privacy/cookie e P.IVA). Menu, indirizzo e contatti
   ci sono gia' nel menu e nel riquadro «Dove siamo» sopra la mappa */
@media (max-width: 760px) {
  .site-footer .footer-grid { display: none; }
  .site-footer .footer-legal { padding-top: 1.4rem; flex-wrap: wrap; justify-content: center; gap: .4rem 1.1rem; }
  .site-footer .footer-bottom { padding-bottom: 1.2rem; }
}

/* Modulo preventivo sul sito WordPress con Contact Form 7: stessi campi, piu' i messaggi del plugin */
.quote-form .wpcf7-form-control-wrap { display: block; }
.quote-form .wpcf7-form-control-wrap > :is(input, select, textarea) { width: 100%; }
.consent > .wpcf7-form-control-wrap, .consent .wpcf7-form-control, .consent .wpcf7-list-item { display: block; flex: none; margin: 0; line-height: 0; }
.quote-form .wpcf7-not-valid-tip { display: block; margin-top: .3rem; font: 500 .8rem/1.35 var(--font-body); letter-spacing: 0; text-transform: none; color: #b3261e; }
/* esito del modulo: in cima, ben visibile (main.js lo sposta lì). A invio riuscito c'è il ringraziamento al suo posto */
.quote-form .wpcf7-response-output { position: relative; margin: 0 0 1.4rem !important; padding: .9rem 1.1rem .9rem 3rem !important; border: 0 !important; border-radius: 14px; background: #fdeceb; box-shadow: inset 4px 0 0 #b3261e; font: 600 .93rem/1.45 var(--font-body); color: #7d1a15; animation: quote-entra .45s var(--ease-out-quint) both; }
.quote-form .wpcf7-response-output::before { content: "!"; position: absolute; left: 1rem; top: .85rem; width: 1.35rem; height: 1.35rem; border-radius: 50%; background: #b3261e; color: #fff; font: 700 .85rem/1.35rem var(--font-body); text-align: center; }
.quote-form.sent .wpcf7-response-output { display: none; }
.quote-form.is-grazie > :not(.quote-grazie) { display: none !important; }
.quote-grazie { text-align: center; padding: clamp(1rem, 3.5vw, 2.4rem) clamp(.2rem, 3vw, 2rem); outline: none; animation: quote-entra .6s var(--ease-out-quint) both; }
.quote-grazie-segno { display: inline-grid; place-items: center; width: 4.2rem; height: 4.2rem; border-radius: 50%; color: #fff; background: var(--verde-brand); outline: 1.5px dashed color-mix(in srgb, var(--verde-brand) 55%, transparent); outline-offset: 6px; animation: quote-timbro .55s .12s cubic-bezier(.3, 1.5, .5, 1) both; }
.quote-grazie-segno .icon { width: 2.1rem; height: 2.1rem; }
.quote-grazie-tit { margin: 1.35rem 0 .5rem; font-family: var(--title-font, var(--font-serif)); font-weight: var(--title-weight, 500); font-size: clamp(1.6rem, 3vw, 2.15rem); line-height: 1.15; color: var(--navy); }
.quote-grazie-txt { max-width: 44ch; margin: 0 auto; font-size: 1rem; line-height: 1.6; color: var(--ink); }
.quote-grazie-txt strong { color: var(--navy); overflow-wrap: anywhere; }
.quote-grazie-riepilogo { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin: 1.3rem auto 0; padding: 0; list-style: none; }
.quote-grazie-riepilogo li { padding: .42rem .9rem; border-radius: 999px; background: color-mix(in srgb, var(--acqua) 20%, var(--bianco)); font-size: .85rem; font-weight: 600; color: var(--navy); }
.quote-grazie-nota { max-width: 48ch; margin: 1.1rem auto 0; font-size: .84rem; color: var(--ink-60); }
.quote-grazie-azioni { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .7rem 1.5rem; margin-top: 1.5rem; }
.quote-grazie-azioni .btn-outline { margin: 0; background: none; font-family: inherit; cursor: pointer; }
.quote-grazie-azioni .btn-outline:hover { background: var(--cobalto); }
.quote-grazie-wa { display: inline-flex; align-items: center; gap: .4rem; font-size: .9rem; font-weight: 600; color: var(--salvia-deep); text-decoration: none; }
.quote-grazie-wa:hover { text-decoration: underline; }
.quote-grazie-wa .icon { width: 1.2em; height: 1.2em; color: var(--verde-brand); }
@keyframes quote-entra { from { opacity: 0; transform: translateY(8px); } }
@keyframes quote-timbro { from { opacity: 0; transform: scale(1.35) rotate(-10deg); } }
@media (prefers-reduced-motion: reduce) { .quote-form .wpcf7-response-output, .quote-grazie, .quote-grazie-segno { animation: none; } }
.quote-form .wpcf7-spinner { margin: 0 0 0 .4rem; }
.quote-recaptcha { grid-column: 1 / -1; margin: .9rem 0 0; font-size: .75rem; line-height: 1.5; color: var(--ink-60); }
.quote-recaptcha a { color: inherit; }
