
/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
img, svg { max-width: 100%; display: block; }

:root {
  --sea: #1a5f7a;
  --sea-light: #2d8cb0;
  --sea-pale: #d4eaf4;
  --terra: #c1714f;
  --terra-light: #e8956d;
  --terra-pale: #f7e8df;
  --sand: #f5f0e8;
  --white: #fdfcf9;
  --text: #2a2218;
  --text-mid: #6b5e4e;
  --text-light: #7d6f60;
  --gold: #c9a84c;
  --gold-light: #e8c96e;
  --nav-h: 64px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  background: var(--white);
  color: var(--text);
  overflow-x: hidden;
}

/* ════════════════════════════
   NAV
════════════════════════════ */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  background: rgba(253,252,249,0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(201,168,76,0.2);
}
.nav-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.35rem;
  font-weight: 400;
  font-style: italic;
  color: var(--sea);
  text-decoration: none;
}
/* Desktop links */
.nav-links {
  list-style: none;
  display: flex;
  gap: 2.2rem;
}
.nav-links a {
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-mid);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--terra); }
/* Hamburger */
.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 201;
}
.nav-burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--sea);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
/* Mobile drawer */
.nav-drawer {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  background: rgba(253,252,249,0.97);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(201,168,76,0.2);
  z-index: 199;
  flex-direction: column;
  padding: 1.5rem 2rem 2rem;
  gap: 0;
  transform: translateY(-10px);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav-drawer.open {
  display: flex;
  transform: translateY(0);
  opacity: 1;
}
.nav-drawer a {
  text-decoration: none;
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-mid);
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  letter-spacing: 0.05em;
  transition: color 0.2s;
}
.nav-drawer a:last-child { border-bottom: none; }
.nav-drawer a:hover { color: var(--terra); }

/* ════════════════════════════
   HERO
════════════════════════════ */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding-top: var(--nav-h);
}
.hero-visual {
  position: relative;
  background: var(--sea);
  overflow: hidden;
  min-height: 400px;
}
.hero-visual svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero-elba-text {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  right: 1.5rem;
  color: rgba(255,255,255,0.65);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4rem 4rem 4rem 4rem;
  background: var(--sand);
  position: relative;
}
.hero-content::before {
  content: '';
  position: absolute;
  top: 0; bottom: 0; left: -1px;
  width: 4px;
  background: linear-gradient(to bottom, transparent, var(--gold), var(--terra), transparent);
}
.hero-eyebrow {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--terra);
  margin-bottom: 1.2rem;
}
.hero-names {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.8rem, 5vw, 5rem);
  font-weight: 300;
  line-height: 1.05;
  color: var(--sea);
  margin-bottom: 1rem;
}
.hero-names em {
  display: block;
  font-style: italic;
  color: var(--terra);
}
.hero-ampersand {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.2rem;
  font-weight: 300;
  color: var(--gold);
  line-height: 1;
  display: block;
  margin: 0.2rem 0;
}
.hero-date {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  font-weight: 300;
  color: var(--text-mid);
  margin-bottom: 0.3rem;
}
.hero-venue {
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--text-light);
  text-transform: uppercase;
  margin-bottom: 2rem;
}
.countdown {
  display: flex;
  gap: 1.2rem;
  margin-bottom: 2.5rem;
  align-items: flex-start;
}
.countdown-unit { text-align: center; }
.countdown-num {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  font-weight: 300;
  color: var(--sea);
  line-height: 1;
}
.countdown-label {
  display: block;
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-top: 0.25rem;
}
.countdown-sep {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.8rem;
  color: var(--gold);
  padding-top: 0.1rem;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.btn-primary {
  display: inline-block;
  padding: 0.85rem 2rem;
  background: var(--sea);
  color: var(--white);
  text-decoration: none;
  font-family: 'Jost', sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  -webkit-appearance: none;
}
.btn-primary:hover { background: var(--sea-light); transform: translateY(-1px); }
.btn-outline {
  display: inline-block;
  padding: 0.85rem 2rem;
  background: transparent;
  color: var(--sea);
  text-decoration: none;
  font-family: 'Jost', sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1.5px solid var(--sea);
  cursor: pointer;
  transition: all 0.2s;
}
.btn-outline:hover { background: var(--sea); color: var(--white); }

/* ════════════════════════════
   LAYOUT UTILITIES
════════════════════════════ */
section { padding: 5rem 0; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 2rem; }
.section-label {
  font-size: 0.63rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--terra);
  margin-bottom: 0.75rem;
}
.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 300;
  color: var(--sea);
  line-height: 1.2;
  margin-bottom: 1.2rem;
}
.section-title em { font-style: italic; color: var(--terra); }
.divider {
  width: 52px; height: 2px;
  background: linear-gradient(to right, var(--gold), var(--terra));
  margin: 1.2rem 0;
}
.divider.center { margin-left: auto; margin-right: auto; }

