/* ==========================================================================
   IL PONTILE – Bar & Eventi
   Palette: blu petrolio, sabbia, bianco caldo, corallo.
   Tipografia: Anybody (titoli, larghezza variabile) + Instrument Sans (testo).
   ========================================================================== */

:root {
  --petrolio: #0F5560;
  --petrolio-2: #17707C;
  --abisso: #0A3540;
  --notte: #081C26;
  --sabbia: #EAD8B8;
  --sabbia-2: #F4EAD8;
  --bianco: #FBF8F2;
  --corallo: #FF7A59;
  --corallo-2: #FF9A7E;
  --corallo-testo: #B23A1C;
  --alloro: #A9C98F;
  --ink: #11303A;
  --ink-soft: #46636B;
  --line: rgba(15, 85, 96, .16);

  --f-display: "Anybody", "Arial Narrow", system-ui, sans-serif;
  --f-body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 64px;
  --radius: 6px;
  --ease: cubic-bezier(.22, .8, .2, 1);
  --ease-curtain: cubic-bezier(.77, 0, .18, 1);
}

@media (min-width: 900px) { :root { --header-h: 76px; } }

/* --- Base ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bianco);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[id] { scroll-margin-top: calc(var(--header-h) + 8px); }
:focus-visible { outline: 3px solid var(--corallo); outline-offset: 3px; border-radius: 4px; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 200; background: var(--corallo); color: var(--abisso); padding: 10px 16px; border-radius: 999px; font-weight: 700; transition: top .2s; }
.skip:focus { top: 12px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.section { padding-block: clamp(80px, 11vw, 144px); }
.section__head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 60px); }

.h2 {
  font-family: var(--f-display);
  font-weight: 800;
  font-stretch: 115%;
  font-size: clamp(2.3rem, 6.4vw, 4.6rem);
  line-height: .96;
  letter-spacing: -.025em;
  margin-bottom: .45em;
  text-wrap: balance;
}
.h3 {
  font-family: var(--f-display);
  font-weight: 800;
  font-stretch: 115%;
  font-size: clamp(1.7rem, 3.6vw, 2.6rem);
  line-height: 1;
  letter-spacing: -.02em;
  margin-bottom: .4em;
}
.lead { font-size: clamp(1.1rem, 1.5vw, 1.25rem); line-height: 1.55; color: var(--ink-soft); max-width: 56ch; }
.ico { width: 22px; height: 22px; flex: none; }

/* --- Pulsanti ------------------------------------------------------------ */
.btn {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6em;
  min-height: 54px;
  padding: 0 1.6em;
  border: 0;
  border-radius: 999px;
  font-weight: 650;
  font-size: 1.02rem;
  line-height: 1.15;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  transition: transform .2s var(--ease), background-color .25s, color .25s, border-color .25s;
}
.btn:active { transform: scale(.97); }
.btn--sm { min-height: 46px; padding: 0 1.25em; font-size: .95rem; }
.btn--block { width: 100%; }

/* "Prenota il tuo evento": riflesso di luce che passa */
.btn--event { background: var(--petrolio); color: var(--bianco); overflow: hidden; }
.btn--event:hover { background: var(--abisso); }
.btn--event::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .5) 48%, rgba(255, 255, 255, .12) 54%, transparent 64%);
  transform: translateX(-110%);
  animation: shine 4.2s var(--ease) infinite;
}
.btn--event > span { position: relative; z-index: 1; }
.btn--event.btn--light, .hero .btn--event, .laurea .btn--event, .nav .btn--event { background: var(--sabbia); color: var(--abisso); }
.btn--event.btn--light:hover, .hero .btn--event:hover, .laurea .btn--event:hover, .nav .btn--event:hover { background: var(--bianco); }
.btn--event.btn--light::after, .hero .btn--event::after, .laurea .btn--event::after, .nav .btn--event::after {
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .95) 48%, rgba(255, 255, 255, .3) 54%, transparent 64%);
}
@keyframes shine { 0% { transform: translateX(-110%); } 38%, 100% { transform: translateX(110%); } }

