/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* BASE */
body {
  font-family: 'Playfair Display', serif;
  background-color: #fdfcfa;
  color: #4b4b4b;
  line-height: 1.7;
}

/* HERO */
.hero {
  min-height: 100vh;
  background:
    radial-gradient(ellipse at top left, #f8ede0 0%, transparent 55%),
    radial-gradient(ellipse at bottom right, #f5e6d8 0%, transparent 55%),
    #fdfaf6;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 8px 24px 30px;
  gap: 2px;
}

.hero-header {
  text-align: center;
  z-index: 1;
  margin-top: 10px;
  margin-bottom: 0;
}

.hero-eyebrow {
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  font-size: 0.78rem;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: #b8905a;
  margin: 0;
}

.hero-divider {
  color: #c4975a;
  font-size: 0.85rem;
  margin-top: 8px;
  letter-spacing: 0.6em;
}

.hero-footer {
  text-align: center;
  z-index: 1;
}

.hero-names {
  font-family: 'Playfair Display', serif;
  font-size: 1.9rem;
  font-weight: 400;
  color: #6b4c48;
  margin: 0;
  letter-spacing: 0.04em;
}

.hero-names em {
  font-style: italic;
  color: #c4975a;
}

.hero-date {
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  font-size: 0.82rem;
  letter-spacing: 0.3em;
  color: #b8905a;
  margin-top: 6px;
}

/* === WEDDING FRAME CON IMMAGINE === */
.wedding-frame-wrap {
  position: relative;
  width: 96vw;
  max-width: 700px;
  z-index: 2;
}

/* Wrap scritta nella hero */
.hero-writing-wrap {
  width: 84vw;
  max-width: 510px;
  z-index: 2;
  margin-top: -150px;
}

/* Foto hero (scritta) */
.hero-photo {
  width: 100%;
  display: block;
  background: transparent;
}

/* Foto coppia nella hero */
.hero-couple-wrap {
  width: 64vw;
  max-width: 262px;
  z-index: 3;
  margin-top: -118px;
  position: relative;
}

.hero-couple-photo {
  width: 100%;
  display: block;
  border-radius: 18px;
  box-shadow: 0 8px 32px rgba(107, 76, 72, 0.18);
  border: 2px solid #e8d8cc;
}

/* Data del matrimonio (sopra le card) */
.hero-wedding-date {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  max-width: 480px;
  margin-top: 24px;
  position: relative;
  z-index: 3;
}

.hero-wedding-date-rule {
  flex: 1;
  max-width: 80px;
  height: 1px;
  background: linear-gradient(to right, transparent, #d9bfa4, transparent);
}

.hero-wedding-date-text {
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  font-size: 0.88rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #b8905a;
  margin: 0;
  padding-left: 0.24em;
  white-space: nowrap;
}

/* Due box eleganti cerimonia/ricevimento nella hero */
.hero-cards {
  display: flex;
  gap: 14px;
  justify-content: center;
  width: 100%;
  max-width: 480px;
  margin-top: 26px;
}

.hero-wedding-date + .hero-cards {
  margin-top: 14px;
}

.hero-card {
  flex: 1;
  background: rgba(255, 252, 248, 0.85);
  border: 1px solid #e2cfc4;
  border-radius: 14px;
  padding: 17px 13px 16px;
  text-align: center;
  box-shadow: 0 3px 18px rgba(107, 76, 72, 0.09), inset 0 1px 0 rgba(255,255,255,0.8);
  backdrop-filter: blur(6px);
}

.hero-card-label {
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  font-size: 0.66rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #c4975a;
  display: block;
  margin-bottom: 7px;
}

.hero-card-title {
  font-family: 'Playfair Display', serif;
  font-size: 0.98rem;
  color: #6b4c48;
  font-weight: 400;
  margin: 0;
  line-height: 1.3;
  font-style: italic;
}

.hero-card-addr {
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  font-size: 0.68rem;
  color: #a98f7c;
  margin: 3px 0 0;
  letter-spacing: 0.05em;
  line-height: 1.35;
}

/* Solo la via è cliccabile: apre le mappe */
.hero-card-map {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(184, 144, 90, 0.35);
  padding-bottom: 1px;
  transition: color 0.25s ease, border-color 0.25s ease;
}

.hero-card-map:hover,
.hero-card-map:focus-visible {
  color: #b8905a;
  border-bottom-color: rgba(184, 144, 90, 0.75);
}

.hero-card-rule {
  display: block;
  width: 34px;
  height: 1px;
  background: linear-gradient(to right, transparent, #d9bfa4, transparent);
  margin: 7px auto 6px;
}

.hero-card-time {
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  font-size: 0.8rem;
  color: #b8905a;
  margin: 0;
  letter-spacing: 0.16em;
}

/* Sezione video (dopo la hero, prima di Con grande emozione) */
.video-section {
  padding-top: 0;
  display: flex;
  justify-content: center;
}

/* Contenitore video - aspect ratio 3:2 come la cornice PNG (1536x1024) */
.wf-video-container {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 2;
  background: #000;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(107, 76, 72, 0.2);
}

/* Video: contain per vedere tutto senza tagli */
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  cursor: pointer;
}

/* Cornice immagine sovrapposta - mix-blend-mode rende il bianco trasparente */
.wf-frame-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  mix-blend-mode: multiply;
  pointer-events: none;
  z-index: 3;
}

/* Play button SVG */
.hero-video-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 68px;
  height: 68px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 10;
  transition: transform 0.25s ease, opacity 0.25s ease;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 4px 14px rgba(0,0,0,0.4));
}

