/* ==========================================================================
   HOME — Carattere e modernità: Outfit + Great Vibes, tipografia forte, dettagli puliti
   ========================================================================== */

.page-home {
  --gold: #b8860b;
  --gold-soft: #d4af37;
  --ink: #0f0f0f;
  --ink-soft: #3d3d3d;
  --cream: #faf9f6;
  --white: #fff;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --font-display: 'Outfit', system-ui, sans-serif;
}

.page-home .home {
  background: var(--cream);
  min-height: 100vh;
}

.page-home .home > section {
  position: relative;
  z-index: 1;
}

/* ---------- HERO (stile “You're invited” / “We Do”) ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 5rem 1.25rem 4rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: -20%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  animation: heroZoom 22s var(--ease) forwards;
  will-change: transform;
}

@keyframes heroZoom {
  from { transform: scale(1.12); }
  to { transform: scale(0.92); }
}

/* Overlay hero: 69% opacità (99% − 30%) – foto più visibile */
.hero .hero-overlay,
.page-home .hero .hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.69);
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 100% 80% at 50% 100%, rgba(201,162,39,0.1) 0%, transparent 60%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: min(42rem, 92vw);
  padding: 2.25rem 2rem;
  box-sizing: border-box;
}

.hero-content::before {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.25);
  pointer-events: none;
  border-radius: 2px;
}

.hero-content .hero-badge { animation: heroStagger 0.8s var(--ease-out) 0.1s forwards; opacity: 0; transform: translateY(16px); }
.hero-content .hero-headline { animation: heroStagger 0.8s var(--ease-out) 0.25s forwards; opacity: 0; transform: translateY(16px); }
.hero-content .hero-names { animation: heroStagger 0.8s var(--ease-out) 0.4s forwards; opacity: 0; transform: translateY(16px); }
.hero-content .hero-divider { animation: heroStagger 0.8s var(--ease-out) 0.5s forwards; opacity: 0; transform: translateY(16px); }
.hero-content .hero-date-line { animation: heroStagger 0.8s var(--ease-out) 0.6s forwards; opacity: 0; transform: translateY(16px); }

@keyframes heroStagger {
  to { opacity: 1; transform: translateY(0); }
}

.hero-badge {
  font-family: var(--font-display);
  font-size: clamp(0.7rem, 1.6vw, 0.85rem);
  font-weight: 600;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
  margin: 0 0 0.9rem;
  max-width: 100%;
}

.hero-headline {
  font-family: 'Great Vibes', cursive;
  font-size: clamp(3rem, 14vw, 5.5rem);
  font-weight: 400;
  color: #fff;
  margin: 0 0 0.5rem;
  text-shadow: 0 2px 24px rgba(0,0,0,0.5), 0 0 40px rgba(0,0,0,0.25);
  line-height: 1;
  letter-spacing: 0.02em;
  max-width: 100%;
}

.hero-names {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 4.2vw, 2.2rem);
  font-weight: 300;
  letter-spacing: 0.22em;
  margin: 0 0 0.85rem;
  color: #fff;
  text-transform: uppercase;
  text-shadow: 0 1px 20px rgba(0,0,0,0.4), 0 2px 10px rgba(0,0,0,0.25);
  white-space: nowrap;
  max-width: 100%;
}

.hero-amp {
  font-family: 'Great Vibes', cursive;
  font-weight: 400;
  font-size: 1.4em;
  color: var(--gold-soft);
  display: inline-block;
  margin: 0 0.08em;
  letter-spacing: 0;
}

.hero-divider {
  width: 60px;
  height: 1px;
  background: rgba(255, 255, 255, 0.5);
  margin: 0 auto 0.9rem;
}

.hero-date-line {
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 1px 8px rgba(0,0,0,0.3);
}

.hero-date-line {
  font-family: var(--font-display);
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  font-weight: 500;
  margin: 0;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  max-width: 100%;
}

@media (max-width: 560px) {
  .hero-names { white-space: normal; letter-spacing: 0.12em; }
}

@media (max-width: 420px) {
  .hero-names { font-size: clamp(1.25rem, 5vw, 1.6rem); letter-spacing: 0.1em; }
  .hero-headline { font-size: clamp(2.6rem, 16vw, 4rem); }
}

