/* =========================================================
   Frulio Informatica — foglio di stile del sito (design v2)
   Usato da tutte le pagine tramite includes/header.php. Il colore principale
   (#1769e0) e il blu notte (#102642) restano quelli del sito.
   ========================================================= */

@property --ang { syntax: "<angle>"; inherits: false; initial-value: 0deg; }

:root {
    color-scheme: light;
    --c-primary: #1769e0;
    --c-primary-dark: #0f55bd;
    --c-accent: #1769e0;
    --c-primary-soft: #e8f1fd;
    --c-sky: #2a9fd6;
    --c-night: #102642;
    --c-night-2: #0a1a30;
    --c-ink: #0f1f36;
    --c-text: #33445c;
    --c-muted: #66758a;
    --c-line: #e3e9f2;
    --c-bg: #ffffff;
    --c-bg-soft: #f5f8fc;
    --c-surface: #ffffff;
    --c-header: rgba(255, 255, 255, .82);
    --c-ok: #16a34a;
    --c-glow: rgba(23, 105, 224, .08);

    --f-display: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
    --f-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

    --radius-s: 10px;
    --radius-m: 16px;
    --radius-l: 24px;
    --shadow-s: 0 1px 2px rgba(16, 38, 66, .06), 0 2px 8px rgba(16, 38, 66, .04);
    --shadow-m: 0 10px 30px -12px rgba(16, 38, 66, .18), 0 4px 10px -4px rgba(16, 38, 66, .08);
    --shadow-l: 0 40px 80px -30px rgba(5, 16, 34, .55);

    --container: 76rem;
    --gutter: clamp(1rem, 4vw, 2rem);
    --section-y: clamp(4.5rem, 9vw, 7.5rem);
    --ease: cubic-bezier(.2, .7, .2, 1);
    --ease-out: cubic-bezier(.16, 1, .3, 1);
}

