/* ============================================================
   BODA — Matteo & Angelica
   ============================================================ */

@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400;1,500&family=Jost:wght@200;300;400;500&display=swap");
/* Importazione Google Fonts */
@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;0,700;1,400&family=Montserrat:wght@400;500;600;700&display=swap");

:root {
  --wedding-gold: #f7e7ce;
  --wedding-cream: #ead9c3;
  --wedding-taupe: #c8b7a6;
  --wedding-stone: #9b8f84;
  --wedding-dark: #2c2a28;
}

/* Applichiamo i font di base */
body {
  font-family: "Montserrat", sans-serif !important;
  color: var(--wedding-dark);
}

.font-serif {
  font-family: "Cormorant Garamond", serif !important;
}

/* Classi di utilità per i tuoi colori (Infallibili con Tailwind) */
.bg-wedding-gold {
  bg-color: var(--wedding-gold);
  background-color: var(--wedding-gold);
}
.bg-wedding-cream {
  background-color: var(--wedding-cream);
}
.bg-wedding-dark {
  background-color: var(--wedding-dark);
}

.text-wedding-dark {
  color: var(--wedding-dark);
}
.text-wedding-stone {
  color: var(--wedding-stone);
}
.text-wedding-gold {
  color: var(--wedding-gold);
}

.border-wedding-taupe {
  border-color: var(--wedding-taupe);
}
.border-wedding-dark {
  border-color: var(--wedding-dark);
}
/* ── VARIABILI ──────────────────────────────────────────── */
:root {
  --sage: #7d9b76;
  --sage-light: #a8c0a2;
  --sage-dark: #4e6b4a;
  --ivory: #faf7f2;
  --ivory-dark: #f0ebe1;
  --white: #ffffff;
  --text: #2a2a2a;
  --text-light: #7a7a7a;
  --font-serif: "Cormorant Garamond", Georgia, serif;
  --font-sans: "Jost", sans-serif;
}
.post,
.page {
  margin: 0 !important;
}
/* ── RESET & BASE ───────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  color: var(--text);
  font-family: var(--font-sans);
  font-weight: 300;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
/* ── PRELOADER ───────────────────────────────────────────── */
#boda-preloader {
  position: fixed;
  inset: 0;
  background: var(--ivory);
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    opacity 0.8s ease,
    visibility 0.8s ease;
}

#boda-preloader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.preloader-names {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 300;
  font-style: italic;
  color: var(--sage-dark);
  letter-spacing: 0.1em;
  animation: preloaderPulse 1.5s ease-in-out infinite;
}

.preloader-names span {
  color: var(--sage-light);
  font-style: normal;
}

.preloader-bar {
  width: 120px;
  height: 1px;
  background: rgba(125, 155, 118, 0.2);
  border-radius: 1px;
  overflow: hidden;
}

.preloader-progress {
  height: 100%;
  width: 0%;
  background: var(--sage);
  border-radius: 1px;
  transition: width 0.3s ease;
}

@keyframes preloaderPulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.4;
  }
}

#boda-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 50;
  transition:
    padding 0.5s ease,
    background 0.5s ease,
    box-shadow 0.5s ease;
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}
/* ── TIPOGRAFIA GLOBALE ─────────────────────────────────── */
h1 {
  font-family: var(--font-serif);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(2.8rem, 6vw, 5rem);
  line-height: 1.1;
  letter-spacing: 0.01em;
  color: var(--text);
}

h2 {
  font-family: var(--font-serif);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.2;
  letter-spacing: 0.01em;
  color: var(--text);
}

h3 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  line-height: 1.3;
  letter-spacing: 0.02em;
  color: var(--sage-dark);
}

h4,
h5,
h6 {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-light);
  line-height: 1.5;
}

p {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: clamp(1rem, 1.5vw, 1rem);
  line-height: 1.9;
  letter-spacing: 0.02em;
  color: var(--text);
}

