/* =========================================================================
   LA CASA DI DIANA — Design System & Global Styles
   B&B a Porto Sant'Elpidio (Marche)
   Mobile-first · Accessibile (WCAG AA) · Ottimizzato Core Web Vitals
   -------------------------------------------------------------------------
   NOTA PALETTE: i colori sono ispirati all'identità "fiori + casa al mare"
   (Girasole, Papavero, Margherita). Sono centralizzati nelle CSS custom
   properties qui sotto: per allinearli ai colori esatti del logo basta
   modificare i valori in :root, senza toccare il resto del codice.
   ========================================================================= */

/* ------------------------------- TOKENS -------------------------------- */
/* Palette estratta dal LOGO ufficiale di La Casa di Diana:
   arancione sole #F47A1F · blu cobalto #1559C0 · azzurro #29ABE2 · ciano #6DCFF6.
   Nota: alcuni nomi di token sono storici ma puntano ai colori del brand
   (--c-terracotta = arancione sole CTA; --c-sea = blu cobalto). */
:root {
  /* Colori brand */
  --c-sand:        #f6fafd; /* sfondo arioso, bianco-cielo */
  --c-sand-2:      #e8f3fb; /* sezioni alternate, tinta azzurra leggera */
  --c-cream:       #ffffff;
  --c-ink:         #14304d; /* testo principale, navy profondo */
  --c-ink-soft:    #5a6b7a; /* testo secondario, blu-grigio */
  --c-terracotta:  #f47a1f; /* ARANCIONE SOLE del logo — accento primario / CTA */
  --c-terracotta-d:#dd6810; /* hover */
  --c-sea:         #1559c0; /* BLU COBALTO del logo — accento brand / link */
  --c-sea-d:       #0f4196;
  --c-sky:         #29abe2; /* azzurro onda */
  --c-cyan:        #6dcff6; /* ciano onda chiara */
  --c-gold:        #f4a11f; /* ambra calda — stelle recensioni */
  --c-line:        #d7e5f0; /* bordi sottili, blu-grigio */
  --c-whatsapp:    #25d366; /* verde WhatsApp riconoscibile (conversione) */
  --c-whatsapp-d:  #1da851;

  /* Tipografia */
  --font-head: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Spazi (scala 4px) */
  --sp-1:.25rem; --sp-2:.5rem; --sp-3:.75rem; --sp-4:1rem;
  --sp-6:1.5rem; --sp-8:2rem; --sp-12:3rem; --sp-16:4rem; --sp-24:6rem;

  /* Layout */
  --maxw: 1140px;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 10px 30px rgba(20,48,77,.12);
  --shadow-sm: 0 4px 14px rgba(20,48,77,.09);
  --transition: .25s ease;
}

/* ------------------------------- RESET --------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--c-ink);
  background: var(--c-sand);
  line-height: 1.65;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, picture, svg { max-width: 100%; display: block; height: auto; }
a { color: var(--c-terracotta); text-decoration: none; }
a:hover { color: var(--c-terracotta-d); }
ul { list-style: none; padding: 0; }
button { font: inherit; cursor: pointer; }

/* Accessibilità: focus visibile */
:focus-visible { outline: 3px solid var(--c-sea); outline-offset: 2px; border-radius: 4px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition: none !important; }
}

/* Skip link */
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 1000;
  background: var(--c-ink); color: #fff; padding: .75rem 1.25rem; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ----------------------------- TIPOGRAFIA ------------------------------ */
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 600; line-height: 1.15; color: var(--c-ink); letter-spacing: .2px; }
h1 { font-size: clamp(2.1rem, 6vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 4.5vw, 2.6rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.6rem); }
p { margin: 0 0 1rem; }
.lead { font-size: 1.15rem; color: var(--c-ink-soft); }
.eyebrow {
  font-family: var(--font-body); font-weight: 600; letter-spacing: .18em;
  text-transform: uppercase; font-size: .78rem; color: var(--c-terracotta);
  display: inline-block; margin-bottom: var(--sp-3);
}
.script-accent { font-style: italic; color: var(--c-sea-d); }

