/* ============================================================================
   Casa Vacanze — editorial luxury theme
   Palette: sabbia + terracotta + oliva  ·  Fraunces (display) + Karla (body)
   Valori sovrascrivibili da config.js (app.js inietta le custom properties).
   ============================================================================ */

:root {
  /* Colori (fallback = config.js) */
  --c-bg:          #faf6f0;
  --c-bg-2:        #f3ece1;
  --c-surface:     #ffffff;
  --c-ink:         #1f1d18;
  --c-muted:       #6d685d;
  --c-line:        #e7dccd;
  --c-accent:      #a8472f;
  --c-accent-soft: #c46a4d;
  --c-accent-bg:   #f6e7df;
  --c-olive:       #4d5340;
  --c-olive-soft:  #7c8466;

  /* Tipografia */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body:    "Karla", system-ui, -apple-system, sans-serif;

  /* Misure */
  --maxw: 1240px;
  --gutter: clamp(20px, 5vw, 64px);
  --trust-h: 40px;
  --radius: 18px;
  --radius-lg: 28px;
  --shadow-sm: 0 2px 10px rgba(31,29,24,.06);
  --shadow-md: 0 18px 50px -18px rgba(31,29,24,.28);
  --shadow-lg: 0 40px 90px -30px rgba(31,29,24,.42);
  --ease: cubic-bezier(.22,1,.36,1);
}

/* ── Reset / base ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  font-family: var(--font-body);
  color: var(--c-ink);
  background: var(--c-bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
:focus-visible { outline: 2.5px solid var(--c-accent); outline-offset: 3px; border-radius: 4px; }

/* ── Tipografia ────────────────────────────────────────────────────── */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 500; line-height: 1.04; letter-spacing: -.01em; }
.display {
  font-size: clamp(2.9rem, 8.5vw, 7rem);
  font-weight: 400;
  font-optical-sizing: auto;
  letter-spacing: -.025em;
}
.kicker {
  font-family: var(--font-body);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--c-accent);
}
.kicker--light { color: rgba(255,255,255,.85); }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: var(--c-muted); max-width: 60ch; }
.italic { font-style: italic; }
.num { font-variant-numeric: tabular-nums; }
.wm { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .12em; margin-bottom: -.12em; }
.wi { display: inline-block; will-change: transform; }

