:root {
  --navy: #0b2a6b;
  --navy-2: #13398f;
  --blue: #1565c0;
  --red: #e30613;
  --red-dark: #b8000c;
  --green: #1e9e4a;
  --ink: #1b2233;
  --muted: #4d5770;
  --soft: #f2f6fc;
  --line: #d9e1ef;
  --white: #fff;
  --radius: 18px;
  --shadow: 0 8px 28px rgba(11, 42, 107, .12);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--white);
  padding-bottom: 84px; /* spazio per la barra fissa */
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
b, strong { font-weight: 800; }

.wrap { max-width: 640px; margin: 0 auto; padding: 0 16px; }
.center { text-align: center; }

/* Barra offerta */
.topbar {
  background: var(--red);
  color: #fff;
  text-align: center;
  font-size: 16px;
  font-weight: 700;
  padding: 8px 12px;
}
.topbar__badge {
  display: inline-block;
  background: #fff;
  color: var(--red);
  border-radius: 6px;
  padding: 0 7px;
  margin-right: 6px;
  font-weight: 900;
}
.topbar s { opacity: .85; }

/* Header */
.header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 255, 255, .97);
  border-bottom: 1px solid var(--line);
}
.header__in { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.logo { text-decoration: none; display: inline-flex; align-items: baseline; gap: 2px; line-height: 1; }
.logo__a { color: var(--navy); font-weight: 900; font-size: 24px; font-style: italic; }
.logo__f { color: var(--blue); font-weight: 900; font-size: 24px; font-style: italic; }
.logo__act { color: var(--red); font-weight: 900; font-size: 13px; letter-spacing: 2px; margin-left: 6px; }
.header__cta {
  background: var(--red); color: #fff; text-decoration: none;
  font-weight: 800; font-size: 17px; padding: 10px 18px; border-radius: 999px;
}

/* Hero */
.hero { padding-bottom: 36px; }
.hero__img { width: 100%; }
.hero__title {
  font-size: 32px; line-height: 1.15; font-weight: 900; color: var(--navy);
  margin: 22px 0 12px;
}
.hl {
  background: var(--red); color: #fff; padding: 0 8px; border-radius: 8px; white-space: nowrap;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.hero__lead { margin: 0 0 16px; color: var(--muted); }

.ticks { list-style: none; padding: 0; margin: 0 0 22px; }
.ticks li {
  position: relative; padding-left: 38px; margin: 10px 0; font-weight: 700;
}
.ticks li::before {
  content: "✓"; position: absolute; left: 0; top: 1px;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--green); color: #fff; font-size: 16px; font-weight: 900;
  display: grid; place-items: center;
}

/* Prezzo */
.price-card {
  border: 3px solid var(--red); border-radius: var(--radius);
  padding: 16px; margin-bottom: 18px; background: #fff7f7;
}
.price-card__label { text-align: center; font-weight: 800; color: var(--red); text-transform: uppercase; font-size: 15px; letter-spacing: .5px; }
.price-card__row { display: flex; align-items: center; justify-content: space-around; gap: 8px; margin: 8px 0 4px; }
.price-card__note { text-align: center; font-weight: 700; color: var(--green); font-size: 17px; }
.price-old, .price-new { display: flex; flex-direction: column; align-items: center; }
.price-old span, .price-new span { font-size: 14px; color: var(--muted); font-weight: 700; }
.price-old s { font-size: 26px; color: #8a93a8; font-weight: 800; text-decoration-color: var(--red); text-decoration-thickness: 3px; }
.price-new strong { font-size: 48px; color: var(--red); line-height: 1; font-weight: 900; }
.price-save {
  background: var(--red); color: #fff; font-weight: 900; font-size: 22px;
  width: 70px; height: 70px; border-radius: 50%; display: grid; place-items: center;
  transform: rotate(-10deg);
}

/* Bottoni */
.btn {
  display: block; text-align: center; text-decoration: none; cursor: pointer;
  background: linear-gradient(180deg, #ff1f2d, var(--red));
  color: #fff; font-family: inherit; font-weight: 900; font-size: 20px;
  border: 0; border-radius: 999px; padding: 16px 22px;
  box-shadow: 0 6px 0 var(--red-dark), 0 10px 22px rgba(227, 6, 19, .3);
  transition: transform .1s, box-shadow .1s;
}
.btn:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--red-dark); }
.btn--big { font-size: 22px; padding: 20px 22px; min-height: 64px; }
.btn--full { width: 100%; }
.btn--white { background: #fff; color: var(--red); box-shadow: 0 6px 0 #c9d3e6; }
.btn:focus-visible, input:focus-visible, summary:focus-visible, .header__cta:focus-visible {
  outline: 4px solid #ffb300; outline-offset: 3px;
}
.micro { text-align: center; font-size: 16px; color: var(--muted); margin: 14px 0 0; }

/* Sezioni */
.section { padding: 44px 0; }
.section--soft { background: var(--soft); }
.section--navy { background: var(--navy); color: #fff; }
.h2 { font-size: 28px; line-height: 1.2; font-weight: 900; color: var(--navy); text-align: center; margin: 0 0 18px; }
.h2--light { color: #fff; }
.text { margin: 18px 0 0; }
.rimg { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); margin: 6px 0 20px; }

/* Problema */
.pains { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.pains li {
  display: flex; align-items: center; gap: 12px;
  background: #fff; border-radius: 14px; padding: 14px 16px; font-weight: 700;
  border-left: 5px solid var(--red); box-shadow: 0 2px 8px rgba(0, 0, 0, .05);
}
.pains li::before {
  content: "!"; flex: none; width: 30px; height: 30px; border-radius: 50%;
  background: #ffe3e5; color: var(--red); font-weight: 900; display: grid; place-items: center;
}
[id] { scroll-margin-top: 72px; }

/* Ingredienti */
.ingr { display: grid; gap: 12px; }
.ingr__item {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--soft); border-radius: 14px; padding: 14px;
}
.ingr__item b { display: block; font-size: 20px; color: var(--navy); }
.ingr__item span { display: block; color: var(--muted); font-size: 17px; line-height: 1.45; }
.ingr__dot {
  flex: none; width: 46px; height: 46px; border-radius: 50%;
  background: var(--c); color: #fff; font-weight: 900; font-size: 17px;
  display: grid; place-items: center;
}

/* Vantaggi */
.feats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 28px; }
.feat {
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 16px; padding: 16px 12px; text-align: center;
}
.feat__ic { display: block; width: 44px; height: 44px; margin: 0 auto 8px; }
.feat b { display: block; font-size: 18px; margin-bottom: 4px; }
.feat span { display: block; font-size: 16px; line-height: 1.4; opacity: .9; }

/* Passi */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.steps li {
  display: flex; gap: 14px; align-items: center;
  border: 2px solid var(--line); border-radius: 16px; padding: 14px 16px;
}
.steps li b { display: block; color: var(--navy); font-size: 20px; }
.steps__n {
  flex: none; width: 46px; height: 46px; border-radius: 50%;
  background: var(--navy); color: #fff; font-weight: 900; font-size: 22px;
  display: grid; place-items: center;
}

/* Ordine */
.order { background: linear-gradient(180deg, var(--soft), #fff); }
.order__card {
  position: relative; background: #fff; border-radius: 24px;
  border: 3px solid var(--red); box-shadow: var(--shadow);
  padding: 30px 16px 24px; overflow: hidden;
}
.order__ribbon {
  position: absolute; top: 18px; right: -42px; transform: rotate(35deg);
  background: var(--red); color: #fff; font-weight: 900; font-size: 15px;
  padding: 6px 48px;
}
.order__img { width: 78%; margin: 0 auto 8px; border-radius: 16px; }
.order__price { display: flex; justify-content: center; align-items: center; gap: 28px; }
.order__per { text-align: center; color: var(--muted); margin: 4px 0 18px; font-size: 16px; }

.form { display: grid; gap: 6px; }
.field { margin-bottom: 8px; }
.field label { display: block; font-weight: 800; font-size: 19px; margin-bottom: 6px; color: var(--navy); }
.field input, .phone {
  width: 100%; font: inherit; font-size: 20px;
  border: 2px solid #b8c4dc; border-radius: 14px; background: #fff;
  min-height: 60px;
}
.field input { padding: 12px 16px; }
.field input:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 4px rgba(21, 101, 192, .18); }
.phone { display: flex; align-items: stretch; overflow: hidden; }
.phone:focus-within { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(21, 101, 192, .18); }
.phone__pre {
  display: flex; align-items: center; padding: 0 12px; background: var(--soft);
  border-right: 2px solid #b8c4dc; font-weight: 800; white-space: nowrap; font-size: 18px;
}
.phone input { border: 0 !important; box-shadow: none !important; min-height: 56px; border-radius: 0; }
.field.is-error input, .field.is-error .phone { border-color: var(--red); background: #fff5f5; }
.field.is-valid .phone { border-color: var(--green); }
.field__hint { color: var(--muted); font-size: 15px; margin: 6px 0 0; }
.field__err { color: var(--red); font-weight: 700; font-size: 16px; margin: 6px 0 0; min-height: 0; }
.field__err:empty { display: none; }

.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; color: var(--muted); line-height: 1.45; margin: 4px 0 4px; cursor: pointer; }
.consent input { width: 28px; height: 28px; flex: none; margin: 0; accent-color: var(--red); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.form .btn { margin-top: 12px; }
.btn[disabled] { opacity: .7; pointer-events: none; }

.alert {
  padding: 12px 14px; border-radius: 12px; background: #fdecea; color: #b3261e;
  font-weight: 700; font-size: 17px; margin-top: 8px;
}
.alert--info { background: #e8f1fd; color: var(--navy); }

/* Banner consenso cookie (Meta Pixel) */
.cookie {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 40;
  max-width: 576px; margin: 0 auto; background: #fff; color: var(--ink);
  border: 1px solid var(--line); border-radius: 18px; padding: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, .22); font-size: 16px; line-height: 1.45;
}
.cookie p { margin: 0 0 12px; }
.cookie__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cookie__actions button {
  min-height: 52px; border-radius: 12px; font: inherit; font-size: 18px; font-weight: 800; cursor: pointer;
  border: 2px solid var(--navy); background: #fff; color: var(--navy);
}
.cookie__actions button.accept { background: var(--navy); color: #fff; }
.cookie__actions button:focus-visible { outline: 4px solid #ffb300; outline-offset: 2px; }

.assure { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 6px; font-size: 16px; color: var(--muted); font-weight: 700; }

.thanks { text-align: center; padding: 10px 4px; outline: none; }
.thanks__ic {
  width: 80px; height: 80px; border-radius: 50%; background: var(--green); color: #fff;
  font-size: 46px; font-weight: 900; display: grid; place-items: center; margin: 0 auto 12px;
}
.thanks h3 { font-size: 28px; color: var(--navy); margin: 0 0 10px; }

/* FAQ */
.faq { display: grid; gap: 10px; margin-bottom: 28px; }
.faq details { background: #fff; border-radius: 14px; border: 2px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 16px 52px 16px 16px; position: relative;
  font-weight: 800; color: var(--navy); min-height: 56px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  width: 30px; height: 30px; border-radius: 50%; background: var(--navy); color: #fff;
  display: grid; place-items: center; font-weight: 900; font-size: 22px; line-height: 1;
}
.faq details[open] summary::after { content: "−"; background: var(--red); }
.faq details p { margin: 0; padding: 0 16px 16px; color: var(--muted); }

/* Footer */
.footer { background: #0a1d47; color: #c8d2e8; font-size: 15px; padding: 32px 0 24px; }
.footer p { margin: 0 0 12px; }
.logo--foot { margin-bottom: 14px; }
.logo--foot .logo__a { color: #fff; }
.logo--foot .logo__f { color: #6fb2ff; }
.footer__copy { opacity: .7; }

/* Barra fissa */
.sticky {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: flex; align-items: center; gap: 12px; justify-content: space-between;
  background: #fff; border-top: 1px solid var(--line);
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  box-shadow: 0 -6px 20px rgba(0, 0, 0, .08);
  transition: transform .25s;
}
.sticky.is-hidden { transform: translateY(110%); }
.sticky__price { line-height: 1.1; }
.sticky__price s { color: #8a93a8; font-weight: 700; font-size: 17px; display: block; }
.sticky__price strong { color: var(--red); font-size: 30px; font-weight: 900; }
.sticky__btn { flex: 1; max-width: 260px; padding: 14px 18px; font-size: 20px; }

/* Schermi più grandi */
@media (min-width: 720px) {
  body { font-size: 20px; padding-bottom: 0; }
  .wrap { max-width: 720px; }
  .hero__title { font-size: 44px; }
  .h2 { font-size: 36px; }
  .feats { grid-template-columns: repeat(4, 1fr); }
  .ingr { grid-template-columns: 1fr 1fr; }
  .sticky { display: none; }
  .order__card { padding: 36px 40px 30px; }
  .hero__img { max-width: 960px; margin: 0 auto; border-radius: 0 0 24px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .sticky { transition: none; }
}
