/* ───────────────────────────────────────────────
   GITE FANTASTICHE — Tour in Barca nel Cilento
   ─────────────────────────────────────────────── */

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

:root {
  --navy: #0a1628;
  --deep: #0d2240;
  --ocean: #1a4a7a;
  --sea: #1e6b9e;
  --turq: #2aa8c4;
  --aqua: #5ecfdf;
  --foam: #a8edf0;
  --gold: #d4a853;
  --sand: #f5e6c8;
  --cream: #fdf8f0;
  --white: #ffffff;
  --text-light: rgba(255,255,255,0.75);
  --text-muted: rgba(255,255,255,0.45);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--navy);
  color: var(--white);
  overflow-x: hidden;
}

/* ── WELCOME OVERLAY ── */
.welcome-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: radial-gradient(ellipse at 50% 40%, #0d3a6e 0%, #040d1a 70%);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: opacity 0.6s ease;
}
.welcome-inner { text-align: center; padding: 2rem; }
.welcome-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 8vw, 5rem);
  font-weight: 300; color: white; line-height: 1;
  margin-bottom: 0.5rem;
}
.welcome-logo span { color: var(--aqua); }
.welcome-tagline {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: clamp(1rem, 3vw, 1.5rem);
  color: var(--gold);
  margin-bottom: 3rem;
}
.welcome-captain {
  display: block;
  width: 130px;
  height: auto;
  margin: 0 auto 2rem;
  animation: pulse 2s ease-in-out infinite;
}
.welcome-cta {
  display: inline-flex; align-items: center; gap: 0.75rem;
  background: var(--turq); color: var(--navy);
  padding: 1rem 2.5rem; border-radius: 100px;
  font-size: 1rem; font-weight: 600;
  letter-spacing: 0.05em; text-transform: uppercase;
  box-shadow: 0 0 30px rgba(42,168,196,0.5);
  animation: pulse 2s ease-in-out infinite;
}
.welcome-anchor { font-size: 1.2rem; }
.welcome-hint {
  margin-top: 1.5rem;
  font-size: 0.75rem; color: rgba(255,255,255,0.35);
  letter-spacing: 0.1em; text-transform: uppercase;
}
@keyframes pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.04); } }

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.25rem 3rem;
  background: linear-gradient(to bottom, rgba(10,22,40,0.95) 0%, transparent 100%);
  backdrop-filter: blur(4px);
}
.nav-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem; font-weight: 600;
  color: var(--white); text-decoration: none;
}
.nav-logo span { color: var(--aqua); }
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a {
  font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-light); text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--aqua); }

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  padding: 5rem 2rem 3rem;
  position: relative;
  overflow: hidden;
  background: radial-gradient(ellipse 120% 80% at 50% 80%, #0d3a6e 0%, #0a1628 60%);
}
.hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 300; line-height: 1;
  margin-bottom: 0.5rem;
}
.hero h1 em { font-style: italic; color: var(--aqua); }
.hero-subtitle {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.2rem, 3vw, 2rem);
  font-style: italic; color: var(--gold);
  margin-bottom: 2rem;
}
.hero-desc {
  max-width: 600px; margin: 0 auto 3rem;
  font-size: 1rem; line-height: 1.8;
  color: var(--text-light);
}
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; }

.btn-primary {
  background: var(--turq); color: var(--navy);
  padding: 0.9rem 2.5rem; border-radius: 100px;
  font-size: 0.85rem; font-weight: 500;
  letter-spacing: 0.05em; text-transform: uppercase;
  text-decoration: none; transition: all 0.25s;
}
.btn-primary:hover { background: var(--aqua); transform: translateY(-2px); }
.btn-small { display: inline-block; font-size: 0.8rem; }
.btn-large { font-size: 0.9rem; }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: #e8bc66; }
.btn-outline {
  border: 1px solid rgba(255,255,255,0.3); color: var(--white);
  padding: 0.9rem 2.5rem; border-radius: 100px;
  font-size: 0.85rem; letter-spacing: 0.05em; text-transform: uppercase;
  text-decoration: none; transition: all 0.25s;
}
.btn-outline:hover { border-color: var(--aqua); color: var(--aqua); }
.btn-video {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(212,168,83,0.12);
  border: 1px solid rgba(212,168,83,0.4);
  color: var(--gold);
  padding: 0.55rem 1.1rem; border-radius: 100px;
  font-size: 0.8rem; text-decoration: none;
  transition: background 0.2s;
}
.btn-video:hover { background: rgba(212,168,83,0.25); }
.btn-video span { font-size: 1rem; }

