/* ===================================================================
   CARATTERI OSPITATI NEL SITO
   Non si passa più da Google Fonts: nessuna ricerca di dominio, nessuna
   connessione esterna, nessuna attesa prima che la pagina si disegni.
   font-display: swap -> il testo si vede subito con il carattere di
   sistema e si sostituisce appena il file è pronto.
   =================================================================== */
@font-face {
  font-family: 'Great Vibes'; font-style: normal; font-weight: 400;
  font-display: swap; src: url('fonts/GreatVibes-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Montserrat'; font-style: normal; font-weight: 300;
  font-display: swap; src: url('fonts/Montserrat-300.woff2') format('woff2');
}
@font-face {
  font-family: 'Montserrat'; font-style: normal; font-weight: 400;
  font-display: swap; src: url('fonts/Montserrat-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Montserrat'; font-style: normal; font-weight: 500;
  font-display: swap; src: url('fonts/Montserrat-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Montserrat'; font-style: normal; font-weight: 600;
  font-display: swap; src: url('fonts/Montserrat-600.woff2') format('woff2');
}

:root {
  --bg: #08070a;
  --bg-soft: #100d14;
  --panel: #16121c;
  --text: #f3eef7;
  --muted: #a79fb3;
  --neon: #ff2d95;
  --neon-soft: #ff7ac0;
  --violet: #8b5cf6;
  --line: rgba(255, 255, 255, 0.1);
  --maxw: 1200px;
  --script: "Great Vibes", "Segoe Script", cursive;
  --sans: "Montserrat", "Segoe UI", system-ui, -apple-system, sans-serif;
  --glow: 0 0 6px rgba(255, 45, 149, 0.9), 0 0 18px rgba(255, 45, 149, 0.55), 0 0 44px rgba(255, 45, 149, 0.3);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

/* L'attributo hidden deve vincere sempre: le regole display delle classi
   qui sotto (.btn, .link-reset…) altrimenti lo annullerebbero. */
[hidden] { display: none !important; }

html { overflow-x: hidden; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.75;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  width: 100%;
}

/* Gli elementi di griglia e flex non si restringono mai sotto il proprio
   contenuto: senza questo, un indirizzo email lungo allarga tutta la pagina. */
.split > *, .contact-grid > *, .foot-grid > *, .poi > *, .price-tag > * { min-width: 0; }
.contact-list a, .foot-links a, .contact-list span { overflow-wrap: anywhere; }

img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3 { font-weight: 300; line-height: 1.2; margin: 0 0 0.5em; }
h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); letter-spacing: 0.02em; }
h3 { font-size: 1.15rem; font-weight: 500; letter-spacing: 0.04em; }
p { margin: 0 0 1.1em; color: var(--muted); }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
/* Arrivando da un link del menu, l'intestazione fissa si sovrappone al
   riempimento superiore della sezione, che è già spazio vuoto. Sommare
   anche uno scarto di 76px creava un buco doppio in cima e tagliava il
   fondo: bastano pochi pixel. */
section { padding: 100px 0; position: relative; scroll-margin-top: 8px; }
.alt { background: var(--bg-soft); }

.eyebrow {
  font-size: 0.68rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--neon);
  margin-bottom: 16px;
  font-weight: 500;
}
.section-head { max-width: 62ch; margin-bottom: 46px; }
.section-head.center { text-align: center; margin-left: auto; margin-right: auto; }

/* ---------- Neon wordmark ---------- */
.logo { line-height: 1; display: inline-block; text-align: center; }
.logo .el {
  display: block;
  font-family: var(--script);
  font-size: 2.6rem;
  color: #fff;
  text-shadow: var(--glow);
  padding-bottom: 0.18em;
}
.logo .ls {
  display: block;
  font-size: 0.62rem;
  letter-spacing: 0.42em;
  text-indent: 0.42em;
  font-weight: 500;
  color: var(--neon-soft);
  text-shadow: 0 0 8px rgba(255, 45, 149, 0.8);
}
.logo-lg .el { font-size: clamp(4.2rem, 13vw, 8.5rem); }
.logo-lg .ls { font-size: clamp(0.7rem, 1.7vw, 1rem); }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding: 16px 0;
  transition: background 0.35s, border-color 0.35s, padding 0.35s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(8, 7, 10, 0.88);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--line);
  padding: 8px 0;
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav .logo .el { font-size: 2rem; }
.nav-links {
  display: flex;
  gap: 34px;
  align-items: center;
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
}
.nav-links a { color: var(--muted); transition: color 0.2s, text-shadow 0.2s; }
.nav-links a:hover { color: #fff; text-shadow: 0 0 10px rgba(255, 45, 149, 0.8); }

.btn {
  display: inline-block;
  padding: 13px 30px;
  border: 1px solid var(--neon);
  border-radius: 2px;
  color: #fff;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 600;
  font-family: inherit;
  background: none;
  cursor: pointer;
  transition: background 0.25s, box-shadow 0.25s, color 0.25s;
}
.btn:hover { background: var(--neon); box-shadow: 0 0 24px rgba(255, 45, 149, 0.55); }
.btn-solid { background: var(--neon); box-shadow: 0 0 22px rgba(255, 45, 149, 0.4); }
.btn-solid:hover { background: var(--neon-soft); }
.btn-ghost { border-color: var(--line); color: var(--muted); }
.btn-ghost:hover { background: none; border-color: #fff; color: #fff; box-shadow: none; }

.nav-toggle { display: none; background: none; border: 0; color: #fff; cursor: pointer; padding: 6px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: #fff; margin: 5px 0; transition: transform 0.3s, opacity 0.3s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  position: relative;
  overflow: hidden;
  padding: 130px 0 84px;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(8, 7, 10, 0.94) 0%, rgba(8, 7, 10, 0.72) 26%, rgba(8, 7, 10, 0.28) 62%, rgba(8, 7, 10, 0.42) 100%),
    linear-gradient(to right, rgba(8, 7, 10, 0.78) 0%, rgba(8, 7, 10, 0.25) 48%, transparent 78%);
}
.hero-inner { position: relative; z-index: 1; }
.hero .logo-lg { text-align: left; }
.hero .tagline {
  margin: 22px 0 0;
  max-width: 46ch;
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  color: var(--text);
  font-weight: 300;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 34px; }
.hero-meta {
  margin-top: 40px;
  display: flex;
  gap: 14px 34px;
  flex-wrap: wrap;
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero-meta span::before { content: "◆"; color: var(--neon); margin-right: 10px; font-size: 0.6rem; }

/* ---------- Split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.split .media { position: relative; }
/* height:auto è indispensabile: se l'immagine porta un attributo height,
   quello vince sulla proporzione e la foto diventa alta quanto l'originale. */
.split .media img { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 2px; }
.split .media::after {
  content: "";
  position: absolute;
  inset: 14px -14px -14px 14px;
  border: 1px solid rgba(255, 45, 149, 0.4);
  border-radius: 2px;
  z-index: -1;
}

.lead { font-size: 1.1rem; color: var(--text); font-weight: 300; }

.stats { display: flex; gap: 44px; flex-wrap: wrap; margin-top: 36px; }
.stat .n { font-size: 2.2rem; color: #fff; text-shadow: 0 0 14px rgba(255, 45, 149, 0.6); line-height: 1; }
.stat .l { font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); margin-top: 8px; }

/* ---------- Alloggi ---------- */
/* Questa sezione è il primo salto del menu: va fatta entrare tutta
   nella finestra, pulsanti compresi, senza costringere a scorrere. */
/* riempimento più basso della media: serve un po' più di scarto
   perché l'intestazione non copra il titolo */
#alloggi { padding-top: 76px; padding-bottom: 76px; scroll-margin-top: 0; }
#alloggi .section-head { margin-bottom: 32px; }
#alloggi .section-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
#alloggi .section-head p { font-size: 0.95rem; }
.alloggi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; }
.alloggio-box { border: 1px solid var(--line); border-radius: 2px; background: rgba(255, 255, 255, 0.02); display: flex; flex-direction: column; }
/* Foto più bassa: con 16/10 le due schede non entravano nello schermo e
   i pulsanti restavano sotto la piega. */
/* L'immagine è posizionata in assoluto: dentro una griglia con proporzione
   fissa e altezza massima, "height: 100%" non si risolve e la foto usciva
   dal riquadro venendo tagliata a striscia. */
.ab-foto {
  position: relative;
  aspect-ratio: 16 / 9; max-height: 178px; overflow: hidden;
  background: linear-gradient(135deg, #241d29, #14111a);
  display: grid; place-items: center;
}
.ab-foto img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 62%;
}
.ab-foto.vuota span { font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(243, 238, 247, 0.35); }
.ab-corpo { padding: 24px 26px 26px; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.ab-corpo .btn { margin-top: auto; }   /* pulsanti allineati fra le due schede */
.ab-corpo h3 { margin: 0; font-size: 1.35rem; }
.ab-sub { margin: 0 0 10px; font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--neon); }
.ab-corpo .btn { margin-top: 12px; }

/* --- alloggio in allestimento --- */
.badge-wip {
  display: inline-block; vertical-align: middle;
  margin-left: 8px; padding: 4px 10px;
  border: 1px solid rgba(255, 45, 149, 0.55);
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 0.56rem; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--neon-soft); background: rgba(255, 45, 149, 0.12);
  white-space: nowrap;
}
.alloggio-box.wip { border-style: dashed; border-color: rgba(255, 45, 149, 0.4); }
/* righe diagonali: si legge subito che è un cantiere, non una foto mancante */
.alloggio-box.wip .ab-foto.vuota {
  background-image: repeating-linear-gradient(
    45deg, rgba(255, 45, 149, 0.07) 0 14px, transparent 14px 28px);
}
.ab-wip {
  font-size: 0.82rem !important;
  color: var(--neon-soft) !important;
  border-left: 2px solid rgba(255, 45, 149, 0.5);
  padding-left: 12px; margin-top: 6px !important;
}
.avviso-wip {
  border: 1px dashed rgba(255, 45, 149, 0.5);
  background: rgba(255, 45, 149, 0.07);
  border-radius: 2px; padding: 14px 16px; margin-bottom: 18px;
  font-size: 0.84rem; color: var(--text);
}
.avviso-wip strong { color: var(--neon-soft); }

