/* =====================================================================
   SUN ISLAND — v2 · Design system "warm editorial"
   CSS puro, nessuna build: palette calda del brand, layout moderno,
   tipografia grande, card morbide, micro-interazioni.
   ===================================================================== */

:root {
  /* Palette brand (invariata, alleggerita) */
  --cream:      #FAF6EF;
  --cream-2:    #F4ECDD;
  --sand:       #EADCC4;
  --sand-soft:  #F1E8D7;
  --ink:        #241B14;
  --ink-soft:   #4A3B2C;
  --gold:       #C99A4E;
  --gold-light: #E3BD78;
  --gold-deep:  #9A6B22;
  --bronze:     #6E4A26;
  --wa:         #25D366;

  --radius-lg:  28px;
  --radius-md:  20px;
  --radius-sm:  14px;

  --shadow-warm: 0 24px 50px -24px rgba(58, 42, 26, .45);
  --shadow-soft: 0 10px 30px -18px rgba(58, 42, 26, .35);

  --font-display: 'Fraunces', Georgia, serif;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;

  --container: 72rem;
}

/* ---------- Reset essenziale ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
/* <picture> serve solo a scegliere il formato: non deve creare una scatola,
   così l'<img> resta l'elemento di griglia/flex come prima. */
picture { display: contents; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-display); margin: 0; line-height: 1.12; letter-spacing: -.01em; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

.hidden { display: none !important; }

/* Àncore: i titoli non finiscono sotto la navbar fissa */
section[id] { scroll-margin-top: 6rem; }

/* ---------- Layout ---------- */
.container { max-width: var(--container); margin-inline: auto; padding-inline: 1.25rem; }
@media (min-width: 640px) { .container { padding-inline: 2rem; } }

.section { padding-block: clamp(4rem, 9vw, 7rem); }
.section-tint { background: linear-gradient(180deg, var(--cream) 0%, var(--sand-soft) 50%, var(--cream) 100%); }

/* Testata di sezione */
.sec-head { max-width: 40rem; margin-inline: auto; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: .78rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold-deep);
}
.eyebrow::before, .eyebrow::after {
  content: ""; width: 26px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--gold));
}
.eyebrow::after { background: linear-gradient(90deg, var(--gold), transparent); }
.sec-head h2 { margin-top: .9rem; font-size: clamp(1.9rem, 4vw, 2.75rem); font-weight: 600; }
.sec-head p { margin-top: 1rem; color: var(--ink-soft); }

/* Parola in corsivo con riempimento oro */
.accent-i {
  font-style: italic; font-weight: 600;
  background: linear-gradient(115deg, #B07E2E 0%, var(--gold) 45%, #DFB873 80%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- Bottoni ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  border: 0; border-radius: 999px; padding: .95rem 1.9rem;
  font-size: .95rem; font-weight: 600; line-height: 1.2;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease, filter .25s ease;
}
.btn svg { flex-shrink: 0; }
.btn-gold {
  background: linear-gradient(180deg, var(--gold-light) 0%, var(--gold) 100%);
  color: var(--ink);
  box-shadow: 0 14px 34px -12px rgba(151, 107, 34, .55), inset 0 1px 0 rgba(255,255,255,.5);
}
.btn-gold:hover { transform: translateY(-2px); filter: brightness(1.04);
  box-shadow: 0 20px 46px -14px rgba(151, 107, 34, .7), inset 0 1px 0 rgba(255,255,255,.6); }
.btn-outline { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--sand); }
.btn-outline:hover { background: #fff; box-shadow: inset 0 0 0 1.5px var(--gold), var(--shadow-soft); transform: translateY(-2px); }
.btn-dark { background: var(--ink); color: var(--cream); }
.btn-dark:hover { background: var(--bronze); transform: translateY(-2px); }
.btn-wa { background: var(--wa); color: #fff; box-shadow: 0 14px 34px -12px rgba(37, 211, 102, .5); }
.btn-wa:hover { transform: translateY(-2px); filter: brightness(.96); }
.btn-block { width: 100%; }

/* Riflesso che scorre sulle CTA principali */
.btn-shine { position: relative; overflow: hidden; }
.btn-shine::after {
  content: ""; position: absolute; top: 0; left: -80%; width: 50%; height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255,255,255,.45), transparent);
  transform: skewX(-20deg); animation: shine 5.5s ease-in-out infinite;
}
@keyframes shine { 0%, 78% { left: -80%; } 95%, 100% { left: 130%; } }