/* ── Layout ────────────────────────────────────────────────────────── */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(72px, 11vw, 150px); position: relative; }
.section--alt { background: var(--c-bg-2); }
.section--olive { background: var(--c-olive); color: #f4efe6; }
.section-head { max-width: 64ch; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head .display, .section-head h2 { margin-top: .35em; font-size: clamp(2.1rem, 5vw, 3.7rem); }
.center { text-align: center; margin-inline: auto; }

/* ── Bottoni ───────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: .6em;
  padding: 1.02em 1.7em; border-radius: 100px;
  font-weight: 700; font-size: .96rem; letter-spacing: .01em;
  transition: transform .35s var(--ease), background .3s, color .3s, box-shadow .35s;
  will-change: transform;
}
.btn svg { width: 1.15em; height: 1.15em; }
.btn--primary { background: var(--c-accent); color: #fff; box-shadow: 0 12px 30px -12px var(--c-accent); }
.btn--primary:hover { background: #933c27; transform: translateY(-3px); box-shadow: 0 20px 40px -14px var(--c-accent); }
.btn--ghost { border: 1.5px solid currentColor; color: var(--c-ink); }
.btn--ghost:hover { background: var(--c-ink); color: var(--c-bg); transform: translateY(-3px); }
.btn--on-dark { border-color: rgba(255,255,255,.55); color: #fff; }
.btn--on-dark:hover { background: #fff; color: var(--c-ink); }
.btn--lg { padding: 1.15em 2.1em; font-size: 1.02rem; }

/* ── Header ────────────────────────────────────────────────────────── */
.header {
  position: fixed; top: var(--trust-h); left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--gutter);
  transition: top .4s var(--ease), background .4s var(--ease), backdrop-filter .4s, box-shadow .4s, padding .4s, color .4s;
  color: #fff;
}
.header.lifted { top: 0; }
.header.scrolled {
  background: rgba(250,246,240,.82);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  box-shadow: 0 1px 0 var(--c-line);
  color: var(--c-ink);
  padding-block: 12px;
}
.brand { display: flex; align-items: center; gap: .65rem; font-family: var(--font-display); font-size: 1.32rem; letter-spacing: -.01em; }
.brand .mark { width: 30px; height: 30px; flex: none; }
.brand .mark path, .brand .mark line, .brand .mark circle { stroke: currentColor; }
.nav { display: flex; align-items: center; gap: clamp(14px, 1.8vw, 30px); }
.nav a { font-size: .92rem; font-weight: 600; opacity: .9; position: relative; }
.nav a::after { content:""; position:absolute; left:0; bottom:-5px; width:0; height:1.5px; background: currentColor; transition: width .3s var(--ease); }
.nav a:hover::after { width: 100%; }
.nav .btn { padding: .7em 1.25em; }
.lang-toggle {
  width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid currentColor;
  font-size: .74rem; font-weight: 700; letter-spacing: .02em; opacity: .9;
  transition: background .3s, color .3s, transform .3s var(--ease);
}
.lang-toggle:hover { background: currentColor; }
.header:not(.scrolled) .lang-toggle:hover { color: var(--c-ink); }
.header.scrolled .lang-toggle:hover { color: var(--c-bg); }
.header.scrolled .nav .btn--ghost { color: var(--c-ink); }
.nav-links { display: flex; align-items: center; gap: clamp(14px, 1.8vw, 30px); }
.nav-links__cta { display: none; }
.burger { display: none; width: 30px; height: 22px; position: relative; z-index: 110; }
.burger span { position: absolute; left: 0; width: 100%; height: 2px; background: currentColor; transition: transform .4s var(--ease), opacity .3s; }
.burger span:nth-child(1){ top: 2px; } .burger span:nth-child(2){ top: 10px; } .burger span:nth-child(3){ top: 18px; }
body.menu-open .burger span:nth-child(1){ transform: translateY(8px) rotate(45deg); }
body.menu-open .burger span:nth-child(2){ opacity: 0; }
body.menu-open .burger span:nth-child(3){ transform: translateY(-8px) rotate(-45deg); }

/* ── Hero ──────────────────────────────────────────────────────────── */
.hero { position: relative; min-height: calc(100svh - var(--trust-h)); display: flex; align-items: flex-end; overflow: hidden; color: #fff; }
html.cap-hero .hero { min-height: 680px; height: 680px; }
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); will-change: transform; }
.hero__media::after {
  content:""; position:absolute; inset:0;
  background: linear-gradient(180deg, rgba(20,16,12,.50) 0%, rgba(20,16,12,.22) 30%, rgba(20,16,12,.42) 58%, rgba(20,16,12,.88) 100%);
}
.hero__inner { position: relative; z-index: 2; width: 100%; padding-bottom: clamp(48px, 8vh, 96px); padding-top: 120px; }
.hero .display { color: #fff; max-width: 14ch; text-shadow: 0 2px 18px rgba(0,0,0,.55), 0 1px 3px rgba(0,0,0,.4); }
.hero__sub { margin-top: 1.1rem; font-size: clamp(1.05rem,1.7vw,1.4rem); max-width: 44ch; color: #fff; text-shadow: 0 1px 12px rgba(0,0,0,.6), 0 1px 2px rgba(0,0,0,.4); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 2.2rem; }
.hero__facts { display: flex; flex-wrap: wrap; gap: clamp(20px,3vw,46px); margin-top: 2.6rem; padding-top: 1.6rem; border-top: 1px solid rgba(255,255,255,.28); }
.hero__fact { display: flex; flex-direction: column; }
.hero__fact b { font-family: var(--font-display); font-size: 1.9rem; font-weight: 400; }
.hero__fact span { font-size: .8rem; letter-spacing: .15em; text-transform: uppercase; opacity: .82; }
.scroll-hint { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: .68rem; letter-spacing: .25em; text-transform: uppercase; color: rgba(255,255,255,.8); }
.scroll-hint .line { width: 1px; height: 42px; background: rgba(255,255,255,.6); transform-origin: top; animation: scrollLine 2.1s var(--ease) infinite; }
@keyframes scrollLine { 0%{transform:scaleY(0);opacity:0} 30%{opacity:1} 100%{transform:scaleY(1);opacity:0} }

/* Top trust bar */
.trustbar { background: var(--c-ink); color: var(--c-bg); height: var(--trust-h); display: flex; align-items: center; overflow: hidden; }
.trustbar__track { display: flex; gap: 3.5rem; white-space: nowrap; width: max-content; animation: marquee 28s linear infinite; }
.trustbar:hover .trustbar__track { animation-play-state: paused; }
.trustbar__track span { display: inline-flex; align-items: center; gap: .6rem; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; }
.trustbar__track svg { width: 15px; height: 15px; color: var(--c-accent-soft); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ── Intro / La casa ───────────────────────────────────────────────── */
.intro-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 6vw, 90px); align-items: center; }
.intro-copy .display { font-size: clamp(2rem,4.4vw,3.4rem); margin: .3em 0 .6em; }
.intro-figure { position: relative; }
.intro-figure img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.intro-figure .tag {
  position: absolute; bottom: 22px; left: -22px;
  background: var(--c-surface); border-radius: 14px; padding: 14px 20px; box-shadow: var(--shadow-md);
  display: flex; align-items: center; gap: 12px; max-width: 230px;
}
.intro-figure .tag svg { width: 26px; height: 26px; color: var(--c-accent); flex: none; }
.intro-figure .tag b { display:block; font-family: var(--font-display); font-size: 1.05rem; }
.intro-figure .tag small { color: var(--c-muted); font-size: .8rem; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; margin-top: clamp(48px,7vw,80px); border-top: 1px solid var(--c-line); padding-top: clamp(32px,4vw,48px); }
.stat b { display: block; font-family: var(--font-display); font-size: clamp(2.2rem,4vw,3.2rem); font-weight: 400; color: var(--c-accent); line-height: 1; }
.stat span { font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: var(--c-muted); }

/* ── Galleria (horizontal pin) ─────────────────────────────────────── */
.gallery { background: var(--c-ink); color: var(--c-bg); overflow: hidden; }
.gallery .section-head { padding-inline: var(--gutter); max-width: var(--maxw); margin-inline: auto; }
.gallery .section-head .display, .gallery .section-head h2 { color: var(--c-bg); }
.gallery .kicker { color: var(--c-accent-soft); }
.gallery__viewport { position: relative; padding-block: 28px 8px; }
.gallery__grid {
  display: grid; gap: clamp(12px,1.4vw,20px);
  grid-template-columns: repeat(3, 1fr);
  padding-inline: var(--gutter); max-width: var(--maxw); margin-inline: auto;
}
.gallery__item { position: relative; margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); cursor: pointer; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.gallery__item:hover img, .gallery__item:focus-visible img { transform: scale(1.06); }
.gallery__item:focus-visible { outline: 3px solid var(--c-accent-soft); outline-offset: 2px; }
.gallery__num { position: absolute; top: 12px; right: 12px; font-size: .72rem; font-weight: 600; letter-spacing: .03em; background: rgba(20,16,12,.62); backdrop-filter: blur(6px); padding: 4px 10px; border-radius: 100px; color: #fff; }
.gallery__item figcaption { position: absolute; left: 14px; bottom: 12px; right: 14px; font-size: .82rem; letter-spacing: .02em; background: rgba(20,16,12,.5); backdrop-filter: blur(6px); padding: 6px 12px; border-radius: 10px; opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .3s; }
.gallery__item:hover figcaption, .gallery__item:focus-visible figcaption { opacity: 1; transform: none; }
.gallery__hint { padding: 0 var(--gutter) 4px; max-width: var(--maxw); margin-inline: auto; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; opacity: .6; display: flex; align-items: center; gap: 10px; }
.gallery__hint svg { width: 18px; }
@media (max-width: 900px) { .gallery__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .gallery__grid { grid-template-columns: 1fr; } .gallery__item figcaption { opacity: 1; transform: none; } }

/* ── Dotazioni ─────────────────────────────────────────────────────── */
.amenities { display: grid; grid-template-columns: repeat(4,1fr); gap: 2px; background: var(--c-line); border: 1px solid var(--c-line); border-radius: var(--radius); overflow: hidden; }
.amenity { background: var(--c-bg); padding: clamp(22px,2.6vw,34px) clamp(18px,2vw,26px); display: flex; flex-direction: column; gap: 14px; transition: background .35s; }
.amenity:hover { background: var(--c-accent-bg); }
.amenity svg { width: 30px; height: 30px; color: var(--c-accent); stroke-width: 1.5; }
.amenity span { font-weight: 600; font-size: 1rem; }

/* ── Spazi ─────────────────────────────────────────────────────────── */
.spaces { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; background: var(--c-line); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--c-line); }
.space { background: var(--c-surface); padding: clamp(24px,2.6vw,34px); }
.space b { font-family: var(--font-display); font-size: 1.4rem; font-weight: 400; display: block; margin-bottom: .35em; }
.space p { color: var(--c-muted); font-size: .96rem; }
.space .idx { font-size: .8rem; color: var(--c-accent); letter-spacing: .1em; }

/* ── Zona ──────────────────────────────────────────────────────────── */
.zona-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px,4vw,56px); align-items: start; }
.zona-list { display: flex; flex-direction: column; }
.zona-row { display: flex; align-items: center; gap: 18px; padding: 20px 0; border-bottom: 1px solid var(--c-line); }
.zona-row:first-child { border-top: 1px solid var(--c-line); }
.zona-row svg { width: 26px; height: 26px; color: var(--c-olive); flex: none; }
.zona-row .name { font-weight: 600; flex: 1; }
.zona-row .dist { font-family: var(--font-display); font-size: 1.25rem; color: var(--c-accent); }
.zona-map { position: sticky; top: 100px; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); aspect-ratio: 4/4.3; }
.zona-map iframe { width: 100%; height: 100%; border: 0; filter: saturate(.92) contrast(1.02); }

