/* =========================================================
   AIRILIS YACHT EXPERIENCE — design system
   Palette ibrida: cream + navy + gold
   ========================================================= */

:root {
  --cream:      #f7f4ec;
  --cream-2:    #efeadd;
  --navy:       #101e3c;
  --navy-2:     #182a50;
  --navy-soft:  rgba(16,30,60,0.08);
  --gold:       #b5912f;
  --gold-soft:  #d8bd72;
  --gold-bg:    rgba(181,145,47,0.08);
  --ink:        #23283a;
  --ink-soft:   #3a4055;
  --muted:      #6b7080;
  --line:       rgba(181,145,47,0.32);
  --line-soft:  rgba(35,40,58,0.10);
  --card-bg:    #ffffff;
  --shadow-sm:  0 1px 2px rgba(16,30,60,0.04), 0 2px 6px rgba(16,30,60,0.04);
  --shadow-md:  0 2px 8px rgba(16,30,60,0.06), 0 8px 22px rgba(16,30,60,0.08);
  --shadow-lg:  0 4px 14px rgba(16,30,60,0.08), 0 18px 40px rgba(16,30,60,0.12);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Poppins', system-ui, -apple-system, sans-serif;
  font-weight: 300;
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img { display: block; max-width: 100%; height: auto; }

a { color: inherit; text-decoration: none; transition: color 0.25s ease; }

/* === TYPOGRAPHY ====================================== */
.h-display, h1, h2, h3 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 500;
  color: var(--navy);
  letter-spacing: -0.005em;
  line-height: 1.1;
}
h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); font-weight: 500; }
h2 { font-size: clamp(2rem, 4.4vw, 3.2rem); font-weight: 500; }
h3 { font-size: clamp(1.35rem, 2.4vw, 1.8rem); font-weight: 600; }
h4 { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 1.3rem; font-weight: 600; color: var(--navy); }

em, .italic {
  font-style: italic;
  color: var(--gold);
}

.eyebrow {
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
}

.kicker {
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
}

.lead {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(1.15rem, 1.8vw, 1.4rem);
  font-weight: 400;
  font-style: italic;
  color: var(--ink-soft);
  line-height: 1.5;
}

p { color: var(--ink-soft); }

/* === LAYOUT ========================================== */
.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.container-sm { width: 100%; max-width: 880px; margin: 0 auto; padding: 0 24px; }
.section { padding: clamp(56px, 8vw, 112px) 0; }
.section-tight { padding: clamp(40px, 5vw, 72px) 0; }
.section-cream { background: var(--cream); }
.section-cream-2 { background: var(--cream-2); }
.section-navy { background: var(--navy); color: #f5f1e6; }
.section-navy h1, .section-navy h2, .section-navy h3, .section-navy h4 { color: #f5f1e6; }
.section-navy p { color: rgba(245,241,230,0.78); }
.section-navy .eyebrow { color: var(--gold-soft); }

.section-head { text-align: center; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head .eyebrow { margin-bottom: 14px; }
.section-head h2 { margin-bottom: 12px; }
.section-head .lead { max-width: 680px; margin: 0 auto; }

.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* === SITE HEADER ====================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247,244,236,0.92);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  border-bottom: 1px solid var(--line-soft);
}
.site-header-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  padding: 0 28px;
  max-width: 1440px;
  margin: 0 auto;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.15rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--navy);
}
.brand-mark {
  width: 28px; height: 28px;
  opacity: 0.95;
}
.main-nav {
  display: inline-flex;
  align-items: center;
  gap: 36px;
}
.main-nav a {
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink);
  padding: 8px 0;
  position: relative;
}
.main-nav a:hover,
.main-nav a.is-active { color: var(--gold); }
.main-nav a.is-active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--gold);
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}
.lang-switch a { color: var(--muted); }
.lang-switch a:hover { color: var(--gold-soft); }
.lang-switch-current { color: var(--gold); }
.lang-switch-divider { color: var(--muted); opacity: 0.5; }

/* Mobile nav trigger */
.nav-toggle {
  display: none;
  border: none;
  background: none;
  width: 36px; height: 36px;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--navy);
  transition: all 0.3s ease;
}

.header-cta-wrap {
  display: inline-flex;
  align-items: center;
  gap: 22px;
}

