/* ============ YachtPerBudget — styles ============ */
:root {
  --navy: #0e3a5c;
  --navy-2: #134a72;
  --navy-3: #1b5d8c;
  --sea: #1f6b86;
  --sand: #f5efe4;
  --foam: #fbfbf9;
  --brass: #d4a84f;
  --brass-2: #b08b4f;
  --ink: #15304a;
  --muted: #5a6c7d;
  --line: rgba(11, 27, 43, .12);
  --err: #c2543f;
  --glass: rgba(255, 255, 255, .09);
  --glass-line: rgba(255, 255, 255, .22);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --r: 18px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: #eaf2f7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.wz-open { overflow: hidden; }
img, svg, video { display: block; }
button { font: inherit; color: inherit; cursor: pointer; }
input, select { font: inherit; }
a { color: inherit; }
svg { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

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

/* ---------- Background video ---------- */
.bg { position: fixed; inset: 0; z-index: 0; overflow: hidden; background: radial-gradient(120% 90% at 50% 10%, #1f5f7a 0%, #0b2a44 45%, var(--navy) 100%); }
.bg-video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.04);
  transition: transform 1.6s var(--ease), filter 1.2s var(--ease);
  opacity: 0; animation: fadeIn 1.8s .2s var(--ease) forwards;
}
.bg-veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(7,24,42,.55) 0%, rgba(7,24,42,.12) 35%, rgba(7,24,42,.25) 65%, rgba(7,24,42,.85) 100%),
    radial-gradient(80% 60% at 20% 60%, rgba(7,24,42,.45), transparent 70%);
  transition: background-color 1s var(--ease);
}
.bg-grain {
  position: absolute; inset: -50%; opacity: .06; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
body.wz-open .bg-video { transform: scale(1.14); filter: blur(7px) saturate(1.1) brightness(.75); }
body.wz-open .bg-veil { background-color: rgba(7,24,42,.45); }

@keyframes fadeIn { to { opacity: 1; } }

/* ---------- NAV ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 22px clamp(16px, 4vw, 48px);
  color: var(--foam);
  transition: padding .5s var(--ease), background-color .5s var(--ease), backdrop-filter .5s;
}
.nav.scrolled { padding-block: 12px; background: rgba(7,24,42,.72); backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3); box-shadow: 0 1px 0 rgba(255,255,255,.06); }
body.wz-open .nav { background: transparent; box-shadow: none; backdrop-filter: none; padding-block: 18px; }

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--foam); }
.brand-mark { width: 38px; height: 38px; stroke: none; }
.brand-mark path[stroke], .brand-mark circle { stroke: currentColor; }
.brand-name { font-family: var(--serif); font-size: 1.65rem; font-weight: 500; letter-spacing: .02em; }

.nav-links { display: flex; gap: 30px; font-size: .8rem; white-space: nowrap; letter-spacing: .08em; text-transform: uppercase; transition: opacity .4s, transform .5s var(--ease); }
.nav-links a { text-decoration: none; opacity: .85; position: relative; padding: 4px 0; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: var(--brass); transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease); }
.nav-links a:hover { opacity: 1; }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }
body.wz-open .nav-links { opacity: 0; transform: translateY(-8px); pointer-events: none; }

.nav-right { display: flex; align-items: center; gap: 12px; }
.nav-cta { transition: opacity .4s, transform .4s var(--ease); }
body.wz-open .nav-cta { opacity: 0; pointer-events: none; transform: translateY(-6px); }

.nav-home {
  display: none; align-items: center; gap: 6px; background: none; border: 0; padding: 8px 12px; border-radius: 999px;
  color: var(--foam); font-size: .9rem; opacity: 0;
}
.nav-home svg { width: 18px; height: 18px; }
.nav-home:hover { background: rgba(255,255,255,.1); }
body.wz-open .nav-home { display: inline-flex; animation: fadeIn .5s .3s forwards; }

/* Language */
.lang { position: relative; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 7px; padding: 9px 14px; border-radius: 999px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.22); color: var(--foam);
  font-size: .82rem; font-weight: 600; letter-spacing: .08em;
  transition: background .3s;
}
.lang-btn:hover { background: rgba(255,255,255,.16); }
.lang-btn svg { width: 16px; height: 16px; }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 10px); list-style: none; margin: 0; padding: 6px; min-width: 170px;
  background: var(--foam); color: var(--ink); border-radius: 14px; box-shadow: 0 20px 50px rgba(0,0,0,.3);
  opacity: 0; transform: translateY(-6px) scale(.98); transform-origin: top right; pointer-events: none;
  transition: opacity .25s, transform .3s var(--ease);
}
.lang.open .lang-menu { opacity: 1; transform: none; pointer-events: auto; }
.lang-menu button { width: 100%; display: flex; gap: 12px; align-items: center; padding: 10px 12px; border: 0; background: none; border-radius: 9px; text-align: left; font-size: .92rem; }
.lang-menu button b { font-size: .75rem; letter-spacing: .08em; color: var(--brass-2); width: 22px; }
.lang-menu button:hover, .lang-menu button[aria-selected="true"] { background: rgba(11,27,43,.06); }

/* ---------- Buttons ---------- */
.btn {
  --bh: 54px;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--bh); padding: 0 26px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: .95rem; letter-spacing: .02em; text-decoration: none; white-space: nowrap;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background-color .3s, color .3s, border-color .3s;
  overflow: hidden; isolation: isolate;
}
.btn svg { width: 19px; height: 19px; transition: transform .4s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: scale(.98); }
.btn-brass { background: var(--brass); color: var(--navy); box-shadow: 0 10px 30px -10px rgba(200,165,106,.8); }
.btn-brass::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.45) 50%, transparent 70%); transform: translateX(-120%); transition: transform .9s var(--ease); }
.btn-brass:hover::before { transform: translateX(120%); }
.btn-brass:hover { box-shadow: 0 16px 40px -12px rgba(200,165,106,.95); transform: translateY(-1px); }
.btn-navy { background: var(--navy); color: var(--foam); }
.btn-navy:hover { background: var(--navy-3); transform: translateY(-1px); box-shadow: 0 14px 30px -14px rgba(7,24,42,.7); }
.btn-ghost { --bh: 42px; padding: 0 20px; font-size: .85rem; color: var(--foam); border-color: rgba(255,255,255,.35); }
.btn-ghost:hover { background: var(--foam); color: var(--navy); }
.btn-text { background: none; color: var(--muted); padding: 0 12px; }
.btn-text:hover { color: var(--ink); }
.btn-text:hover svg { transform: translateX(-3px); }

.linklike { background: none; border: 0; padding: 0; color: inherit; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--brass); }

/* ---------- Eyebrow ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 14px; margin: 0 0 18px; font-size: .78rem; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--brass); }
.eyebrow .line { width: 38px; height: 1px; background: currentColor; }

/* ---------- HERO ---------- */
.hero {
  position: relative; z-index: 1; min-height: 100svh;
  display: flex; align-items: center; color: var(--foam);
  padding: 120px clamp(16px, 4vw, 48px) 110px;
}
.hero-inner { width: min(1180px, 100%); margin-inline: auto; transition: opacity .7s var(--ease), transform .9s var(--ease), filter .7s; }
body.wz-open .hero-inner { opacity: 0; transform: translateY(-40px) scale(.98); filter: blur(6px); pointer-events: none; }
body.wz-open .scroll-cue { opacity: 0; }

.hero-eyebrow { color: var(--sand); opacity: 0; animation: rise 1s .3s var(--ease) forwards; }
.hero-eyebrow .line { background: var(--brass); }
.hero-title {
  margin: 0; font-family: var(--serif); font-weight: 400; line-height: .95;
  font-size: clamp(3.4rem, 10vw, 8.6rem); letter-spacing: -.01em;
}
.hero-title .w { display: block; overflow: hidden; padding-bottom: .06em; }
.hero-title .w > * { display: inline-block; transform: translateY(105%); animation: wordUp 1.2s var(--ease) forwards; }
.hero-title .w:nth-child(1) > * { animation-delay: .45s; }
.hero-title .w:nth-child(2) > * { animation-delay: .62s; }
.hero-title em { font-style: italic; color: var(--sand); padding-left: .5em; }
.hero-lead { max-width: 520px; margin: 26px 0 44px; font-size: clamp(1rem, 1.3vw, 1.12rem); line-height: 1.7; color: rgba(248,245,239,.85); font-weight: 300; opacity: 0; animation: rise 1s .9s var(--ease) forwards; }