/* ---------- Services ---------- */
/* Numero di colonne fisso invece che automatico: con 8 servizi, 4 o 2
   colonne riempiono sempre l'ultima riga. Con le colonne automatiche ne
   uscivano 3 e restava una cella vuota, che sullo sfondo chiaro della
   griglia si vedeva come un rettangolo scuro. */
.services {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: var(--line); border: 1px solid var(--line);
}
@media (max-width: 1080px) { .services { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .services { grid-template-columns: 1fr; } }
/* rete di sicurezza: se un giorno i servizi diventano dispari, l'ultimo
   occupa lo spazio rimasto invece di lasciare il buco */
.service:last-child:nth-child(odd) { grid-column: -3 / -1; }
@media (max-width: 560px) { .service:last-child:nth-child(odd) { grid-column: auto; } }
.service { background: var(--bg); padding: 36px 28px; transition: background 0.3s; }
.service:hover { background: var(--panel); }
.service .ico { color: var(--neon); margin-bottom: 16px; }
.service .ico svg { width: 26px; height: 26px; stroke: currentColor; fill: none; stroke-width: 1.4; }
.service h3 { margin-bottom: 6px; }
.service p { font-size: 0.9rem; margin: 0; }

/* ---------- Gallery ---------- */
/* dense: se una foto larga o alta lascia un buco, le successive lo
   riempiono invece di far restare una cella nera */
/* Righe a fisarmonica invece di griglia a colonne fisse: le foto
   dell'ultima riga si allargano fino a riempirla. Con la griglia restava
   sempre uno spazio nero in fondo, perché 11 foto non chiudono la riga
   e le foto larghe o alte lasciavano celle scoperte. */
.gallery { display: flex; flex-wrap: wrap; gap: 10px; }
.gallery figure {
  margin: 0; overflow: hidden; cursor: zoom-in; position: relative;
  background: var(--panel);
  flex: 1 1 220px;
}
.gallery img {
  width: 100%; height: 230px; object-fit: cover;
  transition: transform 0.6s ease, opacity 0.3s;
}
.gallery figure:hover img { transform: scale(1.07); }
.gallery .wide { flex-basis: 460px; }

/* lightbox */
.lb { position: fixed; inset: 0; z-index: 200; background: rgba(5, 4, 7, 0.96); display: none; place-items: center; padding: 24px; }
.lb.open { display: grid; }
.lb img { max-width: 92vw; max-height: 88vh; object-fit: contain; }
.lb-close, .lb-prev, .lb-next {
  position: absolute; background: none; border: 0; color: #fff; cursor: pointer; font-size: 2rem; line-height: 1; padding: 12px 18px;
}
.lb-close { top: 12px; right: 16px; }
.lb-prev { left: 8px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 8px; top: 50%; transform: translateY(-50%); }
.lb-prev:hover, .lb-next:hover, .lb-close:hover { color: var(--neon); }

/* ---------- Video ---------- */
.video-wrap { position: relative; border: 1px solid var(--line); }
.video-wrap video { width: 100%; max-height: 78vh; object-fit: cover; background: #000; }

/* ---------- Partner ---------- */
/* Con pochi partner le schede si allargherebbero a tutta pagina e
   sembrerebbero sformate: il tetto le tiene in proporzione. */
.partner-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 24px;
  max-width: 820px; margin-inline: auto;
}
.partner {
  border: 1px solid var(--line); border-radius: 2px;
  background: rgba(255, 255, 255, 0.02);
  padding: 30px 26px; text-align: center;
  transition: border-color 0.3s, background 0.3s;
}
.partner:hover { border-color: rgba(255, 45, 149, 0.45); background: rgba(255, 45, 149, 0.05); }
.partner-mark {
  width: 76px; height: 76px; margin: 0 auto 18px;
  border: 1px solid rgba(255, 45, 149, 0.5); border-radius: 50%;
  display: grid; place-items: center;
  font-size: 1.2rem; letter-spacing: 0.08em; color: var(--neon-soft);
  background: rgba(255, 45, 149, 0.07);
  overflow: hidden;
}
/* Un logo orizzontale dentro un cerchio da 76px diventa illeggibile:
   quando c'è l'immagine il contenitore diventa un rettangolo largo.
   Niente altezza fissa e niente overflow: hidden, altrimenti i loghi
   più alti del riquadro vengono tagliati invece di rimpicciolirsi. */
.partner-mark.logo {
  display: block;
  width: auto; max-width: 100%; height: auto;
  border: 0; border-radius: 0; background: none;
  overflow: visible;
  margin: 0 auto 20px;
}
/* width/height sono anche attributi nell'HTML: servono a riservare lo
   spazio prima del caricamento, altrimenti l'immagine resta 0x0 e il
   caricamento pigro non parte mai. */
.partner-mark.logo img {
  width: 100%; max-width: 240px; height: auto;
  margin: 0 auto;
  display: block;
}

/* Loghi nati per fondo chiaro: si posano su una targhetta bianca invece
   di galleggiare sul nero. Non si applica al logo DMC, che è bianco e
   sul bianco sparirebbe. */
.partner-mark.logo.su-bianco {
  background: #fff;
  border-radius: 10px;
  padding: 16px 20px;
  width: fit-content;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .35);
}
.partner h3 { margin-bottom: 4px; font-size: 1.15rem; }
.partner-tipo {
  font-size: 0.64rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--neon); margin-bottom: 14px;
}
.partner p { font-size: 0.9rem; margin: 0; }
.partner-luogo {
  font-size: 0.8rem !important;
  color: var(--neon-soft) !important;
  margin-bottom: 10px !important;
}
.partner-luogo span { margin-right: 6px; font-size: 0.7em; }
.partner-link {
  display: inline-block; margin-top: 16px;
  font-size: 0.66rem; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 600;
  color: var(--neon-soft);
  border-bottom: 1px solid rgba(255, 122, 192, 0.4);
  padding-bottom: 3px;
  transition: color 0.2s, border-color 0.2s;
}
.partner-link:hover { color: #fff; border-color: #fff; }
.partner-cta { text-align: center; margin: 44px 0 0; font-size: 0.92rem; }
.partner-cta a { color: var(--neon-soft); border-bottom: 1px solid rgba(255, 122, 192, 0.4); }
.partner-cta a:hover { color: #fff; }

/* ---------- Posizione ---------- */
.poi { display: flex; gap: 22px; padding: 20px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.poi .d { font-size: 1.3rem; color: var(--neon); min-width: 86px; }
.poi h3 { margin: 0 0 2px; }
.poi p { margin: 0; font-size: 0.9rem; }
.map { width: 100%; height: 380px; border: 1px solid var(--line); filter: grayscale(1) invert(0.92) contrast(0.82) hue-rotate(180deg); }

/* ---------- Contatti ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.price-tag {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  padding: 26px 28px;
  margin-bottom: 34px;
  border: 1px solid rgba(255, 45, 149, 0.45);
  border-radius: 2px;
  background: linear-gradient(135deg, rgba(255, 45, 149, 0.09), transparent 70%);
}
.price-tag .amount {
  font-size: 3rem;
  line-height: 1;
  color: #fff;
  text-shadow: 0 0 16px rgba(255, 45, 149, 0.7);
  white-space: nowrap;
}
.price-tag .amount span { font-size: 1.6rem; color: var(--neon-soft); }
.price-tag .unit { font-size: 0.86rem; color: var(--muted); line-height: 1.6; }
.price-tag .unit em { font-style: normal; color: var(--neon-soft); font-size: 0.78rem; letter-spacing: 0.06em; }

.contact-list { list-style: none; padding: 0; margin: 0 0 34px; }
.contact-list li { padding: 15px 0; border-bottom: 1px solid var(--line); display: flex; gap: 6px 18px; align-items: baseline; flex-wrap: wrap; }
.contact-list .lbl { font-size: 0.65rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--neon); min-width: 92px; }
.contact-list a:hover { color: var(--neon-soft); }

form { display: grid; gap: 18px; }
label { font-size: 0.65rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); display: block; margin-bottom: 8px; }
input, textarea {
  width: 100%;
  padding: 13px 15px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 300;
}
input:focus, textarea:focus { outline: none; border-color: var(--neon); box-shadow: 0 0 0 3px rgba(255, 45, 149, 0.12); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-note { font-size: 0.78rem; color: var(--muted); margin: 0; }

/* ---------- Footer ---------- */
footer { background: var(--bg-soft); border-top: 1px solid var(--line); padding: 70px 0 28px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 44px; margin-bottom: 46px; }
footer p, footer li { font-size: 0.88rem; }
.foot-links { list-style: none; padding: 0; margin: 0; }
.foot-links li { padding: 5px 0; }
.foot-links a { color: var(--muted); }
.foot-links a:hover { color: var(--neon-soft); }
.ver {
  display: inline-block; margin-left: 10px; padding: 2px 8px;
  border: 1px solid var(--line); border-radius: 999px;
  font-size: 0.62rem; letter-spacing: 0.1em; color: rgba(167,159,179,.55);
}
.foot-bottom { border-top: 1px solid var(--line); padding-top: 22px; display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-size: 0.76rem; color: rgba(167, 159, 179, 0.75); }

/* ===================================================================
   PAGINA PRENOTAZIONE
   =================================================================== */
.page-top { padding: 130px 0 90px; }

.banner {
  border: 1px solid rgba(255, 45, 149, 0.45);
  background: rgba(255, 45, 149, 0.07);
  border-radius: 2px;
  padding: 16px 20px;
  margin-bottom: 34px;
  font-size: 0.88rem;
  color: var(--text);
}
.banner code { color: var(--neon-soft); font-size: 0.85em; }

/* --- selettore alloggio --- */
.scelta-alloggio { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; margin-bottom: 34px; }
.alloggio-card {
  display: flex; gap: 16px; align-items: center; text-align: left;
  border: 1px solid var(--line); border-radius: 2px;
  background: var(--bg-soft); color: var(--text);
  padding: 14px; font-family: inherit; cursor: pointer;
  transition: border-color 0.25s, background 0.25s;
}
.alloggio-card:hover { border-color: rgba(255, 45, 149, 0.5); }
.alloggio-card.attivo {
  border-color: var(--neon);
  background: rgba(255, 45, 149, 0.08);
  box-shadow: 0 0 20px rgba(255, 45, 149, 0.18);
}
.al-foto {
  width: 86px; height: 86px; flex: 0 0 86px; border-radius: 2px; overflow: hidden;
  background: linear-gradient(135deg, #241d29, #14111a);
  display: grid; place-items: center;
}
.al-foto img { width: 100%; height: 100%; object-fit: cover; }
.al-foto span { font-size: 0.58rem; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(243, 238, 247, 0.35); text-align: center; padding: 6px; }
.al-testo { min-width: 0; }
.al-testo h3 { margin: 0 0 2px; font-size: 1.02rem; }
.alloggio-card.wip { opacity: 0.62; cursor: not-allowed; border-style: dashed; }
.alloggio-card.wip:hover { border-color: var(--line); }
.alloggio-card.wip .badge-wip { margin: 0 0 6px; }
.alloggio-card.wip .al-foto {
  background-image: repeating-linear-gradient(
    45deg, rgba(255, 45, 149, 0.07) 0 14px, transparent 14px 28px);
}
.al-sub { margin: 0 0 6px; font-size: 0.78rem; color: var(--muted); }
.al-prezzo { margin: 0; font-size: 0.74rem; letter-spacing: 0.06em; color: var(--neon-soft); }

.ticket-alloggio {
  font-size: 0.82rem; letter-spacing: 0.08em; color: var(--neon-soft);
  margin: 0 0 16px; padding-bottom: 14px; border-bottom: 1px dashed var(--line);
}

.booking-layout { display: grid; grid-template-columns: 1.25fr 1fr; gap: 40px; align-items: start; }

/* --- calendario --- */
.cal-panel, .book-panel {
  border: 1px solid var(--line);
  background: var(--bg-soft);
  border-radius: 2px;
  padding: 28px;
}
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.cal-head h3 { margin: 0; font-size: 1.3rem; letter-spacing: 0.04em; }
.cal-nav {
  background: none; border: 1px solid var(--line); color: var(--text);
  width: 38px; height: 38px; border-radius: 2px; cursor: pointer;
  font-size: 1.3rem; line-height: 1; transition: border-color 0.2s, color 0.2s;
}
.cal-nav:hover:not(:disabled) { border-color: var(--neon); color: var(--neon-soft); }
.cal-nav:disabled { opacity: 0.28; cursor: not-allowed; }

/* Senza un tetto alla larghezza, su schermo grande ogni casella diventa
   un quadrato da 90px e il calendario sembra vuoto. */
.cal-weekdays, .cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; max-width: 460px; margin-inline: auto; }
.cal-weekdays {
  margin-bottom: 8px; font-size: 0.62rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--muted); text-align: center;
}

.cal-day {
  aspect-ratio: 1;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid transparent;
  border-radius: 2px;
  color: var(--text);
  font-family: inherit; font-size: 0.95rem; font-weight: 300;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.cal-day:hover:not(:disabled) { border-color: var(--neon); background: rgba(255, 45, 149, 0.14); }
.cal-day.empty { background: none; cursor: default; }
.cal-day.past { background: none; color: rgba(167, 159, 179, 0.3); cursor: not-allowed; }
.cal-day.busy {
  background: rgba(255, 45, 149, 0.16);
  color: rgba(255, 122, 192, 0.55);
  text-decoration: line-through;
  cursor: not-allowed;
}
.cal-day.range { background: rgba(255, 45, 149, 0.2); }
.cal-day.sel {
  background: var(--neon); color: #fff; font-weight: 500;
  box-shadow: 0 0 18px rgba(255, 45, 149, 0.5);
}

.cal-legend {
  display: flex; gap: 22px; flex-wrap: wrap; justify-content: center;
  margin-top: 22px; font-size: 0.74rem; color: var(--muted);
}
.cal-legend .sw { display: inline-block; width: 13px; height: 13px; border-radius: 2px; margin-right: 7px; vertical-align: -2px; }
.sw.free { background: rgba(255, 255, 255, 0.12); }
.sw.sel { background: var(--neon); }
.sw.busy { background: rgba(255, 45, 149, 0.28); }

.cal-status { margin: 18px 0 0; font-size: 0.82rem; text-align: center; }
.cal-status.warn { color: var(--neon-soft); }

/* --- pannello prenotazione --- */
.book-panel h3 { margin-bottom: 20px; font-size: 1.3rem; }
.date-pills { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.pill {
  border: 1px solid var(--line); border-radius: 2px;
  padding: 14px 16px; text-align: center; background: rgba(255, 255, 255, 0.03);
}
.pill .k { display: block; font-size: 0.6rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--neon); margin-bottom: 6px; }
.pill strong { font-weight: 400; font-size: 0.98rem; }

.link-reset {
  background: none; border: 0; color: var(--muted); font-family: inherit;
  font-size: 0.78rem; text-decoration: underline; cursor: pointer;
  padding: 0 0 14px; display: block;
}
.link-reset:hover { color: var(--neon-soft); }

select {
  width: 100%; padding: 13px 15px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line); border-radius: 2px;
  color: var(--text); font-family: inherit; font-size: 0.95rem; font-weight: 300;
}
select:focus { outline: none; border-color: var(--neon); }

.totale { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 18px; }
.totale .riga { display: flex; justify-content: space-between; gap: 16px; padding: 6px 0; font-size: 0.92rem; color: var(--muted); }
.totale .riga.small { font-size: 0.8rem; }
.totale .riga.tot {
  border-top: 1px solid var(--line); margin-top: 10px; padding-top: 14px;
  font-size: 1.3rem; color: var(--text);
}
.totale .riga.tot span:last-child { color: #fff; text-shadow: 0 0 14px rgba(255, 45, 149, 0.6); }

.btn.full { width: 100%; text-align: center; }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }
.btn:disabled:hover { background: var(--neon); box-shadow: none; }
.form-note.err { color: var(--neon-soft); }

/* --- conferma --- */
/* Flex + overflow invece di place-items:center: se il contenuto è più alto
   dello schermo resta scorrevole, invece di essere tagliato in cima. */
.modal {
  position: fixed; inset: 0; z-index: 210;
  background: rgba(5, 4, 7, 0.9);
  display: flex; justify-content: center; align-items: flex-start;
  padding: 24px; overflow-y: auto;
  overscroll-behavior: contain;
}
.modal-box {
  background: var(--bg-soft); border: 1px solid rgba(255, 45, 149, 0.4);
  border-radius: 2px; padding: 40px 34px; max-width: 460px; width: 100%;
  text-align: center; margin: auto;
}
.modal-ico {
  width: 58px; height: 58px; margin: 0 auto 20px; border-radius: 50%;
  display: grid; place-items: center; font-size: 1.7rem;
  background: var(--neon); color: #fff; box-shadow: 0 0 26px rgba(255, 45, 149, 0.55);
}
.modal-box > p { font-size: 0.92rem; }

.ticket {
  border: 1px solid var(--line); border-radius: 2px;
  background: rgba(255, 255, 255, 0.03);
  padding: 24px 20px; margin: 24px 0;
}
.ticket-k {
  font-size: 0.62rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--neon); margin: 0 0 10px;
}
.ticket-code {
  font-family: ui-monospace, "Courier New", monospace;
  font-size: 1.7rem; letter-spacing: 0.14em; color: #fff;
  text-shadow: 0 0 14px rgba(255, 45, 149, 0.55);
  overflow-wrap: anywhere;
}
.ticket-qr { border-top: 1px dashed var(--line); margin-top: 22px; padding-top: 20px; }
.ticket-qr canvas { margin: 0 auto; background: #fff; padding: 8px; border-radius: 2px; display: block; }
.ticket-hint { font-size: 0.76rem; color: var(--muted); margin: 12px 0 0; }

.ticket-dates { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 22px; }
.ticket-dates > div {
  border: 1px solid var(--line); border-radius: 2px; padding: 14px 10px;
  background: rgba(255, 255, 255, 0.03);
}
.ticket-dates .ico { display: block; color: var(--neon); font-size: 0.9rem; margin-bottom: 6px; }
.ticket-dates .k { display: block; font-size: 0.6rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.ticket-dates strong { font-weight: 400; font-size: 0.95rem; }

.ticket-tot {
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  border-top: 1px solid var(--line); margin-top: 18px; padding-top: 16px;
  font-size: 0.88rem; color: var(--muted);
}
.ticket-tot strong { font-size: 1.2rem; color: #fff; font-weight: 400; }

.pagamento {
  border: 1px solid var(--line); border-radius: 2px;
  background: rgba(255, 255, 255, 0.03);
  padding: 22px 20px; margin-bottom: 24px; text-align: left;
}
.pag-riga {
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  padding: 8px 0; font-size: 0.88rem; color: var(--muted);
}
.pag-riga strong { color: var(--text); font-weight: 400; }
.pag-riga.small { font-size: 0.8rem; }
.pag-riga .mono { font-family: ui-monospace, "Courier New", monospace; overflow-wrap: anywhere; }
.iban-box { border-top: 1px dashed var(--line); margin-top: 12px; padding-top: 12px; }
.btn.copia { width: 100%; margin-top: 12px; padding: 10px 16px; font-size: 0.66rem; }
.pagamento .ticket-hint { text-align: left; }
.pagamento .ticket-hint strong { color: var(--neon-soft); font-weight: 500; }

.modal-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.modal-actions .btn { padding: 12px 22px; }

@media (max-width: 900px) {
  .booking-layout { grid-template-columns: 1fr; gap: 28px; }
  .page-top { padding: 110px 0 70px; }
  .cal-panel, .book-panel { padding: 20px 16px; }
  .cal-weekdays, .cal-grid { gap: 4px; }
  .cal-day { font-size: 0.85rem; }
}

/* ---------- pannello gestione ---------- */
.admin-login { max-width: 420px; margin: 40px auto; border: 1px solid var(--line); background: var(--bg-soft); padding: 34px; border-radius: 2px; }
.admin-login h2 { font-size: 1.8rem; }

.admin-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; }
.tab {
  background: none; border: 1px solid var(--line); border-radius: 2px;
  color: var(--muted); font-family: inherit; font-size: 0.76rem;
  letter-spacing: 0.12em; text-transform: uppercase; padding: 11px 18px; cursor: pointer;
}
.tab.active { border-color: var(--neon); color: #fff; }
.tab .count {
  display: inline-block; margin-left: 8px; padding: 1px 8px; border-radius: 10px;
  background: rgba(255, 45, 149, 0.22); color: var(--neon-soft); font-size: 0.72rem;
}

.admin-list { display: grid; gap: 16px; }
.admin-card { border: 1px solid var(--line); background: var(--bg-soft); border-radius: 2px; padding: 24px; }
.ac-head { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; align-items: flex-start; }
.ac-alloggio { margin: 0 0 4px; font-size: 0.62rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--neon); }
.ac-head h3 { margin: 0 0 4px; font-size: 1.15rem; }
.ac-date { margin: 0; font-size: 0.86rem; color: var(--muted); }
.ac-tot { font-size: 1.5rem; color: #fff; text-shadow: 0 0 14px rgba(255, 45, 149, 0.6); white-space: nowrap; text-align: right; }
.ac-caparra { margin: 2px 0 0; font-size: 0.74rem; color: var(--muted); text-align: right; white-space: nowrap; }
.ac-info { list-style: none; padding: 0; margin: 18px 0; border-top: 1px solid var(--line); }
.ac-info li { display: flex; gap: 16px; flex-wrap: wrap; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 0.88rem; }
.ac-info li span { font-size: 0.62rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--neon); min-width: 82px; }
.ac-info a { overflow-wrap: anywhere; }
.ac-info a:hover { color: var(--neon-soft); }
.ac-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.ac-actions .btn { padding: 10px 20px; font-size: 0.68rem; }

/* ---------- WhatsApp FAB ---------- */
.wa {
  position: fixed; right: 20px; bottom: 20px; z-index: 90;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25d366; display: grid; place-items: center;
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.5);
  transition: transform 0.25s;
}
.wa:hover { transform: scale(1.08); }
.wa svg { width: 30px; height: 30px; fill: #fff; }

/* ===================================================================
   ANIMAZIONI
   Attive sempre e ovunque, su qualsiasi computer e telefono.
   =================================================================== */

/* --- comparsa allo scorrimento --- */
.js .reveal { opacity: 0; transform: translateY(26px); }
.reveal { transition: opacity 0.8s ease, transform 0.8s ease; }
/* .js davanti anche qui: senza, le due regole hanno lo stesso peso e a
   decidere resta solo l'ordine nel file — troppo fragile per una cosa
   che, se sbaglia, rende invisibile mezza pagina. */
.js .reveal.in, .reveal.in { opacity: 1; transform: none; }

/* Le schede dentro una griglia entrano una dopo l'altra invece che tutte
   insieme. Sono TRANSIZIONI, non animazioni: se il browser non le esegue
   l'elemento arriva comunque allo stato finale, cioè visibile. Con le
   animazioni, se non partivano, il contenuto restava invisibile per
   sempre: era la causa del rettangolo nero al posto della foto. */
.js .reveal > * { opacity: 0; transform: translateY(18px); }
.js .reveal > *.visibile { opacity: 1; transform: none; }
.reveal > * {
  transition: opacity .7s cubic-bezier(.2,.7,.3,1), transform .7s cubic-bezier(.2,.7,.3,1);
}
/* Ogni elemento si accende quando entra LUI nello schermo, non quando
   entra la sezione che lo contiene: sul telefono le schede sono in colonna
   e con il contenitore si accendevano tutte insieme, comprese quelle
   ancora lontane sotto. */
.reveal > *.visibile { opacity: 1; transform: none; }
.reveal > *:nth-child(1) { transition-delay: 0ms; }
.reveal > *:nth-child(2) { transition-delay: 80ms; }
.reveal > *:nth-child(3) { transition-delay: 160ms; }
.reveal > *:nth-child(4) { transition-delay: 240ms; }
.reveal > *:nth-child(5) { transition-delay: 320ms; }
.reveal > *:nth-child(6) { transition-delay: 400ms; }
.reveal > *:nth-child(7) { transition-delay: 480ms; }
.reveal > *:nth-child(8) { transition-delay: 560ms; }

/* --- copertina: lentissimo avvicinamento --- */
.hero-bg img { animation: respiro 26s ease-in-out infinite alternate; transform-origin: center 60%; }
@keyframes respiro {
  from { transform: scale(1); }
  to   { transform: scale(1.09); }
}

/* --- insegna al neon: pulsazione e piccolo sfarfallio all'avvio --- */
.logo .el { animation: pulsaNeon 4.5s ease-in-out infinite; }
.logo-lg .el { animation: accendi 1.6s steps(1) 1 both, pulsaNeon 4.5s ease-in-out 1.6s infinite; }
@keyframes pulsaNeon {
  0%, 100% { text-shadow: 0 0 6px rgba(255,45,149,.9), 0 0 18px rgba(255,45,149,.55), 0 0 44px rgba(255,45,149,.30); }
  50%      { text-shadow: 0 0 8px rgba(255,45,149,1),  0 0 26px rgba(255,45,149,.75), 0 0 62px rgba(255,45,149,.45); }
}
/* Lo sfarfallio dell'accensione non toglie MAI l'alone: prima passava per
   due fotogrammi con text-shadow: none, e il logo appariva bianco piatto
   nei primi istanti dopo l'apertura del sito. */
@keyframes accendi {
  0%, 12%  { opacity: .45; text-shadow: 0 0 5px rgba(255, 45, 149, .55); }
  14%, 20% { opacity: 1;   text-shadow: var(--glow); }
  22%      { opacity: .6;  text-shadow: 0 0 7px rgba(255, 45, 149, .65); }
  24%, 100%{ opacity: 1;   text-shadow: var(--glow); }
}

/* selezione del testo nei colori del sito, invece del blu di sistema */
::selection { background: rgba(255, 45, 149, .35); color: #fff; }

/* --- pulsanti: lampo di luce che attraversa --- */
.btn { position: relative; overflow: hidden; }
.btn::after {
  content: ""; position: absolute; inset: 0 auto 0 -60%;
  width: 45%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.35), transparent);
  transform: skewX(-18deg); opacity: 0;
}
.btn:hover::after { animation: lampo .75s ease; }
@keyframes lampo {
  from { left: -60%; opacity: 1; }
  to   { left: 130%; opacity: 0; }
}

/* --- schede: si sollevano al passaggio --- */
.alloggio-box, .partner, .service, .room {
  transition: transform .35s cubic-bezier(.2,.7,.3,1), border-color .3s, background .3s, box-shadow .35s;
}
.alloggio-box:hover, .partner:hover, .room:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .45);
}
.service:hover { transform: translateY(-4px); }
.service .ico { transition: transform .35s cubic-bezier(.2,.7,.3,1); }
.service:hover .ico { transform: translateY(-3px) scale(1.12); }
.alloggio-box:hover .ab-foto img { transform: scale(1.05); }
.ab-foto img { transition: transform .7s ease; }
.partner:hover .partner-mark img { transform: scale(1.06); }
.partner-mark img { transition: transform .4s ease; }