@media (max-width: 880px) {
  .main-nav { display: none; }
  /* lang-switch resta visibile su mobile, accanto al burger */
  .nav-toggle { display: inline-flex; }
  .site-header-in { padding: 0 18px; }
  .header-cta-wrap { gap: 14px; }
  .header-cta-wrap > .lang-switch {
    font-size: 0.66rem;
    letter-spacing: 0.22em;
    gap: 0.35rem;
  }
}
@media (max-width: 380px) {
  .header-cta-wrap > .lang-switch { font-size: 0.6rem; gap: 0.28rem; }
  .brand span { display: none; } /* solo logo a sx su schermi molto stretti */
}

/* === FULL-SCREEN MOBILE MENU ========================== */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--cream);
  display: flex;
  flex-direction: column;
  padding: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s ease, visibility 0s 0.45s;
  overflow: hidden;
}
.mobile-nav.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.5s ease, visibility 0s;
}
/* Subtle drift-down overlay layer for cinematic feel */
.mobile-nav::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 30%, rgba(216,189,114,0.08) 0%, transparent 60%);
  pointer-events: none;
  opacity: 0;
  transform: translateY(-30px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(.2,.7,.3,1);
}
.mobile-nav.is-open::before {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.05s;
}

.mobile-nav-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 72px;
  padding: 0 18px;
  border-bottom: 1px solid var(--line-soft);
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}
.mobile-nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.15rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--navy);
  text-decoration: none;
}
.mobile-nav-brand img {
  width: 28px;
  height: 28px;
  opacity: 0.95;
}
.mobile-nav-close {
  width: 44px;
  height: 44px;
  border: 1px solid transparent;
  background: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  transition: all 0.25s ease;
  border-radius: 50%;
  position: relative;
}
.mobile-nav-close::before,
.mobile-nav-close::after {
  content: '';
  position: absolute;
  width: 22px;
  height: 1.5px;
  background: var(--navy);
  transition: background 0.25s ease;
}
.mobile-nav-close::before { transform: rotate(45deg); }
.mobile-nav-close::after { transform: rotate(-45deg); }
.mobile-nav-close:hover { border-color: var(--gold); }
.mobile-nav-close:hover::before,
.mobile-nav-close:hover::after { background: var(--gold); }

.mobile-nav-items {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0;
  padding: 28px 32px;
  position: relative;
  z-index: 2;
}
.mobile-nav-items a {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 0;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-style: italic;
  font-size: clamp(1.8rem, 6vw, 2.4rem);
  color: var(--navy);
  border-bottom: 1px solid var(--line-soft);
  text-decoration: none;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(.2,.7,.3,1), color 0.25s ease;
}
.mobile-nav-items a::before {
  content: attr(data-num);
  font-family: 'Poppins', sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: 0.62rem;
  letter-spacing: 0.32em;
  color: var(--gold);
  width: 26px;
  display: inline-block;
  opacity: 0.7;
  transition: opacity 0.25s ease, color 0.25s ease;
}
.mobile-nav-items a:hover {
  color: var(--gold);
  padding-left: 8px;
}
.mobile-nav-items a:hover::before { opacity: 1; color: var(--gold-soft); }

.mobile-nav.is-open .mobile-nav-items a { opacity: 1; transform: translateY(0); }
.mobile-nav.is-open .mobile-nav-items a:nth-child(1) { transition-delay: 0.18s; }
.mobile-nav.is-open .mobile-nav-items a:nth-child(2) { transition-delay: 0.25s; }
.mobile-nav.is-open .mobile-nav-items a:nth-child(3) { transition-delay: 0.32s; }
.mobile-nav.is-open .mobile-nav-items a:nth-child(4) { transition-delay: 0.39s; }
.mobile-nav.is-open .mobile-nav-items a:nth-child(5) { transition-delay: 0.46s; }
.mobile-nav.is-open .mobile-nav-items a:nth-child(6) { transition-delay: 0.53s; }
.mobile-nav.is-open .mobile-nav-items a:nth-child(7) { transition-delay: 0.60s; }

