@font-face {
  font-family: 'Glamour';
  src: url('../fonts/Glamour.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ===== Variabili ===== */
:root {
  --white: #fffdf9;
  --cream: #faf5eb;
  --green: #1f3b2c;
  --green-dark: #142a1e;
  --gold: #b5893f;
  --gold-light: #d8b876;
  --text: #2c2c2a;
  --text-soft: #5a5a56;
  --radius: 10px;
  --max-width: 960px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

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

h1, h2, h3 {
  font-family: 'Glamour', cursive;
  font-weight: 400;
  color: var(--green);
  margin: 0;
}

p { line-height: 1.7; }

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

.center { text-align: center; }

.hero-icon {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
}

.hero-icon svg {
  width: 84px;
  height: 56px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.75rem;
  color: var(--gold);
  margin: 0 0 0.5rem;
}

.section-title {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.section-lead {
  max-width: 640px;
  margin: 0 auto 2rem;
  color: var(--text-soft);
}

.br-desktop { display: none; }
@media (min-width: 700px) { .br-desktop { display: inline; } }

/* ===== Header ===== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  background: rgba(255, 253, 249, 0.9);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(181, 137, 63, 0.2);
}

.brand {
  font-family: 'Glamour', cursive;
  font-size: 1.6rem;
  color: var(--green);
}

.menu-toggle {
  width: 40px; height: 40px;
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.menu-toggle span {
  width: 24px; height: 2px;
  background: var(--green);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Side menu ===== */
.overlay {
  position: fixed; inset: 0;
  background: rgba(20, 42, 30, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 45;
}
.overlay.visible { opacity: 1; pointer-events: auto; }

.side-menu {
  position: fixed;
  top: 0; right: 0;
  height: 100%;
  width: min(320px, 85vw);
  background: var(--green);
  color: var(--white);
  z-index: 50;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(.4,0,.2,1);
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
}

.side-menu.open { transform: translateX(0); }

.menu-close {
  align-self: flex-end;
  background: none;
  border: none;
  color: var(--white);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  margin-bottom: 1.5rem;
}

.side-menu ul {
  list-style: none;
  padding: 0;
  margin: 0 0 auto;
}

.side-menu li { margin-bottom: 1.5rem; }

.side-menu .nav-link {
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  color: var(--white);
  border-bottom: 1px solid transparent;
  padding-bottom: 3px;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.side-menu .nav-link:hover { color: var(--gold-light); border-color: var(--gold-light); }

.rsvp-menu-btn {
  margin-top: 2rem;
  text-align: center;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  border-radius: 999px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.btn:active { transform: scale(0.97); }

.btn-gold {
  background: var(--gold);
  color: var(--white);
}
.btn-gold:hover { background: var(--gold-light); }

.btn-outline-green {
  background: transparent;
  border-color: var(--green);
  color: var(--green);
}
.btn-outline-green:hover { background: var(--green); color: var(--white); }

.btn-text {
  background: none;
  border: none;
  color: var(--text-soft);
  text-decoration: underline;
}

/* ===== Hero ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 1.5rem 3rem;
  background-image:
    radial-gradient(circle at 50% 15%, rgba(181,137,63,0.12), transparent 55%),
    linear-gradient(180deg, rgba(255,253,249,0.90), rgba(250,245,235,0.93)),
    url('../img/hero-bg.jpg');
  background-size: cover, cover, cover;
  background-position: center, center, center 30%;
  background-repeat: no-repeat;
}

.hero-inner { max-width: 640px; }

.hero h1 {
  font-size: clamp(3.4rem, 11vw, 6.5rem);
  letter-spacing: 0.01em;
}

.hero h1 .amp {
  color: var(--gold);
}

.hero-date {
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  font-size: 1.15rem;
  color: var(--text-soft);
  margin-top: 0.5rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-divider {
  width: 60px;
  height: 1px;
  background: var(--gold);
  margin: 1.75rem auto;
}

.hero-sub {
  color: var(--text-soft);
  margin-bottom: 2rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.8rem;
}

/* ===== Sections ===== */
.section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 5rem 1.5rem;
}

.section-alt { background: var(--cream); max-width: none; }
.section-alt > * { max-width: var(--max-width); margin-left: auto; margin-right: auto; }

/* ===== Timeline ===== */
.timeline {
  position: relative;
  max-width: 560px;
  margin: 0 auto;
  padding-left: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 6px; top: 6px; bottom: 6px;
  width: 1px;
  background: var(--gold-light);
}

.timeline-item {
  position: relative;
  margin-bottom: 2.5rem;
}
.timeline-item:last-child { margin-bottom: 0; }

.timeline-dot {
  position: absolute;
  left: -2rem;
  top: 6px;
  width: 13px; height: 13px;
  border-radius: 50%;
  background: var(--gold);
  border: 2px solid var(--white);
  box-shadow: 0 0 0 1px var(--gold-light);
}

.timeline-time {
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.25rem;
}

.timeline-content h3 { font-size: 2rem; margin-bottom: 0.4rem; }
.timeline-content p { color: var(--text-soft); margin: 0 0 0.6rem; }

.maps-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--green);
  border-bottom: 1px solid var(--green);
  padding-bottom: 2px;
}
.maps-link:hover { color: var(--gold); border-color: var(--gold); }

/* ===== Gallery placeholders ===== */
.gallery-strip { padding: 0 1.5rem; max-width: var(--max-width); margin: 0 auto; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}
.gallery-grid-2 { grid-template-columns: 2fr 1fr; }

.gallery-ph {
  aspect-ratio: 1 / 1;
  background: linear-gradient(135deg, var(--cream), #f0e6d2);
  border: 1px dashed var(--gold-light);
  border-radius: var(--radius);
  position: relative;
}
.gallery-ph-wide { aspect-ratio: 16/9; }

.gallery-photo {
  aspect-ratio: 1 / 1;
  width: 100%;
  object-fit: cover;
  border-radius: var(--radius);
  display: block;
}
.gallery-photo.gallery-ph-wide { aspect-ratio: 16/9; }

.gallery-ph::after {
  content: '📷';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.5rem;
  opacity: 0.35;
}

@media (max-width: 600px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid-2 { grid-template-columns: 1fr; }
}

/* ===== Info grid ===== */
.info-grid {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 3rem;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.info-card {
  flex: 1 1 220px;
  max-width: 260px;
  padding: 0 0.5rem;
  position: relative;
}

.info-card + .info-card::before {
  content: '';
  position: absolute;
  left: -1.5rem;
  top: 0.35rem;
  bottom: 0.35rem;
  width: 1px;
  background: var(--gold-light);
}

.info-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: var(--gold);
}

.info-card p { color: var(--text-soft); font-size: 0.92rem; margin: 0; }

@media (max-width: 700px) {
  .info-grid { flex-direction: column; align-items: center; gap: 2rem; }
  .info-card { flex: 0 0 auto; max-width: 320px; }
  .info-card + .info-card::before {
    left: 50%;
    top: -1rem;
    bottom: auto;
    width: 40px;
    height: 1px;
    transform: translateX(-50%);
  }
}

/* ===== Upload box ===== */
.upload-box {
  max-width: 420px;
  margin: 0 auto;
  text-align: center;
  background: var(--cream);
  border-radius: var(--radius);
  padding: 2.5rem 1.5rem;
  border: 1px solid rgba(181,137,63,0.2);
}

.upload-state img {
  width: 100%;
  border-radius: var(--radius);
  margin-bottom: 1.25rem;
  max-height: 320px;
  object-fit: cover;
}

.upload-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.spinner {
  width: 34px; height: 34px;
  margin: 0 auto 1rem;
  border: 3px solid var(--gold-light);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.upload-success { color: var(--green); font-size: 1.1rem; margin-bottom: 1.25rem; }
.upload-error { color: #a33; margin-bottom: 1.25rem; }

/* ===== Lista di nozze ===== */
.honeymoon-text { color: var(--text-soft); }

.iban-card {
  max-width: 420px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--gold-light);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
}

.iban-label {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.7rem;
  color: var(--text-soft);
  margin: 0.75rem 0 0.15rem;
}
.iban-label:first-child { margin-top: 0; }

.iban-value {
  font-family: 'Glamour', cursive;
  font-size: 1.6rem;
  color: var(--green);
  margin: 0 0 0.5rem;
}

.iban-code {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  white-space: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 380px) {
  .iban-code {
    font-size: 0.8rem;
    letter-spacing: 0.02em;
  }
}

/* ===== Footer ===== */
.site-footer {
  text-align: center;
  padding: 2.5rem 1.5rem;
  color: var(--text-soft);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ===== Dark mode friendly tweak (kept light per brief, gentle only) ===== */
@media (prefers-color-scheme: dark) {
  body { background: var(--white); }
}