/* "Chiama e prenota": corallo luminoso con bagliore che pulsa */
.btn--call {
  background: linear-gradient(180deg, #FF8D6E, #FF6E4C);
  color: var(--abisso);
  font-weight: 700;
}
.btn--call::before {
  content: "";
  position: absolute;
  inset: -3px;
  z-index: -1;
  border-radius: inherit;
  background: var(--corallo);
  filter: blur(14px);
  opacity: .35;
  animation: glow 2.8s ease-in-out infinite;
}
.btn--call:hover { background: linear-gradient(180deg, #FF9B80, #FF7A59); }
@keyframes glow { 0%, 100% { opacity: .3; transform: scale(.96); } 50% { opacity: .8; transform: scale(1.06); } }
.ico--ring { animation: ring 4.5s ease-in-out infinite; transform-origin: 50% 60%; }
@keyframes ring {
  0%, 72%, 100% { transform: rotate(0); }
  75% { transform: rotate(-16deg); } 78% { transform: rotate(14deg); }
  81% { transform: rotate(-12deg); } 84% { transform: rotate(10deg); }
  87% { transform: rotate(-6deg); } 90% { transform: rotate(0); }
}

.btn--ghost { background: transparent; color: var(--bianco); box-shadow: inset 0 0 0 1.5px rgba(251, 248, 242, .75); }
.btn--ghost:hover { background: rgba(251, 248, 242, .14); }
.btn--outline { background: transparent; color: var(--petrolio); box-shadow: inset 0 0 0 1.5px var(--petrolio); }
.btn--outline:hover { background: var(--petrolio); color: var(--bianco); }
.btn--wa { background: transparent; color: var(--bianco); box-shadow: inset 0 0 0 1.5px rgba(251, 248, 242, .6); }
.btn--wa:hover { background: #25D366; color: #06301A; box-shadow: none; }
.btn--wa-solid { background: #25D366; color: #06301A; box-shadow: none; }

/* --- Barra in alto ------------------------------------------------------- */
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  color: var(--bianco);
  transition: background-color .35s, color .35s, box-shadow .35s;
}
.header::before { /* leggera ombra sopra la foto per leggere i link */
  content: "";
  position: absolute;
  inset: 0 0 -30px;
  background: linear-gradient(rgba(6, 30, 38, .45), transparent);
  pointer-events: none;
  transition: opacity .35s;
}
.header.is-solid {
  background: rgba(251, 248, 242, .94);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--line);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.header.is-solid::before { opacity: 0; }
.header__inner {
  position: relative;
  height: 100%;
  width: min(100% - 2 * var(--gutter), 1320px);
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; position: relative; z-index: 2; }
.brand__mark { width: 38px; height: 38px; --logo-sea: var(--petrolio-2); }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font-family: var(--f-display); font-weight: 800; font-stretch: 130%; font-size: 1.3rem; letter-spacing: -.02em; }
.brand__sub { font-size: .78rem; opacity: .85; margin-top: 3px; letter-spacing: .02em; }
.header.is-solid .brand__mark { color: var(--petrolio); }

.nav { margin-left: auto; }
.nav__list { display: flex; gap: clamp(14px, 1.8vw, 28px); }
.nav__list a { position: relative; text-decoration: none; font-weight: 550; font-size: .98rem; padding: 6px 0; }
.nav__list a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--corallo); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav__list a:hover::after, .nav__list a[aria-current="true"]::after { transform: scaleX(1); }
.nav__mobile-extra { display: none; }

.burger { display: none; }

@media (max-width: 1099px) {
  .header__call { display: none; }
}
@media (max-width: 899px) {
  .burger {
    display: grid; place-content: center; gap: 6px;
    width: 48px; height: 48px; margin-left: auto; margin-right: -8px;
    background: transparent; border: 0; position: relative; z-index: 2; color: inherit;
  }
  .burger span { display: block; width: 26px; height: 2.5px; border-radius: 2px; background: currentColor; transition: transform .35s var(--ease), opacity .2s; }
  .burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8.5px) rotate(45deg); }
  .burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8.5px) rotate(-45deg); }

  .nav {
    position: fixed;
    inset: 0;
    z-index: 1;
    margin: 0;
    padding: calc(var(--header-h) + 24px) var(--gutter) calc(32px + env(safe-area-inset-bottom));
    background: var(--abisso);
    color: var(--bianco);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-12px);
    transition: opacity .3s, transform .4s var(--ease), visibility 0s .4s;
  }
  .nav.is-open { visibility: visible; opacity: 1; transform: none; transition: opacity .3s, transform .4s var(--ease); }
  .nav__list { flex-direction: column; gap: 0; }
  .nav__list a {
    display: block;
    padding: 12px 0;
    font-family: var(--f-display);
    font-weight: 750;
    font-stretch: 120%;
    font-size: clamp(1.7rem, 7.5vw, 2.4rem);
    letter-spacing: -.02em;
    border-bottom: 1px solid rgba(251, 248, 242, .12);
  }
  .nav__list a::after { display: none; }
  .nav__mobile-extra { display: grid; gap: 16px; margin-top: 28px; }
  .nav__hours { margin: 0; color: var(--sabbia); font-size: .95rem; }
  .header.menu-open { color: var(--bianco); background: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .header.menu-open::before { opacity: 0; }
  .header.menu-open .brand__mark { color: var(--bianco); }
}
body.no-scroll { overflow: hidden; }

/* --- Hero ---------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  align-items: end;
  color: var(--bianco);
  background: var(--abisso);
  overflow: hidden;
}
.hero__media { position: absolute; inset: -4% 0 -12%; will-change: transform; }
.hero__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 62% 50%;
  animation: heroZoom 24s cubic-bezier(.2, .6, .3, 1) both;
}
@keyframes heroZoom { from { transform: scale(1.2); } to { transform: scale(1.02); } }
.hero__shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(8, 40, 50, .9) 0%, rgba(8, 40, 50, .55) 38%, rgba(8, 40, 50, .08) 68%),
    linear-gradient(to right, rgba(8, 40, 50, .45), transparent 60%);
}
.hero__content { position: relative; z-index: 1; padding-top: calc(var(--header-h) + 48px); padding-bottom: clamp(80px, 13vh, 140px); }

.status {
  display: inline-flex; align-items: center; gap: 10px;
  margin: 0 0 22px;
  padding: 8px 16px 8px 12px;
  border-radius: 999px;
  background: rgba(251, 248, 242, .14);
  box-shadow: inset 0 0 0 1px rgba(251, 248, 242, .3);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  font-size: .95rem;
  font-weight: 600;
}
.status__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--sabbia); position: relative; flex: none; }
.status[data-state="open"] .status__dot { background: #5EE6A6; }
.status[data-state="open"] .status__dot::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%;
  border: 2px solid #5EE6A6; animation: ping 2s ease-out infinite;
}
.status[data-state="closed"] .status__dot { background: var(--corallo); }
@keyframes ping { from { transform: scale(.6); opacity: 1; } to { transform: scale(1.8); opacity: 0; } }
.status--inline { background: var(--sabbia-2); box-shadow: none; color: var(--ink); -webkit-backdrop-filter: none; backdrop-filter: none; }
.status--inline[data-state="open"] .status__dot { background: #1E9E63; }
.status--inline[data-state="open"] .status__dot::after { border-color: #1E9E63; }

.hero__title { margin-bottom: 18px; }
.hero__name {
  display: block;
  font-family: var(--f-display);
  font-weight: 850;
  font-stretch: 135%;
  font-size: min(calc(min(100vw - 2 * var(--gutter), var(--wrap)) / 8.1), 11rem);
  line-height: .82;
  white-space: nowrap;
  letter-spacing: -.045em;
  margin-left: -.04em;
}
.hero__name .ch { display: inline-block; }
.hero__name .ch--sp { width: .3em; }
.js .hero__name .ch { animation: rise 1.1s var(--ease) both; animation-delay: calc(.15s + var(--i) * 55ms); }
@keyframes rise { from { transform: translateY(.45em); opacity: 0; } to { transform: none; opacity: 1; } }
.hero__sub {
  display: block;
  margin-top: 18px;
  font-family: var(--f-display);
  font-weight: 600;
  font-stretch: 105%;
  font-size: clamp(1.15rem, 2.4vw, 1.75rem);
  letter-spacing: -.01em;
  color: var(--sabbia);
}
.hero__lead { max-width: 34ch; font-size: clamp(1.05rem, 1.6vw, 1.25rem); opacity: .92; margin-bottom: 30px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.js .hero__sub, .js .hero__lead, .js .hero__actions, .js .hero .status { animation: fadeUp 1s var(--ease) both; }
.js .hero .status { animation-delay: .1s; }
.js .hero__sub { animation-delay: .75s; }
.js .hero__lead { animation-delay: .9s; }
.js .hero__actions { animation-delay: 1.05s; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

.hero__wave { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: clamp(24px, 4vw, 56px); fill: var(--bianco); z-index: 1; }

@media (max-width: 559px) {
  .hero__actions .btn { flex: 1 1 100%; }
}

/* --- Animazioni allo scorrimento ---------------------------------------- */
.js [data-split] .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
.js [data-split] .w > span { display: inline-block; transform: translateY(108%); transition: transform .9s var(--ease); transition-delay: calc(var(--i, 0) * 60ms); }
.js [data-split].is-in .w > span { transform: none; }

