/* =========================================================
   FTS Frank Transfer Service NCC — Luxury Costa Smeralda
   Notte sul mare · smeraldo · oro champagne · granito e avorio
   ========================================================= */
/* Font ospitati sul sito (niente collegamenti a Google: più privacy e GDPR) */
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 300 700; font-display: swap; src: url("assets/fonts/cormorant-garamond.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 300 700; font-display: swap; src: url("assets/fonts/cormorant-garamond-italic.woff2") format("woff2"); }
@font-face { font-family: "Jost"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("assets/fonts/jost.woff2") format("woff2"); }

:root {
  --night: #0c1619;        /* blu notte del mare */
  --night-2: #13242a;
  --emerald: #1f5f5b;      /* verde smeraldo */
  --emerald-soft: #7fb0a8;
  --gold: #c4a370;         /* oro champagne */
  --gold-deep: #9c7c4a;
  --gold-pale: #e6d3ad;
  --ivory: #faf7f1;
  --sand: #f1ebe0;         /* sabbia / granito chiaro */
  --stone: #e2d9ca;
  --ink: #18221f;
  --muted: #5d6865;
  --line: #e1d8c8;
  --line-dark: rgba(230, 211, 173, .18);
  --white: #fff;
  --wa: #25d366;

  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --header-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; font-variant-numeric: lining-nums; font-feature-settings: "lnum" 1; }
body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0 0 .5em; color: var(--night); }
h1, h2 { font-family: var(--serif); font-weight: 500; line-height: 1.08; letter-spacing: -.005em; }
h3 { font-family: var(--serif); font-weight: 600; font-size: 1.45rem; line-height: 1.2; }
.hy { position: relative; top: -.1em; }
.nobr { white-space: nowrap; }
p { margin: 0 0 1em; }
strong { font-weight: 600; }

.container { width: min(1200px, 100% - 32px); margin-inline: auto; }

/* Eyebrow: piccolo maiuscolo con filetto oro */
.eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: .74rem; font-weight: 500;
  letter-spacing: .32em; text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 1.4rem;
}
.eyebrow::before { content: ""; width: 36px; height: 1px; background: currentColor; }
.lead { font-size: 1.12rem; font-weight: 300; color: var(--muted); max-width: 62ch; }
.ico { width: 18px; height: 18px; flex: none; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .7rem;
  padding: 1.05rem 2rem;
  border-radius: 1px;
  font-family: var(--sans); font-weight: 500; font-size: .8rem;
  letter-spacing: .2em; text-transform: uppercase;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
}
.btn-primary { background: var(--gold); color: var(--night); border-color: var(--gold); }
.btn-primary:hover { background: var(--gold-pale); border-color: var(--gold-pale); }
.btn-ghost { border-color: rgba(250, 247, 241, .55); color: var(--ivory); background: transparent; }
.btn-ghost:hover { background: var(--ivory); color: var(--night); border-color: var(--ivory); }
.btn-block { width: 100%; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* ===== Header (trasparente sul video, avorio allo scroll) ===== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  color: var(--ivory);
  background: linear-gradient(to bottom, rgba(8, 15, 18, .55), transparent);
  transition: background .4s var(--ease), box-shadow .4s var(--ease), color .4s var(--ease);
}
.site-header.is-solid {
  background: rgba(250, 247, 241, .96);
  backdrop-filter: blur(12px);
  color: var(--night);
  box-shadow: 0 1px 0 var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); transition: height .4s var(--ease); }
.is-solid .header-inner { height: 68px; }

.brand { display: flex; align-items: center; gap: .8rem; text-decoration: none; color: inherit; }
.brand img { width: 96px; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .25)); transition: filter .4s; }
.is-solid .brand img { filter: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-family: var(--serif); font-weight: 600; font-size: 1.55rem; letter-spacing: .22em; }
.brand-text small { font-size: .62rem; letter-spacing: .24em; text-transform: uppercase; opacity: .8; }

.main-nav { display: flex; align-items: center; gap: 2.2rem; }
.main-nav a {
  text-decoration: none; white-space: nowrap;
  font-size: .76rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase;
  color: inherit; position: relative; padding: 6px 0;
}
.main-nav a:not(.nav-cta)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--gold); transform: scaleX(0); transform-origin: left;
  transition: transform .35s var(--ease);
}
.main-nav a:not(.nav-cta):hover::after { transform: scaleX(1); }
.main-nav .nav-cta { border: 1px solid var(--gold); padding: .7rem 1.2rem; color: inherit; transition: background .3s, color .3s; }
.main-nav .nav-cta:hover { background: var(--gold); color: var(--night); }