.mobile-nav-footer {
  padding: 24px 32px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.mobile-nav.is-open .mobile-nav-footer {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.72s;
}
.mobile-nav-footer .lang-switch { font-size: 0.8rem; }
.mobile-nav-footer .contact-link {
  font-family: 'Poppins', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: var(--gold);
  text-decoration: none;
}

@media (min-width: 881px) {
  .mobile-nav, .nav-toggle { display: none !important; }
}

/* === BUTTONS ========================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 30px;
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  border: 1px solid var(--gold);
  color: var(--gold);
  background: transparent;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(.2,.7,.3,1);
  position: relative;
  overflow: hidden;
  text-decoration: none;
}
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(.2,.7,.3,1);
  z-index: -1;
}
.btn:hover::before { transform: scaleX(1); }
.btn:hover { color: #fff; border-color: var(--gold); }

.btn-primary {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}
.btn-primary::before { background: var(--gold); }
.btn-primary:hover { color: #fff; border-color: var(--gold); }

.btn-ghost {
  border-color: rgba(35,40,58,0.18);
  color: var(--navy);
}
.btn-ghost::before { background: var(--navy); }
.btn-ghost:hover { color: var(--cream); border-color: var(--navy); }

/* On dark hero backgrounds the ghost button needs light colors to be visible */
.hero .btn-ghost,
.hero-mini .btn-ghost,
.boat-hero .btn-ghost {
  color: #fff;
  border-color: rgba(255,255,255,0.55);
}
.hero .btn-ghost::before,
.hero-mini .btn-ghost::before,
.boat-hero .btn-ghost::before { background: #fff; }
.hero .btn-ghost:hover,
.hero-mini .btn-ghost:hover,
.boat-hero .btn-ghost:hover {
  color: var(--navy);
  border-color: #fff;
}

.btn-sm { padding: 10px 22px; font-size: 0.66rem; letter-spacing: 0.26em; }
.btn-lg { padding: 18px 38px; font-size: 0.78rem; }

.btn-row { display: inline-flex; gap: 16px; flex-wrap: wrap; }

/* === CARDS ============================================ */
.card {
  background: var(--card-bg);
  border: 1px solid var(--line-soft);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: all 0.35s cubic-bezier(.2,.7,.3,1);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--line);
}

.card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--cream-2);
}
.card-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(.2,.7,.3,1);
}
.card:hover .card-media img { transform: scale(1.05); }

.card-body { padding: 24px 26px 28px; flex: 1; display: flex; flex-direction: column; }
.card-eyebrow {
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  font-size: 0.62rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}
.card-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 10px;
}
.card-sub {
  font-family: 'Poppins', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 14px;
}
.card-text {
  font-size: 0.92rem;
  color: var(--ink-soft);
  line-height: 1.6;
  margin-bottom: 18px;
  flex: 1;
}
.card-foot {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
}
.card-price {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.05rem;
  color: var(--navy);
}
.card-price b { font-style: normal; font-weight: 700; color: var(--gold); }
.card-link {
  font-family: 'Poppins', sans-serif;
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold);
}
.card-link::after {
  content: ' →';
  transition: transform 0.3s ease;
  display: inline-block;
}
.card-link:hover::after { transform: translateX(3px); }

/* Chips */
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.chip {
  display: inline-flex;
  align-items: center;
  font-family: 'Poppins', sans-serif;
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  background: var(--gold-bg);
  border: 1px solid var(--line);
  padding: 4px 10px;
  border-radius: 1px;
}
.chip b { font-weight: 600; color: var(--navy); margin-right: 3px; }

/* === HERO ============================================= */
.hero {
  position: relative;
  width: 100%;
  min-height: 78vh;
  display: flex;
  align-items: center;
  background: var(--navy);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: -2;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(16,30,60,0.78) 0%,
    rgba(16,30,60,0.5) 50%,
    rgba(16,30,60,0.4) 100%);
  z-index: -1;
}
.hero-in {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 100px 28px;
  position: relative;
}
.hero h1 {
  color: #fff;
  margin-bottom: 18px;
  max-width: 12ch;
}
.hero .lead { color: rgba(245,241,230,0.92); margin-bottom: 32px; max-width: 56ch; }
.hero .eyebrow { color: var(--gold-soft); margin-bottom: 18px; }