/* Wave */
.wave-divider { line-height: 0; overflow: hidden; }
.wave-divider svg { display: block; }

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible { opacity: 1; transform: none; }

/* fadeUp for hero children */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: none; }
}
.fade-up { opacity: 0; animation: fadeUp 0.7s ease forwards; }
.fade-up:nth-child(1) { animation-delay: 0.1s; }
.fade-up:nth-child(2) { animation-delay: 0.25s; }
.fade-up:nth-child(3) { animation-delay: 0.4s; }
.fade-up:nth-child(4) { animation-delay: 0.55s; }
.fade-up:nth-child(5) { animation-delay: 0.68s; }

/* ════════════════════════════
   CERIMONIA
════════════════════════════ */
.cerimonia { background: var(--white); }
.cerimonia-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.cerimonia-visual {
  position: relative;
  height: 480px;
  background: var(--sea-pale);
  overflow: hidden;
}
.cerimonia-visual svg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
}
.cerimonia-details { display: flex; flex-direction: column; gap: 1.6rem; }
.detail-block { display: flex; gap: 1.2rem; align-items: flex-start; }
.detail-icon {
  width: 44px; height: 44px;
  background: var(--sea-pale);
  border: 1px solid rgba(26,95,122,0.2);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
}
.detail-label {
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 0.2rem;
}
.detail-value {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--text);
  line-height: 1.3;
}
.detail-sub { font-size: 0.8rem; color: var(--text-light); margin-top: 0.15rem; }

/* ════════════════════════════
   PROGRAMMA
════════════════════════════ */
.programma { background: var(--sand); }
.timeline {
  position: relative;
  max-width: 680px;
  margin: 3rem auto 0;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 5px; top: 0; bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--gold), var(--terra), transparent);
}
.timeline-item {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 2.2rem;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: 0px; top: 8px;
  width: 10px; height: 10px;
  background: var(--gold);
  border: 2px solid var(--white);
  border-radius: 50%;
  z-index: 1;
}
.tl-phase {
  font-family: 'Jost', sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--terra);
  margin-bottom: 0.3rem;
}
.tl-content { padding-left: 0; }
.timeline-note {
  max-width: 680px;
  margin: 0.5rem auto 2.4rem;
  color: var(--text-mid);
  line-height: 1.8;
  font-style: italic;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
}
.tl-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--sea);
  margin-bottom: 0.25rem;
}
.tl-desc { font-size: 0.83rem; color: var(--text-light); line-height: 1.65; }

/* ════════════════════════════
   COME ARRIVARE
════════════════════════════ */
.arrivare { background: var(--sea); }
.arrivare .section-title { color: #fff; }
.arrivare .section-title em { color: var(--gold-light); }
.arrivare .section-label { color: var(--terra-light); }
.arrivare .divider { background: linear-gradient(to right, var(--gold-light), var(--terra-light)); }
.arrivare p { color: rgba(255,255,255,0.75); }
.trasporti-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.trasporto-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  padding: 1.8rem 1.5rem;
  transition: background 0.2s;
}
.trasporto-card:hover { background: rgba(255,255,255,0.13); }
.trasporto-icon { font-size: 1.8rem; margin-bottom: 0.8rem; display: block; }
.trasporto-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  color: #fff;
  margin-bottom: 0.6rem;
}
.trasporto-text { font-size: 0.83rem; color: rgba(255,255,255,0.65); line-height: 1.7; }
.trasporto-text strong { color: var(--gold-light); font-weight: 400; }
.map-placeholder {
  margin-top: 2.5rem;
  height: 220px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.map-placeholder-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  font-style: italic;
  color: rgba(255,255,255,0.4);
  z-index: 1;
}

/* ════════════════════════════
   RSVP
════════════════════════════ */
.rsvp { background: var(--terra-pale); }
.rsvp-inner { max-width: 580px; margin: 0 auto; text-align: center; }
.rsvp-deadline {
  display: inline-block;
  background: var(--terra);
  color: var(--white);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.4rem 1.1rem;
  margin-bottom: 1.8rem;
}
.rsvp-form {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: left;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: 0.35rem; }
.form-group label {
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-light);
}
.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.85rem 1rem;
  background: var(--white);
  border: 1px solid rgba(193,113,79,0.28);
  color: var(--text);
  font-family: 'Jost', sans-serif;
  font-size: 0.9rem;
  font-weight: 300;
  outline: none;
  transition: border-color 0.2s;
  -webkit-appearance: none;
  border-radius: 0;
  width: 100%;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--terra); }
.form-group textarea { resize: vertical; min-height: 90px; }
.radio-group { display: flex; gap: 0.8rem; margin-top: 0.3rem; }
.radio-option {
  flex: 1;
  padding: 0.8rem;
  border: 1px solid rgba(193,113,79,0.28);
  background: var(--white);
  display: flex; align-items: center; gap: 0.5rem;
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--text-mid);
  transition: all 0.2s;
  user-select: none;
}
.radio-option.selected {
  border-color: var(--terra);
  background: var(--terra-pale);
  color: var(--terra);
}
.form-submit { margin-top: 0.5rem; text-align: center; }
.rsvp-note {
  font-size: 0.78rem;
  color: var(--text-light);
  font-style: italic;
  font-family: 'Cormorant Garamond', serif;
  text-align: center;
}