.lang-switch { display: flex; align-items: center; margin-left: 2rem; }
.lang-switch a {
  text-decoration: none; font-size: .7rem; font-weight: 500; letter-spacing: .14em;
  padding: .3rem .5rem; color: inherit; opacity: .6; transition: opacity .3s;
}
.lang-switch a + a { border-left: 1px solid currentColor; border-left-color: rgba(196, 163, 112, .5); }
.lang-switch a:hover { opacity: 1; }
.lang-switch a[aria-current="page"] { opacity: 1; color: var(--gold); }
.is-solid:not(.menu-open) .lang-switch a[aria-current="page"] { color: var(--gold-deep); }

.menu-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; color: inherit; }
.menu-toggle span { display: block; width: 26px; height: 1px; background: currentColor; margin: 7px 0; transition: transform .3s var(--ease), opacity .3s; }

/* ===== Hero video ===== */
.hero {
  position: relative; isolation: isolate;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: flex-end;
  color: var(--ivory);
  background: var(--night);
  overflow: hidden;
}
/* foto di copertina sotto il video (resta visibile se il video non parte) */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -3;
  background: url("assets/hero-poster-2.jpg") 50% 50% / cover no-repeat;
  filter: saturate(1.35) contrast(1.08) brightness(1.02);
}
.hero-video {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 55%;
  filter: saturate(1.35) contrast(1.08) brightness(1.02); /* colori più intensi */
  opacity: 0; transition: opacity .9s var(--ease);
}
.hero-video.is-playing { opacity: 1; }
.hero-shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to top, rgba(8, 15, 18, .78) 0%, rgba(8, 15, 18, .3) 30%, rgba(8, 15, 18, 0) 52%),
    linear-gradient(to right, rgba(8, 15, 18, .5) 0%, rgba(8, 15, 18, .15) 38%, rgba(8, 15, 18, 0) 55%);
}
.hero-inner { padding: calc(var(--header-h) + 40px) 0 clamp(56px, 8vh, 96px); }
.hero-copy { max-width: 760px; }
.hero h1 { max-width: 600px; }
.hero .eyebrow { color: var(--gold-pale); }
.hero h1 {
  color: var(--ivory);
  font-weight: 400;
  font-size: clamp(2rem, 3.1vw, 3.1rem);
  line-height: 1.12;
  text-shadow: 0 2px 30px rgba(0, 0, 0, .25);
}
.hero-sub { font-size: 1rem; font-weight: 300; color: rgba(250, 247, 241, .88); max-width: 50ch; }
.hero-sub strong { color: var(--white); font-weight: 500; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 1.8rem 0 1.6rem; }

.trust {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-wrap: wrap; gap: .5rem 2rem;
  font-size: .74rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase;
  color: rgba(250, 247, 241, .85);
}
.trust li { display: flex; align-items: center; gap: .7rem; }
.trust li::before { content: ""; width: 5px; height: 5px; transform: rotate(45deg); background: var(--gold); }

.scroll-cue {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
  width: 1px; height: 54px; background: rgba(250, 247, 241, .3); overflow: hidden;
}
.scroll-cue span {
  position: absolute; left: 0; top: -40%; width: 1px; height: 40%;
  background: var(--gold-pale); animation: cue 2.2s var(--ease) infinite;
}
@keyframes cue { to { top: 100%; } }

/* ===== Sections ===== */
.section { padding: clamp(80px, 11vw, 140px) 0; }
.section-head { max-width: 800px; margin-bottom: clamp(48px, 6vw, 72px); }
.section-head.center { text-align: center; margin-inline: auto; }
.section-head.center .eyebrow::after { content: ""; width: 36px; height: 1px; background: currentColor; }
.section h2 { font-size: clamp(2.1rem, 4vw, 3.3rem); }

/* Perché noi: colonne con filetto oro */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); }
.feature { padding: 40px 32px 8px 0; border-right: 1px solid var(--line); margin-right: 32px; }
.feature:last-child { border-right: 0; margin-right: 0; }
.feature p { color: var(--muted); font-size: .98rem; font-weight: 300; margin: 0; }
.feature-ico {
  width: 34px; height: 34px; margin-bottom: 22px;
  fill: none; stroke: var(--gold-deep); stroke-width: 1.1; stroke-linecap: round; stroke-linejoin: round;
}