.hero-mini {
  min-height: 44vh;
  text-align: center;
}
.hero-mini::before {
  background: linear-gradient(
    to bottom,
    rgba(16,30,60,0.66) 0%,
    rgba(16,30,60,0.55) 100%);
}
.hero-mini .hero-in { padding: 80px 28px; text-align: center; }
.hero-mini h1 { max-width: none; margin-left: auto; margin-right: auto; }
.hero-mini .lead { margin-left: auto; margin-right: auto; }

/* === FORMS ============================================ */
.form-section {
  background: var(--cream);
  position: relative;
}
.form-card {
  background: #fff;
  border: 1px solid var(--line);
  padding: clamp(28px, 4vw, 48px);
  box-shadow: var(--shadow-sm);
  position: relative;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px 24px;
}
.field { display: flex; flex-direction: column; }
.field.full { grid-column: 1 / -1; }
.field label {
  font-family: 'Poppins', sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: 0.78rem;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}
.field input,
.field select,
.field textarea {
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--cream);
  border: 1px solid var(--line-soft);
  padding: 12px 14px;
  outline: none;
  transition: border-color 0.25s ease, background 0.25s ease;
  border-radius: 1px;
  width: 100%;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--gold);
  background: #fff;
}
.field textarea { min-height: 110px; resize: vertical; }
.field select { cursor: pointer; appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
.form-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--line-soft);
}
.form-note {
  font-family: 'Poppins', sans-serif;
  font-size: 0.74rem;
  color: var(--muted);
  font-style: italic;
}
.form-success {
  display: none;
  text-align: center;
  padding: 40px 20px;
}
.form-success.is-shown { display: block; }
.form-success h3 { color: var(--gold); margin-bottom: 12px; }
@media (max-width: 640px) {
  .form-grid { grid-template-columns: 1fr; }
}