/* ════════════════════════════
   FAQ
════════════════════════════ */
.faq { background: var(--white); }
.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 3rem;
}
.faq-item {
  border-left: 3px solid var(--sea-pale);
  padding: 1.3rem 1.3rem 1.3rem 1.3rem;
  background: var(--sand);
  transition: border-color 0.2s;
  cursor: pointer;
}
.faq-item:hover, .faq-item.open { border-left-color: var(--sea); }
.faq-q {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--sea);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.8rem;
  user-select: none;
}
.faq-q span { font-size: 1.2rem; color: var(--terra); flex-shrink: 0; transition: transform 0.25s; }
.faq-item.open .faq-q span { transform: rotate(45deg); }
.faq-a {
  font-size: 0.83rem;
  color: var(--text-mid);
  line-height: 1.7;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, margin-top 0.25s;
}
.faq-item.open .faq-a { max-height: 200px; margin-top: 0.75rem; }

/* ════════════════════════════
   FOOTER
════════════════════════════ */
footer {
  background: var(--text);
  color: rgba(255,255,255,0.45);
  text-align: center;
  padding: 3rem 1.5rem;
}
.footer-names {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  font-weight: 300;
  font-style: italic;
  color: var(--gold);
  margin-bottom: 0.4rem;
}
.footer-date {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  margin-bottom: 1.2rem;
}
footer p { font-size: 0.78rem; }

/* ════════════════════════════
   RESPONSIVE — TABLET (≤900px)
════════════════════════════ */
@media (max-width: 900px) {
  /* Nav: hide desktop links, show burger */
  .nav-links { display: none; }
  .nav-burger { display: flex; }

  /* Hero: stack vertically */
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: var(--nav-h);
  }
  .hero-visual { min-height: 300px; height: 42vw; }
  .hero-content {
    padding: 2.5rem 1.5rem 3rem;
  }
  .hero-content::before { display: none; }

  /* Cerimonia: stack */
  .cerimonia-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .cerimonia-visual { height: 280px; }

  /* Trasporti: 1 col */
  .trasporti-grid { grid-template-columns: 1fr; gap: 1rem; }

  /* FAQ: 1 col */
  .faq-grid { grid-template-columns: 1fr; }

  /* Form: 1 col */
  .form-row { grid-template-columns: 1fr; }

  /* Containers */
  .container { padding: 0 1.25rem; }
  section { padding: 3.5rem 0; }
}

/* ════════════════════════════
   RESPONSIVE — MOBILE (≤520px)
════════════════════════════ */
@media (max-width: 520px) {
  :root { --nav-h: 58px; }

  nav { padding: 0 1rem; }
  .nav-logo { font-size: 1.15rem; }

  /* Hero full-width, visual shorter */
  .hero-visual { height: 52vw; min-height: 220px; }
  .hero-content { padding: 2rem 1.2rem 2.5rem; }
  .hero-eyebrow { font-size: 0.62rem; margin-bottom: 0.8rem; }
  .hero-names { font-size: clamp(2.4rem, 11vw, 3.2rem); }
  .hero-ampersand { font-size: 1.8rem; }
  .hero-date { font-size: 1.1rem; }
  .hero-venue { font-size: 0.68rem; margin-bottom: 1.5rem; }

  /* Countdown smaller */
  .countdown { gap: 0.8rem; margin-bottom: 1.8rem; }
  .countdown-num { font-size: 1.6rem; }
  .countdown-sep { font-size: 1.4rem; }
  .countdown-label { font-size: 0.55rem; }

  /* Buttons: full width on mobile */
  .hero-ctas { flex-direction: column; }
  .btn-primary, .btn-outline { width: 100%; text-align: center; padding: 1rem; font-size: 0.8rem; }

  /* Section titles */
  .section-title { font-size: clamp(1.7rem, 7vw, 2.2rem); }

  /* Cerimonia visual smaller */
  .cerimonia-visual { height: 220px; }

  /* Detail blocks */
  .detail-icon { width: 38px; height: 38px; font-size: 1rem; }
  .detail-value { font-size: 1.15rem; }

  /* Timeline: tighten */
  .tl-title { font-size: 1.1rem; }

  /* Map */
  .map-placeholder { height: 160px; }

  /* RSVP radio: stack on very small */
  .radio-group { flex-direction: column; }

  /* FAQ */
  .faq-item { padding: 1.1rem; }
  .faq-q { font-size: 0.97rem; }

  /* Nav drawer wider tap targets */
  .nav-drawer a { padding: 1rem 0; font-size: 1.05rem; }

  /* Container */
  .container { padding: 0 1rem; }
  section { padding: 3rem 0; }

  footer { padding: 2.5rem 1rem; }
}
