/* ============================================================
   ALESSIO & EVA — Sito matrimonio
   Tema: Piante aromatiche, rustico-bohémien
   Palette: bianco e verde
   ============================================================ */

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Lato', sans-serif;
  font-weight: 300;
  color: #1a3a26;
  background-color: #f4f8f0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cg fill='none' stroke='%234a7c59' stroke-width='0.6' opacity='0.13'%3E%3Cellipse cx='30' cy='30' rx='18' ry='10' transform='rotate(-30,30,30)'/%3E%3Cellipse cx='170' cy='50' rx='15' ry='8' transform='rotate(20,170,50)'/%3E%3Cellipse cx='80' cy='160' rx='20' ry='11' transform='rotate(-15,80,160)'/%3E%3Cellipse cx='150' cy='140' rx='16' ry='9' transform='rotate(35,150,140)'/%3E%3Cellipse cx='100' cy='80' rx='14' ry='7' transform='rotate(-45,100,80)'/%3E%3Cline x1='30' y1='40' x2='30' y2='70'/%3E%3Cline x1='170' y1='58' x2='155' y2='85'/%3E%3Cline x1='80' y1='171' x2='80' y2='195'/%3E%3Cline x1='150' y1='149' x2='160' y2='175'/%3E%3Cline x1='100' y1='87' x2='95' y2='115'/%3E%3Ccircle cx='55' cy='110' r='3'/%3E%3Ccircle cx='57' cy='100' r='3'/%3E%3Ccircle cx='53' cy='90' r='4'/%3E%3Cline x1='55' y1='113' x2='55' y2='140'/%3E%3Ccircle cx='130' cy='20' r='2.5'/%3E%3Ccircle cx='132' cy='12' r='2.5'/%3E%3Ccircle cx='131' cy='4' r='3'/%3E%3Cline x1='131' y1='22' x2='131' y2='45'/%3E%3C/g%3E%3C/svg%3E");
  min-height: 100vh;
  overflow-x: hidden;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 580px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 2rem 3rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-color: #e8f0e2;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cg fill='none' stroke='%234a7c59' stroke-width='0.8' opacity='0.18'%3E%3Cellipse cx='30' cy='30' rx='18' ry='10' transform='rotate(-30,30,30)'/%3E%3Cellipse cx='170' cy='50' rx='15' ry='8' transform='rotate(20,170,50)'/%3E%3Cellipse cx='80' cy='160' rx='20' ry='11' transform='rotate(-15,80,160)'/%3E%3Cellipse cx='150' cy='140' rx='16' ry='9' transform='rotate(35,150,140)'/%3E%3Cellipse cx='100' cy='80' rx='14' ry='7' transform='rotate(-45,100,80)'/%3E%3Cline x1='30' y1='40' x2='30' y2='70'/%3E%3Cline x1='170' y1='58' x2='155' y2='85'/%3E%3Cline x1='80' y1='171' x2='80' y2='195'/%3E%3Cline x1='150' y1='149' x2='160' y2='175'/%3E%3Cline x1='100' y1='87' x2='95' y2='115'/%3E%3Ccircle cx='55' cy='110' r='3'/%3E%3Ccircle cx='57' cy='100' r='3'/%3E%3Ccircle cx='53' cy='90' r='4'/%3E%3Cline x1='55' y1='113' x2='55' y2='140'/%3E%3Ccircle cx='130' cy='20' r='2.5'/%3E%3Ccircle cx='132' cy='12' r='2.5'/%3E%3Ccircle cx='131' cy='4' r='3'/%3E%3Cline x1='131' y1='22' x2='131' y2='45'/%3E%3C/g%3E%3C/svg%3E");
  z-index: 0;
}

.hero-botanicals {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.hero-content { position: relative; z-index: 2; }

.eyebrow {
  font-family: 'Lato', sans-serif;
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #3d6b4a;
  margin-bottom: 1.4rem;
}

.names {
  font-family: 'Playfair Display', serif;
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 400;
  color: #1a3a26;
  line-height: 1.05;
}

.ampersand {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.2rem, 6vw, 4.2rem);
  font-style: italic;
  color: #3d6b4a;
  display: block;
  margin: 0.12em 0;
}

