/* ==========================================================================
   San Valentino Sara — Styles specifici pagina
   Estende il design system, non lo duplica
   ========================================================================== */

/* ===== HERO con immagine di sfondo ===== */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: none;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(var(--color-primary-rgb), 0.88) 0%,
    rgba(var(--color-accent-rgb), 0.78) 50%,
    rgba(var(--color-gold-rgb), 0.65) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 2;
}

/* Navbar heart icon */
.navbar__heart-icon {
  width: 20px;
  height: 20px;
  display: inline-block;
  vertical-align: middle;
  margin-right: var(--space-xs);
}

/* ===== FLOATING HEARTS — Animazioni cuori decorativi ===== */
.floating-heart {
  position: absolute;
  color: rgba(255, 255, 255, 0.08);
  animation: float-heart linear infinite;
  z-index: 1;
}

.floating-heart svg {
  width: 100%;
  height: 100%;
}

.floating-heart--1 {
  width: 30px;
  height: 30px;
  top: 15%;
  left: 8%;
  animation-duration: 8s;
  animation-delay: 0s;
}

.floating-heart--2 {
  width: 18px;
  height: 18px;
  top: 25%;
  right: 12%;
  animation-duration: 10s;
  animation-delay: 1s;
}

.floating-heart--3 {
  width: 24px;
  height: 24px;
  top: 60%;
  left: 15%;
  animation-duration: 12s;
  animation-delay: 2s;
}

.floating-heart--4 {
  width: 14px;
  height: 14px;
  top: 40%;
  right: 20%;
  animation-duration: 9s;
  animation-delay: 3s;
}

.floating-heart--5 {
  width: 20px;
  height: 20px;
  top: 70%;
  right: 8%;
  animation-duration: 11s;
  animation-delay: 0.5s;
}

@keyframes float-heart {
  0% {
    transform: translateY(0) rotate(0deg) scale(1);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  50% {
    transform: translateY(-30px) rotate(15deg) scale(1.1);
    opacity: 0.8;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(0) rotate(-10deg) scale(1);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .floating-heart {
    animation: none;
    opacity: 0.08;
  }
}

/* ===== DICHIARAZIONE — Stili extra ===== */
.declaration {
  background: var(--gradient-subtle);
}

/* ===== MOMENTI — Sezione con immagine di sfondo ===== */
.moments {
  position: relative;
  overflow: hidden;
  background: none;
}

.moments__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.moments__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(45, 10, 30, 0.92) 0%,
    rgba(59, 16, 41, 0.90) 50%,
    rgba(26, 5, 16, 0.95) 100%
  );
}

.moments .container {
  position: relative;
  z-index: 2;
}

.moments .section-title::after {
  background: var(--color-gold-light);
}

/* ===== PROMESSA — Stili extra ===== */
.promise__emphasis {
  font-family: var(--font-heading);
  font-size: var(--font-size-3xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-primary);
  margin-block: var(--space-xl);
  font-style: italic;
}

.promise__cta {
  text-align: center;
  margin-top: var(--space-2xl);
}

/* ===== MOBILE MENU — Stili extra ===== */
.mobile-menu__close {
  position: absolute;
  top: var(--space-lg);
  right: var(--space-lg);
  color: var(--color-text-inverse);
  padding: var(--space-sm);
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Hamburger → X animazione */
.navbar__toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

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

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

/* ===== FOOTER — Cuore pulsante ===== */
.footer__heart {
  margin-top: var(--space-lg);
  display: flex;
  justify-content: center;
  animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  14% { transform: scale(1.2); }
  28% { transform: scale(1); }
  42% { transform: scale(1.15); }
  56% { transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .footer__heart {
    animation: none;
  }
}

/* ===== SEZIONE title su sfondo scuro ===== */
.section--dark .section-title::after {
  background: linear-gradient(135deg, var(--color-gold-light), var(--color-secondary));
}

/* ===== SPARKLE / PETALI DORATI decorativi ===== */
.section--decorated::before {
  height: 80px;
}

/* ===== RESPONSIVE EXTRA ===== */
@media (max-width: 767px) {
  .hero__name {
    font-size: clamp(3rem, 2rem + 6vw, 5rem);
  }

  .hero__headline {
    font-size: var(--font-size-2xl);
  }

  .hero__subtitle {
    font-size: var(--font-size-base);
  }

  .scroll-cta {
    bottom: var(--space-lg);
  }

  .declaration__headline {
    font-size: var(--font-size-3xl);
  }

  .promise__emphasis {
    font-size: var(--font-size-2xl);
  }

  .feature-card {
    padding: var(--space-lg);
  }
}

@media (min-width: 1024px) {
  .hero__content {
    max-width: 800px;
  }

  .floating-heart--1 { width: 40px; height: 40px; }
  .floating-heart--2 { width: 24px; height: 24px; }
  .floating-heart--3 { width: 32px; height: 32px; }
  .floating-heart--5 { width: 28px; height: 28px; }
}
