:root {
    --brand: #006DEC;
    --brand-2: #80BBFF;
    --ink: #191A1E;
    --muted: #5B6470;
    --line: #E3E8EF;
    --bg: #F6F9FC;
    --ok: #1B8E5A;
    --warn: #B26A00;
    --err: #C0392B;
    --radius: 12px;
}

* { box-sizing: border-box; }

body {
    font-family: Poppins, "Segoe UI", Arial, sans-serif;
    color: var(--ink);
    background: var(--bg);
    margin: 0;
    line-height: 1.5;
}

.wrap { width: 100%; max-width: 1680px; margin: 0 auto; padding: 0 clamp(20px, 5vw, 72px); }

/* Topbar — full-width, sticky in cima */
.topbar { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; }
.bar { display: flex; align-items: center; justify-content: space-between; height: 94px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { height: 56px; width: auto; display: block; filter: brightness(0); }   /* logo nero (come il sito: brightness-0) */
.brand span { color: var(--brand); font-weight: 700; font-size: 1.65rem; line-height: 1; letter-spacing: .01em; }
.nav { display: flex; align-items: center; gap: 16px; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; }
.nav a:hover { color: var(--brand); }
.nav .who { color: var(--muted); font-size: .9rem; }
.nav .muted { color: var(--muted); font-weight: 400; }
.devbadge { background: #FFF3D6; color: var(--warn); border: 1px solid #F0D79A; border-radius: 6px; padding: 2px 8px; font-size: .75rem; font-weight: 600; letter-spacing: .04em; }

.main { padding: 32px 20px 48px; }
.foot { color: var(--muted); font-size: .85rem; padding: 24px 20px 40px; border-top: 1px solid var(--line); margin-top: 24px; }

h1 { font-size: 1.6rem; margin: 0 0 .2em; }
h2 { font-size: 1.15rem; margin: 0 0 .6em; }
.lead { color: var(--muted); margin: 0 0 24px; }

/* Cards */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin-bottom: 20px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.card-head h2 { margin: 0; }

/* Buttons */
.btn { display: inline-block; background: var(--brand); color: #fff; text-decoration: none; border: 0; border-radius: 8px; padding: 10px 16px; font: inherit; font-weight: 600; cursor: pointer; }
.btn:hover { background: #005BC4; }
.btn-sm { padding: 7px 12px; font-size: .9rem; }
.btn-ghost { background: #EAF2FE; color: var(--brand); }
.btn-ghost:hover { background: #DBE9FD; }

/* Forms */
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 5px; }
.field input, .field select { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; font: inherit; background: #fff; }
.field input:focus, .field select:focus { outline: 2px solid var(--brand-2); border-color: var(--brand); }
.field .hint { color: var(--muted); font-size: .82rem; margin-top: 4px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.actions { display: flex; gap: 12px; align-items: center; margin-top: 8px; }

/* Tables */
table.grid { width: 100%; border-collapse: collapse; }
table.grid th, table.grid td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); font-size: .92rem; }
table.grid th { color: var(--muted); font-weight: 600; font-size: .8rem; text-transform: uppercase; letter-spacing: .03em; }

/* Pills */
.pill { display: inline-block; border-radius: 999px; padding: 2px 10px; font-size: .78rem; font-weight: 600; }
.pill.ok { background: #E4F6EC; color: var(--ok); }
.pill.warn { background: #FFF3D6; color: var(--warn); }
.pill.off { background: #F0F2F5; color: var(--muted); }

/* Alerts */
.alert { border-radius: 8px; padding: 12px 14px; margin-bottom: 18px; font-size: .92rem; }
.alert.ok { background: #E4F6EC; color: #10603A; border: 1px solid #BFE6CF; }
.alert.err { background: #FDECEA; color: #8A2219; border: 1px solid #F5C6C0; }
.alert.info { background: #EAF2FE; color: #0B4C9E; border: 1px solid #CBE0FC; }
.val-err { color: var(--err); font-size: .85rem; margin-top: 4px; }

.muted { color: var(--muted); }
code { background: #EEF3F9; padding: 1px 6px; border-radius: 5px; font-size: .88em; }

/* Landing / hero */
.hero { padding: 72px 0 56px; background: linear-gradient(180deg, #fff 0%, var(--bg) 100%); border-bottom: 1px solid var(--line); }
.eyebrow { color: var(--brand); font-weight: 600; font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; margin: 0 0 16px; }
.hero h1 { font-size: clamp(2.2rem, 4.8vw, 3.8rem); line-height: 1.06; margin: 0 0 20px; max-width: 17ch; }
.hero h1 .accent { color: var(--brand); }
.hero-lead { color: var(--muted); font-size: 1.15rem; margin: 0 0 30px; max-width: 60ch; }
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; }
.btn-lg { padding: 14px 24px; font-size: 1.05rem; border-radius: 10px; }
.hero-note { color: var(--muted); font-size: .9rem; margin-top: 18px; max-width: 64ch; }

/* Sections */
.section { padding: 52px 0; }
.section.alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-title { font-size: 1.7rem; margin: 0 0 8px; }
.section-sub { color: var(--muted); margin: 0 0 28px; max-width: 70ch; }

/* Product cards */
.products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.product-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 22px; display: flex; flex-direction: column; }
.product-card.featured { border-color: var(--brand); box-shadow: 0 10px 34px rgba(0, 109, 236, .10); }
.prod-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.prod-cat { color: var(--muted); font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.beta { background: #EAF2FE; color: var(--brand); border-radius: 999px; padding: 2px 10px; font-size: .7rem; font-weight: 700; letter-spacing: .05em; }
.product-card h3 { font-size: 1.3rem; margin: 0 0 8px; color: var(--ink); }
.product-card p { color: var(--muted); margin: 0 0 14px; }
.prod-features { list-style: none; margin: 0; padding: 0; }
.prod-features li { padding: 6px 0 6px 24px; position: relative; font-size: .92rem; border-top: 1px solid var(--line); }
.prod-features li::before { content: "✓"; color: var(--brand); position: absolute; left: 0; font-weight: 700; }
.prod-foot { margin-top: auto; padding-top: 16px; }
.sub-head { margin: 28px 0 12px; padding-top: 8px; border-top: 1px solid var(--line); }

/* Why */
.why { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.why-item h3 { color: var(--brand); font-size: 1.1rem; margin: 0 0 8px; }
.why-item p { color: var(--muted); margin: 0; }

/* CTA band */
.cta-band { text-align: center; }
.cta-band h2 { font-size: 1.6rem; margin: 0 0 8px; }
.cta-band p { color: var(--muted); margin: 0 0 22px; }

@media (max-width: 860px) {
    .products, .why { grid-template-columns: 1fr; }
    .hero h1 { font-size: 2.1rem; }
}

@media (max-width: 640px) {
    .row2 { grid-template-columns: 1fr; }
    .bar { height: auto; padding: 10px 0; flex-wrap: wrap; gap: 8px; }
}