/* ---------- Scroll reveal (gestito da app.js) ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Barra avanzamento scroll ---------- */
#scrollProgress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 90;
  background: linear-gradient(90deg, var(--gold-light), var(--gold-deep));
  box-shadow: 0 0 12px rgba(201,154,78,.55); transition: width .1s linear;
}

/* ---------- Skip link ---------- */
.skip-link {
  position: fixed; top: -120px; left: 12px; z-index: 2147483002;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px;
  font-weight: 600; font-size: 14px; transition: top .2s ease;
}
.skip-link:focus { top: 12px; outline: 2px solid var(--gold); outline-offset: 2px; }

/* =====================================================================
   NAVBAR — pillola flottante glass
   ===================================================================== */
#navbar { position: fixed; top: 0; left: 0; right: 0; z-index: 80; padding-top: .9rem; transition: padding .3s ease; }
.nav-shell {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .6rem .75rem .6rem 1.1rem;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: background .3s ease, border-color .3s ease, box-shadow .3s ease;
}
#navbar.nav-solid .nav-shell {
  background: rgba(250, 246, 239, .88);
  border-color: rgba(201, 154, 78, .25);
  box-shadow: 0 14px 40px -20px rgba(63, 42, 20, .5);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.nav-brand { display: inline-flex; align-items: center; gap: .55rem; font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; letter-spacing: -.01em; }
.nav-brand svg { color: var(--gold); }
.nav-accent { color: var(--gold-deep); }

.nav-links { display: none; align-items: center; gap: 1.9rem; font-size: .92rem; font-weight: 500; }
@media (min-width: 1024px) { .nav-links { display: flex; } }
.nav-link { position: relative; padding-block: .3rem; color: var(--ink-soft); transition: color .2s ease; }
.nav-link:hover { color: var(--ink); }
.nav-link::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 2px; border-radius: 2px;
  background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.nav-link:hover::after { transform: scaleX(1); }

.nav-cta { display: none; }
@media (min-width: 1024px) { .nav-cta { display: inline-flex; padding: .7rem 1.4rem; font-size: .88rem; } }

.nav-burger {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border: 0; border-radius: 999px;
  background: var(--ink); color: var(--cream);
}
@media (min-width: 1024px) { .nav-burger { display: none; } }

/* Menu mobile a tendina */
#mobileMenu {
  margin-top: .6rem;
  background: rgba(250, 246, 239, .97);
  border: 1px solid var(--sand);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-warm);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  overflow: hidden;
}
#mobileMenu ul { padding: .8rem; display: grid; gap: .15rem; }
#mobileMenu a.mm-link {
  display: block; padding: .8rem 1rem; border-radius: 12px;
  font-size: 1.02rem; font-weight: 500;
}
#mobileMenu a.mm-link:hover { background: var(--sand-soft); }
.mm-actions { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; padding: .6rem .3rem .3rem; }

/* =====================================================================
   HERO — chiaro, editoriale, con collage foto reali
   ===================================================================== */
.hero {
  position: relative; overflow: hidden;
  padding-top: clamp(7rem, 14vw, 9.5rem);
  padding-bottom: clamp(3rem, 7vw, 5.5rem);
}
/* Bagliori caldi di sfondo */
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(46rem 30rem at 88% -8%, rgba(227, 189, 120, .38), transparent 60%),
    radial-gradient(38rem 26rem at -12% 30%, rgba(201, 154, 78, .20), transparent 60%),
    radial-gradient(30rem 22rem at 60% 110%, rgba(227, 189, 120, .18), transparent 65%);
}
/* Grana fine appena percettibile */
.grain::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0; opacity: .05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.hero-grid {
  position: relative; z-index: 1;
  display: grid; gap: 3.5rem; align-items: center;
}
@media (min-width: 1024px) { .hero-grid { grid-template-columns: 1.05fr .95fr; gap: 4.5rem; } }

.hero-badge {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .5rem 1.1rem; border-radius: 999px;
  background: #fff; border: 1px solid var(--sand);
  box-shadow: var(--shadow-soft);
  font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft);
}
.hero-badge svg { color: var(--gold); }