/* ===== Veicolo (notte) ===== */
.section-dark {
  background: radial-gradient(1200px 600px at 100% 0%, rgba(31, 95, 91, .35), transparent 60%), var(--night);
  color: rgba(250, 247, 241, .78);
}
.section-dark h2, .section-dark h3 { color: var(--ivory); }
.section-dark .eyebrow { color: var(--gold); }
.vehicle { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px 80px; align-items: start; }
.vehicle-photo { grid-column: 1 / -1; margin: 0 0 16px; position: relative; overflow: hidden; }
.vehicle-photo img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: 50% 62%; }
.vehicle-photo::after {
  content: ""; position: absolute; inset: 14px; border: 1px solid rgba(230, 211, 173, .35); pointer-events: none;
}

.stats { display: grid; grid-template-columns: repeat(3, 1fr); margin: 40px 0 0; border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); }
.stats div { padding: 24px 8px; text-align: center; }
.stats div + div { border-left: 1px solid var(--line-dark); }
.stats dt { font-family: var(--serif); font-size: 2.6rem; font-weight: 500; color: var(--gold); line-height: 1; }
.stats dd { margin: 10px 0 0; font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: rgba(250, 247, 241, .6); }

.vehicle-list { list-style: none; margin: 0; padding: 0; counter-reset: v; }
.vehicle-list li { counter-increment: v; padding: 26px 0 26px 64px; border-bottom: 1px solid var(--line-dark); position: relative; }
.vehicle-list li:first-child { padding-top: 0; }
.vehicle-list li::before {
  content: counter(v, decimal-leading-zero);
  position: absolute; left: 0; top: 26px;
  font-family: var(--serif); font-size: 1.3rem; color: var(--gold); letter-spacing: .05em;
}
.vehicle-list li:first-child::before { top: 0; }
.vehicle-list h3 { margin-bottom: .2em; }
.vehicle-list p { margin: 0; font-weight: 300; }

/* ===== Destinazioni ===== */
.destinations { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.dest {
  background: var(--ivory); padding: 44px 44px 40px; position: relative;
  transition: background .4s var(--ease);
}
.dest:hover { background: var(--white); }
.dest::before {
  content: ""; position: absolute; left: 44px; top: 0; width: 0; height: 2px;
  background: var(--gold); transition: width .5s var(--ease);
}
.dest:hover::before { width: 64px; }
.dest-num { font-family: var(--serif); font-style: italic; font-size: 1.15rem; color: var(--gold-deep); display: block; margin-bottom: 14px; }
.dest h3 { font-size: 1.7rem; }
.dest p { margin: 0; color: var(--muted); font-weight: 300; }

/* ===== Come funziona ===== */
.section-sand { background: var(--sand); }
.steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; }
.steps li { counter-increment: s; text-align: center; padding: 0 12px; }
.steps li::before {
  content: counter(s, upper-roman);
  display: grid; place-items: center; margin: 0 auto 22px;
  width: 64px; height: 64px; border: 1px solid var(--gold); border-radius: 50%;
  font-family: var(--serif); font-size: 1.4rem; color: var(--gold-deep);
}
.steps p { color: var(--muted); font-weight: 300; margin: 0; }

/* ===== Prenota ===== */
.booking { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(40px, 7vw, 96px); align-items: start; }
.contact-cards { display: grid; margin-top: 40px; border-top: 1px solid var(--line); }
.contact-card {
  display: flex; align-items: center; gap: 18px;
  padding: 20px 4px; border-bottom: 1px solid var(--line);
  text-decoration: none; color: var(--night);
  transition: padding .35s var(--ease), color .35s;
}
.contact-card:hover { padding-left: 14px; color: var(--emerald); }
.contact-card .ico { width: 22px; height: 22px; color: var(--gold-deep); }
.contact-card span { display: flex; flex-direction: column; min-width: 0; overflow-wrap: anywhere; line-height: 1.35; font-family: var(--serif); font-size: 1.35rem; font-weight: 500; }
.contact-card small { font-family: var(--sans); font-size: .66rem; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); }

