/* ============================================================
   OSTERIA LA DOLCE VITA — Firenze
   Concept: "L'osteria in volo" — cena toscana sotto un cielo
   di mille luci, con mongolfiere d'altri tempi a mezz'aria.
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  /* colori */
  --night:      #16100a;
  --night-2:    #1d150c;
  --night-3:    #241a0f;
  --wood:       #3a2917;
  --gold:       #e9b45c;
  --amber:      #d99a3d;
  --copper:     #b4744a;
  --cream:      #f4e8d3;
  --cream-70:   rgba(244, 232, 211, .72);
  --cream-45:   rgba(244, 232, 211, .45);
  --line:       rgba(233, 180, 92, .18);

  /* tipografia */
  --f-display: "Fraunces", Georgia, serif;
  --f-script:  "Great Vibes", cursive;
  --f-body:    "Outfit", -apple-system, sans-serif;

  /* scala spazi (4/8/16/24/32/48/64/96/128/160) */
  --s-2: 8px;  --s-3: 16px; --s-4: 24px; --s-5: 32px;
  --s-6: 48px; --s-7: 64px; --s-8: 96px; --s-9: 128px; --s-10: 160px;

  /* motion */
  --ease: cubic-bezier(.22, .8, .3, 1);
  --t-hover: 220ms;
  --t-reveal: 900ms;

  --radius: 6px;
  --glow-gold: 0 0 22px rgba(233, 180, 92, .35), 0 0 60px rgba(233, 180, 92, .14);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--f-body);
  font-weight: 300;
  background: var(--night);
  color: var(--cream);
  line-height: 1.65;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
ul { list-style: none; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}
.skip-link {
  position: fixed; top: -60px; left: var(--s-3); z-index: 200;
  background: var(--gold); color: var(--night);
  padding: 10px 18px; border-radius: var(--radius);
  font-weight: 500; text-decoration: none;
  transition: top var(--t-hover) var(--ease);
}
.skip-link:focus { top: var(--s-3); }

.svg-defs { position: absolute; width: 0; height: 0; }

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

/* ---------- Il cielo di luci (canvas globale) ---------- */
#sky {
  position: fixed; inset: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
}
main, .footer, .nav { position: relative; z-index: 1; }

/* ---------- Tipografia ---------- */
h1, h2, h3 { font-family: var(--f-display); font-weight: 400; line-height: 1.12; }
h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); letter-spacing: -.01em; }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.7rem); }
h2 em, h3 em { font-style: italic; color: var(--gold); }
p { max-width: 62ch; }

.eyebrow {
  font-size: .78rem; font-weight: 500;
  letter-spacing: .32em; text-transform: uppercase;
  color: var(--amber);
  margin-bottom: var(--s-3);
}
.script-neon {
  font-family: var(--f-script);
  font-weight: 400;
  color: #ffe9bd;
  text-shadow:
    0 0 6px rgba(255, 233, 189, .55),
    0 0 24px rgba(233, 180, 92, .45),
    0 0 70px rgba(217, 154, 61, .30);
}
.script-neon.small { font-size: 2rem; }

