/* ========================================
   WEDDING LANDING PAGE — STYLES
   Palette: Terra / Crema / Verde Oliva
   ======================================== */

/* --- Custom Fonts --- */
@font-face {
  font-family: 'BonVivant';
  src: url('fonts/BonVivant-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'ArnoPro';
  src: url('fonts/ArnoPro-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'ArnoPro';
  src: url('fonts/ArnoPro-Italic08pt.otf') format('opentype');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

/* --- CSS Variables --- */
:root {
  --terra: #8B6F47;
  --terra-dark: #6B5535;
  --terra-light: #A8905C;
  --crema: #F5F0E8;
  --crema-dark: #E8DFD0;
  --verde-oliva: #6B7B5E;
  --verde-oliva-dark: #566349;
  --verde-oliva-light: #8A9A7B;
  --dorato: #C9A96E;
  --dorato-light: #D4BC8E;
  --bianco: #FDFCFA;
  --nero: #2C2821;
  --testo: #3D362B;
  --testo-chiaro: #6B6156;
  --bianco-puro: #FFFFFF;
  --nome-sposi: #57153B;

  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'ArnoPro', 'Montserrat', 'Helvetica Neue', sans-serif;
  --font-calligraphic: 'BonVivant', 'Cormorant Garamond', cursive;

  --header-h: 72px;
  --section-py: 100px;
  --section-py-mobile: 60px;
  --max-w: 1200px;
  --radius: 12px;
  --transition: 0.3s ease;
}

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body {
  font-family: var(--font-sans);
  font-weight: 300;
  color: var(--testo);
  background-color: var(--bianco);
  line-height: 1.6;
  overflow-x: hidden;
}

body.loading {
  overflow: hidden;
}

/* ========================================
   VIDEO INTRO LOADER
   ======================================== */
.video-intro {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bianco);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 1s ease;
}

.video-intro.hidden {
  opacity: 0;
  pointer-events: none;
}

.video-intro__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-intro__fade {
  position: absolute;
  inset: 0;
  background: var(--bianco);
  opacity: 0;
  transition: opacity 1.5s ease;
}

.video-intro.fading .video-intro__fade {
  opacity: 1;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

/* --- Animations --- */
.anim-fade {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.anim-fade.visible {
  opacity: 1;
  transform: translateY(0);
}

.anim-slide {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.anim-slide.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Section Common --- */
.section__header {
  position: relative;
  z-index: 1;
  text-align: center;
  margin-bottom: 60px;
}

.section__ornament {
  color: var(--dorato);
  font-size: 12px;
  letter-spacing: 8px;
  margin-bottom: 16px;
}

.section__ornament--light {
  color: var(--dorato-light);
}

.section__title {
  font-family: var(--font-calligraphic);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 400;
  color: var(--terra-dark);
  margin-bottom: 12px;
}

.section__title--light {
  color: var(--bianco);
}

.section__subtitle {
  font-size: 0.95rem;
  color: var(--testo-chiaro);
  font-weight: 300;
  letter-spacing: 1px;
}

.section__subtitle--light {
  color: var(--crema-dark);
}

/* ========================================
   HEADER
   ======================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-h);
  transition: background var(--transition), box-shadow var(--transition);
}

.header.scrolled {
  background: rgba(253, 252, 250, 0.97);
  box-shadow: 0 2px 20px rgba(0,0,0,0.06);
  backdrop-filter: blur(10px);
}

.header__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header__logo {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--terra-dark);
  transition: color var(--transition);
  line-height: 1;
}

.header__logo-img {
  height: 40px;
  width: auto;
  display: block;
  transition: height var(--transition);
}

.header.scrolled .header__logo-img {
  height: 34px;
}

.header.scrolled .header__logo {
  color: var(--terra-dark);
}

.header__nav {
  display: none;
  gap: 32px;
  align-items: center;
}

.header__link {
  position: relative;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--testo);
  text-decoration: none;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: color var(--transition);
}

.header__link--hidden,
.mobile-menu__link--hidden {
  display: none;
}

.header__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--dorato);
  transition: width var(--transition);
}

.header__link:hover::after {
  width: 100%;
}

.header.scrolled .header__link {
  color: var(--testo-chiaro);
}

.header.scrolled .header__link:hover {
  color: var(--terra-dark);
}

.header__cta {
  display: none;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 10px 24px;
  border: 1px solid var(--terra);
  color: var(--terra);
  transition: all var(--transition);
  border-radius: 2px;
}

.header__cta:hover {
  background: var(--dorato);
  color: var(--bianco);
}

.header.scrolled .header__cta {
  border-color: var(--terra);
  color: var(--terra);
}

.header.scrolled .header__cta:hover {
  background: var(--terra);
  color: var(--bianco);
}

/* Hamburger */
.header__burger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  z-index: 1001;
}

.header__burger span {
  width: 24px;
  height: 2px;
  background: var(--terra-dark);
  transition: all var(--transition);
  transform-origin: center;
}

.header.scrolled .header__burger span {
  background: var(--terra-dark);
}

.header__burger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.header__burger.active span:nth-child(2) {
  opacity: 0;
}

.header__burger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: rgba(44, 40, 33, 0.97);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  backdrop-filter: blur(10px);
}

.mobile-menu.active {
  opacity: 1;
  visibility: visible;
}

.mobile-menu__nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.mobile-menu__link {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  color: var(--crema);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease, color 0.3s ease;
}

.mobile-menu.active .mobile-menu__link {
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu.active .mobile-menu__link:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu.active .mobile-menu__link:nth-child(2) { transition-delay: 0.15s; }
.mobile-menu.active .mobile-menu__link:nth-child(3) { transition-delay: 0.2s; }
.mobile-menu.active .mobile-menu__link:nth-child(4) { transition-delay: 0.25s; }
.mobile-menu.active .mobile-menu__link:nth-child(5) { transition-delay: 0.3s; }
.mobile-menu.active .mobile-menu__link:nth-child(6) { transition-delay: 0.35s; }

.mobile-menu__link:hover {
  color: var(--dorato);
}

.mobile-menu__link--cta {
  margin-top: 16px;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 12px 32px;
  border: 1px solid var(--dorato);
  color: var(--dorato);
}

.mobile-menu__link--cta:hover {
  background: var(--dorato);
  color: var(--bianco);
}

/* Desktop: show nav and CTA, hide burger */
@media (min-width: 769px) {
.header__nav {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 32px;
  align-items: center;
}

  .header__cta {
    display: inline-block;
  }

  .header__burger {
    display: none;
  }
}

/* ========================================
   VIDEO HERO
   ======================================== */
.video-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.video-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.video-hero__overlay {
  position: absolute;
  inset: 0;
  background: transparent;
}

.video-hero__tree {
  position: absolute;
  bottom: -20%;
  height: 130%;
  max-height: 1200px;
  width: auto;
  pointer-events: none;
  z-index: 1;
}

.video-hero__tree--sx {
  left: 2%;
}

.video-hero__tree--dx {
  right: -5%;
  bottom: -30%;
}

.video-hero__tree--dx2 {
  right: -10%;
  bottom: -70%;
  z-index: 2;
}

.video-hero__tree--sx2 {
  left: 2%;
  bottom: -55%;
  z-index: 2;
}

@media (max-width: 768px) {
  .video-hero__tree {
    height: 80%;
    max-height: 700px;
    bottom: -18%;
  }

  .video-hero__tree--sx {
    left: -5%;
    bottom: -30%;
  }

  .video-hero__tree--dx {
    right: -10%;
    bottom: -35%;
  }
}

.video-hero__content {
  position: relative;
  z-index: 1;
  padding: 40px 24px;
  max-width: 700px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  justify-content: center;
  padding-bottom: 60px;
}

.video-hero__ornament {
  color: var(--terra-dark);
  font-size: 24px;
  margin-bottom: 20px;
  letter-spacing: 12px;
}

.video-hero__subtitle {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--terra);
  margin-bottom: 20px;
}

.video-hero__title {
  font-family: var(--font-serif);
  font-weight: 300;
  color: var(--terra-dark);
  margin-bottom: 16px;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.video-hero__name {
  font-family: var(--font-calligraphic);
  font-size: clamp(2.8rem, 8vw, 5.5rem);
  line-height: 1.1;
  color: var(--nome-sposi);
}

.video-hero__amp {
  font-family: var(--font-calligraphic);
  font-size: clamp(2.8rem, 8vw, 5.5rem);
  font-style: normal;
  color: var(--nome-sposi);
}

.video-hero__date {
  font-family: var(--font-sans);
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  font-weight: 300;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: var(--testo-chiaro);
  margin-bottom: 40px;
}

/* Countdown */
.video-hero__countdown {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 50px;
}

.countdown__item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.countdown__number {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 300;
  color: var(--terra-dark);
  line-height: 1;
  min-width: 60px;
}

.countdown__label {
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--testo-chiaro);
  margin-top: 8px;
}

/* Scroll indicator */
.video-hero__scroll {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--testo-chiaro);
  animation: scrollBounce 2s ease-in-out infinite;
  margin-top: auto;
  position: absolute;
  bottom: 30px;
  left: 0;
  right: 0;
  text-align: center;
  text-decoration: none;
  transition: color 0.3s ease;
}

.video-hero__scroll:hover {
  color: var(--terra-dark);
}

.video-hero__scroll span {
  font-size: 0.65rem;
  letter-spacing: 3px;
  text-transform: uppercase;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

/* ========================================
   INTRO (ex Hero)
   ======================================== */
.intro {
  padding: var(--section-py) 24px;
  text-align: center;
  background: var(--bianco);
  background-image: url('img/paper-texture.jpg');
  background-size: cover;
  background-blend-mode: multiply;
}

.intro__content {
  max-width: 600px;
  margin: 0 auto;
}

/* ========================================
   LA NOSTRA STORIA
   ======================================== */
.storia {
  display: none;
  padding: var(--section-py) 24px;
  max-width: var(--max-w);
  margin: 0 auto;
  overflow: hidden;
}

.storia__timeline {
  display: flex;
  flex-direction: column;
  gap: 80px;
}

.storia__item {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
}

.storia__item--reverse {
  direction: rtl;
}

.storia__item--reverse > * {
  direction: ltr;
}

.storia__image {
  width: 100%;
}

.storia__placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--crema-dark) 0%, var(--crema) 100%);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--terra-light);
  font-style: italic;
}

