/* ===== CSS RESET / BASE ===== */
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial; background:#0b1220; color: #e9eef6; }
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

:root{
  --ink:#0b1220; /* deep night */
  --ocean:#0f2745; /* ocean blue (bg cards) */
  --ocean-2:#153a6b; /* brighter ocean */
  --lime:#b6ff63; /* lime green */
  --gold:#f7c948; /* gold yellow */
  --sky:#7cc7ff; /* accent for small labels */
  --muted:#9fb1c9; /* secondary text */
  --radius: 18px;
  --shadow: 0 10px 30px rgba(0,0,0,.35);
  --container: clamp(320px, 94vw, 1220px);
}

/* ===== GLOBAL EFFECTS ===== */
.backdrop { 
  position: fixed; inset: 0; z-index: -2; pointer-events:none;
  background: radial-gradient(1200px 600px at 85% -10%, color-mix(in oklab, var(--gold) 38%, transparent), transparent 60%),
              radial-gradient(1200px 700px at -10% 10%, color-mix(in oklab, var(--lime) 30%, transparent), transparent 55%),
              radial-gradient(900px 500px at 30% 120%, color-mix(in oklab, var(--ocean-2) 65%, transparent), transparent 50%),
              linear-gradient(180deg, #0c1427 0%, #0b1220 40%, #0b1220 100%);
  filter: saturate(1.02); 
}

/* Scroll progress */
.progress { 
  position: fixed; top: 0; left: 0; height: 3px; width: 100%; 
  background: rgba(255,255,255,.06); z-index: 100; 
}
.progress .bar { 
  height: 100%; width: 0; 
  background: linear-gradient(90deg, var(--gold), var(--lime)); 
  box-shadow: 0 0 12px rgba(182,255,99,.6);
  transition: width 0.3s ease;
}

.container{ width: var(--container); margin-inline: auto; padding-inline: 20px; }

/* ===== HEADER ===== */
header.site{ 
  position: sticky; top: 0; z-index: 50; 
  backdrop-filter: blur(10px); 
  background: color-mix(in oklab, #0b1220 78%, transparent); 
  border-bottom: 1px solid rgba(255,255,255,.06);
  transition: all 0.3s ease;
}

.topbar { display:flex; align-items:center; justify-content:space-between; height:72px; }
.brand { display:flex; gap:10px; align-items:center; font-weight:800; letter-spacing:1px; }
.logo { 
  padding: 8px 12px; border-radius: 8px; display:grid; place-items:center; 
  font-weight: 900; color: #0d1b2a; background: var(--lime);
  transition: transform 0.2s ease;
  text-decoration: none;
}
.logo:hover { 
  transform: scale(1.05); 
  color: #0d1b2a;
  text-decoration: none;
}

nav { display: flex; align-items: center; gap: 8px; }
nav a { 
  font-weight:600; color:#dfe8f3; opacity:.92; 
  padding: 10px 12px; border-radius: 10px;
  transition: all 0.2s ease;
}
nav a:hover { background: rgba(255,255,255,.06); opacity: 1; }

.btn{ 
  background: linear-gradient(180deg, color-mix(in oklab, var(--lime) 90%, white 6%), var(--gold)); 
  color:#0b1220; padding:14px 20px; border-radius: 14px; border:0; 
  font-weight:800; letter-spacing:.2px; box-shadow: var(--shadow); 
  cursor:pointer; transition: transform .08s ease, filter .2s; 
  display:inline-flex; gap:8px; align-items:center; text-decoration: none;
}
.btn:hover{ transform: translateY(-1px); filter: brightness(1.05); color:#0b1220; }
.btn.secondary{ 
  background: linear-gradient(180deg, #132b4a, #0e2038); 
  color:#cfe3ff; border:1px solid rgba(255,255,255,.08); box-shadow:none; 
}
.btn.btn-outline-primary {
  background: transparent;
  color: var(--lime);
  border: 2px solid var(--lime);
}
.btn.btn-outline-primary:hover {
  background: var(--lime);
  color: var(--ink);
}

.chip{ 
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.04)); 
  border:1px solid rgba(255,255,255,.08); border-radius: 999px; 
  padding: 8px 12px; font-size: 14px;
}

/* ===== HERO ===== */
.hero-wrap{ position: relative; overflow: clip; border-bottom: 1px solid rgba(255,255,255,.08); }
.hero-video{ 
  position:absolute; inset:0; z-index:-1; 
  filter: brightness(.55) contrast(1.05) saturate(1.1); 
  object-fit: cover; width:100%; height:100%; 
}
.hero{ padding: 130px 0 90px; position: relative; text-wrap: balance; }
.eyebrow{ 
  color: var(--sky); font-weight:800; letter-spacing:.2em; 
  font-size:.85rem; text-transform: uppercase;
}
h1{ 
  font-size: clamp(42px, 6.2vw, 92px); line-height: .98; 
  margin: 16px 0 18px; font-weight: 900; 
}
.hero-title {
  font-weight: 800;
  line-height: 1.05;
}
h1 .mark{ color: var(--gold); position: relative; background: none; }

#dynamic-word {
  display: inline-block;
  color: var(--gold);
  transition: opacity 300ms ease;
}

#dynamic-word.fade-out { opacity: 0; }
#dynamic-word.fade-in  { opacity: 1; }
.lead{ 
  font-size: clamp(16px, 2.1vw, 20px); color:#e9eef6; 
  max-width: 860px; line-height: 1.6;
}
.cta-row{ 
  display:flex; gap:12px; align-items:center; 
  flex-wrap: wrap; margin-top: 26px; 
}
.trust{ 
  display:flex; gap:12px; align-items:center; 
  color:#d7e4f7; font-size:14px; flex-wrap: wrap;
}

/* ===== DESTINATIONS ===== */
#destinazioni { border-top: 1px solid rgba(255,255,255,.06); }
.dest-head { 
  display:flex; align-items:end; justify-content:space-between; 
  gap:18px; margin-bottom: 24px;
}

.filter-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin: 24px 0;
}