/* ---------- Bottoni ---------- */
.btn {
  display: inline-block;
  font-family: var(--f-body); font-weight: 500;
  font-size: .95rem; letter-spacing: .04em;
  padding: 15px 32px;
  border-radius: var(--radius);
  text-decoration: none;
  transition: transform var(--t-hover) var(--ease), box-shadow var(--t-hover) var(--ease),
              background var(--t-hover) var(--ease), color var(--t-hover) var(--ease);
}
.btn-gold {
  background: linear-gradient(150deg, #f0c473, var(--amber));
  color: #241503;
  box-shadow: var(--glow-gold);
}
.btn-gold:hover, .btn-gold:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(233, 180, 92, .5), 0 0 80px rgba(233, 180, 92, .2);
}
.btn-ghost {
  color: var(--cream);
  border: 1px solid var(--line);
  background: rgba(22, 16, 10, .35);
  backdrop-filter: blur(4px);
}
.btn-ghost:hover, .btn-ghost:focus-visible {
  border-color: rgba(233, 180, 92, .55);
  color: var(--gold);
}
.btn-big { font-size: 1.05rem; padding: 18px 40px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.link-arrow {
  display: inline-block;
  color: var(--gold); text-decoration: none;
  font-weight: 400; letter-spacing: .02em;
  border-bottom: 1px solid rgba(233, 180, 92, .35);
  padding-bottom: 2px;
  transition: border-color var(--t-hover) var(--ease);
}
.link-arrow::after { content: " →"; }
.link-arrow:hover { border-color: var(--gold); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px clamp(16px, 4vw, 48px);
  transition: background 400ms var(--ease), box-shadow 400ms var(--ease), padding 400ms var(--ease);
}
.nav.scrolled {
  background: rgba(18, 12, 7, .82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, .35);
  padding-block: 10px;
}
.nav-brand { text-decoration: none; line-height: 1; }
.nav-brand-script { font-family: var(--f-script); font-size: 1.7rem; color: #ffe9bd; text-shadow: 0 0 14px rgba(233,180,92,.4); }
.nav-brand-sub { display: block; font-size: .6rem; letter-spacing: .38em; text-transform: uppercase; color: var(--cream-45); margin-top: 4px; }
.nav-links { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 34px); }
.nav-links > a:not(.btn) {
  font-size: .85rem; letter-spacing: .08em; text-decoration: none;
  color: var(--cream-70);
  transition: color var(--t-hover) var(--ease);
}
.nav-links > a:not(.btn):hover { color: var(--gold); }
.nav-cta { padding: 11px 22px; font-size: .82rem; }
.nav-toggle { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid; place-items: center;
  text-align: center;
  overflow: clip;
  background:
    radial-gradient(120% 90% at 50% 108%, rgba(120, 68, 22, .38), transparent 60%),
    radial-gradient(80% 60% at 50% -10%, rgba(233, 180, 92, .12), transparent 60%);
}
.hero-inner { position: relative; z-index: 3; padding: var(--s-8) var(--s-3) var(--s-7); }
.hero-title { margin: var(--s-2) 0 var(--s-4); }
.hero-title .script-neon { font-size: clamp(4.2rem, 13vw, 9.5rem); display: block; }
.hero-sub {
  font-size: clamp(1.02rem, 1.8vw, 1.3rem);
  color: var(--cream-70);
  margin-inline: auto;
}
.hero-cta { display: flex; gap: var(--s-3); justify-content: center; flex-wrap: wrap; margin-top: var(--s-5); }
.hero-badges {
  display: flex; gap: var(--s-4); justify-content: center; flex-wrap: wrap;
  margin-top: var(--s-6);
  font-size: .82rem; letter-spacing: .06em; color: var(--cream-45);
}
.hero-badges strong { color: var(--gold); font-weight: 600; margin-right: 4px; }
.hero-badges li + li { border-left: 1px solid var(--line); padding-left: var(--s-4); }

.scroll-hint {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  z-index: 3; width: 28px; height: 52px;
  display: grid; justify-content: center;
}
.scroll-hint-line {
  width: 1px; height: 100%;
  background: linear-gradient(to bottom, transparent, var(--gold));
  animation: hintPulse 2.6s var(--ease) infinite;
}
@keyframes hintPulse {
  0%, 100% { transform: scaleY(.55); opacity: .35; transform-origin: top; }
  50%      { transform: scaleY(1);  opacity: .9; }
}

/* ---------- Mongolfiere ---------- */
.hero-balloons { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.bwrap {
  position: absolute;
  will-change: transform;
  animation: sway var(--sway, 12s) ease-in-out infinite alternate;
}
.balloon { display: block; width: 100%; height: auto; filter: drop-shadow(0 18px 24px rgba(0, 0, 0, .35)); }
@keyframes sway {
  from { rotate: -2.2deg; translate: 0 -8px; }
  to   { rotate:  2.2deg; translate: 0  8px; }
}
/* posizioni hero — mai simmetriche, mai identiche */
.b-far   { width: clamp(42px, 5vw, 74px);   top: 16%; left: 12%; opacity: .5; filter: blur(1.4px); }
.b-far2  { width: clamp(38px, 4.4vw, 64px); top: 11%; right: 18%; opacity: .45; filter: blur(1.8px); }
.b-mid   { width: clamp(64px, 8vw, 110px);  top: 26%; right: 8%; opacity: .82; }
.b-near  { width: clamp(96px, 12vw, 168px); top: 56%; left: 6%; }
.b-near2 { width: clamp(80px, 10vw, 140px); top: 62%; right: 11%; }

/* traversata lenta della pagina */
.bdrift {
  position: absolute; top: 20%; left: 0; width: 100%;
  pointer-events: none;
  animation: drift 150s linear infinite;
}
.bdrift .bwrap { position: relative; }
.bdrift-1 { top: 8%; }
.bdrift-1 .bwrap { width: clamp(40px, 4.6vw, 66px); opacity: .55; filter: blur(.8px); }
.bdrift-2 { top: 6%; animation-duration: 190s; animation-delay: -60s; }
.bdrift-2 .bwrap { width: clamp(46px, 5vw, 72px); opacity: .4; filter: blur(1.2px); }
@keyframes drift {
  from { transform: translateX(-12vw); }
  to   { transform: translateX(112vw); }
}

/* ---------- Mongolfiere in viaggio (layer fisso sullo scroll) ---------- */
.journey {
  position: fixed; inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: clip;
}
.jb {
  position: absolute; top: 0; left: 0;
  opacity: 0;
  transition: opacity 800ms var(--ease);
  will-change: transform;
}
.jb .bwrap { position: relative; }
@media (max-width: 860px) {
  .jb-desktop { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .journey { display: none; }
}

/* ---------- Scene comuni ---------- */
.scene { position: relative; padding-block: clamp(var(--s-8), 12vw, var(--s-10)); }
.scene-head { text-align: center; margin-bottom: clamp(var(--s-6), 7vw, var(--s-8)); }
.scene-head p.menu-note { margin: var(--s-3) auto 0; color: var(--cream-70); }
.scene-copy h2, .scene-copy h3 { margin-bottom: var(--s-4); }
.scene-copy p + p { margin-top: var(--s-3); }

.grid-2 {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(var(--s-5), 6vw, var(--s-8));
  align-items: center;
}

/* ---------- Scena 2: ingresso ---------- */
.scene-ingresso {
  background: linear-gradient(to bottom, transparent, rgba(29, 21, 12, .88) 18%, rgba(29, 21, 12, .88) 82%, transparent);
}
.photo-tilt {
  position: relative;
  transform: rotate(-2deg);
  margin-left: -4%;
  will-change: transform;
}
.photo-tilt img {
  border-radius: var(--radius);
  box-shadow: 0 40px 90px rgba(0, 0, 0, .55), 0 0 0 1px var(--line);
}
.photo-tilt figcaption {
  position: absolute; bottom: -34px; right: 8px;
  font-size: .78rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--cream-45);
}
.stats {
  display: flex; gap: clamp(var(--s-4), 4vw, var(--s-6));
  margin-top: var(--s-6); flex-wrap: wrap;
}
.stats dt { font-family: var(--f-display); font-size: 1.7rem; color: var(--gold); }
.stats dd { font-size: .8rem; letter-spacing: .04em; color: var(--cream-45); }

/* ---------- Scena 3: la sala ---------- */
.sala-hero {
  position: relative; overflow: clip;
  min-height: 88svh;
  display: grid; align-items: end;
  margin-bottom: clamp(var(--s-7), 9vw, var(--s-9));
}
.sala-img {
  position: absolute; inset: -12% 0;
  width: 100%; height: 124%;
  object-fit: cover;
  will-change: transform;
}
.sala-veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(22, 16, 10, .96) 4%, rgba(22, 16, 10, .35) 45%, rgba(22, 16, 10, .3)),
    radial-gradient(90% 60% at 50% 100%, rgba(120, 68, 22, .3), transparent 70%);
}
.sala-caption { position: relative; padding-block: var(--s-7); }
.sala-caption p:not(.eyebrow) { color: var(--cream-70); }
.sala-detail .scene-copy { padding-right: var(--s-4); }

