/* site.css — home pubblica di Ondacast. Nessun font esterno e nessuna libreria: la pagina deve caricarsi subito. */
:root {
  --green: #00963f; --green-dark: #057a35; --ink: #1d1d1b; --text: #33383d; --muted: #646b73;
  --line: #e3e6e8; --soft: #f4f6f5; --white: #fff; --radius: 14px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; color: var(--text); background: var(--white); font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }
img, video, svg { max-width: 100%; }
img { height: auto; }
a { color: var(--green-dark); }
h1, h2, h3 { color: var(--ink); line-height: 1.15; margin: 0; text-wrap: balance; }
h2 { font-size: clamp(28px, 4vw, 40px); letter-spacing: -.01em; margin-bottom: 20px; }
h3 { font-size: 19px; line-height: 1.3; }
p { margin: 0 0 14px; }
.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 820px; }
.muted { color: var(--muted); font-size: 15px; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--white); color: var(--ink); padding: 10px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }

.btn { display: inline-block; background: var(--green); color: #fff; font-weight: 600; text-decoration: none; padding: 10px 18px; border-radius: 999px; border: 2px solid var(--green); cursor: pointer; font: inherit; font-weight: 600; line-height: 1.2; transition: background .15s, border-color .15s; }
.btn:hover { background: var(--green-dark); border-color: var(--green-dark); }
.btn.big { padding: 14px 26px; font-size: 18px; }
.btn.ghost { background: transparent; border-color: rgba(255, 255, 255, .7); color: #fff; }
.btn.ghost:hover { background: rgba(255, 255, 255, .14); border-color: #fff; }
.btn:disabled { opacity: .6; cursor: progress; }
.hdr .btn { white-space: nowrap; }

/* Testata fissa (sticky): trasparente sopra il video, scura e più bassa appena si scorre (classe .scrolled da site.js) */
.hdr { position: fixed; top: 0; left: 0; right: 0; z-index: 50; transition: background-color .25s, box-shadow .25s; }
.hdr.scrolled { background: rgba(20, 22, 21, .94); box-shadow: 0 6px 24px rgba(0, 0, 0, .25); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.hdr-in { display: flex; align-items: center; gap: 24px; padding-top: 16px; padding-bottom: 16px; transition: padding .25s; }
.hdr.scrolled .hdr-in { padding-top: 9px; padding-bottom: 9px; }
.logo img { display: block; width: 160px; transition: width .25s; }
.hdr.scrolled .logo img { width: 130px; }
.nav a { position: relative; }
.nav a.on { opacity: 1; }
.nav a.on::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; border-radius: 2px; background: #3ddc84; }
/* Le ancore del menu non finiscono sotto la testata fissa */
section[id] { scroll-margin-top: 76px; }
.nav { display: flex; gap: 22px; margin-left: 12px; flex: 1; }
.nav a, .hdr .lnk, .hdr .lang { color: #fff; text-decoration: none; font-size: 15px; opacity: .9; }
.nav a:hover, .hdr .lnk:hover, .hdr .lang:hover { opacity: 1; text-decoration: underline; }
.hdr-act { display: flex; align-items: center; gap: 18px; margin-left: auto; }

/* Hero */
.hero { position: relative; min-height: min(92vh, 860px); display: flex; align-items: center; background: #14181a center/cover no-repeat; overflow: hidden; isolation: isolate; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(17, 20, 21, .9) 0%, rgba(17, 20, 21, .72) 45%, rgba(17, 20, 21, .35) 100%); }
.hero-in { padding-top: 130px; padding-bottom: 80px; color: #fff; }
.kicker { color: #7fe3a6; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; font-size: 14px; margin-bottom: 14px; }
.hero h1 { color: #fff; font-size: clamp(34px, 5.6vw, 64px); letter-spacing: -.02em; max-width: 17ch; }
.lead { font-size: clamp(18px, 2vw, 21px); max-width: 60ch; margin: 22px 0 30px; color: #e9eeec; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.points { list-style: none; padding: 0; margin: 34px 0 0; display: flex; gap: 10px 28px; flex-wrap: wrap; font-size: 15px; color: #dfe6e3; }
.points li::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #3ddc84; margin-right: 10px; vertical-align: 1px; }

/* Sezioni */
.sec { padding: clamp(56px, 8vw, 104px) 0; }
.sec.alt { background: var(--soft); }
.sec.dark { background: var(--ink); color: #d5dad8; }
.sec.dark h2, .sec.dark h3 { color: #fff; }
.two { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.stats { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.stats li { display: flex; align-items: baseline; gap: 16px; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; }
.stats b { font-size: 40px; line-height: 1; color: var(--green); min-width: 2.6ch; font-variant-numeric: tabular-nums; }
.steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.steps li { counter-increment: s; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--green); color: #fff; font-weight: 700; margin-bottom: 16px; }
.steps h3, .grid h3 { margin-bottom: 8px; }
.steps p, .grid p { margin: 0; font-size: 16px; }
.grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.grid li { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 20px; }
.grid svg { color: var(--green); margin-bottom: 12px; display: block; }
.sec.dark .grid li { border-color: #3a3f3d; background: #252826; }
.sec.dark .grid li { border-top: 3px solid var(--green); }

details { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; padding: 18px 34px 18px 0; position: relative; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary h3 { display: inline; font-size: 18px; }
summary::after { content: "+"; position: absolute; right: 4px; top: 14px; font-size: 26px; line-height: 1; color: var(--green); }
details[open] summary::after { content: "–"; }
details p { padding: 0 34px 18px 0; }

/* Modulo */
.form { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form label { display: block; font-size: 14px; color: var(--muted); margin-bottom: 14px; }
.form input[type=text], .form input[type=email], .form input[type=tel], .form textarea { display: block; width: 100%; margin-top: 6px; padding: 12px 14px; border: 1px solid #c9cfd3; border-radius: 10px; font: inherit; color: var(--ink); background: #fff; }
.form textarea { resize: vertical; }
.form .chk { display: flex; gap: 10px; align-items: flex-start; color: var(--text); }
.form .chk input { margin-top: 5px; width: 18px; height: 18px; flex: none; accent-color: var(--green); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { margin: 14px 0 0; min-height: 1.5em; font-weight: 600; }
.form-msg .ok { color: var(--green-dark); }
.form-msg .ko { color: #b42318; }

/* Piè di pagina */
.ftr { background: #141615; color: #b9c0bd; padding: 48px 0 40px; font-size: 15px; }
.ftr a { color: #dfe6e3; }
.ftr-in { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 32px; align-items: start; }
.ftr address { font-style: normal; line-height: 1.7; }
.ftr address b { color: #fff; }
.powered { display: flex; align-items: center; gap: 12px; margin: 18px 0 0; flex-wrap: wrap; }
.powered a { display: inline-block; background: #fff; border-radius: 10px; padding: 8px 12px; line-height: 0; }
.legal { margin: 0; line-height: 1.7; }

/* Pagina privacy */
.doc-hdr { background: var(--ink); padding: 18px 0; }
.doc { padding: 48px 0 72px; }
.doc h1 { font-size: clamp(30px, 4vw, 42px); margin-bottom: 28px; }
.doc h2 { font-size: 21px; margin: 28px 0 8px; }

@media (max-width: 980px) {
  .nav { display: none; }
  .two, .ftr-in { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .grid, .grid.four { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .hdr .lnk { display: none; }
  .hdr-act { gap: 12px; }
  .logo img, .hdr.scrolled .logo img { width: 124px; }
  .hdr .btn { padding: 8px 14px; font-size: 15px; }
  .grid, .grid.four, .form .row { grid-template-columns: 1fr; }
  .hero-in { padding-top: 110px; padding-bottom: 56px; }
  .btn.big { width: 100%; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-video { display: none; }
}

/* Sezione prova gratuita */
.sec.trial { background: linear-gradient(135deg, #0f2a1b 0%, #14181a 70%); color: #d5dad8; }
.sec.trial h2 { color: #fff; }
.lead-dark { font-size: 19px; color: #e9eeec; margin-bottom: 26px; max-width: 46ch; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.checks li { position: relative; padding: 14px 18px 14px 50px; border: 1px solid rgba(255, 255, 255, .14); border-radius: var(--radius); background: rgba(255, 255, 255, .04); }
.checks li::before { content: ""; position: absolute; left: 18px; top: 19px; width: 14px; height: 8px; border-left: 3px solid #3ddc84; border-bottom: 3px solid #3ddc84; transform: rotate(-45deg); }

/* Pagina di registrazione */
.signup { padding: 48px 0 72px; background: var(--soft); min-height: calc(100vh - 80px); }
.signup .two { align-items: start; }
.signup h1 { font-size: clamp(30px, 4vw, 44px); margin-bottom: 12px; }
.signup .includes { list-style: none; padding: 0; margin: 22px 0; display: flex; flex-wrap: wrap; gap: 8px; }
.signup .includes li { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: 15px; }
.form input[type=password] { display: block; width: 100%; margin-top: 6px; padding: 12px 14px; border: 1px solid #c9cfd3; border-radius: 10px; font: inherit; color: var(--ink); background: #fff; }
.form .btn.big { width: 100%; }
.done { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--green); border-radius: var(--radius); padding: 22px 24px; }
.done h2 { font-size: 24px; margin-bottom: 8px; }
.doc .version { color: var(--muted); font-size: 15px; margin: -16px 0 24px; }
.lead-signup { font-size: 19px; color: var(--text); }