p.small,
small {
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  color: var(--text-light);
}

em,
cite {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 300;
}

strong {
  font-weight: 500;
  letter-spacing: 0.01em;
}

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

a:hover {
  color: var(--sage-dark);
}

/* Eyebrow label */
.section-eyebrow {
  font-family: var(--font-sans) !important;
  font-size: 0.85rem !important;
  font-weight: 400 !important;
  letter-spacing: 0.4em !important;
  text-transform: uppercase !important;
  color: var(--sage) !important;
  display: block;
  margin-bottom: 0.75rem;
}

/* Titolo sezione */
.section-title {
  font-family: var(--font-serif) !important;
  font-size: clamp(1.8rem, 4vw, 3rem) !important;
  font-weight: 300 !important;
  font-style: italic !important;
  color: var(--text) !important;
  line-height: 1.2 !important;
  margin-bottom: 1.5rem !important;
  letter-spacing: 0.01em !important;
}

/* Testo corpo sezioni */
.section-body {
  font-family: var(--font-sans);
  font-size: clamp(0.875rem, 1.5vw, 1rem);
  font-weight: 300;
  line-height: 2;
  color: var(--text-light);
  max-width: 60ch;
  margin-left: auto;
  margin-right: auto;
}

/* Selezione testo */
::selection {
  background: rgba(125, 155, 118, 0.2);
  color: var(--sage-dark);
}

/* ── HEADER ─────────────────────────────────────────────── */
#boda-header {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

#boda-header.scrolled {
  background: rgba(250, 247, 242, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(125, 155, 118, 0.15);
  padding-top: 1rem;
  padding-bottom: 1rem;
}

#boda-header .logo {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--sage-dark);
  letter-spacing: 0.08em;
}

/* ── NAV LIST ────────────────────────────────────────────── */
.boda-nav-list {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.boda-nav-list li a {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-light);
  text-decoration: none;
  position: relative;
  transition: color 0.3s ease;
}

.boda-nav-list li a::after {
  content: "";
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--sage);
  transition: width 0.3s ease;
}

.boda-nav-list li a:hover {
  color: var(--sage-dark);
}
.boda-nav-list li a:hover::after {
  width: 100%;
}

/* ── NAV DESKTOP / MOBILE ────────────────────────────────── */
.boda-nav-desktop {
  display: flex;
  align-items: center;
}

.boda-nav-mobile-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.boda-nav-mobile-list li a {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-light);
  text-decoration: none;
  transition: color 0.3s ease;
}

.boda-nav-mobile-list li a:hover {
  color: var(--sage-dark);
}

/* ── BURGER ──────────────────────────────────────────────── */
.burger-line {
  display: block;
  width: 24px;
  height: 1px;
  background: var(--sage-dark);
  transition: all 0.3s ease;
  transform-origin: center;
}

/* ── HERO ────────────────────────────────────────────────── */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-collage {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 0;
  z-index: 0;
}

.hero-collage-item {
  overflow: hidden;
}

.hero-collage-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.9);
}

.hero-collage-item:nth-child(odd) img {
  animation: kenBurnsIn 12s ease-in-out infinite alternate;
}
.hero-collage-item:nth-child(even) img {
  animation: kenBurnsOut 14s ease-in-out infinite alternate;
}

@keyframes kenBurnsIn {
  from {
    transform: scale(1.05) translate(0, 0);
  }
  to {
    transform: scale(1.12) translate(-1%, -1%);
  }
}
@keyframes kenBurnsOut {
  from {
    transform: scale(1.05) translate(0, 0);
  }
  to {
    transform: scale(1.12) translate(1%, 1%);
  }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10, 20, 10, 0.1) 0%,
    rgba(10, 20, 10, 0.45) 45%,
    rgba(10, 20, 10, 0.7) 100%
  );
  z-index: 2;
}

.hero-wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  z-index: 6;
  line-height: 0;
  pointer-events: none;
}