.hero h1 {
  margin-top: 1.6rem;
  font-size: clamp(2.9rem, 7.2vw, 5rem);
  font-weight: 600; line-height: 1.02; letter-spacing: -.02em;
}
.hero-sub {
  margin-top: 1.5rem; max-width: 34rem;
  font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--ink-soft);
}
.hero-ctas { margin-top: 2.2rem; display: flex; flex-wrap: wrap; gap: .9rem; }

.hero-trust {
  margin-top: 2.2rem; display: flex; flex-wrap: wrap; align-items: center;
  gap: .5rem 1.6rem; font-size: .9rem; color: var(--ink-soft);
}

/* Pallino stato apertura */
.status-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; margin-right: .45rem; vertical-align: 1px; }
.status-open { background: #22c55e; animation: statusPulse 2.2s ease-out infinite; }
.status-closed { background: #ef4444; }
@keyframes statusPulse {
  0% { box-shadow: 0 0 0 0 rgba(34,197,94,.55); }
  70% { box-shadow: 0 0 0 8px rgba(34,197,94,0); }
  100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); }
}

/* --- Collage foto --- */
.hero-visual { position: relative; }
.hero-collage {
  display: grid; grid-template-columns: 1.15fr .85fr; grid-template-rows: auto auto;
  gap: .9rem;
}
.hero-collage .ph { overflow: hidden; box-shadow: var(--shadow-warm); }
.hero-collage img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.hero-collage .ph:hover img { transform: scale(1.04); }
.ph-a { grid-row: 1 / 3; aspect-ratio: 3 / 4.1; border-radius: 44% 56% 52% 48% / 42% 44% 56% 58%; border-radius: 2.2rem; }
.ph-a { border-radius: 8rem 2.2rem 2.2rem 2.2rem; }
.ph-b { aspect-ratio: 4 / 3.2; border-radius: 2.2rem 2.2rem 2.2rem .9rem; }
.ph-c { aspect-ratio: 4 / 3.2; border-radius: .9rem 2.2rem 8rem 2.2rem; }

/* Sole decorativo dietro al collage */
.hero-sun-deco {
  position: absolute; top: -64px; right: -56px; width: 210px; height: 210px;
  color: rgba(201, 154, 78, .3); z-index: -1; pointer-events: none;
  animation: spinSlow 45s linear infinite;
}
@keyframes spinSlow { to { transform: rotate(360deg); } }

/* Card glass flottante: rating Google */
.hero-rating {
  position: absolute; left: -1rem; bottom: 1.6rem;
  display: flex; align-items: center; gap: .8rem;
  padding: .9rem 1.2rem; border-radius: 18px;
  background: rgba(255,255,255,.82);
  border: 1px solid rgba(201,154,78,.3);
  box-shadow: var(--shadow-warm);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  animation: floaty 7s ease-in-out infinite;
}
@media (max-width: 640px) { .hero-rating { left: .4rem; } }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
.hero-rating .num { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; line-height: 1; }
.hero-rating .stars { color: var(--gold); font-size: .85rem; line-height: 1.3; }
.hero-rating .lbl { display: block; font-size: .72rem; color: var(--ink-soft); }

/* Chip flottante loyalty */
.hero-chip {
  position: absolute; top: 1.1rem; right: -.4rem;
  padding: .55rem 1rem; border-radius: 999px;
  background: var(--ink); color: var(--cream);
  font-size: .8rem; font-weight: 600;
  box-shadow: var(--shadow-warm);
  animation: floaty 8s ease-in-out 1.2s infinite;
}
.hero-chip .gold { color: var(--gold-light); }

/* Indicatore scroll */
.hero-scroll { margin-top: 3.2rem; display: flex; justify-content: center; }
.hero-scroll a { color: rgba(36,27,20,.45); animation: bounceY 1.8s ease-in-out infinite; }
@keyframes bounceY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(7px); } }

/* =====================================================================
   MARQUEE — striscia scorrevole sotto l'hero
   ===================================================================== */
