:root {
  --ivory: #fbf7f0;
  --ivory-2: #f4ece0;
  --sepia: #6b5544;
  --sepia-soft: #8a7158;
  --gold: #b08d57;
  --blush: #e3b9b3;
  --blush-soft: #f0d8d3;
  --paper-edge: #e7dcc8;
  --script: "Pinyon Script", cursive;
  --serif: "Cormorant Garamond", serif;
}

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

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  font-family: var(--serif);
  color: var(--sepia);
  background: var(--ivory);
  font-size: 18px;
  line-height: 1.6;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Bordo "carta di Amalfi" (deckle edge) ----------
   Cornice assoluta grande quanto la pagina: scorre col contenuto.
   L'anello interno sborda di 44px ma viene ritagliato dal contenitore
   (overflow: hidden), cos&igrave; il lato esterno strappato finisce fuori e
   resta dritto verso lo schermo: lo strappo &egrave; solo sul lato interno. */
.deckle-svg { position: absolute; width: 0; height: 0; }
.page-frame {
  position: absolute; inset: 0; z-index: 50;
  pointer-events: none; overflow: hidden;
}
.page-frame__cut {
  position: absolute; inset: -44px;
  border: 74px solid var(--paper-edge);
  filter: url("#deckle") drop-shadow(0 0 5px rgba(107, 85, 68, .22));
}

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1s ease, transform 1s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Monogram ---------- */
.monogram {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 22px;
}
.monogram__letters {
  font-family: var(--script);
  font-size: clamp(56px, 12vw, 96px);
  color: var(--gold);
  line-height: 1;
}
.monogram__leaf {
  width: 64px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
  position: relative;
}
.monogram__leaf.right { background: linear-gradient(90deg, var(--gold), transparent); }
.monogram__leaf::after {
  content: "\2740"; position: absolute; top: -11px; color: var(--blush); font-size: 16px;
}
.monogram__leaf.left::after { right: -4px; }
.monogram__leaf.right::after { left: -4px; }
.monogram.small { margin-bottom: 10px; }
.monogram.small .monogram__letters { font-size: 64px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  background:
    radial-gradient(120% 90% at 50% 0%, #fffdf9 0%, var(--ivory) 55%, var(--ivory-2) 100%);
  overflow: hidden;
  padding: 60px 24px;
}
.hero::before, .hero::after {
  content: ""; position: absolute; width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(227,185,179,.45), transparent 70%);
  border-radius: 50%; filter: blur(8px);
}
.hero::before { top: -90px; left: -90px; }
.hero::after { bottom: -90px; right: -90px; }
.hero__inner { position: relative; z-index: 2; }
.hero__eyebrow {
  text-transform: uppercase; letter-spacing: .42em; font-size: 14px;
  color: var(--sepia-soft); margin-bottom: 6px;
}
.hero__names {
  font-family: var(--script);
  font-weight: 400;
  font-size: clamp(58px, 15vw, 132px);
  color: var(--sepia);
  line-height: 1.05;
}
.hero__names .amp { color: var(--gold); }
.hero__date {
  font-size: clamp(20px, 4vw, 28px); letter-spacing: .08em;
  margin-top: 14px; color: var(--sepia);
}
.hero__sub { letter-spacing: .25em; text-transform: uppercase; font-size: 13px; color: var(--sepia-soft); margin-top: 6px; }
.hero__scroll {
  display: inline-block; margin-top: 40px; font-size: 30px;
  color: var(--gold); text-decoration: none; animation: bob 2s ease-in-out infinite;
}
@keyframes bob { 0%,100%{ transform: translateY(0);} 50%{ transform: translateY(8px);} }

/* ---------- Sections shared ---------- */
section { padding: 90px 24px; }
.section__title {
  font-family: var(--script);
  font-weight: 400;
  font-size: clamp(40px, 8vw, 64px);
  text-align: center; color: var(--sepia); margin-bottom: 28px;
}
.section__title.light { color: var(--ivory); }
.ornament { text-align: center; color: var(--blush); font-size: 26px; margin-bottom: 10px; }

/* ---------- Intro ---------- */
.intro { background: var(--ivory); text-align: center; }
.intro__text { max-width: 640px; margin: 0 auto; font-size: 22px; font-style: italic; color: var(--sepia-soft); }
.intro__sign { font-family: var(--script); font-size: 34px; color: var(--gold); margin-top: 26px; }