.storia__img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: var(--radius);
}

.storia__image {
  position: relative;
}

.storia__siepe {
  position: absolute;
  left: 0;
  bottom: -30%;
  height: 150%;
  width: auto;
  z-index: 1;
  pointer-events: none;
}

.storia__siepe--dx {
  left: auto;
  right: -10%;
}

.storia__item:nth-of-type(2) .storia__siepe {
  height: 170%;
  bottom: -34%;
}

.storia__item:nth-of-type(2) .storia__siepe--dx {
  height: 190%;
}

.storia__text {
  padding: 0 8px;
}

.storia__year {
  font-family: var(--font-calligraphic);
  font-size: 3rem;
  font-weight: 400;
  color: var(--dorato);
  line-height: 1;
  display: block;
  margin-bottom: 12px;
}

.storia__heading {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--terra-dark);
  margin-bottom: 16px;
}

.storia__text p {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--testo-chiaro);
}

/* Desktop: side by side */
@media (min-width: 769px) {
  .storia__item {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  .storia__item--reverse {
    grid-template-columns: 1fr 1fr;
  }

  .storia__item--reverse .storia__image {
    order: 2;
  }

  .storia__item--reverse .storia__text {
    order: 1;
  }
}

/* ========================================
   DETTAGLI EVENTO
   ======================================== */
.evento {
  position: relative;
  padding: var(--section-py) 24px;
  background: var(--crema);
  overflow: hidden;
}

.evento__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.evento__tree {
  position: absolute;
  bottom: -20%;
  height: 130%;
  max-height: 1200px;
  width: auto;
  pointer-events: none;
  z-index: 0;
}

.evento__tree--sx {
  left: 2%;
}

.evento__tree--dx {
  right: -5%;
  bottom: -30%;
}

.evento__cards {
  position: relative;
  z-index: 1;
  max-width: var(--max-w);
  margin: 0 auto 48px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

@media (min-width: 769px) {
  .evento__cards {
    grid-template-columns: 1fr 1fr;
  }
}

.evento__card {
  background: var(--bianco);
  padding: 48px 36px;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: 0 4px 24px rgba(0,0,0,0.04);
  transition: transform var(--transition), box-shadow var(--transition);
}

.evento__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
}

.evento__icon {
  position: relative;
  color: var(--verde-oliva);
  margin-bottom: 20px;
}

.evento__icon-img {
  width: 340px;
  height: 340px;
  object-fit: cover;
  object-position: center bottom;
  border-radius: var(--radius);
  margin: 0 auto;
  display: block;
}

.evento__icon-siepe {
  position: absolute;
  left: 50%;
  transform: translateX(-60%);
  bottom: -4%;
  height: 140%;
  width: auto;
  z-index: 1;
  pointer-events: none;
}

.evento__icon-siepe--dx {
  left: 50%;
  transform: translateX(-40%);
}

.evento__card-title {
  font-family: var(--font-calligraphic);
  font-size: 3rem;
  font-weight: 400;
  color: var(--terra-dark);
  margin-bottom: 12px;
}

.evento__time {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--verde-oliva);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.evento__venue {
  font-family: var(--font-calligraphic);
  font-size: 1.6rem;
  color: var(--testo);
  margin-bottom: 4px;
}

.evento__address {
  font-size: 0.85rem;
  color: var(--testo-chiaro);
  margin-bottom: 20px;
}

.evento__map-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--terra);
  letter-spacing: 1px;
  text-transform: uppercase;
  border-bottom: 1px solid var(--terra-light);
  padding-bottom: 2px;
  transition: color var(--transition), border-color var(--transition);
}

