/* =========================================================
   LIBERTY DECORATIONS — stile
   ========================================================= */
:root {
  --cipria: #F2D3D0;          /* = sfondo del video hero */
  --cipria-chiaro: #FBEDEE;
  --fucsia: #E6007E;
  --fucsia-scuro: #B8005F;
  --prugna: #4A1F33;
  --prugna-soft: #7A4A5E;
  --oro: #D4A64A;
  --bianco: #FFFFFF;

  --radius: 24px;
  --radius-sm: 14px;
  --shadow: 0 10px 30px -12px rgba(184, 0, 95, .28);
  --shadow-soft: 0 6px 20px -10px rgba(74, 31, 51, .22);

  --f-title: "Fraunces", Georgia, serif;
  --f-script: "Dancing Script", cursive;
  --f-body: "Nunito", system-ui, -apple-system, sans-serif;

  --gutter: 16px;
  --hero-col: 100vw;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cipria);
  color: var(--prugna);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: var(--fucsia); }
button { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--f-title); line-height: 1.15; margin: 0 0 .4em; font-weight: 700; }
h2 { font-size: clamp(1.9rem, 6.5vw, 3rem); letter-spacing: -.01em; }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--fucsia); outline-offset: 3px; border-radius: 8px; }

.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter); }
.container--narrow { max-width: 720px; }
.center { text-align: center; }
.eyebrow {
  font-family: var(--f-script); color: var(--fucsia); font-size: 1.5rem; margin: 0 0 .1em; line-height: 1;
}
.lead { color: var(--prugna-soft); font-size: 1.08rem; max-width: 40ch; margin-inline: auto; }

/* ---------- Bottoni ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 54px; padding: .8em 1.6em; border-radius: 999px; border: 0;
  font-weight: 800; font-size: 1.05rem; text-decoration: none; cursor: pointer;
  transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.97); }
.btn--primary { background: var(--fucsia); color: #fff; box-shadow: var(--shadow); }
.btn--primary:hover { background: var(--fucsia-scuro); }
.btn--ghost { background: transparent; color: var(--prugna); border: 2px solid rgba(74, 31, 51, .2); }
.btn--ghost:hover { border-color: var(--fucsia); color: var(--fucsia); }
.btn--wa { background: #1FAE5B; box-shadow: 0 10px 30px -12px rgba(31, 174, 91, .6); }
.btn--wa:hover { background: #178A48; }

/* =========================================================
   HERO
   ========================================================= */