/* Pannello prenotazione NCCpilot */
.booking-panel {
  background: var(--night); color: rgba(250, 247, 241, .78);
  padding: clamp(32px, 5vw, 60px);
  position: relative;
  box-shadow: 0 40px 80px -40px rgba(12, 22, 25, .45);
}
.booking-panel::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--gold-deep), var(--gold), var(--gold-pale)); }
.booking-panel::after { content: ""; position: absolute; inset: 12px; border: 1px solid var(--line-dark); pointer-events: none; }
.booking-panel .eyebrow { color: var(--gold); }
.booking-panel h3 { color: var(--ivory); font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 500; margin-bottom: 1em; }
.booking-steps { list-style: none; counter-reset: b; margin: 0 0 36px; padding: 0; }
.booking-steps li {
  counter-increment: b; position: relative;
  padding: 16px 0 16px 52px; border-bottom: 1px solid var(--line-dark);
  font-weight: 300; color: rgba(250, 247, 241, .88);
}
.booking-steps li::before {
  content: counter(b, decimal-leading-zero);
  position: absolute; left: 0; top: 14px;
  font-family: var(--serif); font-size: 1.25rem; color: var(--gold);
}
.booking-panel .btn { position: relative; z-index: 1; padding-block: 1.25rem; }
.booking-alt {
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: center; gap: .6rem;
  margin-top: 18px; padding: .6rem;
  font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; text-decoration: none;
  color: var(--ivory); opacity: .8; transition: opacity .3s, color .3s;
}
.booking-alt:hover { opacity: 1; color: var(--gold-pale); }
.booking-note { margin: 22px 0 0; font-size: .82rem; font-weight: 300; text-align: center; color: rgba(250, 247, 241, .55); }

