:root {
  --ink: #12151f; --muted: #5f6680; --line: #e3e6ef; --bg: #f6f7fb; --card: #fff;
  --brand: #0e7a4f; --brand-2: #12a06a; --accent: #ffb703; --dark: #0d1117;
  --display: Impact, 'Haettenschweiler', 'Arial Narrow Bold', 'Franklin Gothic Bold', sans-serif;
  --body: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --radius: 18px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--body); color: var(--ink); background: var(--bg); line-height: 1.55; }
a { color: var(--brand); }
img { max-width: 100%; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
h1, h2, h3 { line-height: 1.15; }
.display { font-family: var(--display); font-weight: 400; letter-spacing: .5px; text-transform: uppercase; }

/* barra in alto */
.nav { position: sticky; top: 0; z-index: 30; background: rgba(13,17,23,.94); backdrop-filter: blur(8px); color: #fff; }
.nav .wrap { display: flex; align-items: center; gap: 18px; height: 62px; }
.logo { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-family: var(--display); font-size: 22px; letter-spacing: .5px; white-space: nowrap; }
.logo i { font-style: normal; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: linear-gradient(135deg, var(--brand-2), var(--brand)); font-size: 19px; }
.nav nav { display: flex; gap: 16px; margin-left: auto; align-items: center; }
.nav nav a { color: #d6dbe7; text-decoration: none; font-weight: 600; font-size: 15px; }
.nav nav a:hover { color: #fff; }
.menu-btn { display: none; margin-left: auto; background: none; border: 0; color: #fff; font-size: 26px; cursor: pointer; }
@media (max-width: 860px) {
  .menu-btn { display: block; }
  .nav nav { display: none; position: absolute; top: 62px; left: 0; right: 0; background: var(--dark); flex-direction: column; align-items: stretch; padding: 10px 16px 16px; gap: 4px; }
  .nav nav.open { display: flex; }
  .nav nav a { padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
}

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 999px; padding: 13px 22px; font: 800 16px var(--body); cursor: pointer; text-decoration: none; background: var(--brand); color: #fff; transition: transform .1s, background .15s; }
.btn:hover { background: var(--brand-2); }
.btn:active { transform: translateY(1px); }
.btn.light { background: #fff; color: var(--ink); }
.btn.ghost { background: transparent; color: inherit; border: 2px solid currentColor; }
.btn.small { padding: 9px 16px; font-size: 14px; }
.btn:disabled { opacity: .55; cursor: wait; }
.nav .btn { padding: 9px 16px; font-size: 14px; color: #fff !important; }

/* sezioni */
section { padding: 64px 0; }
.sec-title { text-align: center; margin: 0 auto 34px; max-width: 720px; }
.sec-title h2 { font-family: var(--display); font-weight: 400; font-size: clamp(30px, 5vw, 44px); margin: 0 0 8px; text-transform: uppercase; }
.sec-title p { color: var(--muted); margin: 0; font-size: 17px; }
.kicker { color: var(--brand); font-weight: 800; letter-spacing: 2px; text-transform: uppercase; font-size: 13px; }

.hero { background: radial-gradient(1200px 500px at 70% -10%, #1f8f61 0%, transparent 60%), linear-gradient(160deg, #0d1117 0%, #13241c 100%); color: #fff; padding: 56px 0 70px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 40px; align-items: center; }
.hero h1 { font-family: var(--display); font-weight: 400; font-size: clamp(40px, 7vw, 72px); margin: 10px 0 14px; text-transform: uppercase; letter-spacing: 1px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p.lead { font-size: 19px; color: #cfd6e4; max-width: 560px; margin: 0 0 24px; }
.hero .ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.hero .badges { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 22px; }
.hero .badges span { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); padding: 6px 12px; border-radius: 999px; font-size: 14px; font-weight: 600; }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; } .hero .phone { margin: 10px auto 0; } }

/* telefono di anteprima */
.phone { --p: #0b2f7a; --a: #f7941d; --t: transparent; width: 290px; max-width: 100%; margin-left: auto; border-radius: 38px; border: 10px solid #0b0d12; background: #0b0d12; box-shadow: 0 30px 60px rgba(0,0,0,.45); overflow: hidden; transition: --p .6s; }
.phone .scr { height: 540px; background: linear-gradient(160deg, color-mix(in srgb, var(--p) 5%, #fff), color-mix(in srgb, var(--p) 18%, #fff)); position: relative; font-size: 12px; color: #12151f; overflow: hidden; }
.ph-h { background: linear-gradient(135deg, var(--p), color-mix(in srgb, var(--p) 72%, #000)); color: #fff; padding: 22px 12px 10px; display: flex; gap: 8px; align-items: center; border-bottom: 3px solid var(--a); box-shadow: 0 3px 0 var(--t); transition: background .6s; }
.ph-h canvas, .ph-h .ph-logo { width: 34px; height: 34px; border-radius: 50%; background: #fff; flex: none; }
.ph-h b { font-family: var(--display); font-weight: 400; font-size: 17px; letter-spacing: .5px; display: block; line-height: 1.05; text-transform: uppercase; }
.ph-h small { font-size: 9px; font-weight: 900; color: var(--a); letter-spacing: 1px; }
.ph-c { padding: 10px; }
.ph-card { background: #fff; border-radius: 14px; padding: 10px; margin-bottom: 9px; box-shadow: 0 4px 14px color-mix(in srgb, var(--p) 18%, transparent); }
.ph-hero { background: linear-gradient(135deg, var(--p), color-mix(in srgb, var(--p) 70%, #fff)); color: #fff; }
.ph-hero h3 { font-family: var(--display); font-weight: 400; font-size: 18px; margin: 0; text-transform: uppercase; }
.ph-hero p { margin: 3px 0 0; opacity: .92; font-weight: 700; }
.ph-t { font-family: var(--display); font-size: 11px; letter-spacing: 1px; color: var(--p); margin: 0 0 6px; text-transform: uppercase; }
.ph-m { display: flex; align-items: center; gap: 8px; }
.ph-date { background: var(--a); color: #fff; border-radius: 10px; padding: 4px 7px; text-align: center; font-weight: 900; line-height: 1; }
.ph-date b { font-family: var(--display); font-size: 17px; display: block; font-weight: 400; }
.ph-btn { background: var(--a); color: #fff; border-radius: 999px; padding: 6px 10px; font-weight: 900; display: inline-block; margin-top: 6px; }
.ph-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.ph-stats div { background: color-mix(in srgb, var(--p) 8%, #fff); border-radius: 10px; padding: 6px; text-align: center; }
.ph-stats b { font-family: var(--display); font-weight: 400; font-size: 18px; color: var(--p); display: block; }
.ph-nav { position: absolute; left: 0; right: 0; bottom: 0; background: #fff; display: flex; justify-content: space-around; padding: 8px 4px 14px; box-shadow: 0 -2px 10px rgba(0,0,0,.08); font-size: 9px; font-weight: 900; color: #69708a; }
.ph-nav span { text-align: center; } .ph-nav span.on { color: var(--p); } .ph-nav i { font-style: normal; font-size: 16px; display: block; }

/* griglie */
.grid { display: grid; gap: 16px; }
.g3 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.g4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: 0 2px 10px rgba(20,25,40,.04); }
.feat .ico { font-size: 28px; }
.feat h3 { margin: 8px 0 6px; font-size: 18px; }
.feat p { margin: 0; color: var(--muted); }
.sport-card { text-align: center; }
.sport-card .ico { font-size: 44px; }
.sport-card h3 { font-family: var(--display); font-weight: 400; font-size: 24px; margin: 6px 0 8px; text-transform: uppercase; }
.sport-card ul { text-align: left; color: var(--muted); padding-left: 18px; margin: 0; }
.steps { counter-reset: s; }
.step { position: relative; padding-left: 64px; }
.step::before { counter-increment: s; content: counter(s); position: absolute; left: 18px; top: 18px; width: 34px; height: 34px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 900; }
.step h3 { margin: 0 0 4px; font-size: 18px; }
.step p { margin: 0; color: var(--muted); }

/* prezzi */
.prices { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 18px; max-width: 820px; margin: 0 auto; }
.price { text-align: center; position: relative; padding: 28px 22px; }
.price.best { border: 3px solid var(--brand); }
.price .tag { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--accent); color: #1b1300; font-weight: 900; font-size: 13px; padding: 4px 12px; border-radius: 999px; white-space: nowrap; }
.price h3 { margin: 0; font-size: 20px; }
.price .amount { font-family: var(--display); font-size: 58px; line-height: 1; margin: 12px 0 4px; }
.price .amount small { font-family: var(--body); font-size: 16px; color: var(--muted); font-weight: 700; }
.price ul { list-style: none; padding: 0; margin: 16px 0 20px; text-align: left; }
.price li { padding: 6px 0 6px 28px; position: relative; border-bottom: 1px dashed var(--line); }
.price li::before { content: '✓'; position: absolute; left: 4px; color: var(--brand); font-weight: 900; }
.note { color: var(--muted); font-size: 14px; text-align: center; margin-top: 18px; }

/* faq */
details.faq { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; margin-bottom: 10px; }
details.faq summary { font-weight: 800; cursor: pointer; list-style: none; }
details.faq summary::after { content: '+'; float: right; font-size: 22px; line-height: 1; color: var(--brand); }
details.faq[open] summary::after { content: '−'; }
details.faq p { color: var(--muted); margin: 10px 0 0; }

.cta-band { background: linear-gradient(135deg, var(--brand), #0b5c3c); color: #fff; text-align: center; border-radius: 24px; padding: 40px 20px; }
.cta-band h2 { font-family: var(--display); font-weight: 400; font-size: clamp(28px, 5vw, 42px); margin: 0 0 10px; text-transform: uppercase; }
.cta-band p { margin: 0 0 20px; color: #d9f2e6; }

/* footer */
footer { background: var(--dark); color: #aab2c5; padding: 40px 0 28px; margin-top: 40px; font-size: 14px; }
footer .cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
footer h4 { color: #fff; margin: 0 0 8px; }
footer a { color: #d6dbe7; text-decoration: none; display: block; padding: 3px 0; }
footer a:hover { color: #fff; }
footer .legal { border-top: 1px solid rgba(255,255,255,.1); margin-top: 24px; padding-top: 16px; font-size: 13px; }

/* moduli */
.form-page { padding: 34px 0 20px; }
.form-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 22px; align-items: start; }
@media (max-width: 900px) { .form-layout { grid-template-columns: 1fr; } .form-side { position: static !important; order: -1; } .form-side .phone { margin: 0 auto; } }
.form-side { position: sticky; top: 80px; }
.fcard { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 16px; }
.fcard h2 { margin: 0 0 14px; font-size: 20px; display: flex; gap: 10px; align-items: center; }
.fcard h2 .n { background: var(--ink); color: #fff; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 14px; flex: none; }
.fgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; }
label.l { display: block; font-weight: 800; font-size: 13px; margin-bottom: 4px; color: #3a4158; }
label.l small { color: var(--muted); font-weight: 600; }
input[type=text], input[type=email], input[type=tel], input[type=number], select, textarea {
  width: 100%; padding: 11px 12px; border: 1.5px solid var(--line); border-radius: 11px; font: 500 16px var(--body); background: #fff; color: var(--ink); }
textarea { min-height: 120px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--brand); border-color: transparent; }
.hint { color: var(--muted); font-size: 13px; margin: 5px 0 0; }
.sports-pick { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; }
.sport-opt { border: 2px solid var(--line); border-radius: 14px; padding: 14px 8px; text-align: center; cursor: pointer; background: #fff; font: 800 15px var(--body); color: var(--ink); }
.sport-opt .e { font-size: 30px; display: block; }
.sport-opt.on { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 22%, transparent); }
.presets { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.preset { border: 1.5px solid var(--line); background: #fff; border-radius: 999px; padding: 5px 11px 5px 5px; display: flex; gap: 6px; align-items: center; cursor: pointer; font: 700 13px var(--body); color: var(--ink); }
.preset i { width: 18px; height: 18px; border-radius: 50%; display: inline-block; }
.colors { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.color { display: flex; gap: 10px; align-items: center; border: 1.5px solid var(--line); border-radius: 12px; padding: 7px; }
.color input[type=color] { width: 48px; height: 38px; border: 0; padding: 0; background: none; cursor: pointer; flex: none; }
.chk { display: flex; gap: 8px; align-items: flex-start; font-weight: 600; font-size: 15px; margin: 8px 0; cursor: pointer; }
.chk input { margin-top: 4px; width: 18px; height: 18px; flex: none; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.plan { border: 2px solid var(--line); border-radius: 14px; padding: 14px; cursor: pointer; display: flex; gap: 10px; align-items: flex-start; background: #fff; }
.plan input { margin-top: 4px; }
.plan b { display: block; } .plan span { color: var(--muted); font-size: 14px; }
.plan.on { border-color: var(--brand); }
.logo-row { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin-top: 14px; }
.logo-row canvas { width: 88px; height: 88px; border-radius: 50%; box-shadow: 0 2px 10px rgba(0,0,0,.15); background: #fff; }
.warn { background: #fff4e5; color: #8a4b00; border-radius: 10px; padding: 8px 12px; font-weight: 700; font-size: 14px; margin-top: 10px; }
.err { background: #fde3e3; color: #9b1c1c; border-radius: 12px; padding: 12px 14px; font-weight: 700; margin-top: 12px; }
.ok-box { background: #e3f7ec; color: #0f5e38; border-radius: 16px; padding: 24px; text-align: center; }
.ok-box h2 { font-family: var(--display); font-weight: 400; font-size: 34px; margin: 0 0 8px; text-transform: uppercase; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* pagine legali */
.legal-page { padding: 34px 0; }
.legal-page article { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(18px, 4vw, 40px); max-width: 860px; margin: 0 auto; }
.legal-page h1 { font-family: var(--display); font-weight: 400; font-size: clamp(30px, 5vw, 42px); text-transform: uppercase; margin: 0 0 6px; }
.legal-page h2 { font-size: 20px; margin: 28px 0 8px; }
.legal-page .upd { color: var(--muted); margin: 0 0 18px; }
.legal-page table { border-collapse: collapse; width: 100%; font-size: 15px; margin: 8px 0; }
.legal-page th, .legal-page td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.legal-page th { background: var(--bg); }
.legal-page .box { background: #fff8e1; border: 1px solid #f3d27a; border-radius: 12px; padding: 12px 14px; font-size: 14px; }
.todo { background: #fff1c2; border-radius: 4px; padding: 0 4px; }
.legal-page table { display: block; overflow-x: auto; }
.legal-page td, .legal-page th { overflow-wrap: anywhere; min-width: 90px; }