.hero-video-play svg {
  width: 100%;
  height: 100%;
}

.hero-video-play:hover {
  transform: translate(-50%, -50%) scale(1.12);
}

/* Bottone fullscreen */
.wf-fullscreen-btn {
  position: absolute;
  bottom: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 6px;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  transition: background 0.2s ease;
}

.wf-fullscreen-btn:hover {
  background: rgba(0, 0, 0, 0.7);
}

.wf-fullscreen-btn svg {
  width: 100%;
  height: 100%;
}

/* Mobile responsive */
@media (max-width: 480px) {
  .hero {
    padding: 6px 14px 24px;
    gap: 2px;
  }

  .hero-writing-wrap {
    width: 88vw;
    margin-top: -73px;
  }

  .hero-couple-wrap {
    width: 60vw;
    max-width: 218px;
    margin-top: -96px;
  }

  .hero-wedding-date {
    gap: 10px;
    margin-top: 14px;
  }

  .hero-wedding-date-rule {
    max-width: 48px;
  }

  .hero-wedding-date-text {
    font-size: 0.74rem;
    letter-spacing: 0.14em;
    padding-left: 0.16em;
  }

  .hero-cards {
    max-width: 360px;
    gap: 8px;
    margin-top: 20px;
  }

  .hero-wedding-date + .hero-cards {
    margin-top: 12px;
  }

  .hero-card {
    padding: 14px 10px 13px;
    border-radius: 12px;
  }

  .hero-card-label {
    font-size: 0.6rem;
    letter-spacing: 0.24em;
    margin-bottom: 6px;
  }

  .hero-card-title {
    font-size: 0.9rem;
    line-height: 1.28;
  }

  .hero-card-addr {
    font-size: 0.63rem;
  }

  .hero-card-rule {
    width: 28px;
    margin: 6px auto 5px;
  }

  .hero-card-time {
    font-size: 0.74rem;
    letter-spacing: 0.12em;
  }

  .wedding-frame-wrap {
    width: 96vw;
  }

  .hero-names {
    font-size: 1.5rem;
  }

  .hero-video-play {
    width: 56px;
    height: 56px;
  }

  .wf-fullscreen-btn {
    width: 30px;
    height: 30px;
    bottom: 8px;
    right: 8px;
  }
}

/* SEZIONI */
.section {
  max-width: 900px;
  margin: 80px auto;
  padding: 0 20px;
  text-align: center;
}

.section h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  color: #7a5c58;
  margin-bottom: 25px;
  font-style: italic;
}

/* Nomi sposi nell'intro */
.intro-names {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  color: #7a5c58;
  margin-top: 22px;
  font-style: italic;
  letter-spacing: 0.04em;
}

/* FOTO CAROUSEL */
.photo-section {
  display: flex;
  justify-content: center;
}

.photo-frame {
  position: relative;
  width: 500px;
  height: 600px;
  border: 3px solid #e5d8d3;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(122, 92, 88, 0.15);
  background: #faf6f4;
}

.carousel-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.carousel-image.active {
  opacity: 1;
}

@media (max-width: 768px) {
  .photo-frame {
    width: 90%;
    max-width: 400px;
    height: 480px;
  }
}

/* DETTAGLI EVENTO */
.details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.detail-card {
  background: #faf6f4;
  padding: 30px;
  border-radius: 20px;
  transition: transform 0.3s ease;
}

.detail-card:hover {
  transform: translateY(-5px);
}

.detail-card .icon {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 15px;
}

.detail-card h3 {
  font-family: 'Playfair Display', serif;
  color: #7a5c58;
  margin-bottom: 10px;
  font-size: 1.4rem;
}

/* IBAN */
.iban-box {
  background: #f6efec;
  padding: 30px;
  border-radius: 18px;
  margin-top: 25px;
}

.iban {
  font-family: monospace;
  font-size: 1.2rem;
  margin: 10px 0;
}

/* RSVP */
.rsvp {
  background: #faf6f4;
  padding: 60px 20px;
  border-radius: 30px;
}

