/*
 * BoostSignage — Landing pubblica (signage.kommit.it)
 *
 * Prima versione. Nessuna dipendenza esterna (font di sistema, SVG in linea):
 * la pagina di ingresso di un prodotto non deve dipendere da una CDN per
 * apparire, come già vale per il generatore di QR.
 */

:root {
    --navy:      #003056;
    --navy-700:  #05233d;
    --navy-900:  #041a2e;
    --green:     #4CB850;
    --green-600: #3ea344;
    --accent:    #f4c430; /* giallo dei coriandoli dello stile grafico */
    --ink:       #10263a;
    --muted:     #5c6f7e;
    --line:      #e2ebf1;
    --bg:        #ffffff;
    --bg-soft:   #f3f8fb;
    --white:     #ffffff;

    --radius:    18px;
    --radius-sm: 12px;
    --shadow:    0 18px 40px -18px rgba(0, 48, 86, .35);
    --shadow-sm: 0 6px 18px -8px rgba(0, 48, 86, .25);
    --maxw:      1140px;
    --font:      "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font);
    color: var(--ink);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.18rem; font-weight: 700; }
p  { margin: 0 0 1rem; }
a  { color: inherit; text-decoration: none; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 22px; }

.eyebrow {
    display: inline-block;
    font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
    color: var(--green-600);
    background: rgba(76, 184, 80, .12);
    padding: .35em .8em; border-radius: 999px; margin-bottom: 1rem;
}
.section { padding: clamp(56px, 8vw, 100px) 0; }
.section--soft { background: var(--bg-soft); }
.section__head { max-width: 720px; margin: 0 auto clamp(36px, 5vw, 60px); text-align: center; }
.section__head p { color: var(--muted); font-size: 1.08rem; }