/* ── Prezzi ────────────────────────────────────────────────────────── */
.seasons { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.season { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius-lg); padding: clamp(26px,3vw,38px); position: relative; transition: transform .4s var(--ease), box-shadow .4s; }
.season:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.season.is-high { background: var(--c-ink); color: var(--c-bg); border-color: var(--c-ink); }
.season .s-name { font-family: var(--font-display); font-size: 1.5rem; }
.season .s-period { font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; color: var(--c-muted); }
.season.is-high .s-period { color: rgba(255,255,255,.7); }
.season .s-price { font-family: var(--font-display); font-size: clamp(2.4rem,4vw,3.2rem); font-weight: 400; margin: .5rem 0 .1rem; color: var(--c-accent); }
.season.is-high .s-price { color: var(--c-accent-soft); }
.season .s-price small { font-family: var(--font-body); font-size: .95rem; color: var(--c-muted); font-weight: 600; }
.season.is-high .s-price small { color: rgba(255,255,255,.7); }
.season .s-min { font-size: .9rem; color: var(--c-muted); margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--c-line); }
.season.is-high .s-min { color: rgba(255,255,255,.7); border-color: rgba(255,255,255,.18); }
.price-note { margin-top: 22px; font-size: .9rem; color: var(--c-muted); }