/* ------------------------------ LAYOUT --------------------------------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--sp-6); }
.section { padding-block: var(--sp-16); }
.section--alt { background: var(--c-sand-2); }
.section--ink { background: var(--c-ink); color: var(--c-cream); }
.section--ink h2, .section--ink h3 { color: var(--c-cream); }
.section--ink .lead { color: #d9cfc2; }
.section-head { max-width: 680px; margin: 0 auto var(--sp-12); text-align: center; }
.text-center { text-align: center; }
.grid { display: grid; gap: var(--sp-6); }
@media (min-width: 720px) { .grid-2 { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 900px) { .grid-3 { grid-template-columns: repeat(3,1fr); } }

/* ------------------------------ BOTTONI -------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .85rem 1.6rem; border-radius: 50px; border: 2px solid transparent;
  font-weight: 600; font-size: 1rem; line-height: 1; cursor: pointer;
  transition: var(--transition); text-align: center;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--c-terracotta); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--c-terracotta-d); color: #fff; }
.btn--wa { background: var(--c-whatsapp); color: #fff; }
.btn--wa:hover { background: var(--c-whatsapp-d); color: #fff; }
.btn--ghost { background: transparent; color: var(--c-ink); border-color: var(--c-line); }
.btn--ghost:hover { border-color: var(--c-ink); color: var(--c-ink); }
.btn--on-ink { background: var(--c-cream); color: var(--c-ink); }
.btn--on-ink:hover { background: #fff; color: var(--c-ink); }
.btn--lg { padding: 1rem 2rem; font-size: 1.08rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--sp-4); }
.btn-row--center { justify-content: center; }

/* SVG icone inline */
.ico { width: 1.15em; height: 1.15em; flex: none; fill: currentColor; }

