/* Compenso Sportivo · sito marketing. Token del marchio (logo 5c), allineati a src/index.css dell'app. */
@font-face {
  font-family: "Inter";
  src: url("fonts/inter-latin-wght-normal.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Urbanist";
  src: url("fonts/urbanist-latin-wght-normal.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --amber: #E7A036;
  --orange: #EE8A3A;
  --red: #EA4F3C;
  --accent: #E8681A;
  --ink: #17140F;
  --ink-2: #3E3830;
  --muted: #6B635B;
  --line: #E3DDD4;
  --paper: #F7F5F1;
  --sand: #EDE8E0;
  --white: #FFFFFF;
  --success: #2E9B57;
  --success-bg: #E6F4EA;
  --gradient: linear-gradient(135deg, #E7A036 0%, #EE8A3A 45%, #EA4F3C 100%);
  --radius: 14px;
  --wrap: 1180px;
  --head: "Urbanist", system-ui, sans-serif;
  --body: "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: var(--body); color: var(--ink); background: var(--paper); line-height: 1.6; font-size: 16px; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--head); font-weight: 600; line-height: 1.08; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.4rem, 5.4vw, 4.2rem); }
h2 { font-size: clamp(1.9rem, 3.8vw, 3rem); }
h3 { font-size: 1.25rem; letter-spacing: -0.01em; }
.accent { color: var(--accent); }
.muted { color: var(--muted); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
section { padding: 96px 0; }
section[id] { scroll-margin-top: 72px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: .85rem; color: var(--muted); margin-bottom: 20px; }
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--gradient); }
.lead { font-size: 1.12rem; color: var(--ink-2); max-width: 620px; }
.section-head { max-width: 760px; margin-bottom: 56px; }
.section-head .lead { margin-top: 18px; }

/* Bottoni */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font: 600 1rem/1 var(--body); text-decoration: none; border-radius: 10px; padding: 16px 24px; border: 1.5px solid transparent; cursor: pointer; transition: background .15s, color .15s, border-color .15s, transform .15s; }
.btn-primary { background: var(--ink); color: var(--white); }
.btn-primary:hover { background: var(--accent); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-light { background: var(--white); color: var(--ink); }
.btn-light:hover { background: var(--amber); }
.btn-sm { padding: 11px 16px; font-size: .92rem; }
.btn .arrow { transition: transform .15s; }
.btn:hover .arrow { transform: translateX(3px); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(247, 245, 241, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.logo img { height: 30px; width: auto; }
.nav { display: flex; gap: 28px; }
.nav a { text-decoration: none; font-size: .95rem; color: var(--ink-2); }
.nav a:hover { color: var(--accent); }
.header-cta { display: flex; align-items: center; gap: 18px; }
.header-cta .login { text-decoration: none; font-weight: 500; font-size: .95rem; }
.menu-toggle { display: none; background: none; border: 0; width: 40px; height: 40px; cursor: pointer; }
.menu-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px auto; border-radius: 2px; }

/* Hero */
.hero { padding: 72px 0 88px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero-price { margin-top: 26px; font-size: 1.12rem; color: var(--ink-2); max-width: 520px; }
.hero-price strong { color: var(--ink); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; align-items: flex-start; }
.cta-stack { display: flex; flex-direction: column; gap: 8px; }
.cta-note { font-size: .85rem; color: var(--muted); padding-left: 2px; }
.hero-points { display: flex; gap: 20px; margin-top: 28px; font-size: .92rem; color: var(--ink-2); list-style: none; flex-wrap: wrap; }
.hero-points li::before { content: "●"; color: var(--accent); font-size: .6rem; margin-right: 8px; vertical-align: middle; }

/* Mockup */
.mock { position: relative; }
.mock-card { background: var(--white); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 30px 60px -30px rgba(23, 20, 15, .25); overflow: hidden; }
.mock-top { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.mock-top b { font-family: var(--head); font-size: 1.05rem; }
.mock-top small { display: block; color: var(--muted); font-size: .78rem; }
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: .75rem; font-weight: 600; padding: 5px 10px; border-radius: 99px; background: var(--success-bg); color: var(--success); white-space: nowrap; }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--success); }
.mock-stats { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line); }
.mock-stats div { padding: 14px 20px; border-right: 1px solid var(--line); }
.mock-stats div:last-child { border-right: 0; }
.mock-stats small { color: var(--muted); font-size: .75rem; }
.mock-stats strong { display: block; font-family: var(--head); font-size: 1.5rem; }
.mock-row { display: grid; grid-template-columns: 1.4fr 1fr auto; gap: 10px; align-items: center; padding: 11px 20px; border-bottom: 1px solid var(--line); font-size: .85rem; }
.mock-row .who { display: flex; align-items: center; gap: 10px; }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--sand); display: grid; place-items: center; font-size: .7rem; font-weight: 600; flex: none; }
.mock-row small { display: block; color: var(--muted); font-size: .72rem; }
.tag-ok { font-size: .72rem; font-weight: 600; color: var(--success); background: var(--success-bg); padding: 4px 9px; border-radius: 6px; }
.mock-bar { padding: 14px 20px 18px; font-size: .8rem; }
.mock-bar .bar-head { display: flex; justify-content: space-between; color: var(--ink-2); margin-bottom: 8px; }
.bar { height: 6px; border-radius: 6px; background: var(--sand); overflow: hidden; }
.bar i { display: block; height: 100%; width: 82%; background: var(--gradient); border-radius: 6px; }
.mock-float { position: absolute; left: -28px; bottom: -22px; background: var(--ink); color: var(--white); font-size: .82rem; padding: 12px 16px; border-radius: 10px; display: flex; gap: 10px; align-items: center; box-shadow: 0 20px 40px -20px rgba(23, 20, 15, .6); }
.mock-float .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); }