.photo-stack { position: relative; will-change: transform; }
.photo-stack img:first-child {
  border-radius: var(--radius);
  box-shadow: 0 40px 90px rgba(0, 0, 0, .55), 0 0 0 1px var(--line);
}
.stack-over {
  position: absolute; width: 44%;
  bottom: -14%; left: -10%;
  border-radius: var(--radius);
  box-shadow: 0 30px 70px rgba(0, 0, 0, .6), 0 0 0 1px var(--line);
  transform: rotate(2.5deg);
}

/* ---------- Scena 4: menù ---------- */
.scene-menu {
  background: linear-gradient(to bottom, transparent, rgba(36, 26, 15, .92) 12%, rgba(36, 26, 15, .92) 88%, transparent);
  overflow: clip;
}
.menu-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: clamp(var(--s-5), 4.5vw, var(--s-7));
}
.menu-cat figure {
  overflow: clip; border-radius: var(--radius);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .45), 0 0 0 1px var(--line);
  margin-bottom: var(--s-4);
}
.menu-cat figure img {
  aspect-ratio: 16 / 9; width: 100%; object-fit: cover;
  transition: transform 700ms var(--ease);
}
.menu-cat:hover figure img { transform: scale(1.04); }
.menu-cat h3 {
  color: var(--gold); margin-bottom: var(--s-3);
  padding-bottom: var(--s-2);
  border-bottom: 1px solid var(--line);
}
.menu-list li {
  display: flex; align-items: baseline; gap: 10px;
  padding-block: 10px;
}
.mi-name { font-weight: 400; }
.mi-name small {
  display: block; font-size: .8rem; font-weight: 300;
  color: var(--cream-45); letter-spacing: .02em;
}
.mi-dots { flex: 1; border-bottom: 1px dotted rgba(233, 180, 92, .28); transform: translateY(-4px); min-width: 24px; }
.mi-price { font-family: var(--f-display); color: var(--gold); font-size: 1.05rem; }
.mi-price::before { content: "€ "; font-size: .75em; opacity: .7; }
.menu-disclaimer {
  margin: var(--s-6) auto 0; text-align: center;
  font-size: .78rem; letter-spacing: .06em; color: var(--cream-45);
}

