/* ===========================================================
   La Scialuppa — Stabilimento, Ristorante & Eventi · Fregene
   Modern restyle · 2026
   =========================================================== */

:root {
  color-scheme: light;   /* sito sempre in tema chiaro, anche con dark mode del telefono */
  --navy: #0e2c47;
  --navy-soft: #16466e;
  --sea: #2a86c4;
  --sea-light: #6fb9e3;
  --sand: #f6f0e6;
  --cream: #fbf8f2;
  --gold: #c9a24b;
  --gold-light: #e3c987;
  --eyebrow: #9c7a1c;        /* darker ochre — passes contrast on light bg */
  --ink: #1c2b36;
  --muted: #586a76;          /* darkened for ≥4.5:1 contrast on cream */
  --white: #ffffff;
  --focus: #2a86c4;          /* sea-blue keyboard focus ring */

  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Manrope", "Helvetica Neue", Arial, sans-serif;

  --shadow-sm: 0 4px 18px rgba(14, 44, 71, .08);
  --shadow-md: 0 18px 50px rgba(14, 44, 71, .14);
  --radius: 18px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
/* reserve the scrollbar gutter only on desktop (classic scrollbars); on mobile
   the bars are overlay, so no gutter = hero reaches the screen edge */
@media (min-width: 821px) { html { scrollbar-gutter: stable; } }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;   /* guard orizzontale di default (non taglia in verticale) */
}
/* Homepage: niente clip sul body (il controllo orizzontale resta su .site-reveal),
   così l'hero può estendersi sotto la notch.
   In SAFARI la zona dietro la status bar mostra lo sfondo del body: gli metto la
   stessa immagine dell'hero, dimensionata sull'ALTEZZA del viewport (auto/100lvh,
   non "cover") così evito il bug di zoom di iOS. Riempie la striscia in alto col cielo. */
body.home {
  overflow-x: visible;
  /* In Safari la striscia dietro la status bar mostra lo sfondo del body: lo tengo
     bianco/crema come richiesto. In web app (standalone) il layer fisso mette
     comunque l'immagine vera anche lì. */
  background: var(--cream);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a, button, .btn, .menu__tab, .nav__toggle { touch-action: manipulation; }

/* Accessibility: visible keyboard focus (mouse clicks stay clean) */
a:focus-visible,
button:focus-visible,
.btn:focus-visible,
.menu__tab:focus-visible,
.nav__cta:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}
/* on dark sections use a lighter ring for contrast */
.menu .menu__tab:focus-visible,
.footer a:focus-visible,
.split--dark a:focus-visible { outline-color: var(--sea-light); }

/* "Salta al contenuto": resta fuori dallo schermo finche' non riceve il focus
   da tastiera, poi scende in alto a sinistra. Serve a chi naviga col tasto Tab
   per non dover attraversare tutto il menu su ogni pagina.
   z-index alto: deve stare sopra la barra di navigazione, che e' fissa. */