/* ── Prenotazione ──────────────────────────────────────────────────── */
.book { background: var(--c-accent-bg); }
.book-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(32px,5vw,72px); align-items: center; }
.book-copy .display { font-size: clamp(2.1rem,4.6vw,3.6rem); margin: .25em 0 .5em; }
.incentive {
  display: flex; align-items: center; gap: 16px; margin-top: 1.8rem;
  background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius);
  padding: 16px 20px; box-shadow: var(--shadow-sm);
}
.incentive__pct {
  flex: none; font-family: var(--font-display); font-size: 1.7rem; font-weight: 400;
  color: #fff; background: var(--c-olive); border-radius: 100px; padding: .3em .55em; line-height: 1;
}
.incentive__body b { display: block; font-size: 1rem; }
.incentive__body p { font-size: .9rem; color: var(--c-muted); margin-top: 2px; }
.incentive__body s { opacity: .7; }
.incentive__body b:last-child, .incentive__body p b { color: var(--c-accent); font-weight: 700; }
.book-perks { list-style: none; padding: 0; margin-top: 1.6rem; display: flex; flex-direction: column; gap: 14px; }
.book-perks li { display: flex; align-items: center; gap: 12px; font-weight: 600; }
.book-perks svg { width: 22px; height: 22px; color: var(--c-accent); flex: none; }
.book-card { background: var(--c-surface); border-radius: var(--radius-lg); padding: clamp(24px,3vw,38px); box-shadow: var(--shadow-lg); }
.book-card h3 { font-size: 1.5rem; margin-bottom: 1.2rem; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: .82rem; font-weight: 700; letter-spacing: .04em; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; border: 1.5px solid var(--c-line); border-radius: 12px;
  background: var(--c-bg); font: inherit; color: var(--c-ink); transition: border-color .25s, box-shadow .25s;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--c-accent); box-shadow: 0 0 0 4px var(--c-accent-bg); outline: none; }