.date-line {
  margin-top: 1.4rem;
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #3d6b4a;
}

.sprig-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: center;
  margin-top: 1.8rem;
  opacity: 0.65;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #3d6b4a;
}

/* ============================================================
   COUNTDOWN
   ============================================================ */
.countdown-bar {
  background: #ffffff;
  border-bottom: 1px solid #c5dbb5;
  padding: 1.3rem 2rem;
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.cd-item { text-align: center; }

.cd-num {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  font-weight: 400;
  color: #1a3a26;
  line-height: 1;
}

.cd-label {
  display: block;
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #6b9e7a;
  margin-top: 5px;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav-pills {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  padding: 1.4rem 1rem;
  flex-wrap: wrap;
  background: #f4f8f0;
  border-bottom: 1px solid #c5dbb5;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-pill {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.5rem 1.3rem;
  border-radius: 20px;
  border: 1px solid #6b9e7a;
  background: transparent;
  color: #3d6b4a;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  font-family: 'Lato', sans-serif;
  font-weight: 400;
}

.nav-pill:hover,
.nav-pill.active {
  background: #1a3a26;
  color: #f0f7ec;
  border-color: #1a3a26;
}

/* ============================================================
   SECTIONS
   ============================================================ */
.sections { padding: 0 1.5rem 4rem; }

.section {
  display: none;
  max-width: 820px;
  margin: 2.5rem auto 0;
  animation: fadeUp 0.35s ease;
}

.section.active { display: block; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-style: italic;
  color: #1a3a26;
  text-align: center;
  margin-bottom: 0.4rem;
}

.section-sub {
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #6b9e7a;
  margin-bottom: 2.2rem;
}

/* ============================================================
   INFO
   ============================================================ */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1.2rem;
}

.info-card {
  background: #ffffff;
  border: 1px solid #c5dbb5;
  border-radius: 14px;
  padding: 1.6rem 1.3rem;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}

.info-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(26,58,38,0.08);
}

.info-icon { font-size: 26px; margin-bottom: 0.9rem; }

.info-label {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #6b9e7a;
  margin-bottom: 7px;
}

.info-value {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  color: #1a3a26;
  line-height: 1.4;
}

.info-detail {
  font-size: 12px;
  color: #3d6b4a;
  margin-top: 5px;
  line-height: 1.6;
}

/* ============================================================
   GALLERY
   ============================================================ */
.gallery-grid {
  column-count: 3;
  column-gap: 12px;
}

@media (max-width: 680px) { .gallery-grid { column-count: 2; } }
@media (max-width: 400px) { .gallery-grid { column-count: 1; } }

.gallery-item {
  break-inside: avoid;
  margin-bottom: 12px;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
  border-radius: 10px;
}

.gallery-item:hover img { transform: scale(1.03); }

.gallery-item::after {
  content: attr(data-label);
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(26,58,38,0.75));
  color: #f0f7ec;
  font-size: 12px;
  letter-spacing: 0.08em;
  padding: 1.5rem 0.8rem 0.7rem;
  opacity: 0;
  transition: opacity 0.25s;
  border-radius: 0 0 10px 10px;
}

.gallery-item:hover::after { opacity: 1; }

.gallery-placeholder { cursor: default; }
.gallery-placeholder:hover img, .gallery-placeholder:hover { transform: none; }
.gallery-placeholder::after { display: none; }

.ph-inner {
  background: #e8f0e2;
  border: 1.5px dashed #a8cdb8;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1rem;
  gap: 0.5rem;
  min-height: 140px;
}

.gallery-placeholder:nth-child(3n+1) .ph-inner { min-height: 160px; }
.gallery-placeholder:nth-child(3n+2) .ph-inner { min-height: 200px; }
.gallery-placeholder:nth-child(3n)   .ph-inner { min-height: 140px; }