@keyframes wordUp { to { transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* Search bar */
.search {
  display: grid; grid-template-columns: 1.55fr .8fr 1fr auto; align-items: stretch;
  background: var(--glass); border: 1px solid var(--glass-line); border-radius: 26px; padding: 10px;
  backdrop-filter: blur(22px) saturate(1.4); -webkit-backdrop-filter: blur(22px) saturate(1.4);
  box-shadow: 0 30px 80px -30px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.18);
  color-scheme: dark;
  opacity: 0; animation: rise 1.1s 1.05s var(--ease) forwards;
}
.search-field { position: relative; padding: 14px 22px 12px; border-radius: 18px; transition: background .3s; min-width: 0; }
.search-field + .search-field::before { content: ""; position: absolute; left: 0; top: 18px; bottom: 18px; width: 1px; background: rgba(255,255,255,.18); }
.search-field:hover, .search-field:focus-within { background: rgba(255,255,255,.08); }
.search-field:focus-within::before, .search-field:hover::before, .search-field:focus-within + .search-field::before, .search-field:hover + .search-field::before { opacity: 0; }
.search .lbl { color: var(--sand); }

.lbl { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.mini { display: block; font-size: .7rem; color: rgba(248,245,239,.6); margin-bottom: 2px; }
.dates { display: flex; align-items: flex-end; gap: 10px; }
.date { flex: 1; min-width: 0; }
.date-sep { color: var(--brass); padding-bottom: 6px; }
.date input {
  width: 100%; background: none; border: 0; outline: 0; color: var(--foam); padding: 2px 0; font-size: 1.02rem; font-weight: 500;
}
.date input::-webkit-calendar-picker-indicator { filter: invert(.85) sepia(.4); opacity: .8; cursor: pointer; }

.select { position: relative; }
.select::after { content: ""; position: absolute; right: 2px; top: 50%; width: 8px; height: 8px; border-right: 1.6px solid var(--brass); border-bottom: 1.6px solid var(--brass); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.select select { appearance: none; -webkit-appearance: none; width: 100%; background: none; border: 0; outline: 0; color: var(--foam); font-size: 1.02rem; font-weight: 500; padding: 4px 22px 4px 0; cursor: pointer; }
.select select:invalid { color: rgba(248,245,239,.55); }
.select option { color: var(--ink); background: var(--foam); }

.search-cta { --bh: auto; min-height: 64px; border-radius: 18px; padding: 0 30px; align-self: stretch; }

/* Stepper */
.stepper { display: inline-flex; align-items: center; gap: 12px; }
.st-btn {
  width: 32px; height: 32px; border-radius: 50%; border: 1px solid currentColor; background: none;
  display: grid; place-items: center; font-size: 1.1rem; line-height: 1; opacity: .75;
  transition: opacity .2s, background .25s, color .25s, transform .2s;
}
.st-btn:hover:not(:disabled) { opacity: 1; background: var(--brass); border-color: var(--brass); color: var(--navy); }
.st-btn:active:not(:disabled) { transform: scale(.9); }
.st-btn:disabled { opacity: .25; cursor: not-allowed; }
.st-val { min-width: 26px; text-align: center; font-size: 1.1rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.st-val.bump { animation: bump .35s var(--ease); }
@keyframes bump { 40% { transform: scale(1.3); color: var(--brass); } }
.search .stepper { color: var(--foam); }

.err { display: block; min-height: 0; font-size: .78rem; color: var(--err); margin-top: 6px; font-weight: 500; }
.err:empty { display: none; }
.search .err { color: #ffb4a3; position: absolute; left: 22px; right: 12px; bottom: -22px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.field.invalid { animation: shake .45s; }
@keyframes shake { 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }

.scroll-cue { position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 10px; color: rgba(248,245,239,.7); text-decoration: none; font-size: .7rem; letter-spacing: .26em; text-transform: uppercase; transition: opacity .5s; }
.scroll-cue i { width: 1px; height: 44px; background: linear-gradient(var(--foam), transparent); position: relative; overflow: hidden; }
.scroll-cue i::after { content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--brass); animation: drip 2.2s var(--ease-in-out) infinite; }
@keyframes drip { to { top: 110%; } }

/* ---------- Content sections ---------- */
.content { position: relative; z-index: 2; background: var(--foam); border-radius: 36px 36px 0 0; box-shadow: 0 -30px 60px rgba(0,0,0,.25); transition: opacity .6s, transform .8s var(--ease); }
body.wz-open .content { opacity: 0; transform: translateY(60px); pointer-events: none; }
.sec { padding: clamp(80px, 11vw, 140px) 0; }
.sec-title { font-family: var(--serif); font-weight: 400; font-size: clamp(2.3rem, 5vw, 3.9rem); line-height: 1.05; margin: 0 0 56px; max-width: 760px; color: var(--navy); }

.how-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.how-card { padding: 38px 32px; border-radius: var(--r); background: #fff; border: 1px solid var(--line); transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.how-card:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -30px rgba(7,24,42,.35); }
.how-n { font-family: var(--serif); font-size: 3rem; color: var(--brass); line-height: 1; }
.how-card h3 { font-size: 1.2rem; margin: 22px 0 10px; color: var(--navy); }
.how-card p { margin: 0; color: var(--muted); line-height: 1.65; }

.fleet { background: var(--navy); color: var(--foam); }
.fleet .sec-title { color: var(--foam); }
.fleet-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.1); border-radius: var(--r); overflow: hidden; }
.fleet-item { background: var(--navy); padding: 36px 32px; transition: background .5s var(--ease); position: relative; }
.fleet-item:hover { background: var(--navy-2); }
.fleet-item svg { width: 108px; height: 60px; color: var(--sand); stroke-width: 1.4; margin-bottom: 26px; transition: transform .8s var(--ease), color .4s; }
.fleet-item:hover svg { transform: translateX(10px); color: var(--brass); }
.fleet-item h3 { font-family: var(--serif); font-weight: 500; font-size: 1.7rem; margin: 0 0 8px; }
.fleet-item p { margin: 0; color: rgba(248,245,239,.65); line-height: 1.6; font-size: .95rem; }

.dest-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.dest-card { position: relative; border-radius: var(--r); overflow: hidden; aspect-ratio: 4 / 5; color: var(--foam); background: linear-gradient(180deg, var(--g1), var(--g2)); isolation: isolate; cursor: default; }
.dest-art { position: absolute; inset: 0; z-index: -1; }
.dest-art .sun { position: absolute; width: 38%; aspect-ratio: 1; border-radius: 50%; left: 50%; top: 38%; transform: translate(-50%, -50%); background: radial-gradient(circle, var(--sun) 0%, color-mix(in srgb, var(--sun) 50%, transparent) 45%, transparent 70%); transition: transform 1.2s var(--ease); }
.dest-art svg { position: absolute; left: -5%; right: -5%; width: 110%; bottom: 0; height: 55%; fill: var(--g2); stroke: none; transition: transform 1.4s var(--ease); }
.dest-card:hover .sun { transform: translate(-50%, -62%) scale(1.08); }
.dest-card:hover .dest-art svg { transform: translateX(-4%); }
.dest-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px; background: linear-gradient(transparent, rgba(0,0,0,.35)); }
.dest-c { font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; opacity: .8; }
.dest-body h3 { font-family: var(--serif); font-weight: 500; font-size: 1.9rem; margin: 6px 0 0; line-height: 1.1; }

.band { background: var(--sand); padding: 90px 0; }
.band-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.band h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(2rem, 4vw, 3.2rem); margin: 0; color: var(--navy); max-width: 640px; line-height: 1.1; }

.footer { background: var(--navy); color: var(--foam); padding: 60px 0 40px; }
.footer-inner { display: grid; grid-template-columns: auto 1fr auto; gap: 30px; align-items: center; }
.foot-tag { margin: 0; color: rgba(248,245,239,.6); }
.foot-legal { margin: 0; color: rgba(248,245,239,.6); font-size: .88rem; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.how-grid .reveal:nth-child(2), .dest-grid .reveal:nth-child(3n+2) { transition-delay: .1s; }
.how-grid .reveal:nth-child(3), .dest-grid .reveal:nth-child(3n) { transition-delay: .2s; }

/* ---------- WIZARD ---------- */
.wizard {
  position: fixed; inset: 0; z-index: 40; overflow-y: auto; overscroll-behavior: contain;
  visibility: hidden; opacity: 0;
  transition: opacity .6s var(--ease), visibility 0s .6s;
}
body.wz-open .wizard { visibility: visible; opacity: 1; transition: opacity .7s .35s var(--ease), visibility 0s; }
.wz-inner { width: min(820px, 100% - 32px); margin: 0 auto; padding: 100px 0 60px; min-height: 100%; display: flex; flex-direction: column; justify-content: center; }
.wz-head { color: var(--foam); margin-bottom: 22px; transform: translateY(20px); opacity: 0; transition: transform .8s .45s var(--ease), opacity .8s .45s; }
body.wz-open .wz-head { transform: none; opacity: 1; }

.progress { list-style: none; margin: 0 0 18px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; counter-reset: p; }
.progress li { position: relative; display: flex; align-items: center; gap: 10px; padding-top: 14px; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(248,245,239,.5); transition: color .5s; }
.progress li::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; border-radius: 2px; background: rgba(255,255,255,.18); }
.progress li::after { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; border-radius: 2px; background: var(--brass); transform: scaleX(0); transform-origin: left; transition: transform .8s var(--ease); }
.progress li.done::after, .progress li.active::after { transform: scaleX(1); }
.progress li.active, .progress li.done { color: var(--foam); }
.progress i { font-style: normal; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: .7rem; border: 1px solid currentColor; flex: none; transition: background .4s, color .4s, border-color .4s; }
.progress li.done i { background: var(--brass); border-color: var(--brass); color: var(--navy); }
.progress.hidden { opacity: 0; }

.recap { display: flex; flex-wrap: wrap; gap: 8px; min-height: 32px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 13px; border-radius: 999px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); font-size: .8rem; color: var(--foam); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); animation: chipIn .5s var(--ease) both; }
.chip svg { width: 14px; height: 14px; color: var(--brass); }
@keyframes chipIn { from { opacity: 0; transform: translateY(6px) scale(.95); } }

.card {
  position: relative; background: var(--foam); border-radius: 28px; padding: clamp(28px, 5vw, 52px);
  box-shadow: 0 50px 120px -40px rgba(0,0,0,.65), 0 0 0 1px rgba(255,255,255,.3) inset;
  transform: translateY(40px) scale(.98); opacity: 0;
  transition: transform 1s .4s var(--ease), opacity .8s .4s, height .5s var(--ease);
  color-scheme: light;
}
body.wz-open .card { transform: none; opacity: 1; }

.step { display: none; }
.step.active { display: block; animation: stepIn .7s var(--ease) both; }
.step.leaving { display: block; animation: stepOut .3s var(--ease-in-out) both; }
.step.back.active { animation-name: stepInBack; }
.step.back.leaving { animation-name: stepOutBack; }
@keyframes stepIn { from { opacity: 0; transform: translateX(40px); filter: blur(4px); } }
@keyframes stepInBack { from { opacity: 0; transform: translateX(-40px); filter: blur(4px); } }
@keyframes stepOut { to { opacity: 0; transform: translateX(-30px); filter: blur(3px); } }
@keyframes stepOutBack { to { opacity: 0; transform: translateX(30px); filter: blur(3px); } }
.step.active > * { animation: rise .7s var(--ease) both; }
.step.active > *:nth-child(2) { animation-delay: .05s; }
.step.active > *:nth-child(3) { animation-delay: .1s; }
.step.active > *:nth-child(4) { animation-delay: .15s; }
.step.active > *:nth-child(5) { animation-delay: .2s; }
.step.active > *:nth-child(n+6) { animation-delay: .25s; }

.step-eyebrow { margin: 0 0 10px; font-size: .74rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--brass-2); }
.step-title { margin: 0 0 10px; font-family: var(--serif); font-weight: 500; font-size: clamp(2rem, 4.4vw, 2.9rem); line-height: 1.05; color: var(--navy); }
.step-lead { margin: 0 0 30px; color: var(--muted); line-height: 1.6; max-width: 560px; }
.step > .field { margin-bottom: 26px; }
.step-title + .field { margin-top: 26px; }

/* Inputs (light) */
.inp, .ac input {
  width: 100%; height: 56px; padding: 0 18px; border-radius: 14px; border: 1px solid var(--line); background: #fff; color: var(--ink);
  font-size: 1rem; outline: 0; transition: border-color .25s, box-shadow .25s;
}
.inp:focus, .ac input:focus { border-color: var(--brass); box-shadow: 0 0 0 4px rgba(200,165,106,.2); }
.field.invalid .inp, .field.invalid .ac input { border-color: var(--err); }

/* Route */
.route { position: relative; z-index: 3; display: grid; grid-template-columns: 1fr auto 1fr; gap: 14px; align-items: start; margin-bottom: 18px; }
.ac { position: relative; }
.ac input { padding-left: 48px; }
.ac-ico { position: absolute; left: 16px; top: 18px; width: 20px; height: 20px; color: var(--brass-2); pointer-events: none; }
.ac-list {
  position: absolute; z-index: 5; left: 0; right: 0; top: calc(100% + 6px); margin: 0; padding: 6px; list-style: none;
  background: #fff; border-radius: 14px; border: 1px solid var(--line); box-shadow: 0 24px 50px -20px rgba(7,24,42,.35);
  max-height: 280px; overflow-y: auto; display: none;
}
.ac-list.open { display: block; animation: rise .25s var(--ease); }
.ac-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 10px; cursor: pointer; font-size: .95rem; }
.ac-list li small { color: var(--muted); font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; flex: none; }
.ac-list li mark { background: none; color: var(--brass-2); font-weight: 700; }
.ac-list li.hl, .ac-list li:hover { background: rgba(200,165,106,.14); }
.swap { margin-top: 32px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; color: var(--navy); transition: transform .5s var(--ease), background .3s; }
.swap svg { width: 18px; height: 18px; transform: rotate(90deg); }
.swap:hover { background: var(--sand); transform: rotate(180deg); }

