/* ==========================================================================
   SNS — FRONTEND theme (website + area personale), separate from admin.css
   DESKTOP FIRST: the full layout is written for big screens,
   then @media (max-width: 1100px) = tablet, (max-width: 760px) = phone.
   No build step (like admin.css). Colours checked for WCAG 2.1 AA.

    1 font + tokens   2 base          3 layout       4 topbar + header
    5 mobile menu     6 buttons       7 badges/pill  8 cards + stats
    9 alerts         10 forms        11 sections    12 hero + mockups
   13 services, timeline, features, phone, FAQ      14 footer
   15 area personale (dashboard)     15b portal pages (login, chips, candidates…)
   15c public pages (Step 16: page hero, simulator, contact, legal)
   16 cookie + WhatsApp
   17 utilities      18 tablet       19 phone       20 print
   ========================================================================== */

/* 1 ─ font (on our server, OFL licence) + tokens ------------------------- */
@font-face {
    font-family: "Plus Jakarta Sans";
    src: url("../fonts/PlusJakartaSans-var.woff2") format("woff2");
    font-weight: 200 800; font-style: normal; font-display: swap;
}
@font-face {
    font-family: "Plus Jakarta Sans";
    src: url("../fonts/PlusJakartaSans-Italic-var.woff2") format("woff2");
    font-weight: 200 800; font-style: italic; font-display: swap;
}

:root {
    --brand: #0f5e4b;          /* SNS green (same as admin) */
    --brand-600: #0c4f3f;
    --brand-800: #083a2e;
    --brand-900: #062a21;
    --brand-50: #eef6f2;
    --brand-100: #d9ece4;
    --brand-200: #b6dccd;
    --sun: #f2b544;            /* warm accent */
    --sun-600: #d99a22;
    --sun-50: #fff6e5;
    --ink: #10201b;
    --ink-2: #33433e;
    --muted: #5b6b66;          /* 5.6:1 on white */
    --line: #e5e9e6;
    --line-2: #d4dbd7;
    --bg: #f6f7f3;
    --surface: #ffffff;
    --ok: #18794e;   --ok-bg: #e7f6ee;
    --info: #1d5f9c; --info-bg: #e9f2fb;
    --warn: #8a5800; --warn-bg: #fff4dc;
    --error: #b42318; --error-bg: #fdeceb;
    --wa: #1f9d55;

    --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

    --r-xs: 8px; --r-sm: 12px; --r: 16px; --r-lg: 24px; --r-xl: 32px;
    --shadow-xs: 0 1px 2px rgba(16, 32, 27, .06);
    --shadow-sm: 0 2px 6px -2px rgba(16, 32, 27, .08), 0 1px 2px rgba(16, 32, 27, .04);
    --shadow: 0 12px 32px -12px rgba(16, 32, 27, .18);
    --shadow-lg: 0 32px 64px -24px rgba(6, 42, 33, .35);
    --container: 1240px;
    --header-h: 80px;
    --side-w: 272px;
    --ease: cubic-bezier(.2, .7, .2, 1);
    --focus: 0 0 0 3px #fff, 0 0 0 5px var(--brand);
}