.booking-form {
  background: var(--white); border: 1px solid var(--line);
  padding: clamp(28px, 4.5vw, 52px);
  box-shadow: 0 40px 80px -40px rgba(12, 22, 25, .25);
  position: relative;
}
.booking-form::before { content: ""; position: absolute; top: -1px; left: -1px; right: -1px; height: 3px; background: linear-gradient(90deg, var(--gold-deep), var(--gold), var(--gold-pale)); }
.form-note { font-size: .92rem; font-weight: 300; color: var(--muted); font-style: italic; font-family: var(--serif); font-size: 1.12rem; margin-bottom: 28px; }
.field { margin-bottom: 22px; min-width: 0; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
label { display: block; font-size: .68rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; margin-bottom: 4px; color: var(--muted); }
.opt { letter-spacing: .05em; text-transform: none; font-weight: 400; opacity: .8; }
input, select, textarea {
  width: 100%; font: inherit; font-size: 1.02rem; color: var(--ink);
  padding: .6rem 0; border: 0; border-bottom: 1px solid var(--stone); border-radius: 0;
  background: transparent;
  transition: border-color .3s;
  -webkit-appearance: none; appearance: none;
  min-height: 46px;
}
input::placeholder, textarea::placeholder { color: #a3a8a4; font-weight: 300; }
select {
  background-image: 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='%239c7c4a' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 2px center; background-size: 16px;
  padding-right: 28px;
}
input:focus, select:focus, textarea:focus { outline: none; border-bottom-color: var(--gold-deep); }
.invalid { border-bottom-color: #b04a32 !important; }
textarea { resize: vertical; min-height: 84px; }
.form-error { color: #b04a32; font-size: .9rem; }
.booking-form .btn { margin-top: 10px; }

/* ===== Finestra "Prenota una corsa" (widget NCCpilot) ===== */
.booking-modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; }
.booking-modal[hidden] { display: none; }
.bm-backdrop {
  position: absolute; inset: 0;
  background: rgba(8, 15, 18, .72); backdrop-filter: blur(6px);
  opacity: 0; transition: opacity .3s var(--ease);
}
.bm-dialog {
  position: relative; width: min(560px, 100%); max-height: calc(100svh - 32px); overflow: auto;
  background: var(--ivory);
  box-shadow: 0 40px 100px rgba(0, 0, 0, .45);
  opacity: 0; transform: translateY(18px) scale(.98);
  transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.booking-modal.open .bm-backdrop { opacity: 1; }
.booking-modal.open .bm-dialog { opacity: 1; transform: none; }
.bm-head {
  position: relative;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 26px 28px 24px;
  background: var(--night); color: var(--ivory);
}
.bm-head::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: linear-gradient(90deg, var(--gold-deep), var(--gold), var(--gold-pale)); }
.bm-head h2 { margin: 0; color: var(--ivory); font-size: clamp(1.6rem, 4vw, 2rem); font-weight: 500; }
.bm-close { position: relative; width: 40px; height: 40px; flex: none; background: none; border: 1px solid var(--line-dark); cursor: pointer; transition: border-color .3s; }
.bm-close:hover { border-color: var(--gold); }
.bm-close span { position: absolute; left: 50%; top: 50%; width: 18px; height: 1px; background: var(--ivory); }
.bm-close span:first-child { transform: translate(-50%, -50%) rotate(45deg); }
.bm-close span:last-child { transform: translate(-50%, -50%) rotate(-45deg); }
.bm-body { padding: 28px; }
/* Riserva: se lo script NCCpilot non si carica, i suoi link restano visibili
   e diventano un pulsante. Quando il widget si carica, questi link vengono
   sostituiti dal riquadro di NCCpilot e lo stile qui sotto non si vede. */
.nccpilot-prenota { text-align: center; }
.nccpilot-prenota > a:first-child {
  display: flex; align-items: center; justify-content: center;
  padding: 1.25rem 2rem; background: var(--gold); color: var(--night);
  font-size: .8rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; text-decoration: none;
  transition: background .3s;
}
.nccpilot-prenota > a:first-child:hover { background: var(--gold-pale); }
.nccpilot-prenota > a[slot="by"] { display: inline-block; margin-top: 12px; font-size: .72rem; color: var(--muted); text-decoration: none; }
.bm-alt {
  display: flex; align-items: center; justify-content: center; gap: .6rem;
  margin-top: 20px; padding: .5rem;
  font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; text-decoration: none;
  color: var(--muted); transition: color .3s;
}
.bm-alt:hover { color: var(--emerald); }

@media (max-width: 560px) {
  .booking-modal { padding: 0; place-items: end stretch; }
  .bm-dialog { width: 100%; max-height: 92svh; transform: translateY(40px); }
  .bm-head { padding: 22px 20px 20px; }
  .bm-body { padding: 22px 16px 26px; }
}

/* ===== Footer ===== */
.site-footer { background: var(--night); color: rgba(250, 247, 241, .65); padding: 80px 0 110px; font-size: .94rem; font-weight: 300; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; }
.footer-inner img { width: 150px; margin-bottom: 18px; }
.site-footer strong { color: var(--ivory); font-weight: 500; }
.footer-title { color: var(--gold); font-weight: 500; letter-spacing: .26em; text-transform: uppercase; font-size: .68rem; margin-bottom: 1.2em; }
.site-footer a { text-decoration: none; transition: color .3s; }
.site-footer a:hover { color: var(--gold-pale); }
.footer-legal {
  border-top: 1px solid var(--line-dark);
  margin-top: 56px; padding-top: 28px;
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px 40px;
  font-size: .8rem; line-height: 1.8;
}
.footer-legal p { margin: 0; }
.legal-info strong { font-weight: 500; letter-spacing: .04em; }

/* ===== WhatsApp fisso ===== */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--wa); color: var(--white);
  display: grid; place-items: center;
  box-shadow: 0 12px 28px rgba(12, 22, 25, .3);
  transition: transform .3s var(--ease);
}
.wa-float:hover { transform: translateY(-3px); }
.wa-float svg { width: 30px; height: 30px; }

/* ===== Titoli in stile rivista: parola chiave in corsivo dorato ===== */
h1 em, h2 em { font-style: italic; font-weight: inherit; color: var(--gold-deep); }
.hero h1 em, .section-dark h2 em { color: var(--gold); }
.hero h1 em { white-space: nowrap; }

/* Apertura: il titolo compare parola per parola, poi il resto */
.hero h1 .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.hero h1 .w > span { display: inline-block; transform: translateY(105%); animation: word-up 1s var(--ease) forwards; }
@keyframes word-up { to { transform: none; } }
.hero-anim .hero-copy > :not(h1), .hero-anim .scroll-cue { opacity: 0; animation: fade-up 1s var(--ease) forwards; }
.hero-anim .hero-copy > .eyebrow { animation-delay: .1s; }
.hero-anim .hero-copy > .hero-sub { animation-delay: .9s; }
.hero-anim .hero-copy > .hero-actions { animation-delay: 1.1s; }
.hero-anim .hero-copy > .trust { animation-delay: 1.3s; }
.hero-anim .scroll-cue { animation-delay: 1.6s; }
@keyframes fade-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* ===== Foto che si svelano a sipario ===== */
.vehicle-photo.reveal { opacity: 1; transform: none; clip-path: inset(14% 6% 14% 6%); transition: clip-path 1.5s var(--ease); }
.vehicle-photo.reveal img { transform: scale(1.14); transition: transform 2.2s var(--ease); }
.vehicle-photo.reveal.in { clip-path: inset(0); }
.vehicle-photo.reveal.in img { transform: none; }
.gallery-wrap.reveal .g-item { clip-path: inset(100% 0 0 0); transition: clip-path 1.2s var(--ease); }
.gallery-wrap.reveal.in .g-item { clip-path: inset(0); }
.gallery-wrap.reveal.in .g-item:nth-child(2) { transition-delay: .12s; }
.gallery-wrap.reveal.in .g-item:nth-child(3) { transition-delay: .24s; }
.gallery-wrap.reveal.in .g-item:nth-child(4) { transition-delay: .36s; }
.gallery-wrap.reveal.in .g-item:nth-child(5) { transition-delay: .48s; }
.gallery-wrap.reveal.in .g-item:nth-child(6) { transition-delay: .6s; }
.gallery-wrap.reveal.in .g-item:nth-child(7) { transition-delay: .72s; }
.gallery-wrap.reveal.in .g-item:nth-child(8) { transition-delay: .84s; }
.gallery-wrap.reveal.in .g-item:nth-child(9) { transition-delay: .96s; }
.gallery-wrap.reveal.in .g-item:nth-child(10) { transition-delay: 1.08s; }

/* ===== Barra prenotazione fissa (solo telefono/tablet) ===== */
.mobile-bar { display: none; }

/* ===== Animazione d'ingresso (gestita da script.js) ===== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ===== Responsive ===== */
@media (max-width: 1080px) {
  .menu-toggle { display: block; }
  .lang-switch { margin-left: auto; margin-right: 8px; }
  .main-nav {
    position: fixed; inset: 0; z-index: -1;
    flex-direction: column; justify-content: center; align-items: center; gap: 0;
    background: var(--night); color: var(--ivory);
    opacity: 0; visibility: hidden;
    transition: opacity .4s var(--ease), visibility .4s;
  }
  .main-nav.open { opacity: 1; visibility: visible; }
  .main-nav a { font-family: var(--serif); font-size: 2rem; letter-spacing: .02em; text-transform: none; font-weight: 400; padding: 12px 0; }
  .main-nav .nav-cta { margin-top: 24px; font-family: var(--sans); font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; padding: 1rem 1.8rem; }
  .site-header.menu-open { color: var(--ivory); background: transparent; box-shadow: none; backdrop-filter: none; }
  .menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

  .features { grid-template-columns: repeat(2, 1fr); border-top: 0; gap: 0 40px; }
  .feature { border-right: 0; margin-right: 0; border-top: 1px solid var(--line); padding-right: 0; padding-bottom: 32px; }
}

/* ===== Pagine legali (Privacy / Cookie) ===== */
.page-legal { background: var(--ivory); }
.legal { padding: calc(var(--header-h) + clamp(48px, 8vw, 96px)) 0 clamp(64px, 9vw, 120px); }
.legal-inner { max-width: 820px; }
.legal h1 { font-weight: 400; font-size: clamp(2.2rem, 5vw, 3.4rem); margin: .2em 0 .3em; }
.legal-updated { font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-deep); margin: 0 0 2rem; }
.legal-intro { font-size: 1.12rem; font-weight: 300; line-height: 1.75; padding-bottom: 2rem; border-bottom: 1px solid rgba(156, 124, 74, .3); }
.legal-section { padding: 2rem 0 .4rem; border-bottom: 1px solid rgba(156, 124, 74, .18); }
.legal-section h2 { font-size: clamp(1.45rem, 2.6vw, 1.9rem); font-weight: 500; margin: 0 0 .7em; }
.legal-section p, .legal-section li { font-weight: 300; line-height: 1.75; }
.legal-section ul { padding-left: 1.2em; margin: 0 0 1em; }
.legal-section li { margin-bottom: .55em; }
.legal-section li::marker { color: var(--gold); }
.legal-section a, .legal-intro a { color: var(--emerald); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(31, 95, 91, .35); overflow-wrap: anywhere; }
.legal-section strong { font-weight: 500; }
.legal-card { background: var(--sand); border-left: 2px solid var(--gold); padding: 20px 24px; line-height: 1.8; }
.legal-back { margin-top: 3rem; }
.btn-ghost-dark { border-color: var(--night); color: var(--night); background: transparent; }
.btn-ghost-dark:hover { background: var(--night); color: var(--ivory); }