.js [data-stagger] > * { opacity: 0; transform: translateY(30px); transition: opacity .7s ease, transform .9s var(--ease); transition-delay: calc(var(--i, 0) * 110ms); }
.js [data-stagger].is-in > * { opacity: 1; transform: none; }

/* Foto */
.photo { position: relative; overflow: hidden; margin: 0; border-radius: var(--radius); background: var(--sabbia); }
.photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.photo:hover img { transform: scale(1.05); }
.photo__px { position: absolute; inset: -9% 0; will-change: transform; }

.js .curtain::after {
  content: "";
  position: absolute; inset: 0; z-index: 2;
  background: var(--curtain-c, var(--petrolio));
  transform-origin: 100% 50%;
  transition: transform 1.15s var(--ease-curtain);
}
.js .curtain.is-in::after { transform: scaleX(0); }
.js .curtain img { transform: scale(1.18); }
.js .curtain.is-in img { transform: scale(1); transition: transform 1.6s var(--ease); }
.js .curtain.is-in:hover img { transform: scale(1.05); transition-duration: .9s; }

/* --- Chi siamo ----------------------------------------------------------- */
.about { padding-top: clamp(64px, 9vw, 120px); }
.about__grid { display: grid; gap: clamp(36px, 6vw, 80px); align-items: center; }
.about__text p:not(.lead) { max-width: 60ch; }
.photo--tall { aspect-ratio: 4 / 5; }
@media (min-width: 900px) {
  .about__grid { grid-template-columns: 1.15fr .85fr; }
}

.stats { display: grid; margin-top: clamp(56px, 8vw, 104px); gap: 0; }
.stat { display: flex; flex-direction: column-reverse; justify-content: flex-end; padding: 22px 0 10px; border-top: 2px solid var(--petrolio); }
.stat__num {
  margin: 0;
  font-family: var(--f-display);
  font-weight: 800;
  font-stretch: 125%;
  font-size: clamp(3.4rem, 10vw, 7rem);
  line-height: .9;
  letter-spacing: -.04em;
  color: var(--petrolio);
  font-variant-numeric: tabular-nums;
}
.stat__label { margin-top: 10px; font-size: 1.05rem; font-weight: 600; color: var(--ink-soft); }
@media (min-width: 700px) {
  .stats { grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 40px); }
}