/* Fascia numeri */
.stats { background: var(--ink); color: var(--white); padding: 0; }
.stats .wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.stats .stat { padding: 44px 28px; border-left: 1px solid rgba(255, 255, 255, .12); }
.stats .stat:last-child { border-right: 1px solid rgba(255, 255, 255, .12); }
.stats strong { display: block; font-family: var(--head); font-weight: 600; font-size: clamp(2rem, 3.4vw, 2.8rem); background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1.1; }
.stats span { display: block; margin-top: 10px; color: rgba(255, 255, 255, .72); font-size: .92rem; max-width: 220px; }

/* Griglie e card */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.cell { padding: 32px 28px 36px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--white); }
.cell .num { font-size: .8rem; color: var(--accent); font-weight: 600; }
.cell h3 { margin: 14px 0 10px; }
.cell p { color: var(--muted); font-size: .95rem; }
.label { display: inline-block; font-size: .72rem; font-weight: 600; letter-spacing: .02em; padding: 4px 9px; border-radius: 6px; margin-top: 16px; }
.label-free { background: var(--success-bg); color: var(--success); }
.label-paid { background: #FCEBDD; color: #A8470F; }

.alt { background: var(--white); }
.sand { background: var(--sand); }

/* Come funziona */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.step { border-top: 2px solid var(--ink); padding-top: 22px; }
.step .n { font-family: var(--head); font-size: 2.6rem; font-weight: 600; background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1; }
.step h3 { margin: 16px 0 10px; }
.step p { color: var(--ink-2); font-size: .95rem; }
.step .who-tag { display: inline-block; margin-top: 14px; font-size: .78rem; color: var(--muted); }

/* Due colonne */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split.top { align-items: start; }
.checklist { list-style: none; margin-top: 28px; display: grid; gap: 14px; }
.checklist li { position: relative; padding-left: 34px; color: var(--ink-2); }
.checklist li::before { content: ""; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 50%; background: var(--gradient); }
.checklist li::after { content: ""; position: absolute; left: 7px; top: 7px; width: 8px; height: 5px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg); }
.checklist strong { color: var(--ink); }

.panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }
.panel h3 { margin-bottom: 8px; }
.society-chips { display: grid; gap: 12px; margin-top: 20px; }
.chip { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; font-size: .9rem; }
.chip small { color: var(--muted); }
.total { display: flex; justify-content: space-between; margin-top: 18px; padding-top: 18px; border-top: 1px dashed var(--line); font-weight: 600; }

/* Consulenti */
.consultant { background: var(--ink); color: var(--white); }
.consultant .lead, .consultant .checklist li { color: rgba(255, 255, 255, .78); }
.consultant .checklist strong { color: var(--white); }
.consultant .eyebrow { color: rgba(255, 255, 255, .6); }
.partner-box { border: 1px solid rgba(255, 255, 255, .16); border-radius: var(--radius); padding: 28px; background: rgba(255, 255, 255, .04); }
.partner-box h3 { margin-bottom: 12px; }
.partner-box p { color: rgba(255, 255, 255, .72); }
.partner-options { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 22px 0 26px; }
.partner-options div { border: 1px solid rgba(255, 255, 255, .16); border-radius: 10px; padding: 16px; font-size: .9rem; color: rgba(255, 255, 255, .8); }
.partner-options b { display: block; color: var(--white); margin-bottom: 4px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.consultant .btn-outline { color: var(--white); border-color: rgba(255, 255, 255, .5); }
.consultant .btn-outline:hover { color: var(--amber); border-color: var(--amber); }

/* Prezzi */
.plans { display: grid; grid-template-columns: .85fr 1.15fr; gap: 24px; align-items: stretch; }
.plan { background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 34px; display: flex; flex-direction: column; }
.plan.featured { border: 1.5px solid var(--ink); }
.plan-name { font-family: var(--head); font-size: 1.4rem; font-weight: 600; }
.plan-sub { color: var(--muted); font-size: .92rem; margin-top: 4px; }
.price-big { font-family: var(--head); font-weight: 600; font-size: 3rem; line-height: 1; margin: 26px 0 6px; }
.price-big small { font-size: 1rem; color: var(--muted); font-weight: 500; font-family: var(--body); }
.plan ul { list-style: none; margin: 22px 0 28px; display: grid; gap: 10px; font-size: .94rem; }
.plan li { padding-left: 26px; position: relative; color: var(--ink-2); }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--success); font-weight: 700; }
.plan li.no { color: var(--muted); }
.plan li.no::before { content: "–"; color: var(--muted); }
.plan .btn { margin-top: auto; }