.field textarea { resize: vertical; min-height: 84px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; position: relative; }
.field input[readonly] { cursor: pointer; background: var(--c-surface); }

/* ── Date-range picker ────────────────────────────────────────────── */
.datepicker {
  display: none; position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 60;
  background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 18px;
}
.datepicker.open { display: block; }
.dp-head { display: flex; align-items: center; justify-content: space-between; font-weight: 700; font-size: .88rem; margin-bottom: 12px; }
.dp-nav { width: 32px; height: 32px; border-radius: 50%; font-size: 1.2rem; display: grid; place-items: center; transition: background .25s; }
.dp-nav:hover { background: var(--c-bg-2); }
.dp-months { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.dp-month-name { font-family: var(--font-display); font-size: 1.02rem; text-align: center; margin-bottom: 8px; }
.dp-weekdays { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; font-size: .7rem; color: var(--c-muted); letter-spacing: .04em; margin-bottom: 4px; }
.dp-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.dp-cell {
  aspect-ratio: 1; display: grid; place-items: center; font-size: .84rem; border-radius: 8px;
  transition: background .2s, color .2s;
}
.dp-empty { visibility: hidden; }
.dp-cell:not(.is-disabled):hover { background: var(--c-accent-bg); }
.dp-cell.is-disabled { color: var(--c-line); text-decoration: line-through; cursor: not-allowed; }
.dp-cell.is-busy { color: #c7bba8; }
.dp-cell.is-today { font-weight: 700; }
.dp-cell.is-range { background: var(--c-accent-bg); border-radius: 0; }
.dp-cell.is-start, .dp-cell.is-end { background: var(--c-accent); color: #fff; font-weight: 700; }
.dp-legend { display: flex; align-items: center; gap: 8px; font-size: .78rem; color: var(--c-muted); margin-top: 14px; }
.dp-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--c-accent-bg); }
.dp-dot.is-busy { background: #c7bba8; }
.dp-notice { font-size: .8rem; color: var(--c-muted); margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--c-line); }
@media (max-width: 560px) {
  .dp-months { grid-template-columns: 1fr; }
}
.estimate { background: var(--c-bg-2); border-radius: 14px; padding: 16px 18px; margin: 6px 0 18px; font-size: .95rem; }
.estimate .est-row { display: flex; justify-content: space-between; padding: 3px 0; color: var(--c-muted); }
.estimate .est-total { display: flex; justify-content: space-between; font-family: var(--font-display); font-size: 1.5rem; margin-top: 8px; padding-top: 10px; border-top: 1px solid var(--c-line); color: var(--c-ink); }
.estimate .est-total b { color: var(--c-accent); font-weight: 400; }
.estimate.empty { color: var(--c-muted); text-align: center; }
.check { display: flex; align-items: flex-start; gap: 10px; margin: 4px 0 18px; font-size: .84rem; color: var(--c-muted); cursor: pointer; }
.check input { margin-top: 3px; width: 16px; height: 16px; accent-color: var(--c-accent); flex: none; }
.check a { color: var(--c-ink); text-decoration: underline; text-underline-offset: 2px; }
.form-note { font-size: .82rem; color: var(--c-muted); margin-top: 12px; text-align: center; }
.form-msg { margin-top: 14px; padding: 14px; border-radius: 12px; font-size: .92rem; display: none; }
.form-msg.ok { display: block; background: #e7f0e6; color: #2f5230; }
.form-msg.err { display: block; background: #f6e2de; color: #8a2f1c; }

/* ── Lista d'attesa / last-minute ──────────────────────────────────── */
.waitlist { margin-top: 18px; border-top: 1px solid var(--c-line); padding-top: 16px; }
.waitlist > summary { cursor: pointer; font-size: .92rem; color: var(--c-accent); font-weight: 600; list-style: none; padding: 4px 0; }
.waitlist > summary::-webkit-details-marker { display: none; }
.waitlist > summary:hover { text-decoration: underline; text-underline-offset: 3px; }
.waitlist[open] > summary { margin-bottom: 14px; }
.waitlist-intro { font-size: .88rem; color: var(--c-muted); margin: 0 0 16px; line-height: 1.5; }

/* ── Recensioni ────────────────────────────────────────────────────── */
.reviews { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.review { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius-lg); padding: clamp(26px,3vw,34px); display: flex; flex-direction: column; gap: 16px; }
.review .stars { display: flex; gap: 3px; color: var(--c-accent); }
.review .stars svg { width: 18px; height: 18px; }
.review p { font-family: var(--font-display); font-size: 1.22rem; font-weight: 400; line-height: 1.45; font-style: italic; }
.review .who { margin-top: auto; font-weight: 700; }
.review .who small { display: block; color: var(--c-muted); font-weight: 400; letter-spacing: .04em; }
.reviews-more { text-align: center; margin-top: clamp(28px, 4vw, 44px); }
.reviews-more a { font-weight: 700; color: var(--c-accent); border-bottom: 1.5px solid var(--c-accent-soft); padding-bottom: 2px; }
.reviews-more a:hover { color: var(--c-accent-soft); }

/* ── CTA finale + Footer ───────────────────────────────────────────── */
.final { text-align: center; }
.final .display { font-size: clamp(2.4rem,6vw,4.6rem); max-width: 18ch; margin-inline: auto; }
.final .lead { margin: 1.2rem auto 2rem; }
.final-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.footer { background: var(--c-ink); color: rgba(250,246,240,.8); padding-block: clamp(56px,7vw,88px) 32px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer .brand { color: #fff; margin-bottom: 1rem; }
.footer h4 { font-family: var(--font-body); font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,.5); margin-bottom: 1rem; }
.footer a { display: block; padding: 5px 0; opacity: .85; }
.footer a:hover { opacity: 1; color: var(--c-accent-soft); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 24px; font-size: .82rem; opacity: .65; }

/* ── WhatsApp FAB ──────────────────────────────────────────────────── */
.fab { position: fixed; right: 22px; bottom: 22px; z-index: 90; width: 58px; height: 58px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 12px 30px -8px rgba(37,211,102,.6); transition: transform .3s var(--ease); }
.fab:hover { transform: scale(1.08); }
.fab svg { width: 30px; height: 30px; }
.fab::after { content:""; position:absolute; inset:0; border-radius:50%; border:2px solid #25d366; animation: ping 2.4s var(--ease) infinite; }
@keyframes ping { 0%{transform:scale(1);opacity:.7} 100%{transform:scale(1.6);opacity:0} }

/* ── Lightbox ──────────────────────────────────────────────────────── */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(15,12,9,.94); display: none; place-items: center; padding: 4vw; }
.lightbox.open { display: grid; }
.lightbox img { max-width: 92vw; max-height: 82vh; border-radius: 10px; box-shadow: var(--shadow-lg); }
.lightbox__counter { position: absolute; top: 24px; left: 50%; transform: translateX(-50%); color: #fff; font-size: .9rem; font-weight: 600; letter-spacing: .06em; background: rgba(255,255,255,.14); padding: 6px 16px; border-radius: 100px; }
.lightbox__caption { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); max-width: 80vw; text-align: center; color: rgba(255,255,255,.9); font-size: .95rem; }
.lightbox__close { position: absolute; top: 20px; right: 24px; color: #fff; font-size: 2rem; width: 48px; height: 48px; }
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); color:#fff; width: 56px; height: 56px; font-size: 2rem; background: rgba(255,255,255,.12); border-radius: 50%; }
.lightbox__nav.prev { left: 20px; } .lightbox__nav.next { right: 20px; }

/* ── Reveal (solo se GSAP/JS attivo) ───────────────────────────────── */
.gsap-ready [data-reveal] { opacity: 0; }
.gsap-ready [data-reveal="up"] { transform: translateY(40px); }
.gsap-ready [data-reveal="fade"] { transform: none; }

/* ── Responsive ────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .intro-grid, .zona-grid, .book-grid { grid-template-columns: 1fr; }
  .amenities { grid-template-columns: repeat(3,1fr); }
  .reviews, .seasons, .spaces { grid-template-columns: 1fr 1fr; }
  .zona-map { position: relative; top: 0; aspect-ratio: 16/10; }
  .intro-figure { order: -1; max-width: 460px; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav-links {
    position: fixed; inset: 0; background: var(--c-bg); color: var(--c-ink);
    flex-direction: column; justify-content: center; gap: 26px; font-size: 1.4rem;
    transform: translateX(100%); transition: transform .5s var(--ease); z-index: 105;
  }
  .nav-links a { font-family: var(--font-display); }
  body.menu-open .nav-links { transform: translateX(0); }
  .burger { display: block; }
  .stats { grid-template-columns: 1fr 1fr; gap: 28px 16px; }
  .amenities, .reviews, .seasons, .spaces, .footer-top { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .hero__facts { gap: 18px 28px; }
  .hero__fact b { font-size: 1.5rem; }
  .intro-figure .tag { left: 0; }
}
@media (max-width: 480px) {
  .nav > .btn--primary { display: none; }
}
@media (max-width: 760px) {
  .nav-links__cta {
    display: inline-flex; align-items: center; justify-content: center;
    margin-top: 10px; padding: .8em 1.8em; border-radius: 100px;
    background: var(--c-accent); color: #fff !important; font-family: var(--font-body);
    font-size: 1rem !important; font-weight: 700;
  }
}

/* ── Reduced motion ────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .hero__media img { transform: scale(1); }
  .gsap-ready [data-reveal] { opacity: 1 !important; transform: none !important; }
}