.hero-wave svg {
  display: block;
  width: 100%;
  height: 100px;
}

#hero .hero-content {
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  z-index: 10 !important;
  width: 100% !important;
  padding: 0 1.5rem !important;
  text-align: center !important;
}

.scroll-indicator {
  position: absolute;
  bottom: 7rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

/* Testi hero — fix Tailwind override */
#hero .hero-names {
  font-family: var(--font-serif) !important;
  font-size: clamp(3.5rem, 10vw, 8rem) !important;
  font-weight: 300 !important;
  font-style: italic !important;
  line-height: 1 !important;
  color: #ffffff !important;
  text-shadow: 0 4px 60px rgba(0, 0, 0, 0.4) !important;
  margin-bottom: 0 !important;
}

#hero .hero-names .ampersand {
  color: var(--sage-light) !important;
  font-style: normal !important;
  margin: 0 0.3em !important;
}

#hero .hero-pre {
  font-family: var(--font-sans) !important;
  font-size: 0.85rem !important;
  font-weight: 400 !important;
  letter-spacing: 0.35em !important;
  text-transform: uppercase !important;
  color: rgba(255, 255, 255, 0.9) !important;
  margin-bottom: 1.5rem !important;
}

#hero .hero-date {
  font-family: var(--font-sans) !important;
  font-size: 0.85rem !important;
  font-weight: 400 !important;
  letter-spacing: 0.4em !important;
  text-transform: uppercase !important;
  color: rgba(255, 255, 255, 0.8) !important;
}

#hero .hero-divider {
  width: 1px !important;
  height: 60px !important;
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(255, 255, 255, 0.5),
    transparent
  ) !important;
  margin: 2rem auto !important;
}

.scroll-indicator span {
  color: rgba(255, 255, 255, 0.5) !important;
}
.scroll-dot {
  background: rgba(255, 255, 255, 0.5) !important;
}

/* ── BENVENUTO ───────────────────────────────────────────── */
#benvenuto {
  padding: 7rem 1.5rem;
  position: relative;
  overflow: hidden;
}

#benvenuto::before {
  content: "";
  position: absolute;
  top: -60px;
  right: -60px;
  width: 300px;
  height: 300px;
  background: radial-gradient(
    circle,
    rgba(168, 192, 162, 0.12) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.benvenuto-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.benvenuto-foto {
  position: relative;
  display: inline-block;
}

.benvenuto-foto-frame {
  width: 100%;
  aspect-ratio: 3/4;
  overflow: hidden;
  border-radius: 2px;
  position: relative;
}

.benvenuto-foto-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transition: transform 0.8s ease;
}

.benvenuto-foto:hover .benvenuto-foto-frame img {
  transform: scale(1.03);
}

.frame-corner {
  position: absolute;
  width: 24px;
  height: 24px;
  border-color: var(--sage-light);
  border-style: solid;
  pointer-events: none;
}

.frame-corner--tl {
  top: -8px;
  left: -8px;
  border-width: 1px 0 0 1px;
}
.frame-corner--tr {
  top: -8px;
  right: -8px;
  border-width: 1px 1px 0 0;
}
.frame-corner--bl {
  bottom: -8px;
  left: -8px;
  border-width: 0 0 1px 1px;
}
.frame-corner--br {
  bottom: -8px;
  right: -8px;
  border-width: 0 1px 1px 0;
}

.benvenuto-foto::after {
  content: "";
  position: absolute;
  bottom: -16px;
  left: 16px;
  right: -16px;
  top: 16px;
  border: 1px solid rgba(168, 192, 162, 0.3);
  border-radius: 2px;
  z-index: -1;
}

.benvenuto-testo {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.benvenuto-titolo {
  font-family: var(--font-serif) !important;
  font-size: clamp(1.8rem, 3vw, 2.8rem) !important;
  font-weight: 300 !important;
  font-style: normal !important;
  color: var(--text) !important;
  line-height: 1.3 !important;
  margin-bottom: 1.5rem !important;
}

.benvenuto-titolo em {
  font-style: italic;
  color: var(--sage-dark);
}

.benvenuto-testo-body {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--text-light);
  line-height: 2;
  letter-spacing: 0.02em;
  margin-bottom: 2rem;
}