.marquee {
  overflow: hidden; background: var(--ink); color: var(--cream);
  padding-block: 1.05rem; user-select: none;
}
.marquee-track {
  display: flex; gap: 2.6rem; width: max-content;
  animation: marquee 30s linear infinite;
  font-family: var(--font-display); font-size: 1rem; font-weight: 500; letter-spacing: .06em;
  align-items: center; white-space: nowrap;
}
.marquee-track .sun { color: var(--gold-light); font-size: 1.1rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* =====================================================================
   SERVIZI — card con foto reali
   ===================================================================== */
.services-grid { margin-top: 3.5rem; display: grid; gap: 1.4rem; }
@media (min-width: 640px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .services-grid { grid-template-columns: repeat(4, 1fr); } }

.svc-card {
  position: relative; display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--sand);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: transform .35s cubic-bezier(.22,1,.36,1), box-shadow .35s ease, border-color .35s ease;
}
.svc-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-warm); border-color: rgba(201,154,78,.5); }
.svc-photo { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.svc-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.svc-card:hover .svc-photo img { transform: scale(1.06); }
.svc-time {
  position: absolute; top: .8rem; left: .8rem;
  padding: .35rem .8rem; border-radius: 999px;
  background: rgba(36,27,20,.72); color: var(--cream);
  font-size: .72rem; font-weight: 600; letter-spacing: .04em;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.svc-body { display: flex; flex-direction: column; flex: 1; padding: 1.4rem 1.4rem 1.5rem; }
.svc-body h3 { font-size: 1.25rem; font-weight: 600; }
.svc-body p { margin-top: .6rem; font-size: .9rem; color: var(--ink-soft); flex: 1; }
.svc-foot { margin-top: 1.1rem; display: flex; align-items: center; justify-content: space-between; }
.svc-price { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; }
.svc-price small { font-family: var(--font-sans); font-weight: 500; font-size: .74rem; color: var(--ink-soft); }
.svc-link { display: inline-flex; align-items: center; gap: .3rem; font-size: .85rem; font-weight: 600; color: var(--gold-deep); }
.svc-link:hover { color: var(--bronze); }

/* =====================================================================
   PERCHÉ NOI — immagine + lista numerata
   ===================================================================== */
.why-grid { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 1024px) { .why-grid { grid-template-columns: 1fr 1.1fr; gap: 4.5rem; } }

.why-visual { position: relative; }
.why-visual > img, .why-visual > picture > img {
  width: 100%; aspect-ratio: 4 / 4.6; object-fit: cover;
  border-radius: 2.4rem 2.4rem 2.4rem 9rem; box-shadow: var(--shadow-warm);
}
.why-stat {
  position: absolute; right: -.6rem; bottom: 2rem;
  padding: 1rem 1.3rem; border-radius: 18px;
  background: rgba(255,255,255,.85); border: 1px solid rgba(201,154,78,.3);
  box-shadow: var(--shadow-warm);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  text-align: center;
}
.why-stat .big { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; line-height: 1.1; }
.why-stat .lbl { font-size: .74rem; color: var(--ink-soft); }

.why-list { margin-top: 2.4rem; display: grid; gap: 0; }
.why-item {
  display: flex; gap: 1.3rem; padding-block: 1.5rem;
  border-bottom: 1px solid var(--sand);
}
.why-item:last-child { border-bottom: 0; }
.why-num {
  font-family: var(--font-display); font-style: italic; font-weight: 600;
  font-size: 1.5rem; color: var(--gold); line-height: 1.2; min-width: 2.6rem;
}
.why-item h3 { font-size: 1.15rem; font-weight: 600; }
.why-item p { margin-top: .4rem; font-size: .92rem; color: var(--ink-soft); }

/* =====================================================================
   PREZZI
   ===================================================================== */
.price-grid { margin-top: 3.5rem; display: grid; gap: 1.6rem; align-items: stretch; }
@media (min-width: 1024px) { .price-grid { grid-template-columns: repeat(3, 1fr); } }

.price-card {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--sand); border-radius: var(--radius-lg);
  padding: 2.1rem 1.9rem;
  transition: transform .35s cubic-bezier(.22,1,.36,1), box-shadow .35s ease, border-color .35s ease;
}
.price-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-warm); border-color: rgba(201,154,78,.5); }
.price-card .icon { color: var(--gold-deep); }
.price-card h3 { margin-top: .9rem; font-size: 1.3rem; font-weight: 600; }
.price-card .desc { margin-top: .4rem; font-size: .88rem; color: var(--ink-soft); }
.price-rows { margin-top: 1.5rem; flex: 1; display: grid; align-content: start; }
.price-row {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
  padding-block: .75rem; border-bottom: 1px dashed var(--sand); font-size: .92rem;
}
.price-row:last-child { border-bottom: 0; }
.price-row .val { font-family: var(--font-display); font-size: 1.45rem; font-weight: 700; }
.price-card .btn { margin-top: 1.6rem; }

