/* ==========================================================================
   FrolliAMOci · pagina prezzi — frolliamoci.aegpromosystem.com
   Mobile-first, nessun JavaScript, font self-hosted.
   v2.2: stessa struttura, toni uniformi (avorio/crema/cacao + un solo accento corallo),
   ombre soffuse a più livelli, bordi sottili; l'apertura è una fotografia.
   ========================================================================== */

@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-latin-opsz.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("../fonts/nunito-latin-wght.woff2") format("woff2");
  font-weight: 200 1000; font-style: normal; font-display: swap;
}

:root {
  --ink: #2A140C;
  --cacao: #5C2E1C;
  --avorio: #FBF5EE;
  --crema: #FFFCF8;
  --sabbia: #F4EBE1;            /* fondo delle sezioni alternate: un passo appena sotto l'avorio */
  --line: rgba(92, 46, 28, .12);
  --line-strong: rgba(92, 46, 28, .22);
  --corallo: #E8445A;
  --corallo-strong: #C22E44;
  --corallo-soft: rgba(232, 68, 90, .07);
  --muted: #7A5A4B;

  /* ombre soffuse: un contatto stretto + una diffusione ampia, tinte di cacao (mai nero puro) */
  --sh-xs: 0 1px 2px rgba(60, 30, 18, .05);
  --sh: 0 1px 2px rgba(60, 30, 18, .04), 0 10px 30px -8px rgba(60, 30, 18, .12);
  --sh-lg: 0 2px 6px rgba(60, 30, 18, .05), 0 28px 60px -18px rgba(60, 30, 18, .22);
  --sh-coral: 0 2px 6px rgba(194, 46, 68, .10), 0 26px 60px -20px rgba(194, 46, 68, .32);
  --r: 18px;
  --r-lg: 26px;

  --f-display: "Fraunces", Georgia, "Times New Roman", serif;
  --f-ui: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --gutter: 16px;
  --wrap: 1240px;
  --dock-h: 0px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--avorio);
  color: var(--ink);
  font: 400 1rem/1.6 var(--f-ui);
  padding-bottom: calc(var(--dock-h) + env(safe-area-inset-bottom));
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--f-display); line-height: 1.04; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--corallo); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ink); color: var(--avorio); padding: 10px 14px; border-radius: 10px; }
.skip:focus { left: 8px; }

.i { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font: 800 .76rem/1 var(--f-ui); letter-spacing: .16em; text-transform: uppercase;
  color: var(--corallo-strong);
}
.kicker::before { content: ""; width: 20px; height: 2px; background: currentColor; border-radius: 2px; }

/* ---------- Pulsanti ---------- */
.btn {
  --bg: var(--crema); --fg: var(--ink); --bd: var(--line-strong);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px;
  background: var(--bg); color: var(--fg);
  border: 1px solid var(--bd); border-radius: 999px; box-shadow: var(--sh-xs);
  font: 800 1rem/1.1 var(--f-ui); text-decoration: none; text-align: center;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .2s;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--sh); }