/* --- barra di avanzamento della lettura --- */
.progresso {
  position: fixed; inset: 0 auto auto 0; z-index: 120;
  height: 2px; width: 0;
  background: linear-gradient(90deg, var(--neon), var(--violet));
  box-shadow: 0 0 12px rgba(255, 45, 149, .8);
}

/* --- freccia in fondo alla copertina --- */
.hero-giu {
  position: absolute; left: 50%; bottom: 26px; z-index: 1;
  transform: translateX(-50%);
  color: var(--muted); font-size: 1.4rem; line-height: 1;
  animation: saltella 2.4s ease-in-out infinite;
}
@keyframes saltella {
  0%, 100% { transform: translate(-50%, 0); opacity: .45; }
  50%      { transform: translate(-50%, 9px); opacity: 1; }
}

/* --- voci di menu: linea al neon che si apre da sinistra --- */
.nav-links a:not(.btn) { position: relative; }
.nav-links a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: -6px;
  height: 1px; width: 0;
  background: var(--neon);
  box-shadow: 0 0 8px var(--neon);
  transition: width .35s cubic-bezier(.2,.7,.3,1);
}
.nav-links a:not(.btn):hover::after { width: 100%; }

/* --- aloni di luce che galleggiano dietro le sezioni scure --- */
.alt { overflow: hidden; }
.alt::before, .alt::after {
  content: ""; position: absolute; z-index: 0;
  width: 460px; height: 460px; border-radius: 50%;
  filter: blur(90px); opacity: .16; pointer-events: none;
}
.alt::before { background: var(--neon);   top: -140px; left: -120px;  animation: galleggia 18s ease-in-out infinite alternate; }
.alt::after  { background: var(--violet); bottom: -160px; right: -110px; animation: galleggia 22s ease-in-out infinite alternate-reverse; }
.alt > * { position: relative; z-index: 1; }
@keyframes galleggia {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(60px, 40px) scale(1.18); }
}