/* Tema scuro: automatico dal dispositivo, oppure scelto con l'interruttore */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        color-scheme: dark;
        --c-accent: #62a6ff;
        --c-primary-soft: rgba(23, 105, 224, .18);
        --c-ink: #eef3fa;
        --c-text: #c2cfe0;
        --c-muted: #8b9cb5;
        --c-line: rgba(148, 173, 210, .16);
        --c-bg: #0a1628;
        --c-bg-soft: #0d1b30;
        --c-surface: #11223b;
        --c-header: rgba(10, 22, 40, .8);
        --c-glow: rgba(98, 166, 255, .1);
        --shadow-s: 0 1px 2px rgba(0, 0, 0, .3);
        --shadow-m: 0 14px 34px -14px rgba(0, 0, 0, .6);
    }
}
:root[data-theme="dark"] {
    color-scheme: dark;
    --c-accent: #62a6ff;
    --c-primary-soft: rgba(23, 105, 224, .18);
    --c-ink: #eef3fa;
    --c-text: #c2cfe0;
    --c-muted: #8b9cb5;
    --c-line: rgba(148, 173, 210, .16);
    --c-bg: #0a1628;
    --c-bg-soft: #0d1b30;
    --c-surface: #11223b;
    --c-header: rgba(10, 22, 40, .8);
    --c-glow: rgba(98, 166, 255, .1);
    --shadow-s: 0 1px 2px rgba(0, 0, 0, .3);
    --shadow-m: 0 14px 34px -14px rgba(0, 0, 0, .6);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 5.5rem; -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body.hp {
    margin: 0;
    font-family: var(--f-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--c-text);
    background: var(--c-bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    transition: background-color .4s, color .4s;
}
/* Evita lo scorrimento laterale senza toccare lo scorrimento della pagina (clip non crea un contenitore di scroll) */
body.hp > main, body.hp > footer { overflow-x: clip; }

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; font-family: var(--f-display); color: var(--c-ink); letter-spacing: -.02em; line-height: 1.12; }
p, dl, dd, figure, blockquote { margin: 0; }
address { font-style: normal; }
button { font: inherit; }
::selection { background: rgba(23, 105, 224, .25); }

:focus-visible { outline: 3px solid var(--c-primary); outline-offset: 3px; border-radius: 6px; }

.hp-container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.hp-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.hp-skip {
    position: absolute; left: 1rem; top: -4rem; z-index: 300;
    padding: .75rem 1rem; background: var(--c-primary); color: #fff; border-radius: var(--radius-s);
    transition: top .2s;
}
.hp-skip:focus { top: 1rem; }

/* ---------- Transizioni di pagina ---------- */
.hp-transition { position: fixed; inset: 0; z-index: 250; pointer-events: none; background: var(--c-night); opacity: 0; visibility: hidden; }
.js .hp-transition { animation: none; }
.js body.is-leaving .hp-transition { animation: none; visibility: visible; opacity: 1; transition: opacity .35s var(--ease); }
@keyframes hp-veil-out { from { opacity: 1; visibility: visible; } to { opacity: 0; visibility: hidden; } }
.hp-expand {
    position: fixed; z-index: 260; pointer-events: none; border-radius: var(--radius-l);
    background: linear-gradient(160deg, #183a66, var(--c-night)); box-shadow: var(--shadow-l);
    transition: top .55s var(--ease-out), left .55s var(--ease-out), width .55s var(--ease-out), height .55s var(--ease-out), border-radius .55s var(--ease-out);
}

/* ---------- Bottoni ---------- */
.hp-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
    padding: .8rem 1.35rem; border-radius: 999px; border: 1px solid transparent;
    font: 600 .95rem/1.2 var(--f-body); white-space: nowrap; cursor: pointer;
    transition: transform .35s var(--ease-out), box-shadow .25s var(--ease), background-color .25s, color .25s, border-color .25s;
}
.hp-btn svg { width: 1.05rem; height: 1.05rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s var(--ease); }
.hp-btn:hover svg { transform: translateX(3px); }
.hp-btn--sm { padding: .6rem 1.1rem; font-size: .88rem; }
.hp-btn--lg { padding: 1rem 1.6rem; font-size: 1rem; }
.hp-btn--primary { position: relative; overflow: hidden; background: var(--c-primary); color: #fff; box-shadow: 0 8px 20px -8px rgba(23, 105, 224, .7); }
.hp-btn--primary::after {
    content: ""; position: absolute; inset: 0; transform: translateX(-120%);
    background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .35) 50%, transparent 70%);
    transition: transform .8s var(--ease);
}
.hp-btn--primary:hover::after { transform: translateX(120%); }
.hp-btn--primary:hover { background: var(--c-primary-dark); box-shadow: 0 14px 28px -10px rgba(23, 105, 224, .8); }
.hp-btn--ghost { color: #fff; background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .22); backdrop-filter: blur(6px); }
.hp-btn--ghost:hover { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .4); }
.hp-btn--white { background: #fff; color: var(--c-night); }
.hp-btn--white:hover { box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .45); }
.hp-btn--outline-light { color: #fff; border-color: rgba(255, 255, 255, .35); }
.hp-btn--outline-light:hover { background: rgba(255, 255, 255, .1); border-color: #fff; }

.hp-link-arrow { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; font-size: .92rem; color: var(--c-accent); }
.hp-link-arrow::after { content: "→"; transition: transform .25s var(--ease); }
a:hover > .hp-link-arrow::after, .hp-link-arrow:hover::after { transform: translateX(4px); }

.hp-eyebrow {
    display: inline-flex; align-items: center; gap: .6rem; margin-bottom: 1rem;
    font: 700 .78rem/1 var(--f-body); letter-spacing: .14em; text-transform: uppercase; color: var(--c-accent);
}
.hp-eyebrow::before { content: ""; width: 1.5rem; height: 2px; border-radius: 2px; background: currentColor; }
.hp-eyebrow--light { color: #8dc0ff; }

.hp-gradient-text {
    background: linear-gradient(100deg, #7cc3ff 0%, var(--c-sky) 45%, #5b8cff 100%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- Titoli che compaiono parola per parola ---------- */
.hp-w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .14em; margin-bottom: -.14em; }
.hp-w > span { display: inline-block; }
.js [data-split].is-split .hp-w > span { transform: translateY(105%); transition: transform .55s var(--ease-out); transition-delay: calc(var(--i, 0) * 30ms); }
.js [data-split].is-split.is-visible .hp-w > span { transform: none; }

/* ---------- Effetto luce che segue il mouse ---------- */
.hp-spot { position: relative; isolation: isolate; }
.hp-spot::before {
    content: ""; position: absolute; inset: 0; z-index: 2; border-radius: inherit; padding: 1px; pointer-events: none;
    background: radial-gradient(20rem circle at var(--mx, 50%) var(--my, 50%), rgba(98, 166, 255, .95), transparent 45%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
    opacity: 0; transition: opacity .35s;
}
.hp-spot::after {
    content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
    background: radial-gradient(26rem circle at var(--mx, 50%) var(--my, 0%), var(--c-glow), transparent 55%);
    opacity: 0; transition: opacity .35s;
}
.hp-spot:hover::before, .hp-spot:hover::after { opacity: 1; }

[data-tilt] { transform-style: preserve-3d; will-change: transform; }
.is-tilting { transition: transform .12s linear, box-shadow .35s, border-color .35s !important; }

/* ---------- Header ---------- */
.hp-header {
    position: sticky; top: 0; z-index: 50;
    background: var(--c-header);
    backdrop-filter: saturate(180%) blur(16px); -webkit-backdrop-filter: saturate(180%) blur(16px);
    border-bottom: 1px solid transparent;
    transition: border-color .3s, box-shadow .3s, background-color .4s;
}
.hp-header.is-scrolled { border-bottom-color: var(--c-line); box-shadow: 0 6px 24px -14px rgba(16, 38, 66, .25); }
.hp-progress {
    position: absolute; left: 0; bottom: -1px; width: 100%; height: 2px; transform-origin: left; transform: scaleX(var(--p, 0));
    background: linear-gradient(90deg, var(--c-primary), var(--c-sky)); pointer-events: none;
}
.hp-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; height: 5rem; transition: height .3s var(--ease); }
.hp-header.is-scrolled .hp-header__inner { height: 4.1rem; }
.hp-logo { display: block; border-radius: 12px; transition: background-color .3s, padding .3s; }
.hp-logo img { width: auto; height: 46px; transition: height .3s var(--ease); }
.hp-header.is-scrolled .hp-logo img { height: 38px; }
.hp-header__tools { display: flex; align-items: center; gap: .5rem; order: 3; }

.hp-theme {
    position: relative; display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 50%;
    border: 1px solid var(--c-line); background: var(--c-surface); color: var(--c-ink); cursor: pointer; overflow: hidden;
    transition: background-color .3s, border-color .3s, transform .3s var(--ease-out);
}
.hp-theme:hover { transform: rotate(15deg); }
.hp-theme span { position: absolute; display: grid; place-items: center; transition: transform .5s var(--ease-out), opacity .3s; }
.hp-theme svg { width: 1.15rem; height: 1.15rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hp-theme__moon { transform: translateY(150%) rotate(-60deg); opacity: 0; }

.hp-nav { display: flex; align-items: center; gap: 1.75rem; margin-left: auto; }
.hp-nav__list { display: flex; align-items: center; gap: .25rem; }
.hp-nav__link {
    display: inline-flex; align-items: center; gap: .3rem; padding: .55rem .85rem; border-radius: 999px;
    font-weight: 500; font-size: .95rem; color: var(--c-ink); white-space: nowrap; transition: background-color .2s, color .2s;
}
@media (max-width: 75rem) and (min-width: 62.01rem) {
    .hp-nav__link { padding: .55rem .6rem; }
}
.hp-nav__link svg { width: .75rem; height: .75rem; fill: none; stroke: currentColor; stroke-width: 1.6; transition: transform .25s; }
.hp-nav__link:hover { background: var(--c-bg-soft); color: var(--c-accent); }

.hp-nav__item--mega { position: relative; }
.hp-mega {
    position: absolute; top: calc(100% + .75rem); left: 50%;
    display: grid; grid-template-columns: 1fr 1fr .9fr; gap: 1.5rem; width: min(58rem, 92vw);
    padding: 1.75rem; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius-l); box-shadow: var(--shadow-m), 0 30px 60px -30px rgba(16, 38, 66, .35);
    opacity: 0; visibility: hidden; transform: translate(-42%, 8px) scale(.98); transform-origin: top center;
    transition: opacity .25s, transform .35s var(--ease-out), visibility .25s;
}
.hp-mega::before { content: ""; position: absolute; inset: -1rem 0 auto; height: 1rem; }
.hp-nav__item--mega:hover .hp-mega, .hp-nav__item--mega:focus-within .hp-mega { opacity: 1; visibility: visible; transform: translate(-42%, 0) scale(1); }
.hp-nav__item--mega:hover .hp-nav__link svg { transform: rotate(180deg); }
.hp-mega__title { margin-bottom: .6rem; font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--c-muted); }
.hp-mega__col { display: flex; flex-direction: column; gap: .2rem; }
.hp-mega__col > a { display: flex; gap: .8rem; align-items: flex-start; padding: .65rem; border-radius: var(--radius-s); transition: background-color .2s, transform .25s var(--ease-out); }
.hp-mega__col > a:hover { background: var(--c-bg-soft); transform: translateX(3px); }
.hp-mega__col > a strong { display: block; font-size: .92rem; color: var(--c-ink); }
.hp-mega__col > a small { display: block; font-size: .8rem; color: var(--c-muted); line-height: 1.4; }
.hp-mega__icon { flex: none; display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 10px; background: var(--c-primary-soft); color: var(--c-accent); }
.hp-mega__icon svg { width: 1.2rem; height: 1.2rem; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.hp-mega__col--feature > a { font-weight: 600; font-size: .92rem; color: var(--c-ink); }
.hp-mega__cta { margin-top: auto; display: flex; flex-direction: column; gap: .35rem; padding: 1.1rem; border-radius: var(--radius-m); background: linear-gradient(140deg, var(--c-night), #183a66); color: #cfdaea; font-size: .85rem; }
.hp-mega__cta strong { color: #fff; font-size: .95rem; }
.hp-mega__cta .hp-link-arrow { color: #8dc0ff; }

.hp-burger { display: none; }

/* ---------- Hero ---------- */
.hp-hero {
    position: relative; overflow: hidden; overflow: clip; isolation: isolate;
    padding: clamp(4rem, 8vw, 6.5rem) 0 clamp(6rem, 10vw, 8.5rem);
    background: radial-gradient(120% 90% at 85% 0%, #1b4479 0%, var(--c-night) 48%, var(--c-night-2) 100%);
    color: #cfdaea;
}
.hp-hero__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hp-hero__aurora {
    position: absolute; inset: -40% -20% 10% 20%; border-radius: 50%; opacity: .55; filter: blur(90px);
    background: conic-gradient(from var(--ang) at 50% 50%, #1769e0, #2a9fd6, #102642, #3b5bdb, #0d47a1, #1769e0);
    animation: hp-aurora 26s linear infinite;
}
@keyframes hp-aurora { to { --ang: 360deg; } }
.hp-hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hp-hero__grid {
    position: absolute; inset: 0;
    background-image: linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(80% 70% at 60% 40%, #000 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(80% 70% at 60% 40%, #000 30%, transparent 80%);
}

.hp-hero__layout { display: grid; grid-template-columns: 1.02fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }

.hp-pill {
    display: inline-flex; align-items: center; gap: .55rem; margin-bottom: 1.5rem; padding: .45rem .9rem .45rem .7rem;
    border-radius: 999px; border: 1px solid rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .06);
    font-size: .85rem; font-weight: 500; color: #dbe7f7; backdrop-filter: blur(6px);
}
.hp-pill__dot { position: relative; width: .5rem; height: .5rem; border-radius: 50%; background: #4ade80; }
.hp-pill__dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #4ade80; animation: hp-ping 2s var(--ease) infinite; }
@keyframes hp-ping { 75%, 100% { transform: scale(2.6); opacity: 0; } }

.hp-hero h1 { color: #fff; font-size: clamp(2.5rem, 5.6vw, 4.5rem); font-weight: 800; letter-spacing: -.035em; line-height: 1.03; }
.hp-hero__lead { max-width: 34rem; margin-top: 1.5rem; font-size: clamp(1.05rem, 1.6vw, 1.2rem); line-height: 1.65; color: #b9c8dd; }
.hp-hero__actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 2.25rem; }
.hp-hero__trust { display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; margin-top: 2.5rem; padding-top: 1.75rem; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .88rem; color: #a9bbd3; }
.hp-hero__trust li { display: inline-flex; align-items: center; gap: .5rem; }
.hp-hero__trust svg { width: 1.1rem; height: 1.1rem; fill: none; stroke: #8dc0ff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.hp-scroll-cue {
    position: absolute; left: 50%; bottom: 4.5rem; translate: -50% 0; width: 1.6rem; height: 2.5rem;
    border: 2px solid rgba(255, 255, 255, .3); border-radius: 1rem; transition: border-color .3s;
}
.hp-scroll-cue:hover { border-color: rgba(255, 255, 255, .7); }
.hp-scroll-cue span { position: absolute; left: 50%; top: .45rem; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #fff; animation: hp-cue 1.8s var(--ease) infinite; }
@keyframes hp-cue { 0% { opacity: 0; transform: translateY(-4px); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

/* mockup dashboard (interattivo) */
.hp-hero__visual { position: relative; padding: 1.5rem 0 2.5rem 1.5rem; perspective: 1600px; }
.hp-app {
    position: relative; border-radius: 18px; overflow: hidden; color: #33445c;
    background: rgba(255, 255, 255, .98); box-shadow: var(--shadow-l), 0 0 0 1px rgba(255, 255, 255, .12);
    transform: rotateY(calc(-9deg + var(--ry, 0deg))) rotateX(calc(4deg + var(--rx, 0deg)));
    transform-origin: left center; transition: transform .6s var(--ease-out);
}
.hp-app__bar { display: flex; align-items: center; gap: 1rem; padding: .7rem 1rem; background: #f1f5fa; border-bottom: 1px solid #e3e9f2; }
.hp-app__dots { display: flex; gap: .35rem; }
.hp-app__dots i { width: .6rem; height: .6rem; border-radius: 50%; background: #d4dce8; }
.hp-app__dots i:first-child { background: #ff6b6b; } .hp-app__dots i:nth-child(2) { background: #ffc94d; } .hp-app__dots i:nth-child(3) { background: #4ade80; }
.hp-app__url { flex: 1; max-width: 15rem; padding: .25rem .75rem; border-radius: 6px; background: #fff; font-size: .7rem; color: #66758a; }
.hp-app__live { display: inline-flex; align-items: center; gap: .35rem; margin-left: auto; font-size: .64rem; font-weight: 600; color: #1769e0; }
.hp-app__live i { width: .4rem; height: .4rem; border-radius: 50%; background: #1769e0; animation: hp-blink 1.4s ease-in-out infinite; }
@keyframes hp-blink { 50% { opacity: .25; } }
.hp-app__body { display: grid; grid-template-columns: 8.5rem 1fr; min-height: 19rem; }
.hp-app__side { display: flex; flex-direction: column; gap: .15rem; padding: .9rem .6rem; background: var(--c-night); }
.hp-app__side button {
    position: relative; display: flex; align-items: center; gap: .5rem; padding: .5rem .55rem; border: 0; border-radius: 8px;
    background: transparent; color: #9fb2cc; font-size: .7rem; text-align: left; cursor: pointer; transition: background-color .25s, color .25s;
}
.hp-app__side button:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.hp-app__side button.is-active { background: rgba(23, 105, 224, .4); color: #fff; }
.hp-app__side button.is-active::before { content: ""; position: absolute; left: -.6rem; top: 25%; bottom: 25%; width: 3px; border-radius: 0 3px 3px 0; background: #62a6ff; }
.hp-app__side button:focus-visible { outline: 2px solid #62a6ff; outline-offset: 1px; }
.hp-app__side svg { width: .9rem; height: .9rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.hp-app__main { display: flex; flex-direction: column; gap: .75rem; padding: .9rem; }
.hp-app__kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; }
.hp-kpi { padding: .65rem .7rem; border: 1px solid #e3e9f2; border-radius: 10px; transition: border-color .4s; }
.hp-kpi.is-flash { border-color: #9cc3f5; }
.hp-kpi small { display: block; font-size: .62rem; color: #66758a; }
.hp-kpi strong { display: block; font: 700 1.1rem/1.3 var(--f-display); color: #0f1f36; font-variant-numeric: tabular-nums; }
.hp-kpi em { font-style: normal; font-size: .6rem; font-weight: 600; color: #66758a; }
.hp-kpi em.up { color: var(--c-ok); }
.hp-app__chart { padding: .7rem; border: 1px solid #e3e9f2; border-radius: 10px; }
.hp-app__chart-head { display: flex; justify-content: space-between; font-size: .66rem; color: #66758a; }
.hp-app__chart-head strong { color: #0f1f36; }
.hp-bars { display: flex; align-items: flex-end; gap: 6%; height: 5.5rem; margin-top: .6rem; }
.hp-bars i { flex: 1; height: var(--h); border-radius: 5px 5px 2px 2px; background: linear-gradient(180deg, #5aa2ff, var(--c-primary)); transform-origin: bottom; animation: hp-grow 1.2s var(--ease-out) both; transition: height .7s var(--ease-out); }
.hp-bars i:nth-child(odd) { background: linear-gradient(180deg, #bcd6fb, #8ab6f4); }
.hp-bars i:last-child { background: linear-gradient(180deg, var(--c-sky), var(--c-primary)); }
.hp-bars i:nth-child(2) { animation-delay: .08s; transition-delay: .04s; } .hp-bars i:nth-child(3) { animation-delay: .16s; transition-delay: .08s; }
.hp-bars i:nth-child(4) { animation-delay: .24s; transition-delay: .12s; } .hp-bars i:nth-child(5) { animation-delay: .32s; transition-delay: .16s; }
.hp-bars i:nth-child(6) { animation-delay: .4s; transition-delay: .2s; } .hp-bars i:nth-child(7) { animation-delay: .48s; transition-delay: .24s; }
@keyframes hp-grow { from { transform: scaleY(0); } }
.hp-app__rows { display: flex; flex-direction: column; gap: .35rem; }
.hp-app__rows span { display: flex; align-items: center; gap: .5rem; padding: .45rem .6rem; border-radius: 8px; background: #f5f8fc; font-size: .66rem; color: #33445c; animation: hp-row-in .5s var(--ease-out) both; }
.hp-app__rows span:nth-child(2) { animation-delay: .07s; } .hp-app__rows span:nth-child(3) { animation-delay: .14s; }
@keyframes hp-row-in { from { opacity: 0; transform: translateX(-8px); } }
.hp-app__rows i { width: .45rem; height: .45rem; border-radius: 50%; background: #ffc94d; flex: none; }
.hp-app__rows i.ok { background: var(--c-ok); }

.hp-phone {
    position: absolute; right: -1rem; bottom: 0; width: 9.5rem; padding: 1.1rem .8rem 1rem;
    display: flex; flex-direction: column; gap: .5rem;
    background: linear-gradient(160deg, #183a66, var(--c-night-2)); border: 3px solid #2a4a74; border-radius: 26px;
    box-shadow: var(--shadow-l); color: #fff; transition: transform .6s var(--ease-out);
}
.hp-phone__notch { align-self: center; width: 2.6rem; height: .35rem; border-radius: 4px; background: #2a4a74; margin-bottom: .25rem; }
.hp-phone__brand { font-size: .58rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #8dc0ff; }
.hp-phone__title { font: 700 .9rem/1.2 var(--f-display); }
.hp-phone__row { display: flex; justify-content: space-between; gap: .4rem; padding: .45rem; border-radius: 8px; background: rgba(255, 255, 255, .07); }
.hp-phone__row b { height: .35rem; border-radius: 3px; background: rgba(255, 255, 255, .35); }
.hp-phone__row b:first-child { width: 55%; } .hp-phone__row b:last-child { width: 20%; background: #8dc0ff; }
.hp-phone__btn { margin-top: .3rem; padding: .45rem; border-radius: 8px; background: var(--c-primary); font-size: .66rem; font-weight: 600; text-align: center; }

.hp-float {
    position: absolute; left: -1rem; bottom: 1rem; display: flex; align-items: center; gap: .65rem;
    padding: .7rem .95rem; border-radius: 14px; background: #fff; box-shadow: var(--shadow-m); transition: transform .6s var(--ease-out);
}
.hp-float svg { width: 2rem; height: 2rem; padding: .4rem; border-radius: 9px; background: #e7f8ee; fill: none; stroke: var(--c-ok); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hp-float strong { display: block; font-size: .8rem; color: #0f1f36; line-height: 1.2; }
.hp-float small { font-size: .7rem; color: #66758a; }

/* ---------- Numeri ---------- */
.hp-stats { position: relative; z-index: 2; margin-top: -3.5rem; }
.hp-stats__grid {
    display: grid; grid-template-columns: repeat(4, 1fr);
    background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius-l); box-shadow: var(--shadow-m);
}
.hp-stat { padding: 1.75rem 1.5rem; text-align: center; }
.hp-stat + .hp-stat { border-left: 1px solid var(--c-line); }
.hp-stat strong { display: block; font: 800 clamp(2rem, 3.6vw, 2.75rem)/1 var(--f-display); letter-spacing: -.03em; color: var(--c-ink); font-variant-numeric: tabular-nums; }
.hp-stat > span { display: block; margin-top: .5rem; font-size: .9rem; color: var(--c-muted); }

/* ---------- Nastro processi ---------- */
.hp-marquee {
    padding: 2.75rem 0 .5rem; overflow: hidden; overflow: clip;
    mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.hp-marquee__track { display: flex; width: max-content; animation: hp-marquee 45s linear infinite; }
.hp-marquee:hover .hp-marquee__track { animation-play-state: paused; }
.hp-marquee__list { display: flex; gap: .75rem; padding-right: .75rem; }
.hp-marquee__list li {
    display: inline-flex; align-items: center; gap: .6rem; padding: .6rem 1.1rem; border-radius: 999px; white-space: nowrap;
    border: 1px solid var(--c-line); background: var(--c-surface); font-size: .9rem; font-weight: 500; color: var(--c-text);
}
.hp-marquee__list li::before { content: ""; width: .4rem; height: .4rem; border-radius: 50%; background: linear-gradient(135deg, var(--c-primary), var(--c-sky)); }
@keyframes hp-marquee { to { transform: translateX(-50%); } }

/* ---------- Sezioni generiche ---------- */
.hp-section { padding: var(--section-y) 0; }
.hp-heading { max-width: 46rem; margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.hp-heading--center { margin-inline: auto; text-align: center; }
.hp-heading--center .hp-eyebrow { justify-content: center; }
.hp-heading h2 { font-size: clamp(2rem, 4.2vw, 3.1rem); font-weight: 800; letter-spacing: -.03em; }
.hp-heading > p:not(.hp-eyebrow) { margin-top: 1.1rem; font-size: 1.1rem; color: var(--c-muted); }

/* ---------- Soluzioni (tab) ---------- */
.hp-tabs__list {
    position: relative; display: flex; flex-wrap: wrap; gap: .4rem; width: fit-content; max-width: 100%;
    margin-bottom: 2.25rem; padding: .4rem; border-radius: 999px; background: var(--c-bg-soft); border: 1px solid var(--c-line);
}
.hp-tabs__indicator {
    position: absolute; z-index: 0; left: 0; top: 0; border-radius: 999px; background: var(--c-surface); box-shadow: var(--shadow-s);
    transition: transform .45s var(--ease-out), width .45s var(--ease-out), height .45s var(--ease-out); pointer-events: none;
}
.hp-tabs__tab {
    position: relative; z-index: 1; display: inline-flex; align-items: center; gap: .5rem; padding: .7rem 1.15rem; border: 0; border-radius: 999px;
    background: transparent; color: var(--c-text); font: 600 .92rem/1 var(--f-body); cursor: pointer; transition: color .25s;
}
.hp-tabs__tab:hover { color: var(--c-accent); }
.hp-tabs__tab[aria-selected="true"] { color: var(--c-accent); }
.hp-tabs:not(.has-indicator) .hp-tabs__tab[aria-selected="true"] { background: var(--c-surface); box-shadow: var(--shadow-s); }
.hp-tabs__count { display: inline-grid; place-items: center; min-width: 1.4rem; height: 1.4rem; padding: 0 .35rem; border-radius: 999px; background: var(--c-line); font-size: .72rem; color: var(--c-muted); transition: background-color .25s, color .25s; }
.hp-tabs__tab[aria-selected="true"] .hp-tabs__count { background: var(--c-primary); color: #fff; }

.hp-tabs__panel + .hp-tabs__panel { margin-top: 3.5rem; }
.js .hp-tabs__panel + .hp-tabs__panel { margin-top: 0; }
.js .hp-tabs__panel[data-inactive] { display: none; }
.js .hp-tabs__panel .hp-card { animation: hp-card-in .6s var(--ease-out) both; }
.js .hp-tabs__panel .hp-card:nth-child(2) { animation-delay: .07s; }
.js .hp-tabs__panel .hp-card:nth-child(3) { animation-delay: .14s; }
.js .hp-tabs__panel .hp-card:nth-child(4) { animation-delay: .21s; }
@keyframes hp-card-in { from { opacity: 0; transform: translateY(18px); } }

.hp-panel-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem 2rem; margin-bottom: 1.5rem; }
.hp-panel-head h3 { font-size: 1.35rem; }
.hp-panel-head p { color: var(--c-muted); max-width: 34rem; }

.hp-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.hp-cards--4 { grid-template-columns: repeat(4, 1fr); }
.hp-cards--1 { grid-template-columns: minmax(0, 32rem); }

.hp-card {
    display: flex; flex-direction: column; gap: .7rem; padding: 1.75rem;
    background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius-l);
    transition: transform .5s var(--ease-out), box-shadow .35s var(--ease), border-color .35s, background-color .4s;
}
.hp-card:hover { box-shadow: var(--shadow-m); border-color: transparent; }
.hp-card:not([data-tilt]):hover { transform: translateY(-6px); }
.hp-card__icon {
    display: grid; place-items: center; width: 3rem; height: 3rem; margin-bottom: .4rem; border-radius: 14px;
    background: var(--c-primary-soft); color: var(--c-accent); transition: background .35s, color .35s, transform .5s var(--ease-out);
}
.hp-card:hover .hp-card__icon { background: linear-gradient(140deg, var(--c-primary), var(--c-sky)); color: #fff; transform: translateZ(30px) rotate(-6deg); }
.hp-card__icon svg { width: 1.45rem; height: 1.45rem; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.hp-card__tag { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--c-accent); }
.hp-card h4, .hp-card h3 { font-size: 1.2rem; font-weight: 700; }
.hp-card__headline { font-weight: 600; color: var(--c-ink); }
.hp-card__text { font-size: .93rem; color: var(--c-muted); }
.hp-card .hp-link-arrow, .hp-card__more { margin-top: auto; padding-top: .75rem; }
.hp-card__more { font-size: .85rem; font-weight: 500; color: var(--c-muted); }

/* ---------- Storytelling ---------- */
.hp-story {
    position: relative; padding: var(--section-y) 0; color: #b9c8dd;
    background: radial-gradient(80% 50% at 50% 0%, #173e70 0%, transparent 70%), linear-gradient(180deg, var(--c-night), var(--c-night-2));
}
.hp-story::before {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background-image: radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px); background-size: 26px 26px;
    mask-image: linear-gradient(180deg, #000, transparent 60%); -webkit-mask-image: linear-gradient(180deg, #000, transparent 60%);
}
.hp-story h2 { color: #fff; }
.hp-story .hp-heading > p:not(.hp-eyebrow) { color: #9fb2cc; }
.hp-story__layout { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 4.5rem); }
.hp-story__stage { position: sticky; top: 6rem; height: calc(100vh - 8rem); min-height: 30rem; display: flex; align-items: center; }
.hp-story__panel {
    width: 100%; padding: clamp(1.25rem, 3vw, 2rem); border-radius: 28px;
    background: linear-gradient(160deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .02)); border: 1px solid rgba(255, 255, 255, .1);
    box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .7); backdrop-filter: blur(10px);
}
.hp-story__track { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); margin-bottom: 1.75rem; }
.hp-story__track li[data-story-node] { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: .5rem; text-align: center; }
.hp-story__track li[data-story-node] span {
    display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 50%;
    background: #132c4d; border: 2px solid rgba(141, 192, 255, .25); color: #8da3c0; font: 700 .9rem/1 var(--f-display);
    transition: background-color .4s, border-color .4s, color .4s, box-shadow .4s, transform .4s var(--ease-out);
}
.hp-story__track li[data-story-node] small { font-size: .7rem; font-weight: 600; color: #7f93ae; transition: color .4s; }
.hp-story__track li.is-done span { background: #1b4b8f; border-color: #3d7fd8; color: #fff; }
.hp-story__track li.is-current span { background: var(--c-primary); border-color: #62a6ff; color: #fff; transform: scale(1.12); box-shadow: 0 0 0 6px rgba(23, 105, 224, .25), 0 0 24px rgba(98, 166, 255, .6); }
.hp-story__track li.is-done small, .hp-story__track li.is-current small { color: #dbe7f7; }
.hp-story__line { position: absolute; left: 10%; right: 10%; top: 1.3rem; height: 2px; background: rgba(141, 192, 255, .18); }
.hp-story__line i { position: absolute; inset: 0; transform-origin: left; transform: scaleX(var(--p, 0)); background: linear-gradient(90deg, var(--c-primary), #62a6ff); box-shadow: 0 0 12px rgba(98, 166, 255, .8); transition: transform .15s linear; }

.hp-story__screens { position: relative; height: 20.5rem; }
.hp-screen {
    position: absolute; inset: 0; display: flex; flex-direction: column; gap: .8rem; padding: 1.4rem;
    border-radius: 20px; background: #fff; color: #33445c; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .7);
    opacity: 0; transform: translateY(24px) scale(.97); visibility: hidden;
    transition: opacity .5s var(--ease), transform .6s var(--ease-out), visibility .5s;
}
.hp-screen.is-active { opacity: 1; transform: none; visibility: visible; }
.hp-screen__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-bottom: .8rem; border-bottom: 1px solid #e3e9f2; }
.hp-screen__head strong { font: 700 1.05rem/1.2 var(--f-display); color: #0f1f36; }
.hp-screen__badge { display: inline-flex; align-items: center; gap: .4rem; padding: .3rem .65rem; border-radius: 999px; background: #e8f1fd; color: #1769e0; font-size: .72rem; font-weight: 700; }
.hp-screen svg { width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.hp-screen__field { display: flex; justify-content: space-between; padding: .6rem .8rem; border-radius: 10px; background: #f5f8fc; font-size: .85rem; }
.hp-screen__field small { color: #66758a; font-size: .8rem; }
.hp-screen__field span { font-weight: 600; color: #0f1f36; }
.hp-screen__lines { display: grid; gap: .4rem; }
.hp-screen__lines li { display: flex; justify-content: space-between; padding: .5rem .8rem; border: 1px solid #e3e9f2; border-radius: 10px; font-size: .85rem; }
.hp-screen__lines b { color: #1769e0; }
.hp-screen__cta { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; margin-top: auto; padding: .7rem; border-radius: 12px; background: #1769e0; color: #fff; font-weight: 600; font-size: .9rem; }
.hp-screen.is-active .hp-screen__lines li { animation: hp-row-in .5s var(--ease-out) both; }
.hp-screen.is-active .hp-screen__lines li:nth-child(2) { animation-delay: .1s; }
.hp-screen.is-active .hp-screen__lines li:nth-child(3) { animation-delay: .2s; }
.hp-screen.is-active .hp-screen__cta { animation: hp-press 2.4s .8s var(--ease) infinite; }
@keyframes hp-press { 0%, 70%, 100% { transform: none; box-shadow: none; } 80% { transform: scale(.97); box-shadow: 0 0 0 6px rgba(23, 105, 224, .2); } }

.hp-screen__grid { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
.hp-screen__grid > div { padding: .75rem .85rem; border-radius: 12px; background: #f5f8fc; }
.hp-screen__grid dt { font-size: .72rem; color: #66758a; }
.hp-screen__grid dd { display: flex; align-items: center; gap: .35rem; margin-top: .2rem; font-weight: 600; color: #0f1f36; font-size: .92rem; }
.hp-screen__grid dd.ok { color: var(--c-ok); }
.hp-chip { padding: .2rem .6rem; border-radius: 999px; background: #e7f8ee; color: var(--c-ok); font-size: .78rem; }
.hp-screen.is-active .hp-screen__grid > div { animation: hp-card-in .5s var(--ease-out) both; }
.hp-screen.is-active .hp-screen__grid > div:nth-child(2) { animation-delay: .08s; }
.hp-screen.is-active .hp-screen__grid > div:nth-child(3) { animation-delay: .16s; }
.hp-screen.is-active .hp-screen__grid > div:nth-child(4) { animation-delay: .24s; }

.hp-screen__checks { display: grid; gap: .5rem; }
.hp-screen__checks li { display: flex; align-items: center; gap: .7rem; padding: .6rem .8rem; border: 1px solid #e3e9f2; border-radius: 10px; font-size: .86rem; }
.hp-screen__checks i { display: grid; place-items: center; width: 1.4rem; height: 1.4rem; border-radius: 6px; background: var(--c-ok); color: #fff; }
.hp-screen.is-active .hp-screen__checks i { animation: hp-tick .4s var(--ease-out) both; }
.hp-screen.is-active .hp-screen__checks li:nth-child(1) i { animation-delay: .3s; }
.hp-screen.is-active .hp-screen__checks li:nth-child(2) i { animation-delay: .7s; }
.hp-screen.is-active .hp-screen__checks li:nth-child(3) i { animation-delay: 1.1s; }
@keyframes hp-tick { from { transform: scale(0); background: #e3e9f2; } }
.hp-screen__meter { height: .5rem; margin-top: auto; border-radius: 999px; background: #e3e9f2; overflow: hidden; }
.hp-screen__meter span { display: block; height: 100%; width: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--c-ok), #4ade80); transform-origin: left; }
.hp-screen.is-active .hp-screen__meter span { animation: hp-meter 1.3s .2s var(--ease-out) both; }
@keyframes hp-meter { from { transform: scaleX(0); } }

.hp-screen__route { position: relative; display: grid; gap: 1.1rem; padding-left: .4rem; }
.hp-screen__route::before { content: ""; position: absolute; left: .82rem; top: .5rem; bottom: .5rem; width: 2px; background: linear-gradient(#16a34a 60%, #e3e9f2 60%); }
.hp-screen__route li { position: relative; display: flex; align-items: center; gap: .9rem; font-size: .9rem; }
.hp-screen__route i { position: relative; z-index: 1; width: .9rem; height: .9rem; border-radius: 50%; background: #e3e9f2; border: 3px solid #fff; box-shadow: 0 0 0 1px #e3e9f2; }
.hp-screen__route .done i { background: var(--c-ok); box-shadow: 0 0 0 1px var(--c-ok); }
.hp-screen__route .now { font-weight: 600; color: #0f1f36; }
.hp-screen__route .now i { background: #1769e0; box-shadow: 0 0 0 1px #1769e0; }
.hp-screen.is-active .hp-screen__route .now i::after { content: ""; position: absolute; inset: -3px; border-radius: 50%; background: #1769e0; animation: hp-ping 1.6s var(--ease) infinite; }

.hp-screen__sdi { display: flex; align-items: center; gap: 1rem; margin: auto 0; padding: 0 .5rem; }
.hp-screen__doc, .hp-screen__sdi-node { flex: none; display: grid; place-items: center; width: 3.5rem; height: 3.5rem; border-radius: 14px; }
.hp-screen__doc { background: #e8f1fd; color: #1769e0; }
.hp-screen__doc svg { width: 1.6rem; height: 1.6rem; }
.hp-screen__sdi-node { background: var(--c-night); color: #fff; font: 800 .95rem/1 var(--f-display); }
.hp-screen__wire { position: relative; flex: 1; height: 2px; background: repeating-linear-gradient(90deg, #b9d3f7 0 6px, transparent 6px 12px); }
.hp-screen__wire i { position: absolute; top: 50%; left: 0; width: .7rem; height: .7rem; margin-top: -.35rem; border-radius: 50%; background: #1769e0; box-shadow: 0 0 12px #62a6ff; opacity: 0; }
.hp-screen.is-active .hp-screen__wire i { animation: hp-travel 1.8s .2s var(--ease) infinite; }
@keyframes hp-travel { 0% { left: 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { left: calc(100% - .7rem); opacity: 0; } }
.hp-screen__ok { display: flex; align-items: center; justify-content: center; gap: .5rem; padding: .7rem; border-radius: 12px; background: #e7f8ee; color: var(--c-ok); font-weight: 600; font-size: .9rem; }
.hp-screen.is-active .hp-screen__ok { animation: hp-card-in .6s .6s var(--ease-out) both; }

.hp-story__steps { display: flex; flex-direction: column; }
.hp-story__step { min-height: 72vh; display: flex; flex-direction: column; justify-content: center; padding: 2rem 0; opacity: .3; transition: opacity .5s var(--ease); }
.hp-story__step.is-active { opacity: 1; }
.hp-story__num { font: 800 .9rem/1 var(--f-display); color: #62a6ff; margin-bottom: .9rem; }
.hp-story__app { display: inline-block; width: fit-content; margin-bottom: .9rem; padding: .3rem .7rem; border-radius: 999px; background: rgba(23, 105, 224, .22); color: #b8d6ff; font-size: .78rem; font-weight: 600; }
.hp-story__step h3 { color: #fff; font-size: clamp(1.6rem, 2.8vw, 2.2rem); font-weight: 800; letter-spacing: -.025em; }
.hp-story__step h3 + p { margin-top: .9rem; max-width: 28rem; font-size: 1.08rem; line-height: 1.65; }

/* ---------- Bento ---------- */
.hp-bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: minmax(14rem, auto); gap: 1.25rem; }
.hp-tile {
    position: relative; overflow: hidden; overflow: clip; display: flex; flex-direction: column; gap: .6rem; padding: 1.75rem;
    border-radius: var(--radius-l); background: var(--c-surface); border: 1px solid var(--c-line);
    transition: box-shadow .35s, transform .9s var(--ease-out), opacity .9s var(--ease-out), translate .5s var(--ease-out), background-color .4s;
}
.hp-tile:hover { box-shadow: var(--shadow-m); translate: 0 -4px; }
.hp-tile h3 { font-size: 1.2rem; font-weight: 700; }
.hp-tile__text { display: grid; gap: .55rem; }
.hp-tile p { font-size: .93rem; color: var(--c-muted); }
.hp-tile__icon { display: grid; place-items: center; width: 2.8rem; height: 2.8rem; margin-bottom: .4rem; border-radius: 13px; background: var(--c-primary-soft); color: var(--c-accent); }
.hp-tile__icon svg { width: 1.35rem; height: 1.35rem; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.hp-tile--eco { grid-column: 1 / 3; grid-row: 1 / 3; color: #b9c8dd; border-color: transparent; background: radial-gradient(90% 70% at 50% 100%, #1d4f92 0%, transparent 70%), linear-gradient(160deg, #132e52, var(--c-night-2)); }
.hp-tile--eco h3 { color: #fff; font-size: 1.5rem; }
.hp-tile--eco p { color: #a9bbd3; max-width: 26rem; }
.hp-tile--modular { grid-column: 3 / 5; }
.hp-tile--sdi { grid-column: 3; }
.hp-tile--mobile { grid-column: 4; }
.hp-tile--ai { grid-column: 1 / 3; flex-direction: row; align-items: center; gap: 1.25rem; border: 1px solid transparent;
    background: linear-gradient(var(--c-surface), var(--c-surface)) padding-box, conic-gradient(from var(--ang), #1769e0, #2a9fd6, #a78bfa, #1769e0 60%, var(--c-line) 75%, #1769e0) border-box;
    animation: hp-aurora 6s linear infinite; }
.hp-tile--ai .hp-tile__icon { flex: none; width: 3.5rem; height: 3.5rem; background: linear-gradient(140deg, var(--c-primary), #7c5cff); color: #fff; margin: 0; }
.hp-tile--ai .hp-tile__icon svg { width: 1.7rem; height: 1.7rem; animation: hp-twinkle 3s ease-in-out infinite; }
@keyframes hp-twinkle { 50% { transform: scale(.85) rotate(15deg); opacity: .7; } }
.hp-tile--year { justify-content: flex-end; background: linear-gradient(160deg, var(--c-primary-soft), var(--c-surface)); }
.hp-tile--year small { font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--c-accent); }
.hp-tile--year strong { font: 800 3.6rem/1 var(--f-display); letter-spacing: -.05em; color: var(--c-ink); }

.hp-orbit { position: relative; width: min(100%, 24rem); aspect-ratio: 1; margin: auto; }
.hp-orbit__lines { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; stroke: rgba(141, 192, 255, .25); stroke-width: 1; }
.hp-orbit__lines circle:first-child { stroke-dasharray: 4 6; animation: hp-spin 60s linear infinite; transform-origin: center; }
.hp-orbit__lines path { stroke: rgba(141, 192, 255, .4); stroke-dasharray: 3 5; animation: hp-dash 1.5s linear infinite; }
@keyframes hp-spin { to { transform: rotate(360deg); } }
@keyframes hp-dash { to { stroke-dashoffset: -16; } }
.hp-orbit__pulse { position: absolute; inset: 34%; border-radius: 50%; border: 2px solid rgba(98, 166, 255, .6); animation: hp-pulse-ring 3s var(--ease) infinite; }
@keyframes hp-pulse-ring { from { transform: scale(1); opacity: .9; } to { transform: scale(2.3); opacity: 0; } }
.hp-orbit__core {
    position: absolute; inset: 34%; display: grid; place-content: center; text-align: center; border-radius: 50%;
    background: linear-gradient(140deg, var(--c-primary), #0d47a1); color: #fff;
    box-shadow: 0 0 0 10px rgba(23, 105, 224, .18), 0 0 0 22px rgba(23, 105, 224, .08), 0 20px 50px -10px rgba(23, 105, 224, .8);
}
.hp-orbit__core span { font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #cfe2ff; }
.hp-orbit__core strong { font: 800 1.7rem/1 var(--f-display); }
.hp-orbit__node {
    position: absolute; display: inline-flex; align-items: center; gap: .45rem; padding: .5rem .8rem; transform: translate(-50%, -50%);
    border-radius: 999px; background: rgba(255, 255, 255, .96); color: #0f1f36; font-size: .8rem; font-weight: 600; white-space: nowrap;
    box-shadow: 0 12px 30px -12px rgba(0, 0, 0, .6); transition: transform .4s var(--ease-out);
}
.hp-orbit__node:hover { transform: translate(-50%, -50%) scale(1.08); }
.hp-orbit__node svg { width: 1rem; height: 1rem; fill: none; stroke: var(--c-primary); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hp-orbit__node--top { left: 50%; top: 12.5%; }
.hp-orbit__node--right { left: 85%; top: 50%; }
.hp-orbit__node--bottom { left: 50%; top: 87.5%; }
.hp-orbit__node--left { left: 15%; top: 50%; }

.hp-blocks { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: auto; padding-top: 1rem; }
.hp-blocks i {
    padding: .55rem .9rem; border-radius: 12px; font-style: normal; font-size: .85rem; font-weight: 600;
    background: var(--c-primary-soft); color: var(--c-accent); border: 1px solid transparent;
}
.hp-blocks i.add { border: 1px dashed var(--c-accent); background: transparent; }
.js .hp-tile--modular .hp-blocks i { opacity: 0; transform: translateY(14px) scale(.9); transition: opacity .5s var(--ease-out), transform .6s var(--ease-out); }
.js .hp-tile--modular.is-visible .hp-blocks i { opacity: 1; transform: none; }
.hp-tile--modular .hp-blocks i:nth-child(2) { transition-delay: .08s; } .hp-tile--modular .hp-blocks i:nth-child(3) { transition-delay: .16s; }
.hp-tile--modular .hp-blocks i:nth-child(4) { transition-delay: .24s; } .hp-tile--modular .hp-blocks i:nth-child(5) { transition-delay: .32s; }
.hp-tile--modular .hp-blocks i:nth-child(6) { transition-delay: .4s; }
.hp-tile--modular:hover .hp-blocks i:not(.add) { background: var(--c-primary); color: #fff; }

.hp-tile__status { display: inline-flex; align-items: center; gap: .35rem; width: fit-content; margin-top: auto; padding: .35rem .7rem; border-radius: 999px; background: rgba(22, 163, 74, .12); color: var(--c-ok); font-size: .78rem; font-weight: 600; }
.hp-tile__status svg { width: .9rem; height: .9rem; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.hp-tile--sdi:hover .hp-tile__icon svg { animation: hp-fly .9s var(--ease-out); }
@keyframes hp-fly { 40% { transform: translate(6px, -6px); opacity: 0; } 41% { transform: translate(-6px, 6px); opacity: 0; } 100% { transform: none; opacity: 1; } }
.hp-tile__sync { display: flex; gap: .35rem; margin-top: auto; }
.hp-tile__sync i { width: .55rem; height: .55rem; border-radius: 50%; background: var(--c-accent); animation: hp-blink 1.2s ease-in-out infinite; }
.hp-tile__sync i:nth-child(2) { animation-delay: .2s; } .hp-tile__sync i:nth-child(3) { animation-delay: .4s; }

/* ---------- Settori ---------- */
.hp-sectors { background: var(--c-bg-soft); transition: background-color .4s; }
.hp-sectors__grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; }
.hp-sector { padding: 1.6rem 1.4rem; border-radius: var(--radius-m); background: var(--c-surface); border: 1px solid var(--c-line); transition: transform .5s var(--ease-out), box-shadow .3s, background-color .4s; }
.hp-sector:hover { box-shadow: var(--shadow-m); }
.hp-sector > span { display: grid; place-items: center; width: 2.6rem; height: 2.6rem; margin-bottom: 1.1rem; border-radius: 12px; background: var(--c-night); color: #8dc0ff; transition: transform .5s var(--ease-out); }
.hp-sector:hover > span { transform: translateZ(25px); }
.hp-sector svg { width: 1.3rem; height: 1.3rem; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.hp-sector h3 { font-size: 1.02rem; margin-bottom: .45rem; }
.hp-sector p { font-size: .88rem; color: var(--c-muted); }

/* ---------- Azienda ---------- */
.hp-company__layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
.hp-company__visual { position: relative; padding-bottom: 2.5rem; }
.hp-company__year {
    position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; aspect-ratio: 4 / 4.4;
    padding: clamp(1.75rem, 4vw, 2.75rem); border-radius: var(--radius-l); color: #b9c8dd;
    background: radial-gradient(90% 70% at 100% 0%, #2563c4 0%, transparent 60%), linear-gradient(160deg, #173e70, var(--c-night-2));
}
.hp-company__year::before {
    content: ""; position: absolute; inset: 0;
    background-image: linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px);
    background-size: 40px 40px; background-position: 0 calc(var(--sy, 0) * 1px);
    mask-image: linear-gradient(0deg, transparent, #000); -webkit-mask-image: linear-gradient(0deg, transparent, #000);
}
.hp-company__year small { position: relative; font-size: 1rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #8dc0ff; }
.hp-company__year strong { position: relative; font: 800 clamp(5rem, 11vw, 8rem)/.95 var(--f-display); letter-spacing: -.05em; color: #fff; }
.hp-company__year span { position: relative; margin-top: 1rem; font-size: 1.05rem; }
.hp-company__badge {
    position: absolute; right: -1rem; bottom: 0; display: flex; align-items: center; gap: .9rem; max-width: 17rem;
    padding: 1.1rem 1.3rem; border-radius: var(--radius-m); background: var(--c-surface); border: 1px solid var(--c-line); box-shadow: var(--shadow-m);
}
.hp-company__badge strong { font: 800 2rem/1 var(--f-display); color: var(--c-accent); }
.hp-company__badge span { font-size: .85rem; line-height: 1.35; color: var(--c-text); }

.hp-company__content h2 { font-size: clamp(2rem, 4vw, 2.9rem); font-weight: 800; letter-spacing: -.03em; }
.hp-company__intro { margin-top: 1.1rem; font-size: 1.1rem; color: var(--c-muted); }
.hp-principles { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem 2rem; margin-top: 2.25rem; }
.hp-principles li { display: flex; gap: 1rem; }
.hp-principles li > span { flex: none; font: 800 .9rem/1 var(--f-display); color: var(--c-accent); padding-top: .2rem; }
.hp-principles strong { display: block; font-family: var(--f-display); color: var(--c-ink); line-height: 1.3; }
.hp-principles p { margin-top: .35rem; font-size: .9rem; color: var(--c-muted); }

/* ---------- Metodo ---------- */
.hp-method { background: linear-gradient(180deg, var(--c-bg), var(--c-bg-soft)); }
.hp-steps { position: relative; display: grid; grid-template-columns: repeat(var(--cols, 4), 1fr); gap: 1.25rem; }
.hp-steps::before, .hp-steps::after { content: ""; position: absolute; left: calc(50% / var(--cols, 4)); right: calc(50% / var(--cols, 4)); top: 2rem; height: 2px; border-radius: 2px; }
.hp-steps::before { background: var(--c-line); }
.hp-steps::after { background: linear-gradient(90deg, var(--c-primary), var(--c-sky)); transform-origin: left; transform: scaleX(var(--p, 0)); transition: transform .15s linear; }
.hp-steps li { position: relative; z-index: 1; text-align: center; padding: 0 .75rem; }
.hp-steps__n {
    display: grid; place-items: center; width: 4rem; height: 4rem; margin: 0 auto 1.4rem; border-radius: 50%;
    background: var(--c-surface); border: 2px solid var(--c-line); font: 800 1.05rem/1 var(--f-display); color: var(--c-accent);
    box-shadow: 0 0 0 8px var(--c-bg-soft); transition: background .4s, color .4s, border-color .4s, transform .4s var(--ease-out);
}
.hp-steps li.is-on .hp-steps__n { background: var(--c-primary); color: #fff; border-color: var(--c-primary); transform: scale(1.06); box-shadow: 0 0 0 8px var(--c-bg-soft), 0 12px 26px -8px rgba(23, 105, 224, .7); }
.hp-steps h3 { font-size: 1.1rem; margin-bottom: .5rem; }
.hp-steps p { font-size: .92rem; color: var(--c-muted); }


/* ---------- CTA ---------- */
.hp-cta { padding: 0 0 var(--section-y); }
.hp-cta__box {
    position: relative; overflow: hidden; overflow: clip; isolation: isolate;
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2rem;
    padding: clamp(2.25rem, 6vw, 4rem); border-radius: 28px; color: #c8d8ee;
    background: linear-gradient(120deg, var(--c-primary-dark) 0%, var(--c-primary) 45%, #2b86e8 100%);
    box-shadow: 0 30px 60px -30px rgba(23, 105, 224, .8);
}
.hp-cta__glow { position: absolute; z-index: -1; width: 30rem; height: 30rem; right: -8rem; top: -14rem; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, .28), transparent 65%); animation: hp-glow-move 9s ease-in-out infinite alternate; }
@keyframes hp-glow-move { to { transform: translate(-12rem, 8rem) scale(1.2); } }
.hp-cta__box::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(rgba(255, 255, 255, .14) 1px, transparent 1px); background-size: 22px 22px; mask-image: linear-gradient(90deg, transparent 30%, #000); -webkit-mask-image: linear-gradient(90deg, transparent 30%, #000); }
.hp-cta__content { max-width: 38rem; }
.hp-cta .hp-eyebrow--light { color: #dbeaff; }
.hp-cta h2 { color: #fff; font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 800; }
.hp-cta__content > p:last-child { margin-top: 1rem; font-size: 1.08rem; color: #e1ecfb; }
.hp-cta__actions { display: flex; flex-wrap: wrap; gap: .85rem; }

/* ---------- Footer ---------- */
.hp-footer { padding: clamp(3.5rem, 7vw, 5rem) 0 2rem; background: var(--c-bg); border-top: 1px solid var(--c-line); font-size: .92rem; transition: background-color .4s; }
.hp-footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2.5rem; }
.hp-logo-plate { display: inline-block; margin-bottom: 1.25rem; border-radius: 12px; }
.hp-logo-plate img { width: auto; height: 50px; }
.hp-footer__brand p { max-width: 20rem; margin-bottom: 1.5rem; color: var(--c-muted); }
.hp-footer__col h2 { margin-bottom: 1.1rem; font: 700 .78rem/1 var(--f-body); letter-spacing: .12em; text-transform: uppercase; color: var(--c-ink); }
.hp-footer__col ul { display: grid; gap: .6rem; }
.hp-footer__col a { color: var(--c-muted); transition: color .2s; }
.hp-footer__col a:hover { color: var(--c-accent); }
.hp-footer__col address { display: grid; gap: .6rem; margin-bottom: 1.25rem; }
.hp-footer__social { display: flex; gap: .6rem; margin-bottom: 1.25rem; }
.hp-footer__social a { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 12px; border: 1px solid var(--c-line); color: var(--c-ink); transition: color .2s, border-color .2s, transform .2s; }
.hp-footer__social a:hover, .hp-footer__social a:focus-visible { color: var(--c-accent); border-color: var(--c-accent); transform: translateY(-2px); }
.hp-footer__social svg { width: 1.25rem; height: 1.25rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hp-footer__bottom {
    display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
    margin-top: 3.5rem; padding-top: 1.5rem; border-top: 1px solid var(--c-line); font-size: .85rem; color: var(--c-muted);
}
.hp-footer__bottom ul { display: flex; gap: 1.5rem; }

/* Segnaposto per dati ancora da fornire (visibili solo in anteprima) */
.hp-todo { display: inline-block; padding: .05rem .45rem; border: 1px dashed #f0b429; border-radius: 6px; background: rgba(240, 180, 41, .12); color: #a87400; font-size: .85em; }

/* ---------- Tema scuro: dettagli ---------- */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .hp-logo,
    :root:not([data-theme="light"]) .hp-logo-plate { background: #fff; padding: .3rem .7rem; }
    :root:not([data-theme="light"]) .hp-theme__sun { transform: translateY(-150%) rotate(60deg); opacity: 0; }
    :root:not([data-theme="light"]) .hp-theme__moon { transform: none; opacity: 1; }
    :root:not([data-theme="light"]) .hp-todo { color: #f5c451; }
}
:root[data-theme="dark"] .hp-logo, :root[data-theme="dark"] .hp-logo-plate { background: #fff; padding: .3rem .7rem; }
:root[data-theme="dark"] .hp-theme__sun { transform: translateY(-150%) rotate(60deg); opacity: 0; }
:root[data-theme="dark"] .hp-theme__moon { transform: none; opacity: 1; }
:root[data-theme="dark"] .hp-todo { color: #f5c451; }

/* ---------- Animazioni di ingresso ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity .5s var(--ease-out), transform .5s var(--ease-out); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }
.js [data-reveal-delay="1"] { transition-delay: .05s; }
.js [data-reveal-delay="2"] { transition-delay: .1s; }
.js [data-reveal-delay="3"] { transition-delay: .15s; }
.js [data-reveal-delay="4"] { transition-delay: .2s; }
.js .hp-tile[data-reveal].is-visible, .js .hp-sector[data-reveal].is-visible { transition-delay: 0s; }

/* ---------- Responsive ---------- */
@media (max-width: 68rem) {
    .hp-cards--4 { grid-template-columns: repeat(2, 1fr); }
    .hp-sectors__grid { grid-template-columns: repeat(3, 1fr); }
    .hp-footer__top { grid-template-columns: 1fr 1fr; }
    .hp-bento { grid-template-columns: repeat(2, 1fr); }
    .hp-tile--eco, .hp-tile--modular, .hp-tile--ai { grid-column: 1 / 3; grid-row: auto; }
    .hp-tile--sdi, .hp-tile--mobile, .hp-tile--year, .hp-tile--direct { grid-column: auto; }
}

@media (max-width: 62rem) {
    .hp-burger {
        display: inline-flex; flex-direction: column; justify-content: center; gap: 6px; width: 2.75rem; height: 2.75rem; padding: 0 .7rem;
        border: 1px solid var(--c-line); border-radius: 12px; background: var(--c-surface); cursor: pointer;
    }
    .hp-burger span[aria-hidden] { display: block; height: 2px; border-radius: 2px; background: var(--c-ink); transition: transform .3s var(--ease); }
    .hp-burger[aria-expanded="true"] span[aria-hidden]:nth-of-type(2) { transform: translateY(4px) rotate(45deg); }
    .hp-burger[aria-expanded="true"] span[aria-hidden]:nth-of-type(3) { transform: translateY(-4px) rotate(-45deg); }

    .hp-nav {
        position: fixed; inset: 5rem 0 auto; flex-direction: column; align-items: stretch; gap: 1rem; margin: 0;
        max-height: calc(100dvh - 5rem); overflow-y: auto; padding: 1rem var(--gutter) 1.5rem;
        background: var(--c-surface); border-bottom: 1px solid var(--c-line); box-shadow: 0 20px 40px -20px rgba(16, 38, 66, .35);
        opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .25s, transform .35s var(--ease-out), visibility .25s;
    }
    .hp-header.is-scrolled .hp-nav { top: 4.1rem; max-height: calc(100dvh - 4.1rem); }
    .hp-nav.is-open { opacity: 1; visibility: visible; transform: none; }
    .hp-nav__list { flex-direction: column; align-items: stretch; }
    .hp-nav.is-open .hp-nav__item { animation: hp-row-in .45s var(--ease-out) both; }
    .hp-nav.is-open .hp-nav__item:nth-child(2) { animation-delay: .04s; } .hp-nav.is-open .hp-nav__item:nth-child(3) { animation-delay: .08s; }
    .hp-nav.is-open .hp-nav__item:nth-child(4) { animation-delay: .12s; } .hp-nav.is-open .hp-nav__item:nth-child(5) { animation-delay: .16s; }
    .hp-nav__link { justify-content: space-between; padding: .9rem .5rem; border-radius: 10px; font-size: 1.05rem; }
    .hp-nav__link svg { display: none; }
    .hp-mega { display: none; }
    .hp-nav .hp-btn { align-self: stretch; padding-block: .9rem; }

    .hp-hero__layout, .hp-company__layout { grid-template-columns: 1fr; }
    .hp-hero__visual { max-width: 36rem; margin-inline: auto; width: 100%; }
    .hp-scroll-cue { display: none; }
    .hp-cards { grid-template-columns: repeat(2, 1fr); }
    .hp-stats__grid { grid-template-columns: repeat(2, 1fr); }
    .hp-stat:nth-child(3) { border-left: 0; }
    .hp-stat:nth-child(n+3) { border-top: 1px solid var(--c-line); }
    .hp-steps { grid-template-columns: repeat(2, 1fr); row-gap: 2.5rem; }
    .hp-steps::before, .hp-steps::after { display: none; }
    .hp-company__visual { max-width: 30rem; }

    /* storytelling su schermi piccoli: pannello fisso in alto, testi che scorrono sotto */
    .hp-story__layout { grid-template-columns: 1fr; gap: 0; }
    .hp-story__stage { top: 4.6rem; z-index: 2; height: auto; min-height: 0; padding: .75rem 0; background: linear-gradient(180deg, var(--c-night-2) 85%, transparent); }
    .hp-story__panel { padding: 1rem; background: #0f2440; backdrop-filter: none; }
    .hp-story__track { margin-bottom: 1rem; }
    .hp-story__track li[data-story-node] span { width: 2rem; height: 2rem; font-size: .78rem; }
    .hp-story__track li[data-story-node] small { display: none; }
    .hp-story__line { top: 1rem; }
    .hp-story__screens { height: 18.75rem; }
    .hp-screen { padding: 1rem; gap: .55rem; }
    .hp-screen__head { padding-bottom: .6rem; }
    .hp-screen__lines li, .hp-screen__checks li { padding-block: .42rem; }
    .hp-story__steps { padding-bottom: 4rem; }
    .hp-story__step { min-height: 29vh; justify-content: flex-start; padding: 1rem 0 0; }
    .hp-story__step h3 { font-size: 1.4rem; }
    .hp-story__step h3 + p { margin-top: .5rem; font-size: 1rem; }
    .hp-story__num, .hp-story__app { margin-bottom: .5rem; }
}

@media (max-width: 40rem) {
    .hp-header__inner { height: 4.25rem; }
    .hp-nav { top: 4.25rem; max-height: calc(100dvh - 4.25rem); }
    .hp-logo img { height: 36px; }
    .hp-theme { width: 2.75rem; height: 2.75rem; }
    .hp-hero__actions .hp-btn { flex: 1 1 100%; }
    .hp-hero__visual { padding: .5rem 0 3rem; }
    .hp-app { transform: none; }
    .hp-app__body { grid-template-columns: 1fr; }
    .hp-app__side { flex-direction: row; overflow-x: auto; padding: .5rem; scrollbar-width: none; }
    .hp-app__side button { flex: none; }
    .hp-app__side button.is-active::before { display: none; }
    .hp-phone { right: -.25rem; width: 8rem; }
    .hp-float { left: -.25rem; bottom: .25rem; }
    .hp-tabs__list { border-radius: var(--radius-m); width: 100%; }
    .hp-tabs__tab { flex: 1 1 auto; justify-content: center; }
    .hp-cards, .hp-cards--4 { grid-template-columns: 1fr; }
    .hp-sectors__grid { grid-template-columns: 1fr 1fr; }
    .hp-principles { grid-template-columns: 1fr; }
    .hp-steps { grid-template-columns: 1fr; }
    .hp-bento { grid-template-columns: 1fr; }
    .hp-tile--eco, .hp-tile--modular, .hp-tile--ai { grid-column: auto; }
    .hp-tile--ai { flex-direction: column; align-items: flex-start; }
    .hp-orbit__node { font-size: .7rem; padding: .4rem .65rem; }
    .hp-orbit__node svg { display: none; }
    .hp-company__badge { right: 0; }
    .hp-cta__actions .hp-btn { flex: 1 1 100%; }
    .hp-footer__top { grid-template-columns: 1fr; }
    .hp-screen__grid { gap: .5rem; }
    .hp-screen__grid > div { padding: .55rem .7rem; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
    .js [data-reveal] { opacity: 1; transform: none; }
    .js [data-split].is-split .hp-w > span { transform: none; }
    .js .hp-tile--modular .hp-blocks i { opacity: 1; transform: none; }
    .hp-transition { display: none; }
}

/* =========================================================
   PAGINE INTERNE E SEZIONI AGGIUNTE
   ========================================================= */

.hp-nav__link.is-current { color: var(--c-accent); }
.hp-mega__col > a[aria-current="page"] { background: var(--c-primary-soft); }

/* ---------- In evidenza: i 4 settori principali (home) ---------- */
.hp-hero__focus { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 2.25rem; padding-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, .1); }
.hp-hero__focus a {
    display: inline-flex; align-items: center; gap: .45rem; padding: .5rem .85rem; border-radius: 999px;
    background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14); color: #dbe7f7; font-size: .85rem; font-weight: 600;
    transition: background-color .25s, border-color .25s, transform .3s var(--ease-out);
}
.hp-hero__focus a:hover { background: rgba(23, 105, 224, .35); border-color: rgba(141, 192, 255, .5); transform: translateY(-2px); }
.hp-hero__focus svg { width: 1rem; height: 1rem; fill: none; stroke: #8dc0ff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.hp-focus { position: relative; z-index: 3; margin-top: -9.5rem; }
.hp-hero--home { padding-bottom: clamp(9rem, 13vw, 11.5rem); }
.hp-focus__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: .5rem 2rem; margin-bottom: 1.25rem; color: #dbe7f7; }
.hp-focus__head h2 { color: #fff; font-size: clamp(1.4rem, 2.6vw, 1.9rem); font-weight: 800; }
.hp-focus__head p { color: #a9bbd3; font-size: .95rem; }
.hp-focus__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.hp-focus__card {
    position: relative; display: flex; flex-direction: column; gap: .55rem; min-height: 21rem; padding: 1.5rem;
    border-radius: var(--radius-l); background: var(--c-surface); border: 1px solid var(--c-line); box-shadow: var(--shadow-m);
    transition: translate .5s var(--ease-out), box-shadow .35s, border-color .35s, background-color .4s, opacity .9s var(--ease-out), transform .9s var(--ease-out);
}
.hp-focus__card:hover { translate: 0 -6px; box-shadow: 0 24px 50px -20px rgba(16, 38, 66, .35); }
.hp-focus__top { display: flex; align-items: center; justify-content: space-between; }
.hp-focus__icon { display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 14px; background: linear-gradient(140deg, var(--c-primary), var(--c-sky)); color: #fff; box-shadow: 0 10px 22px -10px rgba(23, 105, 224, .8); }
.hp-focus__icon svg { width: 1.45rem; height: 1.45rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hp-focus__num { font: 800 .8rem/1 var(--f-display); color: var(--c-muted); letter-spacing: .08em; }
.hp-focus__card h3 { margin-top: .4rem; font-size: 1.22rem; font-weight: 800; }
.hp-focus__card > p { font-size: .9rem; color: var(--c-muted); }
.hp-focus__demo { margin-top: auto; padding: .8rem; border-radius: 14px; background: var(--c-bg-soft); border: 1px solid var(--c-line); font-size: .76rem; color: var(--c-text); }
.hp-focus__card .hp-link-arrow { margin-top: .4rem; font-size: .86rem; }
.hp-focus__card .hp-link-arrow::before { content: ""; position: absolute; inset: 0; border-radius: inherit; }

/* demo: logistica */
.hp-fd-route { display: flex; align-items: center; justify-content: space-between; position: relative; padding: .3rem .1rem .2rem; }
.hp-fd-route::before { content: ""; position: absolute; left: .7rem; right: .7rem; top: 50%; height: 2px; margin-top: -1px; background: repeating-linear-gradient(90deg, var(--c-line) 0 5px, transparent 5px 10px); }
.hp-fd-route b { position: relative; z-index: 1; display: grid; place-items: center; width: 1.4rem; height: 1.4rem; border-radius: 50%; background: var(--c-surface); border: 2px solid var(--c-accent); }
.hp-fd-route b.on { background: var(--c-accent); }
.hp-fd-truck { position: absolute; z-index: 2; top: 50%; left: .5rem; width: 1.6rem; height: 1.6rem; margin-top: -.8rem; display: grid; place-items: center; border-radius: 8px; background: var(--c-ok); color: #fff; animation: hp-truck 5s var(--ease) infinite; }
.hp-fd-truck svg { width: .95rem; height: .95rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@keyframes hp-truck { 0% { left: .4rem; } 45%, 55% { left: calc(50% - .8rem); } 100% { left: calc(100% - 2rem); } }
.hp-fd-labels { display: flex; justify-content: space-between; margin-top: .45rem; font-size: .68rem; color: var(--c-muted); }

/* demo: banca */
.hp-fd-tx { display: grid; gap: .35rem; }
.hp-fd-tx li { display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: .5rem; row-gap: .15rem; padding: .4rem .55rem; border-radius: 9px; background: var(--c-surface); border: 1px solid var(--c-line); }
.hp-fd-tx li span { grid-row: 1 / 3; display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.hp-fd-tx small { color: var(--c-muted); font-size: .64rem; }
.hp-fd-tx b { font-variant-numeric: tabular-nums; white-space: nowrap; justify-self: end; }
.hp-fd-tx .in { color: var(--c-ok); }
.hp-fd-tx .out { color: #e05252; }
.hp-fd-tx em { justify-self: end; font-style: normal; font-size: .62rem; font-weight: 700; padding: .12rem .4rem; border-radius: 999px; background: rgba(22, 163, 74, .12); color: var(--c-ok); white-space: nowrap; }
.js .hp-focus__card.is-visible .hp-fd-tx li { animation: hp-row-in .5s var(--ease-out) both; }
.js .hp-focus__card.is-visible .hp-fd-tx li:nth-child(2) { animation-delay: .15s; }
.js .hp-focus__card.is-visible .hp-fd-tx li:nth-child(3) { animation-delay: .3s; }

/* demo: fatturazione */
.hp-fd-sdi { display: flex; align-items: center; gap: .6rem; }
.hp-fd-sdi > span:first-child, .hp-fd-sdi > span:last-child { flex: none; display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 10px; }
.hp-fd-sdi > span:first-child { background: var(--c-primary-soft); color: var(--c-accent); }
.hp-fd-sdi > span:first-child svg { width: 1.2rem; height: 1.2rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hp-fd-sdi > span:last-child { background: var(--c-night); color: #fff; font: 800 .75rem/1 var(--f-display); }
.hp-fd-sdi .hp-screen__wire { flex: 1; }
.hp-fd-sdi .hp-screen__wire i { animation: hp-travel 1.8s .2s var(--ease) infinite; }
.hp-fd-status { display: flex; justify-content: space-between; margin-top: .6rem; }
.hp-fd-status span { display: inline-flex; align-items: center; gap: .3rem; font-weight: 600; color: var(--c-ok); }
.hp-fd-status svg { width: .85rem; height: .85rem; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* demo: e-commerce */
.hp-fd-shops { display: flex; flex-wrap: wrap; gap: .35rem; }
.hp-fd-shops span { padding: .3rem .55rem; border-radius: 999px; background: var(--c-surface); border: 1px solid var(--c-line); font-weight: 600; font-size: .72rem; color: var(--c-ink); }
.hp-fd-shops span.more { color: var(--c-accent); border-style: dashed; }
.hp-fd-sync { display: flex; align-items: center; gap: .5rem; margin-top: .6rem; font-weight: 600; color: var(--c-ink); }
.hp-fd-sync i { position: relative; flex: 1; height: 2px; background: var(--c-line); overflow: hidden; }
.hp-fd-sync i::after { content: ""; position: absolute; inset: 0; width: 40%; background: linear-gradient(90deg, transparent, var(--c-accent), transparent); animation: hp-sync 1.6s linear infinite; }
@keyframes hp-sync { from { transform: translateX(-100%); } to { transform: translateX(250%); } }
.hp-fd-sync b { padding: .25rem .5rem; border-radius: 8px; background: var(--c-night); color: #fff; font-size: .68rem; }

.hp-focus + .hp-stats { margin-top: 2.5rem; }
.hp-focus + .hp-stats .hp-stats__grid { box-shadow: var(--shadow-s); }

/* ---------- Apertura delle pagine interne ---------- */
.hp-hero--page { padding: clamp(1.5rem, 3vw, 2.25rem) 0 clamp(4rem, 8vw, 6rem); }
.hp-hero--page h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); }
.hp-crumbs { margin-bottom: clamp(2rem, 5vw, 3.5rem); font-size: .85rem; }
.hp-crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; color: #8da3c0; }
.hp-crumbs li { display: inline-flex; align-items: center; gap: .4rem; }
.hp-crumbs li + li::before { content: "/"; opacity: .5; }
.hp-crumbs a { color: #b9c8dd; transition: color .2s; }
.hp-crumbs a:hover { color: #fff; }
.hp-crumbs [aria-current] { color: #fff; font-weight: 600; }
.hp-tech { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, .1); }
.hp-tech li { padding: .35rem .75rem; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .05); font-size: .8rem; color: #b9c8dd; }

/* visual prodotto */
.hp-pv { display: grid; place-items: center; min-height: 24rem; padding: 1rem 0 2rem; }
.hp-mock {
    position: relative; width: min(100%, 30rem); padding: 1.4rem; border-radius: 20px; background: #fff; color: #33445c;
    box-shadow: var(--shadow-l), 0 0 0 1px rgba(255, 255, 255, .12); transition: transform .6s var(--ease-out);
}
.hp-mock svg { width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.hp-mock__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-bottom: .9rem; margin-bottom: 1.1rem; border-bottom: 1px solid #e3e9f2; }
.hp-mock__head strong { font: 700 1rem/1.25 var(--f-display); color: #0f1f36; text-align: right; }
.hp-pv__path { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; text-align: center; font-size: .78rem; font-weight: 600; color: #0f1f36; }
.hp-pv__path li { display: flex; flex-direction: column; align-items: center; gap: .45rem; }
.hp-pv__path span { display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 14px; background: #e8f1fd; color: #1769e0; animation: hp-pv-pop 4s var(--ease) infinite; }
.hp-pv__path li:nth-child(2) span { animation-delay: 1s; } .hp-pv__path li:nth-child(3) span { animation-delay: 2s; } .hp-pv__path li:nth-child(4) span { animation-delay: 3s; }
.hp-pv__path svg { width: 1.3rem; height: 1.3rem; }
@keyframes hp-pv-pop { 0%, 20%, 100% { background: #e8f1fd; color: #1769e0; transform: none; } 8% { background: #1769e0; color: #fff; transform: translateY(-4px); } }
.hp-pv__wire { position: relative; height: 2px; margin: 1.3rem 1.5rem .3rem; background: repeating-linear-gradient(90deg, #b9d3f7 0 6px, transparent 6px 12px); }
.hp-pv__wire i { position: absolute; top: 50%; width: .7rem; height: .7rem; margin-top: -.35rem; border-radius: 50%; background: #1769e0; box-shadow: 0 0 12px #62a6ff; animation: hp-travel 4s var(--ease) infinite; }
.hp-pv__progress { display: grid; gap: .9rem; }
.hp-pv__progress li { display: grid; gap: .4rem; }
.hp-pv__progress span { display: flex; align-items: center; gap: .5rem; font-size: .85rem; font-weight: 600; color: #0f1f36; }
.hp-pv__progress span svg { color: #1769e0; }
.hp-pv__progress i { position: relative; height: .5rem; border-radius: 999px; background: #e3e9f2; overflow: hidden; }
.hp-pv__progress i::after { content: ""; position: absolute; inset: 0; width: var(--w); border-radius: inherit; background: linear-gradient(90deg, #1769e0, #5aa2ff); animation: hp-fill 1.6s .4s var(--ease-out) both; }
.hp-pv__progress i.ok::after { background: linear-gradient(90deg, var(--c-ok), #4ade80); }
@keyframes hp-fill { from { width: 0; } }
.hp-pv__phone {
    width: 14rem; padding: 1.3rem 1rem 1.2rem; display: flex; flex-direction: column; gap: .6rem;
    background: linear-gradient(160deg, #183a66, var(--c-night-2)); border: 4px solid #2a4a74; border-radius: 34px; box-shadow: var(--shadow-l); color: #fff; transition: transform .6s var(--ease-out);
}
.hp-pv__phone .hp-phone__title { font-size: 1.15rem; }
.hp-pv__field { display: flex; flex-direction: column; padding: .55rem .7rem; border-radius: 10px; background: rgba(255, 255, 255, .08); font-size: .82rem; font-weight: 600; }
.hp-pv__field small { font-size: .66rem; font-weight: 500; color: #8da3c0; }
.hp-pv__line { display: flex; justify-content: space-between; padding: .5rem .7rem; border-radius: 10px; background: rgba(255, 255, 255, .05); font-size: .76rem; }
.hp-pv__line b { font-weight: 500; } .hp-pv__line i { font-style: normal; color: #8dc0ff; font-weight: 600; }
.hp-pv__phone .hp-phone__btn { padding: .6rem; font-size: .8rem; }
.hp-pv--mobile_app, .hp-pv--production, .hp-pv--distribution { position: relative; }
.hp-pv__chip { position: absolute; }
.hp-pv__chip--a { left: 0; top: 18%; bottom: auto; z-index: 2; }
.hp-pv__chip--b { right: 0; bottom: 12%; left: auto; top: auto; z-index: 2; }
.hp-pv--mobile_app .hp-pv__chip--b { right: -.5rem; }
.hp-orbit--hero { width: min(100%, 27rem); }

/* a chi è rivolta */
.hp-audience__inner { max-width: 54rem; margin-inline: auto; text-align: center; }
.hp-audience .hp-eyebrow { justify-content: center; }
.hp-audience h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 800; letter-spacing: -.03em; }
.hp-audience__inner > p:last-child { margin-top: 1.25rem; font-size: 1.12rem; color: var(--c-muted); }

/* architettura modulare */
.hp-modular { background: var(--c-bg-soft); }
.hp-modular__grid { display: grid; grid-template-columns: 1.1fr 1fr 1fr 1fr; gap: 1.25rem; align-items: stretch; }
.hp-modular__core {
    position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; gap: .2rem; min-height: 15rem;
    padding: 1.75rem; border-radius: var(--radius-l); color: #b9c8dd;
    background: radial-gradient(90% 80% at 100% 0%, #2563c4, transparent 60%), linear-gradient(160deg, #173e70, var(--c-night-2));
}
.hp-modular__core small { font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #8dc0ff; }
.hp-modular__core strong { font: 800 1.8rem/1.1 var(--f-display); color: #fff; }
.hp-modular__ring { position: absolute; right: -3rem; top: -3rem; width: 11rem; height: 11rem; border-radius: 50%; border: 2px solid rgba(141, 192, 255, .35); animation: hp-pulse-ring 3.5s var(--ease) infinite; }

/* aree funzionali */
.hp-feature { gap: .9rem; }
.hp-feature__n { display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 12px; background: var(--c-primary-soft); color: var(--c-accent); font: 800 .9rem/1 var(--f-display); transition: background .35s, color .35s; }
.hp-feature:hover .hp-feature__n { background: linear-gradient(140deg, var(--c-primary), var(--c-sky)); color: #fff; }
.hp-feature h3 { font-size: 1.08rem; line-height: 1.35; }

/* fascia AI */
.hp-ai-band { padding-bottom: var(--section-y); }
.hp-ai-band__tile { padding: clamp(1.75rem, 4vw, 2.75rem); }
.hp-ai-band__tile h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); font-weight: 800; }
.hp-ai-band__tile .hp-eyebrow { margin-bottom: .2rem; }

/* vantaggi */
.hp-benefits {
    position: relative; padding: var(--section-y) 0; color: #b9c8dd;
    background: radial-gradient(70% 60% at 100% 0%, #1d4f92 0%, transparent 70%), linear-gradient(180deg, var(--c-night), var(--c-night-2));
}
.hp-benefits__layout { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hp-benefits h2 { color: #fff; font-size: clamp(1.9rem, 3.8vw, 2.8rem); font-weight: 800; letter-spacing: -.03em; }
.hp-benefits__lead { margin-top: 1.1rem; font-size: 1.08rem; color: #9fb2cc; }
.hp-benefits__list { display: grid; gap: .8rem; }
.hp-benefits__list li {
    display: flex; align-items: center; gap: 1rem; padding: 1.1rem 1.25rem; border-radius: var(--radius-m);
    background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); color: #e1ecfb; font-weight: 500;
}
.hp-benefits__list li > span { flex: none; display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--c-primary); color: #fff; }
.hp-benefits__list svg { width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* altre soluzioni */
.hp-related__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 2rem; }
.hp-related h2 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); font-weight: 800; }
.hp-steps--plain::before, .hp-steps--plain::after { display: none; }

.hp-media-placeholder { display: grid; place-items: center; gap: .8rem; min-height: 18rem; border: 2px dashed var(--c-line); border-radius: var(--radius-l); text-align: center; color: var(--c-muted); }
.hp-media-placeholder > span { font: 300 3rem/1 var(--f-display); color: var(--c-accent); }
.hp-media-placeholder strong { display: block; color: var(--c-ink); }

/* ---------- Pagina contatti ---------- */
.hp-hero--contact { padding-bottom: clamp(8rem, 14vw, 11rem); }
.hp-contact-hero { max-width: 44rem; }
.hp-contact { position: relative; z-index: 2; margin-top: clamp(-7rem, -10vw, -5rem); padding-bottom: var(--section-y); }
.hp-contact__layout { display: grid; grid-template-columns: 1.5fr 1fr; gap: 1.5rem; align-items: start; }
.hp-contact__form, .hp-contact__card { border-radius: var(--radius-l); background: var(--c-surface); border: 1px solid var(--c-line); box-shadow: var(--shadow-m); }
.hp-contact__form { padding: clamp(1.5rem, 4vw, 2.5rem); }
.hp-contact__form h2 { font-size: 1.6rem; font-weight: 800; }
.hp-contact__intro { margin-top: .4rem; margin-bottom: 1.75rem; font-size: .9rem; color: var(--c-muted); }
.hp-form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.hp-field { display: flex; flex-direction: column; gap: .4rem; }
.hp-field--full { grid-column: 1 / -1; }
.hp-field label { font-size: .88rem; font-weight: 600; color: var(--c-ink); }
.hp-field__optional { font-weight: 400; color: var(--c-muted); }
.hp-field input, .hp-field select, .hp-field textarea {
    width: 100%; padding: .85rem 1rem; border-radius: 12px; border: 1px solid var(--c-line); background: var(--c-bg-soft);
    font: 400 1rem/1.4 var(--f-body); color: var(--c-ink); transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.hp-field textarea { resize: vertical; min-height: 9rem; }
.hp-field input:hover, .hp-field select:hover, .hp-field textarea:hover { border-color: #b9d3f7; }
.hp-field input:focus, .hp-field select:focus, .hp-field textarea:focus { outline: none; border-color: var(--c-primary); background: var(--c-surface); box-shadow: 0 0 0 4px rgba(23, 105, 224, .15); }
.hp-form__consent { display: flex; gap: .75rem; align-items: flex-start; margin-top: 1.5rem; font-size: .88rem; color: var(--c-text); }
.hp-form__consent input { flex: none; width: 1.15rem; height: 1.15rem; margin-top: .15rem; accent-color: var(--c-primary); }
.hp-form__note { margin-top: .6rem; font-size: .8rem; color: var(--c-muted); }
.hp-form__submit { width: 100%; margin-top: 1.5rem; }
.hp-form__submit:disabled { opacity: .55; cursor: not-allowed; transform: none !important; }
.hp-form__status { margin-top: .9rem; padding: .75rem 1rem; border-radius: 12px; background: var(--c-bg-soft); font-size: .85rem; color: var(--c-muted); }

/* privacy: documento legale in bozza */
.hp-map__placeholder small a { color: var(--c-accent); text-decoration: underline; }
.hp-map__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; margin-top: .5rem; }
.hp-map__link { color: var(--c-ink); border: 1px solid var(--c-line); }
.hp-map__link:hover { border-color: var(--c-accent); color: var(--c-accent); }
.hp-legal { padding: clamp(3rem, 7vw, 6rem) 0; background: var(--c-bg); }
.hp-legal__layout { display: grid; grid-template-columns: minmax(12rem, 16rem) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.hp-legal__index { position: sticky; top: 6rem; padding: 1.25rem; }
.hp-legal__index ol { display: grid; gap: .55rem; margin-top: .8rem; padding-left: 1.1rem; }
.hp-legal__index a { color: var(--c-muted); font-size: .88rem; }
.hp-legal__index a:hover { color: var(--c-primary); }
.hp-legal__content { padding: clamp(1.5rem, 4vw, 3rem); }
.hp-legal__notice { margin-bottom: 2.5rem; padding: 1rem 1.15rem; border-left: 3px solid var(--c-primary); border-radius: 0 12px 12px 0; background: var(--c-bg-soft); }
.hp-legal__notice p { margin-top: .35rem; color: var(--c-muted); font-size: .92rem; }
.hp-legal__notice mark { padding: .1rem .25rem; border-radius: 4px; background: rgba(245, 158, 11, .18); color: inherit; }
.hp-legal__section { scroll-margin-top: 6rem; padding: 1.7rem 0; border-top: 1px solid var(--c-line); }
.hp-legal__section:first-of-type { padding-top: 0; border-top: 0; }
.hp-legal__section h2 { font-size: clamp(1.25rem, 2.4vw, 1.65rem); font-weight: 800; }
.hp-legal__section p, .hp-legal__section ul { max-width: 70rem; margin-top: .85rem; color: var(--c-text); line-height: 1.75; }
.hp-legal__section ul { padding-left: 1.25rem; }
.hp-legal__section li + li { margin-top: .35rem; }
.hp-legal__section a { color: var(--c-primary); text-decoration: underline; text-underline-offset: .15em; }
.hp-legal__section code { padding: .1rem .3rem; border-radius: 4px; background: var(--c-bg-soft); font-size: .9em; }

.hp-contact__side { display: grid; gap: 1.25rem; }
.hp-contact__card { padding: 1.75rem; }
.hp-contact__card h2 { margin-bottom: 1.25rem; font-size: 1.15rem; font-weight: 800; }
.hp-contact__list { display: grid; gap: 1.1rem; }
.hp-contact__list li { display: flex; gap: .9rem; align-items: flex-start; font-size: .95rem; color: var(--c-ink); }
.hp-contact__list li > span { flex: none; display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 12px; background: var(--c-primary-soft); color: var(--c-accent); }
.hp-contact__list svg { width: 1.15rem; height: 1.15rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hp-contact__list small { display: block; font-size: .78rem; color: var(--c-muted); }
.hp-contact__list a { font-weight: 600; color: var(--c-accent); }
.hp-contact__card--dark { border-color: transparent; color: #b9c8dd; background: radial-gradient(80% 70% at 100% 0%, #1d4f92, transparent 70%), linear-gradient(160deg, #132e52, var(--c-night-2)); }
.hp-contact__card--dark h2 { color: #fff; }
.hp-contact__steps { display: grid; gap: 1.1rem; }
.hp-contact__steps li { display: flex; gap: .9rem; }
.hp-contact__steps li > span { flex: none; display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--c-primary); color: #fff; font: 800 .85rem/1 var(--f-display); }
.hp-contact__steps strong { display: block; color: #fff; font-size: .95rem; }
.hp-contact__steps p { margin-top: .15rem; font-size: .85rem; color: #9fb2cc; }
.hp-contact__years { background: linear-gradient(160deg, var(--c-primary-soft), var(--c-surface)); }
.hp-contact__years strong { display: block; font: 800 2rem/1 var(--f-display); color: var(--c-ink); letter-spacing: -.03em; }
.hp-contact__years p { margin-top: .5rem; font-size: .9rem; color: var(--c-muted); }

/* ---------- Responsive delle parti aggiunte ---------- */
@media (max-width: 68rem) {
    .hp-focus__grid { grid-template-columns: repeat(2, 1fr); }
    .hp-modular__grid { grid-template-columns: 1fr 1fr; }
    .hp-modular__core { grid-column: 1 / -1; min-height: 11rem; }
}
@media (max-width: 62rem) {
    .hp-benefits__layout, .hp-contact__layout { grid-template-columns: 1fr; }
    .hp-pv { min-height: 0; }
    .hp-steps { grid-template-columns: repeat(2, 1fr); }
    .hp-focus { margin-top: -7.5rem; }
}
@media (max-width: 40rem) {
    .hp-focus__grid, .hp-modular__grid, .hp-form__grid { grid-template-columns: 1fr; }
    .hp-legal__layout { grid-template-columns: 1fr; }
    .hp-legal__index { position: static; }
    .hp-focus__card { min-height: 0; }
    .hp-pv__path span { width: 2.5rem; height: 2.5rem; }
    .hp-pv__chip--a { left: -.25rem; top: 4%; }
    .hp-pv__chip--b { right: -.25rem; bottom: 2%; }
    .hp-pv__phone { width: 12.5rem; }
    .hp-steps { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
    .hp-fd-truck { left: calc(50% - .8rem); }
}

/* =========================================================
   STRUTTURA A PAGINE: SOLUZIONI, AZIENDA, CONTATTI, CONSULENZA
   ========================================================= */
.hp-cards--2 { grid-template-columns: repeat(2, 1fr); }
.hp-btn.is-current { box-shadow: 0 0 0 3px rgba(98, 166, 255, .45); }

/* apertura delle pagine elenco */
.hp-hero--list { padding-bottom: clamp(4rem, 8vw, 6rem); }
.hp-page-intro { max-width: 48rem; }
.hp-page-intro .hp-hero__focus { border-top: 0; padding-top: 0; }

/* catalogo soluzioni */
.hp-catalog { scroll-margin-top: 4.5rem; }
.hp-catalog--alt { background: var(--c-bg-soft); }
.hp-catalog__head { display: flex; gap: 1.5rem; align-items: flex-start; max-width: 52rem; margin-bottom: 2.25rem; }
.hp-catalog__head h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 800; letter-spacing: -.03em; }
.hp-catalog__head p:not(.hp-eyebrow) { margin-top: .8rem; font-size: 1.05rem; color: var(--c-muted); }
.hp-catalog__icon { flex: none; display: grid; place-items: center; width: 4rem; height: 4rem; border-radius: 18px; background: linear-gradient(140deg, var(--c-primary), var(--c-sky)); color: #fff; box-shadow: 0 14px 28px -12px rgba(23, 105, 224, .8); }
.hp-catalog__icon svg { width: 1.9rem; height: 1.9rem; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* home: anteprima compatta delle aree */
.hp-areas__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1.25rem 2rem; margin-bottom: 2rem; }
.hp-areas__head h2 { font-size: clamp(1.9rem, 3.8vw, 2.8rem); font-weight: 800; letter-spacing: -.03em; max-width: 34rem; }
.hp-areas__grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; }
.hp-area {
    display: flex; flex-direction: column; gap: .55rem; padding: 1.5rem; border-radius: var(--radius-l);
    background: var(--c-surface); border: 1px solid var(--c-line); transition: box-shadow .35s, border-color .35s, transform .9s var(--ease-out), opacity .9s var(--ease-out), background-color .4s;
}
.hp-area:hover { box-shadow: var(--shadow-m); border-color: transparent; }
.hp-area__icon { display: grid; place-items: center; width: 3rem; height: 3rem; margin-bottom: .3rem; border-radius: 14px; background: var(--c-primary-soft); color: var(--c-accent); transition: background .35s, color .35s; }
.hp-area:hover .hp-area__icon { background: linear-gradient(140deg, var(--c-primary), var(--c-sky)); color: #fff; }
.hp-area__icon svg { width: 1.45rem; height: 1.45rem; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.hp-area__count { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--c-accent); }
.hp-area h3 { font-size: 1.08rem; font-weight: 800; line-height: 1.25; }
.hp-area p { font-size: .88rem; color: var(--c-muted); }
.hp-area .hp-link-arrow { margin-top: auto; padding-top: .5rem; }

/* home: chi siamo in breve */
.hp-about { padding-bottom: var(--section-y); }
.hp-about__box {
    position: relative; overflow: hidden; overflow: clip; display: grid; grid-template-columns: auto 1fr auto; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center;
    padding: clamp(2rem, 5vw, 3.25rem); border-radius: 28px; color: #b9c8dd;
    background: radial-gradient(70% 90% at 0% 0%, #2563c4 0%, transparent 60%), linear-gradient(160deg, #173e70, var(--c-night-2));
}
.hp-about__box::before { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: radial-gradient(rgba(255, 255, 255, .08) 1px, transparent 1px); background-size: 24px 24px; mask-image: linear-gradient(90deg, #000, transparent 70%); -webkit-mask-image: linear-gradient(90deg, #000, transparent 70%); }
.hp-about__year { position: relative; display: flex; flex-direction: column; }
.hp-about__year small { font-size: .85rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #8dc0ff; }
.hp-about__year strong { font: 800 clamp(3.5rem, 7vw, 5.5rem)/.95 var(--f-display); letter-spacing: -.05em; color: #fff; }
.hp-about__text { position: relative; }
.hp-about__text h2 { color: #fff; font-size: clamp(1.5rem, 2.8vw, 2.1rem); font-weight: 800; }
.hp-about__text > p:not(.hp-eyebrow) { margin-top: .7rem; max-width: 36rem; }
.hp-about__points { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; margin-top: 1.1rem; font-size: .88rem; color: #dbe7f7; }
.hp-about__points li { display: inline-flex; align-items: center; gap: .4rem; }
.hp-about__points svg { width: 1rem; height: 1rem; fill: none; stroke: #4ade80; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.hp-about__actions { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: .9rem; }
.hp-about__link { color: #8dc0ff; }

/* visual generico delle soluzioni */
.hp-gen { display: flex; gap: 1rem; align-items: center; }
.hp-gen__icon { flex: none; display: grid; place-items: center; width: 4rem; height: 4rem; border-radius: 18px; background: linear-gradient(140deg, #1769e0, #2a9fd6); color: #fff; animation: hp-twinkle-soft 4s ease-in-out infinite; }
.hp-gen__icon svg { width: 2rem; height: 2rem; stroke-width: 1.6; }
@keyframes hp-twinkle-soft { 50% { transform: translateY(-4px); box-shadow: 0 14px 26px -12px rgba(23, 105, 224, .9); } }
.hp-gen p { font: 600 1rem/1.4 var(--f-display); color: #0f1f36; }
.hp-gen__tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1.1rem; }
.hp-gen__tags span { padding: .3rem .65rem; border-radius: 999px; background: #e8f1fd; color: #1769e0; font-size: .74rem; font-weight: 600; }
.hp-gen__sync { margin-top: 1.1rem; padding-top: .9rem; border-top: 1px solid #e3e9f2; font-size: .78rem; color: #0f1f36; }
.hp-gen__sync i { background: #e3e9f2; }
.hp-gen__sync i::after { background: linear-gradient(90deg, transparent, #1769e0, transparent); }

/* consulenza: collegamento ai contatti */
.hp-contact__switch { display: flex; align-items: center; gap: 1rem; transition: box-shadow .35s, transform .5s var(--ease-out); }
.hp-contact__switch:hover { transform: translateY(-3px); }
.hp-contact__switch > span { flex: none; display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 12px; background: var(--c-primary-soft); color: var(--c-accent); }
.hp-contact__switch svg { width: 1.2rem; height: 1.2rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hp-contact__switch strong { display: block; color: var(--c-ink); font-size: .95rem; }
.hp-contact__switch p { margin-top: .15rem; font-size: .85rem; color: var(--c-muted); }
.hp-contact__switch i { margin-left: auto; font-style: normal; font-size: 1.2rem; color: var(--c-accent); transition: transform .3s var(--ease-out); }
.hp-contact__switch:hover i { transform: translateX(4px); }

/* contatti: canali, mappa, dati aziendali */
.hp-channels { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1.25rem; }
.hp-channels > .hp-channel { grid-column: span 2; }
.hp-channels > .hp-channel:nth-last-child(-n+2) { grid-column: span 3; }
.hp-channel__value { overflow-wrap: anywhere; }
.hp-channel { display: flex; flex-direction: column; gap: .5rem; padding: 1.75rem; border-radius: var(--radius-l); background: var(--c-surface); border: 1px solid var(--c-line); box-shadow: var(--shadow-m); }
.hp-channel__icon { display: grid; place-items: center; width: 3.25rem; height: 3.25rem; margin-bottom: .5rem; border-radius: 15px; background: linear-gradient(140deg, var(--c-primary), var(--c-sky)); color: #fff; }
.hp-channel__icon svg { width: 1.5rem; height: 1.5rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hp-channel h2 { font-size: 1.15rem; font-weight: 800; }
.hp-channel__value { font: 700 1.1rem/1.35 var(--f-display); color: var(--c-ink); }
.hp-channel__value a { color: var(--c-accent); }
.hp-channel > p:last-child { font-size: .88rem; color: var(--c-muted); }
.hp-contact-info { display: grid; grid-template-columns: 1.4fr 1fr; gap: 1.25rem; margin-top: 1.25rem; }
.hp-map { overflow: hidden; min-height: 20rem; border-radius: var(--radius-l); border: 1px solid var(--c-line); background: var(--c-bg-soft); }
.hp-map iframe { display: block; width: 100%; height: 100%; min-height: 20rem; border: 0; }
.hp-map__placeholder { display: grid; place-content: center; justify-items: center; gap: .5rem; height: 100%; min-height: 20rem; padding: 2rem; text-align: center; color: var(--c-muted);
    background-image: linear-gradient(var(--c-line) 1px, transparent 1px), linear-gradient(90deg, var(--c-line) 1px, transparent 1px); background-size: 32px 32px; }
.hp-map__placeholder span { display: grid; place-items: center; width: 3.5rem; height: 3.5rem; border-radius: 50%; background: var(--c-primary); color: #fff; box-shadow: 0 0 0 10px rgba(23, 105, 224, .15); }
.hp-map__placeholder svg { width: 1.6rem; height: 1.6rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hp-map__placeholder strong { color: var(--c-ink); }
.hp-map__placeholder small { max-width: 22rem; font-size: .85rem; }
.hp-company-data dl { display: grid; gap: 1rem; }
.hp-company-data dt { font-size: .78rem; color: var(--c-muted); }
.hp-company-data dd { margin-top: .15rem; font-weight: 600; color: var(--c-ink); }

@media (max-width: 75rem) {
    .hp-areas__grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 62rem) {
    .hp-about__box { grid-template-columns: 1fr; }
    .hp-about__actions { flex-direction: row; flex-wrap: wrap; align-items: center; }
    .hp-channels { grid-template-columns: 1fr 1fr; }
    .hp-channels > .hp-channel, .hp-channels > .hp-channel:nth-last-child(-n+2) { grid-column: auto; }
    .hp-channels > .hp-channel:last-child { grid-column: 1 / -1; }
    .hp-contact-info { grid-template-columns: 1fr; }
}
@media (max-width: 40rem) {
    .hp-areas__grid, .hp-channels, .hp-cards--2 { grid-template-columns: 1fr; }
    .hp-catalog__head { flex-direction: column; gap: 1rem; }
    .hp-catalog__icon { width: 3.25rem; height: 3.25rem; }
}

/* =========================================================
   HOME: PRIMA SCHERMATA "TUTTO SUBITO" (senza scorrere)
   Le misure dipendono anche dall'altezza dello schermo (vh)
   così titolo, numeri, 4 settori e 5 aree stanno in una schermata.
   ========================================================= */
.hp-fold { display: flex; min-height: calc(100vh - 5rem); min-height: calc(100svh - 5rem); padding: 0; }
.hp-fold__inner { display: flex; flex-direction: column; gap: clamp(.9rem, 2.2vh, 1.6rem); width: 100%; padding-block: clamp(1.1rem, 3.4vh, 2.6rem) clamp(1rem, 2.6vh, 2rem); }
.hp-fold__main {
    flex: 1; display: grid; align-items: center; column-gap: clamp(1.5rem, 3.5vw, 3.5rem); row-gap: clamp(.9rem, 2.4vh, 1.6rem);
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
    grid-template-areas: "text bento" "stats bento";
    grid-template-rows: 1fr auto;
}
.hp-fold__text { grid-area: text; align-self: end; }
.hp-fold .hp-pill { margin-bottom: clamp(.7rem, 2vh, 1.3rem); }
.hp-fold h1 { font-size: clamp(2.1rem, min(4.3vw, 6.4vh), 4.1rem); }
.hp-fold__lead { max-width: 33rem; margin-top: clamp(.7rem, 1.9vh, 1.3rem); font-size: clamp(.95rem, 1.9vh, 1.12rem); line-height: 1.6; color: #b9c8dd; }
.hp-fold__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: clamp(1rem, 2.6vh, 1.75rem); }
.hp-fold__actions .hp-btn--lg { padding: clamp(.75rem, 1.6vh, 1rem) clamp(1.15rem, 1.6vw, 1.6rem); }

.hp-fold__stats {
    grid-area: stats; align-self: start; display: grid; grid-template-columns: repeat(4, 1fr); margin: 0;
    border-top: 1px solid rgba(255, 255, 255, .12); padding-top: clamp(.8rem, 2vh, 1.25rem);
}
.hp-fold__stats > div { display: flex; flex-direction: column-reverse; gap: .2rem; padding-right: .75rem; }
.hp-fold__stats > div + div { padding-left: clamp(.6rem, 1.2vw, 1rem); border-left: 1px solid rgba(255, 255, 255, .1); }
.hp-fold__stats dd { margin: 0; font: 800 clamp(1.45rem, 3.4vh, 2.1rem)/1 var(--f-display); letter-spacing: -.03em; color: #fff; font-variant-numeric: tabular-nums; }
.hp-fold__stats dt { font-size: clamp(.68rem, 1.4vh, .8rem); line-height: 1.3; color: #9fb2cc; }

.hp-fold__bento { grid-area: bento; display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: 1fr; gap: clamp(.6rem, 1.4vh, .9rem); align-self: stretch; max-height: 40rem; }
.hp-ftile {
    position: relative; display: flex; flex-direction: column; gap: clamp(.25rem, .8vh, .45rem); min-height: 0; overflow: hidden;
    padding: clamp(.85rem, 2vh, 1.3rem); border-radius: 20px; background: var(--c-surface); border: 1px solid rgba(255, 255, 255, .2);
    box-shadow: 0 24px 50px -24px rgba(0, 0, 0, .6); color: var(--c-text);
    transition: translate .5s var(--ease-out), box-shadow .35s, opacity .9s var(--ease-out), transform .9s var(--ease-out), background-color .4s;
}
.hp-ftile:hover { translate: 0 -4px; box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .7), 0 0 0 1px rgba(98, 166, 255, .5); }
.hp-ftile__top { display: flex; align-items: center; justify-content: space-between; }
.hp-ftile .hp-focus__icon { width: clamp(2.3rem, 5vh, 2.9rem); height: clamp(2.3rem, 5vh, 2.9rem); border-radius: 13px; }
.hp-ftile .hp-focus__icon svg { width: 55%; height: 55%; }
.hp-ftile__go { display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--c-primary-soft); color: var(--c-accent); transition: background .3s, color .3s, transform .4s var(--ease-out); }
.hp-ftile__go svg { width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hp-ftile:hover .hp-ftile__go { background: var(--c-primary); color: #fff; transform: rotate(-45deg); }
.hp-ftile__title { margin-top: clamp(.15rem, .8vh, .4rem); font: 800 clamp(.98rem, 2.1vh, 1.15rem)/1.2 var(--f-display); letter-spacing: -.015em; color: var(--c-ink); }
.hp-ftile__line { font-size: clamp(.78rem, 1.6vh, .88rem); line-height: 1.45; color: var(--c-muted); }
.hp-ftile__demo { display: block; margin-top: auto; padding: clamp(.45rem, 1.2vh, .7rem); font-size: .72rem; }
.hp-ftile__demo > span { display: flex; }
.hp-ftile__demo .hp-fd-route { display: flex; }
.hp-ftile__demo .hp-fd-labels { display: flex; }
.hp-ftile__demo .hp-fd-shops { display: flex; }
.hp-fd-tx__row {
    display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: .5rem; row-gap: .1rem;
    padding: .32rem .5rem; border-radius: 8px; background: var(--c-surface); border: 1px solid var(--c-line);
}
.hp-ftile .hp-fd-tx { display: grid; gap: .3rem; }
.hp-fd-tx__row > span { grid-row: 1 / 3; display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.hp-fd-tx__row small { color: var(--c-muted); font-size: .62rem; }
.hp-fd-tx__row b { white-space: nowrap; justify-self: end; font-variant-numeric: tabular-nums; }
.hp-fd-tx__row em { justify-self: end; font-style: normal; font-size: .6rem; font-weight: 700; padding: .1rem .4rem; border-radius: 999px; background: rgba(22, 163, 74, .12); color: var(--c-ok); }
.hp-fd-tx__row .in { color: var(--c-ok); } .hp-fd-tx__row .out { color: #e05252; }

.hp-fold__dock { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)) auto; gap: clamp(.5rem, 1vw, .75rem); }
.hp-dock {
    display: flex; align-items: center; gap: .7rem; min-width: 0; padding: clamp(.55rem, 1.3vh, .8rem) .85rem; border-radius: 16px;
    background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); color: #dbe7f7; backdrop-filter: blur(8px);
    transition: background-color .25s, border-color .25s, transform .4s var(--ease-out);
}
.hp-dock:hover { background: rgba(23, 105, 224, .3); border-color: rgba(141, 192, 255, .5); transform: translateY(-3px); }
.hp-dock__icon { flex: none; display: grid; place-items: center; width: clamp(2rem, 4.4vh, 2.5rem); height: clamp(2rem, 4.4vh, 2.5rem); border-radius: 11px; background: rgba(255, 255, 255, .1); color: #8dc0ff; transition: background .25s, color .25s; }
.hp-dock:hover .hp-dock__icon { background: var(--c-primary); color: #fff; }
.hp-dock__icon svg { width: 55%; height: 55%; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hp-dock__text { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.hp-dock__text strong { font-size: clamp(.78rem, 1.6vh, .88rem); font-weight: 600; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hp-dock__text small { font-size: .7rem; color: #8da3c0; }
.hp-dock--all { gap: .5rem; padding-inline: 1.1rem; background: #fff; border-color: #fff; color: var(--c-night); font-weight: 700; font-size: .85rem; white-space: nowrap; }
.hp-dock--all svg { width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s var(--ease-out); }
.hp-dock--all:hover { background: #fff; color: var(--c-primary); }
.hp-dock--all:hover svg { transform: translateX(3px); }

/* schermi bassi (portatili): si tolgono le mini-animazioni dei riquadri per far stare tutto */
@media (min-width: 62.01rem) and (max-height: 800px) {
    .hp-ftile__demo { display: none; }
    .hp-fold__bento { max-height: 26rem; }
}
@media (min-width: 62.01rem) and (max-height: 640px) {
    .hp-ftile__line { display: none; }
    .hp-fold__lead { display: none; }
}

/* vetrina della dashboard */
.hp-showcase { background: var(--c-bg-soft); overflow: hidden; overflow: clip; }
.hp-showcase__layout { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hp-showcase__text h2 { font-size: clamp(2rem, 4vw, 2.9rem); font-weight: 800; letter-spacing: -.03em; }
.hp-showcase__text > p:not(.hp-eyebrow) { margin-top: 1rem; font-size: 1.08rem; color: var(--c-muted); }
.hp-checks--dark li { color: var(--c-text); }
.hp-showcase__visual { padding: 1rem 1.5rem 2.5rem 1.5rem; }

@media (max-width: 62rem) {
    .hp-fold { min-height: 0; }
    .hp-fold__main { grid-template-columns: 1fr; grid-template-areas: "text" "bento" "stats"; grid-template-rows: auto; }
    .hp-fold__bento { max-height: none; grid-auto-rows: auto; }
    .hp-ftile__demo, .hp-ftile__line { display: none; }
    .hp-fold__dock { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(12.5rem, 70%); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: .4rem; scrollbar-width: none; }
    .hp-fold__dock::-webkit-scrollbar { display: none; }
    .hp-dock { scroll-snap-align: start; }
    .hp-showcase__layout { grid-template-columns: 1fr; }
}
@media (max-width: 40rem) {
    .hp-fold h1 { font-size: 2.15rem; }
    .hp-fold__lead { font-size: .95rem; }
    .hp-fold__actions .hp-btn { flex: 1 1 auto; font-size: .9rem; padding: .75rem 1rem; }
    .hp-ftile { padding: .8rem; border-radius: 16px; }
    .hp-ftile__title { font-size: .92rem; }
    .hp-ftile__go { width: 1.6rem; height: 1.6rem; }
    .hp-fold__stats dd { font-size: 1.35rem; }
    .hp-fold__stats dt { font-size: .64rem; }
    .hp-showcase__visual { padding: .5rem 0 3rem; }
}

/* rifinitura: margini più stretti perché la prima schermata stia sempre nello schermo */
.hp-fold__inner { gap: clamp(.7rem, 1.8vh, 1.3rem); padding-block: clamp(.8rem, 2.6vh, 2.1rem) clamp(.8rem, 2vh, 1.5rem); }
.hp-fold__main { min-height: 0; row-gap: clamp(.7rem, 2vh, 1.4rem); }
.hp-ftile__demo .hp-fd-shops { flex-wrap: nowrap; gap: .25rem; overflow: hidden; }
.hp-ftile__demo .hp-fd-shops span { padding: .2rem .45rem; font-size: .66rem; white-space: nowrap; }
.hp-ftile__demo .hp-fd-sync { margin-top: .45rem; }
.hp-ftile__demo .hp-fd-status { margin-top: .45rem; }
.hp-ftile__demo .hp-fd-shops .more { display: none; }
.hp-dock__text strong { white-space: normal; overflow: visible; }

/* =========================================================
   PRIMA SCHERMATA v2: 6 card (3×2), testo allineato in alto
   ========================================================= */
.js [data-reveal-delay="5"] { transition-delay: .25s; }
.js [data-reveal-delay="6"] { transition-delay: .3s; }
.hp-fold__main { grid-template-columns: minmax(0, .8fr) minmax(0, 1.3fr); grid-template-rows: auto 1fr; }
.hp-fold__text { align-self: start; padding-top: clamp(.2rem, 1vh, .6rem); }
.hp-fold__stats { align-self: end; }
/* Fascia numeri rimossa dalla home: il testo occupa tutta la colonna sinistra. */
@media (min-width: 62.01rem) {
    .hp-fold__main { grid-template-areas: "text bento" "text bento"; }
    .hp-fold__text { align-self: center; }
}
.hp-fold h1 { font-size: clamp(2rem, min(3.7vw, 6vh), 3.6rem); }
.hp-fold__lead { font-size: clamp(.93rem, 1.8vh, 1.06rem); }
.hp-fold__bento { grid-template-columns: repeat(3, minmax(0, 1fr)); max-height: 42rem; }
.hp-fold__stats dt { font-size: clamp(.64rem, 1.3vh, .76rem); }

/* mini-demo: ordine dell'agente */
.hp-fd-order { display: flex; flex-direction: column; gap: .35rem; }
.hp-fd-order__head { display: flex; justify-content: space-between; align-items: baseline; gap: .4rem; }
.hp-fd-order__head b { color: var(--c-ink); font-size: .74rem; }
.hp-fd-order__head small { color: var(--c-muted); font-size: .64rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hp-fd-order__lines { display: grid; gap: .25rem; }
.hp-fd-order__lines i { height: .42rem; border-radius: 4px; background: linear-gradient(90deg, var(--c-line) 0 60%, var(--c-primary-soft) 60%); }
.hp-fd-order__lines i:nth-child(2) { width: 85%; } .hp-fd-order__lines i:nth-child(3) { width: 70%; }
.hp-fd-order__sent { display: inline-flex; align-items: center; gap: .3rem; width: fit-content; padding: .18rem .5rem; border-radius: 999px; background: rgba(22, 163, 74, .12); color: var(--c-ok); font-weight: 700; font-size: .66rem; animation: hp-sent 3.2s var(--ease) infinite; }
.hp-fd-order__sent svg { width: .8rem; height: .8rem; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
@keyframes hp-sent { 0%, 15% { opacity: 0; transform: translateY(4px); } 25%, 85% { opacity: 1; transform: none; } 100% { opacity: 0; } }

/* mini-demo: moduli ERP */
.hp-fd-mods { display: flex; flex-wrap: wrap; gap: .3rem; }
.hp-fd-mods span { padding: .22rem .5rem; border-radius: 8px; background: var(--c-primary-soft); color: var(--c-accent); font-size: .66rem; font-weight: 700; animation: hp-mod 4s var(--ease) infinite; }
.hp-fd-mods span:nth-child(2) { animation-delay: .5s; } .hp-fd-mods span:nth-child(3) { animation-delay: 1s; } .hp-fd-mods span:nth-child(4) { animation-delay: 1.5s; }
.hp-fd-mods .ai { display: inline-flex; align-items: center; gap: .2rem; background: linear-gradient(140deg, var(--c-primary), #7c5cff); color: #fff; animation-delay: 2s; }
.hp-fd-mods .ai svg { width: .75rem; height: .75rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@keyframes hp-mod { 0%, 100% { transform: none; } 10% { transform: translateY(-3px); box-shadow: 0 6px 12px -6px rgba(23, 105, 224, .6); } 20% { transform: none; } }

/* card più strette: demo e-commerce e banca compatte */
.hp-ftile__demo .hp-fd-shops span { font-size: .62rem; padding: .18rem .4rem; }
.hp-ftile__demo .hp-fd-sync { font-size: .66rem; gap: .35rem; }
.hp-ftile__demo .hp-fd-sync b { font-size: .62rem; padding: .2rem .4rem; }
.hp-ftile .hp-fd-tx__row { padding: .28rem .45rem; }
.hp-ftile .hp-fd-tx__row > span { font-size: .66rem; }
.hp-ftile .hp-fd-tx__row b { font-size: .68rem; }

/* schermi larghi ma non enormi: 2 colonne × 3 righe, senza mini-demo */
@media (min-width: 62.01rem) and (max-width: 80rem) {
    .hp-fold__main { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .hp-fold__bento { grid-template-columns: 1fr 1fr; }
    .hp-ftile__demo { display: none; }
}
/* schermi bassi: senza mini-demo */
@media (min-width: 62.01rem) and (max-height: 800px) {
    .hp-fold__bento { max-height: 28rem; }
}
@media (max-width: 62rem) {
    .hp-fold__main { grid-template-columns: 1fr; grid-template-rows: auto; }
    .hp-fold__bento { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 62.01rem) and (max-width: 80rem) {
    .hp-fold__bento { max-height: none; }
}
.hp-ftile__demo .hp-fd-shops { flex-wrap: wrap; overflow: visible; }
@media (min-width: 80.01rem) and (min-height: 1000px) {
    .hp-fold__bento { max-height: 46rem; }
}
