/* Cohors — sito pubblico. Palette "Rosso corsa", tema scuro (vedi area-design.md) */

@font-face { font-family: "Libre Bodoni"; font-weight: 400; font-display: swap; src: url("fonts/libre-bodoni-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Libre Bodoni"; font-weight: 700; font-display: swap; src: url("fonts/libre-bodoni-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url("fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 500; font-display: swap; src: url("fonts/inter-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url("fonts/inter-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 700; font-display: swap; src: url("fonts/inter-latin-700-normal.woff2") format("woff2"); }

:root {
  --bg: #0B0B0C;
  --surface: #18181A;
  --surface-2: #202023;
  --line: #2A2A2E;
  --text: #F5F5F4;
  --muted: #8E9097;
  --red: #E10600;
  --red-press: #B80500;
  --gold: #D4AF37;
  --steel: #6E7179;
  --ok: #3FB27F;
  --serif: "Libre Bodoni", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius: 14px;
  --wrap: 1120px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

/* Barra in alto */
.top { position: sticky; top: 0; z-index: 10; background: rgba(11, 11, 12, .86); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 34px; height: 34px; border-radius: 7px; }
.brand span { font: 700 24px/1 var(--serif); letter-spacing: .01em; }
.top nav { display: flex; gap: 22px; align-items: center; font-size: 15px; }
.top nav a { text-decoration: none; color: var(--muted); }
.top nav a:hover { color: var(--text); }
.top nav .cta-small { color: var(--text); background: var(--red); padding: 8px 14px; border-radius: 999px; font-weight: 600; }
.top nav .cta-small:hover { background: var(--red-press); }
@media (max-width: 640px) { .top nav a:not(.cta-small) { display: none; } }

/* Hero */
.hero { padding: 72px 0 80px; position: relative; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(60% 50% at 85% 20%, rgba(225, 6, 0, .16), transparent 70%);
}
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; position: relative; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--muted); letter-spacing: .02em; margin: 0 0 18px; }
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--red); }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.08; margin: 0; }
h1 { font-size: clamp(44px, 7vw, 76px); letter-spacing: -.01em; }
.wordmark { font-size: clamp(72px, 13vw, 132px); line-height: .95; letter-spacing: -.015em; }
.payoff { font: 700 clamp(26px, 3.6vw, 38px)/1.15 var(--serif); color: var(--red); margin: 14px 0 0; }
.lead { font-size: clamp(18px, 2.2vw, 21px); color: #C9CACE; margin: 20px 0 32px; max-width: 34ch; }
@media (max-width: 900px) {
  .hero { padding: 48px 0 56px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 44px; }
}

/* Moduli */
.form { display: grid; gap: 12px; max-width: 480px; }
.form .row { display: flex; gap: 10px; }
.form input[type="email"], .form input[type="text"] {
  flex: 1; min-width: 0; height: 54px; padding: 0 16px;
  background: var(--surface); color: var(--text);
  border: 1px solid var(--line); border-radius: 12px;
  font: 500 16px var(--sans);
}
.form input::placeholder { color: #6A6C73; }
.form input:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(225, 6, 0, .25); }
.btn {
  height: 54px; padding: 0 22px; border: 0; border-radius: 12px; cursor: pointer;
  background: var(--red); color: #fff; font: 600 16px var(--sans); white-space: nowrap;
  transition: background .15s, transform .1s;
}
.btn:hover { background: var(--red-press); }
.btn:active { transform: scale(.98); }
.btn[disabled] { opacity: .6; cursor: progress; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); line-height: 1.5; cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--red); flex: none; }
.check a { color: var(--text); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.msg { min-height: 1.5em; font-size: 15px; margin: 0; }
.msg.ok { color: var(--ok); }
.msg.err { color: #FF6A63; }
.phones { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.phones legend { font-size: 14px; font-weight: 500; padding: 0; margin: 0 0 8px; float: left; width: 100%; }
.phones legend span { color: var(--muted); font-weight: 400; }
.phones .hint { width: 100%; font-size: 13px; color: var(--muted); margin: 2px 0 0; }
.pill { position: relative; cursor: pointer; }
.pill input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pill span { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); font: 500 15px var(--sans); transition: border-color .15s, color .15s, background .15s; }
.pill span::before { content: ""; width: 14px; height: 14px; border-radius: 4px; border: 1.5px solid var(--steel); }
.pill input:checked + span { border-color: var(--red); color: var(--text); background: #1E0B0A; }
.pill input:checked + span::before { background: var(--red); border-color: var(--red); box-shadow: inset 0 0 0 2px #1E0B0A; }
.pill input:focus-visible + span { outline: 2px solid var(--red); outline-offset: 2px; }
.form.done .row, .form.done .check, .form.done .btn, .form.done .field, .form.done .phones { display: none; }
@media (max-width: 480px) { .form .row { flex-direction: column; } .form .row input { flex: none; width: 100%; } .btn { width: 100%; } }

/* Telefono dimostrativo */
.phone {
  justify-self: center; width: 100%; max-width: 340px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 34px; padding: 22px 18px 20px;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .8), 0 0 0 8px #121214;
}
.phone .bar { display: flex; justify-content: space-between; font: 600 12px var(--sans); color: var(--muted); margin-bottom: 16px; }
.phone h3 { font-size: 24px; margin-bottom: 4px; }
.phone .sub { font-size: 13px; color: var(--muted); margin-bottom: 16px; }
.sets { display: grid; gap: 6px; font: 500 14px var(--sans); font-variant-numeric: tabular-nums; }
.set { display: grid; grid-template-columns: 28px 1fr 1fr 30px; align-items: center; gap: 8px; background: var(--surface-2); border-radius: 10px; padding: 10px 12px; }
.set .n { color: var(--muted); }
.set .prev { color: var(--muted); font-size: 12px; }
.set .tick { width: 24px; height: 24px; border-radius: 7px; border: 1.5px solid var(--steel); display: grid; place-items: center; font-size: 13px; }
.set.done .tick { background: var(--red); border-color: var(--red); color: #fff; }
.timer { margin-top: 14px; display: flex; justify-content: space-between; align-items: center; background: #1E0B0A; border: 1px solid #4A1210; border-radius: 12px; padding: 12px 14px; font-size: 14px; }
.timer strong { font: 700 22px var(--sans); font-variant-numeric: tabular-nums; }
.record { margin-top: 10px; display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--gold); }
.record::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }

/* Sezioni */
section { padding: 88px 0; border-top: 1px solid var(--line); }
@media (max-width: 640px) { section { padding: 64px 0; } }
.section-head { max-width: 640px; margin-bottom: 44px; }
h2 { font-size: clamp(32px, 4.6vw, 48px); }
.section-head p { color: var(--muted); font-size: 18px; margin: 14px 0 0; }

.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.feature .num { font: 700 15px var(--serif); color: var(--red); letter-spacing: .08em; }
.feature h3 { font-size: 22px; margin: 14px 0 8px; }
.feature p { margin: 0; color: var(--muted); font-size: 15px; }
@media (max-width: 960px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 36px; } }
.steps { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 18px; counter-reset: s; }
.steps li { display: grid; grid-template-columns: 36px 1fr; gap: 14px; color: #C9CACE; }
.steps li::before { counter-increment: s; content: counter(s, upper-roman); font: 700 18px/1.4 var(--serif); color: var(--red); }
.steps strong { color: var(--text); font-weight: 600; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 28px; }
.card h3 { font-size: 26px; margin-bottom: 6px; }
.card > p { color: var(--muted); margin: 0 0 22px; font-size: 15px; }
.field label { display: block; font-size: 14px; font-weight: 500; margin: 0 0 6px; }
.field input { width: 100%; }
.field .hint { font-size: 13px; color: var(--muted); margin: 6px 0 0; }

.next { text-align: center; }
.next .section-head { margin: 0 auto 32px; }
.socials { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.next .btn { display: inline-flex; align-items: center; text-decoration: none; }
.btn-ghost { background: transparent; border: 1px solid var(--line); color: var(--text); min-width: 140px; justify-content: center; }
.btn-ghost:hover { background: var(--surface); border-color: var(--red); }
.handle { color: var(--muted); font-size: 14px; margin: 16px 0 0; }

/* Pagine di testo (privacy, termini) */
.doc { padding: 56px 0 88px; }
.doc .wrap { max-width: 760px; }
.doc h1 { font-size: clamp(36px, 5vw, 52px); margin-bottom: 10px; }
.doc .meta { color: var(--muted); font-size: 15px; margin: 0 0 40px; }
.doc h2 { font-size: 26px; margin: 40px 0 12px; }
.doc p, .doc li { color: #C9CACE; }
.doc ul { padding-left: 20px; }
.doc li { margin: 6px 0; }
.doc table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 8px 0; }
.doc th, .doc td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc th { color: var(--text); font-weight: 600; }
.doc td { color: #C9CACE; }
.table-scroll { overflow-x: auto; }

/* Piè di pagina */
footer { border-top: 1px solid var(--line); padding: 40px 0 48px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 20px 32px; justify-content: space-between; align-items: center; }
footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
footer a { text-decoration: none; }
footer a:hover { color: var(--text); }