/* --- gallery: velo che sale con la lente --- */
.gallery figure::after {
  content: "＋";
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-size: 1.8rem; color: #fff;
  background: linear-gradient(transparent, rgba(255, 45, 149, .35));
  opacity: 0; transition: opacity .35s ease;
}
.gallery figure:hover::after { opacity: 1; }

/* --- pulsante WhatsApp: anello che si espande --- */
.wa::before {
  content: ""; position: absolute; inset: 0;
  border-radius: 50%; border: 2px solid #25d366;
  animation: anello 2.6s ease-out infinite;
}
@keyframes anello {
  0%   { transform: scale(1);   opacity: .7; }
  70%  { transform: scale(1.7); opacity: 0; }
  100% { transform: scale(1.7); opacity: 0; }
}

/* --- particelle luminose che salgono nella copertina --- */
.particelle { position: absolute; inset: 0; z-index: 1; overflow: hidden; pointer-events: none; }
.particelle i {
  position: absolute; bottom: -12px;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--neon-soft);
  box-shadow: 0 0 12px var(--neon);
  opacity: 0;
  animation: sali linear infinite;
}
@keyframes sali {
  0%   { transform: translateY(0) scale(.6);        opacity: 0; }
  12%  { opacity: .75; }
  85%  { opacity: .45; }
  100% { transform: translateY(-95vh) scale(1.25);  opacity: 0; }
}