.evento__map-link:hover {
  color: var(--terra-dark);
  border-color: var(--terra-dark);
}

/* Dress code */
.evento__dresscode {
  position: relative;
  z-index: 1;
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  padding: 32px;
  border-top: 1px solid var(--crema-dark);
}

.evento__dresscode + .evento__dresscode {
  border-top: none;
  padding-top: 0;
}

.evento__dresscode h4 {
  font-family: var(--font-calligraphic);
  font-size: 1.8rem;
  font-weight: 400;
  color: var(--terra-dark);
  margin-bottom: 8px;
}

.evento__dresscode p {
  font-size: 0.9rem;
  color: var(--testo-chiaro);
  line-height: 1.7;
}

/* ========================================
   GALLERIA
   ======================================== */
.galleria {
  display: none;
  padding: var(--section-py) 24px;
  max-width: var(--max-w);
  margin: 0 auto;
}

.galleria__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (min-width: 769px) {
  .galleria__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
}

.galleria__item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  cursor: pointer;
}

.galleria__item--tall {
  grid-row: span 2;
}

.galleria__item--wide {
  grid-column: span 2;
}

@media (min-width: 769px) {
  .galleria__item--wide {
    grid-column: span 2;
  }
}

.galleria__placeholder {
  width: 100%;
  height: 100%;
  min-height: 200px;
  background: linear-gradient(135deg, var(--crema-dark) 0%, var(--crema) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--terra-light);
  font-style: italic;
  transition: transform 0.5s ease;
}