.legal-modal .bm-dialog { width: min(820px, 100%); }
.legal-body .legal-updated { margin-bottom: 1rem; }
.legal-body .legal-intro { font-size: 1.02rem; padding-bottom: 1.4rem; }
.legal-body .legal-section { padding: 1.4rem 0 .2rem; }
.legal-body .legal-section:last-child { border-bottom: 0; }
.legal-body .legal-section h2 { font-size: 1.4rem; color: var(--night); }

/* ===== Galleria foto ===== */
.gallery-wrap { grid-column: 1 / -1; margin-top: 24px; }
.gallery {
  display: grid; grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: clamp(170px, 19vw, 270px); gap: 12px;
  grid-auto-flow: dense;
}
.g-item { margin: 0; overflow: hidden; position: relative; background: #0a1215; }
.g-tall { grid-row: span 2; }
.g-wide { grid-column: span 2; }
.g-item a { display: block; height: 100%; cursor: zoom-in; }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease), opacity .4s; }
.g-portrait img { object-position: 50% 28%; }
.g-rocce img { object-position: 50% 70%; }
.g-item a:hover img, .g-item a:focus-visible img { transform: scale(1.045); }
.g-item::after { content: ""; position: absolute; inset: 0; border: 1px solid rgba(196, 163, 112, 0); transition: border-color .4s; pointer-events: none; }
.g-item:hover::after { border-color: rgba(196, 163, 112, .55); }
.gallery-hint { display: none; }