/* --- titoli parola per parola (transizioni, non animazioni: così una
       parola non può restare invisibile se qualcosa non parte) --- */
.parola {
  display: inline-block;
  transition: opacity .55s cubic-bezier(.2,.7,.3,1), transform .55s cubic-bezier(.2,.7,.3,1);
}
.js .parola { opacity: 0; transform: translateY(16px); }
.reveal.in .parola { opacity: 1; transform: none; }

/* --- pallino pulsante accanto alle etichette di sezione --- */
.eyebrow::before {
  content: ""; display: inline-block; vertical-align: middle;
  width: 6px; height: 6px; margin-right: 10px; border-radius: 50%;
  background: var(--neon); box-shadow: 0 0 10px var(--neon);
  animation: battito 1.8s ease-in-out infinite;
}
.section-head.center .eyebrow::before { margin-right: 8px; }
@keyframes battito {
  0%, 100% { transform: scale(1);   opacity: 1; }
  50%      { transform: scale(1.7); opacity: .45; }
}

/* --- pulsante principale: respiro luminoso continuo --- */
.hero-actions .btn-solid { animation: respiroLuce 3.2s ease-in-out infinite; }
@keyframes respiroLuce {
  0%, 100% { box-shadow: 0 0 22px rgba(255, 45, 149, .40); }
  50%      { box-shadow: 0 0 34px rgba(255, 45, 149, .75), 0 0 60px rgba(255, 45, 149, .28); }
}

