/* ============================================
   MATRIMONIO VINCENZO & EDVIGE — STYLE
   ============================================ */

@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=Lato:wght@300;400;700&family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&display=swap');

/* --- CSS Variables --- */
:root {
  --cream: #F5F0E8;
  --cream-light: #FAF7F2;
  --gold: #C9A96E;
  --gold-light: #D4B896;
  --gold-dark: #A8854A;
  --text-dark: #2C2C2C;
  --text-muted: #6B6B6B;
  --green-sea: #5B8A72;
  --green-sea-light: #7BA99A;
  --white: #FFFFFF;
  --shadow-soft: 0 4px 30px rgba(0,0,0,0.06);
  --shadow-card: 0 8px 40px rgba(0,0,0,0.08);
  --radius: 16px;
  --transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Lato', sans-serif;
  background-color: var(--cream);
  color: var(--text-dark);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* --- Typography --- */
h1, h2, h3 { font-family: 'Playfair Display', serif; font-weight: 500; line-height: 1.2; }
.script-font { font-family: 'Cormorant Garamond', serif; font-style: italic; }

.section-label {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.1rem;
  color: var(--gold);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--text-dark);
  margin-bottom: 1.5rem;
}

/* --- Scroll Reveal --- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   1. SPLASH SCREEN
   ============================================ */
#splash {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: linear-gradient(145deg, var(--cream) 0%, var(--cream-light) 50%, #EDE7DB 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}
#splash.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.seal {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #D4443B, #A0302A 60%, #7A2420 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 30px rgba(160,48,42,0.35), inset 0 -4px 12px rgba(0,0,0,0.2), inset 0 4px 8px rgba(255,255,255,0.15);
  position: relative;
  animation: sealPulse 2.5s ease-in-out infinite;
}
.seal::before {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 2px solid var(--gold-light);
  opacity: 0.4;
}
.seal-text {
  font-family: 'Playfair Display', serif;
  color: #F5E6D0;
  font-size: 1.6rem;
  font-weight: 600;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
  letter-spacing: 2px;
}

@keyframes sealPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}

.splash-cta {
  margin-top: 2.5rem;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.15rem;
  color: var(--gold-dark);
  letter-spacing: 3px;
  text-transform: uppercase;
  background: none;
  border: 1px solid var(--gold-light);
  padding: 12px 36px;
  border-radius: 50px;
  transition: var(--transition);
}
.splash-cta:hover {
  background: var(--gold);
  color: var(--white);
  border-color: var(--gold);
}

.splash-date {
  margin-top: 1.2rem;
  font-family: 'Lato', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 4px;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* ============================================
   2. HERO SECTION
   ============================================ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('assets/WhatsApp Image 2026-05-04 at 17.50.19.jpeg');
  background-size: cover;
  background-position: center;
  filter: brightness(0.55);
  transform: scale(1.05);
  transition: transform 8s ease;
}
.hero:hover .hero-bg { transform: scale(1); }

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--white);
  padding: 2rem;
}
.hero-names {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.8rem, 8vw, 5.5rem);
  font-weight: 500;
  letter-spacing: 3px;
  text-shadow: 0 4px 20px rgba(0,0,0,0.4);
  margin-bottom: 0.5rem;
}
.hero-ampersand {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 300;
  color: var(--gold-light);
  font-size: 0.7em;
  margin: 0 0.2em;
}
.hero-date {
  font-family: 'Lato', sans-serif;
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  letter-spacing: 8px;
  text-transform: uppercase;
  margin-top: 0.5rem;
  font-weight: 300;
}
.hero-subtitle {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: clamp(1rem, 2vw, 1.3rem);
  margin-top: 1.5rem;
  opacity: 0.9;
}
.hero-divider {
  width: 60px;
  height: 1px;
  background: var(--gold-light);
  margin: 1.5rem auto;
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  animation: bounce 2s infinite;
}
.scroll-indicator span {
  display: block;
  width: 24px;
  height: 24px;
  border-right: 2px solid var(--gold-light);
  border-bottom: 2px solid var(--gold-light);
  transform: rotate(45deg);
  opacity: 0.7;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
  40% { transform: translateX(-50%) translateY(-12px); }
  60% { transform: translateX(-50%) translateY(-6px); }
}

/* ============================================
   3. COUNTDOWN SECTION
   ============================================ */