.hero-scroll {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.hero-scroll i {
  display: block;
  position: relative;
  width: 24px;
  height: 38px;
  margin: 0 auto;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 12px;
  animation: scrollPulse 2s var(--ease) infinite;
}

.hero-scroll i::before {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 2px;
  animation: scrollDot 2s var(--ease) infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

@keyframes scrollDot {
  0% { opacity: 0; transform: translateX(-50%) translateY(0); }
  40% { opacity: 1; transform: translateX(-50%) translateY(10px); }
  80%, 100% { opacity: 0; transform: translateX(-50%) translateY(10px); }
}

/* ---------- Gli sposi (stile Vultur: due colonne) ---------- */
.block-sposi {
  padding: clamp(3.5rem, 8vw, 5rem) 1.5rem;
  background: var(--white);
  border-top: 1px solid rgba(15, 15, 15, 0.06);
}

.sposi-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  max-width: 56rem;
  margin: 0 auto;
}

@media (max-width: 640px) {
  .sposi-layout { grid-template-columns: 1fr; }
}

.sposi-card {
  text-align: center;
  padding: 0 0.5rem;
}

.sposi-name {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 4vw, 2rem);
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.sposi-divider {
  width: 48px;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--gold) 50%, transparent 100%);
  margin: 0 auto 1.25rem;
  border-radius: 1px;
  opacity: 0.9;
}

.sposi-bio {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink-soft);
  margin: 0;
}

/* ---------- COUNTDOWN: moderno, senza sfondo bianco, scritte oro ---------- */
.countdown-section {
  padding: clamp(3.5rem, 9vw, 5rem) 1.5rem;
  background: transparent;
}

.countdown-inner {
  max-width: 48rem;
  margin: 0 auto;
  text-align: center;
  min-width: 0;
}

.countdown-headline {
  font-family: var(--font-display);
  font-size: clamp(0.85rem, 2vw, 0.95rem);
  font-weight: 600;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 1.5rem;
}

.countdown-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: clamp(1.5rem, 4vw, 2.5rem) clamp(2rem, 5vw, 3rem);
}

.countdown-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 4rem;
  padding: 0.5rem 0;
  background: transparent;
  border: none;
  transition: transform 0.25s var(--ease);
}
.countdown-box:hover {
  transform: translateY(-2px);
}

.countdown-box .countdown-num {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(2.7rem, 6.5vw, 4rem);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.1;
  letter-spacing: 0.02em;
  transition: color 0.25s var(--ease);
}
.countdown-box:hover .countdown-num {
  color: var(--ink-soft);
}

.countdown-label {
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
  margin-top: 0.5rem;
}

.countdown-fallback {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

/* ---------- BLOCK generico ---------- */
.block {
  padding: clamp(4rem, 10vw, 6.5rem) 1.5rem;
}

.block-inner {
  max-width: 72rem;
  margin: 0 auto;
}

.block-narrow {
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* Titoli in script (stile mockup) */
.section-script {
  font-family: 'Great Vibes', cursive;
  font-size: clamp(2.5rem, 5.5vw, 3.4rem);
  color: var(--ink);
  margin: 0 0 1.5rem;
  font-weight: 400;
}

.section-script-gold {
  color: var(--gold);
}

/* Titolo sezione: moderno, carattere */
.section-title {
  font-family: var(--font-display);
  font-size: clamp(0.9rem, 2.2vw, 1rem);
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-align: center;
  margin: 0 0 1.5rem;
  position: relative;
}

.section-title::before {
  content: '';
  display: block;
  width: 32px;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--gold) 50%, transparent 100%);
  margin: 0 auto 0.75rem;
  border-radius: 1px;
}

/* Titolo sezione in script (Great Vibes) – posizioni strategiche, stesso stile “Confirmă prezența” */
.section-title-script {
  font-family: 'Great Vibes', cursive !important;
  font-size: clamp(2.3rem, 5.2vw, 3rem) !important;
  font-weight: 400 !important;
  letter-spacing: 0.02em !important;
  text-transform: none !important;
  color: var(--ink) !important;
}
.section-title-script::before {
  margin: 0 auto 0.5rem;
}