/* ---------- Scena 5: fiorentina ---------- */
.scene-fiorentina {
  position: relative; overflow: clip;
  min-height: 92svh;
  display: grid; align-items: center;
}
.fio-media { position: absolute; inset: 0; }
.fio-media img {
  position: absolute; inset: -10% 0; width: 100%; height: 120%;
  object-fit: cover; object-position: 65% center;
  will-change: transform;
}
.fio-veil {
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(20, 13, 7, .95) 32%, rgba(20, 13, 7, .55) 60%, rgba(20, 13, 7, .25));
}
.fio-copy { position: relative; max-width: 560px; margin-left: max(4vw, calc((100vw - 1180px) / 2)); }
.fio-copy p { color: var(--cream-70); }
.fio-facts { display: flex; gap: var(--s-5); margin: var(--s-5) 0; flex-wrap: wrap; }
.fio-facts strong { display: block; font-family: var(--f-display); font-weight: 400; font-size: 1.25rem; color: var(--gold); }
.fio-facts span { font-size: .78rem; letter-spacing: .05em; color: var(--cream-45); }

/* ---------- Scena 6: galleria ---------- */
.scene-galleria {
  background: linear-gradient(to bottom, transparent, rgba(29, 21, 12, .9) 14%, rgba(29, 21, 12, .9) 86%, transparent);
}
.gal {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 200px;
  gap: var(--s-3);
}
.gal figure {
  overflow: clip; border-radius: var(--radius);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .4);
}
.gal img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 800ms var(--ease), filter 800ms var(--ease);
  filter: saturate(.92) brightness(.94);
}
.gal figure:hover img { transform: scale(1.05); filter: saturate(1.05) brightness(1.02); }
.g-tall  { grid-row: span 2; grid-column: span 2; }
.g-wide  { grid-column: span 2; }
.g-tall2 { grid-row: span 2; }