.benvenuto-testo-body strong {
  color: var(--text);
  font-weight: 400;
}

/* Firma — definita una volta sola */
.benvenuto-firma {
  font-family: var(--font-serif) !important;
  font-size: 1.6rem !important;
  font-weight: 300 !important;
  font-style: italic !important;
  color: var(--sage-dark) !important;
  letter-spacing: 0.03em !important;
  line-height: 1.6 !important;
}
.benvenuto-testo-body p {
  margin-bottom: 1rem;
}

.benvenuto-testo-body p:last-child {
  margin-bottom: 0;
}
/* ── COUNTDOWN ──────────────────────────────────────────── */
#countdown {
  background: var(--white);
  padding: 6rem 1.5rem;
  text-align: center;
  position: relative;
}

#countdown::before {
  content: "";
  position: absolute;
  top: -2px;
  left: 0;
  right: 0;
  height: 80px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80'%3E%3Cpath fill='%23ffffff' d='M0,40 C360,0 1080,80 1440,40 L1440,0 L0,0 Z'/%3E%3C/svg%3E")
    no-repeat top center;
  background-size: cover;
  pointer-events: none;
  z-index: 1;
}

.countdown-label {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 3rem;
}

.countdown-grid {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 0;
  flex-wrap: wrap;
}

.countdown-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 2rem;
  position: relative;
}

.countdown-block + .countdown-block::before {
  content: "·";
  position: absolute;
  left: -2px;
  top: 0.5rem;
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--sage-light);
  line-height: 1;
}

.countdown-number {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 300;
  color: var(--sage-dark);
  line-height: 1;
  font-style: italic;
}

.countdown-unit {
  font-family: var(--font-sans);
  font-size: 0.55rem;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-top: 0.75rem;
}

/* ── SEPARATORE FLOREALE ─────────────────────────────────── */
.floral-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 1rem 0 4rem;
}

.floral-divider::before,
.floral-divider::after {
  content: "";
  flex: 1;
  max-width: 100px;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--sage-light));
}

.floral-divider::after {
  background: linear-gradient(to left, transparent, var(--sage-light));
}

.floral-divider svg {
  flex-shrink: 0;
}

/* ── INFO ────────────────────────────────────────────────── */
#info {
  padding: 7rem 1.5rem;
  text-align: center;
}

.info-header {
  max-width: 600px;
  margin: 0 auto 4rem;
}

#info .info-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 2.5rem 3rem !important;
  max-width: 960px !important;
  margin: 0 auto !important;
}

.info-card {
  display: flex;
  background: var(--ivory) !important;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 2.5rem 1.5rem;
  background: var(--white);
  border: 1px solid rgba(168, 192, 162, 0.2);
  border-radius: 2px;
  position: relative;
  opacity: 1 !important;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.info-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(78, 107, 74, 0.08);
}

.info-card::before,
.info-card::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  border-color: var(--sage-light);
  border-style: solid;
  opacity: 0.6;
}

.info-card::before {
  top: -1px;
  left: -1px;
  border-width: 1px 0 0 1px;
}
.info-card::after {
  bottom: -1px;
  right: -1px;
  border-width: 0 1px 1px 0;
}

.info-card-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 0.5rem;
}
.info-card-icon svg {
  width: 100%;
  height: 100%;
}

.info-card h3 {
  font-family: var(--font-serif) !important;
  font-size: 1.3rem !important;
  font-weight: 400 !important;
  font-style: italic !important;
  color: var(--sage-dark) !important;
  margin: 0 !important;
}

.info-card p {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 300;
  color: var(--text-light);
  line-height: 1.9;
  letter-spacing: 0.02em;
  margin: 0;
}