.galleria__item:hover .galleria__placeholder {
  transform: scale(1.03);
}

.galleria__item--tall .galleria__placeholder {
  min-height: 100%;
}

/* ========================================
   LIGHTBOX
   ======================================== */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(44, 40, 33, 0.95);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox__close {
  position: absolute;
  top: 20px;
  right: 24px;
  font-size: 2rem;
  color: var(--bianco);
  opacity: 0.7;
  transition: opacity var(--transition);
  z-index: 1;
}

.lightbox__close:hover {
  opacity: 1;
}

.lightbox__prev,
.lightbox__next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: var(--bianco);
  opacity: 0.6;
  transition: opacity var(--transition);
  padding: 12px;
}

.lightbox__prev { left: 16px; }
.lightbox__next { right: 16px; }

.lightbox__prev:hover,
.lightbox__next:hover {
  opacity: 1;
}

.lightbox__content {
  max-width: 80vw;
  max-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox__placeholder {
  width: 60vw;
  height: 60vh;
  max-width: 800px;
  max-height: 600px;
  background: linear-gradient(135deg, rgba(139,111,71,0.3), rgba(107,123,94,0.3));
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--crema);
  font-style: italic;
}

/* ========================================
   RSVP
   ======================================== */
.rsvp {
  position: relative;
  padding: var(--section-py) 24px;
  overflow: hidden;
}

.rsvp__bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--verde-oliva-dark) 0%, var(--terra-dark) 100%);
}

.rsvp__content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto;
}

/* Form */
.rsvp__form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 769px) {
  .form__row {
    grid-template-columns: 1fr 1fr;
  }
}

.form__group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form__label {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--crema-dark);
}