/* --- striscia scorrevole con i servizi --- */
.striscia {
  overflow: hidden; border-block: 1px solid var(--line);
  background: rgba(255, 45, 149, .05);
  padding: 16px 0;
}
.striscia-pista { display: flex; width: max-content; animation: scorri 32s linear infinite; }
.striscia:hover .striscia-pista { animation-play-state: paused; }
.striscia span {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 0 26px; white-space: nowrap;
  font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--muted);
}
.striscia span::after { content: "◆"; color: var(--neon); font-size: .6rem; }
@keyframes scorri {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* --- schede: bordo luminoso che segue il cursore --- */
.alloggio-box, .partner, .service { position: relative; }
.alloggio-box::before, .partner::before, .service::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  border-radius: inherit; opacity: 0; transition: opacity .35s;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%),
              rgba(255, 45, 149, .16), transparent 65%);
}
.alloggio-box:hover::before, .partner:hover::before, .service:hover::before { opacity: 1; }

/* --- gallery: le foto entrano scalando --- */
.js .gallery figure { opacity: 0; transform: scale(.92); }
.js .gallery figure.visibile { opacity: 1; transform: none; }
.gallery figure { transition: opacity .6s cubic-bezier(.2,.7,.3,1), transform .6s cubic-bezier(.2,.7,.3,1); }
.gallery figure.visibile { opacity: 1; transform: none; }
.gallery figure:nth-child(2)  { transition-delay: 60ms; }
.gallery figure:nth-child(3)  { transition-delay: 120ms; }
.gallery figure:nth-child(4)  { transition-delay: 180ms; }
.gallery figure:nth-child(5)  { transition-delay: 240ms; }
.gallery figure:nth-child(6)  { transition-delay: 300ms; }
.gallery figure:nth-child(7)  { transition-delay: 360ms; }
.gallery figure:nth-child(8)  { transition-delay: 420ms; }
.gallery figure:nth-child(n+9){ transition-delay: 480ms; }

/* --- prezzi che brillano --- */
.stat .n, .price-tag .amount, .totale .riga.tot span:last-child, .ac-tot {
  animation: brillaPrezzo 3.6s ease-in-out infinite;
}
@keyframes brillaPrezzo {
  0%, 100% { text-shadow: 0 0 12px rgba(255, 45, 149, .55); }
  50%      { text-shadow: 0 0 20px rgba(255, 45, 149, .95), 0 0 40px rgba(255, 45, 149, .35); }
}

/* --- immagini che si svelano dall'alto --- */
/* Le foto entrano ingrandendosi appena. Niente clip-path: con quello, se
   l'animazione non si concludeva la foto restava ritagliata a zero e
   spariva lasciando un rettangolo nero al suo posto. */
/* La foto NON parte mai nascosta: resta sempre visibile e si limita a
   ingrandirsi appena quando la sezione entra. Farla partire da opacità
   zero ha prodotto due volte un rettangolo nero al suo posto quando
   qualcosa non scattava: non vale il rischio. */
.split .media img {
  opacity: 1;
  transform: scale(1.04);
  transition: transform 1s cubic-bezier(.2,.7,.3,1) .1s;
}
.split .media.reveal.in img { transform: none; }