.ph-icon { font-size: 22px; }
.ph-text { font-size: 11px; color: #6b9e7a; text-align: center; letter-spacing: 0.05em; }

.gallery-note {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 13px;
  color: #6b9e7a;
  line-height: 1.8;
}

.gallery-share {
  text-align: center;
  margin-top: 2rem;
  padding: 1.5rem;
  background: #ffffff;
  border: 1px solid #c5dbb5;
  border-radius: 14px;
}

.gallery-share-text {
  font-size: 14px;
  color: #3d6b4a;
  margin-bottom: 1rem;
}

.gallery-share-btn {
  display: inline-block;
  padding: 0.6rem 1.6rem;
  background: #1a3a26;
  color: #f0f7ec;
  border-radius: 20px;
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.2s;
}

.gallery-share-btn:hover { background: #0d2016; }
/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10, 30, 16, 0.92);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.lightbox.open { display: flex; }

.lightbox-inner {
  max-width: 90vw;
  max-height: 90vh;
  text-align: center;
}

.lightbox-img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: 8px;
  display: block;
  margin: 0 auto;
}

.lightbox-caption {
  color: #a8cdb8;
  font-size: 13px;
  margin-top: 0.8rem;
  letter-spacing: 0.1em;
}

.lightbox-close {
  position: absolute;
  top: 1.2rem; right: 1.5rem;
  background: none;
  border: none;
  color: #a8cdb8;
  font-size: 1.6rem;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s;
}
.lightbox-close:hover { color: #fff; }

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: #a8cdb8;
  font-size: 1.4rem;
  width: 44px; height: 44px;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s;
  display: flex; align-items: center; justify-content: center;
}
.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }
.lightbox-prev:hover, .lightbox-next:hover { background: rgba(255,255,255,0.2); }

/* ============================================================
   RSVP
   ============================================================ */
.rsvp-form {
  max-width: 500px;
  margin: 0 auto;
}

.form-row { margin-bottom: 1.3rem; }

.form-label {
  display: block;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #3d6b4a;
  margin-bottom: 7px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  background: #ffffff;
  border: 1px solid #a8cdb8;
  border-radius: 8px;
  padding: 0.65rem 1rem;
  font-family: 'Lato', sans-serif;
  font-size: 14px;
  font-weight: 300;
  color: #1a3a26;
  outline: none;
  transition: border-color 0.2s;
  appearance: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: #3d6b4a;
  box-shadow: 0 0 0 3px rgba(61,107,74,0.1);
}

.form-textarea {
  resize: vertical;
  min-height: 90px;
  line-height: 1.6;
}

.herb-radios {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 6px;
}

.herb-radio { display: none; }

.herb-label {
  font-size: 12px;
  padding: 0.4rem 1rem;
  border: 1px solid #a8cdb8;
  border-radius: 20px;
  cursor: pointer;
  background: transparent;
  color: #3d6b4a;
  transition: all 0.15s;
  user-select: none;
  letter-spacing: 0.05em;
}

.herb-radio:checked + .herb-label {
  background: #1a3a26;
  color: #f0f7ec;
  border-color: #1a3a26;
}

.herb-check { display: none; }

.herb-check:checked + .herb-label {
  background: #1a3a26;
  color: #f0f7ec;
  border-color: #1a3a26;
}

.submit-btn {
  width: 100%;
  padding: 0.9rem;
  background: #1a3a26;
  color: #f0f7ec;
  border: none;
  border-radius: 8px;
  font-family: 'Lato', sans-serif;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  margin-top: 0.6rem;
  transition: background 0.2s, transform 0.15s;
}

