/* ============================================================
   BlueHood — Design system v2 (restyling conversion-first)
   Un solo CSS per tutte le pagine. Nessun framework.
   Namespace: .bh- (il vecchio usava .bh_ : nessuna collisione)
   ============================================================ */

:root {
    /* Palette */
    --ink:        #16283b;   /* titoli */
    --ink-2:      #2c4157;   /* sottotitoli */
    --body:       #46586c;   /* testo */
    --muted:      #5d7085;   /* microcopy (>=4.5:1 su bianco, WCAG AA) */
    --blue:       #1467c8;   /* azione primaria */
    --blue-d:     #0f55a8;   /* hover */
    --blue-t:     #eaf3fc;   /* tinta */
    --blue-t2:    #d7e8f9;
    --green:      #1daa59;   /* WhatsApp / conferme */
    --green-d:    #178f4a;
    --green-t:    #e7f7ee;
    --amber:      #f2a33c;   /* accento "gratis" — usare poco */
    --amber-t:    #fdf3e3;
    --bg:         #ffffff;
    --bg-alt:     #f5f8fb;
    --dark:       #122334;   /* sezioni scure / footer */
    --dark-2:     #1a3049;
    --line:       #dde6ee;
    --line-dark:  rgba(255,255,255,.12);
    --danger:     #d64545;
    --danger-t:   #fdecec;

    --shadow-1: 0 1px 2px rgba(22,40,59,.06), 0 4px 16px rgba(22,40,59,.07);
    --shadow-2: 0 2px 6px rgba(22,40,59,.08), 0 14px 40px rgba(22,40,59,.12);

    --r-s: 8px;
    --r-m: 12px;
    --r-l: 18px;

    --font: 'Ubuntu', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --w: 1200px;      /* container standard */
    --w-narrow: 860px;
}