/* ---------- Showcase ---------- */
.showcase {
  text-align: center;
  background:
    linear-gradient(rgba(251,247,240,.6), rgba(244,236,224,.65)),
    url("images/foto-1.jpg");
  background-size: cover; background-position: center;
}
.showcase__quote {
  font-family: var(--script); font-size: clamp(34px, 6vw, 54px);
  line-height: 1.2; max-width: 640px; margin: 0 auto;
  color: var(--sepia);
}

/* ---------- Events ---------- */
.events {
  display: grid; gap: 30px; grid-template-columns: repeat(2, 1fr);
  max-width: 980px; margin: 0 auto; background: var(--ivory);
}
.event {
  position: relative; overflow: hidden;
  text-align: center; padding: 48px 30px;
  border: 1px solid rgba(176,141,87,.4); border-radius: 6px;
  background: linear-gradient(180deg, #fffdf9, var(--ivory));
}
.event > * { position: relative; z-index: 1; }
.event--cerimonia::before,
.event--ricevimento::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background-size: cover; background-position: center;
  opacity: 0; transition: opacity .8s ease;
}
.event--cerimonia::before {
  background-image:
    linear-gradient(rgba(251,247,240,.62), rgba(251,247,240,.62)),
    url("images/cerimonia.jpg");
}
.event--ricevimento::before {
  background-image:
    linear-gradient(rgba(251,247,240,.62), rgba(251,247,240,.62)),
    url("images/hoteldellestelle.jpg");
}
.event--cerimonia:hover::before,
.event--ricevimento:hover::before { opacity: 1; }
.event--cerimonia:hover .event__title,
.event--ricevimento:hover .event__title { color: #5a3d23; }
.event--cerimonia:hover .event__time,
.event--cerimonia:hover .event__place,
.event--cerimonia:hover .event__addr,
.event--ricevimento:hover .event__time,
.event--ricevimento:hover .event__place,
.event--ricevimento:hover .event__addr { color: #3a281c; }
.event--cerimonia:hover .event__map,
.event--ricevimento:hover .event__map {
  background: #fbf7f0; color: #5a3d23; box-shadow: 0 6px 18px rgba(74,52,42,.25);
}
.event--cerimonia:hover .event__map:hover,
.event--ricevimento:hover .event__map:hover { background: var(--gold); color: #fff; }
.event__icon { font-size: 38px; display: block; margin-bottom: 8px; }
.event__title { font-family: var(--script); font-weight: 400; font-size: 44px; color: var(--gold); margin-bottom: 6px; }
.event__time { letter-spacing: .2em; text-transform: uppercase; font-size: 14px; color: var(--sepia-soft); margin-bottom: 14px; }
.event__place { font-size: 24px; font-weight: 600; }
.event__addr { color: var(--sepia-soft); margin-bottom: 18px; }
.event__map {
  display: inline-block; text-decoration: none; color: var(--sepia);
  border: 1px solid var(--gold); border-radius: 40px; padding: 8px 22px;
  letter-spacing: .1em; font-size: 14px; text-transform: uppercase; transition: .3s;
}
.event__map:hover { background: var(--gold); color: #fff; }

/* ---------- Timeline ---------- */
.timeline { background: var(--ivory-2); }
.timeline__list { max-width: 620px; margin: 0 auto; }
.timeline__item {
  display: grid; grid-template-columns: 78px 1fr; gap: 24px;
  text-align: left;
}
.timeline__time {
  font-family: var(--serif); font-weight: 600; font-size: 22px;
  color: var(--gold); text-align: right; padding-top: 2px;
}
.timeline__content {
  position: relative; border-left: 1px solid rgba(176,141,87,.4);
  padding: 0 0 40px 30px;
}
.timeline__item:last-child .timeline__content { border-left-color: transparent; }
.timeline__content::before {
  content: ""; position: absolute; left: -6px; top: 6px;
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--gold); box-shadow: 0 0 0 4px var(--ivory-2);
}
.timeline__title {
  font-family: var(--script); font-weight: 400; font-size: 32px;
  color: var(--sepia); line-height: 1; margin-bottom: 6px;
}
.timeline__content p { color: var(--sepia); margin: 0; }
.timeline__note { font-style: italic; font-size: 16px; color: var(--sepia-soft) !important; margin-top: 4px !important; }
.timeline__stay {
  max-width: 620px; margin: 30px auto 0; text-align: center;
  padding: 22px 26px; border: 1px solid rgba(176,141,87,.4); border-radius: 8px;
  background: #fffdf9; color: var(--sepia-soft); font-style: italic;
}
.timeline__stay strong { color: var(--sepia); font-style: normal; }

/* ---------- Mood ---------- */
.mood {
  text-align: center;
  background: linear-gradient(180deg, #7d6b5a, var(--sepia));
  color: var(--ivory);
}
.mood__text { max-width: 640px; margin: 0 auto; font-size: 22px; font-style: italic; color: var(--blush-soft); }
.mood__dress { margin-top: 26px; letter-spacing: .08em; color: var(--ivory); }
.mood__note { max-width: 560px; margin: 10px auto 0; font-style: italic; font-size: 16px; color: var(--blush-soft); }

/* ---------- Gift ---------- */
.gift { background: var(--ivory); text-align: center; }
.gift__text { max-width: 600px; margin: 0 auto 30px; color: var(--sepia-soft); font-size: 21px; }
.gift__card {
  max-width: 520px; margin: 0 auto; padding: 34px;
  border: 1px solid rgba(176,141,87,.4); border-radius: 8px;
  background: linear-gradient(180deg, #fffdf9, var(--ivory-2));
}
.gift__label { letter-spacing: .35em; text-transform: uppercase; font-size: 13px; color: var(--sepia-soft); }
.gift__iban { font-size: clamp(18px, 4.4vw, 26px); letter-spacing: .06em; color: var(--sepia); margin: 8px 0; word-break: break-word; }
.gift__holder { font-style: italic; color: var(--sepia-soft); }
.gift__copy {
  margin-top: 18px; cursor: pointer; font-family: var(--serif); font-size: 15px;
  letter-spacing: .12em; text-transform: uppercase; padding: 10px 26px;
  border: 1px solid var(--gold); border-radius: 40px; background: transparent; color: var(--sepia); transition: .3s;
}
.gift__copy:hover { background: var(--gold); color: #fff; }
.gift__hint { font-style: italic; font-size: 15px; color: var(--sepia-soft); margin-top: 20px; }

/* ---------- RSVP ---------- */
.rsvp {
  text-align: center;
  background: linear-gradient(180deg, #fffdf9, var(--ivory-2));
  color: var(--sepia);
}
.rsvp .section__title.light { color: var(--sepia); }
.rsvp__deadline { font-size: 20px; font-style: italic; color: var(--sepia-soft); margin-bottom: 30px; }
.rsvp__contacts { display: flex; gap: 24px; justify-content: center; flex-wrap: wrap; }
.rsvp__contact {
  text-decoration: none; color: var(--sepia); background: #fffdf9;
  border: 1px solid rgba(176,141,87,.4); box-shadow: 0 8px 22px rgba(107,85,68,.1);
  border-radius: 8px; padding: 22px 40px; min-width: 200px; transition: .3s;
}
.rsvp__contact:hover { border-color: var(--gold); transform: translateY(-4px); box-shadow: 0 12px 28px rgba(107,85,68,.18); }
.rsvp__name { display: block; font-family: var(--script); font-size: 38px; color: var(--gold); }
.rsvp__phone { display: block; letter-spacing: .12em; font-size: 18px; }

/* ---------- Footer ---------- */
.footer { text-align: center; padding: 60px 24px; background: var(--sepia); color: var(--ivory); }
.footer .monogram__letters { color: var(--blush); }
.footer__date { letter-spacing: .3em; font-size: 16px; }
.footer__msg { font-family: var(--script); font-size: 30px; color: var(--blush-soft); margin-top: 8px; }

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
  .events { grid-template-columns: 1fr; }
  section { padding: 64px 20px; }
  .showcase__band { background-attachment: scroll; min-height: 60vh; }
  .timeline__item { grid-template-columns: 58px 1fr; gap: 16px; }
  .timeline__time { font-size: 18px; }
  .timeline__content { padding-left: 22px; }
  .page-frame__cut { border-width: 60px; }
}