/* ---------- Scena 7: recensioni ---------- */
.voci-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(var(--s-4), 3vw, var(--s-6));
}
.voci-grid blockquote {
  padding: var(--s-5);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(58, 41, 23, .35), rgba(22, 16, 10, .2));
  font-family: var(--f-display);
  font-size: 1.05rem; line-height: 1.6;
  transition: border-color var(--t-hover) var(--ease), transform var(--t-hover) var(--ease);
}
.voci-grid blockquote:hover { border-color: rgba(233, 180, 92, .4); transform: translateY(-4px); }
.voci-grid footer {
  margin-top: var(--s-3);
  font-family: var(--f-body); font-size: .78rem;
  letter-spacing: .12em; text-transform: uppercase; color: var(--amber);
}
.voci-badges {
  display: flex; justify-content: center; gap: var(--s-5);
  margin-top: var(--s-6); flex-wrap: wrap;
  color: var(--cream-45); font-size: .85rem; letter-spacing: .05em;
}
.voci-badges strong { color: var(--gold); font-size: 1.2rem; font-family: var(--f-display); margin-right: 6px; }

/* ---------- Scena 8: prenota ---------- */
.scene-prenota { padding-bottom: clamp(var(--s-8), 10vw, var(--s-9)); }
.prenota-card {
  display: grid; grid-template-columns: 1.15fr .85fr;
  gap: clamp(var(--s-5), 5vw, var(--s-8));
  padding: clamp(var(--s-5), 5vw, var(--s-7));
  border: 1px solid var(--line);
  border-radius: 10px;
  background:
    radial-gradient(90% 120% at 15% 0%, rgba(120, 68, 22, .28), transparent 60%),
    linear-gradient(160deg, rgba(36, 26, 15, .92), rgba(22, 16, 10, .88));
  box-shadow: 0 50px 120px rgba(0, 0, 0, .5);
}
.prenota-info { display: grid; gap: var(--s-4); align-content: start; }
.prenota-info h3 {
  font-family: var(--f-body); font-size: .72rem; font-weight: 500;
  letter-spacing: .3em; text-transform: uppercase; color: var(--amber);
  margin-bottom: 6px;
}
.prenota-info p { font-size: 1rem; }
.prenota-info a { color: var(--cream); text-decoration: none; border-bottom: 1px solid rgba(233,180,92,.3); }
.prenota-info a:hover { color: var(--gold); }
.muted { color: var(--cream-45); font-size: .85rem; }

/* ---------- Form di prenotazione ---------- */
.book-form .form-title {
  font-family: var(--f-display); color: var(--gold);
  margin-bottom: var(--s-4);
}
.form-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: var(--s-3) var(--s-4);
  margin-bottom: var(--s-4);
}
.form-full { grid-column: 1 / -1; }
.book-form label {
  display: block;
  font-size: .78rem; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--amber);
}
.book-form input, .book-form select, .book-form textarea {
  display: block; width: 100%;
  margin-top: 8px;
  padding: 13px 14px;
  font: inherit; font-size: 1rem; letter-spacing: normal;
  color: var(--cream);
  background: rgba(22, 16, 10, .55);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color var(--t-hover) var(--ease), box-shadow var(--t-hover) var(--ease);
}
.book-form input:focus, .book-form select:focus, .book-form textarea:focus {
  outline: none;
  border-color: rgba(233, 180, 92, .6);
  box-shadow: 0 0 0 3px rgba(233, 180, 92, .12);
}
.book-form input.invalid, .book-form select.invalid {
  border-color: rgba(192, 80, 60, .75);
}
.book-form textarea { resize: vertical; min-height: 78px; }
.book-form select {
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23e9b45c' fill='none' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
.book-form input::-webkit-calendar-picker-indicator { filter: invert(.82) sepia(.4); }
.form-status { margin-top: var(--s-3); color: var(--gold); font-size: .92rem; max-width: none; }
.form-status.error { color: #d98a76; }
.form-note {
  margin-top: var(--s-3);
  font-size: .82rem; color: var(--cream-45);
}
.form-note a { color: var(--cream-70); }

/* ---------- Social ---------- */
.social-row { display: flex; gap: 12px; margin-top: 12px; }
.social-btn {
  display: grid; place-items: center;
  width: 42px; height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--cream-70);
  transition: color var(--t-hover) var(--ease), border-color var(--t-hover) var(--ease),
              box-shadow var(--t-hover) var(--ease), transform var(--t-hover) var(--ease);
}
.social-btn:hover, .social-btn:focus-visible {
  color: var(--gold);
  border-color: rgba(233, 180, 92, .55);
  box-shadow: var(--glow-gold);
  transform: translateY(-2px);
}

/* ---------- Cambio lingua ---------- */
.nav-lang {
  font-size: .78rem; font-weight: 500;
  letter-spacing: .18em; text-decoration: none;
  color: var(--cream-70);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 14px;
  transition: color var(--t-hover) var(--ease), border-color var(--t-hover) var(--ease);
}
.nav-lang:hover, .nav-lang:focus-visible { color: var(--gold); border-color: rgba(233, 180, 92, .55); }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  padding: var(--s-6) 0 calc(var(--s-6) + 60px);
  background: rgba(14, 9, 5, .8);
}
.footer-inner { display: flex; justify-content: space-between; gap: var(--s-5); flex-wrap: wrap; align-items: center; }
.footer-sub { font-size: .62rem; letter-spacing: .36em; text-transform: uppercase; color: var(--cream-45); }
.footer-meta { font-size: .82rem; color: var(--cream-45); text-align: right; }
.footer-meta a { color: var(--cream-70); }