.toggle { display: inline-grid; grid-template-columns: 1fr 1fr; border: 1.5px solid var(--ink); border-radius: 10px; padding: 3px; width: 100%; max-width: 360px; }
.toggle button { font: 600 .9rem var(--body); padding: 10px 14px; border: 0; border-radius: 7px; background: transparent; color: var(--ink); cursor: pointer; }
.toggle button[aria-pressed="true"] { background: var(--ink); color: var(--white); }
.toggle .save { color: var(--orange); margin-left: 6px; }
.calc-row { display: flex; justify-content: space-between; align-items: center; margin-top: 26px; gap: 16px; }
.calc-row label { font-weight: 600; }
.stepper { display: flex; border: 1.5px solid var(--ink); border-radius: 10px; overflow: hidden; }
.stepper button { width: 42px; border: 0; background: var(--white); font-size: 1.2rem; cursor: pointer; }
.stepper button:hover { background: var(--sand); }
.stepper input { width: 58px; text-align: center; border: 0; border-left: 1.5px solid var(--ink); border-right: 1.5px solid var(--ink); font: 600 1.05rem var(--body); -moz-appearance: textfield; }
.stepper input::-webkit-inner-spin-button { -webkit-appearance: none; }
input[type="range"] { width: 100%; margin-top: 18px; accent-color: var(--accent); }
.calc-result { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.calc-result .price-big { margin-top: 6px; }
.calc-note { font-size: .88rem; color: var(--muted); min-height: 1.4em; }
.tiers { width: 100%; border-collapse: collapse; margin-top: 22px; font-size: .9rem; }
.tiers th, .tiers td { text-align: left; padding: 9px 0; border-bottom: 1px solid var(--line); }
.tiers th { font-weight: 500; color: var(--muted); font-size: .8rem; }
.tiers td:last-child, .tiers th:last-child { text-align: right; }
.tiers tr.on td { color: var(--accent); font-weight: 600; }
.price-foot { margin-top: 28px; text-align: center; font-size: .9rem; color: var(--muted); }
.included { margin-top: 48px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px 24px; list-style: none; }
.included li { padding-left: 26px; position: relative; color: var(--ink-2); font-size: .95rem; }
.included li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.consultant-note { margin-top: 32px; display: flex; justify-content: space-between; align-items: center; gap: 18px; background: var(--white); border: 1px dashed var(--line); border-radius: 12px; padding: 18px 22px; }

/* FAQ */
.faq { max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 24px 40px 24px 0; font-family: var(--head); font-weight: 600; font-size: 1.15rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 20px; font-size: 1.6rem; font-weight: 400; color: var(--accent); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding: 0 0 26px; color: var(--ink-2); display: grid; gap: 12px; }
.faq .answer ul { padding-left: 20px; display: grid; gap: 6px; }
.faq .sources { font-size: .85rem; color: var(--muted); }
.faq .sources a { color: var(--muted); }

/* Chiusura */
.closing { background: var(--gradient); color: var(--ink); text-align: center; padding: 96px 0; }
.closing h2 { max-width: 820px; margin: 0 auto; }
.closing p { margin: 18px auto 32px; font-size: 1.12rem; max-width: 560px; }

/* Footer */
.site-footer { background: var(--ink); color: rgba(255, 255, 255, .72); padding: 64px 0 40px; font-size: .9rem; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; }
.site-footer img { height: 28px; width: auto; margin-bottom: 18px; }
.site-footer h4 { color: var(--white); font-family: var(--body); font-size: .85rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 14px; }
.site-footer ul { list-style: none; display: grid; gap: 8px; }
.site-footer a { color: rgba(255, 255, 255, .8); text-decoration: none; }
.site-footer a:hover { color: var(--amber); }
.seo { margin-top: 44px; padding-top: 28px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .82rem; color: rgba(255, 255, 255, .5); }

/* Pagine legali */
.legal { padding: 64px 0 96px; }
.legal .wrap { max-width: 820px; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 12px; }
.legal h2 { font-size: 1.4rem; margin: 36px 0 12px; }
.legal p, .legal li { color: var(--ink-2); margin-bottom: 12px; }
.legal ul, .legal ol { padding-left: 22px; margin-bottom: 12px; }
.legal h3 { font-size: 1.15rem; margin: 28px 0 10px; }
.legal h4 { font-size: 1rem; margin: 22px 0 8px; }
.legal a { color: var(--accent); }
.legal strong { color: var(--ink); }
.legal blockquote { border-left: 3px solid var(--orange); padding: 4px 0 4px 16px; margin: 16px 0; color: var(--ink-2); }
.legal hr { border: 0; border-top: 1px solid var(--line); margin: 32px 0; }
.legal table { width: 100%; border-collapse: collapse; margin: 16px 0 20px; font-size: .92rem; display: block; overflow-x: auto; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 10px 12px; border: 1px solid var(--line); }
.legal th { background: var(--sand); font-weight: 600; }
.legal .updated { color: var(--muted); font-size: .9rem; margin-bottom: 32px; }
.notice { background: #FCEBDD; border: 1px solid #F3C9A4; border-radius: 10px; padding: 16px 18px; color: #7A3A0E; margin-bottom: 28px; }

/* Responsive */
@media (max-width: 1020px) {
  .nav { display: none; }
  .menu-toggle { display: block; }
  .site-header.open .nav { display: flex; flex-direction: column; position: absolute; top: 72px; left: 0; right: 0; background: var(--paper); padding: 16px 24px 24px; border-bottom: 1px solid var(--line); gap: 16px; }
  .hero .wrap, .split, .plans { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .stats .wrap { grid-template-columns: 1fr 1fr; }
  .included { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  section { padding: 64px 0; }
  .wrap { padding: 0 16px; }
  .header-cta .login { display: none; }
  .header-cta .btn { padding: 10px 14px; }
  .logo img { height: 24px; }
  .steps, .grid-3, .included, .footer-grid, .partner-options { grid-template-columns: 1fr; }
  .stats .wrap { padding: 0; }
  .stats .stat { padding: 28px 16px; }
  .mock-float { left: 8px; }
  .mock-row { grid-template-columns: 1fr auto; }
  .mock-row .doc { display: none; }
  .plan { padding: 24px; }
  .consultant-note { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* Animazioni (solo con JavaScript attivo e senza "riduci movimento") */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--d, 0s); }
  .js .reveal.in { opacity: 1; transform: none; }
  .js .hero h1, .js .hero .eyebrow, .js .hero-price, .js .hero-ctas, .js .hero-points { animation: rise .8s cubic-bezier(.2, .7, .2, 1) both; }
  .js .hero .eyebrow { animation-delay: .05s; }
  .js .hero h1 { animation-delay: .12s; }
  .js .hero-price { animation-delay: .3s; }
  .js .hero-ctas { animation-delay: .42s; }
  .js .hero-points { animation-delay: .52s; }
  .js .mock-card { animation: rise 1s .35s cubic-bezier(.2, .7, .2, 1) both; }
  .js .mock-float { animation: float 4s ease-in-out infinite; }
  .js .mock-float.hidden { opacity: 0; transform: translateY(10px) scale(.96); animation: none; }
  .js .mock-float { transition: opacity .5s, transform .5s; }
  .mock-row .tag-ok, .mock-row .tag-wait { transition: background .35s, color .35s, transform .35s; }
  .mock-row .tag-ok.pop { animation: pop .45s ease; }
  .bar i { transition: width 1.6s cubic-bezier(.2, .7, .2, 1); }
  .btn-primary { position: relative; overflow: hidden; }
  .btn-primary::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .22) 50%, transparent 70%); transform: translateX(-120%); }
  .btn-primary:hover::after { transform: translateX(120%); transition: transform .7s ease; }
  .cell, .plan, .panel, .chip { transition: transform .25s ease, box-shadow .25s ease, border-color .25s; }
  .cell:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -28px rgba(23, 20, 15, .35); position: relative; z-index: 1; }
  .chip:hover { border-color: var(--orange); }
  .step .n { display: inline-block; transition: transform .3s; }
  .step:hover .n { transform: translateX(4px); }
  #calc-price { transition: color .2s; }
  #calc-price.bump { animation: bump .35s ease; }
}
.tag-wait { font-size: .72rem; font-weight: 600; color: var(--muted); background: var(--sand); padding: 4px 9px; border-radius: 6px; }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes pop { 0% { transform: scale(.8); } 60% { transform: scale(1.12); } 100% { transform: scale(1); } }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.06); color: var(--accent); } 100% { transform: scale(1); } }
.pill.pill-wait { background: #FCEBDD; color: #A8470F; }
.pill.pill-wait::before { background: var(--orange); }