.filter-btn {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  color: #cfe3ff;
  padding: 10px 20px;
  border-radius: 25px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-btn:hover {
  background: rgba(255,255,255,.15);
  transform: translateY(-1px);
}

.filter-btn.active {
  background: var(--lime);
  color: var(--ink);
  border-color: var(--lime);
}

.dest-grid { 
  margin-top: 18px; display:grid; 
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap:20px; 
}

.destination { 
  background: linear-gradient(180deg, #0e1a2f, #0b1324); 
  border: 1px solid rgba(255,255,255,.08); 
  border-radius: 18px; padding: 20px; position: relative; 
  overflow:hidden; box-shadow: var(--shadow);
  transform: perspective(900px) rotateX(0) rotateY(0); 
  transition: transform .3s ease, filter .3s ease, box-shadow .3s ease;
}

.destination:hover { 
  transform: perspective(900px) rotateX(1.4deg) rotateY(-1.4deg); 
  filter: brightness(1.04);
  box-shadow: 0 20px 40px rgba(0,0,0,.45);
}

.destination img{ 
  height: 200px; width: 100%; object-fit: cover; 
  border-radius: 14px; border:1px solid rgba(255,255,255,.08); 
  margin-bottom: 12px; 
}

.destination h3{ font-size: 22px; margin: 6px 0 4px; }
.destination p{ color:#b8c7db; margin: 0 0 14px; line-height: 1.5; }

.tag{ 
  font-size: 12px; color:#0b1220; background: var(--lime); 
  padding: 6px 10px; border-radius: 999px; 
  font-weight: 800; letter-spacing:.06em; display:inline-block; 
}

.dest-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
}

.price {
  color: var(--gold);
  font-weight: 700;
  font-size: 14px;
}

/* ===== STORY ===== */
.story { border-top: 1px solid rgba(255,255,255,.06); }
.story-grid { 
  display:grid; grid-template-columns: 1fr 1fr; 
  gap: 32px; align-items:start; 
}
.story-left { position: sticky; top: 90px; align-self:start; }
.story-step { 
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03)); 
  border:1px solid rgba(255,255,255,.08); border-radius: 16px; 
  padding: 20px; margin: 12px 0;
  transition: all 0.3s ease;
}
.story-step:hover {
  background: linear-gradient(180deg, rgba(255,255,255,.1), rgba(255,255,255,.06));
  transform: translateX(4px);
}
.story-step h4 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
  color: var(--lime);
}
.panel { 
  height: 64vh; min-height: 420px; border-radius: 18px; 
  background: #0b1324; border: 1px solid rgba(255,255,255,.08); 
  position: relative; overflow: hidden; display:grid; place-items:center; 
}
.panel video, .panel img{ 
  position:absolute; inset:0; width:100%; height:100%; 
  object-fit:cover; filter: brightness(.8) saturate(1.1); 
}
.panel h3{ 
  position:relative; z-index:1; 
  font-size: clamp(24px,3.2vw,38px); margin:0; 
  text-shadow: 0 6px 30px rgba(0,0,0,.6); text-align: center;
}