/* ---------- Reset essenziale ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
}
body {
    margin: 0;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.65;
    color: var(--body);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
img, svg { display: inline-block; vertical-align: middle; }
img { max-width: 100%; height: auto; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-d); }
h1, h2, h3, h4, h5, h6 { color: var(--ink); line-height: 1.2; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }
b, strong { color: var(--ink-2); }
:focus-visible { outline: 3px solid rgba(20,103,200,.45); outline-offset: 2px; border-radius: 4px; }

.bh-container { max-width: var(--w); margin: 0 auto; padding: 0 20px; }
.bh-container--narrow { max-width: var(--w-narrow); }

.bh-icon { width: 1.15em; height: 1.15em; stroke-width: 0; fill: currentColor; flex: none; }
.bh-icon--s { width: .95em; height: .95em; }

.bh-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- Bottoni ---------- */
.bh-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    font: 700 16px/1.2 var(--font);
    padding: 14px 26px;
    border-radius: 10px;
    border: 0; cursor: pointer;
    text-decoration: none;
    transition: background .15s ease, transform .15s ease, box-shadow .15s ease;
    white-space: nowrap;
}
.bh-btn:active { transform: translateY(1px); }
.bh-btn--primary { background: var(--blue); color: #fff; box-shadow: 0 6px 16px rgba(20,103,200,.28); }
.bh-btn--primary:hover { background: var(--blue-d); color: #fff; }
.bh-btn--wa { background: #128c4a; color: #fff; box-shadow: 0 6px 16px rgba(18,140,74,.25); }
.bh-btn--wa:hover { background: #0f7a3f; color: #fff; }
.bh-btn--ghost { background: #fff; color: var(--ink-2); border: 1.5px solid var(--line); }
.bh-btn--ghost:hover { border-color: var(--blue); color: var(--blue); }
.bh-btn--s { padding: 10px 18px; font-size: 14.5px; border-radius: 8px; }
.bh-btn--block { width: 100%; }
.bh-btn[disabled] { opacity: .6; cursor: not-allowed; }

/* ---------- Navbar ---------- */
.bh-nav {
    position: sticky; top: 0; z-index: 900;
    background: rgba(255,255,255,.96);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid transparent;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.bh-nav.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 2px 12px rgba(22,40,59,.06); }
.bh-nav__inner {
    max-width: var(--w); margin: 0 auto; padding: 12px 20px;
    display: flex; align-items: center; gap: 18px;
}
.bh-nav__logo img { height: 40px; width: auto; }
.bh-nav__links { display: flex; gap: 4px; margin-left: 8px; }
.bh-nav__links a {
    color: var(--ink-2); font-weight: 500; font-size: 15px;
    padding: 8px 12px; border-radius: 8px;
}
.bh-nav__links a:hover { background: var(--blue-t); color: var(--blue-d); }
.bh-nav__spacer { flex: 1; }
.bh-nav__phone {
    display: inline-flex; align-items: center; gap: 8px;
    color: var(--ink-2); font-weight: 700; font-size: 15px;
}
.bh-nav__phone:hover { color: var(--blue); }
.bh-nav__burger {
    display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--ink);
}
.bh-nav__burger svg { width: 26px; height: 26px; }

/* menu mobile: pannello sotto la navbar, niente takeover */
.bh-nav__panel { display: none; }
@media (max-width: 900px) {
    .bh-nav__links, .bh-nav__phone, .bh-nav__call { display: none; }
    .bh-nav__burger { display: inline-flex; }
    .bh-nav__cta { padding: 10px 16px; font-size: 14.5px; }
    .bh-nav__panel {
        display: none; position: absolute; left: 0; right: 0; top: 100%;
        background: #fff; border-bottom: 1px solid var(--line);
        box-shadow: 0 18px 30px rgba(22,40,59,.12);
        padding: 8px 20px 18px;
    }
    .bh-nav__panel.is-open { display: block; }
    .bh-nav__panel a {
        display: flex; align-items: center; gap: 10px;
        padding: 13px 6px; color: var(--ink-2); font-weight: 500;
        border-bottom: 1px solid var(--bg-alt);
    }
    .bh-nav__panel a:last-child { border-bottom: 0; }
}

/* ---------- Hero (homepage) ---------- */
.bh-hero {
    background:
        radial-gradient(720px 420px at 85% -10%, var(--blue-t), transparent 70%),
        linear-gradient(180deg, #fbfdff 0%, #fff 90%);
    border-bottom: 1px solid var(--line);
    padding: 64px 0 56px;
}
.bh-hero__grid {
    display: grid; grid-template-columns: 1.08fr .92fr; gap: 48px; align-items: center;
}
.bh-kicker {
    display: inline-flex; align-items: center; gap: 8px;
    color: var(--blue-d); font-weight: 700; font-size: 13px;
    letter-spacing: .05em; text-transform: uppercase;
    margin-bottom: 12px;
}
.bh-hero h1 {
    font-size: clamp(30px, 4.6vw, 46px);
    line-height: 1.13; letter-spacing: -.02em; margin-bottom: 16px;
}
.bh-hero h1 em { font-style: normal; color: var(--blue); }
.bh-hero__sub { font-size: 18px; max-width: 560px; margin-bottom: 26px; }
.bh-hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.bh-hero__note { font-size: 14px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.bh-hero__note .bh-icon { color: var(--green); }

.bh-trust { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 10px; }
.bh-trust li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--ink-2); }
.bh-trust .bh-icon { color: var(--green); margin-top: 3px; }

/* Card "cosa ottieni" nel hero home */
.bh-herocard {
    background: #fff; border: 1px solid var(--line); border-radius: var(--r-l);
    box-shadow: var(--shadow-2); padding: 28px;
}
.bh-herocard__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.bh-herocard__head h2 { font-size: 20px; margin: 0; }
.bh-badge-free {
    background: var(--amber-t); color: #8a5510; border: 1px solid #f3ddb7;
    font-size: 12.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
    padding: 4px 10px; border-radius: 999px; white-space: nowrap;
}
.bh-herocard > p { font-size: 14.5px; color: var(--muted); margin-bottom: 16px; }
.bh-herocard ul { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 12px; }
.bh-herocard li { display: flex; gap: 12px; font-size: 15px; color: var(--ink-2); align-items: flex-start; }
.bh-herocard li .bh-icon { color: var(--blue); margin-top: 2px; }
.bh-herocard__foot { font-size: 13.5px; color: var(--muted); margin: 12px 0 0; text-align: center; }

/* ---------- Sezioni ---------- */
.bh-section { padding: 72px 0; }
.bh-section--alt { background: var(--bg-alt); }
.bh-section--tight { padding: 48px 0; }
.bh-sechead { max-width: 720px; margin-bottom: 40px; }
.bh-sechead--center { margin-left: auto; margin-right: auto; text-align: center; }
.bh-sechead h2 { font-size: clamp(26px, 3.4vw, 36px); letter-spacing: -.015em; }
.bh-sechead p { font-size: 17px; color: var(--body); margin: 0; }

/* ---------- Strip prova sociale ---------- */
.bh-proofstrip { border-bottom: 1px solid var(--line); background: #fff; padding: 22px 0; }
.bh-proofstrip__inner {
    max-width: var(--w); margin: 0 auto; padding: 0 20px;
    display: flex; align-items: center; gap: 28px; flex-wrap: wrap; justify-content: center;
}
.bh-proofstrip__label { font-size: 13px; color: var(--muted); font-weight: 500; letter-spacing: .05em; text-transform: uppercase; }
.bh-proofstrip img { height: 34px; width: auto; filter: grayscale(1); opacity: .55; transition: opacity .2s, filter .2s; }
.bh-proofstrip img:hover { filter: none; opacity: 1; }

/* ---------- Card soluzioni (home) ---------- */
.bh-cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.bh-card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--r-m);
    padding: 26px; box-shadow: var(--shadow-1);
    display: flex; flex-direction: column;
}
.bh-section--alt .bh-card { box-shadow: none; }
.bh-card__icon {
    width: 46px; height: 46px; border-radius: 10px;
    background: var(--blue-t); color: var(--blue-d);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 16px;
}
.bh-card__icon .bh-icon { width: 22px; height: 22px; }
.bh-card h3 { font-size: 19px; margin-bottom: 8px; }
.bh-card p { font-size: 15px; margin-bottom: 12px; }
.bh-card__ex { font-size: 13.5px; color: var(--muted); border-top: 1px dashed var(--line); padding-top: 12px; margin-top: auto; }
.bh-card__ex b { color: var(--ink-2); font-weight: 500; }
.bh-card--featured { border-color: var(--blue-t2); box-shadow: 0 0 0 3px var(--blue-t), var(--shadow-1); }

/* ---------- Checklist a due colonne (sostituisce i muri di card) ---------- */
.bh-checkgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 32px; }
.bh-checkgrid .bh-check { display: flex; gap: 12px; align-items: flex-start; }
.bh-check .bh-icon { color: var(--green); margin-top: 4px; }
.bh-check h3 { font-size: 16.5px; margin-bottom: 2px; font-weight: 700; }
.bh-check p { font-size: 14.5px; margin: 0; }

/* ---------- Processo numerato ---------- */
.bh-steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: 0; }
.bh-steps li {
    counter-increment: step;
    display: grid; grid-template-columns: 48px 1fr; gap: 18px;
    padding: 20px 0; position: relative;
}
.bh-steps li + li { border-top: 1px solid var(--line); }
.bh-steps li::before {
    content: counter(step);
    width: 40px; height: 40px; border-radius: 50%;
    background: var(--blue-t); color: var(--blue-d);
    font-weight: 700; font-size: 17px;
    display: flex; align-items: center; justify-content: center;
}
.bh-steps h3 { font-size: 17.5px; margin-bottom: 3px; }
.bh-steps p { font-size: 15px; margin: 0; }
.bh-steps__meta { display: inline-block; margin-left: 10px; font-size: 12.5px; font-weight: 700; color: var(--blue-d); background: var(--blue-t); border-radius: 999px; padding: 2px 10px; vertical-align: 2px; }

/* ---------- Banner fondatore / fiducia ---------- */
.bh-founder {
    display: grid; grid-template-columns: 96px 1fr; gap: 22px; align-items: center;
    background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--blue);
    border-radius: var(--r-m); padding: 24px 28px; box-shadow: var(--shadow-1);
}
.bh-founder__avatar {
    width: 96px; height: 96px; border-radius: 50%;
    background: var(--blue-t); color: var(--blue-d);
    display: flex; align-items: center; justify-content: center;
    font-size: 30px; font-weight: 700; overflow: hidden;
}
.bh-founder__avatar img { width: 100%; height: 100%; object-fit: cover; }
.bh-founder blockquote { margin: 0 0 8px; font-size: 16.5px; color: var(--ink-2); line-height: 1.6; }
.bh-founder figcaption { font-size: 14px; color: var(--muted); }
.bh-founder figcaption b { color: var(--ink); }