/* ---------- CTA flottante (mobile) ---------- */
.fab-prenota {
  position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%) translateY(90px);
  z-index: 90;
  background: linear-gradient(150deg, #f0c473, var(--amber));
  color: #241503; font-weight: 600; letter-spacing: .05em;
  text-decoration: none;
  padding: 14px 44px; border-radius: 999px;
  box-shadow: var(--glow-gold), 0 14px 40px rgba(0, 0, 0, .5);
  transition: transform 400ms var(--ease);
}
.fab-prenota.show { transform: translateX(-50%) translateY(0); }
@media (min-width: 861px) { .fab-prenota { display: none; } }

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--t-reveal) var(--ease), transform var(--t-reveal) var(--ease);
  transition-delay: var(--rd, 0ms);
}
.reveal.in { opacity: 1; transform: none; }
.d-1 { --rd: 120ms; } .d-2 { --rd: 240ms; } .d-3 { --rd: 360ms; } .d-4 { --rd: 480ms; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .gal { grid-auto-rows: 160px; }
}
@media (max-width: 860px) {
  .nav-links {
    position: fixed; inset: 0;
    flex-direction: column; justify-content: center;
    gap: var(--s-4);
    background: rgba(14, 9, 5, .96);
    backdrop-filter: blur(16px);
    opacity: 0; pointer-events: none;
    transition: opacity 350ms var(--ease);
  }
  .nav-links.open { opacity: 1; pointer-events: auto; }
  .nav-links > a:not(.btn) { font-size: 1.3rem; }
  .nav-toggle {
    display: grid; gap: 7px; z-index: 110;
    background: none; border: 0; padding: 10px; cursor: pointer;
  }
  .nav-toggle span {
    width: 26px; height: 1.5px; background: var(--cream);
    transition: transform 300ms var(--ease), opacity 300ms var(--ease);
  }
  .nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4.5px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:last-child  { transform: translateY(-4.5px) rotate(-45deg); }

  .grid-2 { grid-template-columns: 1fr; }
  .photo-tilt { margin: 0 0 var(--s-5); transform: rotate(-1.4deg); }
  .sala-detail .scene-copy { padding-right: 0; order: -1; margin-bottom: var(--s-5); }
  .stack-over { left: auto; right: -4%; }
  .menu-grid { grid-template-columns: 1fr; }
  .voci-grid { grid-template-columns: 1fr; }
  .prenota-card { grid-template-columns: 1fr; }
  .fio-copy { margin-inline: 4vw; }
  .dove-grid { grid-template-columns: 1fr; }
  .fio-veil { background: linear-gradient(to top, rgba(20,13,7,.95) 40%, rgba(20,13,7,.45)); }
  .gal { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; }
  .g-tall { grid-column: span 2; }
  .footer-inner, .footer-meta { justify-content: center; text-align: center; }
  .b-far2 { display: none; }
  /* le mongolfiere lasciano respiro alle CTA */
  .b-near  { top: auto; bottom: 26%; left: -5%; width: 86px; opacity: .9; }
  .b-near2 { top: 12%; right: -3%; width: 72px; opacity: .85; }
  .b-mid   { top: 31%; left: 4%; right: auto; width: 58px; }
}