/* 2 ─ base --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body { margin: 0; overflow-x: clip; font: 400 16px/1.65 var(--font); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg { max-width: 100%; display: block; }
a { color: var(--brand); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--brand-800); }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.12; color: var(--ink); font-weight: 750; letter-spacing: -.025em; }
h1 { font-size: 64px; letter-spacing: -.035em; }
h2 { font-size: 44px; }
h3 { font-size: 20px; letter-spacing: -.01em; line-height: 1.3; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 8px; }
main:focus { outline: none; }
::selection { background: var(--brand-100); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }

.i { width: 20px; height: 20px; flex: none; display: inline-block; vertical-align: middle; }
.i-sm { width: 16px; height: 16px; }
.i-lg { width: 28px; height: 28px; }

/* 3 ─ layout ------------------------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 32px; }
.section { padding: 112px 0; }
.section-tight { padding: 72px 0; }
.section-alt { background: var(--surface); }
.section-dark { background: var(--brand-900); color: #c9ddd5; }
.section-dark h2, .section-dark h3 { color: #fff; }
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 80px; align-items: center; }
.stack > * + * { margin-top: 16px; }

.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--r-xs); }
.skip-link:focus { top: 12px; color: #fff; }

/* 4 ─ topbar + header ---------------------------------------------------- */
.topbar { background: var(--brand-900); color: #b9d2c8; font-size: 13.5px; }
.topbar-row { height: 42px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.topbar-info, .topbar-side { display: flex; align-items: center; gap: 28px; }
.topbar a, .topbar span { display: inline-flex; align-items: center; gap: 8px; color: #d6e7e0; text-decoration: none; }
.topbar a:hover { color: #fff; }
.topbar .i { color: var(--sun); }
.topbar .lang select { height: 28px; border: 1px solid rgba(255, 255, 255, .2); border-radius: 999px; background: transparent; color: #fff; padding: 0 10px; font: 600 12.5px var(--font); }
.topbar .lang option { color: var(--ink); }

.site-header { position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, .86); backdrop-filter: saturate(1.6) blur(14px);
    -webkit-backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid var(--line); transition: box-shadow .25s; }
.site-header.is-scrolled { box-shadow: 0 8px 30px -16px rgba(16, 32, 27, .3); }
.header-row { height: var(--header-h); display: flex; align-items: center; gap: 28px; }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); flex: none; }
.brand img { width: 44px; height: 44px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.brand-text small { font-size: 11px; font-weight: 600; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; margin-top: 2px; }
.brand:hover { color: var(--ink); }

.main-nav { flex: 1; display: flex; justify-content: center; }
.main-nav > ul { display: flex; gap: 2px; list-style: none; }
.nav-link { display: inline-flex; align-items: center; gap: 6px; height: 42px; padding: 0 16px; border-radius: 999px; border: 0; background: none;
    font: 600 15px var(--font); color: var(--ink-2); text-decoration: none; cursor: pointer; white-space: nowrap; transition: background .15s, color .15s; }
.nav-link:hover { background: var(--brand-50); color: var(--brand-800); }
.nav-link.is-active { color: var(--brand); background: var(--brand-50); }
.has-sub { position: relative; }
.has-sub .nav-link .i { transition: transform .2s; }
.has-sub.is-open .nav-link .i { transform: rotate(180deg); }
.sub { position: absolute; top: calc(100% + 12px); left: 50%; width: 360px; padding: 10px; background: var(--surface);
    border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); opacity: 0; visibility: hidden;
    transform: translate(-50%, -6px); transition: .2s var(--ease); }
.sub::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }   /* hover bridge */
.has-sub.is-open .sub { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.sub-link { display: flex; gap: 14px; align-items: center; padding: 12px; border-radius: var(--r); text-decoration: none; color: var(--ink); }
.sub-link small { display: block; font-size: 13.5px; color: var(--muted); }
.sub-link strong { font-weight: 700; }
.sub-link:hover { background: var(--brand-50); color: var(--ink); }
.sub-icon { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 12px; background: var(--brand-50); color: var(--brand); }
.sub-all { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; padding: 12px 14px; border-radius: var(--r);
    background: var(--bg); font-weight: 700; font-size: 14px; text-decoration: none; }

.header-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.menu-toggle { display: none; width: 46px; height: 46px; place-items: center; border: 1px solid var(--line); border-radius: 14px;
    background: var(--surface); color: var(--ink); cursor: pointer; }

/* 5 ─ mobile menu -------------------------------------------------------- */
.mobile-menu { position: fixed; inset: 0; z-index: 60; }
.mobile-menu[hidden] { display: none; }
.mobile-backdrop { position: absolute; inset: 0; background: rgba(6, 42, 33, .5); backdrop-filter: blur(2px); animation: fade .2s; }
.mobile-panel { position: absolute; right: 0; top: 0; bottom: 0; width: min(380px, 90vw); background: var(--surface); padding: 18px 22px 26px;
    display: flex; flex-direction: column; gap: 22px; overflow-y: auto; animation: slide .28s var(--ease); box-shadow: var(--shadow-lg); }
.mobile-top { display: flex; align-items: center; justify-content: space-between; }
.mobile-top .menu-toggle { display: grid; }
.mobile-links { list-style: none; }
.mobile-links a { display: block; padding: 13px 4px; font-size: 18px; font-weight: 650; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }
.mobile-links a.is-child { padding-left: 16px; font-size: 16px; font-weight: 550; }
.mobile-links a.is-active { color: var(--brand); }
.mobile-group { padding: 18px 4px 4px; font-size: 12px; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.mobile-cta { display: grid; gap: 10px; }
.mobile-contact { display: grid; gap: 10px; margin-top: auto; font-size: 15px; }
.mobile-contact a { display: flex; align-items: center; gap: 8px; color: var(--muted); text-decoration: none; }
body.menu-open { overflow: hidden; }
@keyframes fade { from { opacity: 0; } }
@keyframes slide { from { transform: translateX(100%); } }

/* 6 ─ buttons ------------------------------------------------------------ */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 24px; border-radius: 999px;
    border: 1.5px solid transparent; font: 700 15px var(--font); letter-spacing: -.005em; text-decoration: none; cursor: pointer; white-space: nowrap;
    transition: background .18s, color .18s, border-color .18s, box-shadow .18s, transform .18s var(--ease); }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-sm { height: 40px; padding: 0 18px; font-size: 14px; }
.btn-lg { height: 58px; padding: 0 32px; font-size: 16.5px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 8px 20px -8px rgba(15, 94, 75, .6); }
.btn-primary:hover { background: var(--brand-600); color: #fff; box-shadow: 0 12px 24px -8px rgba(15, 94, 75, .6); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn-text { background: none; color: var(--ink); padding: 0 14px; }
.btn-text:hover { color: var(--brand); background: var(--brand-50); }
.btn-light { background: #fff; color: var(--brand-800); }
.btn-light:hover { background: var(--brand-50); color: var(--brand-800); }
.btn-sun { background: var(--sun); color: #2a1c03; box-shadow: 0 8px 20px -10px rgba(217, 154, 34, .8); }
.btn-sun:hover { background: var(--sun-600); color: #2a1c03; }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .35); }
.btn-outline-light:hover { border-color: #fff; color: #fff; background: rgba(255, 255, 255, .06); }
.btn-danger { background: var(--error); color: #fff; }
.btn-danger:hover { background: #8f1a12; color: #fff; }
.btn[disabled], .btn.is-loading { opacity: .6; pointer-events: none; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--brand); text-decoration: none; }
.link-arrow .i { transition: transform .2s var(--ease); }
a:hover .link-arrow .i, .link-arrow:hover .i { transform: translateX(4px); }

/* 7 ─ badges + pill ------------------------------------------------------ */
.badge { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 11px; border-radius: 999px; font-size: 12.5px; font-weight: 700;
    background: var(--line); color: var(--ink-2); white-space: nowrap; }
.badge-brand { background: var(--brand-50); color: var(--brand-800); }
.badge-sun { background: var(--sun-50); color: #7a4c00; }
.badge-ok { background: var(--ok-bg); color: var(--ok); }
.badge-info { background: var(--info-bg); color: var(--info); }
.badge-warn { background: var(--warn-bg); color: var(--warn); }
.badge-error { background: var(--error-bg); color: var(--error); }
.pill { display: inline-flex; align-items: center; gap: 10px; padding: 6px 16px 6px 6px; border-radius: 999px; background: var(--surface);
    border: 1px solid var(--line); box-shadow: var(--shadow-xs); font-size: 14px; font-weight: 600; color: var(--ink-2); }
.pill-tag { padding: 3px 10px; border-radius: 999px; background: var(--brand); color: #fff; font-size: 12px; font-weight: 700; }

/* 8 ─ cards + stats ------------------------------------------------------ */
.card { position: relative; display: block; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
    padding: 28px; box-shadow: var(--shadow-xs); color: var(--ink); }
.card-title { margin-bottom: 8px; }
.card-body { color: var(--muted); }
.card-body > :last-child { margin-bottom: 0; }
.card-footer { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); }
.card-icon { width: 52px; height: 52px; display: grid; place-items: center; margin-bottom: 18px; border-radius: 16px; background: var(--brand-50); color: var(--brand); }
.card-icon .i { width: 26px; height: 26px; }
.card-link { text-decoration: none; transition: transform .25s var(--ease), box-shadow .25s, border-color .25s; }
.card-link:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--brand-200); color: var(--ink); }
.card-more { position: absolute; top: 28px; right: 28px; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%;
    background: var(--bg); color: var(--brand); transition: .25s var(--ease); }
.card-link:hover .card-more { background: var(--brand); color: #fff; transform: rotate(-45deg); }
.card-sun { background: linear-gradient(160deg, #fff8ea, #fff); border-color: #f5ddb0; }
.card-sun .card-icon { background: var(--sun); color: #2a1c03; }
.card-brand { background: linear-gradient(160deg, var(--brand), var(--brand-800)); border-color: transparent; color: #fff; }
.card-brand .card-title, .card-brand .card-body { color: #fff; }
.card-brand .card-icon { background: rgba(255, 255, 255, .14); color: #fff; }

.stat { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 22px 24px; background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--r-lg); box-shadow: var(--shadow-xs); color: var(--ink); text-decoration: none; overflow: hidden; }
a.stat:hover { border-color: var(--brand-200); box-shadow: var(--shadow-sm); color: var(--ink); }
.stat-icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 14px; margin-bottom: 10px; background: var(--brand-50); color: var(--brand); }
.stat-label { font-size: 14px; font-weight: 600; color: var(--muted); }
.stat-value { font-size: 32px; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.stat-hint { font-size: 13px; color: var(--muted); }
.stat-sun .stat-icon { background: var(--sun-50); color: #9a6200; }
.stat-ok .stat-icon { background: var(--ok-bg); color: var(--ok); }
.stat-info .stat-icon { background: var(--info-bg); color: var(--info); }

/* 9 ─ alerts ------------------------------------------------------------- */
.alert { display: flex; gap: 12px; align-items: flex-start; padding: 14px 18px; margin-bottom: 16px; border-radius: var(--r); border: 1px solid; font-size: 15px; font-weight: 500; }
.alert .i { margin-top: 2px; }
.alert > div > :last-child { margin-bottom: 0; }
.alert-ok { background: var(--ok-bg); border-color: #bde5cf; color: #0f5235; }
.alert-info { background: var(--info-bg); border-color: #c5dbf1; color: #153f68; }
.alert-warn { background: var(--warn-bg); border-color: #f3dca6; color: #664200; }
.alert-error { background: var(--error-bg); border-color: #f6c6c1; color: #8c1a11; }
.alert a { color: inherit; font-weight: 700; }

/* 10 ─ forms ------------------------------------------------------------- */
.form { display: grid; gap: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field label { display: block; margin-bottom: 8px; font-weight: 700; font-size: 14.5px; color: var(--ink-2); }
.field input:not([type=checkbox]):not([type=radio]), .field select, .field textarea {
    width: 100%; min-height: 52px; padding: 13px 16px; border: 1.5px solid var(--line-2); border-radius: var(--r-sm); background: #fff;
    font: 500 16px var(--font); color: var(--ink); transition: border-color .15s, box-shadow .15s; }   /* 16px: no zoom on iPhone */
.field input:hover, .field select:hover, .field textarea:hover { border-color: #b9c4bf; }
.field textarea { min-height: 120px; resize: vertical; }
.field select { appearance: none; padding-right: 44px; cursor: pointer;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6' fill='none' stroke='%235b6b66' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 14px center / 18px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-100); }
.field ::placeholder { color: #8c9893; font-weight: 400; }
.field-hint { margin: 7px 0 0; font-size: 13.5px; color: var(--muted); }
.field-error { display: flex; gap: 6px; align-items: center; margin: 7px 0 0; font-size: 14px; font-weight: 700; color: var(--error); }
.has-error input:not([type=checkbox]), .has-error select, .has-error textarea { border-color: var(--error); background-color: #fffafa; }
.has-error input:focus, .has-error select:focus, .has-error textarea:focus { box-shadow: 0 0 0 4px var(--error-bg); }
.req { color: var(--error); }
.check { display: flex !important; gap: 12px; align-items: flex-start; font-weight: 500 !important; font-size: 15px; cursor: pointer; color: var(--ink) !important; }
.check input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--brand); flex: none; }
.otp-input { text-align: center; font-size: 28px !important; letter-spacing: .5em; font-variant-numeric: tabular-nums; }

/* 11 ─ section titles ---------------------------------------------------- */
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px; font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); }
.eyebrow::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: var(--sun); }
.section-title { max-width: 720px; margin-bottom: 56px; }
.section-title.is-center { margin-inline: auto; text-align: center; }
.section-title.is-center .eyebrow { justify-content: center; }
.lead { font-size: 19px; line-height: 1.6; color: var(--muted); }
.section-dark .eyebrow { color: var(--sun); }
.section-dark .lead { color: #b9d2c8; }

/* 12 ─ hero + product mockups ------------------------------------------- */
.hero { position: relative; overflow: hidden; padding: 88px 0 136px;
    background:
        radial-gradient(900px 500px at 85% 10%, rgba(242, 181, 68, .18), transparent 60%),
        radial-gradient(800px 600px at 0% 100%, rgba(15, 94, 75, .10), transparent 60%),
        var(--bg); }
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
    background-image: radial-gradient(rgba(16, 32, 27, .08) 1px, transparent 1px); background-size: 22px 22px;
    -webkit-mask-image: linear-gradient(to bottom, #000, transparent 75%); mask-image: linear-gradient(to bottom, #000, transparent 75%); }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 64px; align-items: center; }
.hero h1 { margin: 22px 0 22px; }
.hl { position: relative; z-index: 0; color: var(--brand); white-space: nowrap; }
.hl::after { content: ""; position: absolute; left: 0; right: 0; bottom: .06em; height: .22em; border-radius: 4px; background: var(--sun); opacity: .45; z-index: -1; }
.hero .lead { max-width: 560px; font-size: 20px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.trust { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 34px; list-style: none; font-size: 14.5px; font-weight: 600; color: var(--ink-2); }
.trust li { display: flex; align-items: center; gap: 8px; }
.trust .i { width: 22px; height: 22px; padding: 3px; border-radius: 50%; background: var(--ok-bg); color: var(--ok); }

.hero-visual { position: relative; padding: 36px 0 36px 36px; }
.hv-panel { position: relative; z-index: 0; padding: 28px; border-radius: var(--r-xl); background: linear-gradient(150deg, var(--brand) 0%, var(--brand-900) 100%);
    box-shadow: var(--shadow-lg); }
.hv-panel::before { content: ""; position: absolute; right: -36px; top: -36px; width: 160px; height: 160px; border-radius: 50%; background: var(--sun); z-index: -1; }
.mock { background: var(--surface); border-radius: var(--r-lg); padding: 22px; box-shadow: var(--shadow); }
.mock-head { display: flex; align-items: center; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.mock-head strong { display: block; font-size: 15.5px; }
.mock-head small { display: block; font-size: 13px; color: var(--muted); }
.mock-head .badge { margin-left: auto; }
.mock-progress { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; list-style: none; margin: 18px 0 8px; }
.mock-progress li { font-size: 11.5px; font-weight: 700; color: var(--muted); padding-top: 10px; border-top: 4px solid var(--line); }
.mock-progress li.done { border-color: var(--brand); color: var(--brand); }
.mock-progress li.now { border-color: var(--sun); color: #8a5800; }
.mock-row { display: flex; align-items: center; gap: 12px; padding: 11px 0; }
.mock-row + .mock-row { border-top: 1px dashed var(--line); }
.mock-row strong { display: block; font-size: 14.5px; }
.mock-row small { display: block; font-size: 12.5px; color: var(--muted); }
.mock-row .meter { margin-left: auto; width: 110px; }
.meter { display: grid; gap: 4px; font-size: 12px; font-weight: 700; color: var(--brand); text-align: right; }
.meter span { display: block; height: 6px; border-radius: 6px; background: var(--brand-50); overflow: hidden; }
.meter span i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--brand-200), var(--brand)); }
.avatar { width: 42px; height: 42px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--brand); color: #fff;
    font-size: 14px; font-weight: 800; letter-spacing: .02em; }
.avatar-sun { background: var(--sun); color: #2a1c03; }
.avatar-soft { background: var(--brand-50); color: var(--brand); }
.float { position: absolute; z-index: 2; display: flex; align-items: center; gap: 12px; padding: 12px 18px 12px 12px; background: var(--surface);
    border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); animation: bob 6s ease-in-out infinite; }
.float strong { display: block; font-size: 14px; line-height: 1.3; }
.float small { display: block; font-size: 12.5px; color: var(--muted); }
.float-icon { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 12px; }
.float-icon.ok { background: var(--ok-bg); color: var(--ok); }
.float-icon.sun { background: var(--sun-50); color: #9a6200; }
.float-icon.wa { background: #e3f6ea; color: var(--wa); }
.float-1 { left: -8px; top: 0; }
.float-2 { right: -24px; bottom: 110px; animation-delay: -2s; }
.float-3 { left: 0; bottom: -6px; animation-delay: -4s; }
@keyframes bob { 50% { transform: translateY(-8px); } }

/* stats band under the hero */
.band { position: relative; z-index: 2; margin-top: -64px; }
.band-grid { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--r-lg); box-shadow: var(--shadow); overflow: hidden; }
.band-item { display: flex; gap: 16px; align-items: center; padding: 28px 30px; }
.band-item + .band-item { border-left: 1px solid var(--line); }
.band-item .card-icon { margin: 0; flex: none; }
.band-item strong { display: block; font-size: 22px; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
.band-item span { display: block; font-size: 14px; color: var(--muted); line-height: 1.4; }

/* 13 ─ services, timeline, features, phone, FAQ ------------------------- */
.card.service { padding: 0; }
.service { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.service-top { position: relative; height: 170px; display: grid; place-items: center; background: linear-gradient(150deg, var(--brand-50), var(--brand-100)); }
.service-top::after { content: ""; position: absolute; width: 130px; height: 130px; border-radius: 50%; background: rgba(255, 255, 255, .65); }
.service-top .i { position: relative; z-index: 1; width: 54px; height: 54px; color: var(--brand); }
.service.is-sun .service-top { background: linear-gradient(150deg, var(--sun-50), #ffe7b8); }
.service.is-sun .service-top .i { color: #9a6200; }
.service.is-blue .service-top { background: linear-gradient(150deg, #edf4fb, #d6e7f7); }
.service.is-blue .service-top .i { color: var(--info); }
.service-body { display: flex; flex-direction: column; flex: 1; padding: 28px; }
.service-body p { color: var(--muted); }
.service .card-more { top: 20px; right: 20px; background: rgba(255, 255, 255, .85); }
.ticks { list-style: none; display: grid; gap: 10px; margin: 4px 0 24px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--ink-2); }
.ticks .i { margin-top: 3px; color: var(--ok); }
.service .link-arrow { margin-top: auto; }

.timeline { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; counter-reset: tl; position: relative; }
.timeline::before { content: ""; position: absolute; left: 28px; right: 28px; top: 28px; border-top: 2px dashed var(--brand-200); }
.timeline li { position: relative; counter-increment: tl; }
.timeline li::before { content: counter(tl, decimal-leading-zero); position: relative; z-index: 1; display: grid; place-items: center; width: 56px; height: 56px;
    margin-bottom: 24px; border-radius: 18px; background: var(--brand); color: #fff; font-size: 18px; font-weight: 800; box-shadow: 0 0 0 8px var(--bg); }
.section-alt .timeline li::before { box-shadow: 0 0 0 8px var(--surface); }
.timeline li:last-child::before { background: var(--sun); color: #2a1c03; }
.timeline p { color: var(--muted); margin: 0; }

.features { list-style: none; display: grid; gap: 26px; margin-top: 36px; }
.features li { display: flex; gap: 18px; }
.features .card-icon { margin: 0; flex: none; }
.features h3 { margin-bottom: 4px; }
.features p { margin: 0; color: var(--muted); }

.phone-wrap { position: relative; display: grid; place-items: center; padding: 48px 40px; border-radius: var(--r-xl);
    background: radial-gradient(circle at 50% 40%, var(--brand-100), transparent 70%), linear-gradient(160deg, var(--brand-50), var(--bg)); }
.phone { width: 320px; padding: 12px; border-radius: 46px; background: var(--brand-900); box-shadow: var(--shadow-lg); }
.phone-screen { border-radius: 36px; background: var(--bg); padding: 22px 18px 18px; min-height: 560px; }
.phone-notch { width: 110px; height: 26px; margin: -22px auto 16px; border-radius: 0 0 16px 16px; background: var(--brand-900); }
.phone-screen h4 { font-size: 20px; margin: 4px 0 16px; }
.phone-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.phone-stat { padding: 14px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.phone-stat small { display: block; font-size: 11.5px; color: var(--muted); font-weight: 600; }
.phone-stat strong { font-size: 22px; font-weight: 800; }
.phone-item { display: flex; align-items: center; gap: 10px; padding: 12px; margin-top: 8px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); font-size: 13px; }
.phone-item strong { display: block; font-size: 13.5px; }
.phone-item small { color: var(--muted); }
.phone-item .float-icon { width: 34px; height: 34px; border-radius: 10px; }
.phone-item .badge { margin-left: auto; }

.faq { display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); transition: border-color .2s, box-shadow .2s; }
.faq details[open] { border-color: var(--brand-200); box-shadow: var(--shadow-sm); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; font-weight: 700; font-size: 16.5px; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: var(--brand-50);
    color: var(--brand); font-size: 20px; font-weight: 600; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 24px 22px; margin: 0; color: var(--muted); }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table th, .table td { padding: 14px 20px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table th { font-size: 12.5px; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); background: #fafbf9; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: #fafcfb; }
.card .table-wrap { border: 0; border-top: 1px solid var(--line); border-radius: 0 0 var(--r-lg) var(--r-lg); margin: 0 -28px -28px; }

/* 14 ─ footer ------------------------------------------------------------ */
.site-footer { background: var(--brand-900); color: #b9d2c8; font-size: 15px; padding-top: 1px; }
.footer-cta { display: flex; align-items: center; justify-content: space-between; gap: 40px; margin: 80px 0 0; padding: 48px 56px; border-radius: var(--r-xl);
    background: linear-gradient(120deg, var(--brand) 0%, #13785f 100%); box-shadow: var(--shadow-lg); position: relative; overflow: hidden; }
.footer-cta::after { content: ""; position: absolute; right: -60px; bottom: -120px; width: 300px; height: 300px; border-radius: 50%; background: rgba(242, 181, 68, .25); }
.footer-cta h2 { color: #fff; font-size: 34px; margin-bottom: 8px; }
.footer-cta p { margin: 0; color: #d4e9e1; font-size: 17px; }
.footer-cta-actions { position: relative; z-index: 1; display: flex; gap: 12px; flex-wrap: wrap; }
.footer-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr; gap: 56px; padding: 72px 0 56px; }
.brand-light, .brand-light:hover { color: #fff; }
.footer-about .brand { margin-bottom: 20px; }
.brand-light .brand-text small { color: #8fb3a6; }
.footer-about p { max-width: 380px; }
.footer-contact { list-style: none; display: grid; gap: 12px; margin-top: 22px; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact .i { margin-top: 4px; color: var(--sun); }
.site-footer a { color: #e3efea; text-decoration: none; }
.site-footer a.btn-sun { color: #2a1c03; }
.site-footer a:not(.btn):hover { color: #fff; text-decoration: underline; }
.footer-col h2 { font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #fff; margin-bottom: 20px; }
.footer-col ul { list-style: none; display: grid; gap: 12px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 24px 0 30px; border-top: 1px solid rgba(255, 255, 255, .1);
    font-size: 13.5px; color: #8fb3a6; }
.footer-badges { display: flex; gap: 24px; align-items: center; }
.footer-badges span { display: inline-flex; gap: 6px; align-items: center; }
.footer-bottom .link-btn { color: #b9d2c8; }

/* 15 ─ area personale (dashboard) --------------------------------------- */
.dash { background: var(--bg); }
.dash-shell { display: grid; grid-template-columns: var(--side-w) minmax(0, 1fr); min-height: 100vh; }
.dash-side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 6px; padding: 24px 18px; overflow-y: auto;
    background: linear-gradient(180deg, var(--brand-900), #04201a); color: #b9d2c8; }
.dash-side-top { display: flex; align-items: center; justify-content: space-between; padding: 0 6px 22px; }
.side-close { display: none; width: 40px; height: 40px; place-items: center; border: 0; border-radius: 12px; background: rgba(255, 255, 255, .08); color: #fff; cursor: pointer; }
.side-label { margin: 6px 12px 8px; font-size: 11.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #7fa699; }
.side-links { list-style: none; display: grid; gap: 4px; }
.side-links a { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; font-weight: 600; font-size: 15px;
    color: #cfe2da; text-decoration: none; transition: background .15s, color .15s; }
.side-links a:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.side-links a.is-active { background: rgba(255, 255, 255, .1); color: #fff; box-shadow: inset 3px 0 0 var(--sun); }
.side-links a.is-active .i { color: var(--sun); }
.side-help { margin-top: auto; padding: 20px; border-radius: var(--r-lg); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .08); }
.side-help strong { display: block; color: #fff; margin: 12px 0 4px; }
.side-help p { font-size: 13.5px; margin-bottom: 14px; }
.side-help-icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: var(--sun); color: #2a1c03; }
.side-bottom { display: grid; gap: 2px; margin-top: 14px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .08); }
.side-bottom a, .side-bottom button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 14px; border: 0; border-radius: 12px; background: none;
    font: 600 14.5px var(--font); color: #a9c6bb; text-decoration: none; cursor: pointer; }
.side-bottom a:hover, .side-bottom button:hover { background: rgba(255, 255, 255, .06); color: #fff; }

.dash-main { display: flex; flex-direction: column; min-width: 0; }
.dash-top { position: sticky; top: 0; z-index: 20; height: 76px; display: flex; align-items: center; gap: 16px; padding: 0 40px;
    background: rgba(246, 247, 243, .88); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.dash-burger { display: none; }
.dash-greet { display: flex; flex-direction: column; line-height: 1.25; }
.dash-greet span { font-size: 13px; text-transform: capitalize; }
.dash-greet strong { font-size: 17px; }
.dash-top-actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.icon-btn { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); }
.user-chip { display: flex; align-items: center; gap: 10px; padding: 5px 16px 5px 5px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }
.user-chip .avatar { width: 36px; height: 36px; font-size: 13px; }
.user-chip-text { display: flex; flex-direction: column; line-height: 1.2; }
.user-chip-text strong { font-size: 14px; }
.user-chip-text small { font-size: 12px; color: var(--muted); }

.dash-content { flex: 1; width: 100%; max-width: 1320px; padding: 36px 40px 48px; }
.dash-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.dash-head h1 { font-size: 34px; margin: 0 0 4px; }
.dash-head p { margin: 0; }
.dash-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.dash-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.dash-content > .grid { margin-bottom: 24px; }
.dash-col > * + * { margin-top: 24px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.card-head h2, .card-head h3 { margin: 0; font-size: 18px; letter-spacing: -.01em; }
.todo { list-style: none; display: grid; }
.todo li { display: flex; gap: 12px; align-items: center; padding: 11px 0; font-size: 15px; color: var(--ink-2); }
.todo li + li { border-top: 1px solid var(--line); }
.todo .dot { width: 26px; height: 26px; flex: none; display: grid; place-items: center; border-radius: 50%; border: 2px solid var(--line-2); }
.todo .is-done { color: var(--muted); text-decoration: line-through; }
.todo .is-done .dot { background: var(--ok); border-color: var(--ok); color: #fff; }
.dash-footer { display: flex; justify-content: space-between; gap: 12px; padding: 20px 40px 26px; font-size: 13.5px; color: var(--muted); border-top: 1px solid var(--line); }
.dash-footer a, .dash-footer .link-btn { color: var(--muted); }
.dash-tabbar, .dash-backdrop { display: none; }
.dash .cookie { left: calc(var(--side-w) + 24px); }

/* 15b ─ portal pages: auth screen, chips, options, candidates, lists ---- */
.auth { background: var(--surface); }
.auth-shell { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); min-height: 100vh; }
.auth-side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; padding: 48px 56px;
    overflow: hidden; color: #c9ddd5;
    background: radial-gradient(600px 400px at 100% 0%, rgba(242, 181, 68, .22), transparent 60%), linear-gradient(160deg, var(--brand) 0%, var(--brand-900) 75%); }
.auth-side::after { content: ""; position: absolute; right: -120px; bottom: -120px; width: 360px; height: 360px; border-radius: 50%; border: 60px solid rgba(255, 255, 255, .04); }
.auth-side h2 { color: #fff; font-size: 42px; margin-bottom: 32px; }
.auth-side h2 span { color: var(--sun); }
.auth-points { list-style: none; display: grid; gap: 18px; font-size: 16.5px; font-weight: 600; color: #e3efea; }
.auth-points li { display: flex; align-items: center; gap: 14px; }
.auth-points li > span { width: 42px; height: 42px; flex: none; display: grid; place-items: center; border-radius: 14px; background: rgba(255, 255, 255, .1); color: var(--sun); }
.auth-side-card { position: relative; z-index: 1; display: flex; align-items: center; gap: 14px; max-width: 420px; padding: 16px 18px; border-radius: 18px;
    background: #fff; color: var(--ink); box-shadow: var(--shadow-lg); }
.auth-side-card strong { display: block; font-size: 14.5px; }
.auth-side-card small { display: block; font-size: 13px; color: var(--muted); }
.auth-main { display: flex; flex-direction: column; min-height: 100vh; padding: 32px 56px; background: var(--bg); }
.auth-top { display: flex; align-items: center; justify-content: flex-end; }
.auth-top .brand { display: none; margin-right: auto; }
.auth-box { width: 100%; max-width: 520px; margin: auto; padding: 48px 0; }
.auth-box h1 { font-size: 40px; margin-bottom: 10px; }
.auth-box .lead { font-size: 17px; margin-bottom: 28px; }
.auth-note { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.auth-note p { margin-bottom: 6px; }
.auth-foot { margin: 0; font-size: 13px; color: var(--muted); text-align: center; }
.auth-foot a { color: var(--muted); }
.auth .cookie { left: auto; right: 24px; }
.input-lg, .field .input-lg { min-height: 60px !important; font-size: 20px !important; font-weight: 600 !important; letter-spacing: .02em; }
.otp-input { min-height: 68px !important; font-weight: 700 !important; }

.segmented { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 6px; margin-bottom: 24px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.segmented a { display: flex; align-items: center; justify-content: center; gap: 8px; height: 48px; border-radius: 13px; font-weight: 700; color: var(--muted); text-decoration: none; }
.segmented a:hover { color: var(--ink); background: var(--bg); }
.segmented a.is-active { background: var(--brand); color: #fff; box-shadow: 0 6px 16px -8px rgba(15, 94, 75, .7); }

fieldset.field { border: 0; margin: 0; padding: 0; min-width: 0; }
.field legend { padding: 0; margin-bottom: 10px; font-weight: 700; font-size: 14.5px; color: var(--ink-2); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; gap: 6px; height: 42px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--line-2);
    background: #fff; font-size: 14.5px; font-weight: 600; color: var(--ink-2); transition: .15s; user-select: none; }
.chip:hover span { border-color: var(--brand-200); }
.chip input:checked + span { background: var(--brand-50); border-color: var(--brand); color: var(--brand-800); }
.chip input:checked + span::before { content: "✓"; font-weight: 800; }
.chip input:focus-visible + span { box-shadow: var(--focus); }
.has-error .chip span { border-color: #f0b8b3; }
.field-inline { display: flex; align-items: flex-end; padding-bottom: 14px; }
.consent { padding: 16px 18px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); }
.consent.has-error { border-color: #f0b8b3; background: #fffafa; }
.consents { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: 10px; }      /* Step 17 */
.consents legend { padding: 0; margin-bottom: 10px; font-weight: 700; font-size: 14.5px; color: var(--ink-2); }
.consents .consent .badge { height: 22px; font-size: 11.5px; vertical-align: 1px; }
.consent-log summary { cursor: pointer; font-weight: 700; color: var(--brand); }

.options { display: grid; gap: 12px; }
.option { display: flex; align-items: center; gap: 16px; width: 100%; padding: 18px 20px; border-radius: var(--r-lg); border: 1.5px solid var(--line);
    background: var(--surface); font: inherit; color: var(--ink); text-align: left; cursor: pointer; transition: .2s var(--ease); }
.option:hover { border-color: var(--brand); box-shadow: var(--shadow); transform: translateY(-2px); }
.option-icon { width: 52px; height: 52px; flex: none; display: grid; place-items: center; border-radius: 16px; background: var(--brand-50); color: var(--brand); }
.option-icon.is-sun { background: var(--sun-50); color: #9a6200; }
.option-text { flex: 1; }
.option-text strong { display: block; font-size: 17px; }
.option-text small { display: block; color: var(--muted); font-size: 14px; }
.option-arrow { color: var(--brand); transition: transform .2s; }
.option:hover .option-arrow { transform: translateX(4px); }

.cand { padding: 18px 0; }
.cand + .cand { border-top: 1px solid var(--line); }
.cand:first-of-type { padding-top: 0; }
.cand-head { display: flex; align-items: center; gap: 14px; }
.cand-name { flex: 1; min-width: 0; }
.cand-name strong { display: block; font-size: 16px; }
.cand-name small { display: block; color: var(--muted); font-size: 13.5px; }
.cand-head .meter { width: 120px; }
.cand-tags { gap: 6px; margin: 12px 0 0 56px; }
.cand-form { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 12px; align-items: end; margin: 14px 0 0 56px; padding: 16px; border-radius: var(--r); background: var(--bg); }
.cand-form .field label { font-size: 13px; margin-bottom: 6px; }
.cand-form .field input, .cand-form .field select { min-height: 44px; padding: 8px 12px; font-size: 15px; }
.cand-form .field select { padding-right: 36px; }
.cand-actions { grid-column: 1 / -1; display: flex; gap: 8px; flex-wrap: wrap; }

.list-row { display: flex; align-items: center; gap: 14px; padding: 13px 0; }
.list-row + .list-row { border-top: 1px solid var(--line); }
.list-row .float-icon { width: 40px; height: 40px; }
.list-main { flex: 1; min-width: 0; }
.list-main strong { display: block; font-size: 15px; }
.list-main small { display: block; font-size: 13px; color: var(--muted); }

.empty { display: grid; justify-items: center; gap: 10px; padding: 28px 16px; text-align: center; color: var(--muted); border: 1.5px dashed var(--line-2); border-radius: var(--r); }
.empty p { margin: 0; max-width: 380px; }
.empty-icon { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 16px; background: var(--bg); color: var(--muted); }

.upload { margin-top: 22px; padding: 22px; border-radius: var(--r); background: var(--bg); }
.upload h3 { margin: 0; font-size: 16px; }
.field input[type=file] { padding: 10px; background: #fff; cursor: pointer; }
.field input[type=file]::file-selector-button { margin-right: 12px; padding: 8px 16px; border: 0; border-radius: 999px; background: var(--brand-50); color: var(--brand-800);
    font: 700 14px var(--font); cursor: pointer; }
.num { display: inline-grid; place-items: center; width: 28px; height: 28px; margin-right: 8px; border-radius: 9px; background: var(--brand); color: #fff; font-size: 14px; vertical-align: 2px; }
.card-head h2 .num { vertical-align: 1px; }
.sticky-submit { position: sticky; top: 100px; padding: 22px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.right { text-align: right; }
.mb-3 { margin-bottom: 24px; }
.card.mb-3 + .card.mb-3 { margin-top: 0; }

@media (max-width: 1100px) {
    .auth-shell { grid-template-columns: minmax(0, 1fr); }
    .auth-side { display: none; }
    .auth-main { padding: 20px 24px; }
    .auth-top .brand { display: flex; }
    .auth-top { justify-content: space-between; }
    .sticky-submit { position: static; }
}
@media (max-width: 760px) {
    .auth-box { padding: 28px 0; }
    .auth-box h1 { font-size: 30px; }
    .auth-main { padding: 16px 20px; }
    .auth-top .btn-text { padding: 0 8px; }
    .cand-tags, .cand-form { margin-left: 0; }
    .cand-form { grid-template-columns: minmax(0, 1fr); }
    .cand-actions .btn { flex: 1; }
    .cand-head .meter { width: 70px; }
    .field-inline { padding-bottom: 0; }
    .upload { padding: 16px; }
    .auth .cookie { left: 12px; right: 12px; width: auto; }
}

/* 15c ─ Step 16 public pages: page hero, services, simulator, contact, legal */
.page-hero { position: relative; overflow: hidden; padding: 56px 0 64px; border-bottom: 1px solid var(--line);
    background: radial-gradient(700px 360px at 90% 0%, rgba(242, 181, 68, .16), transparent 60%), radial-gradient(600px 400px at 0% 100%, rgba(15, 94, 75, .08), transparent 60%), var(--bg); }
.page-hero h1 { font-size: 52px; margin: 0 0 14px; }
.page-hero .lead { max-width: 720px; margin: 0; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 26px; font-size: 14px; font-weight: 600; color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--brand); }
.crumbs .i { transform: rotate(-90deg); opacity: .6; }
.crumbs [aria-current] { color: var(--ink); }
.h2-sm { font-size: 28px; margin-bottom: 18px; }
.h3 { font-size: 20px; letter-spacing: -.01em; }
.split-top { align-items: start; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 56px; }
.side-box { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 20px; }
.ticks-lg li { font-size: 17px; padding: 6px 0; }
.levels { display: grid; gap: 10px; }
.level { display: flex; align-items: center; gap: 16px; padding: 14px 18px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); }
.level-code { min-width: 64px; height: 40px; padding: 0 10px; display: grid; place-items: center; border-radius: 12px; background: var(--brand); color: #fff; font-weight: 800; }

.sim { display: grid; grid-template-columns: minmax(0, 400px) minmax(0, 1fr); gap: 32px; align-items: start; }
.sim-form { position: sticky; top: calc(var(--header-h) + 24px); }
.sim-result { display: grid; gap: 20px; }
.sim-result .alert { margin: 0; }
.sim-total { position: relative; overflow: hidden; display: grid; gap: 6px; padding: 32px; border-radius: var(--r-lg); color: #d4e9e1;
    background: linear-gradient(140deg, var(--brand), var(--brand-900)); box-shadow: var(--shadow-lg); }
.sim-total::after { content: ""; position: absolute; right: -50px; top: -50px; width: 180px; height: 180px; border-radius: 50%; background: rgba(242, 181, 68, .25); }
.sim-total > span:first-child { font-weight: 700; font-size: 15px; }
.sim-total strong { font-size: 52px; font-weight: 800; letter-spacing: -.03em; line-height: 1.05; color: #fff; }
.sim-total strong small { font-size: 18px; font-weight: 600; color: #b9d2c8; }
.sim-total b { color: var(--sun); }
.sim-year { font-size: 15px; }
.sim-table td { font-size: 16px; }
.sim-table td.right { font-weight: 700; }
.sim-row-total td { background: var(--brand-50); font-weight: 800; color: var(--brand-800); }
.sim-empty { display: grid; justify-items: start; gap: 10px; padding: 36px; border-radius: var(--r-lg); border: 1.5px dashed var(--line-2); background: var(--surface); }
.sim-empty h2 { margin: 6px 0 0; }
.sim-empty .ticks { margin: 6px 0 0; }

.mini-sim { padding: 28px; border-radius: var(--r-lg); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); display: grid; gap: 16px; }
.section-dark .field label { color: #e3efea; }
.section-dark .section-title { margin-bottom: 0; }

.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-list { list-style: none; display: grid; gap: 14px; }
.contact-list li { display: flex; align-items: center; gap: 12px; color: var(--ink-2); }
.contact-list .float-icon { width: 38px; height: 38px; }

.prose { max-width: 760px; font-size: 16.5px; color: var(--ink-2); }
.prose h2 { font-size: 24px; margin: 36px 0 12px; }
.prose ul { padding-left: 22px; margin: 0 0 1em; }
.prose li { margin: 6px 0; }
.prose code { padding: 2px 8px; border-radius: 6px; background: var(--brand-50); color: var(--brand-800); font-size: 14px; }
.legal-nav { display: grid; gap: 6px; padding: 10px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.legal-nav a { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; border-radius: 12px; font-weight: 600; color: var(--ink-2); text-decoration: none; }
.legal-nav a:hover { background: var(--bg); }
.legal-nav a.is-active { background: var(--brand-50); color: var(--brand-800); }

@media (max-width: 1100px) {
    .page-hero h1 { font-size: 42px; }
    .split-top, .sim { grid-template-columns: minmax(0, 1fr); }
    .side-box, .sim-form { position: static; }
}
@media (max-width: 760px) {
    .page-hero { padding: 32px 0 40px; }
    .page-hero h1 { font-size: 32px; }
    .crumbs { margin-bottom: 16px; }
    .sim-total { padding: 24px; }
    .sim-total strong { font-size: 38px; }
    .sim-empty, .mini-sim { padding: 20px; }
}

/* 15d ─ Step 18 area personale pages: tracker, requests, profile, availability */
.tracker { margin: 16px 0 6px; }
.tracker-steps { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; counter-reset: tr; }
.tracker-steps li { counter-increment: tr; position: relative; padding-top: 14px; border-top: 4px solid var(--line); font-size: 12.5px; font-weight: 700; color: var(--muted); }
.tracker-steps li::before { content: counter(tr); position: absolute; top: -14px; left: 0; width: 24px; height: 24px; display: grid; place-items: center;
    border-radius: 50%; background: var(--line); color: var(--muted); font-size: 12px; }
.tracker-steps li.done { border-color: var(--brand); color: var(--brand); }
.tracker-steps li.done::before { content: "✓"; background: var(--brand); color: #fff; }
.tracker-steps li.now { border-color: var(--sun); color: #8a5800; }
.tracker-steps li.now::before { background: var(--sun); color: #2a1c03; box-shadow: 0 0 0 4px var(--sun-50); }
.tracker-hint { display: flex; gap: 8px; align-items: flex-start; margin: 14px 0 0; font-size: 14px; color: var(--ink-2); }
.tracker-hint .i { margin-top: 3px; color: var(--brand); }
.req-item { padding: 16px 0; }
.req-item + .req-item { border-top: 1px solid var(--line); }
.req-item:first-of-type { padding-top: 0; }
.txt-error { color: var(--error); font-weight: 700; }
.txt-warn { color: var(--warn); font-weight: 700; }
.facts { display: grid; gap: 12px; margin: 0 0 14px; }
.facts div { display: flex; justify-content: space-between; gap: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--muted); font-size: 14.5px; }
.facts dd { margin: 0; font-weight: 700; text-align: right; }
.lang-grid { display: grid; grid-template-columns: 1fr; gap: 10px; }
.lang-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.lang-row label { font-weight: 600; font-size: 14.5px; }
.lang-row select { min-width: 90px; height: 40px; padding: 0 10px; border: 1.5px solid var(--line-2); border-radius: 10px; background: #fff; font: 600 14px var(--font); }
.avail { display: grid; gap: 10px; }
.avail-row { display: grid; grid-template-columns: 52px 1fr; gap: 10px; align-items: center; }
.chip-sm span { height: 34px; padding: 0 12px; font-size: 13px; }
.stat-value { overflow-wrap: anywhere; }

@media (max-width: 760px) {
    .tracker-steps li { font-size: 10.5px; }
    .lang-grid { grid-template-columns: 1fr; }
}

/* Step 18 — /firma page and expired-link page */
.sign-summary { display: grid; gap: 14px; padding: 20px; margin-bottom: 8px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.sign-summary .facts { margin: 0; }
.sign-done { display: grid; justify-items: center; gap: 8px; padding: 28px 20px; margin: 16px 0; text-align: center; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.sign-done h2 { margin: 6px 0 0; font-size: 24px; }
.sign-done p { margin: 0; max-width: 420px; }
.sign-done-icon { width: 64px; height: 64px; display: grid; place-items: center; border-radius: 50%; background: var(--ok-bg); color: var(--ok); }
.sign-done-icon.is-warn { background: var(--sun-50); color: #9a6200; }

/* Step 19 — public payslip page */
.busta { display: grid; justify-items: center; gap: 6px; padding: 28px 20px; margin: 8px 0 18px; text-align: center; border-radius: var(--r-lg);
    background: linear-gradient(160deg, var(--brand-50), #fff); border: 1px solid var(--brand-100); }
.busta-icon { width: 60px; height: 60px; display: grid; place-items: center; border-radius: 18px; background: var(--brand); color: #fff; margin-bottom: 6px; }
.busta-label { font-size: 14px; font-weight: 700; color: var(--muted); }
.busta-net { font-size: 40px; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; color: var(--ink); }

/* 16 ─ cookie + WhatsApp ------------------------------------------------- */
.cookie { position: fixed; left: 24px; bottom: 24px; z-index: 70; width: min(440px, calc(100vw - 24px)); }
.cookie[hidden] { display: none; }
.cookie-box { padding: 22px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-lg);
    font-size: 14.5px; animation: up .35s var(--ease) both; }
.cookie-box p { margin-bottom: 12px; color: var(--ink-2); }
.cookie-box strong { color: var(--ink); }
.cookie-more { margin-bottom: 14px; }
.cookie-more summary { cursor: pointer; font-weight: 700; color: var(--brand); }
.cookie-more .check { margin-top: 10px; }
.cookie-actions { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
@keyframes up { from { transform: translateY(16px); opacity: 0; } }

.wa-float { position: fixed; right: 24px; bottom: 24px; z-index: 35; display: flex; align-items: center; gap: 10px; height: 56px; padding: 0 22px 0 18px;
    border-radius: 999px; background: var(--wa); color: #fff; font-weight: 700; text-decoration: none; box-shadow: 0 16px 32px -12px rgba(31, 157, 85, .7); }
.wa-float .i { width: 26px; height: 26px; }
.wa-float:hover { background: #188546; color: #fff; }

/* 17 ─ utilities --------------------------------------------------------- */
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.center { text-align: center; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 40px; }
.mb-0 { margin-bottom: 0; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.row-between { justify-content: space-between; }
.divider { height: 1px; background: var(--line); margin: 24px 0; border: 0; }
.swatch { height: 72px; border-radius: var(--r); border: 1px solid rgba(0, 0, 0, .06); }

/* 18 ─ TABLET (≤ 1100px) ------------------------------------------------- */
@media (max-width: 1100px) {
    h1 { font-size: 52px; }
    h2 { font-size: 36px; }
    .section { padding: 88px 0; }
    .main-nav { display: none; }
    .menu-toggle { display: grid; }
    .hide-md { display: none; }
    .topbar-note { display: none !important; }
    .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 56px; }
    .hero-visual { max-width: 620px; }
    .band-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .band-item:nth-child(3) { border-left: 0; }
    .band-item:nth-child(n+3) { border-top: 1px solid var(--line); }
    .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .split { grid-template-columns: minmax(0, 1fr); gap: 48px; }
    .timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
    .timeline::before { display: none; }
    .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; }
    .footer-cta { flex-direction: column; align-items: flex-start; padding: 40px; }

    /* dashboard: sidebar becomes a drawer, bottom bar appears */
    .dash-shell { grid-template-columns: minmax(0, 1fr); }
    .dash-side { position: fixed; left: 0; top: 0; bottom: 0; z-index: 60; width: min(300px, 86vw); transform: translateX(-100%); transition: transform .28s var(--ease); }
    .dash-side.is-open { transform: none; box-shadow: var(--shadow-lg); }
    .side-close { display: grid; }
    .dash-backdrop:not([hidden]) { display: block; position: fixed; inset: 0; z-index: 55; background: rgba(6, 42, 33, .5); animation: fade .2s; }
    .dash-burger { display: grid; }
    .dash-top { padding: 0 24px; }
    .dash-content { padding: 28px 24px 120px; }
    .dash-grid { grid-template-columns: minmax(0, 1fr); }
    .dash-footer { padding: 18px 24px 100px; }
    .dash-tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; justify-content: space-around; gap: 4px;
        padding: 8px 8px calc(8px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .97); border-top: 1px solid var(--line);
        box-shadow: 0 -8px 24px -14px rgba(16, 32, 27, .3); }
    .dash-tabbar a { flex: 1; max-width: 130px; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 7px 4px; border-radius: 14px;
        font-size: 11.5px; font-weight: 700; color: var(--muted); text-decoration: none; text-align: center; line-height: 1.2; }
    .dash-tabbar a.is-active { color: var(--brand); background: var(--brand-50); }
    .dash .wa-float, .dash .cookie { bottom: 96px; }
    .dash .cookie { left: 24px; }
}

/* 19 ─ PHONE (≤ 760px) --------------------------------------------------- */
@media (max-width: 760px) {
    body { font-size: 15.5px; }
    h1 { font-size: 38px; }
    h2 { font-size: 30px; }
    .container { padding: 0 20px; }
    .section { padding: 64px 0; }
    .section-title { margin-bottom: 36px; }
    .lead, .hero .lead { font-size: 17px; }
    .topbar { display: none; }
    :root { --header-h: 68px; }
    .header-row { gap: 12px; }
    .brand img { width: 40px; height: 40px; }
    .brand-text strong { font-size: 20px; }
    .hide-sm { display: none; }
    .hl { white-space: normal; }
    .hero { padding: 40px 0 104px; }
    .hero-actions .btn { width: 100%; }
    .hero-visual { padding: 24px 0 40px; }
    .hv-panel { padding: 14px; }
    .hv-panel::before { width: 110px; height: 110px; right: -16px; top: -24px; }
    .float-2 { display: none; }
    .float-1 { left: -6px; top: -4px; }
    .float-3 { left: auto; right: -6px; bottom: 0; }
    .mock { padding: 16px; }
    .mock-row .meter { width: 72px; }
    .band-grid { grid-template-columns: minmax(0, 1fr); }
    .band-item, .band-item:nth-child(3) { border-left: 0; }
    .band-item + .band-item { border-top: 1px solid var(--line); }
    .grid-2, .grid-3, .grid-4, .form-row, .timeline { grid-template-columns: minmax(0, 1fr); }
    .phone-wrap { padding: 28px 12px; }
    .phone { width: 290px; }
    .card { padding: 22px; }
    .card .table-wrap { margin: 0 -22px -22px; }
    .card.service { padding: 0; }
    .dash-content .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .stat { padding: 16px; }
    .stat-value { font-size: 26px; }
    .mock-row .btn { display: none; }
    .card-more { top: 22px; right: 22px; }
    .footer-cta { padding: 32px 24px; margin-top: 56px; }
    .footer-cta h2 { font-size: 26px; }
    .footer-cta-actions, .footer-cta-actions .btn { width: 100%; }
    .footer-grid { grid-template-columns: minmax(0, 1fr); padding: 48px 0 40px; }
    .footer-bottom, .footer-badges { flex-direction: column; align-items: flex-start; gap: 8px; }
    .wa-float span { display: none; }
    .wa-float { width: 56px; padding: 0; justify-content: center; right: 16px; bottom: 16px; }
    .cookie, .dash .cookie { left: 12px; }
    .cookie { bottom: 12px; }
    .dash-top { padding: 0 16px; height: 68px; }
    .dash-greet span, .user-chip-text { display: none; }
    .user-chip { padding: 4px; }
    .dash-content { padding: 22px 16px 120px; }
    .dash-head { flex-direction: column; align-items: flex-start; }
    .dash-head h1 { font-size: 28px; }
}

/* 20 ─ print ------------------------------------------------------------- */
@media print {
    .topbar, .site-header, .site-footer, .dash-side, .dash-top, .dash-tabbar, .cookie, .wa-float, .mobile-menu { display: none !important; }
    .dash-shell { display: block; }
    body { background: #fff; }
}