.skip-link {
  position: fixed; top: 0; left: 1rem; z-index: 300;
  transform: translateY(-120%);
  background: var(--navy); color: #fff;
  padding: .75rem 1.35rem; border-radius: 0 0 10px 10px;
  font-family: var(--font-body); font-weight: 700; font-size: .9rem;
  text-decoration: none; transition: transform .18s var(--ease);
}
.skip-link:focus { transform: translateY(0); color: #fff; }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.12; color: var(--navy); }

.container { width: min(1180px, 92%); margin-inline: auto; }

.eyebrow {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: .32em;
  font-size: .72rem;
  font-weight: 700;
  color: var(--eyebrow);
  margin-bottom: 1rem;
  display: inline-block;
}
/* eyebrows on dark backgrounds stay light/gold */
.split--dark .eyebrow { color: var(--gold-light); }

/* Anchor offset so sections don't land under the fixed navbar */
section[id], .legal [id] { scroll-margin-top: 96px; }

.section { padding: clamp(4.5rem, 9vw, 8rem) 0; }
.section-head { max-width: 640px; margin-bottom: 3.5rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h1, .section-head h2 { font-size: clamp(2.3rem, 5vw, 3.6rem); }
.section-head p { color: var(--muted); margin-top: 1rem; font-size: 1.08rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .95rem 2.1rem; border-radius: 100px;
  font-weight: 700; font-size: .92rem; letter-spacing: .02em;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .3s;
  cursor: pointer; border: 1.5px solid transparent;
}
.btn-primary { background: var(--gold); color: var(--navy); box-shadow: 0 10px 30px rgba(201,162,75,.35); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(201,162,75,.45); }
.btn-ghost { border-color: rgba(255,255,255,.6); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.12); transform: translateY(-3px); }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
/* Risposta immediata al tocco/click. Senza questa, tra il dito e la comparsa
   della pagina nuova non succede NIENTE di visibile: chi tocca crede di aver
   mancato il tasto e tocca una seconda volta. Serve soprattutto sui telefoni,
   dove non esiste l'effetto :hover a fare da conferma.
   La transizione qui e' volutamente cortissima: deve sembrare istantanea. */
.btn:active { transform: scale(.965); transition-duration: .06s; }
.btn-primary:active { box-shadow: 0 5px 16px rgba(201,162,75,.5); }
.btn-ghost:active { background: rgba(255,255,255,.2); }
.btn-dark:active { box-shadow: none; }
.nav__brand:active .nav__mark { transform: scale(.93); transition-duration: .06s; }
.nav__cta:active { transform: scale(.96); transition-duration: .06s; }

/* Glow pulsante sotto il "Prenota" dell'hero */
@keyframes prenotaGlow {
  0%, 100% { box-shadow: 0 4px 14px rgba(201,162,75,.14); }
  50%      { box-shadow: 0 6px 22px rgba(201,162,75,.40); }
}
.hero__actions .btn-primary { animation: prenotaGlow 1.9s ease-in-out infinite; }
.hero__actions .btn-primary:hover { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {
  .hero__actions .btn-primary { animation: none; }
}

/* ===========================================================
   NAVBAR
   =========================================================== */
.nav {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 100;
  display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center;
  column-gap: clamp(2rem, 5vw, 5rem);
  padding: 1.1rem clamp(1.2rem, 5vw, 3.5rem);
  /* clear the notch / status bar (safe area) without affecting desktop */
  padding-top: max(1.1rem, env(safe-area-inset-top));
  padding-left: max(clamp(1.2rem, 5vw, 3.5rem), env(safe-area-inset-left));
  padding-right: max(clamp(1.2rem, 5vw, 3.5rem), env(safe-area-inset-right));
  transition: transform .45s var(--ease), background .4s var(--ease), padding .4s var(--ease), box-shadow .4s;
}
/* Nobu-style auto-hide: scende quando torni su, si nasconde quando scorri giù.
   NB: il transform si applica SOLO quando il drawer è chiuso (vedi JS),
   così la nav non diventa containing-block del drawer fixed. */
.nav--hidden { transform: translateY(-100%); }
/* Blur lives on a pseudo-element so .nav does NOT become a containing block
   for the fixed mobile drawer (that was causing the scroll bug). */
.nav::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(251, 248, 242, .92);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  opacity: 0; transition: opacity .4s var(--ease);
}
.nav.scrolled::before { opacity: 1; }
.nav.scrolled {
  box-shadow: var(--shadow-sm);
  padding-top: max(.65rem, env(safe-area-inset-top));
  padding-bottom: .65rem;
}
.nav__brand { display: flex; align-items: center; gap: .7rem; font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; color: #fff; transition: color .4s; }
.nav__brand span { font-family: "Dancing Script", cursive; font-weight: 700; font-size: 1.72rem; line-height: 1; padding-bottom: 3px; }
.nav.scrolled .nav__brand { color: var(--navy); }
.nav__mark { width: 48px; height: 48px; object-fit: contain; filter: drop-shadow(0 4px 10px rgba(0,0,0,.28)); transition: transform .5s var(--ease); }
.nav__brand:hover .nav__mark { transform: rotate(-6deg) scale(1.06); }
.nav.scrolled .nav__mark { filter: drop-shadow(0 3px 8px rgba(14,44,71,.22)); }
.nav__links { display: flex; align-items: center; justify-content: space-between; gap: clamp(.8rem, 1.2vw, 1.7rem); min-width: 0; }
.nav__tagline, .nav__msocial, .nav__drawer-head, .nav__wave { display: none; }  /* drawer-only, shown on mobile */
.nav__links a { font-size: .9rem; font-weight: 600; color: rgba(255,255,255,.92); position: relative; transition: color .3s; white-space: nowrap; }
.nav.scrolled .nav__links a { color: var(--ink); }
.nav__links a::after { content: ""; position: absolute; left: 0; bottom: -6px; width: 0; height: 2px; background: var(--gold); transition: width .3s var(--ease); }
.nav__links a:hover::after { width: 100%; }
.nav__cta { padding: .6rem 1.4rem; border: 1.5px solid var(--gold); border-radius: 100px; color: #fff !important; font-weight: 700; transition: all .3s; }
.nav.scrolled .nav__cta { color: var(--navy) !important; }
.nav__cta:hover { background: var(--gold); color: var(--navy) !important; }
.nav__cta::after { display:none; }
.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; position: relative; }
/* area cliccabile portata a 48x48: il pulsante visibile misura 42x32,
   questo strato invisibile lo estende senza spostare le tre righe */
.nav__toggle::after { content: ""; position: absolute; inset: -8px -3px; }
.nav__toggle span { width: 26px; height: 2px; background: #fff; transition: .3s; }
.nav.scrolled .nav__toggle span { background: var(--navy); }

@media (min-width: 821px) {
  .nav__links .nav__cta {
    display: inline-flex;
    align-items: center;
  }
}

/* ===========================================================
   HERO
   =========================================================== */
/* TEST: hero normale (scorre via come una sezione classica) — niente fixed.
   Serve a verificare se è il fixed-hero a confondere le barre di iOS Safari. */
.hero {
  position: relative; width: 100%;
  height: 100vh; min-height: 620px;
  display: flex; align-items: center; justify-content: center;
  text-align: center; color: #fff; overflow: hidden;
}
/* Desktop: compensa la navbar fissa così il contenuto è centrato nello spazio
   visibile sotto di essa (altrimenti risulta un po' troppo in alto). */
@media (min-width: 821px) {
  .hero { padding-top: 4.5rem; }
  /* social: colonna verticale nell'angolo in basso a sinistra dell'hero */
  .hero__social {
    position: absolute;
    left: clamp(1.5rem, 4vw, 3.5rem);
    bottom: clamp(1.5rem, 4vw, 3rem);
    flex-direction: column;
    gap: 1rem;
    margin-top: 0;
    z-index: 2;
  }
}

.site-reveal {
  position: relative;
  z-index: 1;
  margin-top: 0;
  background: var(--cream);
  overflow-x: clip;   /* blocca lo scroll orizzontale senza tagliare l'hero sopra */
}
/* Il <main> aggiunto per l'accessibilita' si e' inserito tra .site-reveal e le
   sezioni: senza il secondo selettore la prima sezione perderebbe lo spazio
   superiore. Tengo entrambi cosi' la regola vale con e senza <main>. */
.site-reveal > section:first-of-type,
.site-reveal > main > section:first-of-type { padding-top: clamp(5rem, 9vw, 8rem); }
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); animation: heroZoom 14s ease-out forwards; }
/* Homepage: layer immagine FISSO a tutto schermo. Esteso sopra (web app) e sotto. */
body.home .hero__bg {
  position: fixed; left: 0; width: 100%;
  top: calc(-1 * env(safe-area-inset-top));
  height: calc(100vh + env(safe-area-inset-top) + env(safe-area-inset-bottom) + 320px);
  height: calc(100lvh + env(safe-area-inset-top) + env(safe-area-inset-bottom) + 320px);
}
@keyframes heroZoom { to { transform: scale(1); } }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(8,28,46,.55) 0%, rgba(8,28,46,.25) 40%, rgba(8,28,46,.75) 100%);
}
.hero__inner { padding: 0 1.5rem; }
.hero__logo-wrap { margin: 0; padding: 0; line-height: 0; }
.hero__logo {
  width: clamp(300px, 50vw, 600px); height: auto;
  margin: 0 auto 1.6rem;
  object-fit: contain;
  filter: drop-shadow(0 14px 34px rgba(0, 0, 0, .55));
  animation: floatIn 1.2s var(--ease) both;
}
@keyframes floatIn { from { opacity: 0; transform: translateY(30px) scale(.92);} to {opacity:1; transform:none;} }
.hero h1 {
  color: #fff; font-size: clamp(2.8rem, 8vw, 6rem); font-weight: 600;
  letter-spacing: .01em; text-shadow: 0 4px 30px rgba(0,0,0,.4);
  animation: floatIn 1.2s var(--ease) .15s both;
}
.hero__tag {
  font-size: clamp(1rem, 2.4vw, 1.4rem); font-weight: 300; letter-spacing: .22em;
  text-transform: uppercase; margin-top: .8rem; color: rgba(255,255,255,.92);
  animation: floatIn 1.2s var(--ease) .3s both;
}
.hero__since { display:inline-block; margin-top:1.6rem; font-family:var(--font-display); font-style:italic; font-size:1.3rem; color:var(--gold-light); animation: floatIn 1.2s var(--ease) .45s both; }
.hero__actions { margin-top: 2.4rem; display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; animation: floatIn 1.2s var(--ease) .6s both; }
.hero__social { display: flex; gap: .9rem; justify-content: center; margin-top: 1.7rem; animation: floatIn 1.2s var(--ease) .75s both; }
.hero__social a { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.55); display: grid; place-items: center; transition: background .3s, border-color .3s, transform .3s; position: relative; }
/* area cliccabile portata a 48x48 senza modificare il cerchio visibile */
.hero__social a::after { content: ""; position: absolute; inset: -2px; border-radius: 50%; }
.hero__social svg { width: 20px; height: 20px; fill: #fff; transition: fill .3s; }
@media (hover: hover) { .hero__social a:hover { background: var(--gold); border-color: var(--gold); transform: translateY(-3px); } .hero__social a:hover svg { fill: var(--navy); } }
.scroll-hint {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: .5rem;
  font-size: .68rem; letter-spacing: .25em; text-transform: uppercase; color: rgba(255,255,255,.8);
  animation: floatIn 1.2s var(--ease) .9s both;
}
.scroll-hint .mouse { width: 24px; height: 38px; border: 2px solid rgba(255,255,255,.7); border-radius: 14px; position: relative; }
.scroll-hint .mouse::before { content:""; position:absolute; top:7px; left:50%; transform:translateX(-50%); width:4px; height:7px; background:#fff; border-radius:2px; animation: scrollDot 1.8s infinite; }
@keyframes scrollDot { 0%{opacity:0; transform:translate(-50%,0);} 40%{opacity:1;} 80%{opacity:0; transform:translate(-50%,12px);} 100%{opacity:0;} }

/* ===========================================================
   INTRO / ABOUT
   =========================================================== */
.intro { background: var(--cream); position: relative; }
.intro__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.intro__text h2 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); }
.intro__text p { color: var(--muted); margin-top: 1.4rem; font-size: 1.06rem; }
.intro__stats { display: flex; gap: 2.5rem; margin-top: 2.5rem; flex-wrap: wrap; }
.intro__stats .stat strong { font-family: var(--font-display); font-size: 2.6rem; color: var(--sea); display: block; line-height: 1; }
.intro__stats .stat span { font-size: .82rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.intro__media { position: relative; }
.intro__media img { border-radius: var(--radius); box-shadow: var(--shadow-md); width: 100%; height: 540px; object-fit: cover; }
.intro__media .badge {
  position: absolute; bottom: -28px; left: -28px; background: var(--navy); color: #fff;
  padding: 1.4rem 1.8rem; border-radius: var(--radius); box-shadow: var(--shadow-md); max-width: 230px;
}
.intro__media .badge strong { display: block; font-family: var(--font-display); font-size: 1.5rem; line-height: 1.1; color: var(--gold-light); margin-bottom: .2rem; }
.intro__media .badge span { display: block; font-size: .85rem; color: rgba(255,255,255,.85); }

/* ===========================================================
   CHI SIAMO / STORIA
   =========================================================== */
.about { background: var(--sand); }
.about__grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.about__media { position: relative; position: sticky; top: 110px; }
.about__media img { width: 100%; height: 560px; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow-md); filter: saturate(.92); }
.about__media .badge {
  position: absolute; bottom: -26px; left: -22px; background: var(--navy); color: #fff;
  padding: 1.3rem 1.7rem; border-radius: var(--radius); box-shadow: var(--shadow-md); max-width: 230px;
}
.about__media .badge strong { font-family: var(--font-display); font-size: 1.6rem; color: var(--gold-light); display: block; }
.about__media .badge span { font-size: .85rem; color: rgba(255,255,255,.8); }
.about__text p { color: #45525d; font-size: 1.06rem; margin-bottom: 1.15rem; }
.about__text p strong { color: var(--navy); }
.pullquote {
  font-family: var(--font-display); font-style: italic; font-size: 1.45rem; line-height: 1.4;
  color: var(--navy); border-left: 3px solid var(--gold); padding: .2rem 0 .2rem 1.3rem;
  margin: 1.8rem 0;
}
.pullquote cite {
  display: block; margin-top: .7rem; font-style: normal; font-family: var(--font-body);
  font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}

/* ===========================================================
   FEATURES / OFFERTA
   =========================================================== */
.features { background: var(--white); }
.features__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.6rem; }
.feature {
  background: var(--cream); border-radius: var(--radius); padding: 2.2rem 1.8rem;
  border: 1px solid rgba(14,44,71,.06); transition: transform .4s var(--ease), box-shadow .4s, background .4s;
}
.feature:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); background: #fff; }
.feature__icon { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 14px; background: linear-gradient(135deg, var(--sea), var(--navy)); margin-bottom: 1.2rem; }
.feature__icon svg { width: 28px; height: 28px; stroke: #fff; fill: none; stroke-width: 1.6; }
.feature h3 { font-size: 1.4rem; margin-bottom: .5rem; }
.feature p { color: var(--muted); font-size: .96rem; }

/* ===========================================================
   MENU
   =========================================================== */
.menu { background: linear-gradient(180deg, var(--navy) 0%, #0a2138 100%); color: #fff; position: relative; }
.menu .section-head h1, .menu .section-head h2 { color: #fff; }
.menu .section-head p { color: rgba(255,255,255,.7); }
.menu .eyebrow { color: var(--gold-light); }
.menu__tabs { display: flex; gap: .6rem; justify-content: center; flex-wrap: wrap; margin-bottom: 3rem; }
.menu__tab {
  padding: .7rem 1.6rem; border-radius: 100px; border: 1.5px solid rgba(255,255,255,.22);
  background: transparent; color: rgba(255,255,255,.85); font-weight: 600; font-size: .9rem;
  cursor: pointer; transition: all .3s var(--ease); font-family: var(--font-body);
}
.menu__tab:hover { border-color: var(--gold-light); }
.menu__tab.active { background: var(--gold); color: var(--navy); border-color: var(--gold); }
.menu__panel { display: none; animation: fadeUp .5s var(--ease); }
.menu__panel.active { display: block; }
.menu__list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem 3.5rem; max-width: 940px; margin-inline: auto; }
.menu__item {
  display: flex; align-items: baseline; gap: .8rem; padding-bottom: 1.1rem;
  border-bottom: 1px dashed rgba(255,255,255,.16);
}
.menu__item .name { font-family: var(--font-display); font-size: 1.35rem; color: #fff; }
.menu__item .name small { display: block; font-family: var(--font-body); font-size: .82rem; color: var(--sea-light); font-style: italic; margin-top: .15rem; }
.menu__item .dots { flex: 1; border-bottom: 1px dotted rgba(255,255,255,.25); transform: translateY(-4px); }
.menu__item .price { font-family: var(--font-body); font-weight: 700; font-size: 1.02rem; color: var(--gold-light); white-space: nowrap; letter-spacing: .01em; }
.menu__item .price small { display: block; font-weight: 500; font-size: .68rem; color: rgba(255,255,255,.55); text-align: right; letter-spacing: .04em; }
/* macro heading (es. "Dal Nord Italia") e sotto-titolo regione/categoria */
.menu__group { grid-column: 1 / -1; font-family: var(--font-display); font-size: 1.95rem; color: #fff; margin: 2.6rem 0 .2rem; letter-spacing: .01em; }
.menu__group:first-child { margin-top: 0; }
.menu__region { grid-column: 1 / -1; font-family: var(--font-display); font-style: italic; font-size: 1.35rem; color: var(--gold-light); margin: 1.7rem 0 .3rem; padding-bottom: .35rem; border-bottom: 1px solid rgba(227,201,135,.22); }
.menu__group + .menu__region { margin-top: .6rem; }
.menu__note { text-align: center; margin-top: 2.8rem; color: rgba(255,255,255,.6); font-style: italic; font-size: .95rem; }
/* mirror del gradiente per cucire menù → cantina senza stacco netto */
.cantina { background: linear-gradient(180deg, #0a2138 0%, var(--navy) 55%, #0a2138 100%); }
.cantina .section-head { max-width: 720px; margin-inline: auto; }
/* richiamo in home a Menù/Cantina */
.menu-teaser__actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-top: 2.4rem; }
/* clearance della nav fissa quando una sezione è la prima della pagina */
.section--page-top { padding-top: calc(env(safe-area-inset-top) + 7rem); }
/* fascia header scura per le pagine interne (dà contrasto alla nav e fa da titolo) */
.page-hero {
  background: linear-gradient(160deg, var(--navy) 0%, #0a2138 100%);
  color: #fff; text-align: center; position: relative; overflow: hidden;
  padding: calc(env(safe-area-inset-top) + 8rem) 1.2rem 3.4rem;
}
.page-hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.page-hero .eyebrow { color: var(--gold-light); }
.page-hero h1 { color: #fff; font-size: clamp(2.4rem, 6vw, 3.8rem); letter-spacing: -.015em; line-height: 1.05; }
.page-hero p { color: rgba(255,255,255,.72); margin: .8rem auto 0; max-width: 640px; font-size: 1.02rem; }

/* ===========================================================
   EVENTS / MATRIMONI split
   =========================================================== */
.split { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; }
.split--reverse .split__media { order: 2; }
.split__media { min-height: 480px; }
.split__media img { width: 100%; height: 100%; object-fit: cover; }
.split__body { display: flex; flex-direction: column; justify-content: center; padding: clamp(2.5rem, 6vw, 5.5rem); background: var(--sand); }
.split--dark .split__body { background: var(--navy); color: #fff; }
.split--dark .split__body h2 { color: #fff; }
.split__body h2 { font-size: clamp(2rem, 4vw, 3rem); }
.split__body p { margin-top: 1.2rem; color: var(--muted); font-size: 1.05rem; }
.split--dark .split__body p { color: rgba(255,255,255,.78); }
.split__body .btn { margin-top: 2rem; align-self: flex-start; }

/* ===========================================================
   GALLERY
   =========================================================== */
.gallery { background: var(--cream); }
.gallery__grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; gap: 1rem; }
.gallery__grid figure { overflow: hidden; border-radius: 14px; position: relative; }
.gallery__grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.gallery__grid figure:hover img { transform: scale(1.08); }
.gallery__grid .tall { grid-row: span 2; }
.gallery__grid .wide { grid-column: span 2; }

/* ===========================================================
   CONTACT
   =========================================================== */
.contact { background: var(--white); }
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); }
.contact__cards { display: grid; gap: 1.2rem; }
.contact-card { display: flex; gap: 1.2rem; padding: 1.6rem; border-radius: var(--radius); background: var(--cream); border: 1px solid rgba(14,44,71,.06); }
.contact-card__icon { flex-shrink: 0; width: 48px; height: 48px; border-radius: 12px; background: var(--navy); display: grid; place-items: center; }
.contact-card__icon svg { width: 22px; height: 22px; stroke: var(--gold-light); fill: none; stroke-width: 1.7; }
/* h3 e h4 insieme: il livello del titolo dipende da dove sta la scheda nella
   pagina (h4 nella home, sotto un h3; h3 in prenota.html, dove non c'e'
   quel livello intermedio). L'aspetto deve restare identico nei due casi. */
.contact-card h4, .contact-card h3 { font-family: var(--font-body); font-size: .78rem; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); margin-bottom: .3rem; }
.contact-card p { font-size: 1.05rem; color: var(--ink); font-weight: 600; }
.contact-card a:hover { color: var(--sea); }
.contact__map { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); min-height: 420px; }
.contact__map iframe { width: 100%; height: 100%; min-height: 420px; border: 0; }

/* ===========================================================
   FOOTER
   =========================================================== */
.footer { background: #081c2e; color: rgba(255,255,255,.72); padding: 4rem 0 2rem; }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2.5rem; padding-bottom: 3rem; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer__logo { width: 150px; height: auto; margin-bottom: 1.2rem; filter: drop-shadow(0 6px 18px rgba(0,0,0,.4)); }
.footer__brand p { font-size: .92rem; max-width: 280px; }
.footer h5 { font-family: var(--font-body); color: #fff; text-transform: uppercase; letter-spacing: .14em; font-size: .8rem; margin-bottom: 1.2rem; }
.footer ul { list-style: none; display: grid; gap: .65rem; }
.footer ul a:hover, .footer__brand a:hover { color: var(--gold-light); }
.footer ul li { font-size: .94rem; }
.footer__social { display: flex; gap: .8rem; margin-top: 1.2rem; }
.footer__social a { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,.2); display: grid; place-items: center; transition: all .3s; position: relative; }
/* area cliccabile portata a 48x48 senza modificare il cerchio visibile */
.footer__social a::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; }
.footer__social a:hover { background: var(--gold); border-color: var(--gold); }
.footer__social svg { width: 18px; height: 18px; fill: currentColor; }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; padding-top: 1.8rem; font-size: .82rem; color: rgba(255,255,255,.5); }
.footer__bottom a:hover { color: #fff; }

/* ===========================================================
   REVEAL ANIMATION
   =========================================================== */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px);} to { opacity: 1; transform: none; } }

/* ===========================================================
   RESPONSIVE
   =========================================================== */
@media (max-width: 980px) {
  .features__grid { grid-template-columns: repeat(2, 1fr); }
  .gallery__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  /* --- Hero a tutto schermo: riempie anche la zona dietro la status bar (notch).
     Tiro l'hero su di una safe-area e gli ridò la stessa altezza,
     così l'immagine del mare arriva fin sotto la notch e niente più crema. --- */
  .hero {
    /* hero alto in-flow: l'immagine (hero__bg assoluto) riempie tutta la box e
       arriva dietro la url bar in basso. 100lvh + safe-area + 120px di buffer. */
    margin-top: calc(-1 * env(safe-area-inset-top));
    height: calc(100vh + env(safe-area-inset-top) + env(safe-area-inset-bottom) + 80px);
    height: calc(100lvh + env(safe-area-inset-top) + env(safe-area-inset-bottom) + 80px);
  }

  /* --- Header attaccato in alto, stile Nobu (niente pillola).
     Trasparente sull'hero (mostra il mare anche dietro la status bar),
     crema pieno quando scorri. --- */
  .nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    column-gap: 0;
    padding: .7rem 1.1rem;
    padding-top: max(.7rem, calc(env(safe-area-inset-top) + .35rem));
    padding-left: max(1.1rem, env(safe-area-inset-left));
    padding-right: max(1.1rem, env(safe-area-inset-right));
  }
  .nav.scrolled {
    padding-top: max(.5rem, calc(env(safe-area-inset-top) + .2rem));
    padding-bottom: .5rem;
  }
  .nav__mark { width: 42px; height: 42px; }
  .nav__brand span { font-size: 1.55rem; }
  .nav__toggle { padding: 8px; margin-left: auto; }
  .nav__brand { min-width: 0; }

  /* --- Elegant mobile drawer --- */
  .nav__links {
    position: fixed; left: auto; right: 0;
    top: calc(-1 * env(safe-area-inset-top));
    bottom: calc(-1 * env(safe-area-inset-bottom));
    width: 100%;
    flex-direction: column; justify-content: flex-start; align-items: flex-start; gap: 0;
    background: var(--cream);   /* drawer chiaro: combacia con le bande crema, niente bianco visibile */
    padding: max(1.6rem, calc(env(safe-area-inset-top) + 1rem)) 2.4rem max(2.2rem, calc(env(safe-area-inset-bottom) + 1rem));
    transform: translateX(105%);
    /* visibility: il pannello chiuso era soltanto spostato fuori schermo, quindi
       restava raggiungibile col tasto Tab: chi naviga da tastiera attraversava
       una decina di link invisibili. Con visibility:hidden esce dall'ordine di
       tabulazione. Il ritardo di .55s serve a non troncare l'animazione di
       chiusura (nasconde solo quando lo scorrimento e' finito). */
    visibility: hidden;
    transition: transform .55s var(--ease), box-shadow .55s var(--ease), visibility 0s .55s;
    box-shadow: none; overflow-y: auto;
  }
  /* marine header inside the drawer */
  .nav__drawer-head {
    display: flex; align-items: center; gap: .75rem; width: 100%; order: -2;
    padding-top: .3rem;
  }
  .nav__drawer-head img { width: 48px; height: 48px; object-fit: contain; filter: drop-shadow(0 4px 10px rgba(0,0,0,.45)); }
  .nav__drawer-name { display: block; font-family: "Dancing Script", cursive; font-weight: 700; font-size: 1.75rem; color: var(--navy); line-height: 1; text-align: center; }
  .nav__drawer-byline { display: block; font-family: "Dancing Script", cursive; font-weight: 600; font-size: 1.02rem; color: var(--gold); line-height: 1; text-align: center; margin-top: .1rem; }
  .nav__drawer-sub { display: block; font-size: .6rem; letter-spacing: .26em; text-transform: uppercase; color: var(--sea); margin-top: .4rem; text-align: center; }
  .nav__wave { display: block; order: -1; width: 100%; height: 12px; margin: .9rem 0 1.4rem; color: var(--gold); opacity: .55; }
  .nav__wave svg { width: 100%; height: 100%; display: block; }
  .nav__links a:first-of-type { } /* keep first link spacing */
  .nav__links.open { transform: translateX(0); visibility: visible; transition: transform .55s var(--ease), box-shadow .55s var(--ease), visibility 0s 0s; box-shadow: -24px 0 70px rgba(14,44,71,.18); }
  .nav__links a {
    color: var(--navy); font-family: var(--font-display); font-weight: 500; font-size: 1.5rem;
    padding: .42rem 0; width: 100%;
    opacity: 0; transform: translateX(22px);
  }
  /* keep drawer links white when the bar is in scrolled state (color only,
     so it never overrides the open-state opacity) */
  .nav.scrolled .nav__links a { color: var(--navy); }
  .nav__links.open a { opacity: 1; transform: none; transition: opacity .5s var(--ease), transform .5s var(--ease); }
  .nav__links.open a:nth-child(1){ transition-delay:.10s } .nav__links.open a:nth-child(2){ transition-delay:.15s }
  .nav__links.open a:nth-child(3){ transition-delay:.20s } .nav__links.open a:nth-child(4){ transition-delay:.25s }
  .nav__links.open a:nth-child(5){ transition-delay:.30s } .nav__links.open a:nth-child(6){ transition-delay:.35s }
  .nav__links.open a:nth-child(7){ transition-delay:.40s } .nav__links.open a:nth-child(8){ transition-delay:.45s }
  .nav__links.open a:nth-child(9){ transition-delay:.50s } .nav__links.open a:nth-child(10){ transition-delay:.55s }
  .nav__links a::after { bottom: 4px; background: var(--gold); }
  /* footer group of the drawer */
  .nav__links .nav__lang {
    position: static; transform: none;
    order: 2; width: auto; align-self: flex-start;
    margin-top: auto; padding: .4rem .95rem;
    font-family: var(--font-body) !important; font-size: .78rem !important;
    color: var(--navy) !important; border-color: rgba(14,44,71,.3);
  }
  .nav__links .nav__cta, .nav.scrolled .nav__links .nav__cta {
    position: static; transform: none;
    order: 4; width: 100%; justify-content: center; text-align: center;
    margin-top: .6rem; font-family: var(--font-body); font-size: 1rem;
    border-color: var(--gold); color: var(--navy) !important; padding: .9rem 1.6rem;
  }
  /* "dal 1961" flourish + social row (injected by JS) */
  .nav__tagline { display: block; order: 3; align-self: flex-start; margin-top: .9rem;
    font-family: var(--font-display); font-style: italic; color: var(--gold); opacity: .9; font-size: 1.05rem; }
  .nav__msocial { order: 5; display: flex; gap: .8rem; margin-top: 1rem; align-self: flex-start; }
  .nav__msocial a { width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(14,44,71,.28);
    display: grid; place-items: center; opacity: 1; transform: none; transition: background .3s, border-color .3s; }
  .nav__msocial a::after { display: none; }
  .nav__msocial a:hover { background: var(--gold); border-color: var(--gold); }
  .nav__msocial svg { width: 19px; height: 19px; fill: var(--navy); }
  .nav__msocial a:hover svg { fill: var(--navy); }
  /* dark overlay behind the drawer */
  .nav__backdrop {
    position: fixed; left: 0; right: 0;
    top: calc(-1 * env(safe-area-inset-top));
    bottom: calc(-1 * env(safe-area-inset-bottom));
    z-index: 90; background: rgba(8,28,46,.55);
    backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
    opacity: 0; visibility: hidden; transition: opacity .45s var(--ease), visibility .45s;
  }
  .nav__backdrop.open { opacity: 1; visibility: visible; }
  /* solo scroll-lock col menu aperto: niente sfondo navy sul body (si incastrava
     sulla status bar). Barra di sistema normale ovunque. */
  body.nav-open { overflow: hidden; }
  /* col drawer aperto la nav non deve mostrare il suo fondo crema in alto */
  body.nav-open .nav::before { opacity: 0; }
  /* hamburger morphs into an X */
  .nav__toggle { display: flex; z-index: 130; }
  .nav.scrolled .nav__toggle span { background: var(--navy); }
  .nav__toggle.open span { background: var(--navy); }
  .nav__toggle.open span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
  .nav__toggle.open span:nth-child(2){ opacity: 0; }
  .nav__toggle.open span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }
  .intro__grid { grid-template-columns: 1fr; }
  .intro__media { order: -1; }
  .intro__media img { height: 380px; }
  .about__grid { grid-template-columns: 1fr; }
  .about__media { position: relative; top: 0; margin-bottom: 1.5rem; }
  .about__media img { height: 360px; }
  .menu__list { grid-template-columns: 1fr; gap: 1rem 0; }
  .split { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
  .split__media { min-height: 320px; }
  .contact__grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .features__grid, .gallery__grid, .footer__top { grid-template-columns: 1fr; }
  .gallery__grid .wide { grid-column: span 1; }
  .intro__media .badge { left: 0; bottom: -20px; }
}
@media (max-width: 380px) {
  .nav__brand span { font-size: 1.36rem; }
  .nav__mark { width: 38px; height: 38px; }
}
/* Sui telefoni il :hover non deve cambiare NIENTE. Se anche una sola proprieta'
   cambia, iOS usa il primo tocco per mostrare l'effetto "al passaggio del mouse"
   e ne serve un secondo per aprire il link: il tasto sembra non rispondere.
   Quindi ogni proprieta' toccata da un :hover va riportata qui al suo valore
   normale — annullare solo il transform non basta. */
@media (hover: none) {
  .btn:hover,
  .btn-primary:hover,
  .btn-ghost:hover,
  .btn-dark:hover,
  .hero__social a:hover,
  .feature:hover,
  .contact-card:hover,
  .menu__item:hover,
  .press__list a:hover {
    transform: none;
  }
  /* ...e le proprieta' diverse da transform, una per una */
  .btn-primary:hover { box-shadow: 0 10px 30px rgba(201,162,75,.35); }
  .btn-ghost:hover   { background: transparent; }
  .btn-dark:hover    { box-shadow: none; }
  .hero__actions .btn-primary:hover { animation-play-state: running; }
  .nav__brand:hover .nav__mark { transform: none; }
  .nav__brand:hover span { opacity: 1; }
  .btn:hover::after,
  .nav__links a:hover::after {
    width: 0;
    transform: translateX(-130%) skewX(-18deg);
  }
  .nav__cta:hover {
    background: transparent;
  }
}

/* ===========================================================
   REDUCED MOTION — respect the user's system preference
   =========================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .hero__bg img { animation: none !important; transform: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  /* hero stays put instead of lifting (JS also guards this) */
  .hero { transform: none !important; }
}