.info-card p strong {
  color: var(--text);
  font-weight: 400;
  display: block;
}

/* ── GALLERY ─────────────────────────────────────────────── */
#gallery {
  background: var(--white);
  padding: 7rem 1.5rem;
  text-align: center;
  overflow: hidden;
}

.gallery-header {
  max-width: 600px;
  margin: 0 auto 4rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr 1fr;
  gap: 12px;
  max-width: 1100px;
  margin: 0 auto;
  align-items: start;
}

.gallery-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 2px;
  background: var(--ivory-dark);
  /* Nessun aspect-ratio — si adatta all'immagine */
}

.gallery-item img {
  width: 100%;
  height: auto; /* ← altezza naturale dell'immagine */
  object-fit: unset; /* ← nessun crop */
  display: block;
  transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.gallery-item:hover img {
  transform: scale(1.03); /* ← ridotto da 1.06 — con height auto scala meglio */
}

.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 50%,
    rgba(78, 107, 74, 0.25)
  );
  opacity: 0;
  transition: opacity 0.4s ease;
}

.gallery-item:hover .gallery-item-overlay {
  opacity: 1;
}

.gallery-item::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  z-index: 2;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.gallery-item:hover::before {
  opacity: 1;
}

/* Colonna centrale leggermente abbassata */
.gallery-col--center {
  margin-top: 2rem;
}

/* Responsive */
@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: 1fr 1fr !important;
  }
  .gallery-col--center {
    margin-top: 0 !important;
  }
  .gallery-col--right {
    display: none;
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr !important;
  }
  .gallery-col--right {
    display: flex;
  }
}
/* ── RSVP ────────────────────────────────────────────────── */
#rsvp {
  padding: 7rem 1.5rem;
  text-align: center;
  position: relative;
}

#rsvp::before {
  content: "";
  position: absolute;
  top: -2px;
  left: 0;
  right: 0;
  height: 80px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80'%3E%3Cpath fill='%23ffffff' d='M0,40 C360,0 1080,80 1440,40 L1440,0 L0,0 Z'/%3E%3C/svg%3E")
    no-repeat top center;
  background-size: cover;
  pointer-events: none;
}

.rsvp-inner {
  max-width: 560px;
  margin: 0 auto;
}
.rsvp-header {
  margin-bottom: 3rem;
}

.rsvp-subtitle {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 300;
  color: var(--text-light);
  line-height: 2;
  letter-spacing: 0.02em;
  margin-top: 1.5rem;
}

.rsvp-subtitle strong {
  color: var(--sage-dark);
  font-weight: 400;
}

.rsvp-placeholder {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  text-align: left;
}

.rsvp-form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.rsvp-label {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-light);
}

.rsvp-optional {
  font-size: 0.6rem;
  color: var(--sage-light);
  text-transform: none;
  letter-spacing: 0;
}

.rsvp-input {
  width: 100%;
  background: var(--white);
  border: 1px solid rgba(125, 155, 118, 0.25);
  border-radius: 2px;
  padding: 0.9rem 1.2rem;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 300;
  color: var(--text);
  letter-spacing: 0.03em;
  outline: none;
  transition: border-color 0.3s ease;
  -webkit-appearance: none;
  appearance: none;
}

.rsvp-input:not(:disabled):focus {
  border-color: var(--sage);
}
.rsvp-input:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  background: rgba(255, 255, 255, 0.6);
}

.rsvp-textarea {
  min-height: 100px;
  resize: vertical;
}

.rsvp-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 0.5rem;
}

.rsvp-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 1.5rem;
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 2px;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.rsvp-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.rsvp-btn--yes {
  background: var(--sage);
  color: var(--white);
  border-color: var(--sage);
}
.rsvp-btn--yes:not(:disabled):hover {
  background: var(--sage-dark);
  border-color: var(--sage-dark);
}