/* Card in evidenza (scura) */
.price-featured { position: relative; background: var(--ink); color: var(--cream); border-color: transparent; }
@media (min-width: 1024px) { .price-featured { transform: scale(1.04); } .price-featured:hover { transform: scale(1.04) translateY(-6px); } }
.price-featured .icon { color: var(--gold-light); }
.price-featured .desc { color: rgba(250,246,239,.7); }
.price-featured .price-row { border-color: rgba(255,255,255,.14); }
.price-featured .price-row .val { color: var(--gold-light); }
.price-tag {
  position: absolute; top: -0.85rem; left: 50%; transform: translateX(-50%);
  padding: .35rem 1rem; border-radius: 999px;
  background: linear-gradient(180deg, var(--gold-light), var(--gold));
  color: var(--ink); font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  white-space: nowrap;
}

/* Banner abbonamento / loyalty */
.loyalty {
  margin-top: 2.6rem; border-radius: var(--radius-lg); padding: 2px;
  background: linear-gradient(120deg, var(--gold-light), var(--gold-deep), var(--gold-light));
  box-shadow: var(--shadow-warm);
}
.loyalty-inner {
  display: flex; flex-direction: column; align-items: center; gap: 1.4rem;
  background: var(--cream); border-radius: calc(var(--radius-lg) - 2px);
  padding: 1.8rem 1.6rem; text-align: center;
}
@media (min-width: 768px) { .loyalty-inner { flex-direction: row; text-align: left; padding: 1.8rem 2.4rem; } }
.loyalty img { width: 108px; height: 108px; border-radius: 20px; object-fit: cover; box-shadow: var(--shadow-soft); flex-shrink: 0; }
.loyalty h3 { font-size: 1.3rem; font-weight: 600; }
.loyalty p { margin-top: .35rem; font-size: .9rem; color: var(--ink-soft); }
.loyalty strong { color: var(--gold-deep); }
.loyalty .btn { flex-shrink: 0; }

/* =====================================================================
   GALLERIA — nastro che scorre da solo, in loop continuo
   Le foto sono duplicate da app.js: l'animazione trasla di -50% (cioè
   esattamente la prima copia) e riparte, senza stacchi visibili.
   Niente `gap`: la spaziatura è un margin-right su ogni foto, altrimenti
   il gap mancante in coda sfaserebbe il punto di ricongiunzione.
   ===================================================================== */
.gallery-marquee {
  margin-top: 3rem; overflow: hidden;
  /* sfumatura ai bordi: le foto entrano ed escono senza tagli netti */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}
.gm-track {
  display: flex; width: max-content;
  animation: gmScroll 55s linear infinite;
  will-change: transform;
}
/* Il nastro non si ferma col mouse sopra e le foto non si sollevano:
   dentro un overflow:hidden qualsiasi spostamento verticale verrebbe tagliato.
   In pausa solo arrivandoci col tab, per poter aprire la foto da tastiera. */
.gm-track:focus-within,
.gm-track.gm-paused { animation-play-state: paused; }
.gm-track img {
  flex: 0 0 auto; margin-right: 1rem; cursor: zoom-in;
  width: min(78vw, 380px); aspect-ratio: 4 / 4.4; object-fit: cover;
  border-radius: var(--radius-md);
}
@keyframes gmScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
/* Chi ha chiesto meno animazioni torna al nastro scorribile a mano */
@media (prefers-reduced-motion: reduce) {
  .gm-track { animation: none; width: auto; }
  .gallery-marquee {
    overflow-x: auto; scroll-snap-type: x mandatory;
    padding-inline: max(1.25rem, calc((100vw - var(--container)) / 2 + 1.25rem));
    -webkit-mask-image: none; mask-image: none;
  }
  .gm-track img { scroll-snap-align: center; }
}
.gallery-hint { margin-top: .6rem; text-align: center; font-size: .8rem; color: rgba(36,27,20,.45); }

/* Lightbox */
#lightbox {
  position: fixed; inset: 0; z-index: 2147483005; display: none;
  align-items: center; justify-content: center; padding: 20px;
  background: rgba(28,20,10,.9); cursor: zoom-out;
}
#lightbox.open { display: flex; animation: lbFade .2s ease; }
#lightbox img { max-width: 95vw; max-height: 90vh; border-radius: 14px; box-shadow: 0 30px 80px -20px rgba(0,0,0,.8); }
#lightbox .lb-close { position: absolute; top: 16px; right: 20px; color: #fff; font-size: 34px; line-height: 1; background: none; border: 0; }
@keyframes lbFade { from { opacity: 0; } to { opacity: 1; } }