/* ===========================================================
   PREMIUM REFINEMENTS & HANDCRAFTED MICRO-INTERACTIONS
   =========================================================== */

/* — Typography: tighter, more editorial tracking — */
h1, h2 { letter-spacing: -0.015em; }
.section-head h1, .section-head h2 { font-weight: 500; }
.hero__tag { letter-spacing: .3em; }


/* — Buttons: light sweep + refined gold gradient — */
.btn { position: relative; overflow: hidden; isolation: isolate; }
.btn-primary { background: linear-gradient(135deg, #d8b25e 0%, #b98e34 100%); }
.btn::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(120deg, transparent 20%, rgba(255,255,255,.5) 50%, transparent 80%);
  transform: translateX(-130%) skewX(-18deg); transition: transform .7s var(--ease);
}
.btn:hover::after { transform: translateX(130%) skewX(-18deg); }

/* — Feature cards: brass top-line draws in, icon tilts — */
.feature { position: relative; overflow: hidden; }
.feature::before {
  content: ""; position: absolute; top: 0; left: 0; height: 3px; width: 0;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  transition: width .55s var(--ease);
}
.feature:hover::before { width: 100%; }
.feature__icon { transition: transform .55s var(--ease), box-shadow .4s; }
.feature:hover .feature__icon { transform: translateY(-3px) rotate(-5deg); box-shadow: 0 12px 26px rgba(14,44,71,.28); }

/* — Gallery: caption rises, subtle scrim + inset gold frame — */
.gallery__grid figure { position: relative; cursor: pointer; }
.gallery__grid figure::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(to top, rgba(8,28,46,.82) 0%, rgba(8,28,46,.15) 45%, transparent 70%);
  opacity: 0; transition: opacity .55s var(--ease);
}
.gallery__grid figure:hover::after { opacity: 1; }
.gallery__grid figcaption {
  position: absolute; left: 0; bottom: 0; z-index: 3; padding: 1.15rem 1.3rem;
  color: #fff; font-family: var(--font-display); font-size: 1.5rem; line-height: 1.05;
  opacity: 0; transform: translateY(10px); transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.gallery__grid figcaption span {
  display: block; font-family: var(--font-body); font-size: .66rem; font-weight: 700;
  letter-spacing: .24em; text-transform: uppercase; color: var(--gold-light); margin-bottom: .35rem;
}
.gallery__grid figure:hover figcaption { opacity: 1; transform: none; }
.gallery__grid figure > img { transition: transform .9s var(--ease), filter .6s; }
.gallery__grid figure:hover > img { transform: scale(1.07); filter: saturate(1.05); }

/* — Contact cards & menu items: tactile hover — */
.contact-card { transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s; }
.contact-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(201,162,75,.4); }
.contact-card:hover .contact-card__icon { background: var(--gold); }
.contact-card:hover .contact-card__icon svg { stroke: var(--navy); }
.contact-card__icon { transition: background .4s; }
.menu__item { transition: transform .35s var(--ease); }
.menu__item:hover { transform: translateX(6px); }
.menu__item:hover .name { color: var(--gold-light); }
.menu__item .name { transition: color .35s; }