.rsvp-btn--no {
  background: transparent;
  color: var(--text-light);
  border-color: rgba(125, 155, 118, 0.3);
}
.rsvp-btn--no:not(:disabled):hover {
  border-color: var(--sage-light);
  color: var(--sage-dark);
}

.rsvp-coming-soon {
  text-align: center;
  font-family: var(--font-serif);
  font-size: 0.85rem;
  font-style: italic;
  color: var(--sage-light);
  letter-spacing: 0.1em;
  margin-top: 0.5rem;
}

/* ── FOOTER ──────────────────────────────────────────────── */
#footer {
  background: var(--sage-dark);
  text-align: center;
  position: relative;
  overflow: hidden;
  padding: 0 1.5rem 4rem;
}

.footer-wave {
  line-height: 0;
  margin-bottom: 3rem;
}
.footer-wave svg {
  display: block;
  width: 100%;
  height: 80px;
}

.footer-leaf {
  position: absolute;
  opacity: 0.06;
  pointer-events: none;
}
.footer-leaf-left {
  bottom: -20px;
  left: -30px;
  width: 200px;
  transform: rotate(20deg);
}
.footer-leaf-right {
  bottom: -20px;
  right: -30px;
  width: 200px;
  transform: rotate(-20deg) scaleX(-1);
}

.footer-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.footer-monogram {
  font-family: var(--font-serif);
  font-size: 0.9rem;
  font-weight: 300;
  letter-spacing: 0.4em;
  color: rgba(255, 255, 255, 0.35);
  text-transform: uppercase;
}

.footer-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  max-width: 200px;
}
.footer-divider span {
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.15);
}

.footer-names {
  font-family: var(--font-serif) !important;
  font-size: clamp(2rem, 5vw, 3rem) !important;
  font-weight: 300 !important;
  font-style: italic !important;
  color: var(--white) !important;
  letter-spacing: 0.03em !important;
  margin: 0 !important;
  line-height: 1.2 !important;
}

.footer-info {
  font-family: var(--font-sans);
  font-size: 0.6rem;
  font-weight: 300;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin: 0;
}

.footer-nav {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.5rem;
}
.footer-nav a {
  font-family: var(--font-sans);
  font-size: 0.6rem;
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  text-decoration: none;
  transition: color 0.3s ease;
}
.footer-nav a:hover {
  color: rgba(255, 255, 255, 0.7);
}
.footer-nav span {
  color: rgba(255, 255, 255, 0.2);
  font-size: 0.5rem;
}

.footer-copy {
  font-family: var(--font-sans);
  font-size: 0.55rem;
  font-weight: 300;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.2);
  margin: 0;
}
.footer-copy em {
  font-style: italic;
  font-family: var(--font-serif);
  color: rgba(255, 255, 255, 0.3);
}

/* ── UTILITY ─────────────────────────────────────────────── */
.text-sage {
  color: var(--sage);
}
.text-sage-dark {
  color: var(--sage-dark);
}
.text-ivory {
  color: var(--ivory);
}
.opacity-0 {
  opacity: 0;
}

/* ============================================================
   RESPONSIVE — unico blocco, nessuna duplicazione
   ============================================================ */

