/* Stili comuni alle pagine interne (check-up, privacy). La home ha i suoi stili inline. */
:root {
  --bg: #07101a;
  --bg-2: #0b1724;
  --surface: #0f1d2c;
  --surface-2: #132436;
  --line: rgba(148, 178, 214, .14);
  --line-strong: rgba(148, 178, 214, .28);
  --text: #eaf1f8;
  --muted: #93a6bb;
  --violet: #9b4cf5;
  --cyan: #2ec4f1;
  --green: #34d399;
  --red: #f87171;
  --grad: linear-gradient(100deg, #9b4cf5 0%, #3b7bf0 55%, #2ec4f1 100%);
  --radius: 18px;
  --maxw: 1180px;
  --font-head: "Sora", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font-body); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 600; line-height: 1.12; letter-spacing: -0.02em; margin: 0; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.eyebrow { font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--cyan); }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.section { padding: 110px 0; position: relative; }
.section-head { max-width: 760px; margin-bottom: 52px; }
.section-head h2 { font-size: clamp(30px, 4.2vw, 46px); margin-top: 16px; }
.section-head p { color: var(--muted); margin-top: 18px; font-size: 18px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 24px; border-radius: 999px; font: 600 15.5px var(--font-body); text-decoration: none; transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease; white-space: nowrap; cursor: pointer; border: 0; }
.btn svg { width: 18px; height: 18px; transition: transform .2s ease; }
.btn:hover svg { transform: translateX(3px); }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 10px 30px -10px rgba(110, 90, 240, .7); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 38px -10px rgba(110, 90, 240, .85); }
.btn-ghost { border: 1px solid var(--line-strong); color: var(--text); background: rgba(255,255,255,.02); }
.btn-ghost:hover { border-color: var(--cyan); background: rgba(46, 196, 241, .06); }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }

/* Nav */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; transition: background .3s ease, border-color .3s ease; border-bottom: 1px solid transparent; }
.nav.scrolled { background: rgba(7, 16, 26, .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-color: var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.logo img { height: 46px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 30px; list-style: none; margin: 0; padding: 0; }
.nav-links a { text-decoration: none; color: var(--muted); font-size: 15px; font-weight: 500; transition: color .2s; }
.nav-links a:hover { color: var(--text); }
.nav-links .btn { color: #fff; padding: 10px 20px; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line-strong); border-radius: 10px; width: 44px; height: 44px; color: var(--text); cursor: pointer; }
.nav-toggle svg { width: 22px; height: 22px; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 24px 0; display: flex; justify-content: space-between; align-items: center; gap: 20px; font-family: var(--font-head); font-size: 18px; font-weight: 500; }
.faq summary::-webkit-details-marker { display: none; }
.faq .plus { flex: none; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; transition: transform .25s, border-color .25s; }
.faq .plus svg { width: 14px; height: 14px; }
.faq details[open] .plus { transform: rotate(45deg); border-color: var(--cyan); }
.faq details p { color: var(--muted); padding: 0 48px 26px 0; font-size: 16px; }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 44px 0; }
.foot { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.foot img { height: 40px; width: auto; }
.foot p, .foot a { color: var(--muted); font-size: 14px; text-decoration: none; }
.foot-links { display: flex; gap: 24px; flex-wrap: wrap; }
.foot-links a:hover { color: var(--text); }
.legal { flex-basis: 100%; font-size: 12.5px !important; opacity: .8; }

/* Comparsa allo scroll */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; } .reveal.d3 { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation: none !important; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .section { padding: 80px 0; }
  .nav-toggle { display: grid; place-items: center; }
  .nav-links { position: absolute; top: 76px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: 0 30px 40px -20px rgba(0,0,0,.7); padding: 8px 16px 20px; display: none; max-height: calc(100vh - 76px); overflow-y: auto; }
  .nav.open .nav-links { display: flex; }
  .nav.open { background: var(--bg); }
  .nav-links li a { display: block; padding: 14px 4px; font-size: 16px; }
  .nav-links li:last-child { margin-top: 10px; }
  .faq details p { padding-right: 0; }
  .foot { flex-direction: column; align-items: flex-start; }
}