/* Countdown headline in script: linea oro sopra + titolo nero */
.countdown-headline.section-title-script {
  margin: 0 0 1.5rem;
  color: var(--ink) !important;
}
.countdown-headline.section-title-script::before {
  content: '';
  display: block;
  width: 32px;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--gold) 50%, transparent 100%);
  margin: 0 auto 0.5rem;
  border-radius: 1px;
}

/* ---------- Wedding gallery: specchio circolare, griglia fissa x*x, nessuno spazio bianco ---------- */
.gallery-hint {
  text-align: center;
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin: -0.5rem 0 1.5rem;
}

.gallery-mirror-wrap {
  display: flex;
  justify-content: center;
  margin: 0 auto;
  max-width: 56rem;
  width: 100%;
  padding: 0 1rem;
  box-sizing: border-box;
}

/* Specchio a cerchio: responsive piccolo/tablet; su desktop (PC) più grande */
.gallery-mirror {
  width: min(92vmin, 560px);
  height: min(92vmin, 560px);
  max-width: 100%;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  border: 6px solid #b8860b;
  box-shadow:
    0 0 0 2px #d4af37,
    0 0 0 8px #b8860b,
    inset 0 0 80px rgba(0, 0, 0, 0.25),
    0 20px 50px rgba(0, 0, 0, 0.25);
  background: var(--ink);
  box-sizing: border-box;
}

@media (min-width: 769px) {
  .gallery-mirror {
    width: min(78vmin, 720px);
    height: min(78vmin, 720px);
  }
}

/* Base: copre tutto il cerchio, mai spazi neri */
.gallery-mirror-base {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.gallery-mirror-base .gallery-mirror-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

/* Tile sovrapposte: dimensioni e posizioni fisse (layout a copertura piena), sfondo opaco così non si vede mai lo sfondo */
.gallery-mirror-tile {
  position: absolute;
  overflow: hidden;
  border-radius: 2px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
  background: var(--ink);
  transition: opacity 0.6s var(--ease);
}
.gallery-mirror-tile .gallery-mirror-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.gallery-mirror-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.gallery-mirror-img.next {
  opacity: 0;
  transform: scale(0.7);
  z-index: 1;
}

.gallery-mirror-img.next.zoom-in {
  animation: mirrorZoomIn 4.5s var(--ease-out) forwards;
}

.gallery-mirror-img.current.zoom-out {
  animation: mirrorZoomOut 4s var(--ease-out) forwards;
}

/* Dimensioni zoom variabili via CSS custom properties (impostate da JS) */
@keyframes mirrorZoomIn {
  from {
    opacity: 0;
    transform: scale(var(--zoom-in-start, 0.7));
  }
  to {
    opacity: 1;
    transform: scale(var(--zoom-in-end, 1.08));
  }
}

@keyframes mirrorZoomOut {
  from {
    opacity: 1;
    transform: scale(1);
  }
  to {
    opacity: 0;
    transform: scale(var(--zoom-out-end, 1.25));
  }
}

/* Ogni 60s: nascondi il mosaico per 4s e si vede solo la foto di sfondo a pieno cerchio */
.gallery-mirror.gallery-reveal-background .gallery-mirror-tile {
  opacity: 0;
  pointer-events: none;
}

/* ---------- Wedding information: card stile Vultur ---------- */
.info-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 36rem;
  margin: 0 auto;
}

.info-card {
  padding: 0;
  background: var(--white);
  border: 1px solid rgba(15, 15, 15, 0.06);
  border-radius: 2px;
  text-align: center;
  border-top: 2px solid rgba(184, 134, 11, 0.2);
  transition: box-shadow 0.3s var(--ease), border-top-color 0.3s var(--ease);
  overflow: hidden;
}
.info-card:hover {
  border-top-color: var(--gold);
  box-shadow: 0 8px 24px rgba(184, 134, 11, 0.06);
}

.info-card-img {
  width: 100%;
  height: 200px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  flex-shrink: 0;
}

.info-card .info-card-title,
.info-card .info-card-desc,
.info-card .info-card-addr,
.info-card .info-card-actions {
  padding-left: 2rem;
  padding-right: 2rem;
}
.info-card .info-card-title {
  padding-top: 2rem;
}
.info-card .info-card-actions {
  padding-bottom: 2rem;
}

.info-card-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 0.75rem;
}

.info-card-desc {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink-soft);
  margin: 0 0 0.5rem;
}