/* --- riga luminosa sotto i titoli di sezione --- */
.section-head h2 { position: relative; padding-bottom: 14px; }
.section-head h2::after {
  content: ""; position: absolute; bottom: 0; left: 0;
  height: 2px; width: 0;
  background: linear-gradient(90deg, var(--neon), transparent);
  box-shadow: 0 0 10px var(--neon);
}
.section-head.center h2::after { left: 50%; transform: translateX(-50%); background: linear-gradient(90deg, transparent, var(--neon), transparent); }
.reveal.in .section-head h2::after,
.section-head.reveal.in h2::after { animation: tiraRiga .9s cubic-bezier(.2,.7,.3,1) .5s both; }
@keyframes tiraRiga {
  from { width: 0; }
  to   { width: 120px; }
}

/* --- icone dei servizi che ondeggiano --- */
.service .ico svg { animation: ondeggia 4s ease-in-out infinite; }
.service:nth-child(2n) .ico svg { animation-delay: -1.3s; }
.service:nth-child(3n) .ico svg { animation-delay: -2.6s; }
@keyframes ondeggia {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-4px) rotate(-4deg); }
}

/* --- etichetta "in allestimento" che lampeggia piano --- */
.badge-wip { animation: lampeggia 2.8s ease-in-out infinite; }
@keyframes lampeggia {
  0%, 100% { opacity: 1;   box-shadow: 0 0 0 rgba(255,45,149,0); }
  50%      { opacity: .62; box-shadow: 0 0 16px rgba(255,45,149,.45); }
}

/* --- giorni del calendario che si accendono al passaggio --- */
.cal-day:not(:disabled)::after {
  content: ""; position: absolute; inset: 0; border-radius: 2px;
  box-shadow: 0 0 0 0 rgba(255, 45, 149, .55); opacity: 0;
}
.cal-day { position: relative; }
.cal-day:not(:disabled):hover::after { animation: onda .6s ease-out; }
@keyframes onda {
  from { box-shadow: 0 0 0 0 rgba(255,45,149,.55); opacity: 1; }
  to   { box-shadow: 0 0 0 14px rgba(255,45,149,0); opacity: 0; }
}

/* --- logo del footer con alone che respira --- */
footer .logo .el { animation: pulsaNeon 6s ease-in-out infinite; }

/* --- scheda alloggio selezionata: bordo che scorre --- */
.alloggio-card.attivo {
  background-image: linear-gradient(115deg, transparent 40%, rgba(255,45,149,.16) 50%, transparent 60%);
  background-size: 250% 100%;
  animation: scorreBordo 3.4s ease-in-out infinite;
}
@keyframes scorreBordo {
  from { background-position: 120% 0; }
  to   { background-position: -60% 0; }
}

/* ============ ALTRE DIECI ANIMAZIONI ============ */

/* 1-2. le due metà delle sezioni doppie entrano da lati opposti */
/* la classe reveal sta sui figli del blocco .split, non sul contenitore */
.split > .reveal:first-child { transform: translateX(-46px); }
.split > .reveal:last-child  { transform: translateX(46px); transition-delay: .12s; }
.split > .reveal.in { transform: none; }

/* 3. alone che ruota attorno al riquadro del prezzo */
.price-tag { position: relative; overflow: hidden; }
.price-tag::before {
  content: ""; position: absolute; inset: -60%;
  background: conic-gradient(from 0deg, transparent 0 70%, rgba(255,45,149,.22) 85%, transparent 100%);
  animation: ruotaAlone 7s linear infinite;
  pointer-events: none;
}
.price-tag > * { position: relative; z-index: 1; }
@keyframes ruotaAlone { to { transform: rotate(360deg); } }

/* 4. scintille attorno al logo grande */
.logo-lg { position: relative; }
.logo-lg::before, .logo-lg::after {
  content: "✦"; position: absolute;
  color: var(--neon-soft); font-size: .9rem;
  text-shadow: 0 0 10px var(--neon);
  opacity: 0;
}
.logo-lg::before { top: 6%;  left: -4%;  animation: scintilla 3.6s ease-in-out infinite; }
.logo-lg::after  { top: 58%; right: -3%; animation: scintilla 3.6s ease-in-out 1.8s infinite; }
@keyframes scintilla {
  0%, 100% { opacity: 0; transform: scale(.4) rotate(0deg); }
  40%      { opacity: 1; transform: scale(1.15) rotate(90deg); }
  70%      { opacity: 0; transform: scale(.5) rotate(160deg); }
}

/* 5. le voci del menu mobile entrano una dopo l'altra */
@media (max-width: 900px) {
  .nav-links.open a { animation: menuEntra .45s cubic-bezier(.2,.7,.3,1) both; }
  .nav-links.open a:nth-child(1) { animation-delay: .10s; }
  .nav-links.open a:nth-child(2) { animation-delay: .16s; }
  .nav-links.open a:nth-child(3) { animation-delay: .22s; }
  .nav-links.open a:nth-child(4) { animation-delay: .28s; }
  .nav-links.open a:nth-child(5) { animation-delay: .34s; }
  .nav-links.open a:nth-child(6) { animation-delay: .40s; }
  .nav-links.open a:nth-child(7) { animation-delay: .46s; }
}
@keyframes menuEntra {
  from { opacity: 0; transform: translateX(34px); }
  to   { opacity: 1; transform: none; }
}

/* 6. icona dei servizi che trema quando ci passi sopra */
.service:hover .ico svg { animation: tremaIcona .55s ease-in-out; }
@keyframes tremaIcona {
  0%, 100% { transform: rotate(0deg); }
  20%      { transform: rotate(-14deg) scale(1.1); }
  50%      { transform: rotate(12deg)  scale(1.14); }
  80%      { transform: rotate(-6deg)  scale(1.06); }
}

/* 7. riflesso che attraversa il riquadro del prezzo */
.price-tag .amount { position: relative; overflow: hidden; display: inline-block; }
.price-tag::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -40%;
  width: 28%; transform: skewX(-20deg);
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.16), transparent);
  animation: nastroPrezzo 5.5s ease-in-out infinite;
  pointer-events: none;
}
@keyframes nastroPrezzo {
  0%, 65% { left: -40%; }
  100%    { left: 130%; }
}

/* 8. i link del footer scivolano a destra al passaggio */
.foot-links a { display: inline-block; transition: transform .28s cubic-bezier(.2,.7,.3,1), color .2s; }
.foot-links a:hover { transform: translateX(7px); }
.foot-links a::before {
  content: "→"; display: inline-block;
  width: 0; overflow: hidden; opacity: 0;
  transition: width .28s ease, opacity .28s ease, margin-right .28s ease;
}
.foot-links a:hover::before { width: 1em; opacity: 1; margin-right: 6px; }

/* 9. bordo tratteggiato che gira attorno alla casa in allestimento */
.alloggio-box.wip {
  background-image:
    repeating-linear-gradient(90deg, rgba(255,45,149,.55) 0 12px, transparent 12px 24px);
  background-size: 100% 1px;
  background-position: 0 0;
  background-repeat: no-repeat;
  animation: contornoWip 1.4s linear infinite;
}
@keyframes contornoWip {
  from { background-position: 0 0; }
  to   { background-position: 24px 0; }
}

/* 10. le foto della gallery respirano lentamente, sfalsate fra loro */
.gallery figure img { animation: zoomGallery 22s ease-in-out infinite alternate; }
.gallery figure:nth-child(3n) img   { animation-delay: -7s; }
.gallery figure:nth-child(3n+1) img { animation-delay: -14s; }
@keyframes zoomGallery {
  from { transform: scale(1); }
  to   { transform: scale(1.07); }
}