.hero { position: relative; height: 700vh; background: var(--cipria); }
/* sfumatura sul fondo della hero: il video si fonde con la sezione successiva senza linea di stacco.
   Sta in fondo alla .hero (non nella parte fissa), quindi compare solo quando la hero finisce. */
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  height: clamp(80px, 14vh, 160px); pointer-events: none;
  background: linear-gradient(to bottom, rgba(242, 211, 208, 0), var(--cipria));
}
/* 100lvh = altezza "grande" dello schermo: copre anche la zona sotto le barre di Safari su iPhone */
.hero__sticky { position: sticky; top: 0; height: 100vh; height: 100lvh; overflow: hidden; }
.hero__stage {
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 50% at 15% 30%, rgba(255,255,255,.55), transparent 70%),
    radial-gradient(50% 40% at 85% 75%, rgba(230,0,126,.10), transparent 70%),
    var(--cipria);
}
.hero__canvas, .hero__fallback { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__ambient {
  position: absolute; inset: -10%; width: 120%; height: 120%;
  filter: blur(48px) saturate(1.1); opacity: .6;
}
.hero__fallback { object-fit: cover; object-position: center 60%; }
@media (min-aspect-ratio: 3/4) { .hero__fallback { object-fit: contain; } }

/* tremolio del pacco prima dello scroll */
.hero__stage.is-idle .hero__canvas { animation: giftShake 2.4s ease-in-out infinite; transform-origin: 50% 75%; }
@keyframes giftShake {
  0%, 62%, 100% { transform: translate(0, 0) rotate(0); }
  66% { transform: translate(-3px, 0) rotate(-.9deg); }
  70% { transform: translate(3px, -4px) rotate(.9deg); }
  74% { transform: translate(-3px, 0) rotate(-.7deg); }
  78% { transform: translate(2px, -2px) rotate(.5deg); }
  82% { transform: translate(-1px, 0) rotate(-.2deg); }
}

.hero__overlay {
  position: absolute; top: 0; bottom: 0; left: 50%; transform: translateX(-50%);
  width: var(--hero-col); max-width: 100vw; pointer-events: none;
}
.hero__phrase {
  position: absolute; left: 50%; top: 17%; width: 90%;
  transform: translate(-50%, 14px); opacity: 0; margin: 0;
  text-align: center; font-family: var(--f-title); font-style: italic; font-weight: 600;
  font-size: clamp(2rem, 9.5vw, 3.4rem); line-height: 1.08; color: var(--prugna);
  text-shadow: 0 0 22px rgba(255, 240, 242, .95), 0 0 6px rgba(255, 240, 242, .9);
  will-change: opacity, transform;
}
.hero__phrase:first-child { opacity: 1; transform: translate(-50%, 0); }
/* la terza frase sta sopra i palloncini: fondo chiaro per leggibilità */
.hero__phrase:nth-child(3) {
  top: 40%; width: auto; max-width: 92%; padding: .35em .7em .45em; white-space: nowrap;
  font-size: clamp(1.75rem, 8.2vw, 3rem);
  background: rgba(255, 245, 246, .82); border-radius: 22px;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  box-shadow: var(--shadow-soft); text-shadow: none;
}
.hero__phrase:nth-child(2) { top: 7%; }

.hero__final {
  position: absolute; left: 50%; top: 26%; width: min(78%, 420px);
  transform: translateX(-50%); text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  pointer-events: none;
}
.hero__final > * { opacity: 0; transform: translateY(16px) scale(.96); transition: opacity .5s ease, transform .6s cubic-bezier(.2,.9,.3,1.3); }
.hero__final.is-in { pointer-events: auto; }
.hero__final.is-in > * { opacity: 1; transform: none; }
.hero__final.is-in .logo-text { animation: inflate .9s cubic-bezier(.2,.9,.3,1) both; }
.hero__final.is-in > :nth-child(2) { transition-delay: .25s; }
.hero__final.is-in > :nth-child(3) { transition-delay: .4s; }
.hero__final.is-in > :nth-child(4) { transition-delay: .5s; }
@keyframes inflate {
  0% { opacity: 0; transform: scale(.55); }
  60% { opacity: 1; transform: scale(1.07); }
  80% { transform: scale(.98); }
  100% { opacity: 1; transform: scale(1); }
}

.logo-text { margin: 0; display: flex; flex-direction: column; align-items: center; line-height: .95; }
.logo-text__a {
  font-family: var(--f-title); font-weight: 700; font-size: clamp(3.2rem, 15vw, 5.2rem);
  color: var(--fucsia); letter-spacing: -.02em;
  text-shadow: 0 3px 0 rgba(255,255,255,.9), 0 10px 30px rgba(184, 0, 95, .25);
}
.logo-text__b {
  font-family: var(--f-script); font-weight: 700; font-size: clamp(2.2rem, 10vw, 3.5rem);
  color: var(--prugna); margin-top: -.12em;
  text-shadow: 0 2px 0 rgba(255,255,255,.9);
}
.hero__sub {
  margin: 4px 0 6px; font-weight: 700; font-size: 1.02rem; line-height: 1.4; color: var(--prugna);
  background: rgba(255, 245, 246, .78); padding: .45em .9em; border-radius: 16px;
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}

.hero__hint {
  position: absolute; left: 50%; bottom: max(22px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  font-weight: 800; font-size: .95rem; color: var(--prugna);
  background: rgba(255,245,246,.85); padding: .5em 1.1em .35em; border-radius: 999px;
  box-shadow: var(--shadow-soft); transition: opacity .4s ease;
}
.hero__hint svg { animation: bob 1.4s ease-in-out infinite; color: var(--fucsia); }
.hero__hint.is-hidden { opacity: 0; }
@keyframes bob { 50% { transform: translateY(5px); } }

/* "Salta l'animazione": in verticale in alto a sinistra (in basso c'è "Scorri e apri il regalo"),
   in orizzontale in basso a destra */
.hero__skip {
  position: absolute; z-index: 3; top: max(16px, env(safe-area-inset-top)); left: 16px;
  display: inline-flex; align-items: center; gap: .4em;
  font: inherit; font-weight: 700; font-size: .82rem; color: var(--prugna);
  background: rgba(255,245,246,.85); border: 0; padding: .55em 1em; border-radius: 999px;
  box-shadow: var(--shadow-soft); cursor: pointer; transition: opacity .4s ease;
  -webkit-tap-highlight-color: transparent;
}
.hero__skip svg { color: var(--fucsia); }
.hero__skip:hover { background: #fff; }
.hero__skip:focus-visible { outline: 2px solid var(--fucsia); outline-offset: 2px; }
.hero__skip.is-hidden { opacity: 0; pointer-events: none; }
@media (orientation: landscape) {
  .hero__skip { top: auto; left: auto; right: max(18px, env(safe-area-inset-right)); bottom: max(18px, env(safe-area-inset-bottom)); }
}

.hero__loader { position: absolute; top: 18px; right: 18px; transition: opacity .4s; }
.hero__loader.is-ready { opacity: .0; }
.balloon-loader {
  width: 22px; height: 28px; border-radius: 50% 50% 48% 48%; border: 2px solid var(--fucsia);
  overflow: hidden; position: relative; background: rgba(255,255,255,.5);
}
.balloon-loader span { position: absolute; inset: 0; background: var(--fucsia); transform-origin: bottom; transform: scaleY(0); transition: transform .2s; }

/* ---------- Hero su schermo orizzontale: video 16:9 a tutto schermo ----------
   html.hero-wide è impostata da js/hero.js quando sono in uso i fotogrammi 16:9.
   --hero-frame-w / --hero-frame-h = dimensioni del fotogramma disegnato ("cover", centrato):
   le posizioni sono espresse rispetto al centro dello schermo in frazioni del fotogramma,
   così i testi restano nello spazio vuoto qualunque sia il ritaglio. */
@media (orientation: landscape) {
  .hero__fallback { object-fit: cover; object-position: center; }

  html.hero-wide {
    --fw: var(--hero-frame-w, 100vw);
    --fh: var(--hero-frame-h, 56.25vw);
  }
  html.hero-wide .hero__phrase br { display: none; }

  /* 1ª frase: in alto, sopra il pacco con spaziatura equilibrata */
  html.hero-wide .hero__phrase {
    top: max(20px, calc(50% - .34 * var(--fh)));
    width: auto; max-width: 92vw; white-space: nowrap;
    font-size: max(1.6rem, calc(.062 * var(--fh)));
  }
  /* 2ª frase: a sinistra della colonna di palloncini che esce dal pacco */
  html.hero-wide .hero__phrase:nth-child(2) {
    top: calc(50% - .14 * var(--fh));
    left: max(calc(50% - .335 * var(--fw)), calc(.12 * var(--fw) + 3vw));
    width: calc(.24 * var(--fw)); white-space: normal;
  }
  html.hero-wide .hero__phrase:nth-child(2) br { display: inline; }
  /* 3ª frase: i palloncini riempiono lo schermo, resta la "pillola" chiara */
  html.hero-wide .hero__phrase:nth-child(3) {
    top: calc(50% - .08 * var(--fh));
    font-size: max(1.5rem, calc(.054 * var(--fh)));
  }

  /* blocco finale: dentro l'arco, perfettamente centrato nello spazio verticale tra palloncini e pacco */
  html.hero-wide .hero__final {
    top: calc(50% - .135 * var(--fh));
    width: calc(.42 * var(--fw)); max-width: 92vw;
    display: grid; grid-template-columns: auto; justify-content: center; justify-items: center; align-items: center;
    gap: calc(.015 * var(--fh)) max(10px, calc(.012 * var(--fw)));
  }
  html.hero-wide .hero__final .logo-text,
  html.hero-wide .hero__final .hero__sub { grid-column: 1 / -1; justify-self: center; }
  html.hero-wide .logo-text__a { font-size: calc(.085 * var(--fh)); }
  html.hero-wide .logo-text__b { font-size: calc(.056 * var(--fh)); }
  html.hero-wide .hero__sub {
    margin: 0; font-size: max(.85rem, calc(.022 * var(--fh))); line-height: 1.3; padding: .35em .9em;
  }
  html.hero-wide .hero__final .btn {
    min-height: max(40px, calc(.066 * var(--fh)));
    padding: .4em 1.3em; font-size: max(.85rem, calc(.023 * var(--fh)));
  }
  html.hero-wide .hero__final .btn { white-space: nowrap; }
  html.hero-wide .hero__sub { text-wrap: balance; }

  /* suggerimento "Scorri e apri il regalo": centrato nello spazio sopra il pacco */
  html.hero-wide .hero__hint {
    left: 50%;
    bottom: auto;
    top: calc(50% - .14 * var(--fh));
    transform: translateX(-50%);
  }
}
/* orizzontale basso (telefono girato): testi più piccoli per restare dentro l'arco */
@media (orientation: landscape) and (max-height: 500px) {
  html.hero-wide .hero__final { width: calc(.46 * var(--fw)); }
  html.hero-wide .hero__sub { font-size: max(.7rem, calc(.022 * var(--fh))); }
  html.hero-wide .hero__final .btn { min-height: 36px; font-size: max(.72rem, calc(.023 * var(--fh))); }
  html.hero-wide .hero__hint { font-size: .8rem; }
}
/* orizzontale ma quasi quadrato: ai lati non c'è spazio, la 2ª frase torna al centro con la pillola */
@media (orientation: landscape) and (max-aspect-ratio: 3/2) {
  html.hero-wide .hero__phrase:nth-child(2) {
    top: max(16px, calc(50% - .29 * var(--fh))); left: 50%; width: auto; white-space: nowrap;
    padding: .3em .7em .4em; background: rgba(255, 245, 246, .82); border-radius: 22px;
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
    box-shadow: var(--shadow-soft); text-shadow: none;
  }
  html.hero-wide .hero__phrase:nth-child(2) br { display: none; }
}

/* =========================================================
   SEZIONI
   ========================================================= */
.section { padding: 72px 0; }
.section--soft { background: var(--cipria-chiaro); }
.section__head { text-align: center; margin-bottom: 36px; }

/* ---------- Occasioni ---------- */
.events { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.event {
  display: flex; flex-direction: column; text-align: left;
  background: var(--bianco); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-soft);
}
.event__media { aspect-ratio: 4 / 5; display: grid; place-items: center; overflow: hidden; position: relative; }
/* la foto riempie sempre tutto il riquadro (anche su Safari iPhone), senza fasce bianche sopra o sotto */
.event__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.event__media--ph[data-ph="0"] { background: linear-gradient(150deg, #FDE3EA, #F7B6C8); }
.event__media--ph[data-ph="1"] { background: linear-gradient(150deg, #E5F2FC, #A9D4F5); }
.event__media--ph[data-ph="2"] { background: linear-gradient(150deg, #FFF6D6, #FFD84D); }
.event__media--ph[data-ph="3"] { background: linear-gradient(150deg, #FCE0EF, #F28CC1); }
.event__icon { font-size: 3.4rem; filter: drop-shadow(0 6px 10px rgba(0,0,0,.12)); }
.event__body { padding: 12px 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.event__title { font-family: var(--f-title); font-weight: 700; font-size: 1.12rem; line-height: 1.2; }
.event__text { font-size: .9rem; color: var(--prugna-soft); line-height: 1.4; }
.events .event:last-child:nth-child(odd) { grid-column: 1 / -1; }
.events .event:last-child:nth-child(odd) .event__media { aspect-ratio: 16 / 9; }

/* ---------- Servizi ---------- */
.services { display: grid; gap: 12px; margin-bottom: 32px; }
.service {
  display: grid; grid-template-columns: 56px 1fr; column-gap: 14px; align-items: start;
  background: var(--bianco); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow-soft);
}
.service__icon {
  grid-row: span 2; width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center;
  font-size: 1.7rem; background: var(--cipria-chiaro);
}
.service h3 { font-size: 1.12rem; margin: 2px 0 2px; }
.service p { margin: 0; font-size: .95rem; color: var(--prugna-soft); line-height: 1.45; }

/* ---------- Pillole (opzioni del modulo) ---------- */
.pill {
  flex: 0 0 auto; border: 2px solid rgba(74,31,51,.14); background: var(--bianco);
  padding: .5em 1.05em; border-radius: 999px; font-weight: 700; font-size: .95rem; cursor: pointer;
  transition: all .2s ease; min-height: 44px;
}
.pill.is-active, .pill.is-on { background: var(--fucsia); color: #fff; border-color: var(--fucsia); }

/* ---------- Come funziona ---------- */
.steps { list-style: none; padding: 0; margin: 0 0 32px; display: grid; gap: 14px; counter-reset: s; }
.step { background: var(--bianco); border-radius: var(--radius); padding: 22px 20px 18px; box-shadow: var(--shadow-soft); position: relative; }
.step__n {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--fucsia); color: #fff; font-family: var(--f-title); font-weight: 700; font-size: 1.3rem;
  margin-bottom: 10px; box-shadow: 0 6px 14px -6px rgba(230,0,126,.6);
}
.step p { margin: 0; color: var(--prugna-soft); }

/* ---------- Chi siamo ---------- */
.about { display: grid; gap: 28px; align-items: center; }
.about__visual { position: relative; width: min(280px, 75%); margin: 0 auto; }
.mascot { width: 100%; height: auto; border-radius: 50%; background: var(--cipria-chiaro); box-shadow: var(--shadow); }
.bubble {
  position: absolute; top: 4%; right: -6%; background: var(--bianco); padding: .45em .9em; border-radius: 18px 18px 18px 4px;
  font-weight: 800; box-shadow: var(--shadow-soft); animation: bob 2.4s ease-in-out infinite;
}
.about__text { text-align: center; }
.signature { font-family: var(--f-script); font-size: 1.7rem; color: var(--fucsia); margin-top: .4em; }

/* ---------- Recensioni ---------- */
.reviews { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px var(--gutter) 20px; scrollbar-width: none; }
.reviews::-webkit-scrollbar { display: none; }
.review { flex: 0 0 82%; scroll-snap-align: center; margin: 0; background: var(--bianco); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-soft); }
.review__stars { color: var(--oro); letter-spacing: 2px; margin-bottom: 8px; }
.review blockquote { margin: 0 0 12px; font-family: var(--f-title); font-style: italic; font-size: 1.08rem; line-height: 1.5; }
.review figcaption { font-size: .92rem; color: var(--prugna-soft); }

/* ---------- FAQ (Design Moderno & Organizzato) ---------- */
.faq__filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 0 auto 28px;
}
.faq__pill {
  appearance: none;
  border: 1.5px solid rgba(74, 31, 51, 0.12);
  background: var(--bianco);
  color: var(--prugna);
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.94rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 8px -2px rgba(74, 31, 51, 0.08);
  transition: all .25s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.faq__pill:hover {
  border-color: var(--fucsia);
  color: var(--fucsia);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px -4px rgba(230, 0, 126, 0.22);
}
.faq__pill.is-active {
  background: linear-gradient(135deg, var(--fucsia), #FF359B);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 8px 20px -4px rgba(230, 0, 126, 0.42);
  transform: translateY(-1px);
}
.faq__pill:active {
  transform: scale(0.97);
}

.faq {
  display: grid;
  gap: 12px;
  margin-bottom: 30px;
}
.faq__item {
  background: var(--bianco);
  border-radius: 20px;
  border: 2px solid transparent;
  box-shadow: 0 4px 18px -4px rgba(74, 31, 51, 0.08);
  overflow: hidden;
  transition: border-color .28s ease, box-shadow .28s ease, transform .25s ease;
}
.faq__item:hover {
  box-shadow: 0 8px 22px -6px rgba(74, 31, 51, 0.12);
}
.faq__item[open] {
  border-color: var(--fucsia);
  box-shadow: 0 12px 32px -8px rgba(230, 0, 126, 0.24);
}

.faq__question {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--prugna);
  line-height: 1.35;
  user-select: none;
  transition: color .2s ease;
}
.faq__question::-webkit-details-marker,
.faq__question::marker {
  display: none;
}
.faq__question:hover {
  color: var(--fucsia);
}
.faq__item[open] .faq__question {
  color: var(--fucsia);
}
.faq__q-text {
  flex: 1;
}

.faq__toggle {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--cipria-chiaro);
  color: var(--fucsia);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform .32s cubic-bezier(0.4, 0, 0.2, 1), background-color .25s ease, color .25s ease;
}
.faq__toggle svg {
  width: 18px;
  height: 18px;
  display: block;
  transition: transform .32s cubic-bezier(0.4, 0, 0.2, 1);
}
.faq__item[open] .faq__toggle {
  background: var(--fucsia);
  color: #fff;
  transform: rotate(45deg);
}

.faq__answer {
  padding: 14px 22px 20px;
  border-top: 1px dashed rgba(230, 0, 126, 0.16);
  color: var(--prugna-soft);
  font-size: 1rem;
  line-height: 1.65;
}
.faq__item[open] .faq__answer {
  animation: faqFadeIn .28s ease-out forwards;
}
@keyframes faqFadeIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}
.faq__answer p {
  margin: 0;
}

/* Box WhatsApp Finale di Supporto */
.faq__cta {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(251, 237, 238, 0.92));
  border: 2px dashed rgba(37, 211, 102, 0.45);
  border-radius: 22px;
  padding: 22px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  box-shadow: 0 8px 24px -8px rgba(74, 31, 51, 0.08);
  margin-top: 24px;
}
.faq__cta-icon {
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(37, 211, 102, 0.14);
  color: #25D366;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.faq__cta-body {
  flex: 1 1 240px;
}
.faq__cta-body h3 {
  font-size: 1.2rem;
  margin: 0 0 4px;
  color: var(--prugna);
}
.faq__cta-body p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--prugna-soft);
}
.btn--whatsapp {
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: #fff;
  font-weight: 800;
  font-size: 0.96rem;
  padding: 0.75em 1.4em;
  min-height: 48px;
  border-radius: 999px;
  box-shadow: 0 8px 20px -6px rgba(37, 211, 102, 0.45);
  white-space: nowrap;
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
  text-decoration: none;
}
.btn--whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px -6px rgba(37, 211, 102, 0.6);
  filter: brightness(1.05);
}

@media (max-width: 680px) {
  .faq__filters { gap: 8px; margin-bottom: 22px; }
  .faq__pill { font-size: 0.88rem; padding: 8px 14px; }
  .faq__question { padding: 16px 18px; font-size: 1rem; }
  .faq__answer { padding: 12px 18px 18px; }
  .faq__cta {
    flex-direction: column;
    text-align: center;
    padding: 20px 18px;
    gap: 14px;
  }
  .faq__cta-icon { margin: 0 auto; }
  .btn--whatsapp { width: 100%; justify-content: center; }
}


/* =========================================================
   FORM MULTI-STEP
   ========================================================= */
.section--form { background: linear-gradient(180deg, var(--cipria) 0%, var(--cipria-chiaro) 100%); }
.wizard { background: var(--bianco); border-radius: 28px; box-shadow: var(--shadow); padding: 20px 16px 22px; scroll-margin-top: 12px; }
.wizard__guide { display: flex; align-items: flex-end; gap: 10px; margin-bottom: 14px; }
.wizard__guide img { width: 80px; height: 80px; border-radius: 50%; background: var(--cipria-chiaro); flex: 0 0 auto; box-shadow: var(--shadow-soft); }
.wizard__bubble {
  margin: 0; background: var(--cipria-chiaro); padding: .6em .95em; border-radius: 18px 18px 18px 4px;
  font-weight: 700; font-size: .98rem; line-height: 1.35;
}
.wizard__progress { height: 8px; background: var(--cipria-chiaro); border-radius: 99px; overflow: hidden; }
.wizard__progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--fucsia), #FF5DB1); transform-origin: left; transform: scaleX(.14); transition: transform .4s ease; border-radius: 99px; }
.wizard__count { font-size: .85rem; font-weight: 800; color: var(--prugna-soft); margin: 8px 0 14px; }
.wizard__q { font-size: 1.45rem; margin-bottom: 14px; }
.wizard__hint { font-size: .92rem; color: var(--prugna-soft); margin: -6px 0 14px; }
.wizard__note { font-size: .92rem; background: var(--cipria-chiaro); padding: .7em .9em; border-radius: 14px; margin: 6px 0 0; }
.wizard__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 18px;
}
.wizard__nav .btn {
  min-height: 52px;
  padding: .8em 1.6em;
}
.wizard__nav .btn--ghost {
  flex: 0 1 160px;
}
.wizard__nav .btn--primary {
  flex: 0 1 260px;
  max-width: 280px;
  width: 100%;
}
.wizard__nav .btn--wa {
  flex: 0 1 340px;
  max-width: 360px;
}
.wizard__nav [hidden],
.wizard__nav [style*="display: none"] {
  display: none !important;
}

@media (max-width: 500px) {
  .wizard__nav {
    width: 100%;
    gap: 10px;
  }
  .wizard__nav .btn--ghost {
    flex: 1;
    min-width: 0;
  }
  .wizard__nav .btn--primary {
    flex: 2;
    min-width: 0;
  }
}

.opts { display: grid; gap: 10px; margin-bottom: 18px; }
.opts--cards { grid-template-columns: 1fr 1fr; }
.opts--pills { display: flex; flex-wrap: wrap; gap: 8px; }
.opts--colors { grid-template-columns: repeat(3, 1fr); }
.card-opt {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  min-height: 92px; padding: 12px 8px; border-radius: 18px; border: 2px solid rgba(74,31,51,.12);
  background: var(--bianco); cursor: pointer; font-weight: 800; font-size: .95rem; line-height: 1.25; text-align: center;
  transition: all .2s ease; -webkit-tap-highlight-color: transparent;
}
.card-opt__i { font-size: 1.8rem; }
.card-opt.is-on { border-color: var(--fucsia); background: #FFF0F7; color: var(--fucsia-scuro); box-shadow: 0 6px 16px -10px rgba(230,0,126,.7); }
.card-opt--wide { flex-direction: row; width: 100%; min-height: 64px; margin-bottom: 10px; font-size: 1rem; }
.card-opt--mobile .field { margin-top: -6px; }
.swatch {
  display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 4px; border-radius: 16px;
  border: 2px solid rgba(74,31,51,.1); background: var(--bianco); cursor: pointer; font-weight: 700; font-size: .85rem;
}
.swatch__dot { width: 34px; height: 34px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(74,31,51,.15); }
.swatch.is-on { border-color: var(--fucsia); background: #FFF0F7; }

.field { display: block; margin-bottom: 16px; }
.field > span, .field__label { display: block; font-weight: 800; font-size: .95rem; margin-bottom: 6px; }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--prugna);
  border: 2px solid rgba(74,31,51,.14); border-radius: 14px; padding: 12px 14px; background: #FFFBFC; min-height: 50px;
}
.field input:focus, .field textarea:focus { border-color: var(--fucsia); outline: none; box-shadow: 0 0 0 4px rgba(230,0,126,.12); }
.check { display: flex; align-items: center; gap: 10px; font-weight: 700; margin: -4px 0 18px; cursor: pointer; }
.check input { width: 22px; height: 22px; accent-color: var(--fucsia); flex: 0 0 auto; }

.sum { display: grid; gap: 10px; }
.sum__block { background: var(--cipria-chiaro); border-radius: 16px; padding: 12px 14px; }
.sum__block p { margin: 2px 0 0; font-size: .95rem; }
.sum__head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.sum__edit { background: none; border: 0; color: var(--fucsia); font-weight: 800; cursor: pointer; text-decoration: underline; padding: 6px 0; }

.thanks { text-align: center; padding: 10px 0; }
.thanks__icon { font-size: 3rem; }

/* ---------- Footer ---------- */
.footer { background: var(--prugna); color: #FBE7EC; padding: 48px 0 calc(90px + env(safe-area-inset-bottom)); }
.footer a { color: #FFC2DD; }
.footer__inner { display: grid; gap: 24px; text-align: center; }
.logo-text--small { flex-direction: row; justify-content: center; gap: .3em; align-items: baseline; }
.logo-text--small .logo-text__a { font-size: 2rem; color: #FF7CC0; text-shadow: none; }
.logo-text--small .logo-text__b { font-size: 1.7rem; color: #FBE7EC; text-shadow: none; }
.footer__payoff { font-family: var(--f-title); font-style: italic; opacity: .85; max-width: 36ch; margin: 8px auto 0; }
.footer__links { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-weight: 700; }
.footer__legal { font-size: .85rem; opacity: .75; margin: 0; }
.footer__ig { display: inline-flex; padding: 8px; margin: -8px; border-radius: 12px; transition: color .2s ease; }
.footer__ig:hover { color: #fff; }

/* ---------- Pulsante WhatsApp fisso ---------- */
.wa-float {
  position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 50;
  display: flex; align-items: center; gap: 8px; text-decoration: none;
  transform: translateY(140%); opacity: 0; transition: transform .45s cubic-bezier(.2,.9,.3,1.2), opacity .3s;
}
.wa-float svg { width: 60px; height: 60px; padding: 14px; border-radius: 50%; background: #1FAE5B; color: #fff; box-shadow: 0 10px 24px -8px rgba(31,174,91,.7); }
.wa-float.is-visible { transform: none; opacity: 1; }
.wa-float__label {
  background: var(--bianco); color: var(--prugna); font-weight: 800; padding: .45em .85em; border-radius: 999px;
  box-shadow: var(--shadow-soft); opacity: 0; transform: translateX(8px); transition: all .3s ease; pointer-events: none;
}
.wa-float.show-label .wa-float__label { opacity: 1; transform: none; }


/* ---------- Animazioni all'ingresso ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.9,.3,1.15); transition-delay: calc(var(--i, 0) * 60ms); }
.reveal.is-visible { opacity: 1; transform: none; }

/* =========================================================
   TABLET / DESKTOP
   ========================================================= */
@media (min-width: 700px) {
  :root { --gutter: 28px; }
  .events { gap: 16px; }
  .services { grid-template-columns: 1fr 1fr; gap: 16px; }
  .steps { grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .review { flex-basis: 46%; }
  .wizard { padding: 30px 32px 30px; }
  .opts--cards { grid-template-columns: repeat(3, 1fr); }
  .opts--cards .card-opt:last-child:nth-child(3n + 1),
  .opts--cards .card-opt[data-value="altro"] { grid-column: 2; }
  .card-opt--mobile { display: none; }   /* "Altro" in "Cosa ti serve?" solo su telefono */
  .opts--colors { grid-template-columns: repeat(4, 1fr); }
  .about { grid-template-columns: 1fr 1.3fr; gap: 56px; }
  .about__visual { width: 100%; max-width: 340px; }
  .about__text { text-align: left; }
  .footer__inner { grid-template-columns: 1.4fr 1fr; text-align: left; align-items: start; }
  .footer__inner .logo-text--small { justify-content: flex-start; }
  .footer__payoff { margin-left: 0; }
  .footer__legal { grid-column: 1 / -1; }
}
@media (min-width: 1000px) {
  .section { padding: 104px 0; }
  .events { grid-template-columns: repeat(4, 1fr); }
  .events .event:last-child:nth-child(odd) { grid-column: span 1; }
  .services { grid-template-columns: repeat(6, 1fr); }
  .services .service { grid-column: span 2; }
  .services .service:last-child:nth-child(3n + 1) { grid-column: 3 / span 2; }
  /* Ultima riga con due box: centrati */
  .services .service:nth-last-child(2):nth-child(3n + 1) { grid-column: 2 / span 2; }
  .reviews { justify-content: center; }
  .review { flex-basis: 340px; }
}

/* ---------- Movimento ridotto ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
html.hero-static .hero { height: 100svh; height: 100lvh; }

/* Telefoni: la hero è un po' più alta dello schermo, così il video "sborda" sotto le barre di Safari
   e non resta mai una fascia vuota in fondo. Il fumetto "Scorri" si posiziona dall'alto per restare visibile. */
@media (hover: none) and (pointer: coarse) {
  .hero__sticky { height: calc(100vh + 120px); height: calc(100lvh + 120px); }
  .hero__hint { bottom: auto; top: calc(100vh - 110px); top: calc(100svh - 110px - env(safe-area-inset-bottom)); }
}

.service__icon { color: var(--fucsia); }
.service__icon svg { width: 30px; height: 30px; display: block; }
.service__icon-img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 2px 4px rgba(184, 0, 95, 0.1));
}

/* =========================================================
   COME FUNZIONA — percorso a tappe
   Telefono: blocchi tutti uguali a zig-zag, collegati da una linea tratteggiata curva.
   Computer: tre blocchi uguali in fila, uniti da un'onda tratteggiata che passa per i numeri.
   ========================================================= */
.journey { position: relative; max-width: 520px; margin: 8px auto 40px; --jw: 74%; --link: 46px; --pin: 54px; }
.journey__start { width: var(--jw); display: flex; flex-direction: column; align-items: center; margin-bottom: calc(var(--pin) / 2); }
.journey__start span {
  font-family: var(--f-script); font-weight: 700; font-size: 1.35rem; color: var(--fucsia);
  background: var(--bianco); padding: .1em .9em .2em; border-radius: 999px; box-shadow: var(--shadow-soft);
}
.journey__start::after { content: ""; width: 10px; height: 26px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 100' preserveAspectRatio='none'%3E%3Cpath d='M5 0 V100' fill='none' stroke='%23E6007E' stroke-width='2.5' stroke-linecap='round' stroke-dasharray='1 8' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E") no-repeat center / 100% 100%; }

.jsteps {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: 1fr; grid-auto-rows: 1fr;   /* 1fr = tutti i blocchi alti uguali */
  row-gap: calc(var(--link) + var(--pin) / 2);
}
.jstep {
  position: relative; width: var(--jw); justify-self: start;
  background: var(--bianco); border-radius: 28px; box-shadow: var(--shadow-soft);
  padding: calc(var(--pin) / 2 + 16px) 20px 22px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
}
.jstep:nth-child(even) { justify-self: end; }
.jstep__n {
  position: absolute; top: calc(var(--pin) / -2); left: 50%; transform: translateX(-50%);
  width: var(--pin); height: var(--pin); border-radius: 50%; display: grid; place-items: center;
  background: var(--fucsia); color: #fff; font-family: var(--f-title); font-weight: 700; font-size: 1.45rem;
  border: 5px solid var(--cipria); box-shadow: 0 8px 18px -8px rgba(230, 0, 126, .6); z-index: 1;
}
.jstep__icon { color: var(--fucsia); width: 38px; height: 38px; margin-bottom: 8px; }
.jstep__icon svg { width: 100%; height: 100%; display: block; }
.jstep h3 { font-size: 1.18rem; margin: 0 0 6px; }
.jstep p { margin: 0; color: var(--prugna-soft); font-size: .95rem; line-height: 1.45; }
/* collegamenti curvi tra un blocco e il successivo (e verso il traguardo) */
.jstep::after {
  content: ""; position: absolute; top: 100%; left: 50%; height: var(--link);
  width: calc((100% / 74 * 100 - 100%) * 1);  /* dal centro di questo blocco al centro del prossimo */
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M1 0 C1 55 99 45 99 100' fill='none' stroke='%23E6007E' stroke-width='2.5' stroke-linecap='round' stroke-dasharray='1 8' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E") no-repeat center / 100% 100%; pointer-events: none;
}
.jstep:nth-child(even)::after { left: auto; right: 50%; transform: scaleX(-1); }
.jstep:last-child::after { width: calc((100% / 74 * 100 - 100%) / 2); }   /* verso il traguardo al centro */

.journey__end { display: flex; flex-direction: column; align-items: center; gap: 4px; margin-top: var(--link); }
.journey__goal {
  width: 66px; height: 66px; border-radius: 50%; display: grid; place-items: center;
  background: var(--fucsia); color: #fff; border: 5px solid var(--cipria);
  box-shadow: 0 10px 22px -8px rgba(230, 0, 126, .6);
}
.journey__goal svg { width: 32px; height: 32px; }
.journey__label { font-family: var(--f-script); font-weight: 700; font-size: 1.6rem; color: var(--fucsia); }

@media (min-width: 900px) {
  .journey { max-width: 1040px; --pin: 58px; }
  .journey__start { display: none; }
  .jsteps { grid-template-columns: repeat(3, 1fr); column-gap: 36px; row-gap: 0; padding-top: 70px; position: relative; }
  .jsteps::before {   /* onda tratteggiata che unisce i tre numeri */
    content: ""; position: absolute; top: -3px; height: 40px; left: calc(100% / 6); right: calc(100% / 6);
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 40' preserveAspectRatio='none'%3E%3Cpath d='M0 20 C40 2 110 2 150 20 S260 38 300 20' fill='none' stroke='%23E6007E' stroke-width='2.5' stroke-linecap='round' stroke-dasharray='1 8' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
  }
  .jstep, .jstep:nth-child(even) { width: 100%; justify-self: stretch; padding-top: 34px; }
  .jstep__n { top: -82px; }
  .jstep::after, .jstep:nth-child(even)::after, .jstep:last-child::after {   /* trattino dal numero al blocco */
    top: -24px; left: calc(50% - 5px); right: auto; width: 10px; height: 24px; transform: none;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 100' preserveAspectRatio='none'%3E%3Cpath d='M5 0 V100' fill='none' stroke='%23E6007E' stroke-width='2.5' stroke-linecap='round' stroke-dasharray='1 8' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
  }
  .journey__end { margin-top: 30px; }
}

/* Footer: icone contatti una accanto all'altra */
.footer__contacts { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.footer__social { list-style: none; margin: 0; padding: 0; display: flex; justify-content: center; gap: 16px; }
.footer__social li[hidden] { display: none; }
.footer .social {
  display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%;
  color: #FFC2DD; background: rgba(255, 255, 255, .08); border: 1.5px solid rgba(255, 194, 221, .35);
  transition: background-color .2s ease, color .2s ease, transform .2s ease;
}
.footer .social svg { width: 26px; height: 26px; }
.footer .social:hover, .footer .social:focus-visible { background: var(--fucsia); border-color: var(--fucsia); color: #fff; transform: translateY(-2px); }
.footer__area { margin: 0; font-weight: 700; opacity: .85; }
@media (min-width: 700px) {
  .footer__contacts { align-items: flex-start; }
  .footer__social { justify-content: flex-start; }
}

/* Campo data su iPhone: Safari gli dà una larghezza minima propria e lo fa uscire dal riquadro.
   Lo riportiamo alla larghezza del form e allineiamo la data a sinistra. */
.field input[type="date"] {
  -webkit-appearance: none; appearance: none;
  display: block; width: 100%; max-width: 100%; min-width: 0; box-sizing: border-box;
  text-align: left; line-height: 1.2; min-height: 50px; background-color: #FFFBFC;
}
.field input[type="date"]::-webkit-date-and-time-value { text-align: left; margin: 0; }
.field input[type="date"]::-webkit-calendar-picker-indicator { opacity: .6; }
.field { min-width: 0; }

/* Hero su telefono (verticale): blocco finale centrato nello spazio libero dentro l'arco,
   tra i palloncini in alto e il pacco in basso, con elementi un po' più grandi e meno vuoti */
@media (orientation: portrait) {
  html:not(.hero-wide) .hero__final {
    top: 24vh; top: 24svh;          /* abbassato: il blocco sta al centro tra l'arco in alto e il pacco */
    height: 48vh; height: 48svh;
    justify-content: center; gap: 24px;
    width: min(84%, 440px);
  }
  html:not(.hero-wide) .hero__final .logo-text__a { font-size: clamp(3.6rem, 18vw, 6rem); }
  html:not(.hero-wide) .hero__final .logo-text__b { font-size: clamp(2.5rem, 11.5vw, 3.9rem); }
  html:not(.hero-wide) .hero__sub { font-size: 1.08rem; margin: 2px 0; text-wrap: balance; }
  html:not(.hero-wide) .hero__final .btn { min-height: 58px; padding-inline: 2em; font-size: 1.1rem; }
}