/* ---------- Dove siamo: mappa e come arrivare ---------- */
.wrap-narrow { width: min(780px, 92vw); margin-inline: auto; }
.scene-dove {
  background: linear-gradient(to bottom, transparent, rgba(29, 21, 12, .9) 14%, rgba(29, 21, 12, .9) 86%, transparent);
}
.dove-grid {
  display: grid; grid-template-columns: 1.1fr .9fr;
  gap: clamp(var(--s-5), 5vw, var(--s-8));
  align-items: center;
}
.dove-map {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: var(--s-4);
  background:
    radial-gradient(80% 90% at 50% 20%, rgba(120, 68, 22, .18), transparent 70%),
    linear-gradient(160deg, rgba(36, 26, 15, .8), rgba(22, 16, 10, .75));
  box-shadow: 0 40px 90px rgba(0, 0, 0, .45);
}
.dove-map svg { display: block; width: 100%; height: auto; }
.dove-map figcaption {
  margin-top: var(--s-3);
  text-align: center;
  font-size: .78rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--cream-45);
}
.dove-map figcaption a { color: var(--gold); text-decoration: none; border-bottom: 1px solid rgba(233,180,92,.35); text-transform: none; letter-spacing: .02em; }
.mmap-street { stroke: rgba(244, 232, 211, .13); stroke-width: 2.5; stroke-linecap: round; }
.mmap-label {
  font-family: var(--f-body); font-size: 8.5px; font-weight: 500;
  letter-spacing: .14em; fill: rgba(244, 232, 211, .5);
}
.mmap-label-gold {
  font-family: var(--f-body); font-size: 10px; font-weight: 600;
  letter-spacing: .16em; fill: var(--gold);
}
.mmap-p { font-family: var(--f-body); font-size: 11px; font-weight: 600; fill: var(--gold); }
.mmap-dash { stroke: rgba(244, 232, 211, .35); stroke-width: 1.5; stroke-dasharray: 3 5; fill: none; stroke-linecap: round; }
.mmap-ztl { stroke: rgba(192, 80, 60, .5); stroke-width: 1.5; stroke-dasharray: 8 6; fill: rgba(192, 80, 60, .05); }
.mmap-ztl-label { fill: rgba(217, 138, 118, .8); letter-spacing: .3em; }
.map-pulse {
  fill: none; stroke: var(--gold); stroke-width: 1.5;
  transform-box: fill-box; transform-origin: center;
  animation: mapPulse 2.8s ease-out infinite;
}
.map-pulse-2 { animation-delay: 1.4s; }
@keyframes mapPulse {
  0%   { transform: scale(.6); opacity: .9; }
  100% { transform: scale(3); opacity: 0; }
}
.dove-info { display: grid; gap: var(--s-5); align-content: center; }
.dove-info h3 {
  font-family: var(--f-body); font-size: .74rem; font-weight: 500;
  letter-spacing: .28em; text-transform: uppercase; color: var(--amber);
  margin-bottom: 8px;
}
.dove-info p { font-size: .98rem; line-height: 1.7; }
.dove-info strong { color: var(--gold); font-weight: 500; }
.dove-note { font-size: .8rem; color: var(--cream-45); border-left: 2px solid var(--line); padding-left: var(--s-3); }

/* ---------- FAQ ---------- */
.faq-list details {
  border-bottom: 1px solid var(--line);
}
.faq-list details:first-child { border-top: 1px solid var(--line); }
.faq-list summary {
  position: relative;
  list-style: none;
  cursor: pointer;
  padding: 22px 44px 22px 0;
  font-family: var(--f-display);
  font-size: 1.15rem;
  transition: color var(--t-hover) var(--ease);
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "";
  position: absolute; right: 6px; top: 50%;
  width: 12px; height: 12px;
  translate: 0 -50%;
  background:
    linear-gradient(var(--gold), var(--gold)) center / 12px 1.5px no-repeat,
    linear-gradient(var(--gold), var(--gold)) center / 1.5px 12px no-repeat;
  transition: rotate 300ms var(--ease), opacity 300ms var(--ease);
}
.faq-list details[open] summary::after { rotate: 45deg; }
.faq-list summary:hover, .faq-list details[open] summary { color: var(--gold); }
.faq-list details p {
  padding: 0 0 22px;
  color: var(--cream-70);
  max-width: 58ch;
}
.faq-list details p a { color: var(--gold); text-decoration: none; border-bottom: 1px solid rgba(233,180,92,.35); }