/* =====================================================================
   ACCELERATORI — banda scura
   ===================================================================== */
.accel { position: relative; overflow: hidden; background: var(--ink); color: var(--cream); }
.accel::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(40rem 26rem at 90% -20%, rgba(227,189,120,.16), transparent 60%);
}
.accel-sun {
  position: absolute; right: -6rem; top: -6rem; width: 19rem; height: 19rem; opacity: .18;
  animation: spinSlow 45s linear infinite; pointer-events: none;
}
.accel-grid { position: relative; display: grid; gap: 2.6rem; align-items: center; padding-block: clamp(4rem, 8vw, 6rem); }
@media (min-width: 900px) { .accel-grid { grid-template-columns: 1.1fr .9fr; gap: 4rem; } }
.accel .eyebrow { color: var(--gold-light); }
.accel .eyebrow::before { background: linear-gradient(90deg, transparent, var(--gold-light)); }
.accel .eyebrow::after { background: linear-gradient(90deg, var(--gold-light), transparent); }
.accel h2 { margin-top: .9rem; font-size: clamp(1.9rem, 3.6vw, 2.6rem); font-weight: 600; }
.accel .lead { margin-top: 1.3rem; color: rgba(250,246,239,.8); }
.accel .note { margin-top: .8rem; font-size: .88rem; color: rgba(250,246,239,.6); }
.accel .brands { margin-top: 1rem; font-size: .92rem; }
.accel .brands strong { color: var(--gold-light); }
/* aspect-ratio: riserva lo spazio prima del caricamento (niente salto di layout) */
.accel img { border-radius: var(--radius-lg); box-shadow: var(--shadow-warm); width: 100%; aspect-ratio: 3 / 4; max-height: 460px; object-fit: cover; }

/* =====================================================================
   RECENSIONI
   ===================================================================== */
.gbadge {
  margin-top: 1.4rem;
  display: inline-flex; align-items: center; gap: .8rem;
  padding: .7rem 1.3rem; border-radius: 999px;
  background: #fff; border: 1px solid var(--sand); box-shadow: var(--shadow-soft);
  transition: transform .25s ease, box-shadow .25s ease;
}
.gbadge:hover { transform: translateY(-3px); box-shadow: var(--shadow-warm); }
.gbadge .num { font-family: var(--font-display); font-size: 1.45rem; font-weight: 700; line-height: 1; }
.gbadge .stars { color: var(--gold); font-size: .82rem; line-height: 1.25; display: block; }
.gbadge .lbl { display: block; font-size: .72rem; color: var(--ink-soft); }

.reviews-grid { margin-top: 3.2rem; display: grid; gap: 1.4rem; align-items: stretch; }
@media (min-width: 900px) { .reviews-grid { grid-template-columns: repeat(3, 1fr); } }
.review-card {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--sand); border-radius: var(--radius-lg);
  padding: 1.8rem;
  transition: transform .35s cubic-bezier(.22,1,.36,1), box-shadow .35s ease, border-color .35s ease;
}
.review-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-warm); border-color: rgba(201,154,78,.5); }
.review-top { display: flex; align-items: center; justify-content: space-between; }
.review-top .stars { color: var(--gold); letter-spacing: .1em; }
.review-top .src { font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: rgba(36,27,20,.4); }
.review-card blockquote { margin: 1rem 0 0; flex: 1; font-size: .94rem; color: var(--ink-soft); }
.review-card blockquote::before { content: "“"; display: block; font-family: var(--font-display); font-size: 2.4rem; line-height: .6; color: var(--gold-light); margin-bottom: .5rem; }
.review-who { margin-top: 1.3rem; display: flex; align-items: center; gap: .8rem; }
.review-who .avatar {
  width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--sand-soft); color: var(--gold-deep); font-weight: 700; font-size: .9rem;
}
.review-who .name { font-weight: 600; font-size: .92rem; line-height: 1.25; display: block; }
.review-who .meta { font-size: .76rem; color: rgba(36,27,20,.5); display: block; }
.reviews-cta { margin-top: 2.6rem; text-align: center; }

/* =====================================================================
   FAQ
   ===================================================================== */