/* Filter bar (charter page) */
.filter-bar {
  background: #fff;
  border: 1px solid var(--line);
  padding: 22px 24px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 56px;
}
.filter-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr) auto;
  gap: 16px;
  align-items: end;
}
.filter-grid .field label {
  font-size: 0.62rem;
  letter-spacing: 0.24em;
}
.filter-grid select { padding: 10px 30px 10px 12px; font-size: 0.86rem; }
.filter-grid .btn { padding: 10px 22px; }
@media (max-width: 980px) {
  .filter-grid { grid-template-columns: repeat(2, 1fr); }
  .filter-grid .btn { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .filter-grid { grid-template-columns: 1fr; }
}

/* === FOOTER =========================================== */
.site-footer {
  background: var(--navy);
  color: rgba(245,241,230,0.78);
  padding: 72px 0 32px;
  margin-top: auto;
}
.site-footer-in {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 28px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
}
.foot-brand h3 {
  color: #f5f1e6;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.4rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}
.foot-brand p { font-size: 0.88rem; color: rgba(245,241,230,0.65); margin-bottom: 18px; }

.foot-col h4 {
  font-family: 'Poppins', sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-bottom: 18px;
}
.foot-col ul { list-style: none; }
.foot-col li { margin-bottom: 10px; font-size: 0.88rem; }
.foot-col a { color: rgba(245,241,230,0.7); }
.foot-col a:hover { color: var(--gold); }

.foot-bottom {
  max-width: 1240px;
  margin: 56px auto 0;
  padding: 24px 28px 0;
  border-top: 1px solid rgba(245,241,230,0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.74rem;
  color: rgba(245,241,230,0.5);
}
.foot-bottom .lang-switch a { color: rgba(245,241,230,0.7); }
.foot-bottom .lang-switch-current { color: var(--gold); }

@media (max-width: 880px) {
  .site-footer-in { grid-template-columns: 1fr 1fr; gap: 36px; }
}
@media (max-width: 520px) {
  .site-footer-in { grid-template-columns: 1fr; gap: 28px; }
  .foot-bottom { flex-direction: column; align-items: flex-start; }
}

/* === SCROLL-IN ANIMATIONS (subtle) =================== */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(.2,.7,.3,1); }
.reveal.is-in { opacity: 1; transform: translateY(0); }

/* === UTILS =========================================== */
.text-center { text-align: center; }
.text-gold { color: var(--gold); }
.text-navy { color: var(--navy); }
.divider {
  display: block;
  width: 56px;
  height: 1px;
  background: var(--gold);
  margin: 18px auto;
}
.spacer-sm { height: 36px; }
.spacer-md { height: 64px; }
.spacer-lg { height: 96px; }

/* Boat-specific (single page) */
.boat-hero {
  background: var(--navy);
  color: #fff;
  position: relative;
  height: calc(100vh - 72px);
  height: calc(100svh - 72px);
  min-height: 520px;
  display: flex;
  flex-direction: column;
  isolation: isolate;
  overflow: hidden;
  text-align: center;
}
.boat-hero-bg {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-size: cover;
  background-position: center;
  z-index: -2;
}
.boat-hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background:
    linear-gradient(180deg, rgba(7,17,30,0.45) 0%, rgba(7,17,30,0.18) 30%, rgba(7,17,30,0.18) 70%, rgba(7,17,30,0.55) 100%),
    radial-gradient(ellipse at center, rgba(7,17,30,0) 0%, rgba(7,17,30,0.22) 90%);
  z-index: -1;
}
.boat-hero-in {
  flex: 1 1 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 70px 28px 20px;
}
.boat-hero .eyebrow { color: var(--gold-soft); margin-bottom: 14px; }
.boat-hero h1 { color: #fff; margin-bottom: 14px; }
.boat-hero .sub {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.3rem;
  color: var(--gold-soft);
}
.boat-section {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 64px;
  padding: clamp(48px, 7vw, 96px) 0;
}
@media (max-width: 880px) {
  .boat-section { grid-template-columns: 1fr; gap: 40px; }
}
.boat-desc h2 { margin-bottom: 18px; }
.boat-desc p { font-size: 1.02rem; line-height: 1.75; margin-bottom: 18px; }
.boat-specs {
  background: #fff;
  border: 1px solid var(--line);
  padding: 32px;
  align-self: start;
  position: sticky;
  top: 100px;
}
.boat-specs h3 { font-size: 1.2rem; margin-bottom: 18px; padding-bottom: 12px; border-bottom: 1px solid var(--line-soft); }
.spec-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line-soft);
  font-size: 0.88rem;
}
.spec-row:last-of-type { border-bottom: none; }
.spec-row .k { color: var(--muted); }
.spec-row .v { color: var(--navy); font-weight: 500; }
.boat-price {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--line-soft);
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.4rem;
  color: var(--navy);
  text-align: center;
}
.boat-price b { font-style: normal; font-weight: 700; color: var(--gold); font-size: 1.6rem; }
.gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  padding-bottom: clamp(48px, 7vw, 96px);
}
.gallery a {
  display: block;
  overflow: hidden;
  cursor: zoom-in;
  position: relative;
  background: var(--cream-2);
}
.gallery a::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(16,30,60,0);
  transition: background 0.3s ease;
}
.gallery a:hover::after { background: rgba(16,30,60,0.18); }
.gallery a:hover img { transform: scale(1.04); }
.gallery img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(.2,.7,.3,1);
  display: block;
}
@media (min-width: 720px) {
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .gallery--2 { grid-template-columns: repeat(2, 1fr); }

  /* Mosaic 3: row 1 = 2 small, row 2 = 1 big (full width) */
  .gallery--3 {
    grid-template-columns: 1fr 1fr;
  }
  .gallery--3 > a:first-child {
    grid-column: 1 / 3;
    grid-row: 2;
  }
  .gallery--3 > a:first-child img {
    aspect-ratio: 21 / 9;
  }

  .gallery--4 { grid-template-columns: repeat(2, 1fr); }
  .gallery--4 > a:first-child { grid-column: 1 / -1; aspect-ratio: 21/9; }
  .gallery--4 > a:first-child img { aspect-ratio: 21/9; }
}

