/* ============================================================
   Federica turns 40 — landing one-page
   Mobile-first, fluido. Breakpoint desktop ~900px.
   ============================================================ */

:root {
  --blush: #F6E7E1;
  --card-light: #FCEFE9;
  --ink: #2A2523;
  --body: #5f5049;
  --sepia: #8B6F5C;
  --gold: #B8893D;
  --gold-dark: #8a5f24;
  --foil: linear-gradient(100deg,#A9772F,#B8893D 22%,#F0D89A 50%,#B8893D 78%,#A9772F);
  --icon-grad: linear-gradient(135deg,#A9772F,#E4C87E,#A9772F);
}

* { box-sizing: border-box; }
html, body { margin: 0; }

body {
  font-family: 'Montserrat', sans-serif;
  background: var(--blush);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: #A9772F; text-decoration: none; }
a:hover { color: var(--gold-dark); }

.ms {
  font-family: 'Material Symbols Outlined';
  font-variation-settings: 'wght' 300;
  line-height: 1;
  user-select: none;
}

/* Foil text (gold clipped gradient + shimmer) */
.foil-text {
  background: var(--foil);
  background-size: 250% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: shimmer 6s linear infinite;
}
.icon-gold {
  background: var(--icon-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

@keyframes shimmer {
  0%   { background-position: 160% 50%; }
  100% { background-position: -160% 50%; }
}
@keyframes glowPulse {
  0%, 100% { filter: drop-shadow(0 0 0 rgba(228,200,126,0)); }
  50%      { filter: drop-shadow(0 3px 14px rgba(228,200,126,.55)); }
}
@keyframes petalFall {
  0%   { opacity: 0; transform: translateY(-6px) rotate(0deg); }
  18%  { opacity: .95; }
  100% { opacity: 0; transform: translateY(180px) rotate(420deg); }
}

/* Reveal on scroll */
[data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .9s cubic-bezier(.22,.61,.36,1),
              transform .9s cubic-bezier(.22,.61,.36,1);
}
[data-reveal].in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .foil-text, .glow { animation: none; }
  [data-reveal] { transition: none; }
}

/* ---- Page container ---- */
.page {
  max-width: 1180px;
  margin: 0 auto;
}

.eyebrow {
  font-size: 11px;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--gold);
}
.eyebrow-center { text-align: center; }

.h2 {
  margin: 0 0 14px;
  font-family: 'Playfair Display', serif;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.18;
  font-size: clamp(25px, 4.5vw, 40px);
}
.body-text {
  margin: 0;
  color: var(--body);
  line-height: 1.88;
  font-size: clamp(13.5px, 1.6vw, 16px);
  text-wrap: pretty;
}

/* Dividers with heart */
.divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 18px auto 0;
  max-width: 620px;
}
.divider-soft { max-width: 300px; margin-top: 24px; }
.rule { flex: 1; height: 1.5px; }
.rule-l { background: linear-gradient(90deg, transparent, var(--gold)); }
.rule-r { background: linear-gradient(90deg, var(--gold), transparent); }
.divider-soft .rule-l { background: linear-gradient(90deg, transparent, #d8bf8f); }
.divider-soft .rule-r { background: linear-gradient(90deg, #d8bf8f, transparent); }
.divider-heart { font-size: 18px; }
.divider-heart-sm { font-size: 15px; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  padding: clamp(20px, 4vw, 56px) clamp(20px, 5vw, 64px) clamp(26px, 5vw, 60px);
  text-align: center;
}
.hero-frame {
  position: absolute;
  inset: clamp(12px, 2.4vw, 26px);
  border: 1.5px solid transparent;
  border-image: linear-gradient(135deg,#A9772F,#F0D89A 50%,#A9772F) 1;
  pointer-events: none;
}
.foil {
  position: absolute;
  pointer-events: none;
  background-repeat: no-repeat;
}
.foil-tr {
  top: 6px; right: 4px;
  width: clamp(118px, 20vw, 230px);
  height: clamp(118px, 18vw, 200px);
  opacity: .85;
  background-image:
    radial-gradient(circle at 22% 28%, #B8893D 0 2px, transparent 3px),
    radial-gradient(circle at 46% 12%, #C99A4A 0 1.4px, transparent 2.4px),
    radial-gradient(circle at 66% 38%, #E4C87E 0 2.4px, transparent 3.4px),
    radial-gradient(circle at 82% 16%, #A9772F 0 1.6px, transparent 2.6px),
    radial-gradient(circle at 34% 58%, #B8893D 0 1px, transparent 2px),
    radial-gradient(circle at 56% 72%, #C99A4A 0 2px, transparent 3px),
    radial-gradient(circle at 88% 54%, #E4C87E 0 1.4px, transparent 2.4px),
    radial-gradient(circle at 74% 86%, #A9772F 0 1px, transparent 2px),
    radial-gradient(circle at 40% 90%, #C99A4A 0 1.5px, transparent 2.5px),
    radial-gradient(circle at 92% 70%, #B8893D 0 1.6px, transparent 2.6px);
}
.foil-bl {
  bottom: 6px; left: 4px;
  width: clamp(104px, 17vw, 200px);
  height: clamp(104px, 16vw, 180px);
  opacity: .7;
  transform: rotate(180deg);
  background-image:
    radial-gradient(circle at 22% 28%, #B8893D 0 2px, transparent 3px),
    radial-gradient(circle at 46% 12%, #C99A4A 0 1.4px, transparent 2.4px),
    radial-gradient(circle at 66% 38%, #E4C87E 0 2.4px, transparent 3.4px),
    radial-gradient(circle at 82% 16%, #A9772F 0 1.6px, transparent 2.6px),
    radial-gradient(circle at 34% 58%, #B8893D 0 1px, transparent 2px),
    radial-gradient(circle at 56% 72%, #C99A4A 0 2px, transparent 3px);
}
.hero-inner { position: relative; padding: clamp(10px, 3vw, 20px) 8px 6px; }

.title {
  margin: 0;
  font-family: 'Playfair Display', serif;
  font-weight: 500;
  color: var(--ink);
  line-height: 1;
  font-size: clamp(44px, 9.5vw, 104px);
  letter-spacing: .12em;
}
@media (min-width: 900px) { .title { letter-spacing: .14em; } }

.turns-row {
  position: relative;
  display: inline-flex;
  align-items: flex-start;
  justify-content: center;
  margin-top: 2px;
}
.turns {
  font-family: 'Alex Brush', cursive;
  line-height: 1;
  font-size: clamp(52px, 9vw, 96px);
}
.turns-heart {
  font-size: clamp(26px, 3.6vw, 40px);
  position: relative;
  top: -0.28em;
  left: 6px;
}
.forty {
  font-family: 'Playfair Display', serif;
  font-weight: 500;
  line-height: .8;
  font-size: clamp(150px, 21vw, 220px);
}
.glow { animation: shimmer 6s linear infinite, glowPulse 5s ease-in-out infinite; }

/* Hero info block */
.info {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 272px;
  margin: 22px auto 4px;
  text-align: left;
}
.info-item { display: flex; gap: 13px; align-items: center; }
.info-icon { font-size: clamp(28px, 3.2vw, 34px); }
.info-sep {
  width: 1.5px; height: 38px;
  background: linear-gradient(#E4C87E, #A9772F);
}
.info-sep-sm { height: 26px; }
.info-text { line-height: 1.35; }
.info-strong {
  font-weight: 600;
  font-size: clamp(14px, 1.6vw, 15px);
  letter-spacing: .06em;
  color: var(--ink);
}
.info-addr {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: clamp(12.5px, 1.4vw, 13px);
  color: var(--sepia);
}
.info-time {
  font-weight: 500;
  font-size: clamp(16px, 2.4vw, 22px);
  letter-spacing: .05em;
  color: var(--ink);
}
.info-date {
  font-weight: 600;
  font-size: clamp(15px, 2vw, 19px);
  letter-spacing: .06em;
  color: var(--ink);
}

@media (min-width: 900px) {
  .info {
    flex-direction: row;
    max-width: 760px;
    justify-content: center;
    gap: 0;
    align-items: stretch;
  }
  .info-item {
    flex: 1;
    justify-content: center;
    gap: 14px;
    padding: 0 8px;
    position: relative;
  }
  .info-item + .info-item::before {
    content: "";
    position: absolute;
    left: 0; top: 50%;
    transform: translateY(-50%);
    width: 1px; height: 46px;
    background: linear-gradient(var(--blush), #d8bf8f, var(--blush));
  }
  .info-sep { display: none; }
}

/* ============================================================
   L'OCCASIONE
   ============================================================ */
.occasione {
  padding: clamp(24px, 3vw, 40px) clamp(30px, 6vw, 64px) clamp(26px, 3vw, 40px);
  text-align: center;
}
.occasione .h2 { margin: 0 auto 16px; max-width: 640px; }
.occasione .body-text { margin: 0 auto; max-width: 560px; }

/* ============================================================
   IL REGALO
   ============================================================ */
.regalo {
  padding: clamp(6px, 2vw, 20px) clamp(26px, 6vw, 64px) clamp(28px, 4vw, 46px);
}
.regalo-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}
.regalo-copy { text-align: center; }
.h2-left, .body-left { text-align: inherit; }

.regalo-card {
  background: var(--card-light);
  border: 1px solid rgba(139,111,92,.24);
  border-radius: 16px;
  padding: 16px;
}

.paypal-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  padding: 15px;
  border-radius: 999px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: clamp(14px, 1.5vw, 15px);
  letter-spacing: .03em;
  color: var(--ink);
  background: var(--foil);
  background-size: 250% 100%;
  animation: shimmer 5s linear infinite;
  box-shadow: 0 12px 26px -10px rgba(184,137,61,.7);
  transition: box-shadow .25s ease, filter .25s ease;
}
.paypal-btn:hover { color: var(--ink); filter: brightness(.97); box-shadow: 0 14px 30px -10px rgba(184,137,61,.8); }
.paypal-heart {
  font-family: 'Material Symbols Outlined';
  font-variation-settings: 'wght' 400;
  font-size: 18px;
}

.iban-box {
  margin-top: 14px;
  background: var(--card-light);
  border: 1px solid rgba(139,111,92,.24);
  border-radius: 16px;
  padding: 14px 16px;
}
.iban-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.iban-left { flex: 1; min-width: 0; }
.iban-label {
  font-size: 9.5px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 3px;
}
.iban-value {
  font-family: 'Courier New', monospace;
  font-size: clamp(12.5px, 1.5vw, 14px);
  letter-spacing: .02em;
  color: var(--ink);
  white-space: normal;
  overflow-wrap: break-word;
  word-break: break-word;
  line-height: 1.4;
}
.copy-btn {
  flex: none;
  border: 1px solid var(--gold);
  background: transparent;
  color: var(--gold-dark);
  border-radius: 999px;
  padding: 8px 15px;
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: background .2s ease, color .2s ease;
}
.copy-btn:hover { background: rgba(184,137,61,.1); }
.copy-btn.copied { color: var(--gold-dark); border-color: var(--gold); }

.iban-details {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(139,111,92,.16);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.iban-detail {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.iban-detail-key {
  font-size: 9.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold);
}
.iban-detail-val {
  font-size: clamp(12.5px, 1.4vw, 14px);
  font-weight: 500;
  color: var(--ink);
  text-align: right;
}

@media (min-width: 900px) {
  .regalo-grid {
    flex-direction: row;
    gap: 48px;
    align-items: center;
  }
  .regalo-copy { flex: 1; min-width: 300px; text-align: left; }
  .regalo-card {
    flex: 1;
    min-width: 300px;
    border-radius: 22px;
    padding: 28px;
    box-shadow: 0 20px 50px -30px rgba(139,111,92,.5);
  }
  .iban-box { background: var(--blush); border-radius: 14px; padding: 16px 18px; }
}

/* ============================================================
   COME FUNZIONA
   ============================================================ */
.come {
  padding: clamp(6px, 2vw, 20px) clamp(30px, 6vw, 64px) clamp(28px, 4vw, 46px);
}
.come .eyebrow { margin-bottom: 18px; letter-spacing: .32em; }
.steps {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 900px;
  margin: 0 auto;
}
.step { display: flex; gap: 15px; align-items: center; }
.step-circle {
  flex: none;
  width: 46px; height: 46px;
  border: 1.4px solid var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(240,216,154,.14);
}
.step-circle .ms { font-size: 24px; }
.step-num {
  font-size: 10px;
  letter-spacing: .18em;
  color: var(--gold);
}
.step-title {
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
}
.step-desc {
  font-size: 12.5px;
  color: var(--body);
  line-height: 1.5;
}
.step-desc br { display: none; }

@media (min-width: 900px) {
  .come .eyebrow { margin-bottom: 28px; letter-spacing: .34em; }
  .steps { flex-direction: row; gap: 28px; }
  .step {
    flex: 1;
    flex-direction: column;
    text-align: center;
    gap: 0;
  }
  .step-circle { width: 60px; height: 60px; margin: 0 auto 14px; }
  .step-circle .ms { font-size: 30px; }
  .step-num { font-size: 11px; letter-spacing: .2em; margin-bottom: 4px; }
  .step-title { font-size: 16px; margin-bottom: 5px; }
  .step-desc { font-size: 13.5px; line-height: 1.6; }
}

/* ============================================================
   GRAZIE
   ============================================================ */
.grazie {
  padding: clamp(6px, 2vw, 14px) clamp(26px, 6vw, 64px) clamp(30px, 4vw, 44px);
  text-align: center;
}
.grazie-wrap { position: relative; display: inline-block; }
.petals {
  position: absolute;
  inset: -24px -30px;
  pointer-events: none;
  overflow: visible;
}
.grazie-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px 20px;
}
.grazie-text {
  font-family: 'Alex Brush', cursive;
  line-height: 1;
  font-size: clamp(46px, 7vw, 72px);
}
.grazie-sub {
  margin-top: 6px;
  font-size: clamp(11px, 1.2vw, 12px);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--sepia);
}
.petal {
  position: absolute;
  border-radius: 0 100% 50% 100%;
  opacity: 0;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer { position: relative; }
.footer-img-wrap {
  position: relative;
  width: 100%;
  height: clamp(172px, 22vw, 240px);
}
.footer-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
  display: block;
}
.footer-fade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(var(--blush) 0%, rgba(246,231,225,0) 34%);
}
.footer-text {
  padding: 16px clamp(26px, 6vw, 64px) 30px;
  text-align: center;
  background: var(--blush);
}
.footer-line {
  font-size: clamp(11px, 1.3vw, 12px);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--sepia);
}
.footer-affetto {
  margin-top: 6px;
  font-family: 'Alex Brush', cursive;
  font-size: clamp(26px, 3.6vw, 34px);
  animation: none;
  background: linear-gradient(100deg,#A9772F,#F0D89A 50%,#A9772F);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

@media (min-width: 900px) {
  .footer-img { object-position: center center; }
  .footer-fade { background: linear-gradient(var(--blush) 0%, rgba(246,231,225,0) 30%); }
  .footer-line { letter-spacing: .18em; }
}