.hero-scroll {
  position: absolute; bottom: 2.5rem; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  font-size: 0.65rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--text-muted);
  animation: float 2s ease-in-out infinite;
}
.hero-scroll::after {
  content: ''; width: 1px; height: 40px;
  background: linear-gradient(to bottom, var(--text-muted), transparent);
}
@keyframes float {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* ── CAPTAIN ── */
.hero-layout {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 1.5rem; width: 100%; max-width: 1100px;
}
.hero-captain-row {
  display: flex; align-items: flex-end; justify-content: center;
  gap: 3rem; flex-wrap: wrap; width: 100%;
}
.hero-content { flex: 1; min-width: 260px; text-align: center; max-width: 700px; }
.captain-wrapper {
  display: flex; flex-direction: column; align-items: center;
  animation: captainFloat 3s ease-in-out infinite;
}
.captain-clickable {
  cursor: pointer; position: relative; display: inline-block;
  transition: transform 0.2s;
}
.captain-clickable:hover { transform: scale(1.05); }
#captainSvg {
  width: 180px; height: auto;
  filter: drop-shadow(0 8px 24px rgba(0,50,100,0.5));
  transition: filter 0.1s;
}
@keyframes captainFloat {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ── SECTION BASE ── */
section { padding: 6rem 2rem; }
.container { max-width: 1100px; margin: 0 auto; }
.section-label {
  font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--aqua); margin-bottom: 1rem;
}
.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 300; line-height: 1.1;
  margin-bottom: 1.5rem;
}
.section-title em { font-style: italic; color: var(--aqua); }
.divider {
  width: 50px; height: 1px;
  background: linear-gradient(to right, var(--turq), transparent);
  margin-bottom: 2rem;
}
.divider-center { margin: 0 auto 1.5rem; }