/* ---------- Pulsanti ---------- */
.btn {
    display: inline-flex; align-items: center; gap: .5em;
    font: inherit; font-weight: 700; cursor: pointer;
    padding: .85em 1.5em; border-radius: 999px; border: 2px solid transparent;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
    white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--cta { background: var(--green); color: #fff; box-shadow: var(--shadow-sm); }
.btn--cta:hover { background: var(--green-600); box-shadow: var(--shadow); transform: translateY(-2px); }
.btn--ghost { border-color: rgba(255,255,255,.35); color: #fff; }
.btn--ghost:hover { border-color: #fff; }
.btn--outline { border-color: var(--navy); color: var(--navy); }
.btn--outline:hover { background: var(--navy); color: #fff; }
.btn--lg { padding: 1em 1.9em; font-size: 1.05rem; }

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255,255,255,.9);
    backdrop-filter: saturate(180%) blur(10px);
    border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 20px; min-height: 72px; }
.brand { display: flex; align-items: center; }
.brand img { height: 38px; width: auto; display: block; }
.nav { display: flex; align-items: center; gap: 26px; margin-left: auto; }
.nav a.nav__link { color: var(--muted); font-weight: 600; font-size: .98rem; }
.nav a.nav__link:hover { color: var(--navy); }
.nav__actions { display: flex; align-items: center; gap: 14px; }
.login-link { color: var(--navy); font-weight: 700; }
.login-link:hover { color: var(--green-600); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--navy); margin: 5px 0; border-radius: 2px; }

/* ---------- Hero ---------- */
.hero {
    position: relative; overflow: hidden;
    background: radial-gradient(1200px 600px at 80% -10%, var(--navy-700), var(--navy) 55%, var(--navy-900));
    color: #fff;
}
.hero .wrap { position: relative; z-index: 2; display: grid; grid-template-columns: 1.05fr .95fr; gap: 50px; align-items: center; padding-block: clamp(60px, 9vw, 110px); }
.hero h1 { color: #fff; }
.hero h1 .accent { color: var(--green); }
.hero__lead { font-size: 1.2rem; color: #cfe0ec; max-width: 34ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }
.hero__note { margin-top: 18px; font-size: .92rem; color: #9db6c8; }

/* mockup del monitor disegnato, niente screenshot esterni */
.mockup { position: relative; }
.mockup__screen {
    background: #071e33; border: 10px solid #0b2942; border-radius: 16px;
    box-shadow: var(--shadow); aspect-ratio: 16/10; padding: 16px;
    display: grid; grid-template-rows: auto 1fr auto; gap: 12px;
}
.mockup__bar { display: flex; align-items: center; gap: 8px; }
.mockup__bar i { width: 46px; height: 8px; border-radius: 4px; background: #14496e; display: block; }
.mockup__bar i:first-child { background: var(--green); }
.mockup__body { display: grid; grid-template-columns: 1.6fr 1fr; gap: 12px; }
.mockup__tile { border-radius: 10px; background: linear-gradient(135deg, #0d3a5c, #0a2d49); position: relative; overflow: hidden; }
.mockup__tile--accent { background: linear-gradient(135deg, rgba(76,184,80,.25), rgba(244,196,48,.18)); }
.mockup__ticker { height: 26px; border-radius: 6px; background: var(--green); opacity: .9; }
.mockup__foot { display: flex; justify-content: space-between; font-size: .7rem; color: #7fa6c1; }
.mockup__stand { width: 90px; height: 14px; background: #0b2942; border-radius: 0 0 8px 8px; margin: 0 auto; }

/* coriandoli triangolari (motivo dello stile grafico) */
.confetti { position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: .5; }
.confetti span {
    position: absolute; width: 0; height: 0;
    border-left: 9px solid transparent; border-right: 9px solid transparent;
    border-bottom: 16px solid var(--green);
}
.confetti span:nth-child(3n)   { border-bottom-color: var(--accent); }
.confetti span:nth-child(3n+1) { border-bottom-color: #2f6f96; }

/* ---------- Card generiche ---------- */
.grid { display: grid; gap: 22px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 30px; box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card h3 { margin-top: .3rem; }
.card p { color: var(--muted); margin-bottom: 0; }

/* icona circolare in stile lineare, come lo stile grafico */
.ic {
    width: 64px; height: 64px; border-radius: 50%;
    border: 2px solid var(--navy); color: var(--navy);
    display: grid; place-items: center; margin-bottom: 6px;
}
.ic--fill { background: var(--navy); color: #fff; border-color: var(--navy); }
.ic svg { width: 30px; height: 30px; }

/* "a chi serve" — icone circolari grandi centrate */
.audience { text-align: center; }
.audience .ic { width: 96px; height: 96px; margin: 0 auto 18px; border-width: 3px; }
.audience .ic svg { width: 44px; height: 44px; }

/* Settori — tessere icona + titolo + breve descrizione, tre per riga */
.sectors { gap: 18px; }
.sector {
    display: flex; align-items: flex-start; gap: 16px;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
    padding: 22px; box-shadow: var(--shadow-sm);
    transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.sector:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: rgba(76, 184, 80, .55); }
.sector .ic { width: 50px; height: 50px; flex: none; margin: 2px 0 0; }
.sector .ic svg { width: 26px; height: 26px; }
.sector .ic img { width: 26px; height: 26px; display: block; }
.sector__body h3 { margin: 0 0 6px; font-size: 1.05rem; line-height: 1.2; }
.sector__body p { margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.55; }

/* ---------- Come funziona ---------- */
.steps { counter-reset: step; }
.step { position: relative; padding-left: 74px; }
.step::before {
    counter-increment: step; content: counter(step);
    position: absolute; left: 0; top: 0;
    width: 52px; height: 52px; border-radius: 50%;
    background: var(--green); color: #fff; font-weight: 800; font-size: 1.3rem;
    display: grid; place-items: center; box-shadow: var(--shadow-sm);
}
.step h3 { margin-top: 6px; }
.step p { color: var(--muted); }

/* ---------- Perché ---------- */
.value { display: flex; gap: 16px; align-items: flex-start; }
.value .ic { flex: none; width: 52px; height: 52px; }
.value .ic svg { width: 26px; height: 26px; }
.value h3 { font-size: 1.08rem; margin-bottom: .25rem; }
.value p { color: var(--muted); margin: 0; }

/* ---------- Banner CTA ---------- */
.cta-band { background: var(--green); color: #fff; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.9); max-width: 60ch; margin-inline: auto; }
.cta-band .btn--outline { border-color: #fff; color: #fff; }
.cta-band .btn--outline:hover { background: #fff; color: var(--green-600); }
.cta-band .btn--cta { background: #fff; color: var(--green-600); }
.cta-band .btn--cta:hover { background: var(--navy); color: #fff; }

/* ---------- Form richiesta accesso ---------- */
.request { background: var(--bg-soft); }
.request__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.request__note { margin: 22px 0 0; color: var(--muted); font-size: .95rem; }
.request__points { list-style: none; padding: 0; margin: 22px 0 0; }
.request__points li { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; color: var(--muted); }
.request__points svg { flex: none; width: 22px; height: 22px; color: var(--green); margin-top: 2px; }
/* Form del CRM (kcrm) rivestito con lo stile della pagina: stessi colori,
   stesse forme del resto della landing, così non stona col brand. */
.kcrm-card {
    width: 100%; background: #fff;
    border: 1px solid var(--line); border-radius: var(--radius);
    box-shadow: var(--shadow); padding: 36px 34px;
}
.kcrm-form .kcrm-field { margin-bottom: 16px; }
.kcrm-form label {
    display: block; font-size: .72rem; font-weight: 700;
    letter-spacing: .05em; text-transform: uppercase;
    color: var(--muted); margin-bottom: 6px;
}
.kcrm-form input[type="text"],
.kcrm-form input[type="email"],
.kcrm-form input[type="tel"],
.kcrm-form textarea {
    width: 100%; box-sizing: border-box;
    padding: 12px 14px; font: inherit; color: var(--ink);
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
    transition: border-color .15s ease, box-shadow .15s ease;
}
.kcrm-form input:focus,
.kcrm-form textarea:focus {
    outline: none; border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(76, 184, 80, .18);
}
.kcrm-form textarea { resize: vertical; min-height: 120px; }

/* Honeypot anti-bot: fuori schermo, mai visibile né raggiungibile col tab. */
.kcrm-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.kcrm-consent { display: flex; align-items: flex-start; gap: 10px; margin: 20px 0 4px; }
.kcrm-consent input { flex: none; width: 16px; height: 16px; margin-top: 3px; accent-color: var(--green); }
.kcrm-consent label {
    margin: 0; font-size: .84rem; font-weight: 400; line-height: 1.5;
    text-transform: none; letter-spacing: 0; color: var(--muted); cursor: pointer;
}
.kcrm-consent a { color: var(--green-600); text-decoration: underline; }

.kcrm-submit {
    display: block; width: 100%; margin-top: 24px;
    padding: 14px 24px; font: inherit; font-weight: 700; color: #fff; cursor: pointer;
    background: var(--green); border: 0; border-radius: 999px;
    box-shadow: var(--shadow-sm);
    transition: background .15s ease, transform .15s ease, box-shadow .15s ease;
}
.kcrm-submit:hover { background: var(--green-600); transform: translateY(-2px); box-shadow: var(--shadow); }
.kcrm-submit:active { transform: translateY(0); }
.kcrm-submit:disabled { opacity: .6; cursor: default; transform: none; box-shadow: none; }

.kcrm-msg { display: none; margin-top: 16px; font-size: 1rem; font-weight: 700; text-align: center; line-height: 1.4; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: #b9cddd; }
.site-footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; padding-block: 56px; }
.site-footer img { height: 34px; margin-bottom: 14px; }
.site-footer h4 { color: #fff; font-size: .95rem; letter-spacing: .04em; text-transform: uppercase; margin: 0 0 14px; }
.site-footer a { color: #b9cddd; display: block; margin-bottom: 8px; }
.site-footer a:hover { color: var(--green); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); }
.footer-bottom .wrap { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding-block: 20px; grid-template-columns: none; font-size: .85rem; color: #7d99ac; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .hero .wrap { grid-template-columns: 1fr; }
    .mockup { max-width: 460px; margin-inline: auto; }
    .request__grid { grid-template-columns: 1fr; gap: 34px; }
    .grid--3 { grid-template-columns: 1fr 1fr; }
    .site-footer .wrap { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
    .nav { position: fixed; inset: 72px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
           background: #fff; border-bottom: 1px solid var(--line); padding: 10px 22px 20px;
           margin: 0; transform: translateY(-140%); transition: transform .25s ease; box-shadow: var(--shadow); }
    .nav.open { transform: translateY(0); }
    .nav a.nav__link { padding: 12px 0; border-bottom: 1px solid var(--line); }
    .nav__actions { margin-top: 14px; }
    .nav-toggle { display: block; margin-left: auto; }
}
@media (max-width: 560px) {
    .grid--3, .grid--2, .site-footer .wrap { grid-template-columns: 1fr; }
    .hero__actions .btn { flex: 1 1 auto; justify-content: center; }
    .footer-bottom .wrap { flex-direction: column; text-align: center; }
}