.countdown-section {
  padding: 5rem 1.5rem;
  text-align: center;
  background: var(--cream-light);
}
.countdown-grid {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin: 2.5rem 0;
  flex-wrap: wrap;
}
.countdown-box {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem 1.2rem;
  min-width: 100px;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(201,169,110,0.15);
  transition: transform 0.3s ease;
}
.countdown-box:hover { transform: translateY(-4px); }
.countdown-number {
  font-family: 'Playfair Display', serif;
  font-size: 2.8rem;
  color: var(--gold-dark);
  line-height: 1;
}
.countdown-label {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-top: 0.3rem;
  letter-spacing: 1px;
}

.btn-calendar {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 1rem;
  padding: 12px 28px;
  background: var(--gold);
  color: var(--white);
  border-radius: 50px;
  font-size: 0.9rem;
  letter-spacing: 1px;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(201,169,110,0.3);
}
.btn-calendar:hover {
  background: var(--gold-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(201,169,110,0.4);
}

/* ============================================
   4. LA NOSTRA STORIA
   ============================================ */
.story-section {
  padding: 6rem 1.5rem;
  background: var(--cream);
}
.story-container {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.story-image {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  position: relative;
}
.story-image img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.story-image:hover img { transform: scale(1.03); }
.story-image::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid rgba(201,169,110,0.2);
  border-radius: var(--radius);
  pointer-events: none;
}

.story-text { text-align: left; }
.story-text p {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  line-height: 1.9;
}
.story-quote {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.4rem;
  color: var(--gold-dark);
  border-left: 3px solid var(--gold-light);
  padding-left: 1.2rem;
  margin-top: 1.5rem;
}

/* ============================================
   5. TIMELINE
   ============================================ */
.timeline-section {
  padding: 6rem 1.5rem;
  background: var(--cream-light);
  text-align: center;
}
.timeline {
  max-width: 600px;
  margin: 3rem auto 0;
  position: relative;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, transparent, var(--gold-light), transparent);
}
.timeline-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 3rem;
  position: relative;
}
.timeline-item:nth-child(odd) {
  flex-direction: row;
  text-align: right;
  padding-right: calc(50% + 30px);
}
.timeline-item:nth-child(even) {
  flex-direction: row-reverse;
  text-align: left;
  padding-left: calc(50% + 30px);
}
.timeline-dot {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--gold);
  border: 3px solid var(--cream-light);
  box-shadow: 0 0 0 3px var(--gold-light);
  z-index: 2;
}
.timeline-time {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  color: var(--gold-dark);
  margin-bottom: 0.3rem;
}
.timeline-event {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.15rem;
  color: var(--text-dark);
}
.timeline-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 0.3rem;
}

/* ============================================
   6. LOCATION SECTION
   ============================================ */
.location-section {
  padding: 6rem 1.5rem;
  background: var(--cream);
  text-align: center;
}
.location-tabs {
  display: flex;
  justify-content: center;
  gap: 0;
  margin: 2rem auto;
  max-width: 400px;
  border-radius: 50px;
  overflow: hidden;
  border: 1px solid var(--gold-light);
}
.tab-btn {
  flex: 1;
  padding: 12px 24px;
  font-family: 'Lato', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold-dark);
  background: transparent;
  transition: var(--transition);
  font-weight: 700;
}
.tab-btn.active {
  background: var(--gold);
  color: var(--white);
}
.tab-btn:hover:not(.active) {
  background: rgba(201,169,110,0.1);
}

.tab-content { display: none; }
.tab-content.active { display: block; }

.location-card {
  max-width: 700px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.location-map {
  width: 100%;
  height: 300px;
  border: none;
}
.location-info {
  padding: 2rem;
  text-align: left;
}
.location-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}
.location-address {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 0.3rem;
}
.location-time {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.1rem;
  color: var(--gold-dark);
  margin-bottom: 1rem;
}
.btn-directions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 24px;
  border: 1px solid var(--gold);
  color: var(--gold-dark);
  border-radius: 50px;
  font-size: 0.85rem;
  letter-spacing: 1px;
  transition: var(--transition);
}
.btn-directions:hover {
  background: var(--gold);
  color: var(--white);
}

/* ============================================
   7. REGALO / GIFT
   ============================================ */