/* ── WAVES ── */
.wave { width: 100%; overflow: hidden; line-height: 0; display: block; }
.wave svg { display: block; width: 100%; height: 60px; }
.wave-navy { background: #0d2240; }

/* ── ITINERARY ── */
.itinerary-section { background: var(--deep); }
.itinerary-intro {
  max-width: 600px; font-size: 1.05rem; line-height: 1.9;
  color: var(--text-light); margin-bottom: 4rem;
}
.timeline {
  display: flex; flex-direction: column; position: relative;
  padding-left: 2.5rem;
}
.timeline::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--turq) 5%, var(--turq) 95%, transparent);
}
.timeline-item {
  position: relative;
  padding: 0 0 2.5rem 2rem;
  text-align: left;
  opacity: 0;
}
.timeline-item::before {
  content: attr(data-icon);
  position: absolute; left: -18px;
  width: 36px; height: 36px;
  background: var(--deep); border: 1px solid var(--turq);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  box-shadow: 0 0 12px rgba(42,168,196,0.3);
}
.timeline-time {
  font-size: 0.7rem; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--turq); margin-bottom: 0.4rem;
}
.timeline-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem; font-weight: 400; margin-bottom: 0.5rem;
}
.timeline-desc {
  font-size: 0.9rem; line-height: 1.7; color: var(--text-light);
  max-width: 500px;
}
.timeline-video {
  display: inline-flex; align-items: center; gap: 0.4rem;
  margin: 0.6rem 0.5rem 0 0;
  font-size: 0.75rem; color: var(--turq); text-decoration: none;
  opacity: 0.85; transition: opacity 0.2s;
}
.timeline-video:hover { opacity: 1; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── TOURS ── */
.tours-section { background: var(--navy); }
.tours-grid {
  display: grid; gap: 1.5rem; margin-top: 3rem;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.tour-card {
  background: var(--deep);
  border: 1px solid rgba(42,168,196,0.15);
  border-radius: 16px;
  padding: 2.5rem;
  position: relative; overflow: hidden;
  transition: transform 0.3s, border-color 0.3s;
}
.tour-card:hover { transform: translateY(-4px); border-color: rgba(42,168,196,0.4); }
.tour-card.featured {
  border-color: var(--gold);
  background: linear-gradient(135deg, #1a3a5c, var(--deep));
}
.tour-card::before {
  content: ''; position: absolute; top: 0; right: 0;
  width: 150px; height: 150px;
  background: radial-gradient(circle, rgba(42,168,196,0.1) 0%, transparent 70%);
  pointer-events: none;
}
.tour-badge {
  display: inline-block;
  font-size: 0.65rem; letter-spacing: 0.15em; text-transform: uppercase;
  padding: 0.3rem 0.8rem; border-radius: 100px;
  background: rgba(212,168,83,0.15); color: var(--gold);
  border: 1px solid rgba(212,168,83,0.3);
  margin-bottom: 1.5rem;
}
.tour-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.tour-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem; font-weight: 400;
  line-height: 1.2; margin-bottom: 0.75rem;
}
.tour-card.featured .tour-name { font-size: 2rem; }
.tour-sub { font-style: italic; color: var(--aqua); font-size: 1rem; }
.tour-tagline {
  font-size: 0.9rem; line-height: 1.7;
  color: var(--text-light);
  margin-bottom: 2rem;
}
.tour-details {
  display: flex; flex-direction: column; gap: 0.6rem;
  margin-bottom: 2rem; padding: 1.25rem;
  background: rgba(255,255,255,0.04);
  border-radius: 8px;
}
.tour-detail {
  display: flex; align-items: center; gap: 0.75rem;
  font-size: 0.85rem; color: var(--text-light);
}
.tour-detail-icon { font-size: 1rem; opacity: 0.7; }
.tour-train {
  flex-direction: column; align-items: flex-start;
  gap: 0.3rem;
  background: rgba(42,168,196,0.07);
  border: 1px solid rgba(42,168,196,0.2);
  border-radius: 8px; padding: 0.75rem;
}
.tour-train-title {
  display: flex; gap: 0.5rem; align-items: center;
}
.tour-train-title strong { color: var(--foam); font-size: 0.85rem; }
.tour-train-body {
  font-size: 0.78rem; color: var(--text-light);
  padding-left: 1.5rem; line-height: 1.6;
}
.tour-train-note { color: var(--aqua); }
.tour-includes { margin-bottom: 2rem; }
.tour-includes-title {
  font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 0.75rem;
}
.includes-list { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.include-pill {
  font-size: 0.75rem;
  padding: 0.25rem 0.7rem; border-radius: 100px;
  background: rgba(42,168,196,0.1);
  color: var(--foam);
  border: 1px solid rgba(42,168,196,0.2);
}
.tour-quote {
  margin: 1rem 0; padding: 0.9rem 1rem;
  background: rgba(255,255,255,0.04);
  border-radius: 8px;
  font-size: 0.82rem; color: var(--text-light);
  line-height: 1.7; font-style: italic;
}
.tour-price {
  display: flex; align-items: baseline; gap: 0.5rem;
  margin-bottom: 1.5rem;
}
.price-amount {
  font-family: 'Cormorant Garamond', serif;
  font-size: 3rem; font-weight: 300; line-height: 1;
  color: var(--white);
}
.price-currency { font-size: 1.25rem; color: var(--text-light); }
.price-note { font-size: 0.8rem; color: var(--text-muted); }
.price-reduced { font-size: 0.85rem; color: var(--turq); margin-left: 0.5rem; }
.tour-actions {
  display: flex; gap: 0.75rem; flex-wrap: wrap;
  margin-top: 1rem; align-items: center;
}

/* ── WHY ── */
.why-section { background: linear-gradient(to bottom, var(--deep), var(--navy)); }
.why-grid {
  display: grid; gap: 2rem; margin-top: 3rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.why-card { padding: 2rem; border-left: 1px solid rgba(42,168,196,0.2); }
.why-number {
  font-family: 'Cormorant Garamond', serif;
  font-size: 4rem; font-weight: 300; line-height: 1;
  color: rgba(42,168,196,0.15);
  margin-bottom: 0.5rem;
}
.why-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem; margin-bottom: 0.75rem;
}
.why-desc { font-size: 0.9rem; line-height: 1.7; color: var(--text-light); }

/* ── VIDEO ── */
.video-section { background: var(--navy); }
.video-intro {
  color: var(--text-light); max-width: 540px;
  font-size: 1rem; line-height: 1.8;
  margin-bottom: 0.5rem;
}
.video-grid {
  display: grid; gap: 1rem; margin-top: 3rem;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}
.video-card {
  position: relative;
  border-radius: 12px; overflow: hidden;
  background: var(--deep);
  border: 1px solid rgba(42,168,196,0.15);
  transition: transform 0.3s, border-color 0.3s;
  cursor: pointer;
}
.video-card:hover { transform: translateY(-3px); border-color: rgba(42,168,196,0.4); }
.video-thumb-placeholder {
  width: 100%; aspect-ratio: 9/16;
  background: linear-gradient(135deg, var(--ocean), var(--deep));
  display: flex; align-items: center; justify-content: center;
}
.video-play-btn {
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(42,168,196,0.2);
  border: 1px solid var(--turq);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  transition: background 0.2s;
}
.video-card:hover .video-play-btn { background: var(--turq); }
.video-card-label {
  padding: 0.75rem 0.9rem;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem; color: var(--text-light);
  line-height: 1.3;
}
.video-cta-wrap { text-align: center; margin-top: 2.5rem; }
.video-link {
  display: inline-flex; align-items: center; gap: 1rem;
  padding: 1.25rem 2.5rem;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 100px;
  text-decoration: none; color: var(--white);
  transition: all 0.25s; font-size: 0.9rem;
}
.video-link:hover { border-color: var(--turq); color: var(--aqua); }
.play-icon {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--turq); color: var(--navy);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
}

/* ── MODAL ── */
.video-modal {
  display: none; position: fixed; inset: 0; z-index: 999;
  background: rgba(5,12,25,0.95);
  align-items: center; justify-content: center;
}
.video-modal.open { display: flex; }
.modal-inner { position: relative; width: 90vw; max-width: 420px; }
.modal-close {
  position: absolute; top: -2.5rem; right: 0;
  background: none; border: none; color: var(--white);
  font-size: 1.5rem; cursor: pointer; opacity: 0.7;
}
.modal-close:hover { opacity: 1; }
.modal-inner iframe {
  width: 100%; aspect-ratio: 9/16;
  border: none; border-radius: 12px;
}

/* ── BOOKING ── */
.booking-section {
  background: linear-gradient(135deg, var(--ocean), var(--navy));
  text-align: center;
}
.booking-inner { max-width: 700px; margin: 0 auto; }
.booking-desc {
  font-size: 1rem; line-height: 1.8;
  color: var(--text-light); margin-bottom: 3rem;
}
.booking-contacts {
  display: flex; justify-content: center; flex-wrap: wrap;
  gap: 1.5rem; margin-top: 2rem;
}
.contact-item {
  font-size: 0.8rem; color: var(--text-muted);
  letter-spacing: 0.05em;
}
.contact-item a { color: var(--aqua); text-decoration: none; }

/* ── FOOTER ── */
footer { background: #040d1a; padding: 3rem 2rem; text-align: center; }
.footer-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.75rem; font-weight: 300;
  color: var(--white); margin-bottom: 1rem;
}
.footer-logo span { color: var(--aqua); }
.footer-tagline {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 0.8rem; color: var(--text-muted);
  margin-bottom: 2rem;
}
.footer-links {
  display: flex; justify-content: center; gap: 2rem;
  flex-wrap: wrap; margin-bottom: 2rem;
}
.footer-links a {
  font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-muted); text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--aqua); }
.footer-copy { font-size: 0.75rem; color: rgba(255,255,255,0.2); }

/* ── MOBILE ── */
@media (max-width: 768px) {
  nav { padding: 1rem 1.5rem; }
  .nav-links { display: none; }
  section { padding: 4rem 1.25rem; }
  .hero-captain-row { flex-direction: column; gap: 1rem; }
  #captainSvg { width: 160px; }
  .timeline { padding-left: 1.5rem; }
  .timeline-item { padding-left: 1.5rem; }
}