/* — Stat numbers: brass underline grows on reveal — */
.intro__stats .stat strong { position: relative; display: inline-block; padding-bottom: .15rem; }
.intro__stats .stat strong::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
  background: linear-gradient(90deg, var(--gold), transparent);
  transition: width .9s var(--ease) .3s;
}
.reveal.in .intro__stats .stat strong::after { width: 100%; }

/* — Nav wordmark: subtle weight on hover — */
.nav__brand span { transition: opacity .3s; }
.nav__brand:hover span { opacity: .85; }

/* ===========================================================
   BED & BREAKFAST
   =========================================================== */
.bb { background: var(--sand); }
.bb__grid { display: grid; grid-template-columns: 1.3fr .9fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.bb__text h2 { font-size: clamp(2rem, 4vw, 3rem); }
.bb__text p { color: var(--muted); margin-top: 1.2rem; font-size: 1.06rem; }
.bb__features { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: .75rem 1.6rem; margin: 1.9rem 0; }
.bb__features li { position: relative; padding-left: 1.7rem; color: var(--ink); font-weight: 500; }
.bb__features li::before {
  content: ""; position: absolute; left: 0; top: .5em; width: 8px; height: 8px; border-radius: 50%;
  background: var(--gold); box-shadow: 0 0 0 4px rgba(201,162,75,.18);
}
.bb__actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.bb__card {
  background: linear-gradient(160deg, var(--navy) 0%, #0a2138 100%); color: #fff;
  border-radius: var(--radius); padding: clamp(2rem, 4vw, 3rem); text-align: center; box-shadow: var(--shadow-md);
}
.bb__mark { width: 72px; margin: 0 auto 1.2rem; filter: drop-shadow(0 6px 16px rgba(0,0,0,.45)); transition: transform .6s var(--ease); }
.bb__card:hover .bb__mark { transform: rotate(-6deg) scale(1.05); }
.bb__card strong { display: block; font-family: var(--font-display); font-size: 3.4rem; line-height: 1; color: var(--gold-light); }
.bb__card > span { display: block; font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,.75); margin-top: .45rem; }
.bb__addr { margin-top: 1.6rem; padding-top: 1.4rem; border-top: 1px solid rgba(255,255,255,.15); font-size: .95rem; color: rgba(255,255,255,.85); line-height: 1.7; }
.bb__addr a:hover { color: var(--gold-light); }
@media (max-width: 820px) {
  .bb__grid { grid-template-columns: 1fr; }
  .bb__card { order: -1; }
}
@media (max-width: 480px) { .bb__features { grid-template-columns: 1fr; } }

/* ===========================================================
   BOOKING FORM
   =========================================================== */
.contact__map { margin-top: 2.5rem; }
.booking {
  background: var(--cream); border: 1px solid rgba(14,44,71,.08); border-radius: var(--radius);
  padding: clamp(1.6rem, 3vw, 2.4rem); box-shadow: var(--shadow-sm);
}
.booking__title { font-size: 1.9rem; }
.booking__sub { color: var(--muted); font-size: .98rem; margin: .4rem 0 1.6rem; }
.booking__row { display: flex; gap: 1rem; }
.booking__row .field { flex: 1; }
.field { display: flex; flex-direction: column; margin-bottom: 1.05rem; }
.field--small { max-width: 110px; }
.field label { font-size: .76rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--navy); margin-bottom: .4rem; }
.field label .opt { color: var(--muted); font-weight: 500; text-transform: none; letter-spacing: 0; }
.field input, .field textarea {
  font-family: var(--font-body); font-size: 1rem; color: var(--ink);
  background: #fff; border: 1.5px solid rgba(14,44,71,.16); border-radius: 12px;
  padding: .8rem .95rem; transition: border-color .3s, box-shadow .3s; width: 100%;
}
.field input::placeholder, .field textarea::placeholder { color: #9aa7b1; }
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--sea); box-shadow: 0 0 0 4px rgba(42,134,196,.14);
}
.field textarea { resize: vertical; }
/* iOS: gli input date/time hanno una larghezza intrinseca nativa che sfora il
   contenitore — azzero l'appearance così rispettano width:100%. */