/* Foto a schermo intero */
.lightbox {
  position: fixed; inset: 0; z-index: 120;
  display: flex; align-items: center; justify-content: center;
  background: rgba(8, 15, 18, .95);
  opacity: 0; transition: opacity .3s var(--ease);
}
.lightbox.open { opacity: 1; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: min(92vw, 1400px); max-height: 84vh; object-fit: contain; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.lb-btn {
  position: absolute; background: none; border: 1px solid rgba(230, 211, 173, .35); color: var(--gold-pale);
  width: 48px; height: 48px; display: grid; place-items: center; cursor: pointer; font-size: 1.4rem; line-height: 1;
  transition: background .3s, border-color .3s;
}
.lb-btn:hover { background: rgba(196, 163, 112, .15); border-color: var(--gold); }
.lb-close { top: 18px; right: 18px; }
.lb-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 18px; top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); font-size: .72rem; letter-spacing: .24em; color: rgba(250, 247, 241, .6); }

@media (max-width: 860px) {
  .wa-float { display: none; }
  body { padding-bottom: calc(78px + env(safe-area-inset-bottom)); }
  .mobile-bar {
    display: flex; gap: 8px;
    position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 60;
    transform: translateY(140%); opacity: 0;
    transition: transform .5s var(--ease), opacity .5s var(--ease);
  }
  .mobile-bar.show { transform: none; opacity: 1; }
  .menu-is-open .mobile-bar { transform: translateY(140%); opacity: 0; pointer-events: none; }
  .mobile-bar-book {
    flex: 1; display: grid; place-items: center; height: 56px;
    background: rgba(12, 22, 25, .9); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
    border: 1px solid rgba(196, 163, 112, .55); color: var(--ivory); text-decoration: none;
    font-size: .78rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .28);
  }
  .mobile-bar-book:active { background: var(--gold); color: var(--night); }
  .mobile-bar-wa {
    width: 56px; height: 56px; flex: none; display: grid; place-items: center;
    background: var(--wa); color: var(--white); box-shadow: 0 12px 30px rgba(0, 0, 0, .28);
  }
  .mobile-bar-wa svg { width: 28px; height: 28px; }
  /* Galleria: scorrimento col dito */
  .gallery {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px;
    margin-inline: -16px; padding-inline: 16px; scroll-padding-inline: 16px;
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .gallery::-webkit-scrollbar { display: none; }
  .g-item { flex: 0 0 78%; aspect-ratio: 4 / 5; scroll-snap-align: start; }
  .g-wide, .g-tall { grid-row: auto; grid-column: auto; }
  .gallery-hint { display: block; margin: 14px 0 0; font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: rgba(250, 247, 241, .5); }
  .lb-prev, .lb-next { top: auto; bottom: 14px; transform: none; }
  .lb-count { bottom: 30px; }

  .vehicle, .booking { grid-template-columns: 1fr; }
  .vehicle-photo img { aspect-ratio: 4 / 3; }
  .destinations, .steps { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 560px) {
  :root { --header-h: 70px; }
  body { font-size: 16px; }
  .brand img { width: 72px; }
  .brand-text strong { font-size: 1.3rem; }
  .brand-text small { display: none; }
  /* Telefono: video in alto (van ben visibile), testo sotto su fondo notte */
  .hero { display: block; min-height: 0; background: var(--night); }
  .hero-video, .hero-shade, .hero::before { bottom: auto; height: 64vh; height: 64svh; }
  .hero::before { background-position: 55% 50%; }
  .hero-video { object-position: 55% 50%; }
  .hero-shade {
    background: linear-gradient(to bottom, rgba(8, 15, 18, .55) 0%, rgba(8, 15, 18, 0) 22%, rgba(8, 15, 18, 0) 58%, rgba(12, 22, 25, .85) 86%, var(--night) 100%);
  }
  .hero-inner { padding-top: calc(64vh - 70px); padding-top: calc(64svh - 70px); padding-bottom: 64px; }
  .hero h1 { font-size: 2.15rem; }
  .hero-sub { font-size: 1.02rem; }
  .hero-actions .btn { width: 100%; }
  .trust { gap: .5rem 1.4rem; font-size: .68rem; }
  .features { grid-template-columns: 1fr; }
  .stats dt { font-size: 1.7rem; }
  .stats dd { font-size: .62rem; letter-spacing: .12em; }
  .eyebrow { letter-spacing: .22em; gap: 10px; }
  .eyebrow::before { width: 24px; }
  .hero .eyebrow::before { display: none; }
  .dest { padding: 34px 26px 30px; }
  .dest::before { left: 26px; }
  .row { grid-template-columns: 1fr 1fr; gap: 16px; }
  .scroll-cue { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Pulsanti social */
.social { display: flex; gap: 12px; }
.social a {
  width: 44px; height: 44px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid rgba(201, 169, 110, .45); color: var(--gold);
  transition: background .3s, color .3s, border-color .3s, transform .3s;
}
.social a::after { display: none !important; }
.social svg { width: 19px; height: 19px; fill: currentColor; }
.social a:hover, .social a:focus-visible { background: var(--gold); border-color: var(--gold); color: var(--night); transform: translateY(-2px); }
.site-footer .social a:hover { color: var(--night); }
.social-footer { margin-top: 22px; }
.social-menu { display: none; }
@media (max-width: 1080px) {
  .main-nav .social-menu { display: flex; margin-top: 36px; gap: 16px; }
  .main-nav .social-menu a { padding: 0; font-size: 0; width: 48px; height: 48px; }
}

/* Pulsante musica sul video */
.sound-toggle {
  position: absolute; z-index: 3; right: 24px; bottom: 96px;
  width: 50px; height: 50px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(8, 15, 18, .35); color: var(--gold-pale, #e8d6b0);
  border: 1px solid rgba(201, 169, 110, .6);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  cursor: pointer; transition: background .3s, color .3s, transform .3s;
}
.sound-toggle:hover, .sound-toggle:focus-visible { background: var(--gold); color: var(--night); transform: scale(1.06); }
.sound-toggle svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.sound-toggle .spk { fill: currentColor; stroke: none; }
.sound-toggle .w { display: none; }
.sound-toggle.is-on .w { display: inline; }
.sound-toggle.is-on .x { display: none; }
.sound-toggle.is-on::after {
  content: ""; position: absolute; inset: -6px; border-radius: 50%;
  border: 1px solid rgba(201, 169, 110, .5);
  animation: sound-pulse 2.4s ease-out infinite;
}
@keyframes sound-pulse { from { transform: scale(.9); opacity: 1; } to { transform: scale(1.35); opacity: 0; } }
@media (max-width: 560px) {
  .sound-toggle { top: calc(64svh - 62px); bottom: auto; right: 16px; width: 46px; height: 46px; }
}