/* ===== INFOGRAFICA ===== */
#infografica{ border-top: 1px solid rgba(255,255,255,.06); }
.info-wrap{ 
  display:grid; grid-template-columns: 1.2fr .8fr; 
  gap: 32px; align-items:center; 
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 24px;
}

.stat-item {
  text-align: center;
  padding: 20px;
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
}

.stat-number {
  font-size: 3rem;
  font-weight: 900;
  color: var(--lime);
  margin-bottom: 8px;
}

.stat-label {
  font-weight: 700;
  margin-bottom: 4px;
}

.chart{ 
  background: linear-gradient(180deg, #0e1a2f, #0b1324); 
  border:1px solid rgba(255,255,255,.08); 
  border-radius: 18px; padding: 24px; 
}

/* ===== PRICING ===== */
.pricing{ 
  display:grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
  gap: 24px; align-items: stretch; 
}

.plan{ 
  background: linear-gradient(180deg, #0e1d36, #0b1528); 
  border: 1px solid rgba(255,255,255,.1); 
  border-radius: var(--radius); padding: 28px; 
  position: relative; overflow: clip; box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.plan:hover {
  transform: translateY(-2.8px);
  box-shadow: 0 20px 40px rgba(0,0,0,.4);
}

.plan .badge{ 
  position: absolute; top: 16px; left: 16px; 
  font-size: 12px; font-weight: 800; letter-spacing:.06em; 
  color:#0b1220; background: var(--lime); 
  padding: 6px 10px; border-radius: 999px; 
}

.plan h3{ font-size: 24px; margin: 20px 0 12px; }

.price-display {
  margin: 16px 0;
}

.price-display .price {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--gold);
  display: block;
}

.price-display .duration {
  color: var(--muted);
  font-size: 14px;
}

.plan .desc{ color:#b6c6da; min-height: 60px; line-height: 1.5; }
.plan ul{ padding: 0; margin: 20px 0; list-style: none; }
.plan li{ 
  display:flex; gap:12px; align-items:flex-start; 
  padding: 8px 0; color:#cfe0f5; 
}

.ribbon{ 
  position:absolute; right:-54px; top:20px; rotate: 35deg; 
  background: linear-gradient(90deg, var(--gold), var(--lime)); 
  color:#0b1220; font-weight: 900; 
  padding: 8px 66px; box-shadow: var(--shadow); 
}

/* ===== CTA ===== */
.cta{ 
  text-align:center; 
  background: linear-gradient(180deg, rgba(161,240,90,.08), rgba(21,58,107,.18)); 
  border: 1px solid rgba(255,255,255,.08); 
  border-radius: var(--radius); padding: 40px; 
  box-shadow: var(--shadow); 
}

/* ===== FAQ ===== */
.faq{ max-width: 880px; margin-inline: auto; }
details{ 
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03)); 
  border:1px solid rgba(255,255,255,.08); 
  border-radius: 14px; padding: 16px 20px; margin: 12px 0;
  transition: all 0.3s ease;
}
details:hover {
  background: linear-gradient(180deg, rgba(255,255,255,.1), rgba(255,255,255,.06));
}
details[open] {
  background: linear-gradient(180deg, rgba(182,255,99,.08), rgba(21,58,107,.08));
}
summary{ cursor: pointer; font-weight: 700; margin-bottom: 8px; }

/* ===== FOOTER ===== */
footer{ padding: 50px 0 70px; color:#9fb1c9; border-top: 1px solid rgba(255,255,255,.06); }
.footer-grid{ 
  display:grid; grid-template-columns: 1fr auto; 
  gap: 24px; align-items: center; 
}
.small{ font-size: 12px; color:#8aa1be; }

/* ===== REVEAL ANIMATIONS ===== */
[data-reveal]{ 
  opacity:0; transform: translateY(24px); 
  transition: opacity .8s ease, transform .8s ease; 
}
[data-reveal].visible{ opacity:1; transform:none; }

/* ===== DESTINATION DETAIL PAGE ===== */
.destination-hero {
  position: relative;
  height: 60vh;
  display: flex;
  align-items: end;
  overflow: hidden;
}

.destination-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.6);
}

.destination-hero-content {
  position: relative;
  z-index: 1;
  padding: 40px 0;
}

.breadcrumb {
  background: rgba(255,255,255,.1);
  padding: 8px 16px;
  border-radius: 8px;
  margin-bottom: 20px;
}

.breadcrumb a {
  color: var(--lime);
}

.destination-header h1 {
  font-size: clamp(32px, 5vw, 56px);
  margin: 12px 0;
}

.destination-meta {
  display: flex;
  gap: 24px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.price-range {
  color: var(--gold);
  font-weight: 700;
  font-size: 18px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
  margin: 24px 0;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: rgba(255,255,255,.05);
  border-radius: 8px;
}

.feature-item i {
  color: var(--lime);
}

.categories {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 16px 0;
}

.category-tag {
  background: var(--ocean);
  color: var(--sky);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
}

.destination-sidebar {
  position: sticky;
  top: 90px;
}

.booking-card, .related-destinations {
  background: linear-gradient(180deg, #0e1a2f, #0b1324);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 20px;
}

/* ===== MODAL STYLES ===== */
.modal-content {
  background: var(--ocean);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px;
}

.modal-header {
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.modal-footer {
  border-top: 1px solid rgba(255,255,255,.08);
}

.form-control {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.12);
  color: #e9eef6;
  border-radius: 8px;
}

.form-control:focus {
  background: rgba(255,255,255,.08);
  border-color: var(--lime);
  color: #e9eef6;
  box-shadow: 0 0 0 0.2rem rgba(182,255,99,.25);
}

.form-label {
  color: #cfe3ff;
  font-weight: 600;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1000px){ 
  .story-grid{ grid-template-columns: 1fr; } 
  .story-left{ position: static; } 
  .info-wrap{ grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .topbar {
    flex-direction: column;
    height: auto;
    padding: 16px 0;
    gap: 16px;
  }
  
  nav {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .dest-head {
    flex-direction: column;
    align-items: start;
  }
  
  .filter-buttons {
    justify-content: start;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 16px;
  }
}

/* ===== LOADING STATES ===== */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

.loading::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(11, 18, 32, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===== SMOOTH TRANSITIONS ===== */
* {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Disable transitions during page load */
.no-transitions * {
  transition: none !important;
}

/* ===== BACK TO TOP BUTTON ===== */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 55px;
  height: 55px;
  background: var(--lime);
  color: var(--ink);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 25px rgba(182, 255, 99, 0.25), 0 4px 10px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  opacity: 0;
  transform: translateY(100px);
  visibility: hidden;
}

.back-to-top.show {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
}

.back-to-top:hover {
  background: var(--gold);
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 12px 35px rgba(247, 201, 72, 0.3), 0 6px 15px rgba(0, 0, 0, 0.4);
}

.back-to-top:active {
  transform: translateY(-1px) scale(0.98);
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    font-size: 16px;
  }
}