.info-card-addr {
  font-size: 0.95rem;
  color: var(--ink-soft);
  margin: 0 0 1rem;
}

.info-card-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1rem;
}

.btn-primary {
  font-family: var(--font-display);
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  background: var(--ink);
  color: var(--white);
  text-decoration: none;
  border-radius: 2px;
  transition: filter 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.btn-primary:hover {
  filter: brightness(1.15);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(184, 134, 11, 0.2);
}

.btn-secondary {
  font-family: var(--font-display);
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  background: transparent;
  color: var(--ink);
  text-decoration: none;
  border: 1px solid rgba(15, 15, 15, 0.25);
  border-radius: 2px;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.btn-secondary:hover {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
  box-shadow: 0 4px 16px rgba(184, 134, 11, 0.12);
}

/* ---------- Storia: immagine con effetto torn paper (legacy, ora usiamo gallery) ---------- */
.story-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 4rem);
  align-items: center;
}

@media (max-width: 720px) {
  .story-layout { grid-template-columns: 1fr; }
}

.story-media {
  overflow: visible;
}

.story-torn {
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.08));
}

.story-torn img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 4/3;
  object-fit: cover;
  clip-path: polygon(
    0 0, 100% 0, 100% 92%,
    98% 95%, 96% 93%, 94% 97%, 90% 94%, 88% 99%, 85% 96%, 82% 100%,
    78% 97%, 75% 100%, 70% 96%, 65% 100%, 60% 95%, 55% 100%, 50% 94%, 45% 100%, 40% 96%, 35% 100%, 30% 95%, 25% 100%, 20% 94%, 15% 100%, 10% 96%, 5% 100%, 2% 95%, 0 98%
  );
}

@media (max-width: 720px) {
  .story-torn img {
    clip-path: polygon(
      0 0, 100% 0, 100% 96%,
      98% 98%, 95% 95%, 90% 99%, 85% 96%, 80% 100%, 75% 95%, 70% 100%, 65% 96%, 60% 100%, 50% 95%, 40% 100%, 35% 96%, 30% 100%, 25% 95%, 20% 100%, 15% 96%, 10% 100%, 5% 95%, 0 98%
    );
  }
}

.story-content .section-script { margin-bottom: 0.75rem; }

.story-lead {
  font-size: 1rem;
  color: var(--ink-soft);
  margin: 0 0 1rem;
}

.story-content p {
  margin: 0 0 0.9rem;
  color: var(--ink-soft);
  font-size: 1.05rem;
  line-height: 1.7;
}

.story-sig {
  margin-top: 1.25rem !important;
  color: var(--ink);
  font-style: italic;
  font-family: 'Cormorant Garamond', Georgia, serif;
}

/* ---------- Il giorno: timeline con icone ---------- */
.block-day {
  background: linear-gradient(180deg, #f5f2ed 0%, var(--cream) 100%);
}

.day-timeline {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
  min-width: 0;
}

.day-timeline li {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(201, 162, 39, 0.2);
  color: var(--ink-soft);
  font-size: 1.05rem;
  min-width: 0;
}

.day-timeline li:last-child { border-bottom: none; }

.day-time {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--ink);
  min-width: 3.5rem;
}

.day-icon {
  font-size: 1.4rem;
  line-height: 1;
}

.day-label {
  flex: 1;
  min-width: 0;
}

/* ---------- Il luogo: immagine torn paper ---------- */
.place-layout {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(2.5rem, 6vw, 4rem);
  align-items: center;
}

@media (max-width: 720px) {
  .place-layout { grid-template-columns: 1fr; }
}

.place-media {
  overflow: visible;
}

.place-torn {
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.06));
}

.place-torn img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16/10;
  object-fit: cover;
  clip-path: polygon(
    0 2%, 3% 0, 8% 3%, 12% 0, 18% 2%, 22% 0, 28% 3%, 35% 0, 42% 2%, 50% 0, 58% 3%, 65% 0, 72% 2%, 78% 0, 85% 3%, 92% 0, 97% 2%, 100% 0,
    100% 100%, 97% 98%, 92% 100%, 88% 97%, 82% 100%, 75% 98%, 70% 100%, 65% 97%, 60% 100%, 55% 98%, 50% 100%, 45% 97%, 40% 100%, 35% 98%, 30% 100%, 25% 97%, 20% 100%, 15% 98%, 10% 100%, 5% 97%, 0 100%
  );
}