.field input[type="date"], .field input[type="time"] {
  -webkit-appearance: none; appearance: none;
  width: 100%; min-width: 0; max-width: 100%; min-height: 3rem;
}
.field input:user-invalid, .field textarea:user-invalid { border-color: #c0563f; box-shadow: 0 0 0 4px rgba(192,86,63,.12); }
.booking__submit { width: 100%; justify-content: center; margin-top: .4rem; }
.booking__hint { text-align: center; font-size: .9rem; color: var(--muted); margin-top: .9rem; }
.booking__hint a { color: var(--navy); font-weight: 700; }
.booking__hint a:hover { color: var(--sea); }
.booking__ok {
  display: none; text-align: center; padding: 1rem 1.2rem; border-radius: 12px; margin-top: 1rem;
  background: rgba(42,134,196,.1); color: var(--navy); font-weight: 600; font-size: .95rem;
}
/* Prenotazione (Superb) */
.booking__perks { list-style: none; margin: 0 0 1.6rem; padding: 0; display: grid; gap: .7rem; }
.booking__perks li {
  position: relative; padding-left: 1.9rem; color: var(--ink); font-size: .98rem;
}
.booking__perks li::before {
  content: ""; position: absolute; left: 0; top: .05em;
  width: 1.25rem; height: 1.25rem; border-radius: 50%;
  background: rgba(42,134,196,.14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232a86c4' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / .8rem no-repeat;
}
.booking.sent .booking__ok { display: block; }
@media (max-width: 600px) {
  .booking__row { flex-wrap: wrap; }
  .booking__row .field { flex: 1 1 100%; }
  .field--small { max-width: none; }
}

/* — Language switch — */
.nav__lang {
  font-size: .78rem !important; font-weight: 800 !important; letter-spacing: .08em;
  border: 1.5px solid currentColor; border-radius: 100px; padding: .3rem .6rem;
  opacity: .85; transition: opacity .3s, background .3s, color .3s;
}
.nav__lang::after { display: none !important; }
.nav__lang:hover { opacity: 1; }

/* ===========================================================
   CHEF (within Chi siamo)
   =========================================================== */
.chef {
  display: grid; grid-template-columns: .82fr 1.18fr; gap: clamp(2rem, 5vw, 4rem);
  align-items: center; margin-top: clamp(3rem, 6vw, 5rem);
  padding-top: clamp(3rem, 6vw, 5rem); border-top: 1px solid rgba(14,44,71,.12);
}
.chef__media { position: relative; }
.chef__media img {
  width: 100%; height: 540px; object-fit: cover; object-position: center 20%;
  border-radius: var(--radius); box-shadow: var(--shadow-md);
}
.chef__badge {
  position: absolute; left: -14px; bottom: 24px; background: var(--navy); color: #fff;
  font-size: .7rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  padding: .6rem 1.1rem; border-radius: 100px; box-shadow: var(--shadow-md);
}
.chef__text h3 { font-size: clamp(2rem, 4vw, 2.9rem); margin-top: .2rem; }
.chef__text p { color: var(--muted); margin-top: 1.1rem; font-size: 1.06rem; }
.chef__text p strong { color: var(--navy); }
.chef__quote {
  font-family: var(--font-display); font-style: italic; font-size: 1.5rem; line-height: 1.4;
  color: var(--navy); border-left: 3px solid var(--gold); padding-left: 1.3rem; margin-top: 1.8rem !important;
}
@media (max-width: 820px) {
  .chef { grid-template-columns: 1fr; }
  .chef__media img { height: 420px; }
  .chef__badge { left: 0; }
}

/* — Scrollspy: active nav item highlights current section — */
.nav__links a.active { color: var(--gold); }
.nav.scrolled .nav__links a.active { color: var(--eyebrow); }
.nav__links a.active::after { width: 100%; }

/* ===========================================================
   MOBILE POLISH
   =========================================================== */
@media (max-width: 600px) {
  .hero__tag {
    letter-spacing: .12em; font-size: .82rem; padding: 0 .5rem; line-height: 1.7;
  }
  .hero__since { font-size: 1.1rem; }
  .nav__brand span { font-size: 1.45rem; }
  .nav__mark { width: 40px; height: 40px; }
  .nav { padding-inline: 1.1rem; }
  .hero__logo { width: min(78vw, 360px); }
}
@media (max-width: 380px) {
  .hero__tag { font-size: .74rem; letter-spacing: .08em; }
}

@media (max-width: 820px) {
  .about__media .badge { left: 0; }
}

/* ===========================================================
   BACK-TO-TOP BUTTON
   =========================================================== */
.to-top {
  position: fixed; right: clamp(1rem, 3vw, 2rem);
  bottom: max(clamp(1rem, 3vw, 2rem), calc(env(safe-area-inset-bottom) + .6rem));
  width: 52px; height: 52px; border-radius: 50%; z-index: 80; cursor: pointer;
  background: var(--navy); color: #fff; border: 1px solid rgba(255,255,255,.12);
  display: grid; place-items: center; box-shadow: 0 6px 18px rgba(8,28,46,.3);
  opacity: 0; visibility: hidden; transform: translateY(14px);
  transition: opacity .4s var(--ease), transform .4s var(--ease), background .3s, color .3s, visibility .4s;
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
/* gold highlight only on real hover (desktop) — never sticks after a tap on mobile */
@media (hover: hover) {
  .to-top:hover { background: var(--gold); color: var(--navy); transform: translateY(-3px); }
}
.to-top svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ===========================================================
   WAVE ANIMATION (mobile drawer header)
   =========================================================== */
.nav__wave path { animation: waveDrift 7s linear infinite; }
@keyframes waveDrift { from { transform: translateX(0); } to { transform: translateX(-60px); } }

/* ===========================================================
   PRESS / RASSEGNA STAMPA
   =========================================================== */
.press { background: var(--sand); padding-block: clamp(3.5rem, 6vw, 5.5rem); }
.press__list {
  list-style: none; display: flex; flex-wrap: wrap; justify-content: center;
  align-items: center; gap: .9rem 1.1rem; max-width: 920px; margin: 0 auto;
}
.press__list a {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .45rem 1.05rem .45rem .45rem; border-radius: 100px;
  background: #fff; border: 1px solid rgba(14,44,71,.08); box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.press__list a:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: rgba(201,162,75,.45); }
.press__list img {
  width: 34px; height: 34px; border-radius: 50%; object-fit: contain;
  background: #fff; padding: 3px; box-shadow: inset 0 0 0 1px rgba(14,44,71,.06);
}
.press__list span { font-family: var(--font-display); font-size: 1.12rem; color: var(--navy); }
.press__intro { text-align: center; color: var(--muted); margin-top: 1.8rem; font-size: 1rem; }
@media (max-width: 560px) {
  .press__list { gap: .6rem .6rem; }
  .press__list a { padding: .4rem .85rem .4rem .4rem; }
  .press__list span { font-size: 1rem; }
}


/* ===========================================================
   FIX: evita overflow orizzontale del form (grid/flex shrink)
   =========================================================== */
.contact__grid { min-width: 0; }
.contact__grid > * { min-width: 0; }
.booking, .booking__row, .field { min-width: 0; }
.booking__row .field { min-width: 0; }
.field input, .field textarea { min-width: 0; max-width: 100%; }

/* email/parole lunghe nelle card contatti: vanno a capo, niente overflow */
.contact-card { min-width: 0; }
.contact-card > div { min-width: 0; }
.contact-card p, .contact-card a, .contact-card h4 { overflow-wrap: anywhere; word-break: break-word; }

/* ============ COOKIE CONSENT ============ */
.contact__map { position: relative; }
.map-consent {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem;
  text-align: center; padding: 2rem 1.6rem;
  background: linear-gradient(160deg, var(--navy) 0%, #0a2138 100%); color: #fff;
}
.map-consent p { max-width: 34ch; font-size: .98rem; line-height: 1.5; color: rgba(255,255,255,.85); }
.map-consent p strong { color: var(--gold-light); }
.map-consent__btn { cursor: pointer; }
.map-consent__link { font-size: .82rem; letter-spacing: .04em; color: rgba(255,255,255,.6); text-decoration: underline; }
.map-consent__link:hover { color: #fff; }
.contact__map.map-on .map-consent { display: none; }

/* Bottom banner */
.cookie-bar {
  position: fixed; left: 50%; bottom: max(1rem, env(safe-area-inset-bottom)); transform: translateX(-50%) translateY(160%);
  z-index: 200; width: min(920px, calc(100% - 2rem));
  display: flex; align-items: center; gap: 1.2rem 1.6rem; flex-wrap: wrap;
  padding: 1.15rem 1.4rem; border-radius: 18px;
  background: var(--cream); color: var(--ink);
  border: 1px solid rgba(14,44,71,.1);
  box-shadow: 0 18px 60px rgba(14,44,71,.28);
  opacity: 0; transition: transform .5s var(--ease), opacity .5s var(--ease);
}
.cookie-bar.show { transform: translateX(-50%) translateY(0); opacity: 1; }
.cookie-bar__text { flex: 1 1 320px; font-size: .9rem; line-height: 1.5; color: var(--muted); }
.cookie-bar__text strong { color: var(--navy); font-weight: 700; }
.cookie-bar__text a { color: var(--sea); text-decoration: underline; }
.cookie-bar__text a:hover { color: var(--navy); }
.cookie-bar__actions { display: flex; gap: .7rem; flex-wrap: wrap; }
.cookie-bar__btn {
  cursor: pointer; border-radius: 100px; padding: .7rem 1.5rem;
  font-family: var(--font-body); font-weight: 700; font-size: .88rem; transition: all .25s var(--ease);
  border: 1.5px solid transparent; white-space: nowrap;
}
.cookie-bar__btn--reject { background: transparent; color: var(--navy); border-color: rgba(14,44,71,.3); }
.cookie-bar__btn--reject:hover { border-color: var(--navy); }
.cookie-bar__btn--accept { background: var(--gold); color: var(--navy); }
.cookie-bar__btn--accept:hover { background: var(--gold-light); }
@media (max-width: 560px) {
  /* bottom sheet a filo: il crema arriva fino al bordo, niente striscia bianca sotto */
  .cookie-bar {
    left: 0; right: 0; bottom: 0; width: 100%;
    transform: translateY(100%);
    border-radius: 18px 18px 0 0;
    padding: 1.3rem 1.4rem calc(1.3rem + env(safe-area-inset-bottom));
    flex-direction: column; align-items: stretch; text-align: center;
  }
  .cookie-bar.show { transform: translateY(0); }
  .cookie-bar__text { flex: 0 1 auto; }   /* niente altezza minima: via lo spazio vuoto */
  .cookie-bar__actions { justify-content: center; }
  .cookie-bar__btn { flex: 1; }
}

/* ============ ALLERGENI ============ */
.allergeni { background: var(--cream); color: var(--ink); }
.allergeni .section-head p { color: var(--muted); }
.allergeni__grid {
  list-style: none; margin: 0 auto; max-width: 900px;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 2.8rem;
}
.allergeni__grid li {
  display: flex; align-items: flex-start; gap: .85rem;
  padding: .7rem 0; border-bottom: 1px solid rgba(14,44,71,.09);
  font-size: .97rem; line-height: 1.45; color: var(--ink);
}
.allergeni__num {
  flex: 0 0 auto; width: 28px; height: 28px; margin-top: .05rem; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--navy); color: #fff; font-size: .78rem; font-weight: 700;
  font-family: var(--font-body);
}
.allergeni__notes { max-width: 900px; margin: 2.6rem auto 0; display: grid; gap: 1.1rem; }
.allergeni__notes p {
  font-size: .88rem; line-height: 1.65; color: var(--muted);
  padding-left: 1.1rem; border-left: 3px solid var(--gold);
}
.allergeni__notes strong { color: var(--navy); }
@media (max-width: 680px) {
  .allergeni__grid { grid-template-columns: 1fr; gap: 0; }
}

/* — Pagina 404 — */
.error404 { min-height: 70vh; display: flex; align-items: center; }
.error404 .container { width: 100%; }
.error404__en { font-size: .98rem; color: rgba(255,255,255,.55); margin-top: .5rem; }
.error404__actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-top: 2.2rem; }
.error404__help { margin-top: 1.8rem; font-size: .95rem; color: rgba(255,255,255,.6); }
.error404__help a { color: var(--gold-light); }

/* — Pagina Stabilimento — */
.orari__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.orari__card {
  background: var(--cream); border: 1px solid rgba(14,44,71,.06);
  border-radius: var(--radius); padding: 2rem 1.8rem; text-align: center;
}
.orari__card h3 { font-size: 1.5rem; margin-bottom: .9rem; }
.orari__periodo { font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.orari__ore { font-family: var(--font-display); font-size: 1.7rem; color: var(--sea); margin-top: .35rem; line-height: 1.2; }
.orari__nota { font-size: .9rem; color: var(--muted); margin-top: .7rem; line-height: 1.5; }
.orari__chiusura { text-align: center; margin-top: 2.2rem; color: var(--muted); font-size: .96rem; }
.servizi__extra { max-width: 780px; margin-inline: auto; margin-top: 3rem; }
@media (max-width: 900px) { .orari__grid { grid-template-columns: 1fr; } }

/* — Su telefono: telefono, email e WhatsApp devono essere toccabili col dito.
     44px e' il minimo consigliato; erano alti ~20px e si sbagliava mira.
     Il testo resta identico: cresce solo l'area sensibile al tocco. — */
@media (max-width: 820px) {
  .contact-card p a,
  .booking__hint a,
  .bb__addr a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
}