/* === LIGHTBOX ========================================= */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(7, 15, 33, 0.94);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 5vw 6vw;
}
.lightbox.is-open { display: flex; }
.lightbox-content {
  position: relative;
  max-width: 100%;
  max-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-img {
  max-width: 92vw;
  max-height: 86vh;
  object-fit: contain;
  box-shadow: 0 18px 60px rgba(0,0,0,0.6);
  background: #000;
}
.lightbox-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 56px; height: 56px;
  border: 1px solid rgba(216, 189, 114, 0.4);
  background: rgba(7, 15, 33, 0.6);
  color: var(--gold-soft);
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  font-weight: 400;
  line-height: 1;
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}
.lightbox-btn:hover {
  background: var(--gold);
  color: #fff;
  border-color: var(--gold);
}
.lightbox-prev { left: 1vw; }
.lightbox-next { right: 1vw; }
.lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 44px; height: 44px;
  border: 1px solid rgba(216, 189, 114, 0.4);
  background: rgba(7, 15, 33, 0.6);
  color: var(--gold-soft);
  font-family: 'Poppins', sans-serif;
  font-size: 1.4rem;
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  z-index: 2;
}
.lightbox-close:hover {
  background: var(--gold);
  color: #fff;
  border-color: var(--gold);
}
.lightbox-counter {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--gold-soft);
  font-family: 'Poppins', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}
@media (max-width: 720px) {
  .lightbox { padding: 12vw 4vw; }
  .lightbox-btn { width: 44px; height: 44px; font-size: 1.5rem; }
  .lightbox-prev { left: 6px; }
  .lightbox-next { right: 6px; }
  .lightbox-img { max-width: 96vw; max-height: 76vh; }
}

/* === BOAT DETAIL — refined ============================ */
.boat-hero .meta-tag {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold-soft);
}
.boat-hero .meta-tag::before,
.boat-hero .meta-tag::after {
  content: '';
  width: 30px;
  height: 1px;
  background: var(--gold-soft);
  opacity: 0.6;
}
.boat-hero .meta-tag,
.boat-hero h1,
.boat-hero .sub {
  text-shadow: 0 2px 24px rgba(7,17,30,0.4);
}
.boat-hero .scroll-indicator {
  position: absolute;
  bottom: 130px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  color: rgba(245,241,230,0.7);
  font-family: 'Poppins', sans-serif;
  font-size: 0.62rem;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  animation: scroll-fade-in 1.6s ease 1.4s forwards;
}
.boat-hero .scroll-indicator::after {
  content: '';
  width: 1px;
  height: 42px;
  background: linear-gradient(to bottom, rgba(216,189,114,0.85), transparent);
  transform-origin: top center;
  animation: scroll-pulse 2.4s ease-in-out infinite;
}
@keyframes scroll-fade-in { to { opacity: 1; } }
@keyframes scroll-pulse {
  0%, 100% { transform: scaleY(1); opacity: 0.85; }
  50%      { transform: scaleY(1.6); opacity: 0.3; }
}
@media (prefers-reduced-motion: reduce) {
  .boat-hero .scroll-indicator, .boat-hero .scroll-indicator::after {
    animation: none;
  }
}

/* === BOAT HERO — all gold accents → white for contrast ==== */
.boat-hero .eyebrow,
.boat-hero .meta-tag,
.boat-hero .sub,
.boat-hero .hero-audio-label,
.boat-hero-stats .kf .lbl {
  color: #fff;
}
.boat-hero .meta-tag::before,
.boat-hero .meta-tag::after {
  background: #fff;
  opacity: 0.85;
}
.boat-hero-stats .kf .lbl { opacity: 0.85; }