.submit-btn:hover  { background: #0d2016; }
.submit-btn:active { transform: scale(0.99); }

.rsvp-success {
  display: none;
  text-align: center;
  padding: 2.5rem 2rem;
  background: #e8f0e2;
  border-radius: 14px;
  max-width: 500px;
  margin: 0 auto;
}

.rsvp-success .big {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  color: #1a3a26;
  margin-bottom: 0.6rem;
}

.rsvp-success .small {
  font-size: 14px;
  color: #3d6b4a;
  line-height: 1.8;
}

/* ============================================================
   OSPITE
   ============================================================ */
.ospite-card {
  background: #ffffff;
  border: 1px solid #c5dbb5;
  border-radius: 12px;
  padding: 1.4rem 1.2rem;
  margin-bottom: 1.2rem;
}

.ospite-titolo {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  color: #1a3a26;
  margin-bottom: 1rem;
  font-style: italic;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  text-align: center;
  padding: 1.8rem;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: #6b9e7a;
  border-top: 1px solid #c5dbb5;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
/* @media (max-width: 600px) {
  .countdown-bar { gap: 1.5rem; }
  .cd-num { font-size: 1.7rem; }
  .info-grid { grid-template-columns: 1fr 1fr; }
  .lightbox-prev { left: 0.3rem; }
  .lightbox-next { right: 0.3rem; }
}

@media (max-width: 380px) {
  .info-grid { grid-template-columns: 1fr; }
} */

@media (max-width: 600px) {
 
  /* Hero */
  .hero { min-height: 420px; padding: 3rem 1.2rem 2rem; }
  .eyebrow { font-size: 10px; letter-spacing: 0.18em; margin-bottom: 1rem; }
  .date-line { font-size: 11px; }
  .sprig-divider { gap: 0.5rem; font-size: 9px; }
  .sprig-divider svg { width: 40px; }
 
  /* Countdown */
  .countdown-bar { gap: 1.2rem; padding: 1rem 1rem; }
  .cd-num { font-size: 1.6rem; }
  .cd-label { font-size: 8px; }
 
  /* Nav — bottoni più compatti */
  .nav-pills { gap: 0.4rem; padding: 0.8rem 0.6rem; }
  .nav-pill {
    font-size: 10px;
    padding: 0.4rem 0.8rem;
    letter-spacing: 0.1em;
  }
 
  /* Sezioni */
  .sections { padding: 0 0.8rem 3rem; }
  .section { margin-top: 1.8rem; }
  .section-title { font-size: 1.5rem; }
  .section-sub { font-size: 10px; margin-bottom: 1.5rem; }
 
  /* Info cards — una per riga su mobile piccolo */
  .info-grid { grid-template-columns: 1fr; gap: 0.8rem; }
  .info-card { padding: 1.2rem 1rem; }
 
  /* Gallery */
  .gallery-grid { column-count: 2; column-gap: 8px; }
  .gallery-item { margin-bottom: 8px; }
 
  /* RSVP form */
  .rsvp-form { max-width: 100%; }
  .form-input, .form-select, .form-textarea {
    font-size: 16px; /* evita lo zoom automatico su iOS */
    padding: 0.7rem 0.9rem;
  }
  .herb-label { font-size: 13px; padding: 0.5rem 0.9rem; }
  .submit-btn { font-size: 13px; padding: 1rem; }
 
  /* Ospiti */
  .ospite-card { padding: 1rem 0.9rem; }
 
  /* Lightbox */
  .lightbox-prev { left: 0.3rem; }
  .lightbox-next { right: 0.3rem; }
  .lightbox-close { top: 0.8rem; right: 0.8rem; font-size: 1.4rem; }
 
  /* Lista nozze IBAN — evita overflow */
  .info-value[style*="monospace"] {
    font-size: 0.8rem !important;
    letter-spacing: 0.05em !important;
    word-break: break-all;
  }
}
 
/* ============================================================
   RESPONSIVE — MOBILE PICCOLO (max 380px)
   ============================================================ */
@media (max-width: 380px) {
  .gallery-grid { column-count: 1; }
  .nav-pill { font-size: 9px; padding: 0.35rem 0.65rem; }
  .cd-num { font-size: 1.4rem; }
  .countdown-bar { gap: 0.8rem; }
}