/* Tablet */
@media (max-width: 900px) {
  #info .info-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* Mobile */
@media (max-width: 768px) {
  /* Nav */
  .boda-nav-desktop {
    display: none;
  }
  #burger-btn {
    display: flex !important;
  }

  /* Hero */
  #hero {
    min-height: 100svh;
  }

  .hero-collage {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, 1fr);
  }

  #hero .hero-names {
    font-size: clamp(2.8rem, 12vw, 5rem) !important;
  }

  .hero-wave svg {
    height: 60px;
  }

  .scroll-indicator {
    bottom: 5rem !important;
  }

  /* Benvenuto */
  #benvenuto {
    padding: 3rem 1rem;
  }

  #benvenuto .benvenuto-inner {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
    width: 100% !important;
    overflow: hidden !important;
  }
  #benvenuto .benvenuto-foto,
  #benvenuto .benvenuto-testo {
    width: 100% !important;
    max-width: 100% !important;
    transform: none !important; /* blocca GSAP da creare overflow */
  }

  .benvenuto-foto-frame {
    aspect-ratio: 4/3 !important;
    max-width: 320px;
    margin: 0 auto;
  }

  .benvenuto-testo {
    text-align: center;
  }

  /* Countdown */
  #countdown {
    padding: 4rem 1rem;
  }

  .countdown-block {
    padding: 0 0.75rem;
  }

  .countdown-number {
    font-size: clamp(2.5rem, 12vw, 4rem) !important;
  }

  /* Info */
  #info .info-grid {
    grid-template-columns: 1fr !important;
    max-width: 360px;
    margin: 0 auto;
  }

  /* Gallery */
  .gallery-grid {
    grid-template-columns: 1fr 1fr !important;
  }
  .gallery-col--center {
    margin-top: 0 !important;
  }
  .gallery-col--right {
    display: none;
  }

  /* RSVP */
  #rsvp {
    padding: 5rem 1rem;
  }

  .rsvp-actions {
    grid-template-columns: 1fr !important;
    gap: 0.75rem !important;
  }

  /* Footer */
  .footer-nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 0.75rem;
  }
}

/* Small mobile */
@media (max-width: 480px) {
  #hero .hero-names {
    font-size: clamp(2.2rem, 11vw, 3.5rem) !important;
  }

  #info,
  #gallery,
  #rsvp,
  #benvenuto {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .gallery-grid {
    grid-template-columns: 1fr !important;
  }
  .gallery-col--right {
    display: flex;
  }
}

/* ── AUDIO PLAYER ────────────────────────────────────────── */
.audio-player {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: color-mix(in srgb, var(--sage-dark) 85%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 0.6rem 1rem 0.6rem 0.6rem;
  border-radius: 50px;
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.5s ease,
    transform 0.5s ease;
  pointer-events: none;
}

.audio-player.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

.audio-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
  flex-shrink: 0;
}

.audio-btn:hover {
  background: rgba(255, 255, 255, 0.25);
}

.audio-label {
  font-family: var(--font-sans);
  font-size: 0.6rem;
  font-weight: 300;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.8);
  white-space: nowrap;
}

/* Animazione equalizzatore quando suona */
.audio-player.playing .audio-label::before {
  content: "▶ ";
  color: var(--sage-light);
}

@media (max-width: 480px) {
  .audio-player {
    bottom: 1.5rem;
    right: 1rem;
  }

  .audio-label {
    display: none;
  }
}

/* ── TAP TO START AUDIO ──────────────────────────────────── */
#audio-tap-start {
  position: fixed;
  bottom: 6rem;
  right: 1.5rem;
  z-index: 99;
  cursor: pointer;
  animation: fadeInUp 0.5s ease forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.tap-start-inner {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(78, 107, 74, 0.9);
  backdrop-filter: blur(8px);
  color: white;
  padding: 0.6rem 1rem;
  border-radius: 50px;
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 300;
  letter-spacing: 0.1em;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 4px 20px rgba(78, 107, 74, 0.3);
  }
  50% {
    box-shadow: 0 4px 30px rgba(78, 107, 74, 0.6);
  }
}

@media (max-width: 480px) {
  #audio-tap-start {
    right: 1rem;
    bottom: 5rem;
  }
  .tap-start-inner span {
    display: none;
  }
}

/* ── WELCOME SCREEN ──────────────────────────────────────── */
#boda-welcome {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--ivory);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition:
    opacity 0.8s ease,
    visibility 0.8s ease;
}

#boda-welcome.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.welcome-inner {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Foglie decorative */
.welcome-leaf {
  position: absolute;
  pointer-events: none;
}