/* --- Il nostro giorno ---------------------------------------------------- */
.day { position: relative; isolation: isolate; --curtain-c: var(--sabbia); }
.day__bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.day__sky { position: sticky; top: 0; height: 100vh; height: 100lvh; overflow: hidden; }
.sky { position: absolute; inset: 0; opacity: 0; will-change: opacity; }
.sky--alba { opacity: 1; background: linear-gradient(180deg, #F7D9A4 0%, #FBE8C6 45%, #FCF3E3 100%); }
.sky--giorno { background: linear-gradient(180deg, #BFE1E6 0%, #E3F1EF 55%, #FBF8F2 100%); }
.sky--tramonto { background: linear-gradient(180deg, #E96F4C 0%, #F59A64 38%, #F8C08A 72%, #F6DDB6 100%); }
.sky--notte { background: linear-gradient(180deg, #06141D 0%, #0A2533 55%, #0E3644 100%); }
.stars {
  position: absolute; inset: 0 0 35%;
  background-image:
    radial-gradient(1.4px 1.4px at 12% 18%, #fff 60%, transparent),
    radial-gradient(1px 1px at 28% 42%, #fff 60%, transparent),
    radial-gradient(1.6px 1.6px at 47% 12%, #fff 60%, transparent),
    radial-gradient(1px 1px at 63% 33%, #fff 60%, transparent),
    radial-gradient(1.3px 1.3px at 78% 9%, #fff 60%, transparent),
    radial-gradient(1px 1px at 88% 46%, #fff 60%, transparent),
    radial-gradient(1.2px 1.2px at 6% 58%, #fff 60%, transparent),
    radial-gradient(1px 1px at 39% 66%, #fff 60%, transparent),
    radial-gradient(1.4px 1.4px at 71% 61%, #fff 60%, transparent),
    radial-gradient(1px 1px at 95% 24%, #fff 60%, transparent);
  background-size: 420px 300px;
  opacity: .8;
}
.day__sun {
  position: absolute; left: 0; top: 0;
  width: clamp(70px, 9vw, 120px); aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, #FFF3D0, #FFD27A 55%, #FFB45C);
  box-shadow: 0 0 60px 18px rgba(255, 196, 110, .45);
  transform: translate3d(var(--sx, 10vw), var(--sy, 60vh), 0);
  transition: background .6s, box-shadow .6s;
  will-change: transform;
}
.day.is-night .day__sun { background: radial-gradient(circle at 38% 38%, #FFFFFF, #EDEAE0 60%, #D8D3C4); box-shadow: 0 0 50px 10px rgba(220, 235, 255, .25); }
.day__sea { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 16vh; fill: rgba(15, 85, 96, .14); }
.day.is-night .day__sea { fill: rgba(255, 255, 255, .05); }

.day__intro { position: relative; z-index: 1; padding-top: clamp(96px, 13vw, 160px); }
.phase { position: relative; z-index: 1; min-height: 100vh; display: flex; align-items: center; padding-block: clamp(56px, 10vh, 120px); }
.phase__grid { display: grid; gap: 22px; align-items: center; }
.phase__time {
  display: inline-block;
  margin-bottom: 12px;
  font-family: var(--f-display);
  font-weight: 700;
  font-stretch: 120%;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: var(--petrolio);
  font-variant-numeric: tabular-nums;
}
.phase .h3 { font-size: min(calc((100vw - 2 * var(--gutter)) / 7), 8rem); font-stretch: 130%; line-height: .88; letter-spacing: -.045em; margin-bottom: .25em; }
.phase__text p:last-child { max-width: 40ch; font-size: 1.1rem; }
.phase__main { aspect-ratio: 4 / 5; }
.arch { border-radius: 999px 999px var(--radius) var(--radius); }
.phase__side { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.phase__side .photo { aspect-ratio: 1; }
.phase[data-phase="2"] .phase__time { color: #7A2410; }
.phase--night { color: #EAF1F0; }
.phase--night .phase__time { color: var(--corallo-2); }
.phase--night .h3 { color: var(--bianco); }
.phase--night { --curtain-c: var(--abisso); }
.phase--night .photo { background: var(--abisso); }

@media (min-width: 900px) {
  .phase__grid {
    grid-template-columns: 1fr .9fr .5fr;
    grid-template-areas: "time time time" "title title title" "copy main side";
    gap: 0 clamp(24px, 3vw, 48px);
    align-items: start;
  }
  .phase__text { display: contents; }
  .phase__time { grid-area: time; }
  .phase .h3 { grid-area: title; margin-bottom: 36px; font-size: min(calc((100vw - 2 * var(--gutter)) / 7.6), 9rem); }
  .phase__text p:last-child { grid-area: copy; align-self: start; }
  .phase__main { grid-area: main; aspect-ratio: 4 / 4.6; }
  .phase__side { grid-area: side; grid-template-columns: 1fr; gap: 18px; margin-top: 18%; }
  .phase:nth-of-type(even) .phase__grid { grid-template-columns: .5fr .9fr 1fr; grid-template-areas: "time time time" "title title title" "side main copy"; }
  .phase:nth-of-type(even) .phase__time, .phase:nth-of-type(even) .h3 { text-align: right; }
}

/* --- Striscia ------------------------------------------------------------ */
.marquee { position: relative; z-index: 2; overflow: hidden; background: var(--corallo); color: var(--abisso); padding: .38em 0; font-size: clamp(1.7rem, 5vw, 3.5rem); }
.marquee__track { display: flex; width: max-content; animation: marquee 32s linear infinite; }
.marquee__track span { font-family: var(--f-display); font-weight: 800; font-stretch: 140%; letter-spacing: -.02em; white-space: nowrap; line-height: 1.1; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* --- Menù ---------------------------------------------------------------- */
.menu { background: var(--sabbia-2); }
.menu__layout { display: grid; gap: clamp(40px, 6vw, 72px); align-items: start; }
@media (min-width: 960px) { .menu__layout { grid-template-columns: 1.45fr 1fr; } .cotw { position: sticky; top: calc(var(--header-h) + 24px); } }

.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.tab {
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1.5px solid var(--petrolio);
  background: transparent;
  color: var(--petrolio);
  font-weight: 600;
  font-size: .98rem;
  transition: background-color .2s, color .2s;
}
.tab:hover { background: rgba(15, 85, 96, .08); }
.tab[aria-selected="true"] { background: var(--petrolio); color: var(--bianco); }
.panel[hidden] { display: none; }
.panel { animation: panelIn .45s var(--ease); }
@keyframes panelIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.mi { display: flex; align-items: baseline; gap: 10px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.mi__name { font-weight: 600; font-size: 1.06rem; }
.mi__note { display: block; font-weight: 400; font-size: .92rem; color: var(--ink-soft); }
.mi__dots { flex: 1; min-width: 16px; border-bottom: 2px dotted rgba(15, 85, 96, .32); transform: translateY(-5px); }
.mi__price { font-family: var(--f-display); font-weight: 750; font-stretch: 110%; font-size: 1.1rem; color: var(--petrolio); white-space: nowrap; font-variant-numeric: tabular-nums; }
.mi-more { display: grid; grid-template-rows: 1fr; }
.mi-more > div { overflow: hidden; min-height: 0; }
.mi-toggle { display: none; }
.menu__note { margin-top: 20px; font-size: .92rem; color: var(--ink-soft); }

.cotw { background: var(--abisso); color: var(--bianco); border-radius: var(--radius); overflow: hidden; --curtain-c: var(--corallo); }
.cotw__photo { aspect-ratio: 4 / 3; border-radius: 0; }
.cotw__body { padding: clamp(22px, 3vw, 34px); }
.cotw__tag { display: inline-block; margin-bottom: 14px; padding: 5px 12px; border-radius: 999px; background: var(--corallo); color: var(--abisso); font-weight: 700; font-size: .88rem; }
.cotw__name { font-family: var(--f-display); font-weight: 800; font-stretch: 120%; font-size: clamp(1.9rem, 3.4vw, 2.6rem); line-height: .98; letter-spacing: -.025em; margin-bottom: 12px; }
.cotw__desc { color: rgba(251, 248, 242, .82); }
.cotw__price { margin: 0; font-family: var(--f-display); font-weight: 800; font-stretch: 120%; font-size: 2.4rem; color: var(--corallo-2); }

/* --- Eventi -------------------------------------------------------------- */
.events__head strong { color: var(--petrolio); }

.laurea {
  display: grid;
  background: var(--abisso);
  color: var(--bianco);
  border-radius: var(--radius);
  overflow: hidden;
  --curtain-c: var(--sabbia);
}
.laurea__photo { border-radius: 0; aspect-ratio: 4 / 3; }
.laurea__body { padding: clamp(26px, 5vw, 56px); }
.laurea__title { font-family: var(--f-display); font-weight: 850; font-stretch: 135%; font-size: clamp(3.2rem, 9vw, 6.4rem); line-height: .86; letter-spacing: -.045em; margin-bottom: 22px; }
.laurea__offer {
  display: flex; gap: 14px; align-items: center;
  margin-bottom: 26px;
  padding: 16px 18px;
  border-radius: var(--radius);
  background: rgba(169, 201, 143, .12);
  box-shadow: inset 0 0 0 1.5px rgba(169, 201, 143, .5);
  font-size: clamp(1.05rem, 1.7vw, 1.22rem);
  font-weight: 650;
  line-height: 1.4;
}
.laurea__laurel { width: 46px; height: 46px; flex: none; color: var(--alloro); }
.laurea .checks li { color: rgba(251, 248, 242, .88); }
.laurea .price { color: var(--bianco); }
.laurea .price strong { color: var(--sabbia); }
.laurea__actions { margin-top: 26px; }
@media (min-width: 900px) {
  .laurea { grid-template-columns: 1.05fr 1fr; }
  .laurea__photo { aspect-ratio: auto; min-height: 560px; }
}

.checks { display: grid; gap: 8px; margin-bottom: 18px; }
.checks li { position: relative; padding-left: 28px; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .35em; width: 18px; height: 18px; border-radius: 50%;
  background: var(--corallo) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4L18 8' fill='none' stroke='%230A3540' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 13px no-repeat;
}
.price { margin: 0; font-size: 1rem; color: var(--ink-soft); }
.price strong { font-family: var(--f-display); font-weight: 800; font-stretch: 115%; font-size: 1.7rem; color: var(--petrolio); margin-inline: 2px; }

.ev-grid { display: grid; gap: 20px; margin-top: 20px; }
.ev { display: flex; flex-direction: column; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); }
.ev .photo { aspect-ratio: 16 / 10; border-radius: 0; }
.ev__body { display: flex; flex-direction: column; flex: 1; padding: 22px 22px 24px; }
.ev__title { font-family: var(--f-display); font-weight: 800; font-stretch: 115%; font-size: 1.55rem; line-height: 1.02; letter-spacing: -.02em; margin-bottom: 14px; }
.ev .checks { font-size: .98rem; }
.ev__foot { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; padding-top: 10px; }
@media (min-width: 640px) {
  .ev-grid { grid-template-columns: repeat(2, 1fr); }
  .ev-grid > :last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (min-width: 1000px) {
  .ev-grid { grid-template-columns: repeat(6, 1fr); }
  .ev-grid > * { grid-column: span 2; }
  .ev-grid > :nth-child(-n+2) { grid-column: span 3; }
  .ev-grid > :last-child:nth-child(odd) { grid-column: span 2; }
}

.packages { margin-top: clamp(80px, 10vw, 128px); }
.packages__head { max-width: 640px; margin-bottom: 32px; }
.packages__head p { color: var(--ink-soft); }
.pk-grid { display: grid; gap: 20px; align-items: stretch; }
@media (min-width: 900px) { .pk-grid { grid-template-columns: repeat(3, 1fr); } }
.pk { position: relative; display: flex; flex-direction: column; padding: 30px 26px; border-radius: var(--radius); background: var(--sabbia-2); overflow: hidden; }
.pk__name { font-family: var(--f-display); font-weight: 800; font-stretch: 115%; font-size: 1.6rem; line-height: 1; letter-spacing: -.02em; margin-bottom: 14px; }
.pk__price { margin-bottom: 12px; font-size: .98rem; color: var(--ink-soft); }
.pk__price strong { display: block; font-family: var(--f-display); font-weight: 850; font-stretch: 125%; font-size: 3.4rem; line-height: 1; letter-spacing: -.04em; color: var(--petrolio); }
.pk__desc { font-weight: 550; }
.pk .checks { margin-bottom: 26px; font-size: .98rem; }
.pk .btn { margin-top: auto; }
.pk--hot { background: var(--petrolio); color: var(--bianco); padding-top: 46px; }
.pk--hot::before { /* righe delle cabine al mare */
  content: ""; position: absolute; inset: 0 0 auto; height: 14px;
  background: repeating-linear-gradient(90deg, var(--bianco) 0 14px, var(--corallo) 14px 28px);
}
.pk--hot .pk__price, .pk--hot .checks li { color: rgba(251, 248, 242, .88); }
.pk--hot .pk__price strong { color: var(--sabbia); }
.pk__badge { align-self: flex-start; margin-bottom: 14px; padding: 4px 12px; border-radius: 999px; background: var(--corallo); color: var(--abisso); font-weight: 700; font-size: .85rem; }
.pk--hot .btn--outline { color: var(--bianco); box-shadow: inset 0 0 0 1.5px var(--bianco); }
.pk--hot .btn--outline:hover { background: var(--bianco); color: var(--petrolio); }

/* --- Serate -------------------------------------------------------------- */
.nights { background: var(--notte); color: var(--bianco); --curtain-c: var(--corallo); }
.nights .lead { color: rgba(251, 248, 242, .75); }
.nights__list { display: grid; gap: 24px; }
@media (min-width: 760px) { .nights__list { grid-template-columns: repeat(3, 1fr); } }
.night { display: flex; flex-direction: column; }
.night .photo { aspect-ratio: 4 / 3; }
.night__date {
  position: absolute; left: 14px; bottom: 14px; z-index: 3;
  display: grid; justify-items: center;
  min-width: 72px; padding: 8px 10px 10px;
  border-radius: var(--radius);
  background: var(--corallo); color: var(--abisso);
  line-height: 1;
}
.night__dow { font-size: .85rem; font-weight: 700; }
.night__day { font-family: var(--f-display); font-weight: 850; font-stretch: 120%; font-size: 2.2rem; letter-spacing: -.03em; margin: 2px 0; }
.night__mon { font-size: .85rem; font-weight: 700; }
.night__body { padding-top: 18px; }
.night__time { margin-bottom: 4px; color: var(--corallo-2); font-weight: 650; }
.night__title { font-family: var(--f-display); font-weight: 800; font-stretch: 115%; font-size: 1.6rem; line-height: 1.02; letter-spacing: -.02em; margin-bottom: 10px; }
.night__desc { color: rgba(251, 248, 242, .78); }
.night__entry { margin: 0; font-size: .92rem; color: var(--sabbia); }

/* --- Preventivo ---------------------------------------------------------- */
.quote { background: var(--petrolio); color: var(--bianco); }
.quote .lead { color: rgba(251, 248, 242, .82); }
.quote__grid { display: grid; gap: clamp(36px, 5vw, 72px); align-items: start; }
@media (min-width: 960px) { .quote__grid { grid-template-columns: .9fr 1.1fr; } .quote__intro { position: sticky; top: calc(var(--header-h) + 32px); } }
.quote__alt { margin: 32px 0 14px; font-weight: 650; }
.quote__btns { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 559px) { .quote__btns .btn { flex: 1 1 100%; } }

.form { background: var(--bianco); color: var(--ink); border-radius: 10px; padding: clamp(22px, 4vw, 40px); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .45); }
.field { margin-bottom: 18px; }
.field-row { display: grid; gap: 0 16px; }
@media (min-width: 560px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field label { display: block; margin-bottom: 6px; font-weight: 600; font-size: .96rem; }
.opt { font-weight: 400; color: var(--ink-soft); }
.field input:not([type="checkbox"]), .field select, .field textarea {
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  border: 1.5px solid #C5D3D3;
  border-radius: var(--radius);
  background: #fff;
  font-size: 16px;
  line-height: 1.3;
  transition: border-color .2s, box-shadow .2s;
}
.field select {
  appearance: none;
  padding-right: 42px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%230F5560' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right 14px center / 18px no-repeat;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--petrolio); box-shadow: 0 0 0 4px rgba(15, 85, 96, .15); }
.field input[type="date"] { -webkit-appearance: none; appearance: none; display: block; }
.field input[type="date"]::-webkit-date-and-time-value { text-align: left; }
.field__err { margin: 6px 0 0; font-size: .9rem; font-weight: 600; color: var(--corallo-testo); min-height: 0; }
.field__err:empty { display: none; }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: var(--corallo-testo); }
.field--check { display: grid; grid-template-columns: 24px 1fr; gap: 4px 12px; align-items: start; margin-top: 6px; }
.field--check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--petrolio); }
.field--check label { font-weight: 400; font-size: .95rem; margin: 0; }
.field--check .field__err { grid-column: 2; }
.hp { position: absolute; left: -9999px; }
.form .btn--block { margin-top: 8px; min-height: 58px; font-size: 1.08rem; }
.form .btn[disabled] { opacity: .7; cursor: progress; }
.form__msg { margin: 16px 0 0; }
.form__msg:empty { display: none; }
.form__msg { padding: 14px 16px; border-radius: var(--radius); font-weight: 550; }
.form__msg.is-ok { background: #E3F3EA; color: #145238; }
.form__msg.is-demo { background: var(--sabbia-2); color: var(--ink); }
.form__msg.is-err { background: #FCE8E2; color: #8E2A12; }

/* --- FAQ ----------------------------------------------------------------- */
.faq__grid { display: grid; gap: 12px 72px; }
@media (min-width: 960px) { .faq__grid { grid-template-columns: .8fr 1.2fr; align-items: start; } }
.acc { border-bottom: 1px solid var(--line); }
.acc:first-child { border-top: 1px solid var(--line); }
.acc__btn {
  display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 18px;
  padding: 22px 0; border: 0; background: none; text-align: left;
  font-family: var(--f-display); font-weight: 700; font-stretch: 105%; font-size: clamp(1.12rem, 1.8vw, 1.3rem); line-height: 1.25;
}
.acc__btn:hover { color: var(--petrolio); }
.acc__icon { position: relative; width: 34px; height: 34px; flex: none; border-radius: 50%; background: var(--sabbia-2); transition: background-color .25s, transform .4s var(--ease); }
.acc__icon::before, .acc__icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 2px; margin: -1px 0 0 -7px; background: var(--petrolio); border-radius: 2px; transition: transform .35s var(--ease); }
.acc__icon::after { transform: rotate(90deg); }
.acc__btn[aria-expanded="true"] .acc__icon { background: var(--corallo); transform: rotate(180deg); }
.acc__btn[aria-expanded="true"] .acc__icon::after { transform: rotate(0); }
.acc__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s var(--ease); }
.acc__panel > div { overflow: hidden; }
.acc__panel p { margin: 0; padding: 0 48px 24px 0; color: var(--ink-soft); max-width: 62ch; }
.acc.is-open .acc__panel { grid-template-rows: 1fr; }

/* --- Galleria ------------------------------------------------------------ */
.gallery { background: var(--sabbia-2); }
.gal { display: grid; grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; gap: 10px; }
.gal__item--wide { grid-column: span 2; }
.gal__item--tall { grid-row: span 2; }
@media (min-width: 760px) { .gal { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 210px; gap: 14px; } }
.gal__btn { position: relative; display: block; width: 100%; height: 100%; padding: 0; border: 0; border-radius: var(--radius); overflow: hidden; background: var(--sabbia); cursor: zoom-in; }
.gal__btn img { width: 100%; height: 100%; object-fit: cover; object-position: 45% 50%; transition: transform .8s var(--ease); }
.gal__btn:hover img { transform: scale(1.06); }

.lightbox {
  width: 100%; height: 100%; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0;
  background: #04141B;
  color: var(--bianco);
  overscroll-behavior: contain;
}
.lightbox[open] { display: grid; place-items: center; animation: lbIn .3s ease; }
.lightbox::backdrop { background: transparent; }
@keyframes lbIn { from { opacity: 0; } to { opacity: 1; } }
.lightbox__fig { margin: 0; display: grid; justify-items: center; gap: 12px; padding: 64px 12px 72px; touch-action: pan-y; }
.lightbox__fig img { max-width: min(94vw, 1200px); max-height: calc(100dvh - 170px); width: auto; height: auto; object-fit: contain; border-radius: 4px; user-select: none; -webkit-user-drag: none; }
.lightbox__fig figcaption { text-align: center; font-size: .95rem; color: rgba(251, 248, 242, .8); padding-inline: 12px; }
.lightbox__btn {
  position: fixed; display: grid; place-items: center;
  width: 52px; height: 52px; border-radius: 50%; border: 0;
  background: rgba(251, 248, 242, .14); color: var(--bianco);
  transition: background-color .2s;
}
.lightbox__btn:hover { background: rgba(251, 248, 242, .28); }
.lightbox__close { top: max(12px, env(safe-area-inset-top)); right: 12px; }
.lightbox__prev { left: 12px; top: 50%; translate: 0 -50%; }
.lightbox__next { right: 12px; top: 50%; translate: 0 -50%; }
.lightbox__count { position: fixed; top: max(24px, env(safe-area-inset-top)); left: 20px; margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
@media (max-width: 699px) {
  .lightbox__prev, .lightbox__next { top: auto; bottom: max(14px, env(safe-area-inset-bottom)); translate: none; }
  .lightbox__prev { left: calc(50% - 64px); }
  .lightbox__next { right: calc(50% - 64px); }
}

/* --- Recensioni ---------------------------------------------------------- */
.rv-grid { display: grid; gap: 20px; }
@media (min-width: 900px) { .rv-grid { grid-template-columns: repeat(3, 1fr); } }
.rv { margin: 0; padding: 30px 28px 26px; border-radius: var(--radius); background: var(--sabbia-2); display: flex; flex-direction: column; }
.rv::before { content: "“"; font-family: var(--f-display); font-weight: 800; font-size: 4.2rem; line-height: .6; color: var(--corallo); height: .45em; }
.rv p { font-size: 1.08rem; line-height: 1.6; }
.rv footer { margin-top: auto; font-weight: 650; color: var(--petrolio); }

/* --- Seguici e social ---------------------------------------------------- */
.follow { background: var(--abisso); color: var(--bianco); }
.follow .lead { color: rgba(251, 248, 242, .8); }
.follow .lead strong { color: var(--sabbia); }
.follow__inner > * { max-width: 900px; }
.socials { display: flex; flex-wrap: wrap; gap: 10px; }
.socials--big { margin-top: 30px; gap: 12px; }
.soc {
  --brand: #fff;
  position: relative; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-width: 48px; min-height: 48px;
  border-radius: 999px;
  color: var(--bianco);
  text-decoration: none;
  box-shadow: inset 0 0 0 1.5px rgba(251, 248, 242, .35);
  transition: color .25s, box-shadow .25s, transform .25s var(--ease);
}
.socials--big .soc { min-height: 56px; padding: 0 22px 0 18px; font-weight: 650; }
.soc::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: var(--brand); opacity: 0; transition: opacity .25s; }
.soc:hover, .soc:focus-visible { box-shadow: none; transform: translateY(-2px); }
.soc:hover::before, .soc:focus-visible::before { opacity: 1; }
.soc--instagram { --brand: radial-gradient(circle at 30% 107%, #FDF497 0%, #FDF497 5%, #FD5949 45%, #D6249F 60%, #285AEB 90%); }
.soc--facebook { --brand: #1877F2; }
.soc--tiktok { --brand: #000; }
.soc--tiktok:hover, .soc--tiktok:focus-visible { box-shadow: -2px -2px 0 #25F4EE, 2px 2px 0 #FE2C55; }
.soc--whatsapp { --brand: #25D366; }
.soc--whatsapp:hover, .soc--whatsapp:focus-visible { color: #06301A; }

/* --- Contatti ------------------------------------------------------------ */
.contact__grid { display: grid; gap: clamp(36px, 5vw, 64px); }
@media (min-width: 960px) { .contact__grid { grid-template-columns: .9fr 1.1fr; align-items: start; } }
.contact__status { margin-bottom: 18px; }
.hours { width: 100%; max-width: 440px; border-collapse: collapse; margin-bottom: 28px; font-variant-numeric: tabular-nums; }
.hours th, .hours td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line); font-weight: 400; }
.hours td { text-align: right; }
.hours tr.is-today th, .hours tr.is-today td { font-weight: 700; color: var(--petrolio); background: var(--sabbia-2); }
.contact__list { display: grid; gap: 14px; margin: 0; }
.contact__list dt { font-size: .9rem; color: var(--ink-soft); }
.contact__list dd { margin: 0; font-size: 1.12rem; font-weight: 600; }
.contact__list a { text-decoration-color: var(--corallo); text-underline-offset: 4px; text-decoration-thickness: 2px; }
.map { border-radius: var(--radius); overflow: hidden; background: var(--sabbia-2); height: clamp(320px, 75vw, 520px); }
.map iframe { display: block; width: 100%; height: 100%; border: 0; }

/* --- Footer -------------------------------------------------------------- */
.footer { background: var(--notte); color: rgba(251, 248, 242, .78); padding: 64px 0 28px; font-size: .96rem; }
.footer__grid { display: grid; gap: 36px; padding-bottom: 36px; border-bottom: 1px solid rgba(251, 248, 242, .12); }
@media (min-width: 900px) { .footer__grid { grid-template-columns: 1.4fr 1fr auto; align-items: start; } }
.brand--footer { color: var(--bianco); margin-bottom: 16px; }
.footer__brand p { max-width: 40ch; }
.footer__nav { display: grid; grid-template-columns: repeat(2, max-content); gap: 10px 36px; }
.footer__nav a { text-decoration: none; padding: 4px 0; }
.footer__nav a:hover { color: var(--corallo-2); }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 22px; font-size: .88rem; }
.footer__bottom p { margin: 0; }

/* --- Barra fissa telefono + torna su ------------------------------------- */
.dock { display: none; }
@media (max-width: 899px) {
  body { padding-bottom: calc(78px + env(safe-area-inset-bottom)); }
  /* Barra fissa: sfondo pieno, nessun backdrop-filter e forma sempre uguale
     (su iPhone il blur e i cambi di layout durante lo scorrimento la facevano staccare dal fondo) */
  .dock {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
    display: grid; grid-template-columns: 1fr 56px 56px; gap: 10px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: var(--bianco);
    box-shadow: 0 -1px 0 var(--line), 0 -10px 30px -18px rgba(0, 0, 0, .35);
    transform: translate3d(0, 0, 0);
  }
  .dock .btn { min-height: 56px; padding: 0 12px; font-size: 1rem; }
  .dock .btn--wa, .dock__top { padding: 0; }
  .dock .btn--wa span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .dock__top { display: grid; place-items: center; min-height: 56px; border: 0; border-radius: 999px; background: var(--petrolio); color: var(--bianco); }
  .dock__top:active { transform: scale(.97); }
  body.no-scroll .dock { visibility: hidden; }
}
@media (min-width: 600px) and (max-width: 899px) {
  .dock { grid-template-columns: 1fr auto 56px; }
  .dock .btn--wa { padding: 0 22px; }
  .dock .btn--wa span { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
}

.totop {
  position: fixed; right: 16px; bottom: 20px; z-index: 89;
  display: grid; place-items: center;
  width: 50px; height: 50px; border: 0; border-radius: 50%;
  background: var(--petrolio); color: var(--bianco);
  box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .5);
  opacity: 0; visibility: hidden; transform: translateY(14px);
  transition: opacity .3s, transform .35s var(--ease), visibility 0s .35s, background-color .2s;
}
.totop:hover { background: var(--abisso); }
.totop.is-visible { opacity: 1; visibility: visible; transform: none; transition: opacity .3s, transform .35s var(--ease), background-color .2s; }
/* sul telefono il "torna su" è il terzo pulsante fisso della barra in basso */
@media (max-width: 899px) { .totop { display: none; } }

/* --- Pagine legali ------------------------------------------------------- */
.legal { padding: calc(var(--header-h) + 48px) 0 80px; }
.legal .wrap { max-width: 760px; }
.legal h1 { font-family: var(--f-display); font-weight: 800; font-stretch: 115%; font-size: clamp(2.2rem, 6vw, 3.6rem); line-height: 1; letter-spacing: -.025em; margin-bottom: 24px; }
.legal h2 { font-family: var(--f-display); font-weight: 750; font-stretch: 110%; font-size: 1.35rem; margin: 36px 0 10px; }
.legal p, .legal li { color: var(--ink-soft); }
.legal ul { list-style: disc; padding-left: 1.2em; margin-bottom: 1em; }
.legal .note { padding: 14px 16px; border-radius: var(--radius); background: var(--sabbia-2); color: var(--ink); }
.header--static { position: sticky; background: var(--bianco); color: var(--ink); box-shadow: 0 1px 0 var(--line); }
.header--static::before { display: none; }
.header--static .brand__mark { color: var(--petrolio); }
.header--static .btn { margin-left: auto; }

/* --- Riduci movimento ---------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-split] .w > span, .js [data-stagger] > * { transform: none; opacity: 1; }
  .js .curtain::after { display: none; }
  .js .curtain img, .hero__media img, .photo:hover img, .gal__btn:hover img { transform: none; }
  .marquee__track { flex-wrap: wrap; width: auto; justify-content: center; }
  .marquee__track span:nth-child(n+2) { display: none; }
}

/* --- Ritocchi per telefono ----------------------------------------------- */
@media (max-width: 559px) {
  .hero__name { font-stretch: 112%; font-size: calc((100vw - 2 * var(--gutter)) / 6.6); }
}
@media (max-width: 899px) {
  .day__sun { opacity: .55; }
  .day.is-night .day__sun { opacity: .2; }
}
@media (min-width: 600px) and (max-width: 899px) {
  .phase__grid { grid-template-columns: 1.5fr 1fr; align-items: end; }
  .phase__text { grid-column: 1 / -1; }
  .phase__side { grid-template-columns: 1fr; }
}

/* --- Telefono: pagina più corta (computer e tablet invariati) ----------- */
@media (max-width: 759px) {
  .section { padding-block: 64px; }
  .about { padding-top: 48px; }
  .section__head { margin-bottom: 28px; }
  .h2 { margin-bottom: .35em; }
  .stats { margin-top: 40px; }
  .stat { padding: 14px 0 6px; }
  .stat__num { font-size: 3rem; }

  .day__intro { padding-top: 64px; }
  .phase { min-height: 0; padding-block: 44px; }
  .phase__grid { grid-template-columns: 1.6fr 1fr; gap: 10px; align-items: stretch; }
  .phase__text { grid-column: 1 / -1; margin-bottom: 8px; }
  .phase__main { aspect-ratio: 3 / 4; }
  .phase__side { grid-template-columns: 1fr; grid-template-rows: 1fr 1fr; gap: 10px; }
  .phase__side .photo { aspect-ratio: auto; height: 100%; }
  .photo--tall { aspect-ratio: 4 / 3; }

  /* menù: "Vedi tutto" */
  .mi-more { grid-template-rows: 0fr; transition: grid-template-rows .5s var(--ease); }
  .mi-more.is-open { grid-template-rows: 1fr; }
  .mi-more .mi { opacity: 0; transform: translateY(-8px); transition: opacity .35s, transform .45s var(--ease); }
  .mi-more.is-open .mi { opacity: 1; transform: none; }
  .mi-more.is-open .mi:nth-child(2) { transition-delay: .05s; }
  .mi-more.is-open .mi:nth-child(3) { transition-delay: .1s; }
  .mi-more.is-open .mi:nth-child(4) { transition-delay: .15s; }
  .mi-toggle { display: inline-flex; margin-top: 18px; min-height: 48px; }
  .menu__layout { gap: 40px; }

  /* eventi e pacchetti: carosello orizzontale */
  .ev-grid, .pk-grid, .nights__list, .rv-grid {
    display: flex;
    gap: 14px;
    margin-inline: calc(-1 * var(--gutter));
    padding: 4px var(--gutter) 6px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    align-items: stretch;
  }
  .ev-grid::-webkit-scrollbar, .pk-grid::-webkit-scrollbar, .nights__list::-webkit-scrollbar, .rv-grid::-webkit-scrollbar { display: none; }
  .ev-grid > *, .pk-grid > *, .nights__list > *, .rv-grid > * { flex: 0 0 86%; scroll-snap-align: start; }
  .nights .dot::before { background: rgba(251, 248, 242, .3); }
  .nights .dot[aria-current="true"]::before { background: var(--corallo); }
  .packages { margin-top: 64px; }
  .packages__head { margin-bottom: 20px; }

  .dots { display: flex; justify-content: center; gap: 4px; margin-top: 12px; }
  .dot { width: 40px; height: 44px; padding: 0; border: 0; background: none; display: grid; place-items: center; }
  .dot::before { content: ""; width: 9px; height: 9px; border-radius: 999px; background: rgba(15, 85, 96, .28); transition: width .3s var(--ease), background-color .3s; }
  .dot[aria-current="true"]::before { width: 26px; background: var(--petrolio); }

  .rv { padding: 24px 22px 20px; }
  .contact__grid { gap: 32px; }
  .footer { padding-top: 48px; }
}
@media (min-width: 760px) { .dots { display: none; } }