/* ---------- Stato di apertura ---------- */
.open-status .dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  margin-right: 8px;
  vertical-align: 1px;
  background: var(--cream-45);
}
.open-status.is-open .dot {
  background: #86c98a;
  box-shadow: 0 0 10px rgba(134, 201, 138, .8);
  animation: dotPulse 2.4s ease-in-out infinite;
}
.open-status.is-closed .dot {
  background: #d98a76;
  box-shadow: 0 0 8px rgba(217, 138, 118, .6);
}
@keyframes dotPulse {
  0%, 100% { box-shadow: 0 0 6px rgba(134, 201, 138, .5); }
  50%      { box-shadow: 0 0 14px rgba(134, 201, 138, .95); }
}
.open-status.pill {
  display: inline-block;
  margin-top: 10px;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: .82rem; letter-spacing: .04em;
  color: var(--cream-70);
}
.open-status.pill strong { color: var(--cream); font-weight: 500; }

/* ---------- Minimappa ---------- */
.minimap {
  position: fixed;
  right: 22px; top: 50%;
  translate: 0 -50%;
  z-index: 95;
}
.mm-track {
  position: relative;
  width: 20px; height: 44vh;
  cursor: grab;
  touch-action: none;
}
.mm-track:active { cursor: grabbing; }
.mm-track::before {
  content: "";
  position: absolute; left: 50%; top: 0; bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, transparent, rgba(233, 180, 92, .35) 12%, rgba(233, 180, 92, .35) 88%, transparent);
}
.mm-thumb {
  position: absolute; left: 50%;
  width: 5px; height: 26px;
  translate: -50% -50%;
  border-radius: 999px;
  background: linear-gradient(to bottom, #f0c473, var(--amber));
  box-shadow: 0 0 12px rgba(233, 180, 92, .55);
  pointer-events: none;
}
.minimap a {
  position: absolute; left: 50%;
  width: 7px; height: 7px;
  translate: -50% -50%;
  border-radius: 50%;
  background: rgba(244, 232, 211, .35);
  transition: background var(--t-hover) var(--ease), scale var(--t-hover) var(--ease);
}
.minimap a:hover, .minimap a.on {
  background: var(--gold);
  scale: 1.5;
  box-shadow: 0 0 10px rgba(233, 180, 92, .7);
}
.minimap a::after {
  content: attr(data-label);
  position: absolute; right: 18px; top: 50%;
  translate: 0 -50%;
  white-space: nowrap;
  font-size: .68rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold);
  background: rgba(18, 12, 7, .85);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 5px 10px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t-hover) var(--ease);
}
.minimap a:hover::after, .minimap a:focus-visible::after { opacity: 1; }
@media (max-width: 1100px) { .minimap { display: none; } }

/* ---------- Anteprima piatti ---------- */
.menu-list li[data-img] { cursor: default; }
.menu-list li[data-img]:hover .mi-name { color: var(--gold); }
.mi-name { transition: color var(--t-hover) var(--ease); }
.dish-preview {
  position: fixed; top: 0; left: 0;
  z-index: 60;
  pointer-events: none;
  opacity: 0;
  scale: .92;
  transition: opacity 280ms var(--ease), scale 280ms var(--ease);
  will-change: transform;
}
.dish-preview.show { opacity: 1; scale: 1; }
.dish-preview img {
  width: 250px; height: 175px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(233, 180, 92, .4);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .6), var(--glow-gold);
}
@media (pointer: coarse) { .dish-preview { display: none; } }

/* ---------- Scia del cursore ---------- */
#trail {
  position: fixed; inset: 0;
  width: 100%; height: 100%;
  z-index: 55;
  pointer-events: none;
}
@media (pointer: coarse) { #trail { display: none; } }

/* ---------- Riduzione del movimento ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .bwrap, .bdrift, .scroll-hint-line, .open-status .dot, .map-pulse { animation: none !important; }
  #trail, .dish-preview { display: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .sala-img, .fio-media img, .photo-tilt, .photo-stack { transform: none !important; }
  .menu-cat figure img, .gal img { transition: none; }
}