/* === BOAT HERO — auto-animate on load (no scroll required) === */
@keyframes boat-hero-rise {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
.boat-hero .reveal,
.boat-hero-stats.reveal {
  animation: boat-hero-rise 0.9s cubic-bezier(.2,.7,.3,1) both;
}
.boat-hero .meta-tag.reveal   { animation-delay: 0.10s; }
.boat-hero h1.reveal          { animation-delay: 0.25s; }
.boat-hero .sub.reveal        { animation-delay: 0.40s; }
.boat-hero .hero-audio.reveal { animation-delay: 0.55s; }
.boat-hero-stats.reveal       { animation-delay: 0.70s; }

/* === PORTAL BACK LINK (header) ========================== */
.portal-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.66rem;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--navy);
  border: 1px solid var(--line);
  padding: 8px 14px;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
  white-space: nowrap;
  text-decoration: none;
}
.portal-link::before {
  content: '\2190';
  font-size: 0.95rem;
  line-height: 1;
  letter-spacing: 0;
}
.portal-link:hover {
  background: var(--navy);
  color: var(--cream, #f7f4ec);
  border-color: var(--navy);
}
@media (max-width: 880px) {
  .portal-link { padding: 6px 10px; font-size: 0.58rem; letter-spacing: 0.22em; gap: 6px; }
  .portal-link::before { font-size: 0.85rem; }
}

/* === FLOATING AUDIO DOCK (boat pages) =================== */
.audio-dock {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 80;
  width: 320px;
  max-width: calc(100vw - 28px);
  background: rgba(7,17,30,0.92);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid rgba(216,189,114,0.35);
  border-radius: 14px;
  padding: 14px 16px 14px;
  color: var(--ink, #f5f1e6);
  box-shadow: 0 18px 50px -20px rgba(0,0,0,0.55);
  opacity: 0;
  transform: translateY(16px);
  animation: dock-in 0.7s cubic-bezier(.2,.7,.3,1) 1.4s forwards;
}
@keyframes dock-in { to { opacity: 1; transform: translateY(0); } }

.audio-dock-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.audio-dock-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(216,189,114,0.45);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--gold-soft, #d8bd72);
}
.audio-dock-icon svg { width: 18px; height: 18px; }
.audio-dock-text { flex: 1; min-width: 0; }
.audio-dock-text strong {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 500;
  font-size: 1.05rem;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 2px;
}
.audio-dock-text small {
  display: block;
  font-family: 'Poppins', sans-serif;
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(245,241,230,0.65);
}
.audio-dock-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(216,189,114,0.16);
  border: 1px solid rgba(216,189,114,0.5);
  color: var(--gold-soft, #d8bd72);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  z-index: 2;
}
.audio-dock-close svg { width: 14px; height: 14px; display: block; }
.audio-dock-close:hover {
  background: var(--gold-soft, #d8bd72);
  border-color: var(--gold-soft, #d8bd72);
  color: var(--bg, #07111e);
}
/* Give the heading row a little right padding so the minimize button doesn't overlap text */
.audio-dock-head { padding-right: 28px; }

.audio-dock audio {
  display: block;
  width: 100%;
  height: 34px;
  filter: invert(0.92) hue-rotate(180deg) sepia(0.1) saturate(0.4);
  opacity: 0.95;
}

/* Collapsed pill — small round button, click to expand */
.audio-dock.is-collapsed {
  width: 56px;
  height: 56px;
  padding: 0;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}
.audio-dock.is-collapsed:hover {
  background: rgba(7,17,30,0.98);
  border-color: var(--gold-soft, #d8bd72);
  transform: scale(1.04);
}
.audio-dock.is-collapsed > *:not(.audio-dock-collapsed-icon) { display: none; }
.audio-dock-collapsed-icon {
  display: none;
  color: var(--gold-soft, #d8bd72);
}
.audio-dock-collapsed-icon svg { width: 22px; height: 22px; display: block; }
.audio-dock.is-collapsed .audio-dock-collapsed-icon { display: inline-flex; }
/* Pulse ring while audio is playing in collapsed mode */
.audio-dock.is-collapsed.is-playing::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  border: 1px solid rgba(216,189,114,0.5);
  animation: dock-ring 1.8s ease-out infinite;
  pointer-events: none;
}
@keyframes dock-ring {
  0%   { transform: scale(0.95); opacity: 0.8; }
  100% { transform: scale(1.35); opacity: 0; }
}

@media (max-width: 640px) {
  .audio-dock { right: 12px; bottom: 12px; left: 12px; width: auto; max-width: none; padding: 12px 14px; }
  .audio-dock.is-collapsed { left: auto; width: 52px; height: 52px; }
}

/* === HERO STATS OVERLAY ================================== */
.boat-hero-stats {
  position: relative;
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: clamp(28px, 5vw, 64px);
  padding: 22px 24px 26px;
  background: linear-gradient(to top, rgba(7,17,30,0.55) 0%, rgba(7,17,30,0) 100%);
  z-index: 2;
}
.boat-hero-stats .kf {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
  border: none;
  background: transparent;
  padding: 0;
}
.boat-hero-stats .kf .val {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.6rem, 2.6vw, 2.4rem);
  color: #fff;
  line-height: 1;
  letter-spacing: 0.01em;
}
.boat-hero-stats .kf .lbl {
  font-family: 'Poppins', sans-serif;
  font-size: 0.6rem;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: var(--gold-soft);
  opacity: 0.85;
}
@media (max-width: 640px) {
  .boat-hero-stats { padding: 18px 16px 22px; gap: 22px; }
  .boat-hero-stats .kf .lbl { font-size: 0.54rem; letter-spacing: 0.28em; }
}

/* Push the scroll indicator above the stats overlay */
.boat-hero .scroll-indicator { bottom: 130px; }
@media (max-width: 640px) {
  .boat-hero .scroll-indicator { display: none; }
}
.boat-hero h1 {
  font-size: clamp(2.8rem, 7vw, 5.4rem);
  font-weight: 500;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}
.boat-hero .sub {
  display: block;
  margin-top: 10px;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.4rem;
  color: var(--gold-soft);
}

.boat-key-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.boat-key-features .kf {
  padding: 26px 24px;
  text-align: center;
  border-right: 1px solid var(--line-soft);
}
.boat-key-features .kf:last-child { border-right: none; }
.boat-key-features .kf .lbl {
  display: block;
  font-family: 'Poppins', sans-serif;
  font-size: 0.62rem;
  font-weight: 400;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.boat-key-features .kf .val {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.1;
}
.boat-key-features .kf .val small { font-size: 0.8rem; color: var(--gold); font-weight: 400; }
@media (max-width: 720px) {
  .boat-key-features { grid-template-columns: repeat(2, 1fr); }
  .boat-key-features .kf:nth-child(2) { border-right: none; }
  .boat-key-features .kf:nth-child(1),
  .boat-key-features .kf:nth-child(2) { border-bottom: 1px solid var(--line-soft); }
}

.boat-desc .eyebrow { margin-bottom: 14px; }
.boat-desc h2 {
  font-size: clamp(2rem, 3.5vw, 2.6rem);
  font-weight: 500;
  margin-bottom: 22px;
}
.boat-desc .lead-quote {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.25rem;
  color: var(--gold);
  line-height: 1.5;
  border-left: 2px solid var(--gold);
  padding-left: 20px;
  margin: 28px 0;
}
.boat-included {
  margin-top: 28px;
  padding: 22px 26px;
  background: var(--gold-bg);
  border-left: 3px solid var(--gold);
}
.boat-included .lbl {
  font-family: 'Poppins', sans-serif;
  font-size: 0.66rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
}
.boat-included p { font-size: 0.95rem; color: var(--ink); margin: 0; }

.boat-specs h3 {
  font-size: 1.1rem;
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 22px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--gold);
}

.boat-related {
  padding: clamp(56px, 8vw, 96px) 0;
  background: var(--cream-2);
}
.boat-related h3 {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.6rem;
  text-align: center;
  margin-bottom: 36px;
  color: var(--navy);
}

/* === CHARTER FILTER — refined ========================= */
.filter-bar.is-sticky {
  position: sticky;
  top: 72px;
  z-index: 50;
  margin: 0 0 36px;
  box-shadow: var(--shadow-md);
}
.filter-actions {
  display: flex;
  gap: 12px;
  align-items: end;
}
.filter-results-count {
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 28px;
  text-align: center;
  letter-spacing: 0.1em;
}
.filter-results-count b { color: var(--gold); font-weight: 600; }
.no-results {
  text-align: center;
  padding: 80px 24px;
  color: var(--muted);
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.4rem;
}

/* === PORT CHIP ON CARD (flotta v2) ==================== */
.card-port {
  position: absolute;
  top: 18px; left: 18px;
  background: rgba(16,30,60,0.85);
  color: var(--gold-soft);
  padding: 7px 14px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
  border-radius: 1px;
  z-index: 2;
}

/* Coming soon panel */
.coming {
  text-align: center;
  padding: clamp(60px, 10vw, 120px) 24px;
  background: var(--cream-2);
  border: 1px solid var(--line-soft);
  border-radius: 1px;
}
.coming h2 { margin-bottom: 18px; }
.coming p { max-width: 56ch; margin: 0 auto 28px; }

/* TEMPORANEO: player audio delle schede barca nascosto finché non ci sono le tracce.
   Per riattivarlo: eliminare questa regola. */
.audio-dock { display: none !important; }