/* ============ ALTRE QUINDICI, TUTTE A CICLO CONTINUO ============ */

/* 11. bordo delle schede che si accende e si spegne */
.alloggio-box, .partner, .service { animation: bordoVivo 5s ease-in-out infinite; }
.partner  { animation-delay: -1.6s; }
.service  { animation-delay: -3.2s; }
@keyframes bordoVivo {
  0%, 100% { border-color: var(--line); }
  50%      { border-color: rgba(255, 45, 149, .40); }
}

/* 12. le schede degli alloggi respirano appena */
.alloggio-box { animation: bordoVivo 5s ease-in-out infinite, fluttua 7s ease-in-out infinite; }
.alloggi-grid > *:nth-child(2) { animation-delay: -2.4s, -3.5s; }
@keyframes fluttua {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}

/* 13. sfondo delle sezioni chiare che scorre lentamente */
.alt { background-image: linear-gradient(115deg, rgba(255,45,149,.05), transparent 45%, rgba(139,92,246,.05)); background-size: 300% 100%; animation: sfondoScorre 24s ease-in-out infinite alternate; }
@keyframes sfondoScorre {
  from { background-position: 0% 0; }
  to   { background-position: 100% 0; }
}

/* 14. la barra di lettura brilla */
.progresso { background-size: 200% 100%; animation: barraBrilla 3s linear infinite; }
@keyframes barraBrilla {
  from { background-position: 0 0; }
  to   { background-position: 200% 0; }
}

/* 15. il logo del footer respira */
footer .logo { display: inline-block; animation: fluttua 8s ease-in-out infinite; }

/* 16. il pulsante PRENOTA del menu pulsa */
.nav-links .btn-solid { animation: respiroLuce 2.8s ease-in-out infinite; }

/* 17. le foto delle schede alloggio si avvicinano piano */
.ab-foto img { animation: zoomGallery 18s ease-in-out infinite alternate; }
.alloggi-grid > *:nth-child(2) .ab-foto img { animation-delay: -9s; }

/* 18. i minuti nella sezione "dove siamo" brillano a turno */
.poi .d { animation: brillaPrezzo 4s ease-in-out infinite; }
.poi:nth-child(3) .d { animation-delay: -1s; }
.poi:nth-child(4) .d { animation-delay: -2s; }
.poi:nth-child(5) .d { animation-delay: -3s; }

/* 19. la mappa ondeggia impercettibilmente */
.map { animation: fluttua 11s ease-in-out infinite; }

/* 20. il segno ◆ della striscia ruota */
.striscia span::after { display: inline-block; animation: giraRombo 6s linear infinite; }
@keyframes giraRombo { to { transform: rotate(360deg); } }

/* 21. l'icona di WhatsApp fa un saltello ogni tanto */
.wa svg { animation: saltello 4s ease-in-out infinite; }
@keyframes saltello {
  0%, 80%, 100% { transform: translateY(0) scale(1); }
  86%           { transform: translateY(-5px) scale(1.12); }
  92%           { transform: translateY(0) scale(1); }
}

/* 22. la riga sotto i titoli respira in larghezza */
.section-head h2::after { animation: respiraRiga 4.5s ease-in-out infinite; }
@keyframes respiraRiga {
  0%, 100% { width: 120px; opacity: 1; }
  50%      { width: 190px; opacity: .55; }
}

/* 23. le etichette di sezione cambiano tonalità */
.eyebrow { animation: tonalita 8s linear infinite; }
@keyframes tonalita {
  0%, 100% { color: var(--neon); }
  50%      { color: var(--violet); }
}

/* 24. il bordo della cornice dietro le foto scorre */
.split .media::after { animation: corniceViva 6s ease-in-out infinite; }
@keyframes corniceViva {
  0%, 100% { border-color: rgba(255, 45, 149, .40); transform: translate(0, 0); }
  50%      { border-color: rgba(139, 92, 246, .55); transform: translate(4px, 4px); }
}

/* 25. il numero del prezzo nel riquadro pulsa in dimensione */
.price-tag .amount { display: inline-block; animation: brillaPrezzo 3.6s ease-in-out infinite, pulsaCifra 5s ease-in-out infinite; }
@keyframes pulsaCifra {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.04); }
}

/* --- calendario: la data scelta pulsa un istante --- */
.cal-day.sel { animation: scelta .35s ease; }
@keyframes scelta {
  from { transform: scale(.82); }
  to   { transform: scale(1); }
}

/* --- finestra di conferma: entra dal basso --- */
.modal:not([hidden]) .modal-box { animation: entraModale .45s cubic-bezier(.2,.8,.3,1) both; }
@keyframes entraModale {
  from { opacity: 0; transform: translateY(26px) scale(.97); }
  to   { opacity: 1; transform: none; }
}
.modal-ico { animation: timbro .5s cubic-bezier(.2,1.4,.4,1) .15s both; }
@keyframes timbro {
  from { transform: scale(0); }
  to   { transform: scale(1); }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .split, .contact-grid { grid-template-columns: 1fr; gap: 44px; }
  .split .media::after { display: none; }

  /* Su telefono le due metà non si nascondono mai in attesa di comparire:
     se l'attivazione non arriva resta un rettangolo nero al posto della
     foto, ed è successo davvero. Qui la comparsa non vale il rischio. */
  .js .split > .reveal { opacity: 1 !important; transform: none !important; }
  .js .split > .reveal > * { opacity: 1 !important; transform: none !important; }
  .foot-grid { grid-template-columns: 1fr; gap: 30px; }
  /* su telefono due per riga, tutte uguali, e l'ultima si allarga da sola */
  .gallery figure { flex: 1 1 40%; }
  .gallery .wide { flex-basis: 40%; }
  .gallery img { height: 160px; }
  section { padding: 76px 0; }
  .nav-toggle { display: block; }
  /* Menu a schermo intero e completamente opaco. Con il pannello stretto
     e semitrasparente la pagina si vedeva sotto le voci, e in chiusura
     le voci restavano sospese sopra la foto di copertina. */
  .nav-links {
    position: fixed;
    inset: 0;
    width: 100%;
    background: #0a0810;
    flex-direction: column;
    justify-content: center;
    gap: 30px;
    font-size: 1.05rem;
    transform: translateX(100%);
    /* la visibilità cambia di colpo a fine scorrimento, non gradualmente:
       così le voci non restano visibili durante la chiusura */
    transition: transform 0.35s ease, visibility 0s linear 0.35s;
    visibility: hidden;
    pointer-events: none;
    will-change: transform;
  }
  .nav-links.open {
    transform: none;
    visibility: visible;
    pointer-events: auto;
    transition: transform 0.35s ease, visibility 0s linear 0s;
  }
  /* il pulsante di chiusura deve stare sopra il pannello */
  .nav-toggle { position: relative; z-index: 101; }
  /* backdrop-filter crea un blocco di contenimento: senza toglierlo, il
     menu a posizione fissa resta rinchiuso nei 65px dell'intestazione
     invece di coprire lo schermo. È la causa del menu trasparente. */
  .site-header.menu-aperto {
    background: none;
    border-bottom-color: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

@media (max-width: 520px) {
  .form-row { grid-template-columns: 1fr; }
  .stats { gap: 28px; }
  .hero-meta { flex-direction: column; gap: 8px; }
}

/* Nessuna eccezione per "riduci movimento": il sito si comporta allo
   stesso modo su ogni computer e ogni telefono, senza che nessuno debba
   toccare le impostazioni. Scelta voluta del committente. */