.btn {
  display: inline-block;
  margin-top: 25px;
  padding: 15px 40px;
  background: #7a5c58;
  color: white;
  text-decoration: none;
  border-radius: 40px;
  font-size: 1rem;
  transition: 0.3s ease;
}

.btn:hover {
  background: #5f4744;
}

/* FOOTER */
.footer {
  text-align: center;
  padding: 60px 20px 40px;
  color: #7a5c58;
}

.footer-logo {
  display: block;
  margin: 30px auto;
  max-width: 80px;
  height: auto;
}

.footer-separator {
  width: 100%;
  margin-top: 30px;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  overflow: hidden;
}

.footer-separator img {
  height: 120px;
  width: auto;
  margin-left: -40px;
  display: block;
}

.footer-separator img:first-child {
  margin-left: -18px;
}

.signature {
  margin-top: 10px;
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
}

/* DIVIDER */
.divider {
  width: 80px;
  height: 1px;
  background: linear-gradient(to right, transparent, #e5d8d3, transparent);
  margin: 25px auto;
}

/* RSVP MODAL */
.rsvp-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(122, 92, 88, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9998;
  opacity: 0;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(5px);
  overflow-y: auto;
  padding: 20px;
}

.rsvp-modal-overlay.active {
  opacity: 1;
}

.rsvp-modal {
  background: white;
  border-radius: 25px;
  box-shadow: 0 20px 60px rgba(122, 92, 88, 0.2);
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 50px 40px;
  position: relative;
  transform: translateY(-20px);
  transition: transform 0.3s ease;
}

.rsvp-modal-overlay.active .rsvp-modal {
  transform: translateY(0);
}

.rsvp-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  font-size: 2rem;
  color: #b0a29d;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.rsvp-modal-close:hover {
  background: #faf6f4;
  color: #7a5c58;
}

.rsvp-modal-title {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  color: #7a5c58;
  text-align: center;
  margin-bottom: 15px;
}

/* FORM STYLES */
.rsvp-form {
  margin-top: 30px;
}

.form-section {
  margin-bottom: 35px;
}

.form-section-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  color: #7a5c58;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e5d8d3;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: #7a5c58;
  font-size: 0.95rem;
  font-weight: 500;
}

.form-group input[type="text"],
.form-group input[type="number"],
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e5d8d3;
  border-radius: 12px;
  font-family: 'Playfair Display', serif;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  background: #fdfcfa;
}

.form-group input[type="text"]:focus,
.form-group input[type="number"]:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #7a5c58;
  box-shadow: 0 0 0 3px rgba(122, 92, 88, 0.1);
  background: white;
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
}

/* RADIO BUTTONS */
.radio-group {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.radio-label {
  display: flex;
  align-items: center;
  cursor: pointer;
  padding: 12px 20px;
  border: 2px solid #e5d8d3;
  border-radius: 12px;
  transition: all 0.3s ease;
  background: #fdfcfa;
  flex: 1;
  min-width: 150px;
}

.radio-label:hover {
  border-color: #b0a29d;
  background: white;
}

.radio-label input[type="radio"] {
  margin-right: 10px;
  width: 18px;
  height: 18px;
  accent-color: #7a5c58;
  cursor: pointer;
}

.radio-label input[type="radio"]:checked + span {
  font-weight: 500;
  color: #7a5c58;
}

.radio-label:has(input[type="radio"]:checked) {
  border-color: #7a5c58;
  background: #faf6f4;
}

.radio-label span {
  flex: 1;
  color: #4b4b4b;
}

/* CONDITIONAL FIELDS */
.conditional-fields {
  margin-top: 20px;
  padding: 20px;
  background: #faf6f4;
  border-radius: 12px;
  border-left: 4px solid #7a5c58;
}

/* SUBMIT BUTTON */
.rsvp-submit-btn {
  width: 100%;
  padding: 16px;
  background: #7a5c58;
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 1.05rem;
  font-family: 'Playfair Display', serif;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: 1px;
  margin-top: 10px;
}

.rsvp-submit-btn:hover {
  background: #5f4744;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(122, 92, 88, 0.3);
}

.rsvp-submit-btn:active {
  transform: translateY(0);
}

.form-message {
  margin-top: 20px;
  padding: 15px;
  border-radius: 12px;
  text-align: center;
  display: none;
  font-weight: 500;
}

/* RESPONSIVE */
@media (max-width: 600px) {
  .hero h1 {
    font-size: 2.8rem;
  }

  .photo-frame {
    width: 240px;
    height: 320px;
  }

  .password-card {
    padding: 40px 30px;
  }

  .password-title {
    font-size: 2.5rem;
  }

  .rsvp-modal {
    padding: 40px 25px;
    max-height: 95vh;
  }

  .rsvp-modal-title {
    font-size: 1.6rem;
  }

  .form-section-title {
    font-size: 1.1rem;
  }

  .radio-group {
    flex-direction: column;
  }

  .radio-label {
    min-width: 100%;
  }
}