/* Checkbox */
.check { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; line-height: 1.5; color: var(--ink); font-size: .94rem; }
.check input { position: absolute; opacity: 0; pointer-events: none; }
.check .box { flex: none; width: 22px; height: 22px; border-radius: 7px; border: 1.5px solid rgba(11,27,43,.35); background: #fff; position: relative; transition: background .25s, border-color .25s; margin-top: 1px; }
.check .box::after { content: ""; position: absolute; left: 7px; top: 3px; width: 5px; height: 10px; border: solid var(--navy); border-width: 0 2px 2px 0; transform: rotate(45deg) scale(0); transition: transform .3s var(--ease); }
.check input:checked + .box { background: var(--brass); border-color: var(--brass); }
.check input:checked + .box::after { transform: rotate(45deg) scale(1); }
.check input:focus-visible + .box { box-shadow: 0 0 0 4px rgba(200,165,106,.3); }
.field.invalid .check .box { border-color: var(--err); }
.check-inline { margin-bottom: 4px; font-size: .9rem; color: var(--muted); }

/* Segmented skipper */
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.seg-opt input, .boat input { position: absolute; opacity: 0; pointer-events: none; }
.seg-card, .boat-card {
  position: relative; display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 18px; border-radius: 16px; background: #fff; border: 1px solid var(--line); cursor: pointer;
  transition: border-color .3s, box-shadow .35s var(--ease), transform .35s var(--ease), background .3s;
}
.seg-card svg { width: 26px; height: 26px; color: var(--brass-2); margin-bottom: 8px; }
.seg-card b { font-size: .98rem; color: var(--navy); }
.seg-card small { color: var(--muted); font-size: .82rem; }
.seg-card:hover, .boat-card:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -18px rgba(7,24,42,.35); }
.seg-card::after, .boat-card::after { content: ""; position: absolute; top: 12px; right: 12px; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid rgba(11,27,43,.2); transition: all .3s var(--ease); }
input:checked + .seg-card, input:checked + .boat-card { border-color: var(--navy); box-shadow: 0 0 0 1px var(--navy), 0 18px 34px -20px rgba(7,24,42,.5); }
input:checked + .seg-card::after, input:checked + .boat-card::after { background: var(--brass); border-color: var(--brass); box-shadow: inset 0 0 0 3px #fff; }
input:focus-visible + .seg-card, input:focus-visible + .boat-card { box-shadow: 0 0 0 4px rgba(200,165,106,.35); }

.boats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.boat { display: block; }
.boat-card { align-items: flex-start; padding: 20px 18px 18px; }
.boat-card svg { width: 84px; height: 46px; color: var(--navy); stroke-width: 1.5; margin-bottom: 12px; transition: transform .6s var(--ease), color .3s; }
.boat-card b { font-size: .98rem; color: var(--navy); }
.boat-card small { color: var(--muted); font-size: .8rem; line-height: 1.4; }
input:checked + .boat-card { background: linear-gradient(180deg, #fff, #f6efe2); }
input:checked + .boat-card svg { color: var(--brass-2); transform: translateX(6px); }

/* Length */
.len { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 22px 24px 18px; }
.len-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; }
.len-head .lbl { margin: 0 0 6px; }
.len-val { display: flex; align-items: baseline; gap: 8px; color: var(--navy); }
.len-val output { font-family: var(--serif); font-size: 3.2rem; line-height: 1; font-weight: 500; font-variant-numeric: tabular-nums; min-width: 2ch; text-align: right; }
.len-val span { font-size: .85rem; color: var(--muted); text-transform: uppercase; letter-spacing: .12em; }
.range-wrap { margin-top: 14px; }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; cursor: pointer; --p: 18%; }
input[type=range]::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--brass) var(--p), rgba(11,27,43,.12) var(--p)); }
input[type=range]::-moz-range-track { height: 4px; border-radius: 4px; background: rgba(11,27,43,.12); }
input[type=range]::-moz-range-progress { height: 4px; border-radius: 4px; background: var(--brass); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; margin-top: -11px; border-radius: 50%; background: var(--navy); border: 4px solid #fff; box-shadow: 0 4px 14px rgba(7,24,42,.4); transition: transform .2s; }
input[type=range]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--navy); border: 4px solid #fff; box-shadow: 0 4px 14px rgba(7,24,42,.4); }
input[type=range]:active::-webkit-slider-thumb { transform: scale(1.15); }
input[type=range]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 6px rgba(200,165,106,.35); }
.range-scale { position: relative; height: 16px; font-size: .72rem; color: var(--muted); margin: 2px 13px 0; }
.range-scale span { position: absolute; left: calc(var(--x) * 100%); transform: translateX(calc(var(--x) * -100%)); white-space: nowrap; }
.range-scale span:nth-child(2), .range-scale span:nth-child(3) { transform: translateX(-50%); }
.len-boat { height: 44px; margin-top: 12px; display: flex; justify-content: flex-start; }
.len-boat svg { height: 100%; width: var(--bw, 40%); fill: var(--navy); stroke: none; transition: width .35s var(--ease); overflow: visible; }
.len-boat .len-sail { fill: var(--brass); }
.len-boat .len-sail.s2 { fill: var(--sand); stroke: var(--navy); stroke-width: .8; }