.form__input {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  padding: 14px 18px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 6px;
  color: var(--bianco);
  transition: border-color var(--transition), background var(--transition);
}

.form__input::placeholder {
  color: rgba(255,255,255,0.4);
}

.form__input:focus {
  outline: none;
  border-color: var(--dorato);
  background: rgba(255,255,255,0.15);
}

.form__input option {
  background: var(--terra-dark);
  color: var(--bianco);
}

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

/* Radio buttons */
.form__radio-group {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.form__radio {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--crema);
  cursor: pointer;
}

.form__radio input {
  display: none;
}

.form__radio-custom {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  position: relative;
  transition: border-color var(--transition);
}

.form__radio input:checked + .form__radio-custom {
  border-color: var(--dorato);
}

.form__radio input:checked + .form__radio-custom::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 10px;
  height: 10px;
  background: var(--dorato);
  border-radius: 50%;
}

/* Submit */
.form__submit {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 16px 40px;
  background: var(--dorato);
  color: var(--bianco);
  border: 2px solid var(--dorato);
  border-radius: 4px;
  transition: all var(--transition);
  align-self: center;
}

.form__submit:hover {
  background: transparent;
  color: var(--dorato);
}

/* Confirmation */
.rsvp__confirmation {
  display: none;
  text-align: center;
  padding: 60px 24px;
}

.rsvp__confirmation.visible {
  display: block;
}

.rsvp__confirmation-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 2px solid var(--dorato);
  color: var(--dorato);
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
}

.rsvp__confirmation h3 {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--bianco);
  margin-bottom: 12px;
}

.rsvp__confirmation p {
  color: var(--crema-dark);
  font-size: 0.95rem;
}

/* Form error state */
.form__input.error {
  border-color: #C4726C;
}

.form__error {
  font-size: 0.75rem;
  color: #C4726C;
  display: none;
}

.form__error.visible {
  display: block;
}

/* Conditional fields — hidden until "Accetto" is selected */
.form__group--conditional {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.4s ease, margin 0.4s ease;
  margin: 0;
}

.form__group--conditional.visible {
  max-height: 120px;
  opacity: 1;
  margin-bottom: 0;
}

/* ========================================
   LISTA NOZZE
   ======================================== */
.lista-nozze {
  padding: 80px 24px var(--section-py);
  background: var(--crema);
}

.lista-nozze__inner {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
  background: var(--bianco);
  padding: 56px 40px;
  border-radius: var(--radius);
  box-shadow: 0 4px 24px rgba(0,0,0,0.04);
}

.lista-nozze__ornament {
  color: var(--dorato);
  font-size: 11px;
  letter-spacing: 8px;
  margin-bottom: 16px;
}

.lista-nozze__title {
  font-family: var(--font-calligraphic);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 400;
  color: var(--terra-dark);
  margin-bottom: 20px;
}

.lista-nozze__text {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--testo-chiaro);
  margin-bottom: 32px;
}

.lista-nozze__actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 0;
}

.lista-nozze__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 14px 28px;
  background: var(--terra-dark);
  color: var(--bianco);
  border: 2px solid var(--terra-dark);
  border-radius: 4px;
  cursor: pointer;
  transition: all var(--transition);
}

.lista-nozze__btn:hover {
  background: var(--terra);
  border-color: var(--terra);
}

.lista-nozze__btn--outline {
  background: transparent;
  color: var(--terra-dark);
}

.lista-nozze__btn--outline:hover {
  background: var(--terra-dark);
  color: var(--bianco);
}

.lista-nozze__iban {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.5s ease, opacity 0.4s ease, margin 0.4s ease, padding 0.4s ease;
  margin-top: 0;
}

.lista-nozze__iban.visible {
  max-height: 200px;
  opacity: 1;
  margin-top: 32px;
  padding: 24px;
  background: var(--crema);
  border-radius: var(--radius-sm);
}

.lista-nozze__iban-label {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--testo-chiaro);
  margin-bottom: 8px;
}

.lista-nozze__iban-number {
  font-family: var(--font-sans);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--terra-dark);
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.lista-nozze__iban-intestatari {
  font-size: 0.82rem;
  color: var(--testo-chiaro);
  font-style: italic;
}

@media (max-width: 480px) {
  .lista-nozze__inner {
    padding: 40px 24px;
  }

  .lista-nozze__actions {
    flex-direction: column;
    align-items: center;
  }

  .lista-nozze__btn {
    width: 100%;
    justify-content: center;
  }
}