.welcome-leaf--tl {
  top: -40px;
  left: -40px;
  width: 220px;
  transform: rotate(-15deg);
  opacity: 0;
  animation: welcomeLeafIn 1.2s ease 0.3s forwards;
}

.welcome-leaf--br {
  bottom: -40px;
  right: -40px;
  width: 220px;
  transform: rotate(165deg);
  opacity: 0;
  animation: welcomeLeafIn 1.2s ease 0.5s forwards;
}

@keyframes welcomeLeafIn {
  from {
    opacity: 0;
    transform: scale(0.8) rotate(var(--rot, -15deg));
  }
  to {
    opacity: 1;
    transform: scale(1) rotate(var(--rot, -15deg));
  }
}

/* Contenuto */
.welcome-content {
  text-align: center;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.welcome-eyebrow {
  font-family: var(--font-sans) !important;
  font-size: 0.6rem !important;
  font-weight: 400 !important;
  letter-spacing: 0.4em !important;
  text-transform: uppercase !important;
  color: var(--sage) !important;
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: welcomeFadeUp 0.9s ease 0.4s forwards;
}

.welcome-names {
  font-family: var(--font-serif) !important;
  font-size: clamp(3rem, 8vw, 6rem) !important;
  font-weight: 300 !important;
  font-style: italic !important;
  color: var(--sage-dark) !important;
  line-height: 1 !important;
  letter-spacing: 0.01em !important;
  margin-bottom: 2rem;
  opacity: 0;
  animation: welcomeFadeUp 1s ease 0.6s forwards;
}

.welcome-ampersand {
  color: var(--sage-light);
  font-style: normal;
  margin: 0 0.3em;
}

.welcome-divider {
  width: 60px;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    var(--sage-light),
    transparent
  );
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: welcomeFadeIn 0.8s ease 0.9s forwards;
}

.welcome-location {
  font-family: var(--font-sans) !important;
  font-size: 0.65rem !important;
  font-weight: 300 !important;
  letter-spacing: 0.2em !important;
  color: var(--text-light) !important;
  text-transform: uppercase !important;
  margin-bottom: 3rem;
  opacity: 0;
  animation: welcomeFadeUp 0.9s ease 1s forwards;
}

/* Bottone principale */
.welcome-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  padding: 1.1rem 2.5rem;
  background: var(--sage-dark);
  color: var(--white);
  border: none;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.35s ease;
  margin-bottom: 1.25rem;
  opacity: 0;
  animation: welcomeFadeUp 0.9s ease 1.2s forwards;
  position: relative;
  overflow: hidden;
}

.welcome-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--sage);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.welcome-btn:hover::before {
  transform: scaleX(1);
}

.welcome-btn-text {
  position: relative;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.welcome-btn-icon {
  position: relative;
  display: flex;
  align-items: center;
  transition: transform 0.3s ease;
}

.welcome-btn:hover .welcome-btn-icon {
  transform: translateX(4px);
}

.welcome-btn-music {
  position: relative;
  font-family: var(--font-sans);
  font-size: 0.55rem;
  font-weight: 300;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.6);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

/* Bottone silenzioso */
.welcome-btn-silent {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: none;
  border: none;
  font-family: var(--font-sans);
  font-size: 0.6rem;
  font-weight: 300;
  letter-spacing: 0.15em;
  color: var(--text-light);
  cursor: pointer;
  transition: color 0.3s ease;
  opacity: 0;
  animation: welcomeFadeIn 0.8s ease 1.4s forwards;
  padding: 0.5rem;
}

.welcome-btn-silent:hover {
  color: var(--sage-dark);
}

/* Animazioni */
@keyframes welcomeFadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes welcomeFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Mobile */
@media (max-width: 480px) {
  .welcome-names {
    font-size: clamp(2.5rem, 12vw, 4rem) !important;
  }

  .welcome-leaf--tl,
  .welcome-leaf--br {
    width: 150px;
  }
}

/*NEW CSS*/
#header {
  display: none;
}

