/* Nexora – foglio di stile del sito pubblico */

/* Font: per non inviare dati a Google, metti i file .woff2 in /assets/fonts (vedi README).
   Finché non ci sono, il sito usa i font di sistema. */
@font-face { font-family: "Inter"; src: url("../fonts/inter-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Space Grotesk"; src: url("../fonts/space-grotesk-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --ink: #0E1116;
  --ink-2: #161B24;
  --ink-3: #262D3A;
  --bg: #F5F6F8;
  --white: #FFFFFF;
  --line: #E3E6EC;
  --text-2: #4A5262;
  --text-3: #5A6272;
  --muted-dark: #B8BFCC;
  --muted-dark-2: #8C95A6;
  --blue: #2F4BE0;
  --blue-dark: #1F35B0;
  --lime: #C6F432;
  --orange: #FF9F5A;
  --radius: 18px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Space Grotesk", var(--font);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
[id] { scroll-margin-top: 84px; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.5; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: var(--blue); }
a:hover { color: var(--blue-dark); }
h1, h2, h3 { line-height: 1.1; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section--white { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section--dark { background: var(--ink); color: var(--white); }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); }
.section--dark .eyebrow { color: var(--lime); }
.title { margin: 12px 0 0; font-family: var(--font-display); font-weight: 700; font-size: clamp(32px, 4vw, 44px); letter-spacing: -0.02em; }
.lead { margin: 12px 0 0; color: var(--text-2); font-size: 17px; max-width: 680px; }
.section--dark .lead { color: var(--muted-dark); }
.head-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 40px; }
.head { max-width: 720px; margin-bottom: 40px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: 12px; font: inherit; font-weight: 700; font-size: 16px; text-decoration: none; border: 1px solid transparent; cursor: pointer; }
.btn--lime { background: var(--lime); color: var(--ink); }
.btn--lime:hover { color: var(--ink); filter: brightness(.95); }
.btn--dark { background: var(--ink); color: var(--white); }
.btn--dark:hover { color: var(--white); background: #222833; }
.btn--ghost-dark { border-color: #3A4150; color: var(--white); background: transparent; }
.btn--ghost-dark:hover { color: var(--white); border-color: #5A6272; }
.btn--outline { border-color: #C9CFD9; background: var(--white); color: var(--ink); }
.btn--sm { min-height: 44px; font-size: 15px; padding: 0 18px; }

/* Header */
.site-header { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.site-header .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 14px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--font-display); font-weight: 700; font-size: 22px; letter-spacing: -.02em; }
.logo:hover { color: var(--ink); }
.nav { display: flex; flex-wrap: wrap; gap: 24px; font-size: 15px; font-weight: 500; }
.nav a { color: #3A4150; text-decoration: none; }
.nav a:hover { color: var(--ink); }
@media (max-width: 760px) { .nav { display: none; } .site-header { position: static; } }

/* Hero */
.hero { background: var(--ink); color: var(--white); }
.hero .container { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; padding-top: 96px; padding-bottom: 104px; }
.hero__copy { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.pill { align-self: flex-start; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--lime); border: 1px solid #3A4A1A; padding: 6px 12px; border-radius: 999px; }
.hero h1 { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: clamp(38px, 5.2vw, 62px); line-height: 1.03; letter-spacing: -.03em; }
.hero p { margin: 0; font-size: 19px; color: var(--muted-dark); max-width: 580px; }
.hero .small { font-size: 14px; color: var(--muted-dark-2); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__facts { flex: 1 1 380px; min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.fact { background: var(--ink-2); border: 1px solid var(--ink-3); border-radius: 16px; padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.fact strong { font-family: var(--font-display); font-size: 28px; color: var(--lime); }
.fact span { font-size: 14px; color: var(--muted-dark); }

/* Strip */
.strip { background: var(--white); border-bottom: 1px solid var(--line); }
.strip .container { display: flex; flex-wrap: wrap; gap: 12px 32px; align-items: center; justify-content: center; padding-top: 22px; padding-bottom: 22px; font-size: 15px; font-weight: 600; color: var(--text-2); }
.strip .container span:first-child { font-weight: 500; color: var(--text-3); }

/* Demo */
.tabs { display: flex; flex-wrap: wrap; gap: 6px; background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 4px; }
.tab { min-height: 40px; padding: 0 14px; border: 0; border-radius: 8px; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; background: transparent; color: #3A4150; }
.tab[aria-selected="true"] { background: var(--ink); color: var(--white); }
.player { background: var(--ink); border-radius: 24px; padding: 20px; display: flex; flex-direction: column; gap: 16px; margin: 0; }
.player__screens { display: flex; flex-wrap: wrap; gap: 16px; }
.chat { flex: 1 1 420px; min-width: 0; background: #0B0E13; border: 1px solid var(--ink-3); border-radius: 18px; padding: 18px; display: flex; flex-direction: column; gap: 12px; min-height: 460px; }
.chat__head { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid #1C222D; color: var(--white); }
.avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--blue); color: var(--white); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; }
.chat__head small { display: block; font-size: 12px; color: var(--muted-dark-2); }
.bubble { max-width: 82%; padding: 10px 14px; font-size: 14px; line-height: 1.45; color: var(--white); animation: pop .25s ease-out; }
.bubble--in { align-self: flex-start; background: var(--ink-3); border-radius: 14px 14px 14px 4px; }
.bubble--out { align-self: flex-end; background: var(--blue); border-radius: 14px 14px 4px 14px; }
.typing { align-self: flex-end; font-size: 12px; color: var(--muted-dark-2); }
@keyframes pop { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .bubble { animation: none; } html { scroll-behavior: auto; } }
.backstage { flex: 1 1 320px; min-width: 0; background: var(--ink-2); border: 1px solid var(--ink-3); border-radius: 18px; padding: 18px; display: flex; flex-direction: column; gap: 14px; color: var(--white); }
.backstage__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.status { font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--ink-3); color: #D6DAE2; }
.status--done { background: var(--lime); color: var(--ink); }
.log { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.log li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: #D6DAE2; animation: pop .25s ease-out; }
.log li::before { content: "✓"; flex: 0 0 22px; height: 22px; border-radius: 50%; background: var(--lime); color: var(--ink); font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.log-empty { margin: 0; font-size: 14px; color: var(--muted-dark-2); }
.controls { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.play { width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--lime); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.restart { min-height: 44px; padding: 0 14px; border-radius: 10px; border: 1px solid #3A4150; background: transparent; color: var(--white); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.progress { flex: 1 1 200px; height: 6px; border-radius: 999px; background: var(--ink-3); overflow: hidden; }
.progress span { display: block; height: 100%; width: 0; background: var(--lime); border-radius: 999px; transition: width .3s; }
.counter { font-size: 13px; color: var(--muted-dark-2); font-variant-numeric: tabular-nums; }
.player figcaption { font-size: 12px; color: var(--muted-dark-2); }

/* Cards and grids */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.card--soft { background: var(--bg); }
.card h3 { margin: 0; font-size: 19px; }
.card p { margin: 0; color: var(--text-2); font-size: 15px; }
.card .num { font-family: var(--font-display); font-weight: 700; color: var(--blue); font-size: 15px; }
.card .big-num { font-family: var(--font-display); font-weight: 700; color: var(--blue); font-size: 40px; }
.steps { list-style: none; margin: 0; padding: 0; }
.not-box { display: flex; flex-wrap: wrap; gap: 24px; background: var(--ink); color: var(--white); border-radius: 20px; padding: 32px; margin-top: 40px; }
.not-box > div { flex: 1 1 280px; min-width: 0; }
.not-box h3 { margin: 0 0 10px; font-family: var(--font-display); font-size: 26px; }
.not-box p { margin: 0; color: var(--muted-dark); }
.not-box ul { flex: 1 1 420px; min-width: 0; margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px 24px; color: #D6DAE2; font-size: 15px; }
.not-box li::before { content: "× "; color: var(--orange); font-weight: 700; }

/* Sectors */
.sector { background: var(--ink-2); border: 1px solid var(--ink-3); border-radius: var(--radius); padding: 24px; }
.sector h3 { margin: 0 0 14px; font-size: 19px; }
.sector ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: #D6DAE2; }
.sector li::before { content: "→ "; color: var(--lime); }
.section--dark .note { margin: 32px 0 0; color: var(--muted-dark); font-size: 15px; }
.section--dark .note a { color: var(--lime); font-weight: 600; }
.icon { width: 28px; height: 28px; stroke: var(--blue); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Comparison */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; background: var(--white); }
.compare { width: 100%; min-width: 720px; border-collapse: collapse; font-size: 15px; }
.compare th, .compare td { padding: 16px 20px; text-align: left; border-top: 1px solid var(--line); }
.compare thead th { background: var(--bg); border-top: 0; font-weight: 600; }
.compare thead th:last-child { background: var(--ink); color: var(--white); font-weight: 700; }
.compare td:first-child { font-weight: 600; }
.compare td { color: var(--text-2); }
.compare td:last-child { background: #F2F8E6; color: var(--ink); }

/* Pricing */
.billing { display: flex; gap: 4px; background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 4px; }
.billing button { min-height: 40px; padding: 0 14px; border: 0; border-radius: 8px; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; background: transparent; color: #3A4150; }
.billing button[aria-pressed="true"] { background: var(--ink); color: var(--white); }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.plan { border-radius: 20px; padding: 32px; display: flex; flex-direction: column; gap: 16px; background: var(--white); border: 1px solid var(--line); }
.plan--featured { background: var(--ink); color: var(--white); border-color: var(--ink); }
.plan__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.plan h3 { margin: 0; font-size: 22px; }
.badge { font-size: 12px; font-weight: 700; background: var(--lime); color: var(--ink); padding: 4px 10px; border-radius: 999px; }
.plan .sub { margin: 0; font-size: 15px; color: var(--text-2); }
.plan--featured .sub { color: var(--muted-dark); }
.price { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.price strong { font-family: var(--font-display); font-size: 50px; letter-spacing: -.02em; }
.plan ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.plan li::before { content: "✓  "; color: var(--blue); font-weight: 700; }
.plan--featured li::before { color: var(--lime); }
.plan .btn { margin-top: auto; }
.extras { margin-top: 16px; }
.extras .card strong { font-size: 16px; }

/* Trust */
.trust { display: flex; flex-wrap: wrap; gap: 40px; }
.trust > div { flex: 1 1 340px; min-width: 0; }
.trust ul { flex: 1 1 520px; min-width: 0; margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.trust li { display: flex; flex-direction: column; gap: 6px; }
.trust li span { color: var(--text-2); font-size: 15px; }

/* FAQ */
.faq { max-width: 900px; }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 20px 24px; margin-top: 12px; }
.faq summary { font-weight: 600; font-size: 17px; cursor: pointer; }
.faq details p { margin: 12px 0 0; color: var(--text-2); }

/* CTA + form */
.cta { background: var(--blue); color: var(--white); border-radius: 24px; padding: 48px; display: flex; flex-wrap: wrap; gap: 40px; align-items: center; }
.cta__copy { flex: 1 1 380px; min-width: 0; }
.cta__copy h2 { margin: 0; font-family: var(--font-display); font-size: clamp(30px, 3.6vw, 42px); letter-spacing: -.02em; }
.cta__copy p { color: #DCE2FF; }
.cta__copy a { color: var(--white); font-weight: 600; }
.form-card { flex: 1 1 380px; min-width: 0; background: var(--white); color: var(--ink); border-radius: 18px; padding: 28px; }
.form { display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; }
.field input, .field select { min-height: 46px; border: 1px solid #C9CFD9; border-radius: 10px; padding: 0 14px; font: inherit; font-weight: 400; background: var(--white); color: var(--ink); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--text-2); }
.check input { width: 18px; height: 18px; margin-top: 1px; }
.hp { position: absolute; left: -9999px; }
.form-error { margin: 0; font-size: 13px; color: #B42318; min-height: 1em; }
.form-ok { display: flex; flex-direction: column; gap: 12px; }
.form-ok h3 { margin: 0; font-family: var(--font-display); font-size: 24px; }
.form-ok p { margin: 0; color: var(--text-2); }
@media (max-width: 560px) { .cta { padding: 28px; } }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: var(--white); }
.site-footer .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-top: 32px; padding-bottom: 32px; font-size: 14px; color: var(--text-2); }
.site-footer nav { display: flex; gap: 20px; flex-wrap: wrap; }

/* Legal pages */
.legal { max-width: 820px; margin: 0 auto; padding: 64px 24px 96px; }
.legal h1 { font-family: var(--font-display); font-size: 40px; margin: 0 0 8px; }
.legal h2 { font-size: 22px; margin-top: 36px; }
.legal p, .legal li { color: var(--text-2); }
.legal .todo { background: #FFF3C4; color: #6B5200; padding: 12px 16px; border-radius: 10px; }
@media (max-width: 560px) { .fact strong { font-size: 22px; } .fact { padding: 16px; } }