.faq-wrap { max-width: 46rem; margin-inline: auto; }
.faq-list { margin-top: 2.8rem; display: grid; gap: .9rem; }
.faq-item { background: #fff; border: 1px solid var(--sand); border-radius: var(--radius-md); overflow: hidden; transition: border-color .3s ease, box-shadow .3s ease; }
.faq-item.open { border-color: rgba(201,154,78,.55); box-shadow: var(--shadow-soft); }
.faq-trigger {
  display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.15rem 1.4rem; text-align: left;
  background: none; border: 0; font-size: 1rem; font-weight: 600; color: var(--ink);
}
.faq-icon { font-size: 1.5rem; color: var(--gold-deep); transition: transform .3s ease; flex-shrink: 0; line-height: 1; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-panel { max-height: 0; overflow: hidden; transition: max-height .4s ease; }
.faq-item.open .faq-panel { max-height: 400px; }
.faq-panel > div { padding: 0 1.4rem 1.3rem; font-size: .92rem; color: var(--ink-soft); }

/* =====================================================================
   CONTATTI
   ===================================================================== */
.contact-grid { margin-top: 3.2rem; display: grid; gap: 1.6rem; align-items: stretch; }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: 1.05fr .95fr; } }

.contact-form {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--sand); border-radius: var(--radius-lg);
  padding: 2rem 1.8rem;
}
.form-row { display: grid; gap: 1.2rem; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }
.contact-form label { display: block; font-size: .88rem; font-weight: 600; margin-bottom: .4rem; }
.contact-form input, .contact-form textarea {
  width: 100%; border-radius: 14px; padding: .85rem 1rem;
  border: 1.5px solid var(--sand); background: var(--cream);
  font-family: inherit; font-size: .95rem; color: var(--ink);
  outline: none; transition: border-color .2s ease, box-shadow .2s ease;
}
.contact-form input:focus, .contact-form textarea:focus {
  border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,154,78,.22);
}
.contact-form textarea { resize: none; min-height: 9rem; flex: 1; }
.form-privacy { margin-top: .8rem; font-size: .78rem; line-height: 1.5; color: rgba(36,27,20,.55); text-align: center; }
.form-privacy a { color: var(--gold-deep); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.field-msg { margin-top: 1.2rem; flex: 1; display: flex; flex-direction: column; }
.error-msg { margin-top: .3rem; font-size: .78rem; color: #dc2626; }
.contact-form .btn { margin-top: 1.6rem; }
#formFeedback { margin-top: 1rem; font-size: .9rem; font-weight: 500; }
/* Classi applicate da app.js */
.border-red-400 { border-color: #f87171 !important; }
.border-sand { border-color: var(--sand) !important; }
.text-red-600 { color: #dc2626 !important; }
.text-green-700 { color: #15803d !important; }

/* Card info scura */
.contact-info {
  background: var(--ink); color: var(--cream);
  border-radius: var(--radius-lg); padding: 2rem 1.8rem;
  display: flex; flex-direction: column;
}
.contact-info h3 { font-size: 1.35rem; font-weight: 600; }
.contact-info ul.recapiti { margin-top: 1.3rem; display: grid; gap: .9rem; font-size: .93rem; }
.contact-info ul.recapiti li { display: flex; gap: .8rem; align-items: flex-start; }
.contact-info ul.recapiti svg { color: var(--gold-light); flex-shrink: 0; margin-top: .15rem; }
.contact-info ul.recapiti a:hover { color: var(--gold-light); }
.orari-title { margin-top: 1.8rem; font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: rgba(250,246,239,.55); }
#orari { margin-top: .8rem; display: grid; gap: .4rem; font-size: .9rem; }
#orari li { display: flex; justify-content: space-between; gap: 1rem; }
/* Classi applicate da app.js per il giorno corrente */
.text-sun-400 { color: var(--gold-light) !important; }
.font-semibold { font-weight: 600 !important; }
.contact-social { margin-top: auto; padding-top: 1.8rem; display: flex; gap: .7rem; }
.contact-social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 50%;
  background: rgba(255,255,255,.1); color: var(--cream);
  transition: background .25s ease, transform .25s ease;
}
.contact-social a:hover { background: var(--gold); color: var(--ink); transform: translateY(-3px); }

/* Mappa */
.map-wrap { margin-top: 1.6rem; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--sand); box-shadow: var(--shadow-warm); }
.map-wrap iframe { display: block; width: 100%; border: 0; }

/* Come arrivare */
.arrive-grid { margin-top: 1.6rem; display: grid; gap: 1rem; }
@media (min-width: 640px) { .arrive-grid { grid-template-columns: repeat(3, 1fr); } }
.arrive-card { background: #fff; border: 1px solid var(--sand); border-radius: var(--radius-md); padding: 1.4rem; }
.arrive-card .icon { color: var(--gold-deep); }
.arrive-card h4 { margin-top: .6rem; font-size: 1.02rem; font-weight: 600; font-family: var(--font-sans); }
.arrive-card p { margin-top: .35rem; font-size: .86rem; color: var(--ink-soft); }
.arrive-dark { background: var(--ink); color: var(--cream); border-color: transparent; display: flex; flex-direction: column; justify-content: space-between; transition: background .25s ease; }
.arrive-dark:hover { background: var(--bronze); }
.arrive-dark .icon { color: var(--gold-light); }
.arrive-dark p { color: rgba(250,246,239,.7); }
.arrive-dark .go { margin-top: 1rem; font-size: .88rem; font-weight: 600; color: var(--gold-light); }
.arrive-dark:hover .go { color: var(--cream); }

/* =====================================================================
   FOOTER
   ===================================================================== */
footer { background: var(--ink); color: rgba(250,246,239,.8); }
.footer-grid {
  display: grid; gap: 2.4rem;
  padding-top: 3.5rem; padding-bottom: 2.4rem;
}
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(3, 1fr); } }
.footer-brand { display: inline-flex; align-items: center; gap: .55rem; font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; color: var(--cream); }
.footer-brand svg { color: var(--gold); }
.footer-brand .nav-accent { color: var(--gold-light); }
footer h4 { font-family: var(--font-sans); font-size: .95rem; font-weight: 600; color: var(--cream); margin-bottom: .9rem; }
footer .fcol p, footer .fcol li { font-size: .9rem; margin-top: .4rem; }
footer a:hover { color: var(--gold-light); }
footer .fcol button { background: none; border: 0; padding: 0; color: inherit; font: inherit; text-decoration: underline; text-underline-offset: 2px; text-decoration-color: rgba(250,246,239,.3); }
footer .fcol button:hover { color: var(--gold-light); }
.footer-tag { margin-top: .8rem; font-size: .88rem; color: rgba(250,246,239,.55); max-width: 20rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-block: 1.4rem; text-align: center;
  font-size: .78rem; color: rgba(250,246,239,.5);
}
.footer-bottom p + p { margin-top: .35rem; }
/* Firma dello studio: stesso trattamento usato su Cartolandia */
.footer-credit { color: rgba(255,255,255,.85); font-weight: 650; }
.footer-credit:hover { color: #fff; }
/* Spazio extra su mobile per la barra CTA fissa */
@media (max-width: 1023px) { .footer-bottom { padding-bottom: 6.5rem; } }

/* =====================================================================
   CTA FISSE — barra mobile + FAB WhatsApp desktop
   ===================================================================== */
.cta-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 70;
  display: flex; align-items: center; gap: .7rem;
  padding: .65rem 1rem calc(.75rem + env(safe-area-inset-bottom));
  background: rgba(250,246,239,.95); border-top: 1px solid var(--sand);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
@media (min-width: 1024px) { .cta-bar { display: none; } }
.cta-bar .book { flex: 1; height: 48px; padding-block: 0; }

.wa-float {
  position: fixed; bottom: 1.4rem; right: 1.4rem; z-index: 70;
  display: none; align-items: center; justify-content: center;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--wa); color: #fff; box-shadow: var(--shadow-warm);
  transition: transform .25s ease;
  animation: waPulse 2.8s ease-out infinite;
}
@media (min-width: 1024px) { .wa-float { display: flex; } }
.wa-float:hover { transform: scale(1.1); }
@keyframes waPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(37,211,102,.45); }
  60% { box-shadow: 0 0 0 14px rgba(37,211,102,0); }
}

/* =====================================================================
   ACCESSIBILITÀ — riduci movimento
   ===================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1 !important; transform: none !important; transition: none; }
  .btn-shine::after, .wa-float, .status-open, .hero-rating, .hero-chip,
  .hero-sun-deco, .accel-sun, .marquee-track, .hero-scroll a { animation: none !important; }
  .btn, .svc-card, .price-card, .review-card, .gbadge { transition: none !important; }
  #lightbox.open { animation: none; }
}