/* ========================================
   FAQ
   ======================================== */
.faq {
  display: none;
  padding: 40px 24px var(--section-py);
  background: var(--crema);
}

.faq__list {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.faq__item {
  border-bottom: 1px solid var(--crema-dark);
}

.faq__question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  font-family: var(--font-sans);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--terra-dark);
  text-align: left;
  transition: color var(--transition);
}

.faq__question:hover {
  color: var(--verde-oliva);
}

.faq__chevron {
  flex-shrink: 0;
  transition: transform var(--transition);
  color: var(--terra-light);
}

.faq__item.active .faq__chevron {
  transform: rotate(180deg);
}

.faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq__item.active .faq__answer {
  max-height: 300px;
  padding-bottom: 24px;
}

.faq__answer p {
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--testo-chiaro);
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
  position: relative;
  padding: 80px 24px;
  text-align: center;
  background: var(--bianco);
  background-image: url('img/paper-texture.jpg');
  background-size: cover;
  background-blend-mode: multiply;
  overflow: hidden;
}

.footer__decor {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.footer__siepe {
  position: absolute;
  width: auto;
  bottom: -50%;
  height: 200%;
  z-index: 1;
}

.footer__tree {
  position: absolute;
  bottom: -40%;
  height: 150%;
  max-height: 600px;
  width: auto;
  z-index: 0;
}

.footer__siepe--sx {
  left: 0;
}

.footer__siepe--dx {
  right: 0;
}

.footer__tree--sx {
  left: 2%;
  bottom: -25%;
  height: 210%;
}

.footer__tree--dx {
  right: -5%;
  height: 250%;
  bottom: -40%;
}

.footer__content {
  position: relative;
  z-index: 1;
}

.footer__ornament {
  color: var(--dorato);
  font-size: 18px;
  margin-bottom: 20px;
}

.footer__names {
  font-family: var(--font-calligraphic);
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 400;
  color: var(--nome-sposi);
  margin-bottom: 8px;
}

.footer__date {
  font-size: 0.85rem;
  font-weight: 300;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--testo-chiaro);
  margin-bottom: 24px;
}

.footer__heart {
  color: var(--dorato);
  margin-bottom: 24px;
}

.footer__credit {
  font-size: 0.75rem;
  color: var(--testo-chiaro);
  font-style: italic;
}

/* ========================================
   UTILITY & RESPONSIVE
   ======================================== */
@media (min-width: 769px) {
  :root {
    --section-py: 120px;
  }
}

@media (min-width: 1440px) {
  :root {
    --section-py: 140px;
  }
}

@media (max-width: 768px) {
  .evento__tree {
    height: 80%;
    max-height: 700px;
    bottom: -18%;
  }

  .evento__tree--sx {
    left: -5%;
  }

  .evento__tree--dx {
    right: -10%;
    bottom: -35%;
  }

  .footer__tree {
    height: 90%;
    max-height: none;
  }

  .footer__tree--sx {
    left: -5%;
    bottom: -10%;
    height: 80%;
  }

  .footer__tree--dx {
    right: -10%;
  }

  .footer__siepe--sx {
    bottom: -25%;
    height: 100%;
  }

  .footer__siepe--dx {
    bottom: -25%;
    height: 100%;
  }

  .video-hero__title {
    flex-direction: column;
    gap: -10px;
    margin-top: -40px;
  }

  .video-hero__pair {
    display: flex;
    align-items: baseline;
    gap: 16px;
  }

  .video-hero__name {
    font-size: clamp(4.5rem, 22vw, 7rem);
  }

  .video-hero__title > .video-hero__name:last-child {
    transform: translateX(30%) translateY(-40%);
  }

  .video-hero__amp {
    font-size: clamp(4.5rem, 22vw, 7rem);
  }

  .storia__siepe {
    bottom: -30%;
  }

  .video-hero__tree--dx2 {
    bottom: 26%;
    right: -26%;
    transform: rotate(-10deg);
  }

  .video-hero__tree--sx2 {
    bottom: 26%;
    left: -26%;
    transform: rotate(10deg);
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .anim-fade,
  .anim-slide {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero__scroll {
    animation: none;
  }

  html {
    scroll-behavior: auto;
  }
}
