/* Sito pubblico di presentazione e negozio. Il colore principale (--brand) si sceglie dal pannello. */
:root {
  --brand: #c0563b;
  --brand-dark: color-mix(in srgb, var(--brand) 80%, #000);
  --tint: color-mix(in srgb, var(--brand) 8%, #fff);
  --tint-2: color-mix(in srgb, var(--brand) 16%, #fff);
  --ink: #16130f;
  --ink-2: #3f3a35;
  --muted: #736b63;
  --line: #ebe6df;
  --bg: #ffffff;
  --soft: #faf7f3;
  --ok: #15803d;
  --err: #b91c1c;
  --r: 18px;
  --shadow: 0 1px 2px rgba(22,19,15,.04), 0 8px 24px rgba(22,19,15,.06);
  --shadow-lg: 0 24px 60px rgba(22,19,15,.14);
  --font: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.65 var(--font); -webkit-font-smoothing: antialiased; }
a { color: var(--brand); text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.025em; margin: 0 0 14px; }
h1 { font-size: clamp(34px, 5.4vw, 58px); font-weight: 800; }
h2 { font-size: clamp(28px, 3.8vw, 42px); font-weight: 800; }
h3 { font-size: 19px; font-weight: 700; }
p { margin: 0 0 14px; }
.ic { width: 20px; height: 20px; flex: none; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 22px; }
.narrow { max-width: 820px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.upper { text-transform: uppercase; letter-spacing: .12em; font-weight: 700; font-size: 12px; }
.grow { flex: 1; min-width: 0; }
.mono { font-family: ui-monospace, "SF Mono", Consolas, monospace; }
.err { color: var(--err); }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--ink-2); line-height: 1.6; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--brand); background: var(--tint); padding: 6px 12px; border-radius: 999px; margin-bottom: 18px; }

/* Pulsanti */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; border-radius: 12px; font: 700 15px var(--font); border: 1.5px solid transparent; cursor: pointer; transition: transform .15s, box-shadow .15s, background .15s; white-space: nowrap; }
.btn .ic { width: 18px; height: 18px; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 8px 22px color-mix(in srgb, var(--brand) 32%, transparent); }
.btn-primary:hover { background: var(--brand-dark); color: #fff; transform: translateY(-1px); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn-outline { background: #fff; color: var(--brand); border-color: var(--brand); }
.btn-outline:hover { background: var(--tint); }
.btn-white { background: #fff; color: var(--brand); }
.btn-lg { padding: 16px 26px; font-size: 16px; border-radius: 14px; }
.btn-sm { padding: 9px 14px; font-size: 14px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.link-btn { background: none; border: 0; color: var(--muted); text-decoration: underline; cursor: pointer; font: inherit; font-size: 14px; }

/* Barra superiore */
.announce { background: var(--ink); color: #fff; text-align: center; font-size: 14px; padding: 9px 16px; }
.nav { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.86); backdrop-filter: saturate(1.8) blur(16px); -webkit-backdrop-filter: saturate(1.8) blur(16px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.nav.scrolled { border-color: var(--line); }
.nav-inner { display: flex; align-items: center; gap: 22px; height: 70px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; color: var(--ink); letter-spacing: -.02em; }
.logo img { height: 36px; width: auto; }
.logo-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--brand); color: #fff; }
.logo-mark .ic { width: 18px; height: 18px; }
.links { display: flex; gap: 26px; margin-left: 18px; }
.links a { color: var(--ink-2); font-weight: 600; font-size: 15px; }
.links a:hover { color: var(--ink); }
.only-mobile { display: none; }
.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.nav-login { color: var(--ink); font-weight: 600; font-size: 15px; }
.icon-btn { position: relative; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; color: var(--ink); }
.icon-btn .dot { position: absolute; top: 8px; right: 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); }
.burger { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--ink); }
@media (max-width: 920px) {
  .links { position: fixed; top: 70px; left: 0; right: 0; flex-direction: column; gap: 0; margin: 0; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg); padding: 8px 22px 18px; transform: translateY(-120%); transition: transform .25s ease; }
  .links a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
  .menu-open .links { transform: none; }
  .only-mobile { display: block; }
  .nav-login { display: none; }
  .burger { display: block; }
}

/* Avvisi */
.alert { margin: 18px 0 0; padding: 13px 16px; border-radius: 12px; font-size: 15px; }
.alert-ok { background: #ecfdf3; color: #14532d; border: 1px solid #bbf7d0; }
.alert-err { background: #fef2f2; color: #7f1d1d; border: 1px solid #fecaca; }
.alert-warn { background: #fffbeb; color: #78350f; border: 1px solid #fde68a; }

/* Copertina */
.hero { padding: clamp(48px, 8vw, 96px) 0 clamp(40px, 6vw, 80px); background: radial-gradient(900px 500px at 85% -10%, var(--tint-2), transparent 70%), radial-gradient(700px 400px at -10% 110%, var(--tint), transparent 70%); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero-center .hero-grid { grid-template-columns: 1fr; text-align: center; max-width: 900px; }
.hero-center .hero-ctas, .hero-center .hero-note { justify-content: center; }
.hero h1 { margin-bottom: 20px; }
.hero h1 + .lead { max-width: 620px; }
.hero-center .lead { margin-left: auto; margin-right: auto; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 18px; }
.hero-note { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; }
.hero-note .ic { color: var(--ok); width: 17px; height: 17px; }
.hero-media img, .hero-media .video-frame { border-radius: 22px; box-shadow: var(--shadow-lg); }
@media (max-width: 920px) { .hero-grid { grid-template-columns: 1fr; gap: 40px; } }

/* Telefono dimostrativo (se non c'è un'immagine) */
.mock { display: flex; justify-content: center; }
.phone { width: 290px; height: 590px; border-radius: 46px; background: #111; padding: 11px; box-shadow: var(--shadow-lg), inset 0 0 0 2px #333; transform: rotate(-3deg); }
.phone-screen { height: 100%; border-radius: 36px; background: #f6f4f1; overflow: hidden; display: flex; flex-direction: column; gap: 10px; padding-bottom: 14px; }
.ph-hero { height: 210px; background: linear-gradient(160deg, color-mix(in srgb, var(--brand) 70%, #000), var(--brand) 60%, color-mix(in srgb, var(--brand) 60%, #fff)); color: #fff; display: flex; flex-direction: column; justify-content: flex-end; padding: 18px; }
.ph-hero span { font-family: "Segoe Script", "Brush Script MT", cursive; font-size: 24px; }
.ph-hero b { font-size: 11px; letter-spacing: .15em; text-transform: uppercase; }
.ph-quick { display: flex; justify-content: space-around; background: #fff; margin: -26px 12px 0; border-radius: 16px; padding: 10px; box-shadow: var(--shadow); }
.ph-quick i { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--brand); color: #fff; }
.ph-quick .ic { width: 17px; height: 17px; }
.ph-card { background: #fff; margin: 4px 12px 0; border-radius: 14px; padding: 12px 14px; box-shadow: var(--shadow); }
.ph-card b { display: block; font-size: 15px; }
.ph-card small { color: var(--muted); font-size: 12px; }
.ph-row { display: flex; align-items: center; gap: 10px; background: #fff; margin: 0 12px; border-radius: 12px; padding: 11px 12px; font-size: 13px; font-weight: 600; }
.ph-row .ic { width: 17px; height: 17px; color: var(--brand); }

/* Barra di fiducia */
.logos { padding: 34px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.logo-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 44px; margin-top: 14px; }
.logo-row span { font-size: 20px; font-weight: 800; color: #b3aba2; letter-spacing: -.02em; }

/* Sezioni */
.section { padding: clamp(60px, 8vw, 110px) 0; }
.section.soft { background: var(--soft); }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 50px; }
.pain { list-style: none; padding: 0; margin: 30px auto 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; text-align: left; }
.pain li { display: flex; gap: 10px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; font-weight: 600; }
.pain .ic { color: var(--err); width: 18px; height: 18px; }
.features { display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 18px; }
.feature { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 26px; transition: box-shadow .2s, transform .2s, border-color .2s; }
.feature:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); border-color: transparent; }
.feature p { color: var(--muted); font-size: 15px; margin: 0; }
.f-ic { display: inline-grid; place-items: center; width: 50px; height: 50px; border-radius: 14px; background: var(--tint); color: var(--brand); margin-bottom: 16px; flex: none; }
.f-ic .ic { width: 24px; height: 24px; }
.show { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.show.reverse .show-media { order: -1; }
.show.no-media { grid-template-columns: 1fr; max-width: 820px; }
.show-media img, .show-media .video-frame { border-radius: 22px; box-shadow: var(--shadow-lg); }
@media (max-width: 920px) { .show { grid-template-columns: 1fr; gap: 34px; } .show.reverse .show-media { order: 0; } }
.ticks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; }
.ticks .ic { color: var(--ok); width: 19px; height: 19px; margin-top: 3px; }
.video-frame { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: 22px; overflow: hidden; }
.video-frame iframe, .video-frame video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-box { margin-top: 30px; box-shadow: var(--shadow-lg); }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; counter-reset: s; }
.steps li { background: #fff; border-radius: var(--r); padding: 28px; box-shadow: var(--shadow); }
.steps p { color: var(--muted); margin: 0; }
.step-n { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 800; margin-bottom: 16px; }
.stats-band { background: var(--ink); color: #fff; padding: 46px 0; }
.stats-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 24px; text-align: center; }
.stats-row b { display: block; font-size: clamp(30px, 4vw, 44px); font-weight: 800; letter-spacing: -.03em; }
.stats-row span { color: #c9c1b8; }

/* Prezzi */
.cycle-toggle { display: inline-flex; background: var(--soft); border: 1px solid var(--line); border-radius: 999px; padding: 4px; margin-top: 12px; }
.cycle-toggle button { border: 0; background: none; padding: 9px 18px; border-radius: 999px; font: 700 14px var(--font); color: var(--muted); cursor: pointer; }
.cycle-toggle button.on { background: #fff; color: var(--ink); box-shadow: var(--shadow); }
.save { background: var(--tint-2); color: var(--brand); border-radius: 999px; padding: 2px 8px; font-size: 11px; margin-left: 4px; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 22px; max-width: 1000px; margin: 0 auto; align-items: start; }
.plan { position: relative; background: #fff; border: 1.5px solid var(--line); border-radius: 24px; padding: 32px 28px; }
.plan.featured { border-color: var(--brand); box-shadow: var(--shadow-lg); }
.ribbon { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--brand); color: #fff; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 5px 14px; border-radius: 999px; }
.plan h3 { font-size: 22px; margin-bottom: 4px; }
.price { display: flex; align-items: baseline; gap: 6px; margin: 18px 0 2px; }
.price b { font-size: 44px; font-weight: 800; letter-spacing: -.03em; }
.price span { color: var(--muted); font-weight: 600; }
.plan .btn { margin: 14px 0 6px; }
.trial-link { display: block; text-align: center; font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.plan .ticks { border-top: 1px solid var(--line); padding-top: 18px; font-size: 15px; }
.pay-logos { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 10px; }
.pay-logos .ic { width: 16px; height: 16px; }

/* Testimonianze e domande */
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.quote { margin: 0; background: #fff; border-radius: var(--r); padding: 28px; box-shadow: var(--shadow); }
.stars { color: #f5a524; letter-spacing: 2px; }
.quote blockquote { margin: 12px 0 18px; font-size: 17px; line-height: 1.6; }
.quote figcaption b { display: block; }
.quote figcaption span { color: var(--muted); font-size: 14px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; font-weight: 700; font-size: 17px; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ic { transition: transform .2s; color: var(--muted); }
.faq details[open] summary .ic { transform: rotate(180deg); }
.faq-a { color: var(--ink-2); padding-bottom: 20px; }
.final-cta { background: linear-gradient(135deg, var(--brand), color-mix(in srgb, var(--brand) 60%, #000)); color: #fff; padding: clamp(60px, 8vw, 100px) 0; }
.final-cta .lead { color: rgba(255,255,255,.9); }

/* Pagine di testo */
.text-page h1 { font-size: clamp(30px, 4vw, 44px); }
.prose { font-size: 17px; color: var(--ink-2); }
.prose ul { padding-left: 22px; }
.prose li { margin-bottom: 6px; }

/* Moduli, carrello, checkout */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 26px; margin-bottom: 18px; box-shadow: var(--shadow); }
.form label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 14px; color: var(--ink-2); }
.form label small { display: block; font-weight: 400; color: var(--muted); margin-top: 4px; }
.form input:not([type=checkbox]):not([type=radio]), .coupon input { display: block; width: 100%; margin-top: 6px; padding: 13px 14px; border: 1.5px solid var(--line); border-radius: 12px; font: 400 16px var(--font); background: #fff; color: var(--ink); }
.form input:focus, .coupon input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--tint-2); }
.check { display: flex !important; gap: 10px; align-items: flex-start; font-weight: 500 !important; }
.check input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--brand); flex: none; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 640px) { .grid2 { grid-template-columns: 1fr; } }
.grid-addr { display: grid; grid-template-columns: 110px minmax(0, 2fr) 110px minmax(0, 1fr); gap: 0 16px; }
@media (max-width: 640px) { .grid-addr { grid-template-columns: 1fr 1fr; } }
.auth-section { background: var(--soft); }
.auth-grid { display: grid; grid-template-columns: 1fr 440px; gap: 60px; align-items: center; }
@media (max-width: 920px) { .auth-grid { grid-template-columns: 1fr; gap: 30px; } }
.checkout-grid { display: grid; grid-template-columns: 1fr 380px; gap: 26px; align-items: start; margin-top: 24px; }
@media (max-width: 920px) { .checkout-grid { grid-template-columns: 1fr; } }
.summary { position: sticky; top: 90px; }
.sum-row { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; }
.sum-row.ok { color: var(--ok); }
.sum-row.total { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 14px; font-size: 20px; }
.sum-row.total b { font-size: 26px; }
.coupon { display: flex; gap: 8px; margin: 14px 0; }
.coupon input { margin: 0; }
.cart-line { display: flex; gap: 16px; align-items: center; }
.cart-line h3 { margin: 0; }
.cycle-pick, .methods { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-top: 18px; }
.opt { display: flex; flex-direction: column; gap: 2px; border: 1.5px solid var(--line); border-radius: 14px; padding: 14px 16px; cursor: pointer; }
.opt input { position: absolute; opacity: 0; }
.opt b { display: flex; align-items: center; gap: 8px; }
.opt span { color: var(--muted); font-size: 14px; }
.opt.on, .opt:has(input:checked) { border-color: var(--brand); background: var(--tint); }
.trial-box { background: var(--tint); border-color: var(--tint-2); }
.trial-box b { display: flex; gap: 8px; align-items: center; }
.empty { padding: 50px 20px; }
.big-ic { display: inline-grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: var(--tint); color: var(--brand); margin-bottom: 14px; }
.big-ic .ic { width: 34px; height: 34px; }
.big-ic.ok { background: #ecfdf3; color: var(--ok); }
.order-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.order-head h1 { font-size: 30px; margin: 0; }
.badge { display: inline-block; padding: 6px 12px; border-radius: 999px; font-weight: 700; font-size: 13px; background: var(--soft); border: 1px solid var(--line); }
.badge-ok { background: #ecfdf3; color: var(--ok); border-color: #bbf7d0; }
.badge-warn { background: #fffbeb; color: #b45309; border-color: #fde68a; }
.badge-err { background: #fef2f2; color: var(--err); border-color: #fecaca; }
.badge-info { background: #eff6ff; color: #1d4ed8; border-color: #bfdbfe; }
.bank { display: grid; grid-template-columns: 130px 1fr; gap: 8px 14px; margin: 14px 0; }
.bank dt { color: var(--muted); }
.bank dd { margin: 0; word-break: break-all; }
#paypal-buttons { margin-top: 16px; max-width: 420px; }

/* Piè di pagina */
.footer { background: var(--soft); border-top: 1px solid var(--line); padding: 60px 0 0; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 30px; }
.footer h4 { font-size: 14px; text-transform: uppercase; letter-spacing: .08em; margin: 0 0 14px; }
.footer-grid a:not(.logo) { display: block; color: var(--ink-2); margin-bottom: 8px; font-size: 15px; }
.footer .logo { margin-bottom: 12px; }
.legal { border-top: 1px solid var(--line); margin-top: 40px; padding-top: 20px; padding-bottom: 26px; font-size: 13px; color: var(--muted); }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

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

/* Il nome della piattaforma resta su una riga anche sui telefoni piccoli */
.logo { white-space: nowrap; min-width: 0; }
@media (max-width: 400px) { .logo { font-size: 16px; } .nav-actions .btn-sm { padding-left: 12px; padding-right: 12px; } }

/* Firma Le Favi Web */
.credit { color: inherit; text-decoration: none; }
.credit strong { font-weight: 700; }
.credit:hover strong { text-decoration: underline; }
.small-credit { font-size: 14px; margin-top: 10px; }
.legal { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 24px; }
.legal-credit { white-space: nowrap; }
.legal-credit a { color: var(--ink-2); text-decoration: none; }
.legal-credit a:hover { text-decoration: underline; }