.gift-section {
  padding: 6rem 1.5rem;
  background: var(--cream-light);
  text-align: center;
}
.gift-card {
  max-width: 550px;
  margin: 2rem auto 0;
  background: var(--white);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(201,169,110,0.12);
}
.gift-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}
.gift-text {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.btn-show-iban {
  padding: 12px 32px;
  background: var(--gold);
  color: var(--white);
  border-radius: 50px;
  font-size: 0.9rem;
  letter-spacing: 1px;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(201,169,110,0.3);
}
.btn-show-iban:hover {
  background: var(--gold-dark);
  transform: translateY(-2px);
}

.iban-details {
  display: none;
  margin-top: 1.5rem;
  text-align: left;
  padding: 1.5rem;
  background: var(--cream-light);
  border-radius: 12px;
  border: 1px solid rgba(201,169,110,0.15);
}
.iban-details.show { display: block; animation: fadeSlideIn 0.5s ease; }

.iban-row {
  margin-bottom: 0.8rem;
}
.iban-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-muted);
  margin-bottom: 0.15rem;
}
.iban-value {
  font-family: 'Lato', sans-serif;
  font-size: 1rem;
  color: var(--text-dark);
  font-weight: 700;
  word-break: break-all;
}

.btn-copy {
  margin-top: 1rem;
  padding: 8px 20px;
  border: 1px solid var(--green-sea);
  color: var(--green-sea);
  border-radius: 50px;
  font-size: 0.8rem;
  letter-spacing: 1px;
  transition: var(--transition);
}
.btn-copy:hover {
  background: var(--green-sea);
  color: var(--white);
}
.btn-copy.copied {
  background: var(--green-sea);
  color: var(--white);
}

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

/* ============================================
   8. RSVP
   ============================================ */
.rsvp-section {
  padding: 6rem 1.5rem;
  background: var(--cream);
  text-align: center;
}
.rsvp-subtitle {
  max-width: 550px;
  margin: 0 auto 2rem;
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.8;
}
.rsvp-form-wrapper {
  max-width: 700px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(201,169,110,0.12);
  overflow: hidden;
}
.rsvp-iframe {
  width: 100%;
  height: 900px;
  border: none;
}

/* ============================================
   9. SAVE THE DATE
   ============================================ */
.save-section {
  padding: 6rem 1.5rem;
  background: linear-gradient(135deg, var(--cream) 0%, #EDE7DB 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.save-section::before {
  content: '♥';
  position: absolute;
  font-size: 15rem;
  color: rgba(201,169,110,0.04);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.save-label {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.3rem;
  color: var(--gold);
  letter-spacing: 4px;
  text-transform: uppercase;
}
.save-date {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.5rem, 6vw, 4rem);
  color: var(--text-dark);
  margin: 1rem 0;
}
.save-names {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--gold-dark);
}
.save-ornament {
  margin: 1.5rem auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}
.save-ornament span {
  display: block;
  width: 60px;
  height: 1px;
  background: var(--gold-light);
}
.save-ornament .ornament-heart {
  color: var(--gold);
  font-size: 1.2rem;
  width: auto;
  height: auto;
  background: none;
  animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  15% { transform: scale(1.15); }
  30% { transform: scale(1); }
  45% { transform: scale(1.1); }
}

/* ============================================
   9. FOOTER
   ============================================ */
.footer {
  padding: 2.5rem 1.5rem;
  background: var(--text-dark);
  text-align: center;
  color: rgba(255,255,255,0.6);
  font-size: 0.85rem;
  letter-spacing: 2px;
}
.footer-heart {
  color: var(--gold);
  display: inline-block;
  animation: heartbeat 1.5s ease-in-out infinite;
  margin: 0 0.3rem;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  .story-container {
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 500px;
  }
  .story-image img { height: 400px; }
  .story-text { text-align: center; }
  .story-quote { border-left: none; padding-left: 0; text-align: center; }

  .timeline-item:nth-child(odd),
  .timeline-item:nth-child(even) {
    flex-direction: column;
    text-align: center;
    padding: 0;
    padding-top: 2rem;
  }
  .timeline::before { left: 20px; }
  .timeline-dot { left: 20px; top: 0; }
  .timeline-item { padding-left: 50px !important; padding-right: 0 !important; text-align: left !important; }

  .countdown-box { min-width: 75px; padding: 1.2rem 1rem; }
  .countdown-number { font-size: 2.2rem; }

  .location-map { height: 220px; }
  .location-info { padding: 1.5rem; }

  .gift-card { padding: 2rem 1.5rem; }

  .seal { width: 110px; height: 110px; }
  .seal-text { font-size: 1.3rem; }
}

@media (max-width: 480px) {
  .countdown-grid { gap: 0.8rem; }
  .countdown-box { min-width: 65px; padding: 1rem 0.8rem; }
  .countdown-number { font-size: 1.8rem; }
  .hero-names { letter-spacing: 1px; }
  .location-tabs { max-width: 100%; }
}