/* ------------------------------ HEADER --------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,253,249,.92); backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--c-line);
}
.nav { display: flex; align-items: center; justify-content: space-between; min-height: 74px; gap: var(--sp-4); }
.brand { display: inline-flex; align-items: center; line-height: 1; flex: none; }
.brand__logo { height: 46px; width: auto; display: block; }
@media (min-width: 920px) { .brand__logo { height: 58px; } }
.brand__name { font-family: var(--font-head); font-size: 1.45rem; font-weight: 600; color: var(--c-sea); }
.brand__tag { font-size: .68rem; letter-spacing: .22em; text-transform: uppercase; color: var(--c-ink-soft); }
.nav__links { display: none; }
.nav__toggle {
  display: inline-flex; flex-direction: column; gap: 5px; background: none; border: 0; padding: 10px;
}
.nav__toggle span { width: 26px; height: 2px; background: var(--c-ink); border-radius: 2px; transition: var(--transition); }
.nav[data-open="true"] .nav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav[data-open="true"] .nav__toggle span:nth-child(2) { opacity: 0; }
.nav[data-open="true"] .nav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav__panel {
  display: none; position: absolute; left: 0; right: 0; top: 100%;
  background: var(--c-cream); border-bottom: 1px solid var(--c-line); box-shadow: var(--shadow);
  padding: var(--sp-4) var(--sp-6) var(--sp-8);
}
.nav[data-open="true"] .nav__panel { display: block; }
.nav__panel a {
  display: block; padding: .85rem 0; color: var(--c-ink); font-weight: 500;
  border-bottom: 1px solid var(--c-line);
}
.nav__panel a[aria-current="page"] { color: var(--c-terracotta); }
.nav__panel .btn { margin-top: var(--sp-4); width: 100%; justify-content: center; }

@media (min-width: 920px) {
  .nav__toggle { display: none; }
  .nav__links { display: flex; align-items: center; gap: var(--sp-6); }
  .nav__links a { color: var(--c-ink); font-weight: 500; font-size: .98rem; position: relative; }
  .nav__links a[aria-current="page"] { color: var(--c-terracotta); }
  .nav__links a:not(.btn)::after {
    content: ""; position: absolute; left: 0; bottom: -6px; width: 0; height: 2px;
    background: var(--c-terracotta); transition: var(--transition);
  }
  .nav__links a:not(.btn):hover::after, .nav__links a[aria-current="page"]::after { width: 100%; }
}

/* -------------------------------- HERO --------------------------------- */
.hero {
  position: relative; min-height: 84vh; display: flex; align-items: center;
  color: #fff; text-align: center; overflow: hidden;
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 78%; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(16,40,70,.38) 0%, rgba(16,40,70,.60) 100%);
}
.hero__inner { max-width: 760px; margin-inline: auto; padding-block: var(--sp-24); }
.hero h1 { color: #fff; text-shadow: 0 2px 18px rgba(0,0,0,.25); }
.hero .eyebrow { color: #ffe6b8; }
.hero p { color: #f4eee6; font-size: 1.2rem; margin-bottom: var(--sp-8); text-shadow: 0 1px 10px rgba(0,0,0,.25); }
.hero .btn-row { justify-content: center; }

/* ----------------------------- TRUST BAR ------------------------------- */
.trustbar { background: var(--c-cream); border-bottom: 1px solid var(--c-line); }
.trustbar__inner { display: flex; flex-wrap: wrap; gap: var(--sp-6) var(--sp-8); justify-content: center; padding-block: var(--sp-6); }
.trust { display: flex; align-items: center; gap: .6rem; font-size: .95rem; color: var(--c-ink-soft); }
.trust strong { color: var(--c-ink); font-size: 1.05rem; }
.stars { color: var(--c-gold); letter-spacing: 2px; }

/* ----------------------------- SPLIT / MEDIA --------------------------- */
.split { display: grid; gap: var(--sp-8); align-items: center; }
@media (min-width: 880px) { .split { grid-template-columns: 1fr 1fr; gap: var(--sp-16); } .split--reverse .split__media { order: 2; } }
.split__media img { border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 4/3; object-fit: cover; width: 100%; }

/* ------------------------------- CARDS --------------------------------- */
.card {
  background: var(--c-cream); border: 1px solid var(--c-line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm); transition: var(--transition); display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card__media { aspect-ratio: 3/2; overflow: hidden; position: relative; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card:hover .card__media > img { transform: scale(1.05); }
.card__body { padding: var(--sp-6); display: flex; flex-direction: column; flex: 1; }
.card__tag { font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--c-sea-d); }
.card__title { margin: .3rem 0 .5rem; }
.card__meta { font-size: .9rem; color: var(--c-ink-soft); margin-bottom: var(--sp-4); }
.card__price { margin-top: auto; padding-top: var(--sp-4); font-size: .95rem; color: var(--c-ink-soft); }
.card__price strong { font-family: var(--font-head); font-size: 1.5rem; color: var(--c-ink); }
.card .btn { margin-top: 0; }

/* Lista servizi con icona specifica (sostituisce il check generico) */
.features.features--svc li { align-items: center; }
.features.features--svc li::before { content: none; }
.features.features--svc svg { width: 18px; height: 18px; flex: none; color: var(--c-sea); }

/* ----------------------- BADGE CAMERE (scelta rapida) ------------------ */
.badges { display: flex; flex-wrap: wrap; gap: .45rem; margin: var(--sp-3) 0 var(--sp-4); }
/* Nelle card home: spingo badge+pulsante in fondo, così il gap tag→pulsante è costante */
.card .badges { margin-top: auto; }
.badge {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .34rem .72rem; border-radius: 999px;
  font-size: .8rem; font-weight: 500; line-height: 1.1; white-space: nowrap;
}
.badge svg { width: 14px; height: 14px; flex: none; }
/* livello 2: punto di forza distintivo */
.badge--feature { background: #e6f2fb; color: var(--c-sea-d); font-weight: 600; }
/* variante calda per il dettaglio più accogliente (coccole, coppie) */
.badge--warm { background: #fdeede; color: #b85a12; font-weight: 600; }
/* livello 3: comfort, discreti */
.badge--soft { background: var(--c-cream); color: var(--c-ink-soft); border: 1px solid var(--c-line); }

/* livello 1: badge "firma" sovrapposto alla foto */
.badge-overlay {
  position: absolute; top: .7rem; left: .7rem; z-index: 2;
  display: inline-flex; align-items: center; gap: .4rem;
  background: rgba(255,255,255,.94); color: var(--c-sea-d);
  padding: .42rem .82rem; border-radius: 999px;
  font-size: .82rem; font-weight: 700; box-shadow: var(--shadow-sm);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.badge-overlay svg { width: 15px; height: 15px; flex: none; }
.badge-overlay--sun { color: #c2570c; }
.split__media { position: relative; }

/* Lista feature con icona check */
.features { display: grid; gap: .6rem; margin: var(--sp-4) 0; }
.features li { display: flex; align-items: flex-start; gap: .6rem; font-size: .95rem; }
.features li::before {
  content: ""; flex: none; width: 18px; height: 18px; margin-top: 3px; border-radius: 50%;
  background: var(--c-sea) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/12px no-repeat;
}

/* ------------------------------- "PERCHÉ" ------------------------------ */
.why { text-align: center; }
.why__icon {
  width: 64px; height: 64px; margin: 0 auto var(--sp-4); border-radius: 50%;
  display: grid; place-items: center; background: var(--c-sand-2); color: var(--c-terracotta);
}
.why__icon .ico { width: 30px; height: 30px; }

/* ----------------------------- RECENSIONI ------------------------------ */
.review {
  background: var(--c-cream); border: 1px solid var(--c-line); border-radius: var(--radius);
  padding: var(--sp-8); box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: var(--sp-4); height: 100%;
}
.review__stars { color: var(--c-gold); letter-spacing: 2px; font-size: 1.1rem; }
.review blockquote { font-family: var(--font-head); font-size: 1.2rem; line-height: 1.5; color: var(--c-ink); font-style: italic; }
.review__author { margin-top: auto; font-size: .9rem; color: var(--c-ink-soft); }
.review__author strong { color: var(--c-ink); display: block; font-style: normal; }
.review__source { font-size: .8rem; color: var(--c-sea-d); }

/* ------------------------------- GALLERIA ------------------------------ */
.gallery { display: grid; gap: var(--sp-3); grid-template-columns: repeat(2,1fr); }
@media (min-width: 720px) { .gallery { grid-template-columns: repeat(3,1fr); gap: var(--sp-4); } }
.gallery figure { margin: 0; border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 1/1; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gallery figure:hover img { transform: scale(1.06); }
.gallery .wide { grid-column: span 2; aspect-ratio: 2/1; }

/* --------------------------- CAROSELLO FOTO --------------------------- */
.carousel { position: relative; height: 100%; overflow: hidden; }
.carousel__track { display: flex; height: 100%; transition: transform .35s ease; will-change: transform; touch-action: pan-y; }
.carousel__track img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; border-radius: 0; box-shadow: none; aspect-ratio: auto; }
.carousel__nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); color: var(--c-ink); font-size: 1.4rem; line-height: 1; cursor: pointer; display: grid; place-items: center; box-shadow: var(--shadow-sm); transition: background .2s, transform .2s; }
.carousel__nav:hover { background: #fff; }
.carousel__nav:disabled { opacity: .4; cursor: default; }
.carousel__nav--prev { left: 8px; }
.carousel__nav--next { right: 8px; }
.carousel__dots { position: absolute; bottom: 10px; left: 0; right: 0; z-index: 3; display: flex; gap: 6px; justify-content: center; pointer-events: none; }
.carousel__dots button { pointer-events: auto; width: 8px; height: 8px; border-radius: 50%; border: 0; padding: 0; cursor: pointer; background: rgba(255,255,255,.65); box-shadow: 0 0 0 1px rgba(0,0,0,.12); transition: width .2s, background .2s; }
.carousel__dots button[aria-current="true"] { background: #fff; width: 18px; border-radius: 4px; }
/* Versione incorniciata (pagina Camere) */
.carousel--framed { border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 4/3; overflow: hidden; height: auto; }
.carousel__thumbs { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .6rem; }
.carousel__thumbs button { flex: 0 0 auto; width: 68px; height: 50px; border-radius: 8px; overflow: hidden; border: 2px solid var(--c-line); padding: 0; cursor: pointer; background: none; transition: border-color .2s; }
.carousel__thumbs button[aria-current="true"] { border-color: var(--c-sea); }
.carousel__thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* -------------------------------- FAQ ---------------------------------- */
.faq { max-width: 760px; margin-inline: auto; }
.faq details {
  background: var(--c-cream); border: 1px solid var(--c-line); border-radius: var(--radius-sm);
  padding: var(--sp-4) var(--sp-6); margin-bottom: var(--sp-3);
}
.faq summary {
  cursor: pointer; font-weight: 600; font-size: 1.05rem; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: var(--sp-4);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; color: var(--c-terracotta); transition: var(--transition); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details[open] summary { margin-bottom: var(--sp-3); }

/* ------------------------------ CTA BAND ------------------------------- */
.cta-band { background: var(--c-terracotta); color: #fff; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #ffe9e0; max-width: 560px; margin-inline: auto; }
.cta-band .btn-row { justify-content: center; margin-top: var(--sp-6); }

/* ------------------------------ CONTATTI ------------------------------- */
.contact-grid { display: grid; gap: var(--sp-4); }
@media (min-width: 720px) { .contact-grid { grid-template-columns: repeat(3,1fr); } }
.contact-card {
  background: var(--c-cream); border: 1px solid var(--c-line); border-radius: var(--radius);
  padding: var(--sp-8); text-align: center;
}
.contact-card .why__icon { background: var(--c-sand-2); }
.contact-card a { font-weight: 600; font-size: 1.1rem; }
.map-wrap { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--c-line); }
.map-wrap iframe { width: 100%; height: 380px; border: 0; display: block; }

/* Form */
.form { display: grid; gap: var(--sp-4); }
.form label { font-weight: 600; font-size: .92rem; }
.form input, .form textarea, .form select {
  width: 100%; padding: .8rem 1rem; border: 1px solid var(--c-line); border-radius: var(--radius-sm);
  font: inherit; background: var(--c-cream); color: var(--c-ink); margin-top: .35rem;
}
.form input:focus, .form textarea:focus, .form select:focus { border-color: var(--c-sea); outline: none; }

/* --------------------- COMPOSITORE PRENOTAZIONE ----------------------- */
.booking { background: var(--c-cream); border: 1px solid var(--c-line); border-radius: var(--radius); padding: var(--sp-6); box-shadow: var(--shadow-sm); }
.booking__tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; background: var(--c-sand-2); padding: 6px; border-radius: var(--radius-sm); margin-bottom: var(--sp-6); }
.booking__tab {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .8rem 1rem; border: 0; background: transparent; border-radius: 9px;
  font-weight: 600; font-size: .95rem; color: var(--c-ink-soft); cursor: pointer; transition: var(--transition);
}
.booking__tab svg { width: 18px; height: 18px; flex: none; }
.booking__tab.is-active { background: var(--c-cream); color: var(--c-ink); box-shadow: var(--shadow-sm); }
.booking__send { width: 100%; justify-content: center; margin-top: var(--sp-2); }
.booking__note { text-align: center; font-size: .85rem; color: var(--c-ink-soft); margin: var(--sp-4) 0 0; }
.booking select:disabled { opacity: .55; cursor: not-allowed; }

/* ------------------------------- FOOTER -------------------------------- */
.site-footer { background: var(--c-ink); color: #d9cfc2; padding-block: var(--sp-16) var(--sp-8); }
.site-footer a { color: #e9ddcb; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; gap: var(--sp-8); }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; } }
.footer-brand .brand__name { color: #fff; }
.footer-brand .brand__tag { color: var(--c-gold); }
.site-footer h4 { color: #fff; margin-bottom: var(--sp-4); font-size: 1.1rem; }
.site-footer li { margin-bottom: .5rem; }
.footer-bottom {
  border-top: 1px solid #4d443c; margin-top: var(--sp-12); padding-top: var(--sp-6);
  font-size: .82rem; color: #a99e92; display: flex; flex-wrap: wrap; gap: var(--sp-4); justify-content: space-between;
}

/* ---------------------- WHATSAPP FLOTTANTE (CRO) ----------------------- */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 200;
  display: inline-flex; align-items: center; gap: .6rem;
  background: var(--c-whatsapp); color: #fff; padding: .85rem 1.1rem; border-radius: 50px;
  box-shadow: 0 8px 24px rgba(37,211,102,.4); font-weight: 600;
  animation: wa-pulse 2.4s infinite;
}
.wa-float:hover { background: var(--c-whatsapp-d); color: #fff; transform: scale(1.04); }
.wa-float .ico { width: 1.5em; height: 1.5em; }
.wa-float__label { display: none; }
@media (min-width: 560px) { .wa-float__label { display: inline; } }
@keyframes wa-pulse {
  0% { box-shadow: 0 8px 24px rgba(37,211,102,.4), 0 0 0 0 rgba(37,211,102,.5); }
  70% { box-shadow: 0 8px 24px rgba(37,211,102,.4), 0 0 0 14px rgba(37,211,102,0); }
  100% { box-shadow: 0 8px 24px rgba(37,211,102,.4), 0 0 0 0 rgba(37,211,102,0); }
}

/* ---------------------- ANIMAZIONI ON-SCROLL --------------------------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ------------------------------ UTILITY -------------------------------- */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.page-hero {
  background: var(--c-sand-2); text-align: center; padding-block: var(--sp-16);
  border-bottom: 1px solid var(--c-line);
}
.breadcrumb { font-size: .85rem; color: var(--c-ink-soft); margin-bottom: var(--sp-3); }
.breadcrumb a { color: var(--c-ink-soft); }

/* --------------------- NOTE LEGALI NEL FOOTER -------------------------- */
.footer-legal { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; width: 100%; margin-top: var(--sp-2); }
.footer-legal a { color: #a99e92; }
.footer-legal a:hover { color: #fff; }
.footer-legal__btn {
  background: none; border: 0; padding: 0; font: inherit; color: #a99e92; cursor: pointer; text-decoration: underline;
}
.footer-legal__btn:hover { color: #fff; }

/* ------------------------- COOKIE BANNER (GDPR) ------------------------ */
.cc-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 300;
  background: var(--c-cream); border-top: 3px solid var(--c-sea);
  box-shadow: 0 -10px 30px rgba(20,48,77,.18);
  transform: translateY(110%); transition: transform .35s ease; visibility: hidden;
}
.cc-banner.is-open { transform: none; visibility: visible; }
.cc-banner__inner {
  max-width: var(--maxw); margin-inline: auto; padding: var(--sp-6);
  display: grid; gap: var(--sp-4); align-items: center;
}
@media (min-width: 880px) {
  .cc-banner__inner { grid-template-columns: 1fr auto; grid-template-areas: "text actions" "prefs prefs"; }
  .cc-banner__text { grid-area: text; } .cc-banner__actions { grid-area: actions; } .cc-prefs { grid-area: prefs; }
}
.cc-banner__text h2 { font-size: 1.25rem; margin-bottom: .25rem; }
.cc-banner__text p { font-size: .92rem; color: var(--c-ink-soft); margin: 0; max-width: 70ch; }
.cc-banner__actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); }
.cc-banner__actions .btn { padding: .7rem 1.3rem; }
.cc-prefs { display: grid; gap: var(--sp-3); padding-top: var(--sp-4); border-top: 1px solid var(--c-line); }
.cc-toggle { display: flex; align-items: center; gap: .6rem; font-size: .95rem; font-weight: 500; }
.cc-toggle small { color: var(--c-ink-soft); font-weight: 400; }
.cc-toggle input { width: 18px; height: 18px; accent-color: var(--c-sea); }

/* ------------------- PLACEHOLDER MAPPA (consent gate) ------------------ */
.map-consent {
  display: grid; place-items: center; text-align: center; height: 380px; padding: var(--sp-6);
  background: var(--c-sand-2); color: var(--c-ink-soft);
}
.map-consent__inner { max-width: 360px; display: grid; gap: var(--sp-3); justify-items: center; }
.map-consent svg { width: 40px; height: 40px; color: var(--c-sea); }
.map-consent p { margin: 0; font-size: .92rem; }
.map-consent__small { font-size: .82rem; }
.map-wrap:has(.map-consent) { border-style: dashed; }

/* ----------------------------- PAGINE LEGALI --------------------------- */
.legal { line-height: 1.75; }
.legal h2 { margin-top: var(--sp-12); margin-bottom: var(--sp-3); font-size: 1.5rem; }
.legal h3 { margin-top: var(--sp-6); margin-bottom: var(--sp-2); font-size: 1.15rem; color: var(--c-sea-d); }
.legal ul.features { margin: var(--sp-3) 0 var(--sp-4); }
.legal a { color: var(--c-sea); text-decoration: underline; }
.legal-table { width: 100%; border-collapse: collapse; margin: var(--sp-4) 0; font-size: .9rem; }
.legal-table th, .legal-table td { text-align: left; padding: .6rem .75rem; border: 1px solid var(--c-line); vertical-align: top; }
.legal-table th { background: var(--c-sand-2); font-weight: 600; }