/* ---------- Compliance band ---------- */
.bh-compliance {
    background: var(--dark);
    border-radius: var(--r-l);
    color: #c6d4e2;
    padding: 36px 40px;
    display: grid; grid-template-columns: 56px 1fr; gap: 24px; align-items: start;
}
.bh-compliance__icon {
    width: 56px; height: 56px; border-radius: 14px;
    background: rgba(255,255,255,.08); color: #7db8f0;
    display: flex; align-items: center; justify-content: center;
}
.bh-compliance__icon .bh-icon { width: 28px; height: 28px; }
.bh-compliance h2, .bh-compliance h3 { color: #fff; font-size: 22px; }
.bh-compliance p { font-size: 15px; }
.bh-compliance ul { list-style: none; padding: 0; margin: 14px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 26px; }
.bh-compliance li { display: flex; gap: 10px; font-size: 14.5px; align-items: flex-start; }
.bh-compliance li .bh-icon { color: #6fcf97; margin-top: 3px; }
.bh-compliance b { color: #fff; }

/* ---------- Griglia link landing (home) ---------- */
.bh-linkgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.bh-linkgrid a {
    display: flex; align-items: center; gap: 12px;
    background: #fff; border: 1px solid var(--line); border-radius: 10px;
    padding: 14px 16px; color: var(--ink-2); font-weight: 500; font-size: 15px;
    transition: border-color .15s, box-shadow .15s;
}
.bh-linkgrid a:hover { border-color: var(--blue); box-shadow: var(--shadow-1); color: var(--blue-d); }
.bh-linkgrid .bh-icon { color: var(--blue); }
.bh-linkgrid .bh-icon--arrow { margin-left: auto; color: var(--muted); }

/* ---------- FAQ ---------- */
.bh-faq { max-width: var(--w-narrow); margin: 0 auto; }
.bh-faq details {
    background: #fff; border: 1px solid var(--line); border-radius: var(--r-s);
    margin-bottom: 10px; overflow: hidden;
}
.bh-faq summary {
    list-style: none; cursor: pointer;
    display: flex; align-items: center; justify-content: space-between; gap: 14px;
    padding: 16px 20px; font-weight: 700; color: var(--ink); font-size: 16px;
}
.bh-faq summary::-webkit-details-marker { display: none; }
.bh-faq summary .bh-icon { color: var(--muted); transition: transform .2s ease; }
.bh-faq details[open] summary .bh-icon { transform: rotate(180deg); }
.bh-faq details > div { padding: 0 20px 16px; font-size: 15px; }
.bh-faq details > div p { margin: 0; }

/* ============================================================
   LANDING
   ============================================================ */
.bh-lhero {
    background:
        radial-gradient(800px 480px at 92% -20%, var(--blue-t), transparent 70%),
        linear-gradient(180deg, #fbfdff 0%, #fff 100%);
    border-bottom: 1px solid var(--line);
    padding: 40px 0 56px;
}
.bh-lhero__grid { display: grid; grid-template-columns: 1.02fr .98fr; gap: 44px; align-items: start; }
.bh-breadcrumb { font-size: 13px; color: var(--muted); margin-bottom: 18px; }
.bh-breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.bh-breadcrumb li:not(:first-child)::before { content: "›"; margin-right: 6px; color: var(--line); }
.bh-breadcrumb a { color: var(--muted); }
.bh-breadcrumb a:hover { color: var(--blue); }
.bh-lhero h1 { font-size: clamp(27px, 3.6vw, 38px); line-height: 1.16; letter-spacing: -.018em; margin-bottom: 14px; }
.bh-lhero__sub { font-size: 17px; max-width: 540px; margin-bottom: 22px; }
.bh-lhero__warow { margin: 18px 0 0; font-size: 14.5px; color: var(--muted); }
.bh-lhero__warow a { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: #128c4a; }
.bh-lhero__warow a:hover { color: #0f7a3f; }

/* Box "In breve" answer-first (per lettori frettolosi e motori AI) */
.bh-inbrief {
    background: var(--blue-t);
    border-left: 3px solid var(--blue);
    border-radius: 0 var(--r-s) var(--r-s) 0;
    padding: 14px 18px;
    margin: 0 0 20px;
    font-size: 14.5px;
    line-height: 1.6;
    color: var(--ink-2);
    max-width: 560px;
}
.bh-inbrief b { color: var(--ink); }

/* CTA mobile del hero (visibile solo mobile) */
.bh-lhero__mobilecta { display: none; }

/* ---------- Form card ---------- */
.bh-formcard {
    background: #fff; border: 1px solid var(--line); border-radius: var(--r-l);
    box-shadow: var(--shadow-2); padding: 26px 26px 22px;
    scroll-margin-top: 90px;
}
.bh-formcard__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.bh-formcard__head h2 { font-size: 20px; margin: 0; }
.bh-formcard__sub { font-size: 13.5px; color: var(--muted); margin: 6px 0 18px; }

.bh-progress { display: flex; align-items: center; gap: 8px; margin-bottom: 18px; }
.bh-progress__bar { flex: 1; height: 6px; border-radius: 999px; background: var(--bg-alt); overflow: hidden; }
.bh-progress__fill { height: 100%; width: 33%; background: var(--blue); border-radius: 999px; transition: width .25s ease; }
.bh-progress__label { font-size: 12.5px; font-weight: 700; color: var(--muted); white-space: nowrap; }

/* Senza JS tutti gli step sono visibili e il form si invia in POST normale;
   con JS (html.js) il multi-step prende il controllo. */
.bh-fstep { display: block; }
.js .bh-fstep { display: none; }
.js .bh-fstep.is-active { display: block; animation: bhFade .22s ease; }
.bh-progress { display: none; }
.js .bh-progress { display: flex; }
.bh-fnav .bh-btn--next, .bh-fnav .bh-btn--back { display: none; }
.js .bh-fnav .bh-btn--next, .js .bh-fnav .bh-btn--back { display: inline-flex; }
@keyframes bhFade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

.bh-field { margin-bottom: 14px; }
.bh-field label, .bh-field .bh-field__label {
    display: block; font-size: 13.5px; font-weight: 700; color: var(--ink-2); margin-bottom: 6px;
}
.bh-field .bh-opt { font-weight: 400; color: var(--muted); }
.bh-input, .bh-select, .bh-textarea {
    width: 100%;
    font: 400 16px/1.4 var(--font);   /* 16px: niente auto-zoom iOS */
    color: var(--ink);
    background: #fff;
    border: 1.5px solid var(--line);
    border-radius: var(--r-s);
    padding: 12px 14px;
    transition: border-color .15s ease, box-shadow .15s ease;
    appearance: none;
}
.bh-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='%2374869a'%3E%3Cpath d='M12 15.5 5.5 9l1.4-1.4 5.1 5.1 5.1-5.1L18.5 9z'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 12px center;
    padding-right: 38px;
}
.bh-input:focus, .bh-select:focus, .bh-textarea:focus {
    outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(20,103,200,.14);
}
.bh-textarea { min-height: 110px; resize: vertical; }
.bh-field.is-invalid .bh-input, .bh-field.is-invalid .bh-select, .bh-field.is-invalid .bh-textarea { border-color: var(--danger); }
.bh-field__err { display: none; font-size: 13px; color: var(--danger); margin-top: 5px; }
.bh-field.is-invalid .bh-field__err { display: block; }
.bh-field__hint { font-size: 12.5px; color: var(--muted); margin-top: 5px; display: flex; justify-content: space-between; gap: 10px; }

.bh-frow { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }

/* radio/checkbox a "pillola" */
.bh-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.bh-pill { position: relative; }
.bh-pill input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.bh-pill span {
    display: inline-flex; align-items: center; gap: 6px;
    border: 1.5px solid var(--line); border-radius: 999px;
    padding: 8px 14px; font-size: 14px; color: var(--ink-2);
    cursor: pointer; transition: all .12s ease; background: #fff;
}
.bh-pill input:checked + span { background: var(--blue-t); border-color: var(--blue); color: var(--blue-d); font-weight: 700; }
.bh-pill input:focus-visible + span { outline: 3px solid rgba(20,103,200,.45); outline-offset: 1px; }

.bh-consent { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 14px; }
.bh-consent input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--blue); flex: none; }
.bh-consent span { font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.bh-consent.is-invalid span { color: var(--danger); }
.bh-consent.is-invalid a { color: inherit; text-decoration: underline; }

.bh-fnav { display: flex; gap: 10px; margin-top: 6px; }
.bh-fnav .bh-btn--back { flex: 0 0 auto; padding-left: 18px; padding-right: 18px; }
.bh-fnav .bh-btn--next, .bh-fnav .bh-btn--submit { flex: 1; }

.bh-formcard__micro {
    margin: 14px 0 0; padding-top: 12px; border-top: 1px dashed var(--line);
    font-size: 12.5px; color: var(--muted); text-align: center;
}
.bh-formcard__micro .bh-icon { color: var(--green); }

.bh-formresp { margin-top: 12px; font-size: 14.5px; border-radius: var(--r-s); display: none; padding: 12px 14px; }
.bh-formresp.is-error { display: block; background: var(--danger-t); color: #a63030; }
.bh-formresp.is-success { display: block; background: var(--green-t); color: #0f7a3d; }
.bh-formresp.is-loading { display: block; background: var(--blue-t); color: var(--blue-d); }
.bh-formresp a { font-weight: 700; color: inherit; text-decoration: underline; }

/* ---------- Banda CTA intermedia ---------- */
.bh-ctaband {
    background: var(--blue-t);
    border-top: 1px solid var(--blue-t2); border-bottom: 1px solid var(--blue-t2);
    padding: 26px 0;
}
.bh-ctaband__inner {
    max-width: var(--w); margin: 0 auto; padding: 0 20px;
    display: flex; align-items: center; justify-content: center; gap: 20px; flex-wrap: wrap; text-align: center;
}
.bh-ctaband p { margin: 0; font-size: 16.5px; font-weight: 500; color: var(--ink-2); }

/* ---------- Fit (per chi è / per chi no) ---------- */
.bh-fit { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.bh-fit__col { background: #fff; border: 1px solid var(--line); border-radius: var(--r-m); padding: 24px; }
.bh-fit__col--good { border-top: 3px solid var(--green); }
.bh-fit__col--bad { border-top: 3px solid var(--line); }
.bh-fit__col h3 { font-size: 17px; display: flex; align-items: center; gap: 8px; }
.bh-fit__col--good h3 .bh-icon { color: var(--green); }
.bh-fit__col--bad h3 .bh-icon { color: var(--muted); }
.bh-fit__col ul { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 10px; }
.bh-fit__col li { display: flex; gap: 10px; font-size: 14.5px; align-items: flex-start; }
.bh-fit__col--good li .bh-icon { color: var(--green); margin-top: 3px; }
.bh-fit__col--bad li .bh-icon { color: var(--muted); margin-top: 3px; }

/* ---------- Sezione finale scura + form ---------- */
.bh-final { background: var(--dark); padding: 72px 0; }
.bh-final h2 { color: #fff; }
.bh-final .bh-sechead p { color: #b9c9d9; }
.bh-final__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: start; }
.bh-final__aside { color: #b9c9d9; }
.bh-final__aside h2 { font-size: clamp(24px, 3vw, 32px); }
.bh-final__aside .bh-trust li { color: #d9e4ee; }
.bh-final__wa { margin-top: 22px; }

/* ---------- Soluzioni correlate ---------- */
.bh-related { padding: 48px 0; background: var(--bg-alt); }
.bh-related h2 { font-size: 20px; color: var(--muted); font-weight: 500; margin-bottom: 18px; }
.bh-related__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.bh-related__grid a {
    background: #fff; border: 1px solid var(--line); border-radius: 10px;
    padding: 16px 18px; color: var(--ink-2);
    display: block; transition: border-color .15s;
}
.bh-related__grid a:hover { border-color: var(--blue); }
.bh-related__grid h3 { font-size: 15.5px; margin-bottom: 4px; }
.bh-related__grid p { font-size: 13.5px; color: var(--muted); margin: 0; }

/* ---------- Footer ---------- */
.bh-footer { background: var(--dark); color: #a9bccd; font-size: 14.5px; }
.bh-footer a { color: #cfdce8; }
.bh-footer a:hover { color: #fff; }
.bh-footer__main {
    max-width: var(--w); margin: 0 auto; padding: 56px 20px 40px;
    display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px;
}
.bh-footer__brand img { height: 44px; width: auto; margin-bottom: 14px; }
.bh-footer__brand p { font-size: 14px; line-height: 1.6; }
.bh-footer__title { color: #fff; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 14px; font-weight: 700; }
.bh-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.bh-footer__contact li { display: flex; gap: 10px; align-items: flex-start; }
.bh-footer__contact .bh-icon { color: #7db8f0; margin-top: 4px; }
.bh-footer__contact b { color: #fff; font-weight: 700; }
.bh-footer__seat2 { display: block; margin-top: 12px; }
.bh-footer__social { display: flex; gap: 10px; margin-top: 16px; }
.bh-footer__social a {
    width: 38px; height: 38px; border-radius: 10px;
    background: rgba(255,255,255,.08);
    display: flex; align-items: center; justify-content: center;
}
.bh-footer__social a:hover { background: rgba(255,255,255,.16); }
.bh-footer__bottom { border-top: 1px solid var(--line-dark); }
.bh-footer__bottominner {
    max-width: var(--w); margin: 0 auto; padding: 18px 20px;
    display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
    font-size: 13px; color: #8ba0b4;
}
.bh-footer__legal { display: flex !important; grid-auto-flow: column; gap: 18px !important; }

/* ---------- Sticky CTA mobile ---------- */
.bh-stickycta {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 950;
    display: none;
    background: #fff; border-top: 1px solid var(--line);
    box-shadow: 0 -6px 24px rgba(22,40,59,.12);
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    gap: 10px;
}
.bh-stickycta.is-visible { display: flex; }
.bh-stickycta .bh-btn { flex: 1; padding: 13px 10px; font-size: 15px; }
@media (min-width: 901px) { .bh-stickycta { display: none !important; } }

/* ---------- Consent banner ---------- */
.bh-consentbar {
    position: fixed; z-index: 990; left: 16px; right: 16px; bottom: 16px;
    max-width: 520px; margin: 0 auto;
    background: #fff; border: 1px solid var(--line); border-radius: var(--r-m);
    box-shadow: var(--shadow-2); padding: 18px 20px;
    display: none;
}
.bh-consentbar.is-visible { display: block; }
.bh-consentbar p { font-size: 13.5px; color: var(--body); margin: 0 0 12px; }
.bh-consentbar__row { display: flex; gap: 10px; }
.bh-consentbar__row .bh-btn { flex: 1; padding: 10px 12px; font-size: 14px; }

/* ---------- Thank you ---------- */
.bh-thanks { text-align: center; padding: 84px 0 56px; }
.bh-thanks__icon {
    width: 76px; height: 76px; border-radius: 50%;
    background: var(--green-t); color: var(--green);
    display: inline-flex; align-items: center; justify-content: center; margin-bottom: 20px;
}
.bh-thanks__icon .bh-icon { width: 38px; height: 38px; }
.bh-thanks h1 { font-size: clamp(28px, 4vw, 40px); }
.bh-thanks p { max-width: 560px; margin: 0 auto 1em; font-size: 17px; }

/* ---------- Reveal on scroll (leggero, safe senza JS) ---------- */
.bh-reveal { opacity: 1; transform: none; }
.js .bh-reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.js .bh-reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .bh-reveal { opacity: 1; transform: none; } }

/* ---------- WhatsApp float (solo desktop, discreto) ---------- */
.bh-wafloat {
    position: fixed; right: 22px; bottom: 22px; z-index: 940;
    width: 54px; height: 54px; border-radius: 50%;
    background: var(--green); color: #fff;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 8px 24px rgba(29,170,89,.35);
    transition: transform .15s ease;
}
.bh-wafloat:hover { transform: scale(1.06); color: #fff; }
.bh-wafloat .bh-icon { width: 28px; height: 28px; }
@media (max-width: 900px) { .bh-wafloat { display: none; } } /* su mobile c'è la sticky bar */

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .bh-cards3 { grid-template-columns: 1fr 1fr; }
    .bh-linkgrid { grid-template-columns: 1fr 1fr; }
    .bh-footer__main { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
    body.has-stickycta { padding-bottom: 76px; } /* la sticky bar è visibile fino a 900px */
    .bh-section { padding: 52px 0; }
    .bh-hero { padding: 40px 0; }
    .bh-hero__grid, .bh-lhero__grid, .bh-final__grid { grid-template-columns: 1fr; gap: 32px; }
    .bh-herocard { order: 2; }
    .bh-lhero { padding-top: 26px; }
    .bh-lhero__mobilecta { display: flex; flex-direction: column; gap: 8px; margin: 4px 0 10px; }
    .bh-lhero__mobilecta .bh-btn { width: 100%; }
    .bh-lhero__mobilecta small { color: var(--muted); font-size: 13px; text-align: center; }
    .bh-compliance { grid-template-columns: 1fr; padding: 28px 24px; }
    .bh-compliance ul { grid-template-columns: 1fr; }
    .bh-checkgrid { grid-template-columns: 1fr; }
    .bh-fit { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .bh-btn { white-space: normal; text-align: center; }
    .bh-cards3 { grid-template-columns: 1fr; }
    .bh-linkgrid { grid-template-columns: 1fr; }
    .bh-related__grid { grid-template-columns: 1fr; }
    .bh-frow { grid-template-columns: 1fr; }
    .bh-footer__main { grid-template-columns: 1fr; gap: 28px; padding-top: 40px; }
    .bh-founder { grid-template-columns: 1fr; }
    .bh-founder__avatar { width: 72px; height: 72px; font-size: 24px; }
    .bh-hero__ctas .bh-btn { width: 100%; }
}

/* ============================================================
   CASI STUDIO — carosello (homepage)
   ============================================================ */
.bh-cases { position: relative; }
.bh-cases__track {
    display: flex; gap: 24px;
    overflow-x: auto; scroll-snap-type: x mandatory;
    scroll-behavior: smooth; -webkit-overflow-scrolling: touch;
    scrollbar-width: none; padding: 4px 2px 8px;
}
.bh-cases__track::-webkit-scrollbar { display: none; }
.bh-case {
    flex: 0 0 100%; scroll-snap-align: start;
    display: grid; grid-template-columns: 1.15fr .85fr; gap: 36px; align-items: center;
    background: #fff; border: 1px solid var(--line); border-radius: var(--r-l);
    box-shadow: var(--shadow-1); padding: 32px;
}
.bh-case__render { position: relative; }
.bh-case__render img {
    width: 100%; height: auto; display: block;
    border-radius: 14px; box-shadow: var(--shadow-2);
    border: 1px solid var(--line);
}
.bh-case__caption {
    margin: 10px 0 0; font-size: 12px; color: var(--muted);
    letter-spacing: .04em; text-transform: uppercase; text-align: center;
}
.bh-case__num {
    display: inline-flex; align-items: center; gap: 10px;
    color: var(--blue-d); font-weight: 700; font-size: 13px;
    letter-spacing: .08em; text-transform: uppercase; margin-bottom: 10px;
}
.bh-case h3 { font-size: clamp(22px, 2.4vw, 27px); letter-spacing: -.015em; margin-bottom: 10px; }
.bh-case__desc { font-size: 15.5px; margin-bottom: 14px; }
.bh-case__list { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 8px; }
.bh-case__list li { display: flex; gap: 10px; font-size: 14.5px; color: var(--ink-2); align-items: flex-start; }
.bh-case__list .bh-icon { color: var(--green); margin-top: 3px; }
.bh-case__potential {
    background: var(--blue-t); border-left: 3px solid var(--blue);
    border-radius: 0 var(--r-s) var(--r-s) 0; padding: 12px 16px;
    font-size: 14.5px; color: var(--ink-2); margin: 0 0 14px;
}
.bh-case__potential b { color: var(--ink); }
.bh-case__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.bh-case__tags span {
    font-size: 12px; font-weight: 500; color: var(--muted);
    border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; background: #fff;
}
.bh-case__cta { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; }

.bh-cases__nav { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 18px; }
.bh-cases__btn {
    width: 42px; height: 42px; border-radius: 50%;
    background: #fff; border: 1.5px solid var(--line); color: var(--ink-2);
    display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
    transition: border-color .15s, color .15s, background .15s;
}
.bh-cases__btn:hover { border-color: var(--blue); color: var(--blue); }
.bh-cases__btn[disabled] { opacity: .35; cursor: default; }
.bh-cases__btn .bh-icon { width: 20px; height: 20px; }
.bh-cases__btn--prev .bh-icon { transform: rotate(180deg); }
.bh-cases__dots { display: flex; gap: 8px; }
.bh-cases__dots button {
    width: 10px; height: 10px; border-radius: 50%; border: 0; padding: 0; cursor: pointer;
    background: var(--line); transition: background .15s, transform .15s;
}
.bh-cases__dots button.is-active { background: var(--blue); transform: scale(1.2); }
.bh-cases__count { font-size: 13px; color: var(--muted); font-weight: 500; min-width: 46px; text-align: center; }

@media (max-width: 1024px) {
    .bh-case { grid-template-columns: 1fr; gap: 22px; padding: 22px; }
}
@media (max-width: 640px) {
    .bh-case { padding: 16px; border-radius: var(--r-m); }
    .bh-case h3 { font-size: 21px; }
}