.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px; }
.duo .field { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 20px 24px; margin: 0; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.duo .lbl { margin: 0; }
.stepper-lg { color: var(--navy); }
.stepper-lg .st-btn { width: 40px; height: 40px; border-color: rgba(11,27,43,.25); }
.stepper-lg .st-val { font-family: var(--serif); font-size: 2.1rem; font-weight: 500; min-width: 34px; }

.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 16px; margin-bottom: 22px; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* Actions */
.actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 34px; padding-top: 24px; border-top: 1px solid var(--line); }
.actions-center { justify-content: center; border-top: 0; padding-top: 0; }
.spin { display: none; width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(7,24,42,.25); border-top-color: var(--navy); animation: spin .8s linear infinite; }
.btn.loading { pointer-events: none; }
.btn.loading .spin { display: block; }
.btn.loading svg { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Success */
.step-ok { text-align: center; }
.step-ok .step-lead { margin-inline: auto; }
.ok-mark { width: 92px; height: 92px; margin: 4px auto 24px; }
.ok-mark svg { width: 100%; height: 100%; }
.ok-c { stroke: var(--brass); stroke-width: 2; stroke-dasharray: 227; stroke-dashoffset: 227; transform: rotate(-90deg); transform-origin: center; }
.ok-t { stroke: var(--navy); stroke-width: 3; stroke-dasharray: 50; stroke-dashoffset: 50; }
.step-ok.active .ok-c { animation: draw 1s .2s var(--ease) forwards; }
.step-ok.active .ok-t { animation: draw .6s 1s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.ok-ref { display: inline-flex; gap: 10px; align-items: center; padding: 10px 18px; border-radius: 999px; background: var(--sand); font-size: .85rem; color: var(--muted); margin: 0 0 28px; }
.ok-ref b { color: var(--navy); letter-spacing: .1em; font-size: .95rem; }
.summary { text-align: left; display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; margin: 0; }
.summary div { background: #fff; padding: 14px 18px; }
.summary dt { font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin-bottom: 4px; }
.summary dd { margin: 0; color: var(--navy); font-weight: 500; word-break: break-word; }
.summary .full { grid-column: 1 / -1; }

/* Modal */
.modal { border: 0; padding: 0; border-radius: 24px; width: min(620px, 100% - 32px); max-height: 85vh; background: var(--foam); color: var(--ink); box-shadow: 0 40px 100px rgba(0,0,0,.5); }
.modal::backdrop { background: rgba(7,24,42,.6); backdrop-filter: blur(4px); }
.modal[open] { animation: rise .45s var(--ease); }
.modal-inner { padding: 36px; }
.modal h2 { font-family: var(--serif); font-weight: 500; font-size: 2.1rem; margin: 0 0 16px; color: var(--navy); }
.modal-body { font-size: .92rem; line-height: 1.65; color: #34414e; max-height: 55vh; overflow-y: auto; margin-bottom: 24px; padding-right: 6px; }
.modal-body h3 { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; margin: 20px 0 6px; color: var(--navy); }
.modal-body p { margin: 0 0 10px; }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .search { grid-template-columns: 1fr 1fr; }
  .search .field-dates { grid-column: 1 / -1; }
  .search-field + .search-field::before { display: none; }
  .search-cta { grid-column: 1 / -1; min-height: 58px; margin-top: 6px; }
  .search .err { position: static; white-space: normal; }
  .nav-links { display: none; }
}
@media (max-width: 760px) {
  .how-grid, .fleet-grid, .dest-grid { grid-template-columns: 1fr; }
  .dest-card { aspect-ratio: 16 / 11; }
  .boats { grid-template-columns: 1fr 1fr; }
  .seg { grid-template-columns: 1fr; }
  .seg-card { flex-direction: row; flex-wrap: wrap; align-items: center; column-gap: 12px; padding: 14px 16px; }
  .seg-card svg { margin: 0; }
  .seg-card small { width: 100%; padding-left: 38px; margin-top: -4px; }
  .route { grid-template-columns: 1fr; gap: 6px; }
  .swap { margin: 0 auto; }
  .duo, .grid2 { grid-template-columns: 1fr; }
  .summary { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; text-align: left; }
  .nav-cta { display: none; }
  .brand-name { font-size: 1.4rem; }
  .card { border-radius: 22px; }
  .actions .btn-navy, .actions .btn-brass { flex: 1; }
  .wz-inner { padding-top: 84px; }
  .progress li span { display: none; }
}
@media (max-width: 480px) {
  .search { grid-template-columns: 1fr; border-radius: 22px; }
  .dates { flex-wrap: nowrap; }
  .hero-title em { padding-left: 0; }
  .boats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .boat-card { padding: 16px 14px; }
  .boat-card svg { width: 64px; height: 36px; }
  .boat-card small { display: none; }
  .len-val output { font-size: 2.6rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  html { scroll-behavior: auto; }
}

/* =================================================================
   v2 — meteo, menu mobile, footer, pagine interne
   ================================================================= */

/* ---------- Meteo indicativo ---------- */
.wx { display: grid; grid-template-rows: 0fr; opacity: 0; transform: translateY(-8px); transition: grid-template-rows .7s var(--ease), opacity .6s var(--ease), transform .7s var(--ease), margin .7s var(--ease); margin-top: 0; }
.wx.show { grid-template-rows: 1fr; opacity: 1; transform: none; margin-top: 34px; }
.wx-inner { overflow: hidden; min-height: 0; }
.wx-card {
  --wx: #f2c46b;
  display: grid; grid-template-columns: auto 1fr auto; gap: 8px 24px; align-items: center;
  padding: 18px 24px; border-radius: 22px; color: var(--foam);
  background: linear-gradient(100deg, rgba(7,24,42,.55), rgba(7,24,42,.25));
  border: 1px solid var(--glass-line);
  backdrop-filter: blur(18px) saturate(1.3); -webkit-backdrop-filter: blur(18px) saturate(1.3);
  box-shadow: 0 24px 60px -30px rgba(0,0,0,.6);
  position: relative; overflow: hidden;
}
.wx-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--wx); }
.wx[data-r="4"] .wx-card { --wx: #b9d98a; }
.wx[data-r="3"] .wx-card { --wx: #9fc4d8; }
.wx[data-r="2"] .wx-card { --wx: #c9b8a6; }
.wx[data-r="1"] .wx-card { --wx: #e79a86; }
.wx.pulse .wx-card { animation: wxPulse .6s var(--ease); }
@keyframes wxPulse { 40% { transform: scale(1.01); box-shadow: 0 0 0 1px var(--wx), 0 24px 60px -30px rgba(0,0,0,.6); } }
.wx-ico { width: 58px; height: 58px; color: var(--wx); }
.wx-ico svg { width: 100%; height: 100%; stroke-width: 2; }
.wx.show .wx-ico svg { animation: wxSpin 1.2s var(--ease); }
@keyframes wxSpin { from { transform: rotate(-40deg) scale(.6); opacity: 0; } }
.wx-top { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.wx-kicker { font-size: .7rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: rgba(248,245,239,.65); }
.wx-months { font-size: .82rem; color: var(--sand); }
.wx-rate { display: flex; align-items: center; gap: 12px; margin: 4px 0 4px; }
.wx-badge { font-family: var(--serif); font-size: 1.7rem; font-weight: 500; line-height: 1.1; color: var(--wx); }
.wx-dots { display: inline-flex; gap: 4px; }
.wx-dots i { width: 16px; height: 4px; border-radius: 2px; background: rgba(255,255,255,.2); }
.wx-dots i.on { background: var(--wx); }
.wx-text { margin: 0; font-size: .92rem; line-height: 1.55; color: rgba(248,245,239,.88); max-width: 560px; }
.wx-stats { display: flex; gap: 22px; margin: 0; }
.wx-stats div { text-align: left; }
.wx-stats dt { font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(248,245,239,.6); margin-bottom: 4px; white-space: nowrap; }
.wx-stats dd { margin: 0; font-weight: 600; font-size: 1rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.wx-note { grid-column: 1 / -1; margin: 6px 0 0; padding-top: 10px; border-top: 1px solid rgba(255,255,255,.12); font-size: .72rem; color: rgba(248,245,239,.55); }

/* ---------- Burger / mobile menu ---------- */
.burger { display: none; width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); background: rgba(255,255,255,.06); position: relative; }
.burger i { position: absolute; left: 12px; right: 12px; height: 1.6px; background: var(--foam); border-radius: 2px; transition: transform .45s var(--ease), top .45s var(--ease); }
.burger i:first-child { top: 16px; }
.burger i:last-child { top: 24px; }
body.menu-open .burger i:first-child { top: 20px; transform: rotate(45deg); }
body.menu-open .burger i:last-child { top: 20px; transform: rotate(-45deg); }
body.wz-open .burger { display: none; }
.nav-links a[aria-current="page"] { opacity: 1; }
.nav-links a[aria-current="page"]::after { transform: scaleX(1); }

/* ---------- Footer ---------- */
.footer { padding: 70px 0 34px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.1); }
.foot-brand .foot-tag { margin-top: 16px; max-width: 320px; line-height: 1.6; }
.foot-col { display: flex; flex-direction: column; gap: 10px; font-size: .92rem; }
.foot-col h4 { margin: 0 0 6px; font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--brass); font-weight: 700; }
.foot-col a, .foot-col span { color: rgba(248,245,239,.72); text-decoration: none; transition: color .25s; }
.foot-col a:hover { color: var(--foam); }
.foot-legal { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 24px; font-size: .82rem; color: rgba(248,245,239,.5); }

/* ---------- Flotta: 12 tipi ---------- */
.fleet-grid { grid-template-columns: repeat(4, 1fr); }
.fleet-item { padding: 30px 26px; }
.fleet-item svg { width: 96px; height: 52px; margin-bottom: 20px; }
.fleet-item h3 { font-size: 1.5rem; }
.fleet-item p { font-size: .88rem; }
.boats { grid-template-columns: repeat(4, 1fr); gap: 10px; }
.boat-card { padding: 16px 14px 14px; }
.boat-card svg { width: 70px; height: 38px; margin-bottom: 10px; }
.boat-card b { font-size: .9rem; line-height: 1.25; }
.boat-card small { font-size: .74rem; }
.boat-card::after { top: 10px; right: 10px; width: 16px; height: 16px; }

/* ---------- Pagine interne ---------- */
.page-hero { position: relative; z-index: 1; min-height: 72svh; display: flex; align-items: flex-end; color: var(--foam); padding: 140px clamp(16px, 4vw, 48px) 90px; }
.page-hero .hero-title { font-size: clamp(3rem, 8vw, 6.6rem); }
.page-hero .hero-lead { margin-bottom: 0; }

.two-col { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(30px, 6vw, 90px); align-items: start; }
.two-col .sec-title { margin-bottom: 0; }
.prose p { margin: 0 0 18px; font-size: 1.05rem; line-height: 1.8; color: #3a4754; }
.prose p:first-child::first-letter { font-family: var(--serif); float: left; font-size: 4.2rem; line-height: .8; padding: 8px 10px 0 0; color: var(--brass-2); }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; margin-top: 70px; }
.stat { background: #fff; padding: 34px 28px; }
.stat b { display: block; font-family: var(--serif); font-weight: 500; font-size: clamp(2.4rem, 4vw, 3.4rem); line-height: 1; color: var(--navy); }
.stat span { display: block; margin-top: 10px; color: var(--muted); font-size: .9rem; }

.values { background: var(--sand); }
.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.value { padding: 36px 30px; border-radius: var(--r); background: rgba(255,255,255,.55); border: 1px solid rgba(11,27,43,.08); transition: transform .5s var(--ease), background .4s; }
.value:hover { transform: translateY(-6px); background: #fff; }
.value svg { width: 40px; height: 40px; color: var(--brass-2); margin-bottom: 22px; }
.value h3 { margin: 0 0 10px; font-size: 1.15rem; color: var(--navy); }
.value p { margin: 0; color: var(--muted); line-height: 1.65; }

.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.member { text-align: left; }
.avatar { aspect-ratio: 4 / 5; border-radius: var(--r); display: grid; place-items: center; font-family: var(--serif); font-size: 3.6rem; color: var(--foam); background: linear-gradient(160deg, var(--a1), var(--a2)); position: relative; overflow: hidden; margin-bottom: 16px; transition: transform .6s var(--ease); }
.avatar::after { content: ""; position: absolute; inset: auto -10% -30% -10%; height: 55%; background: radial-gradient(60% 100% at 50% 100%, rgba(255,255,255,.18), transparent 70%); }
.member:hover .avatar { transform: translateY(-6px); }
.member h3 { margin: 0; font-family: var(--serif); font-weight: 500; font-size: 1.5rem; color: var(--navy); }
.member p { margin: 4px 0 0; color: var(--muted); font-size: .9rem; }

/* Contatti */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 26px; align-items: start; }
.info-list { display: grid; gap: 14px; }
.info { display: flex; gap: 18px; align-items: flex-start; padding: 24px; border-radius: var(--r); background: #fff; border: 1px solid var(--line); transition: transform .4s var(--ease), box-shadow .4s var(--ease); text-decoration: none; }
a.info:hover { transform: translateY(-3px); box-shadow: 0 20px 40px -26px rgba(7,24,42,.4); }
.info svg { flex: none; width: 44px; height: 44px; padding: 11px; border-radius: 50%; background: var(--sand); color: var(--brass-2); }
.info h3 { margin: 0 0 4px; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.info p { margin: 0; color: var(--navy); font-weight: 500; line-height: 1.5; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: clamp(24px, 4vw, 40px); box-shadow: 0 40px 80px -50px rgba(7,24,42,.45); position: relative; overflow: hidden; }
.form-card h2 { margin: 0 0 24px; font-family: var(--serif); font-weight: 500; font-size: 2rem; color: var(--navy); }
.form-card .field { margin-bottom: 16px; }
.form-card .grid2 { margin-bottom: 0; }
.select-light { position: relative; }
.select-light::after { content: ""; position: absolute; right: 20px; top: 50%; width: 8px; height: 8px; border-right: 1.6px solid var(--brass-2); border-bottom: 1.6px solid var(--brass-2); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.select-light select { appearance: none; -webkit-appearance: none; cursor: pointer; }
textarea.inp { height: auto; min-height: 140px; padding: 16px 18px; resize: vertical; line-height: 1.5; font-family: inherit; }
.form-card .actions { justify-content: flex-end; margin-top: 18px; }
.form-ok { position: absolute; inset: 0; background: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 30px; opacity: 0; visibility: hidden; transition: opacity .5s var(--ease), visibility 0s .5s; }
.form-ok.show { opacity: 1; visibility: visible; transition: opacity .5s var(--ease); }
.form-ok.show .ok-c { animation: draw 1s .1s var(--ease) forwards; }
.form-ok.show .ok-t { animation: draw .6s .8s var(--ease) forwards; }
.form-ok h2 { margin: 0 0 8px; }
.form-ok p { color: var(--muted); margin: 0 0 24px; }

.faq { max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 24px 0; font-family: var(--serif); font-size: 1.5rem; color: var(--navy); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { flex: none; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); position: relative; transition: transform .4s var(--ease), background .3s; }
.faq summary i::before, .faq summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.6px; background: var(--navy); transform: translate(-50%, -50%); }
.faq summary i::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .4s var(--ease); }
.faq details[open] summary i { background: var(--sand); }
.faq details[open] summary i::after { transform: translate(-50%, -50%) rotate(0); }
.faq details p { margin: 0 0 24px; color: var(--muted); line-height: 1.7; max-width: 720px; animation: rise .5s var(--ease); }

/* ---------- Responsive v2 ---------- */
@media (max-width: 1100px) {
  .fleet-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 1180px) {
  .burger { display: block; }
  .nav-links {
    display: flex; position: fixed; inset: 0; z-index: -1; flex-direction: column; justify-content: center; align-items: flex-start; gap: 6px;
    padding: 100px 32px 40px; background: rgba(7,24,42,.97); backdrop-filter: blur(10px);
    font-size: 1rem; letter-spacing: 0; text-transform: none;
    opacity: 0; pointer-events: none; transform: none; transition: opacity .45s var(--ease);
  }
  .nav-links a { font-family: var(--serif); font-size: 2.3rem; opacity: 0; transform: translateY(16px); transition: opacity .5s var(--ease), transform .6s var(--ease); }
  .nav-links a::after { display: none; }
  body.menu-open .nav-links { opacity: 1; pointer-events: auto; }
  body.menu-open .nav-links a { opacity: 1; transform: none; }
  body.menu-open .nav-links a:nth-child(2) { transition-delay: .05s; }
  body.menu-open .nav-links a:nth-child(3) { transition-delay: .1s; }
  body.menu-open .nav-links a:nth-child(4) { transition-delay: .15s; }
  body.menu-open .nav-links a:nth-child(5) { transition-delay: .2s; }
  body.menu-open { overflow: hidden; }
  body.menu-open .nav { background: transparent; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .wx-card { grid-template-columns: auto 1fr; }
  .wx-stats { grid-column: 1 / -1; }
  .two-col, .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .fleet-grid { grid-template-columns: 1fr 1fr; }
  .fleet-item { padding: 24px 18px; }
  .fleet-item svg { width: 72px; height: 40px; }
  .fleet-item h3 { font-size: 1.25rem; }
  .fleet-item p { display: none; }
  .boats { grid-template-columns: repeat(3, 1fr); }
  .value-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .wx-card { padding: 16px 18px; gap: 6px 16px; }
  .wx-ico { width: 44px; height: 44px; }
  .wx-stats { justify-content: space-between; gap: 12px; }
  .page-hero { min-height: 62svh; padding-bottom: 60px; }
}
@media (max-width: 480px) {
  .boats { grid-template-columns: 1fr 1fr; }
  .team-grid { gap: 14px; }
  .avatar { font-size: 2.6rem; }
  .member h3 { font-size: 1.2rem; }
  .faq summary { font-size: 1.25rem; }
}

/* ---------- Stima prezzo + budget ---------- */
.est { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows .6s var(--ease), opacity .5s var(--ease), margin .6s var(--ease); margin-top: 0; }
.est.show { grid-template-rows: 1fr; opacity: 1; margin-top: 22px; }
.est-inner { overflow: hidden; min-height: 0; }
.est-card { border-radius: 20px; background: var(--navy); color: var(--foam); padding: 24px 26px 20px; position: relative; overflow: hidden; }
.est-card::before { content: ""; position: absolute; right: -60px; top: -60px; width: 200px; height: 200px; border-radius: 50%; background: radial-gradient(circle, rgba(200,165,106,.25), transparent 70%); pointer-events: none; }
.est-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.est-kicker { margin: 0 0 6px; font-size: .7rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--brass); }
.est-total { margin: 0; font-family: var(--serif); font-size: clamp(2.2rem, 5vw, 2.9rem); font-weight: 500; line-height: 1; font-variant-numeric: lining-nums tabular-nums; }
.est-range { margin: 8px 0 0; font-size: .82rem; color: rgba(248,245,239,.65); }
.est-ico { flex: none; width: 44px; height: 44px; padding: 10px; border-radius: 50%; border: 1px solid rgba(200,165,106,.4); color: var(--brass); }
.est-lines { list-style: none; margin: 18px 0 0; padding: 12px 0 0; border-top: 1px solid rgba(255,255,255,.1); display: grid; gap: 6px; font-size: .88rem; }
.est-lines li { display: flex; justify-content: space-between; gap: 12px; color: rgba(248,245,239,.8); }
.est-lines b { color: var(--foam); font-weight: 600; font-variant-numeric: tabular-nums; }
.est-hint { margin: 10px 0 0; font-size: .8rem; color: rgba(248,245,239,.6); line-height: 1.5; }
.est-ok, .est-kept { display: flex; align-items: flex-start; gap: 10px; margin: 16px 0 0; padding: 12px 14px; border-radius: 12px; font-size: .88rem; line-height: 1.5; }
.est-ok { background: rgba(160, 210, 150, .12); color: #cfe8c3; }
.est-kept { background: rgba(200,165,106,.14); color: var(--sand); }
.est-ok svg, .est-kept svg { flex: none; width: 18px; height: 18px; margin-top: 2px; }
.est-alert { margin-top: 16px; padding: 18px; border-radius: 14px; background: var(--foam); color: var(--ink); animation: rise .5s var(--ease); }
.est-alert.over { box-shadow: inset 3px 0 0 var(--err); }
.est-alert.under { box-shadow: inset 3px 0 0 var(--sea); }
.est-alert p { margin: 0; line-height: 1.55; font-size: .92rem; }
.est-alert b { color: var(--navy); }
.est-msg { margin-bottom: 8px !important; }
.est-rec { font-size: 1rem !important; }
.est-rec b { color: var(--brass-2) !important; }
.est-ask { margin-top: 12px !important; font-size: .82rem !important; color: var(--muted); }
.est-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 12px; }
.est-chip { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-size: .84rem; font-weight: 600; color: var(--navy); transition: transform .25s var(--ease), background .25s, border-color .25s, box-shadow .25s; }
.est-chip:hover { transform: translateY(-2px); border-color: var(--navy); }
.est-chip.rec { border-color: var(--brass); background: #fbf5ea; box-shadow: 0 0 0 1px var(--brass); }
.est-chip.rec small { font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; padding: 2px 7px; border-radius: 999px; background: var(--brass); color: var(--navy); }
.est-chip.cur { opacity: .55; text-decoration: line-through; text-decoration-color: rgba(11,27,43,.4); }
.est-else { font-size: .84rem !important; color: var(--muted); }
.est-keep { --bh: 40px; margin-top: 8px; padding: 0 4px; font-size: .88rem; color: var(--navy); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--brass); }
.est-note { margin: 14px 0 0; font-size: .72rem; color: rgba(248,245,239,.45); line-height: 1.5; }
@media (max-width: 480px) {
  .est-card { padding: 20px 18px 16px; }
  .est-ico { display: none; }
}

/* ---------- Trasferimenti città ⇄ porto ---------- */
.xfer-q { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 22px; padding: 18px 20px; border-radius: 16px; background: #fff; border: 1px solid var(--line); }
.xfer-q-text { display: flex; align-items: flex-start; gap: 14px; }
.xfer-q-text svg { flex: none; width: 40px; height: 40px; padding: 9px; border-radius: 50%; background: var(--sand); color: var(--brass-2); }
.xfer-q-title { display: block; font-weight: 600; color: var(--navy); line-height: 1.4; }
.xfer-q-text small { display: block; margin-top: 3px; color: var(--muted); font-size: .84rem; }
.yn { flex: none; display: inline-flex; padding: 4px; border-radius: 999px; background: rgba(11,27,43,.06); }
.yn label { position: relative; cursor: pointer; }
.yn input { position: absolute; opacity: 0; pointer-events: none; }
.yn span { display: block; padding: 9px 20px; border-radius: 999px; font-weight: 600; font-size: .9rem; color: var(--muted); transition: background .3s var(--ease), color .3s, box-shadow .3s; }
.yn input:checked + span { background: var(--navy); color: var(--foam); box-shadow: 0 6px 16px -8px rgba(7,24,42,.6); }
.yn input:focus-visible + span { box-shadow: 0 0 0 4px rgba(200,165,106,.35); }

.xfer { position: relative; z-index: 2; margin-top: 16px; animation: rise .5s var(--ease); }
.xfer[hidden] { display: none; }
.xfer-hint { margin: 0 0 14px; font-size: .88rem; color: var(--muted); line-height: 1.55; }
.pax-list { display: grid; gap: 12px; }
.pax { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px 14px; transition: opacity .3s, border-color .3s, box-shadow .4s; }
.pax:focus-within { z-index: 4; border-color: rgba(200,165,106,.7); }
.pax.is-none .pax-rows { opacity: .35; pointer-events: none; }
.pax.flash { animation: paxFlash .9s var(--ease); }
@keyframes paxFlash { 30% { box-shadow: 0 0 0 3px rgba(200,165,106,.45); } }
.pax.invalid { border-color: var(--err); }
.pax-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.pax-n { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--navy); color: var(--foam); font-size: .78rem; font-weight: 700; }
.pax-head b { color: var(--navy); font-size: .95rem; }
.pax-tools { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.pax-copy { background: none; border: 0; padding: 4px 0; font-size: .8rem; font-weight: 600; color: var(--brass-2); text-decoration: underline; text-underline-offset: 3px; }
.check-sm { font-size: .82rem; gap: 8px; color: var(--muted); align-items: center; }
.check-sm .box { width: 18px; height: 18px; border-radius: 5px; margin-top: 0; }
.check-sm .box::after { left: 5px; top: 1px; width: 5px; height: 9px; }
.pax-rows { display: grid; gap: 10px; transition: opacity .3s; }
.pax-row { display: grid; grid-template-columns: 70px 1fr 22px 1fr; align-items: end; gap: 10px; }
.pax-dir { align-self: center; padding-top: 16px; font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--brass-2); }
.mini-lbl { display: block; font-size: .68rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 5px; }
.pax-city input.inp { height: 46px; padding: 0 14px; font-size: .95rem; border-radius: 12px; }
.pax-city .ac-list { top: calc(100% + 4px); }
.pax-port { min-width: 0; }
.pax-port-v { display: flex; align-items: center; height: 46px; padding: 0 14px; border-radius: 12px; background: rgba(11,27,43,.04); border: 1px dashed rgba(11,27,43,.15); font-weight: 600; color: var(--navy); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pax-port-v em { font-style: normal; font-weight: 400; color: var(--muted); font-size: .85rem; }
.pax-arrow { width: 20px; height: 20px; margin-bottom: 13px; color: var(--brass-2); }
.pax .err { margin-top: 8px; }
.summary dd { white-space: pre-line; }

@media (max-width: 760px) {
  .xfer-q { flex-direction: column; align-items: stretch; }
  .yn { align-self: flex-start; }
  .pax-row { grid-template-columns: 1fr 22px 1fr; }
  .pax-dir { grid-column: 1 / -1; padding-top: 0; }
  .pax-tools { margin-left: 0; width: 100%; justify-content: space-between; }
}
@media (max-width: 480px) {
  .pax-row { grid-template-columns: 1fr; }
  .pax-arrow { transform: rotate(90deg); margin: 0 auto; }
}

/* =================================================================
   v3 — tema chiaro e luminoso, colori per zona, calendario sabato–sabato,
   destinazioni con foto, voli, banner cookie, pagine legali
   ================================================================= */
:root {
  --accent: #1c86b0;          /* cambia in base alla zona scelta */
  --tint: #eef6fa;            /* sfondo leggero della zona */
  --line: rgba(21, 48, 74, .12);
  --shadow-soft: 0 24px 60px -34px rgba(14, 58, 92, .35);
}
html { scroll-padding-top: 90px; }
body { color: var(--ink); }
body.cal-open { overflow: hidden; }
a { color: inherit; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 55%, transparent); outline-offset: 2px; }

/* ---------- Sfondo e hero più luminosi ---------- */
.bg { background: linear-gradient(180deg, #cfe6f2 0%, #e9f3f8 100%); }
.bg-grain { display: none; }
.bg-veil {
  background:
    linear-gradient(180deg, rgba(8,38,64,.38) 0%, rgba(8,38,64,.05) 32%, rgba(8,38,64,.08) 62%, rgba(8,38,64,.42) 100%),
    radial-gradient(70% 55% at 18% 62%, rgba(8,38,64,.28), transparent 70%);
}
.bg-video { filter: brightness(1.22) saturate(1.15) contrast(.96); }
body.wz-open .bg-video { filter: blur(10px) saturate(1.1) brightness(1.25); }
body.wz-open .bg-veil { background: rgba(240,247,251,.72); }
.hero-title, .hero-lead { text-shadow: 0 2px 24px rgba(8,38,64,.25); }
.search { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.38); }

/* ---------- Navigazione chiara ---------- */
.nav.scrolled { background: rgba(255,255,255,.88); box-shadow: 0 1px 0 var(--line), 0 10px 30px -24px rgba(14,58,92,.5); color: var(--navy); }
.nav.scrolled .brand, body.wz-open .nav .brand, body.page-legal .nav .brand { color: var(--navy); }
.nav.scrolled .lang-btn, body.wz-open .lang-btn, body.page-legal .lang-btn { color: var(--navy); background: rgba(14,58,92,.06); border-color: rgba(14,58,92,.18); }
.nav.scrolled .btn-ghost, body.page-legal .btn-ghost { color: var(--navy); border-color: rgba(14,58,92,.3); }
.nav.scrolled .btn-ghost:hover, body.page-legal .btn-ghost:hover { background: var(--navy); color: #fff; }
.nav.scrolled .burger, body.page-legal .burger { border-color: rgba(14,58,92,.25); background: rgba(14,58,92,.04); }
.nav.scrolled .burger i, body.page-legal .burger i { background: var(--navy); }
body.wz-open .nav { color: var(--navy); }
body.wz-open .nav-home { color: var(--navy); }
body.wz-open .nav-home:hover { background: rgba(14,58,92,.08); }
@media (max-width: 1180px) {
  .nav-links { background: rgba(251,251,249,.98); }
  .nav-links a { color: var(--navy); }
  body.menu-open .nav { color: var(--navy); }
  body.menu-open .nav .brand { color: var(--navy); }
  body.menu-open .burger { border-color: rgba(14,58,92,.25); }
  body.menu-open .burger i { background: var(--navy); }
  body.menu-open .lang-btn { color: var(--navy); border-color: rgba(14,58,92,.18); }
}

/* ---------- Sezioni chiare ---------- */
.content { background: var(--foam); }
.how-card { box-shadow: var(--shadow-soft); border-color: transparent; }
.fleet { background: linear-gradient(180deg, #f2f8fb, #fff); color: var(--ink); }
.fleet .sec-title { color: var(--navy); }
.fleet .eyebrow { color: var(--accent); }
.fleet-grid { background: var(--line); border-color: var(--line); }
.fleet-item { background: #fff; }
.fleet-item:hover { background: var(--tint); }
.fleet-item svg { color: var(--navy); }
.fleet-item:hover svg { color: var(--accent); }
.fleet-item h3 { color: var(--navy); }
.fleet-item p { color: var(--muted); }
.band { background: linear-gradient(120deg, #f6efe2, #eaf4f9); }
.eyebrow { color: var(--brass); }

/* ---------- Footer chiaro con dati legali ---------- */
.footer { background: #eef4f8; color: var(--ink); }
.footer .brand-foot { color: var(--navy); }
.foot-tag { color: var(--muted); }
.footer-grid { border-bottom-color: var(--line); }
.foot-col h4 { color: var(--accent); }
.foot-col a, .foot-col span, .foot-btn { color: var(--ink); opacity: .8; }
.foot-col a:hover, .foot-btn:hover { color: var(--accent); opacity: 1; }
.foot-btn { background: none; border: 0; padding: 0; text-align: left; font-size: .92rem; cursor: pointer; }
.foot-legal { color: var(--muted); display: block; }
.foot-company { margin: 0; line-height: 1.7; font-size: .82rem; }
.foot-company b { font-weight: 600; color: var(--ink); }

/* ---------- Ricerca: campo date con calendario ---------- */
.date-trigger {
  display: flex; align-items: flex-end; gap: 10px; width: 100%; background: none; border: 0; padding: 0; color: #fff; text-align: left; cursor: pointer;
}
.date-trigger .date { flex: 1; min-width: 0; }
.date-v { display: block; font-size: 1rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.date-trigger:not(.has) .date-v { opacity: .7; font-weight: 500; }
.date-ico { flex: none; width: 20px; height: 20px; margin-bottom: 2px; color: var(--brass); }
.date-trigger:hover .date-v { text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--brass); }

/* ---------- Calendario ---------- */
.cal-wrap { position: fixed; inset: 0; z-index: 85; display: grid; place-items: center; padding: 16px; }
.cal-wrap[hidden] { display: none; }
.cal-backdrop { position: absolute; inset: 0; background: rgba(14,42,66,.38); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); opacity: 0; transition: opacity .3s; }
.cal {
  position: relative; width: min(780px, 100%); max-height: calc(100dvh - 32px); overflow: auto; overscroll-behavior: contain;
  background: #fff; color: var(--ink); border-radius: 26px; padding: 26px 26px 18px; box-shadow: 0 40px 100px -30px rgba(8,38,64,.55);
  opacity: 0; transform: translateY(18px) scale(.98); transition: opacity .3s var(--ease), transform .45s var(--ease);
}
.cal-wrap.show .cal-backdrop { opacity: 1; }
.cal-wrap.show .cal { opacity: 1; transform: none; }
.cal-top { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.cal-top h2 { margin: 0; font-family: var(--serif); font-weight: 500; font-size: 2rem; color: var(--navy); line-height: 1.1; }
.cal-hint { margin: 6px 0 0; color: var(--muted); font-size: .9rem; max-width: 520px; line-height: 1.5; }
.cal-x { flex: none; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; color: var(--navy); }
.cal-x svg { width: 18px; height: 18px; }
.cal-x:hover { background: var(--tint); }
.cal-status { margin: 16px 0 6px; padding: 10px 14px; border-radius: 12px; background: var(--tint); color: var(--navy); font-size: .9rem; min-height: 42px; }
.cal-body { display: grid; grid-template-columns: 36px 1fr 36px; gap: 8px; align-items: start; margin-top: 8px; }
.cal-nav { width: 36px; height: 36px; margin-top: 2px; border-radius: 50%; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; color: var(--navy); }
.cal-nav svg { width: 18px; height: 18px; }
.cal-nav:disabled { opacity: .3; cursor: not-allowed; }
.cal-nav:hover:not(:disabled) { background: var(--tint); }
.cal-months { display: grid; grid-template-columns: repeat(var(--n, 2), 1fr); gap: 28px; }
.cal-month h3 { margin: 6px 0 12px; text-align: center; font-size: 1rem; font-weight: 700; color: var(--navy); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); }
.cal-wd span { text-align: center; font-size: .7rem; font-weight: 700; color: var(--muted); padding-bottom: 6px; text-transform: uppercase; }
.cal-wd span.sat { color: var(--accent); }
.cal-d {
  position: relative; aspect-ratio: 1; display: grid; place-items: center; font-size: .86rem; border: 0; background: none; padding: 0;
  color: #b4c0ca; border-radius: 0; font-variant-numeric: tabular-nums;
}
.cal-d.empty { visibility: hidden; }
.cal-d.in { background: color-mix(in srgb, var(--accent) 12%, #fff); color: #8aa0b1; }
button.cal-d { color: var(--navy); font-weight: 700; cursor: pointer; border-radius: 50%; }
button.cal-d::before { content: ""; position: absolute; inset: 4px; border-radius: 50%; border: 1.5px solid color-mix(in srgb, var(--accent) 45%, transparent); transition: transform .2s var(--ease), background .2s; }
button.cal-d:hover::before { background: var(--tint); transform: scale(1.06); }
button.cal-d.in { border-radius: 0; }
button.cal-d.start, button.cal-d.end { color: #fff; }
button.cal-d.start::before, button.cal-d.end::before { background: var(--accent); border-color: var(--accent); box-shadow: 0 8px 18px -8px var(--accent); }
button.cal-d.preview::before { background: color-mix(in srgb, var(--accent) 70%, #fff); }
.cal-d.start { background: linear-gradient(90deg, transparent 50%, color-mix(in srgb, var(--accent) 12%, #fff) 50%); }
.cal-d.end { background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 12%, #fff) 50%, transparent 50%); }
.cal-d.start.end { background: none; }
.cal-d.today::after { content: ""; position: absolute; bottom: 5px; left: 50%; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--brass); }
button.cal-d span, button.cal-d { z-index: 0; }
button.cal-d { isolation: isolate; }
button.cal-d::before { z-index: -1; }
.cal-quick { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; min-height: 0; }
.cal-chip { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--navy); font-size: .82rem; font-weight: 600; }
.cal-chip:hover { border-color: var(--accent); background: var(--tint); }
.cal-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.cal-foot .btn { --bh: 46px; }
.btn:disabled { opacity: .45; pointer-events: none; }
@media (max-width: 759px) {
  .cal-wrap { place-items: end stretch; padding: 0; }
  .cal { width: 100%; border-radius: 24px 24px 0 0; max-height: 92dvh; padding: 20px 16px 14px; transform: translateY(40px); }
  .cal-top h2 { font-size: 1.6rem; }
  .cal-body { grid-template-columns: 32px 1fr 32px; gap: 4px; }
  .cal-nav { width: 32px; height: 32px; }
  .cal-d { font-size: .82rem; }
}

/* ---------- Destinazioni con foto ---------- */
.dest-grid { grid-template-columns: repeat(3, 1fr); }
.dest-card { aspect-ratio: 4 / 5; background: #cfe2ec; box-shadow: var(--shadow-soft); }
.dest-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), filter .6s; z-index: -2; }
.dest-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(8,38,64,0) 45%, rgba(8,38,64,.72) 100%); }
.dest-card:hover img { transform: scale(1.06); }
.dest-card::before { content: ""; position: absolute; left: 24px; bottom: 22px; width: 36px; height: 3px; border-radius: 3px; background: var(--accent); z-index: 1; transition: width .5s var(--ease); }
.dest-card:hover::before { width: 70px; }
.dest-body { background: none; padding: 24px 24px 36px; }
.dest-c { color: rgba(255,255,255,.88); }
.dest-credit {
  position: absolute; top: 12px; right: 12px; max-width: calc(100% - 24px); padding: 4px 9px; border-radius: 999px; font-size: .62rem; line-height: 1.3;
  color: #fff; background: rgba(8,38,64,.45); text-decoration: none; backdrop-filter: blur(4px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: .85;
}
.dest-credit:hover { opacity: 1; text-decoration: underline; }
@media (max-width: 1020px) { .dest-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 760px) {
  .dest-grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px; margin: 0 -16px; padding: 4px 16px 18px; scrollbar-width: none; }
  .dest-grid::-webkit-scrollbar { display: none; }
  .dest-card { flex: 0 0 78%; aspect-ratio: 4 / 5; scroll-snap-align: center; }
}

/* ---------- Wizard chiaro con sfondo della zona ---------- */
.wz-bg { position: fixed; inset: -20px; z-index: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity 1.1s var(--ease); filter: blur(3px) saturate(1.05); transform: scale(1.04); pointer-events: none; }
.wz-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(246,250,252,.62), rgba(246,250,252,.86)); }
.wz-bg.on { opacity: 1; }
.wz-inner { position: relative; z-index: 1; }
.wz-head { color: var(--navy); }
.progress li { color: rgba(14,58,92,.45); }
.progress li::before { background: rgba(14,58,92,.14); }
.progress li::after { background: var(--accent); }
.progress li.active, .progress li.done { color: var(--navy); }
.progress li.done i { background: var(--accent); border-color: var(--accent); color: #fff; }
.chip { background: rgba(255,255,255,.85); border-color: rgba(14,58,92,.12); color: var(--navy); box-shadow: 0 6px 18px -14px rgba(14,58,92,.6); }
.chip svg { color: var(--accent); }
.card { box-shadow: 0 50px 120px -50px rgba(14,58,92,.45), 0 0 0 1px rgba(14,58,92,.06); background: #fff; }
.card .step-eyebrow { color: var(--accent); }
.inp:focus, .ac input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent); }
.ac-ico { color: var(--accent); }
.check input:checked + .box { background: var(--accent); border-color: var(--accent); }
.check .box::after { border-color: #fff; }
input[type=range]::-webkit-slider-runnable-track { background: linear-gradient(90deg, var(--accent) var(--p), rgba(14,58,92,.12) var(--p)); }
input[type=range]::-moz-range-progress { background: var(--accent); }
.len-boat .len-sail { fill: var(--accent); }
.seg-card::after, .boat-card::after { border-color: rgba(14,58,92,.2); }
input:checked + .seg-card::after, input:checked + .boat-card::after { background: var(--accent); border-color: var(--accent); }
input:checked + .boat-card { background: linear-gradient(180deg, #fff, var(--tint)); }
input:checked + .boat-card svg { color: var(--accent); }
.seg-card svg { color: var(--accent); }

/* Porto di arrivo bloccato */
.route { grid-template-columns: 1fr 1fr; }
.ac.locked input { background: var(--tint); border-style: dashed; color: var(--navy); font-weight: 600; cursor: not-allowed; }
.ac.locked .ac-ico { color: var(--muted); }
.lock-note { display: flex; align-items: flex-start; gap: 8px; margin: -4px 0 6px; font-size: .84rem; color: var(--muted); line-height: 1.5; }
.lock-note svg { flex: none; width: 16px; height: 16px; margin-top: 2px; color: var(--accent); }

/* Meteo dentro il passo 1 (chiaro) */
.step .wx.show { margin-top: 18px; }
.wx-card { color: var(--ink); background: linear-gradient(100deg, var(--tint), #fff); border: 1px solid var(--line); backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: none; }
.wx-kicker { color: var(--muted); }
.wx-zone { font-size: .8rem; font-weight: 700; color: var(--accent); }
.wx-months { color: var(--muted); }
.wx-text { color: var(--ink); }
.wx-dots i { background: rgba(14,58,92,.12); }
.wx-stats dt { color: var(--muted); }
.wx-stats dd { color: var(--navy); }
.wx-note { color: var(--muted); border-top-color: var(--line); }
.wx-wind { display: flex; gap: 8px; align-items: flex-start; margin: 8px 0 0; font-size: .86rem; color: var(--muted); line-height: 1.5; }
.wx-wind svg { flex: none; width: 16px; height: 16px; margin-top: 2px; color: var(--accent); }
.wx[data-r="5"] .wx-card { --wx: #e0a325; }
.wx[data-r="4"] .wx-card { --wx: #5fae4a; }
.wx[data-r="3"] .wx-card { --wx: #3b93c4; }
.wx[data-r="2"] .wx-card { --wx: #8a97a6; }
.wx[data-r="1"] .wx-card { --wx: #d0644d; }

/* Trasferimenti: mezzo e voli */
.pax-mode { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.pax-mode .mini-lbl { margin: 0; }
.mode-opts { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.mode-opts label { position: relative; cursor: pointer; }
.mode-opts input { position: absolute; opacity: 0; pointer-events: none; }
.mode-opts span { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line); font-size: .82rem; font-weight: 600; color: var(--muted); background: #fff; transition: all .25s var(--ease); }
.mode-opts svg { width: 16px; height: 16px; }
.mode-opts input:checked + span { background: var(--navy); border-color: var(--navy); color: #fff; }
.mode-opts input:focus-visible + span { box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 35%, transparent); }
.pax-fl { list-style: none; margin: 4px 0 0; padding: 10px 12px; border-radius: 12px; background: var(--tint); display: grid; gap: 6px; font-size: .84rem; }
.pax-fl li { display: flex; justify-content: space-between; gap: 12px; color: var(--ink); }
.pax-fl li b { color: var(--navy); white-space: nowrap; }
.pax-fl li em { font-style: normal; color: var(--muted); text-align: right; }
.pax-fl small { color: var(--muted); }
.pax-fl.muted { color: var(--muted); }
.fl-total { margin-top: 12px; padding: 16px 18px; border-radius: 16px; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--accent); }
.fl-total.over { border-left-color: var(--err); background: #fff6f3; }
.fl-head { display: flex; justify-content: space-between; gap: 12px; margin: 0; font-weight: 600; color: var(--navy); }
.fl-head b { font-family: var(--serif); font-size: 1.6rem; line-height: 1; }
.fl-left, .fl-over { margin: 8px 0 0; font-size: .88rem; line-height: 1.5; }
.fl-over { color: #9f3a24; font-weight: 600; }
.fl-note { margin: 8px 0 0; font-size: .74rem; color: var(--muted); }

/* Stima prezzo chiara */
.est-card { background: #fff; color: var(--ink); border: 1px solid var(--line); border-top: 4px solid var(--accent); box-shadow: var(--shadow-soft); }
.est-card::before { background: radial-gradient(circle, color-mix(in srgb, var(--accent) 18%, transparent), transparent 70%); }
.est-kicker { color: var(--accent); }
.est-total { color: var(--navy); }
.est-range { color: var(--muted); }
.est-ico { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 40%, transparent); }
.est-lines { border-top-color: var(--line); }
.est-lines li { color: var(--muted); }
.est-lines b { color: var(--navy); }
.est-hint { color: var(--muted); }
.est-ok { background: #eaf6e6; color: #2e6b25; }
.est-kept { background: var(--tint); color: var(--navy); }
.est-alert { background: var(--foam); border: 1px solid var(--line); }
.est-note { color: var(--muted); }

/* Richieste particolari */
.notes textarea.inp { min-height: 110px; padding: 14px 16px; resize: vertical; line-height: 1.5; font-family: inherit; height: auto; }
.hint { display: block; margin-top: 6px; font-size: .78rem; color: var(--muted); line-height: 1.45; }
.step > .field.notes { margin-bottom: 18px; }

/* ---------- Banner cookie ---------- */
.ck { position: fixed; left: 20px; bottom: 20px; z-index: 95; width: min(460px, calc(100% - 40px)); opacity: 0; transform: translateY(24px); pointer-events: none; transition: opacity .35s var(--ease), transform .45s var(--ease); }
.ck.show { opacity: 1; transform: none; pointer-events: auto; }
.ck-box { position: relative; background: #fff; color: var(--ink); border-radius: 22px; padding: 22px 22px 18px; box-shadow: 0 30px 80px -24px rgba(8,38,64,.45), 0 0 0 1px rgba(14,58,92,.08); }
.ck-box h2 { margin: 0 34px 8px 0; font-family: var(--serif); font-weight: 500; font-size: 1.5rem; color: var(--navy); }
.ck-box p { margin: 0; font-size: .86rem; line-height: 1.55; color: var(--muted); }
.ck-box p a { color: var(--navy); font-weight: 600; }
.ck-x { position: absolute; top: 14px; right: 14px; width: 32px; height: 32px; border-radius: 50%; border: 0; background: transparent; color: var(--muted); display: grid; place-items: center; }
.ck-x svg { width: 16px; height: 16px; }
.ck-x:hover { background: var(--tint); color: var(--navy); }
.ck-custom { display: none; margin-top: 14px; border-top: 1px solid var(--line); }
.ck.custom .ck-custom { display: block; }
.ck-row { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.ck-row b { display: block; font-size: .9rem; color: var(--navy); }
.ck-row small { display: block; font-size: .78rem; color: var(--muted); margin-top: 2px; line-height: 1.4; }
.ck-always { font-size: .74rem; font-weight: 700; color: var(--accent); white-space: nowrap; }
.switch { position: relative; flex: none; width: 44px; height: 26px; }
.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.switch i { position: absolute; inset: 0; border-radius: 999px; background: #cfd8e0; transition: background .25s; }
.switch i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.2); transition: transform .25s var(--ease); }
.switch input:checked + i { background: var(--accent); }
.switch input:checked + i::after { transform: translateX(18px); }
.switch input:focus-visible + i { box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 35%, transparent); }
.ck-actions { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin-top: 16px; }
.ck-actions .btn { --bh: 44px; padding: 0 10px; font-size: .84rem; white-space: normal; line-height: 1.15; text-align: center; }
.btn-line { background: #fff; color: var(--navy); border-color: rgba(14,58,92,.28); }
.btn-line:hover { border-color: var(--navy); background: var(--tint); }
@media (max-width: 560px) {
  .ck { left: 0; right: 0; bottom: 0; width: 100%; }
  .ck-box { border-radius: 22px 22px 0 0; padding: 20px 16px calc(16px + env(safe-area-inset-bottom)); }
  .ck-actions { grid-template-columns: 1fr 1fr; }
  .ck-actions .btn[data-ck="custom"], .ck-actions .btn[data-ck="save"] { grid-column: 1 / -1; order: 2; }
}

/* ---------- Pagine legali ---------- */
body.page-legal { background: var(--foam); }
body.page-legal .nav { color: var(--navy); background: rgba(255,255,255,.9); box-shadow: 0 1px 0 var(--line); }
.legal-main { position: relative; z-index: 2; padding: 130px 0 80px; background: var(--foam); }
.legal { max-width: 860px; margin: 0 auto; }
.legal h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(2.4rem, 6vw, 3.6rem); line-height: 1.05; margin: 0 0 8px; color: var(--navy); }
.legal .legal-meta { color: var(--muted); font-size: .9rem; margin: 0 0 32px; }
.legal h2 { font-family: var(--serif); font-weight: 500; font-size: 1.7rem; color: var(--navy); margin: 40px 0 10px; }
.legal h3 { font-size: 1rem; color: var(--navy); margin: 22px 0 6px; }
.legal p, .legal li { line-height: 1.75; color: #34495c; font-size: .98rem; }
.legal ul { padding-left: 20px; }
.legal a { color: var(--accent); }
.legal .todo { background: #fff5d6; padding: 1px 6px; border-radius: 4px; font-weight: 600; color: #7a5a00; }
.legal table { width: 100%; border-collapse: collapse; margin: 12px 0 18px; font-size: .88rem; background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 0 0 1px var(--line); }
.legal th, .legal td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal th { background: var(--tint); color: var(--navy); font-weight: 700; }
.legal .box { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; }
.legal-alt { background: var(--tint); border-radius: 12px; padding: 10px 14px; font-size: .9rem; color: var(--navy); }
@media (max-width: 640px) {
  .legal table { display: block; overflow-x: auto; }
}

/* ---------- Ottimizzazioni mobile ---------- */
@media (max-width: 760px) {
  .route { grid-template-columns: 1fr; }
  .wx-card { grid-template-columns: auto 1fr; }
  .pax-mode { flex-direction: column; align-items: flex-start; gap: 6px; }
  .card { padding: 24px 18px; }
  .wz-inner { width: calc(100% - 20px); }
  .search-cta { min-height: 54px; }
  .hero { padding-top: 104px; }
}
@media (max-width: 480px) {
  .fl-head b { font-size: 1.35rem; }
  .pax { padding: 14px 12px; }
}
@media (hover: none) {
  .dest-card:hover img { transform: none; }
}

body.wz-open .nav { background: rgba(246,250,252,.86); backdrop-filter: blur(12px) saturate(1.2); -webkit-backdrop-filter: blur(12px) saturate(1.2); box-shadow: 0 1px 0 var(--line); padding-block: 12px; }

.footer .foot-legal { margin-inline: auto; padding-top: 22px; }

/* ---------- Mappa interattiva dei porti ---------- */
.pmap { margin: 6px 0 14px; border: 1px solid var(--line); border-radius: 20px; background: linear-gradient(180deg, #f3f9fc, #fff); padding: 14px 14px 10px; }
.pmap-head { display: flex; align-items: center; gap: 10px; min-height: 36px; margin-bottom: 8px; }
.pmap-title { margin: 0; font-family: var(--serif); font-size: 1.35rem; font-weight: 500; color: var(--navy); line-height: 1.2; }
.pmap-back { display: inline-flex; align-items: center; gap: 4px; flex: none; padding: 7px 12px 7px 8px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--navy); font-size: .82rem; font-weight: 600; }
.pmap-back svg { width: 16px; height: 16px; }
.pmap-back:hover { background: var(--tint); }
.pmap-back[hidden] { display: none; }
.pmap-body { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.pmap-svgwrap { position: relative; aspect-ratio: 1000 / 1180; max-height: 540px; width: 100%; border-radius: 16px; background: radial-gradient(120% 90% at 30% 20%, #e3f1f8, #cfe5f0); overflow: hidden; touch-action: manipulation; }
.pmap-svgwrap svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.pm-reg { fill: #f7f3ea; stroke: #b9c9d4; stroke-width: .8; vector-effect: non-scaling-stroke; stroke-linejoin: round; transition: fill .3s; }
.pm-reg.has { fill: color-mix(in srgb, var(--accent) 16%, #fbf8f1); cursor: pointer; }
.pm-reg.has:hover { fill: color-mix(in srgb, var(--accent) 26%, #fbf8f1); }
svg.zoomed .pm-reg.has { cursor: default; }
.pm-reg.focus { fill: color-mix(in srgb, var(--accent) 22%, #fbf8f1); }
.pm-area, .pm-port { cursor: pointer; outline: none; }
.pm-area .hit, .pm-port .hit { fill: transparent; }
.pm-area .dot { fill: var(--navy); stroke: #fff; stroke-width: 2.5; vector-effect: non-scaling-stroke; transition: fill .2s; }
.pm-area .cnt { fill: #fff; font-family: var(--sans); font-weight: 700; text-anchor: middle; pointer-events: none; }
.pm-area:hover .dot, .pm-area:focus-visible .dot { fill: var(--accent); }
.pm-area:focus-visible .hit { fill: color-mix(in srgb, var(--accent) 25%, transparent); }
.pm-port .dot { fill: #fff; stroke: var(--navy); stroke-width: 2.5; vector-effect: non-scaling-stroke; transition: fill .2s, stroke .2s; }
.pm-port .true { fill: var(--navy); opacity: .55; }
.pm-port:hover .dot, .pm-port.hl .dot, .pm-port:focus-visible .dot { fill: color-mix(in srgb, var(--accent) 35%, #fff); stroke: var(--accent); }
.pm-port.sel .dot { fill: var(--accent); stroke: #fff; }
.pm-links line { stroke: var(--navy); stroke-opacity: .35; stroke-dasharray: 2 2; vector-effect: non-scaling-stroke; }
.pm-label { fill: var(--navy); font-family: var(--sans); font-weight: 700; paint-order: stroke; stroke: #fff; stroke-linejoin: round; pointer-events: none; }
.pmap-side { min-width: 0; }
.pmap-hint { margin: 2px 0 10px; font-size: .84rem; color: var(--muted); line-height: 1.5; }
.pmap-list { display: grid; gap: 8px; max-height: 470px; overflow-y: auto; overscroll-behavior: contain; padding: 2px 4px 4px 2px; }
.pm-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; text-align: left; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: #fff; color: var(--ink); transition: border-color .2s, background .2s, transform .2s var(--ease); }
.pm-item:hover { border-color: var(--accent); background: var(--tint); }
.pm-item:active { transform: scale(.99); }
.pm-item > svg { flex: none; width: 18px; height: 18px; color: var(--accent); }
.pm-name { display: flex; flex-direction: column; min-width: 0; }
.pm-name b { font-size: .92rem; color: var(--navy); line-height: 1.3; }
.pm-name small { font-size: .76rem; color: var(--muted); margin-top: 2px; }
.pm-item.port { flex-direction: column; align-items: stretch; gap: 8px; }
.pm-item.sel { border-color: var(--accent); background: var(--tint); box-shadow: 0 0 0 1px var(--accent); }
.pm-boats { display: flex; flex-wrap: wrap; gap: 4px; }
.pm-boats span { font-size: .68rem; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: color-mix(in srgb, var(--accent) 12%, #fff); color: var(--navy); }
.pm-boats span.tbc { background: #f3f0e6; color: #7a6a3c; }
.pmap-src { margin: 8px 2px 0; font-size: .66rem; color: var(--muted); }
.or-type { margin: 4px 0 8px; font-size: .86rem; font-weight: 600; color: var(--muted); }
@media (max-width: 760px) {
  .pmap { padding: 12px 10px 8px; border-radius: 18px; }
  .pmap-body { grid-template-columns: 1fr; gap: 10px; }
  .pmap-svgwrap { max-height: 400px; aspect-ratio: 1000 / 1100; }
  .pmap-list { max-height: 300px; }
  .pmap-title { font-size: 1.2rem; }
}

#pmapSvg { stroke: none; fill: none; }
#pmapSvg .pm-area .cnt { stroke: none; }
.pm-rm .dot { fill: var(--accent); }
.pm-rm:hover .dot, .pm-rm:focus-visible .dot { fill: var(--navy); }

.pm-reg { fill: #f9f5ec; }
.pm-reg.has { fill: #f4ead3; }
.pm-reg.has:hover { fill: #efe1c2; }
.pm-reg.focus { fill: #f1e4c6; stroke: #a9bccb; }

.pmap-list { position: relative; }

@media (max-width: 560px) {
  .nav-home span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .nav-home { padding: 9px; border: 1px solid rgba(14,58,92,.18); border-radius: 50%; }
  .nav-home svg { width: 20px; height: 20px; }
  body.wz-open .brand-name { font-size: 1.25rem; }
  .nav-right { gap: 8px; }
}

.pm-item.port { flex-direction: row; align-items: center; }

/* =====================================================================
 * v4 — nuova copertina, ricerca in risalto, foto barche, note servizi
 * ===================================================================== */
/* Copertina: mare blu più scuro, testi bianchi con velatura per leggibilità */
.bg-video { filter: saturate(1.06) brightness(1.04); }
.bg-veil {
  background:
    linear-gradient(180deg, rgba(3,24,44,.66) 0%, rgba(3,24,44,.22) 20%, rgba(3,24,44,.12) 48%, rgba(3,24,44,.5) 100%),
    radial-gradient(75% 62% at 24% 56%, rgba(3,24,44,.5), transparent 72%);
}
body.wz-open .bg-video { filter: blur(10px) saturate(1.05) brightness(1.3); }
body.wz-open .bg-veil { background: rgba(240,247,251,.74); }
.hero-title, .hero-lead, .hero-eyebrow { text-shadow: 0 2px 18px rgba(2,18,34,.6); }
.hero-title { color: #fff; }
.hero-title em { color: #ffe2a6; }
.hero-eyebrow { color: #ffe2a6; }
.hero-lead { color: #fff; font-weight: 400; }
.scroll-cue { color: #fff; text-shadow: 0 1px 8px rgba(2,18,34,.6); }
body:not(.wz-open):not(.page-legal) .nav:not(.scrolled) { color: #fff; text-shadow: 0 1px 10px rgba(2,18,34,.55); }
body:not(.wz-open):not(.page-legal) .nav:not(.scrolled) .nav-links a { opacity: 1; font-weight: 600; }
body:not(.wz-open):not(.page-legal) .nav:not(.scrolled) .lang-btn { background: rgba(3,24,44,.35); border-color: rgba(255,255,255,.45); color: #fff; }
body:not(.wz-open):not(.page-legal) .nav:not(.scrolled) .btn-ghost { background: rgba(3,24,44,.3); border-color: rgba(255,255,255,.6); color: #fff; }
@media (max-width: 1180px) {
  body.menu-open .nav:not(.scrolled) { text-shadow: none; }
}

/* Barra di ricerca: pannello scuro e compatto, testi grandi e ben leggibili */
.search {
  background: rgba(6,30,52,.9);
  border: 1px solid rgba(255,255,255,.3);
  box-shadow: 0 34px 70px -22px rgba(1,12,24,.8), 0 0 0 6px rgba(255,255,255,.12);
  backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2);
  color-scheme: dark;
}
.search .lbl { color: #f2c46b; font-size: .76rem; letter-spacing: .14em; }
.search .mini { color: rgba(255,255,255,.78); font-size: .74rem; }
.search .date-v, .search .st-val, .search .select select { color: #fff; font-size: 1.12rem; font-weight: 700; }
.search .date-trigger:not(.has) .date-v { opacity: .95; font-weight: 600; }
.search .select select:invalid { color: rgba(255,255,255,.92); }
.search .select::after { border-color: #f2c46b; }
.search .date-ico { color: #f2c46b; }
.search .st-btn { opacity: 1; border-color: rgba(255,255,255,.6); color: #fff; }
.search-field + .search-field::before { background: rgba(255,255,255,.22); }
.search-field:hover, .search-field:focus-within { background: rgba(255,255,255,.09); }
.search .err { color: #ffc2b4; }
.search-cta { box-shadow: 0 10px 24px -10px rgba(212,168,79,.8); font-weight: 700; }

/* Foto delle barche: home (flotta) */
.fleet-item.has-photo { padding: 0 0 24px; overflow: hidden; }
.fleet-item .boat-ph { display: block; aspect-ratio: 4 / 3; overflow: hidden; margin-bottom: 18px; background: var(--tint); }
.fleet-item .boat-ph img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1.1s var(--ease); }
.fleet-item:hover .boat-ph img { transform: scale(1.05); }
.fleet-item.has-photo h3, .fleet-item.has-photo p { padding-inline: 22px; }
@media (max-width: 700px) {
  .fleet-item.has-photo { padding: 0 0 16px; }
  .fleet-item .boat-ph { margin-bottom: 12px; }
  .fleet-item.has-photo h3 { padding-inline: 14px; font-size: 1.12rem; }
}

/* Foto delle barche: scelta nel motore di ricerca */
.boat-card.has-photo { padding: 0 0 14px; overflow: hidden; gap: 2px; }
.boat-card .boat-ph { display: block; width: 100%; aspect-ratio: 4 / 3; overflow: hidden; margin-bottom: 10px; background: var(--tint); }
.boat-card .boat-ph img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .8s var(--ease), filter .3s; }
.boat-card:hover .boat-ph img { transform: scale(1.05); }
.boat-card.has-photo b, .boat-card.has-photo small { padding-inline: 14px; }
.boat-card.has-photo::after { top: 10px; right: 10px; background: rgba(255,255,255,.9); border-color: rgba(255,255,255,.95); box-shadow: 0 2px 8px rgba(0,0,0,.25); z-index: 1; }
input:checked + .boat-card.has-photo::after { background: var(--accent); border-color: #fff; box-shadow: inset 0 0 0 3px #fff, 0 2px 8px rgba(0,0,0,.25); }
input:checked + .boat-card.has-photo { box-shadow: 0 0 0 2px var(--accent), 0 18px 34px -20px rgba(7,24,42,.5); border-color: var(--accent); }
@media (max-width: 560px) {
  .boat-card.has-photo { padding-bottom: 10px; }
  .boat-card.has-photo b { padding-inline: 10px; font-size: .86rem; }
}

/* "Come passeggero 1" in evidenza */
.pax-copy {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px;
  background: var(--tint); border: 1.5px solid var(--accent); color: var(--navy);
  font-size: .82rem; text-decoration: none; cursor: pointer; transition: background .25s, color .25s;
}
.pax-copy b { font-weight: 800; color: inherit; }
.pax-copy svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.pax-copy:hover { background: var(--accent); color: #fff; }

/* Note: servizi di terzi e prezzo stimato */
.third-note {
  display: flex; align-items: flex-start; gap: 10px; margin: 14px 0 0; padding: 12px 14px; border-radius: 12px;
  background: var(--tint); border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  color: var(--ink); font-size: .88rem; line-height: 1.5; font-weight: 500;
}
.third-note svg { flex: none; width: 18px; height: 18px; margin-top: 1px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; }
.price-note { margin: 4px 0 18px; }

/* Destinazioni: 8 schede in due file da 4 */
@media (min-width: 1021px) {
  .dest-grid { grid-template-columns: repeat(4, 1fr); gap: 18px; }
  .dest-card { aspect-ratio: 3 / 4; }
  .dest-grid .reveal:nth-child(4n+2) { transition-delay: .08s; }
  .dest-grid .reveal:nth-child(4n+3) { transition-delay: .16s; }
  .dest-grid .reveal:nth-child(4n) { transition-delay: .24s; }
}
/* sfondo blu (con l'anteprima del video) mentre il video si carica */
.bg { background: #0c4466 url("img/hero-poster.webp") center / cover no-repeat; }