@media (max-width: 720px) {
  .place-torn img { clip-path: polygon(0 0, 100% 0, 100% 96%, 95% 98%, 90% 95%, 85% 100%, 80% 96%, 75% 100%, 70% 95%, 65% 100%, 50% 96%, 35% 100%, 30% 95%, 25% 100%, 20% 96%, 15% 100%, 10% 95%, 5% 100%, 0 97%); }
}

.place-name {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.5rem;
  color: var(--ink);
  margin: 0 0 0.35rem;
}

.place-addr,
.place-desc {
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.7;
  margin: 0 0 0.6rem;
}

.place-content a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--gold);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.place-content a:hover {
  color: var(--gold);
  border-color: var(--gold-soft);
}

.place-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

/* Bottoni stile mockup (oro / outline) */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), filter 0.25s var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-gold {
  background: var(--gold);
  color: var(--ink);
  border: 2px solid var(--gold);
  border-radius: 4px;
  box-shadow: 0 4px 16px rgba(201, 162, 39, 0.3);
}

.btn-gold:hover {
  filter: brightness(1.08);
  box-shadow: 0 6px 20px rgba(201, 162, 39, 0.35);
  color: var(--ink);
}

.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 4px;
}

.btn-outline:hover {
  background: var(--ink);
  color: var(--cream);
}

/* ---------- Dettagli / FAQ ---------- */
.block-details {
  background: linear-gradient(180deg, var(--cream) 0%, #f5f2ed 100%);
}

.faq-list { margin-top: 0.5rem; }

.faq-item {
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  padding: 1rem 0;
}

.faq-item summary {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  padding-right: 2rem;
  position: relative;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 0;
  color: var(--gold);
  font-size: 1.2rem;
}

.faq-item[open] summary::after { content: '−'; }

.faq-item div {
  padding-top: 0.6rem;
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.7;
}

/* ---------- CTA finale ---------- */
.block-cta {
  background: var(--ink);
  padding: clamp(4rem, 10vw, 5.5rem) 1.5rem;
  text-align: center;
}

.cta-script {
  font-family: 'Great Vibes', cursive;
  font-size: clamp(2.15rem, 5vw, 2.85rem);
  color: var(--white);
  margin: 0 0 1.5rem;
  font-weight: 400;
}

.btn-cta {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  padding: 0.9rem 1.75rem;
  background: var(--white);
  color: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 2px;
  text-decoration: none;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.btn-cta:hover {
  background: var(--cream);
  color: var(--ink);
  box-shadow: 0 6px 24px rgba(184, 134, 11, 0.25);
}

/* ---------- Reveal al scroll ---------- */
.page-home .home > section.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.page-home .home > section.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ========== RESPONSIVE: niente tagli, niente fuori dimensioni ========== */
.page-home .home,
.page-invito .home {
  max-width: 100%;
  overflow-x: hidden;
}
.page-home .home > section,
.page-invito .home > section {
  max-width: 100%;
}
.page-home .block-inner,
.page-invito .block-inner {
  padding-left: 1rem;
  padding-right: 1rem;
  box-sizing: border-box;
}
@media (min-width: 640px) {
  .page-home .block-inner,
  .page-invito .block-inner {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}
.page-home .block,
.page-invito .block {
  padding-left: 1rem;
  padding-right: 1rem;
  box-sizing: border-box;
}
@media (min-width: 640px) {
  .page-home .block,
  .page-invito .block {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}
.page-home img,
.page-invito img {
  max-width: 100%;
  height: auto;
  display: block;
}
.page-home .section-title,
.page-home .section-title-script,
.page-invito .section-title,
.page-invito .section-title-script {
  word-wrap: break-word;
  overflow-wrap: break-word;
}
.page-home .countdown-section .countdown-inner,
.page-invito .countdown-section .countdown-inner {
  padding-left: 1rem;
  padding-right: 1rem;
  box-sizing: border-box;
}
@media (max-width: 380px) {
  .page-home .hero-content,
  .page-invito .hero-content {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .page-home .block,
  .page-invito .block {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
  .page-home .block-inner,
  .page-invito .block-inner {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
}
