/* EngineCheck · palette ripresa dal logo Gubellini Electronics: nero, bianco, rosso, tricolore */
:root {
  --bg: #f4f5f7;
  --surface: #ffffff;
  --ink: #111318;
  --muted: #5a6270;
  --line: #dfe3e9;
  --night: #0b0d10;
  --night-2: #171b22;
  --night-ink: #f3f4f6;
  --night-muted: #a7afbc;
  --brand: #d4161c;
  --brand-dark: #a80f14;
  --brand-ink: #ffffff;
  --link: #b3121a;
  --accent: #d4161c;
  --it-green: #009246;
  --it-red: #ce2b37;
  --green: #1f9d55;
  --yellow: #d9a400;
  --red: #d64545;
  --grey: #9aa3af;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 4px 14px rgba(16, 24, 40, .06);
  --shadow-lg: 0 18px 40px rgba(0, 0, 0, .28);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1116;
    --surface: #161b22;
    --ink: #e8ecf1;
    --muted: #9ba6b4;
    --line: #2a313b;
    --brand: #ec2a30;
    --brand-dark: #c81c22;
    --link: #ff6b70;
    --accent: #ec2a30;
    --green: #3fb950;
    --yellow: #e3b341;
    --red: #f26b6b;
    --grey: #6e7781;
    --shadow: none;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
a { color: var(--link); }
img { max-width: 100%; height: auto; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.015em; }
h1 { font-size: clamp(1.8rem, 4.2vw, 2.9rem); font-weight: 800; }
h2 { font-size: clamp(1.35rem, 2.8vw, 1.85rem); margin-top: 1.6em; font-weight: 800; }
h3 { font-size: 1.05rem; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card.pad { padding: 18px 20px; }
.card.pad p { margin-top: 0; }
.muted, .note { color: var(--muted); }
.note { font-size: .9rem; }
.center { text-align: center; }
.narrow { max-width: 760px; }
.small { font-size: .88rem; }

/* header: barra scura con logo e striscia tricolore */
.top { background: var(--night); color: var(--night-ink); position: sticky; top: 0; z-index: 20; }
.top-row { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 12px; }
.tricolore { height: 4px; background: linear-gradient(90deg, var(--it-green) 0 33.3%, #fff 33.3% 66.6%, var(--it-red) 66.6% 100%); }
.brand { display: flex; align-items: center; gap: 14px; color: var(--night-ink); text-decoration: none; min-width: 0; }
.brand-logo { height: 32px; width: auto; display: block; }
.brand-name { font-size: 1.2rem; font-weight: 800; letter-spacing: -.01em; padding-left: 14px; border-left: 1px solid #2c323c;
  white-space: nowrap; }
.brand-name small { display: block; font-size: .72rem; font-weight: 500; color: var(--night-muted); letter-spacing: 0; }
.nav { display: flex; align-items: center; gap: 4px; }
.navlink { color: var(--night-ink); text-decoration: none; font-weight: 600; padding: 6px 10px; border-radius: 8px; font-size: .95rem; }
.navlink:hover { background: var(--night-2); }
.nav-cta { background: var(--brand); color: #fff; }
.nav-cta:hover { background: var(--brand-dark); }
.inline { display: inline; margin: 0; }
.linkish { background: none; border: 0; padding: 0; font: inherit; color: var(--link); cursor: pointer; text-decoration: underline; }
.navlink.linkish { color: var(--night-ink); text-decoration: none; padding: 6px 10px; }
.langs { position: relative; margin-left: 4px; }
.langs summary { list-style: none; cursor: pointer; font-weight: 700; font-size: .85rem; padding: 6px 10px; border-radius: 8px;
  border: 1px solid #2c323c; color: var(--night-ink); }
.langs summary::-webkit-details-marker { display: none; }
.langs summary::after { content: " ▾"; color: var(--night-muted); }
.langs ul { position: absolute; right: 0; top: calc(100% + 6px); list-style: none; margin: 0; padding: 6px; min-width: 150px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow-lg); }
.langs li a { display: block; padding: 7px 10px; border-radius: 6px; color: var(--ink); text-decoration: none; font-size: .92rem; }
.langs li a:hover { background: var(--bg); }
.langs li a[aria-current] { font-weight: 700; color: var(--brand); }

/* footer */
.foot { margin-top: 72px; padding: 36px 0 32px; background: var(--night); color: var(--night-muted); font-size: .88rem; }
.foot-grid { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: flex-start; }
.foot-logo { height: 46px; width: auto; display: block; margin-bottom: 10px; }
.foot-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.foot a { color: var(--night-ink); }
.foot .fine { font-size: .76rem; margin-top: 22px; padding-top: 16px; border-top: 1px solid #222832; }

/* hero */
.hero { position: relative; overflow: hidden; color: var(--night-ink); padding: 56px 0 64px;
  background: radial-gradient(1000px 500px at 85% -10%, rgba(212, 22, 28, .35), transparent 60%),
              radial-gradient(800px 420px at -10% 110%, rgba(0, 146, 70, .22), transparent 60%),
              linear-gradient(160deg, #0b0d10 0%, #151a22 60%, #0b0d10 100%); }
.hero::after { content: ""; position: absolute; inset: auto -10% -2px -10%; height: 70px; background: var(--bg);
  clip-path: polygon(0 100%, 100% 30%, 100% 100%); }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr 1fr; gap: 44px; align-items: center; }
.badge { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 999px; font-size: .82rem;
  font-weight: 700; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); margin-bottom: 18px; }
.badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px rgba(212, 22, 28, .25); }
.hero h1 { color: #fff; }
.lead { font-size: 1.12rem; color: var(--muted); }
.hero .lead { color: #c9d0da; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.btn.ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .35); }
.btn.ghost:hover { background: rgba(255, 255, 255, .08); }
.checks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.checks a { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 10px; text-decoration: none;
  color: #fff; font-weight: 600; font-size: .9rem; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); }
.checks a::before { content: "✓"; color: #4ade80; font-weight: 800; }
.checks a:hover { background: rgba(255, 255, 255, .1); }
.formats { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; list-style: none; margin: 22px 0 0; }
.formats li { border: 1px solid rgba(255, 255, 255, .18); padding: 3px 10px; border-radius: 999px; font-size: .76rem; color: #c9d0da; }
.upload { padding: 22px; display: grid; gap: 14px; color: var(--ink); box-shadow: var(--shadow-lg); border: 0; }
.drop { position: relative; display: grid; justify-items: center; gap: 4px; text-align: center; cursor: pointer;
  border: 2px dashed var(--line); border-radius: var(--radius); padding: 30px 16px; transition: border-color .15s, background .15s; }
.drop:hover, .drop.over { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 6%, transparent); }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop small { color: var(--muted); word-break: break-all; }
.drop-icon { width: 46px; height: 46px; border-radius: 12px; background: var(--brand); position: relative; margin-bottom: 6px; }
.drop-icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 15px; height: 15px; margin: -4px 0 0 -7.5px;
  border-left: 3px solid #fff; border-top: 3px solid #fff; transform: rotate(45deg); }
.field { display: grid; gap: 6px; font-weight: 600; font-size: .92rem; }
.field small { font-weight: 400; }
select { font: inherit; padding: 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); }
input:not([type=file]):not([type=hidden]):not([type=checkbox]) { font: inherit; padding: 10px; border-radius: 8px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink); width: 100%; }
.btn { display: inline-block; font: inherit; font-weight: 700; padding: 11px 18px; border-radius: 10px; cursor: pointer;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none; text-align: center;
  transition: background .15s, transform .05s; }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.btn.primary:hover { background: var(--brand-dark); border-color: var(--brand-dark); }
.btn:disabled { opacity: .55; cursor: not-allowed; }

/* sezioni della home */
.section-head { display: grid; gap: 6px; }
.kicker { margin: 0; text-transform: uppercase; letter-spacing: .1em; font-size: .75rem; color: var(--brand); font-weight: 800; }
.diff { padding: 28px 0 8px; }
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 22px; }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow);
  position: relative; overflow: hidden; }
.feature::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px;
  background: linear-gradient(90deg, var(--it-green), #fff, var(--it-red)); }
.feature p { color: var(--muted); font-size: .93rem; margin: 0; }
.feature svg { width: 64px; height: 40px; margin-bottom: 10px; fill: none; stroke: var(--brand); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.feature svg text { fill: var(--muted); stroke: none; font-size: 9px; font-weight: 700; }
.feature svg .dash { stroke: var(--it-green); stroke-dasharray: 4 3; }
.how-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 20px; counter-reset: step; }
.how-step { padding: 20px; position: relative; }
.how-step::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 38px; height: 38px;
  border-radius: 50%; background: var(--night); color: #fff; font-weight: 800; margin-bottom: 10px; box-shadow: inset 0 0 0 2px var(--brand); }
.how-step p { margin: 0; }
.price-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 20px; }
.price { padding: 22px; display: flex; flex-direction: column; gap: 8px; }
.price h3 { margin: 0; }
.price.featured { border: 2px solid var(--brand); position: relative; }
.price.featured::before { content: "★"; position: absolute; top: -13px; right: 16px; width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center; background: var(--brand); color: #fff; font-size: .8rem; }
.amount { font-size: 1.9rem; font-weight: 800; margin: 0; letter-spacing: -.02em; }
.amount small { font-size: .85rem; color: var(--muted); font-weight: 500; }
.price p { color: var(--muted); font-size: .92rem; margin: 0; flex: 1; }
.price .btn { margin-top: 8px; }

/* risultato */
.result-head { padding-top: 28px; }
.verdict { display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center; padding: 22px; border-left: 6px solid var(--grey); }
.verdict.green { border-left-color: var(--green); }
.verdict.yellow { border-left-color: var(--yellow); }
.verdict.red { border-left-color: var(--red); }
.verdict h1 { margin: 0; }
.verdict .meta { margin: 4px 0 0; color: var(--muted); }
.eyebrow { margin: 0; text-transform: uppercase; letter-spacing: .08em; font-size: .75rem; color: var(--muted); font-weight: 700; }
.verdict .light { width: 34px; height: 34px; }
.score { text-align: center; min-width: 104px; padding: 8px 12px; border-radius: 12px; background: var(--bg); }
.score-num { display: block; font-size: 2.5rem; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1; }
.score-lbl { font-size: .78rem; color: var(--muted); }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 16px 0 0; }
.facts div { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; }
.facts dt { font-size: .78rem; color: var(--muted); }
.facts dd { margin: 0; font-weight: 600; }
.light { display: inline-block; width: 16px; height: 16px; border-radius: 50%; flex: none; background: var(--grey);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--grey) 25%, transparent); }
.light.green { background: var(--green); box-shadow: 0 0 0 3px color-mix(in srgb, var(--green) 25%, transparent); }
.light.yellow { background: var(--yellow); box-shadow: 0 0 0 3px color-mix(in srgb, var(--yellow) 25%, transparent); }
.light.red { background: var(--red); box-shadow: 0 0 0 3px color-mix(in srgb, var(--red) 25%, transparent); }
.hl-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.hl { display: flex; gap: 12px; align-items: flex-start; padding: 16px; border-top: 3px solid var(--brand); }
.hl .light { margin-top: 3px; }
.hl h3 { margin: 0 0 2px; font-size: .95rem; }
.hl p { margin: 0; color: var(--muted); font-size: .9rem; }
.hl .big { font-size: 1.4rem; color: var(--ink); }
.areas { display: grid; gap: 10px; }
.area summary { display: flex; align-items: center; gap: 12px; padding: 14px 16px; cursor: pointer; font-weight: 600; list-style: none; }
.area summary::-webkit-details-marker { display: none; }
.area summary small { margin-left: auto; color: var(--muted); font-weight: 500; }
.area > p, .findings { margin: 0; padding: 0 16px 14px 44px; }
.findings li { margin: 6px 0; }
.findings .sev-red { color: var(--red); }
.findings .sev-yellow { color: color-mix(in srgb, var(--yellow) 70%, var(--ink)); }
.chart { padding: 8px; min-height: 340px; }
.charts { padding: 8px; }
.paywall { display: flex; gap: 20px; align-items: center; justify-content: space-between; padding: 22px; margin-top: 16px;
  border: 1px solid color-mix(in srgb, var(--brand) 45%, var(--line)); background: color-mix(in srgb, var(--brand) 5%, var(--surface)); }
.paywall h2 { margin-top: 0; }
.paywall-actions { display: grid; gap: 8px; min-width: 240px; }
.paywall-actions form { margin: 0; }
.paywall-actions .btn { width: 100%; }
.siblings { list-style: none; padding: 0; display: grid; gap: 8px; }
.siblings a { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); text-decoration: none; color: var(--ink); }
.metrics { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.metrics div { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; }
.metrics dt { font-size: .78rem; color: var(--muted); }
.metrics dd { margin: 0; font-weight: 600; }
.notes { padding: 12px 16px; font-size: .9rem; }
.disclaimer { font-size: .8rem; color: var(--muted); margin-top: 32px; }
.narrow-page { max-width: 640px; padding-top: 48px; }
.error { padding: 24px; }

/* account, hangar */
.auth { padding: 26px; }
.stack { display: grid; gap: 14px; margin-top: 12px; }
.alert { padding: 10px 12px; border-radius: 8px; background: color-mix(in srgb, var(--red) 12%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--red) 40%, transparent); }
.alert.ok { background: color-mix(in srgb, var(--green) 12%, var(--surface)); border-color: color-mix(in srgb, var(--green) 40%, transparent); }
.btn.google { width: 100%; text-align: center; margin-top: 8px; }
.sep { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: .85rem; margin: 14px 0 0; }
.sep::before, .sep::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
.page-head { padding-top: 30px; }
.page-head h1 small { font-size: 1rem; font-weight: 500; }
.row-between { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.plane-list { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.plane { display: flex; gap: 12px; align-items: center; padding: 14px 16px; text-decoration: none; color: var(--ink); }
.plane:hover { border-color: var(--brand); }
.form-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; padding: 18px; }
.form-actions { grid-column: 1 / -1; }
.subform { margin-top: 12px; }
.subform summary { padding: 12px 16px; cursor: pointer; font-weight: 600; }
.upload-inline { display: flex; gap: 12px; align-items: center; padding: 14px; }
.upload-inline .drop { flex: 1; padding: 14px; }
.table-wrap { overflow-x: auto; }
.sched { width: 100%; border-collapse: collapse; font-size: .93rem; }
.sched th, .sched td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.sched th { font-size: .78rem; color: var(--muted); font-weight: 600; }
.sched tr:last-child td { border-bottom: 0; }
.trend { padding: 12px; }
.trend .findings { padding: 4px 8px 8px 24px; }
#trend-charts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.claim { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center; padding: 16px; }
.claim h3 { margin: 0; }
.claim p { margin: 2px 0 0; }

/* guida */
.guide-hero { padding: 44px 0 56px; }
.guide-hero .lead { max-width: 720px; }
.guide-steps { display: grid; gap: 18px; margin-top: 8px; counter-reset: gstep; }
.gstep { display: grid; grid-template-columns: 1fr 1.1fr; gap: 24px; padding: 24px; align-items: center; }
.gstep:nth-child(even) .gstep-text { order: 2; }
.gstep.noimg { grid-template-columns: 1fr; }
.gstep.noimg p { max-width: 820px; }
.gstep-num { counter-increment: gstep; display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px;
  background: var(--brand); color: #fff; font-weight: 800; margin-bottom: 10px; }
.gstep-num::before { content: counter(gstep); }
.gstep h2 { margin-top: 0; font-size: 1.35rem; }
.gstep p { color: var(--muted); margin: 0; }
.gstep figure { margin: 0; }
.gstep img { display: block; width: 100%; border-radius: 10px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.gstep .formats li { border-color: var(--line); color: var(--muted); }
.tips { list-style: none; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tips li { padding: 14px 16px 14px 44px; position: relative; }
.tips li::before { content: "✓"; position: absolute; left: 16px; top: 13px; color: var(--it-green); font-weight: 800; }
.cta-band { margin-top: 28px; padding: 26px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  background: var(--night); color: #fff; border: 0; }
.cta-band h2 { margin: 0; color: #fff; }

/* icone (sprite static/img/icons.svg), emblema, look da strumento di bordo */
.ic { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round; vertical-align: -0.2em; }
.btn .ic, .navlink .ic, .langs summary .ic { margin-right: .45em; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0; }
.navlink { display: inline-flex; align-items: center; }
.ic.h { width: 1em; height: 1em; margin-right: .45em; color: var(--brand); vertical-align: -0.1em; }
.brand-name { display: flex; align-items: center; gap: 10px; }
.emblem { width: 38px; height: 38px; display: block; filter: drop-shadow(0 0 6px rgba(212, 22, 28, .35)); }
.num, .stat-num, .score-num, .amount, .sched td, .facts dd { font-variant-numeric: tabular-nums; }
.hero { background-blend-mode: normal; }
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 32px 32px; mask-image: radial-gradient(ellipse at 70% 30%, #000 30%, transparent 75%); }
.kicker, .eyebrow { font-family: ui-monospace, "Cascadia Mono", "SF Mono", Menlo, Consolas, monospace; }
/* punteggio di salute come quadrante */
.score.ring { --ring: var(--grey); width: 112px; height: 112px; min-width: 112px; padding: 0; border-radius: 50%;
  display: grid; place-content: center; text-align: center; position: relative;
  background: conic-gradient(var(--ring) calc(var(--val, 0) * 1%), color-mix(in srgb, var(--line) 80%, transparent) 0); }
.score.ring::before { content: ""; position: absolute; inset: 9px; border-radius: 50%; background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line); }
.score.ring > * { position: relative; }
.score.ring .score-num { font-size: 2.1rem; }
.score.ring .score-lbl { font-size: .62rem; line-height: 1.15; max-width: 74px; margin: 2px auto 0; }
.verdict.green .score.ring { --ring: var(--green); }
.verdict.yellow .score.ring { --ring: var(--yellow); }
.verdict.red .score.ring { --ring: var(--red); }
/* statistiche (profilo d'uso) */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.stat { padding: 14px 16px; display: grid; gap: 2px; border-left: 4px solid var(--green); }
.stat span:last-child { color: var(--muted); font-size: .85rem; line-height: 1.3; }
.stat-num { font-size: 1.5rem; font-weight: 800; letter-spacing: -.01em; }
.stat.warn { border-left-color: var(--yellow); }
.stat.bad { border-left-color: var(--red); }
.pctbar { display: inline-block; width: 90px; height: 8px; border-radius: 99px; background: var(--line); vertical-align: middle;
  overflow: hidden; margin-right: 6px; }
.pctbar span { display: block; height: 100%; background: linear-gradient(90deg, var(--brand), #ff7a45); }
@media (max-width: 640px) {
  .navlink span { display: none; }
  .navlink .ic { margin-right: 0; width: 1.3em; height: 1.3em; }
  .emblem { width: 30px; height: 30px; }
  .score.ring { width: 92px; height: 92px; min-width: 92px; }
}

/* pagine legali, consensi, cancellazione */
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; font-weight: 400; line-height: 1.45; }
.check input { margin-top: 3px; width: 18px; height: 18px; flex: none; accent-color: var(--brand); }
.legal-page { padding-top: 28px; }
.legal-nav { display: flex; flex-wrap: wrap; gap: 8px; }
.legal-nav a { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; color: var(--ink);
  background: var(--surface); font-size: .9rem; }
.legal-nav a[aria-current] { background: var(--night); color: #fff; border-color: var(--night); }
.legal { padding: 28px 30px; }
.legal h1 { font-size: 1.9rem; }
.legal h2 { font-size: 1.15rem; margin-top: 1.5em; }
.legal li { margin: 6px 0; }
.imprint { display: grid; grid-template-columns: max-content 1fr; gap: 8px 20px; }
.imprint dt { color: var(--muted); }
.imprint dd { margin: 0; font-weight: 600; }
.confirm-item { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 14px 16px;
  border-radius: 12px; background: var(--bg); }
.danger summary { color: var(--red); }
.btn.danger-btn { background: var(--red); border-color: var(--red); color: #fff; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .feature-grid, .price-grid, .hl-grid, .facts { grid-template-columns: repeat(2, 1fr); }
  .how-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr 1fr; }
  #trend-charts { grid-template-columns: 1fr; }
  .claim { grid-template-columns: 1fr; }
  .gstep { grid-template-columns: 1fr; }
  .gstep:nth-child(even) .gstep-text { order: 0; }
  .brand-name small { display: none; }
}
@media (max-width: 640px) {
  .brand-logo { height: 24px; }
  .brand-name { font-size: 1.02rem; padding-left: 10px; }
  .nav .navlink { padding: 5px 7px; font-size: .88rem; }
  .feature-grid, .price-grid, .hl-grid, .tips { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .upload-inline { flex-direction: column; align-items: stretch; }
  .verdict { grid-template-columns: auto 1fr; }
  .score { grid-column: 1 / -1; text-align: left; display: flex; align-items: baseline; gap: 8px; }
  .paywall { flex-direction: column; align-items: stretch; }
  .checks { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .brand-logo { display: none; }
  .brand-name { border-left: 0; padding-left: 0; }
}

/* I tuoi report e School & Workshop */
.report-item { flex-wrap: wrap; }
.report-item .report-actions { margin-left: auto; font-size: .9rem; }
.fleet td .light { vertical-align: middle; }
.brand-preview { max-height: 56px; max-width: 220px; background: #fff; padding: 6px; border: 1px solid var(--line); border-radius: 6px; }
.inline-form { display: flex; gap: 8px; align-items: end; flex-wrap: wrap; }
.inline-form .field { flex: 1 1 200px; }