.btn:active { transform: translateY(0); box-shadow: var(--sh-xs); }
.btn .i-arrow { transition: transform .25s var(--ease); }
.btn:hover .i-arrow { transform: translateX(4px); }
.btn--coral { --bg: var(--corallo); --fg: #fff; --bd: transparent; box-shadow: 0 1px 2px rgba(194, 46, 68, .2), 0 10px 24px -10px rgba(194, 46, 68, .55); }
.btn--coral:hover { --bg: #E03A51; box-shadow: var(--sh-coral); }
.btn--ink { --bg: var(--ink); --fg: var(--avorio); --bd: transparent; }
.btn--ink:hover { --bg: var(--cacao); }
.btn--line { --bg: var(--crema); --fg: var(--ink); --bd: var(--line-strong); }
.btn--line:hover { --bg: #fff; }
.btn--ghost { --bg: transparent; box-shadow: none; }
.btn--ghost:hover { --bg: var(--crema); }
.btn--sm { min-height: 44px; padding: 10px 18px; font-size: .92rem; }
.btn--block { display: flex; width: 100%; }

/* CTA principale: grande, morbida, con un alone che respira */
.btn--xl {
  display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; align-items: center;
  column-gap: 18px; padding: 18px 26px 18px 30px; border-radius: 22px; text-align: left; min-width: min(100%, 340px);
}
.btn--xl span { font: 800 clamp(1.45rem, 5.6vw, 2rem)/1 var(--f-display); letter-spacing: -0.02em; }
.btn--xl small { grid-row: 2; font: 800 .76rem/1.3 var(--f-ui); letter-spacing: .1em; text-transform: uppercase; opacity: .85; margin-top: 7px; }
.btn--xl .i { grid-row: 1 / span 2; grid-column: 2; width: 30px; height: 30px; stroke-width: 2.6; }
.btn--xl:hover { transform: translateY(-3px); }
.btn--xl.btn--coral::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  animation: halo 3s ease-out infinite;
}
@keyframes halo { 0% { box-shadow: 0 0 0 0 rgba(232, 68, 90, .35); } 70%, 100% { box-shadow: 0 0 0 18px rgba(232, 68, 90, 0); } }

/* ---------- Header ---------- */
.top { position: sticky; top: 0; z-index: 40; background: var(--ink); color: var(--avorio); box-shadow: 0 6px 24px -12px rgba(42, 20, 12, .5); }
.top__in { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.top__brand img { width: auto; height: 46px; max-width: 120px; }
.top__nav { display: none; margin-left: auto; gap: 4px; }
.top__nav a { padding: 10px 12px; border-radius: 999px; font-weight: 700; text-decoration: none; opacity: .9; }
.top__nav a:hover { background: rgba(251, 245, 238, .1); opacity: 1; }
.top .btn { margin-left: auto; }

/* ---------- Apertura ---------- */
.hero { position: relative; overflow: hidden;
  background:
    radial-gradient(1200px 600px at 85% 10%, rgba(232, 68, 90, .06), transparent 60%),
    var(--avorio);
}
.hero__grid { display: grid; gap: 36px; padding-block: 40px 56px; }
.hero__title {
  margin-top: 16px;
  font-size: clamp(2.5rem, 10.5vw, 5rem); font-weight: 800; font-variation-settings: "opsz" 144;
  text-wrap: balance;
}
.hero__title em { font-style: italic; color: var(--corallo-strong); white-space: nowrap; }
.hero__lead { margin-top: 20px; font-size: 1.12rem; max-width: 34em; color: var(--cacao); }
.hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 20px; margin-top: 30px; }
.proof { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 0; padding: 0; list-style: none; }
.proof li {
  padding: 7px 13px; border: 1px solid var(--line); border-radius: 999px; background: var(--crema);
  font-weight: 700; font-size: .86rem; color: var(--cacao); box-shadow: var(--sh-xs);
}
.proof li::before { content: "✓ "; color: var(--corallo-strong); font-weight: 900; }

/* fotografia dello smartphone con la webapp */
.hero__art { position: relative; width: 100%; max-width: 460px; justify-self: center; }
.hero__photo { margin: 0; aspect-ratio: 4 / 5; border-radius: var(--r-lg); overflow: hidden; background: var(--sabbia); box-shadow: var(--sh-lg); }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; }

/* slide dell'apertura: stessa cornice 4:5 della fotografia */
.hs { position: relative; aspect-ratio: 4 / 5; border-radius: var(--r-lg); overflow: hidden; background: var(--sabbia); box-shadow: var(--sh-lg); isolation: isolate; }
.hs__track { display: flex; height: 100%; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; }
.hs__track::-webkit-scrollbar { display: none; }
.hs__track:focus-visible { outline-offset: -4px; }
.hs__slide { position: relative; flex: 0 0 100%; height: 100%; margin: 0; scroll-snap-align: start; scroll-snap-stop: always; }
.hs__slide > img, .hs__video img { width: 100%; height: 100%; object-fit: cover; }
.hs__video { position: absolute; inset: 0; display: block; color: #fff; text-decoration: none; background: radial-gradient(120% 90% at 70% 20%, #8A4A2C, #3E2016 70%); }
.hs__video::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(30, 14, 8, 0) 45%, rgba(30, 14, 8, .62)); }
.hs__play {
  position: absolute; z-index: 1; left: 50%; top: 46%; translate: -50% -50%; display: grid; place-items: center; width: 84px; height: 84px; border-radius: 50%;
  background: rgba(255, 252, 248, .92); color: var(--corallo-strong); box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .5); transition: transform .3s var(--ease);
}
.hs__play .i { width: 34px; height: 34px; margin-left: 4px; stroke: none; }
.hs__video:hover .hs__play, .hs__video:focus-visible .hs__play { transform: scale(1.07); }
.hs__vtitle { position: absolute; z-index: 1; left: 22px; right: 22px; bottom: 44px; font: 700 1.35rem/1.15 var(--f-display); text-shadow: 0 2px 12px rgba(0, 0, 0, .35); }
.hs__vtitle small { display: block; margin-top: 6px; font: 800 .74rem/1 var(--f-ui); letter-spacing: .12em; text-transform: uppercase; opacity: .9; }
.hs__note { position: absolute; z-index: 1; left: 22px; right: 22px; bottom: 16px; font-size: .72rem; line-height: 1.35; color: rgba(255, 255, 255, .8); }
.hs__note a { color: #fff; }
.hs__frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.hs__arrow {
  position: absolute; z-index: 2; top: 50%; translate: 0 -50%; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(255, 252, 248, .88); color: var(--ink); box-shadow: var(--sh); opacity: 0; transition: opacity .3s, transform .3s var(--ease);
}
.hs__arrow--prev { left: 14px; } .hs__arrow--prev .i { transform: rotate(180deg); }
.hs__arrow--next { right: 14px; }
.hs:hover .hs__arrow, .hs__arrow:focus-visible { opacity: 1; }
.hs__dots { position: absolute; z-index: 2; left: 50%; bottom: 14px; translate: -50% 0; display: flex; gap: 2px; padding: 4px 6px; border-radius: 999px; background: rgba(42, 20, 12, .32); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.hs__dots button { width: 24px; height: 24px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.hs__dots button::before { content: ""; width: 7px; height: 7px; border-radius: 999px; background: rgba(255, 255, 255, .6); transition: width .3s var(--ease), background-color .3s; }
.hs__dots button[aria-current]::before { width: 18px; background: #fff; }
/* con più slide le didascalie del video salgono sopra i pallini */
.hs.is-js:has(.hs__dots) .hs__vtitle { bottom: 70px; } .hs.is-js:has(.hs__dots) .hs__note { bottom: 50px; text-align: center; }
@media (max-width: 560px) { .hs__vtitle { bottom: 60px; } .hs.is-js:has(.hs__dots) .hs__vtitle { bottom: 94px; } }
@media (hover: none) { .hs__arrow { display: none; } }

.sticker {
  position: absolute; z-index: 3; top: -18px; left: -14px;
  display: grid; place-items: center; width: 104px; aspect-ratio: 1;
  background: var(--corallo); color: #fff; border-radius: 50%;
  box-shadow: var(--sh-coral); text-align: center; line-height: 1;
}
.sticker b { display: block; font: 800 2.5rem/0.9 var(--f-display); }
.sticker span { font: 800 .72rem/1.05 var(--f-ui); text-transform: uppercase; letter-spacing: .08em; margin-top: -16px; }

/* nastro scorrevole, discreto */
.marquee { background: var(--crema); color: var(--cacao); overflow: hidden; border-block: 1px solid var(--line); }
.marquee__track { display: flex; width: max-content; gap: 26px; padding: 15px 0; animation: marquee 48s linear infinite; }
.marquee__track span { font: 700 1.05rem/1 var(--f-display); white-space: nowrap; letter-spacing: -0.005em; }
.marquee__track span:nth-child(even) { color: var(--corallo); opacity: .7; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sezioni ---------- */
section { position: relative; }
.plans-sec, .cmp-sec, .feat-sec, .steps-sec, .faq-sec { padding-block: 72px; }
.sec-head { text-align: center; max-width: 720px; margin: 0 auto 36px; }
.sec-head h2 { margin-top: 14px; font-size: clamp(2rem, 7.5vw, 3.4rem); font-weight: 800; font-variation-settings: "opsz" 120; text-wrap: balance; }
.sec-head p:not(.kicker) { margin-top: 14px; color: var(--muted); font-size: 1.06rem; }
.sec-head--left { text-align: left; margin-inline: 0; }

/* ---------- Selettore mensile/annuale ---------- */
.period-radio { position: absolute; opacity: 0; pointer-events: none; }
.period {
  display: flex; width: max-content; max-width: 100%; margin: 0 auto 44px; padding: 5px;
  background: var(--crema); border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--sh);
}
.period label {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 16px; white-space: nowrap;
  border-radius: 999px; font-weight: 800; cursor: pointer; user-select: none; color: var(--cacao); transition: background-color .2s, color .2s;
}
.period .pill { white-space: nowrap; padding: 3px 9px; border-radius: 999px; background: var(--corallo-soft); color: var(--corallo-strong); font-size: .72rem; font-weight: 800; }
#p-mese:checked ~ .period label[for="p-mese"],
#p-anno:checked ~ .period label[for="p-anno"] { background: var(--ink); color: var(--avorio); }
#p-anno:checked ~ .period label[for="p-anno"] .pill { background: rgba(255, 255, 255, .14); color: var(--avorio); }
#p-mese:focus-visible ~ .period label[for="p-mese"],
#p-anno:focus-visible ~ .period label[for="p-anno"] { outline: 2px solid var(--corallo); outline-offset: 2px; }
#p-mese:checked ~ .plans .y,
#p-anno:checked ~ .plans .m { display: none; }

/* ---------- Card dei piani: stessa superficie per tutti, il consigliato si distingue per bordo e alone ---------- */
.plans { display: grid; gap: 22px; align-items: stretch; }
.plan {
  position: relative; display: flex; flex-direction: column; gap: 18px;
  padding: 30px 24px 26px; background: var(--crema);
  border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.plan:hover { transform: translateY(-4px); box-shadow: var(--sh-lg); }
.plan.is-rec { border: 2px solid var(--corallo); box-shadow: var(--sh-coral); }
.plan.is-rec:hover { box-shadow: 0 2px 6px rgba(194, 46, 68, .12), 0 34px 70px -22px rgba(194, 46, 68, .38); }
.plan__badge {
  position: absolute; top: -30px; left: 50%; translate: -50% 0; z-index: 3; margin: 0;
  display: flex; flex-direction: column; align-items: center; pointer-events: none;
}
/* il nastro della scatola dei pasticcini: fiocco + banda a coda di rondine, raso appena lucido */
.plan__badge span {
  margin-top: -6px; padding: 7px 24px 8px; white-space: nowrap;
  background: linear-gradient(180deg, #EF6176 0%, #E8445A 45%, #D93A50 100%); color: #fff;
  font: 800 .72rem/1 var(--f-ui); letter-spacing: .14em; text-transform: uppercase;
  clip-path: polygon(0 0, 100% 0, calc(100% - 9px) 50%, 100% 100%, 0 100%, 9px 50%);
  filter: drop-shadow(0 6px 10px rgba(194, 46, 68, .28));
}
.bow { position: relative; z-index: 1; width: 44px; height: 26px; fill: #E8445A; stroke: #C22E44; stroke-width: 1.1; stroke-linejoin: round; filter: drop-shadow(0 3px 4px rgba(194, 46, 68, .25)); }
.bow circle { fill: #D93A50; }

/* motivi di pasticceria: disegno a filo in filigrana, dietro al testo */
.plan > *:not(.plan__motif):not(.plan__badge) { position: relative; z-index: 1; }
.plan__motif {
  position: absolute; right: 18px; top: 74px; width: 92px; height: 92px; z-index: 0; pointer-events: none;
  fill: none; stroke: var(--corallo-strong); stroke-width: 1.25; stroke-linecap: round; stroke-linejoin: round; opacity: .16;
  transition: opacity .4s var(--ease), transform .6s var(--ease);
}
.plan:hover .plan__motif { opacity: .2; transform: translateY(-3px) rotate(-3deg); }
.plan.is-rec .plan__motif { opacity: .24; top: 66px; }
/* bordo a pizzo, come il pirottino di carta: in alto nella card e sopra l'elenco */
.plan::before {
  content: ""; position: absolute; top: 12px; left: 28px; right: 28px; height: 7px; pointer-events: none;
  background: radial-gradient(circle at 6px 0, transparent 4.2px, rgba(194, 46, 68, .26) 4.8px, transparent 5.6px) 0 0 / 12px 7px repeat-x;
}
.plan.is-rec::before { top: 22px; }
.plan__head { margin-top: 8px; display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.plan__head h3 { font-size: 1.9rem; font-weight: 800; }
.plan__flavour { font: italic 500 1rem/1 var(--f-display); color: var(--muted); }
.plan__price { min-height: 92px; }
.amount { display: flex; align-items: flex-start; gap: 2px; font: 700 3.8rem/0.9 var(--f-display); letter-spacing: -0.04em; font-variation-settings: "opsz" 144; }
.plan.is-rec .amount { color: var(--corallo-strong); }
.amount .cur { font-size: 1.5rem; margin-top: 6px; letter-spacing: 0; }
.amount .from { font: 700 .88rem/1 var(--f-ui); margin: 10px 6px 0 0; letter-spacing: 0; align-self: flex-start; color: var(--muted); }
.per { margin-top: 8px; font-weight: 700; font-size: .88rem; color: var(--muted); }
.plan__pitch { font-size: .98rem; min-height: 4.6em; color: var(--cacao); }
.plan__list { display: grid; gap: 10px; margin: 4px 0 0; padding: 22px 0 0; list-style: none; }
.plan__list::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 7px;
  background: radial-gradient(circle at 6px 0, transparent 4.2px, rgba(194, 46, 68, .22) 4.8px, transparent 5.6px) 0 0 / 12px 7px repeat-x;
}
.plan__list li { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; font-size: .95rem; line-height: 1.4; }
.plan__list .i { margin-top: 2px; color: var(--corallo-strong); stroke-width: 2.6; }
.plan__limits { margin-top: auto; padding-top: 6px; font-size: .82rem; font-weight: 700; color: var(--muted); }
.fine { margin: 32px auto 0; max-width: 720px; text-align: center; font-size: .9rem; color: var(--muted); }

/* ---------- Tabella di confronto ---------- */
.cmp-sec { background: var(--sabbia); }
.scroll-hint { display: flex; align-items: center; justify-content: flex-end; gap: 6px; margin-bottom: 8px; font-weight: 700; font-size: .85rem; color: var(--muted); }
.cmp-wrap {
  position: relative; overflow-x: auto; -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh); background: var(--crema);
}
.cmp { width: 100%; min-width: 540px; table-layout: fixed; border-collapse: separate; border-spacing: 0; font-size: .92rem; }
.cmp th, .cmp td { padding: 13px 10px; border-bottom: 1px solid var(--line); text-align: center; vertical-align: middle; }
.cmp tbody th[scope="row"] {
  position: sticky; left: 0; z-index: 1; width: 42%;
  text-align: left; font-weight: 600; background: var(--crema); color: var(--ink);
  box-shadow: 1px 0 0 var(--line);
}
.cmp thead th, .cmp thead td { background: var(--crema); color: var(--ink); border-bottom: 1px solid var(--line-strong); }
.cmp thead td.cmp__corner { position: sticky; left: 0; z-index: 2; width: 30%; box-shadow: 1px 0 0 var(--line); }
.cmp thead th { padding: 18px 8px 16px; }
.cmp thead th.is-rec { color: var(--corallo-strong); }
.cmp__name { display: block; font: 800 1.15rem/1 var(--f-display); }
.cmp__price { display: block; margin-top: 6px; font-size: .74rem; font-weight: 700; color: var(--muted); white-space: nowrap; }
.cmp th.is-rec, .cmp td.is-rec { background-color: var(--corallo-soft); }
.cmp__group th {
  position: sticky; left: 0; padding: 22px 10px 10px; text-align: left; background: var(--crema);
  font: 800 .74rem/1 var(--f-ui); letter-spacing: .16em; text-transform: uppercase; color: var(--corallo-strong);
}
.cmp .yes { vertical-align: middle; display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: rgba(92, 46, 28, .08); color: var(--cacao); }
.cmp .yes .i { width: 16px; height: 16px; stroke-width: 2.8; }
.cmp td.is-rec .yes { background: rgba(194, 46, 68, .12); color: var(--corallo-strong); }
.cmp .no { display: inline-grid; place-items: center; width: 28px; height: 28px; vertical-align: middle; color: rgba(92, 46, 28, .3); }
.cmp .val { font-weight: 800; font-size: .84rem; line-height: 1.2; display: inline-block; color: var(--cacao); }
.cmp .soon { display: inline-block; padding: 4px 9px; border: 1px dashed var(--line-strong); border-radius: 999px; font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.cmp tbody tr:not(.cmp__group):hover th[scope="row"],
.cmp tbody tr:not(.cmp__group):hover td { background-color: var(--avorio); }
.cmp tbody tr:not(.cmp__group):hover td.is-rec { background-color: rgba(232, 68, 90, .1); }
.cmp tfoot td { border-bottom: 0; padding: 18px 8px; }
.cmp tfoot td:first-child { position: sticky; left: 0; background: var(--crema); box-shadow: 1px 0 0 var(--line); }
.cmp tfoot .btn { min-height: 44px; padding: 8px 14px; font-size: .82rem; white-space: nowrap; }

/* ---------- Riquadri funzioni: una sola superficie, il colore arriva dalle fotografie ---------- */
.bento { display: grid; gap: 20px; }
.b {
  position: relative; display: flex; flex-direction: column; gap: 12px; padding: 26px 24px;
  background: var(--crema); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease); overflow: hidden;
}
.b:hover { transform: translateY(-4px); box-shadow: var(--sh-lg); }
.b h3 { font-size: 1.5rem; font-weight: 700; font-variation-settings: "opsz" 72; }
.b p { font-size: 1rem; color: var(--cacao); }
.b__tag {
  align-self: flex-start; margin-top: auto; padding: 5px 11px; border-radius: 999px;
  background: var(--corallo-soft); color: var(--corallo-strong);
  font: 800 .7rem/1 var(--f-ui); letter-spacing: .1em; text-transform: uppercase;
}
.b--ivory { background: var(--avorio); }
.b--ink { background: var(--ink); color: var(--avorio); border-color: transparent; }
.b--ink p { color: rgba(251, 245, 238, .82); }
.b--ink .b__tag { background: rgba(255, 255, 255, .1); color: var(--avorio); }
.b__img { margin: -26px -24px 6px; aspect-ratio: 16 / 9; overflow: hidden; background: var(--sabbia); }
.b__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.b:hover .b__img img { transform: scale(1.03); }

/* ---------- Passi ---------- */
.steps-sec { background: var(--avorio); }
.steps { display: grid; gap: 20px; margin: 0; padding: 0; list-style: none; }
.steps li { display: grid; gap: 10px; padding: 28px 24px; background: var(--crema); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh); }
.steps b { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--corallo-soft); color: var(--corallo-strong); font: 800 1.6rem/1 var(--f-display); }
.steps h3 { font-size: 1.45rem; font-weight: 700; }
.steps p { color: var(--cacao); }

/* ---------- FAQ ---------- */
.faq-sec { background: var(--sabbia); }
.faq-grid { display: grid; gap: 28px; }
.faq-sec .sec-head .btn { margin-top: 22px; }
.faq { display: grid; gap: 12px; }
.faq details { background: var(--crema); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh-xs); transition: box-shadow .3s var(--ease); }
.faq details[open] { box-shadow: var(--sh); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 56px; padding: 18px 20px; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary h3 { font: 700 1.1rem/1.3 var(--f-ui); letter-spacing: 0; }
.faq summary .i { width: 28px; height: 28px; padding: 6px; border-radius: 50%; background: var(--corallo-soft); color: var(--corallo-strong); transition: transform .3s var(--ease); }
.faq details[open] summary .i { transform: rotate(45deg); }
.faq details p { padding: 0 20px 20px; color: var(--cacao); }

/* ---------- CTA finale ---------- */
.final { background: var(--avorio); overflow: hidden; }
.final__in {
  position: relative; display: grid; gap: 28px; justify-items: start; margin-block: 72px; padding: 48px 28px;
  background: var(--crema); border: 1px solid var(--line); border-radius: 32px; box-shadow: var(--sh-lg);
}
.final h2 { font-size: clamp(2.2rem, 8vw, 4rem); font-weight: 800; max-width: 17ch; text-wrap: balance; }
.final h2 span { display: block; font-style: italic; color: var(--corallo-strong); }

/* ---------- Footer ---------- */
.foot { background: var(--ink); color: var(--avorio); }
.foot__in { display: grid; gap: 28px; padding-block: 48px; }
.foot__brand img { width: auto; height: 64px; }
.foot__brand p { margin-top: 12px; max-width: 32em; opacity: .75; }
.foot__data { font-style: normal; line-height: 1.75; opacity: .88; }
.foot__data a, .foot__credit a { color: #F3C9C0; text-underline-offset: 3px; }
.foot__credit { font-size: .9rem; opacity: .75; }
.foot__side { display: grid; gap: 14px; align-content: start; }
.foot__legal { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0; padding: 0; list-style: none; font-weight: 700; }
.foot__legal a { color: var(--avorio); text-underline-offset: 3px; }
.foot__legal a:hover { color: #F3C9C0; }

/* ---------- Pagine legali ---------- */
.is-legal { --dock-h: 0px; }
.legal { padding-block: 48px 72px; }
.legal__in { max-width: 820px; }
.legal .kicker a { text-decoration: none; }
.legal h1 { margin-top: 14px; font-size: clamp(2.2rem, 8vw, 3.4rem); font-weight: 800; }
.legal__date { margin-top: 12px; font-weight: 700; font-size: .9rem; color: var(--muted); }
.legal__body { margin-top: 32px; padding: 28px 22px; background: var(--crema); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh); }
.legal__body h2 { margin: 32px 0 10px; font-size: 1.45rem; font-weight: 700; }
.legal__body h2:first-child { margin-top: 0; }
.legal__body h3 { margin: 22px 0 8px; font: 800 1.1rem/1.3 var(--f-ui); }
.legal__body p, .legal__body ul { margin: 0 0 14px; max-width: 68ch; color: var(--cacao); }
.legal__body ul { padding-left: 1.2em; }
.legal__body li { margin-bottom: 8px; }
.legal__body li::marker { color: var(--corallo-strong); }
.legal__body strong { color: var(--ink); }
.legal__body a { color: var(--corallo-strong); font-weight: 700; text-underline-offset: 3px; }
.legal__back { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
@media (min-width: 768px) { .legal { padding-block: 72px 96px; } .legal__body { padding: 44px 48px; } }

/* ---------- Barra fissa mobile ---------- */
.dock {
  position: fixed; inset: auto 0 0; z-index: 50;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: rgba(251, 245, 238, .9); box-shadow: 0 -10px 30px -16px rgba(60, 30, 18, .3);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.dock .btn { min-height: 52px; font-size: 1.05rem; }
body.is-home { --dock-h: 76px; }

/* ==========================================================================
   Breakpoint
   ========================================================================== */
@media (min-width: 560px) {
  .bento { grid-template-columns: 1fr 1fr; }
  .b--wide { grid-column: span 2; }
  .steps { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 768px) {
  :root { --gutter: 28px; }
  .cmp { min-width: 0; }
  .plans { grid-template-columns: 1fr 1fr; }
  .hero__grid { grid-template-columns: 1.15fr .85fr; align-items: center; padding-block: 64px 84px; }
  .plans-sec, .cmp-sec, .feat-sec, .steps-sec, .faq-sec { padding-block: 104px; }
  .faq-grid { grid-template-columns: .8fr 1.2fr; align-items: start; }
  .faq-sec .sec-head { position: sticky; top: 100px; }
  .final__in { grid-template-columns: 1fr auto; align-items: center; margin-block: 96px; padding: 64px 56px; }
  .foot__in { grid-template-columns: 1.2fr 1fr 1fr; align-items: start; }
  .scroll-hint { display: none; }
  .sticker { top: -22px; left: -22px; width: 112px; }
}

@media (min-width: 900px) {
  .dock { display: none; }
  body.is-home { --dock-h: 0px; }
  .top__nav { display: flex; }
  .top .btn { margin-left: 8px; }
  .cmp-wrap { overflow: clip; }
  .cmp thead th, .cmp thead td { position: sticky; top: 64px; z-index: 3; }
  .cmp thead td.cmp__corner { z-index: 4; border-top-left-radius: calc(var(--r-lg) - 1px); width: 36%; }
  .cmp thead th:last-child { border-top-right-radius: calc(var(--r-lg) - 1px); }
  .cmp { font-size: .98rem; }
  .bento { grid-template-columns: repeat(4, 1fr); grid-auto-flow: dense; }
  .b--wide { grid-column: span 2; }
  .b--tall { grid-row: span 2; }
}

@media (min-width: 1100px) {
  .plans { grid-template-columns: repeat(4, 1fr); gap: 20px; padding-top: 16px; }
  .plan.is-rec { transform: translateY(-12px); z-index: 1; }
  .plan.is-rec:hover { transform: translateY(-16px); }
  .plan__pitch { min-height: 6.4em; }
  .hero__art { max-width: 500px; }
}

@media (min-width: 1100px) and (max-width: 1299px) {
  .plan__motif { width: 70px; height: 70px; right: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

@media print {
  .top, .dock, .marquee, .sticker { display: none !important; }
  .plan, .b, .btn, .cmp-wrap { box-shadow: none !important; }
}
