/* =========================================================
   CREATIVE SOLUTION — V3
   Fullpage sezione per sezione (desktop, tablet, mobile).
   Palette: Deep Tech Blue / Digital Trust Blue / Conversion Orange.
   Leggero: nessuna libreria, solo transform/opacity.
   ========================================================= */
:root {
    --navy-950: #0F172A;
    --primary-color: #1E293B;
    --secondary-color: #2563EB;
    --accent-color: #FF9900;
    --accent-hover: #FFAA2B;
    --neutral-bg: #F8FAFC;
    --main-bg: #FFFFFF;
    --slate-200: #E2E8F0;
    --text-main: #334155;
    --text-muted: #64748B;
    --on-dark: #CBD5E1;
    --wa-green: #25D366;

    --font-heading: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

    --container-width: 1180px;
    --gutter: clamp(18px, 5vw, 40px);
    --header-h: 64px;

    --shadow-sm: 0 4px 6px -1px rgba(15, 23, 42, 0.06), 0 2px 4px -1px rgba(15, 23, 42, 0.04);
    --shadow-md: 0 18px 40px -12px rgba(15, 23, 42, 0.18), 0 6px 14px -6px rgba(15, 23, 42, 0.08);
    --glow-accent: 0 0 28px rgba(255, 153, 0, 0.45);

    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html.fp { scroll-snap-type: y mandatory; overscroll-behavior-y: none; }
body {
    font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.6; color: var(--text-main);
    background: var(--navy-950); overflow-x: clip; -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
}
body.menu-open { overflow: hidden; }
h1, h2, h3, h4 { font-family: var(--font-heading); color: var(--primary-color); line-height: 1.12; text-wrap: balance; }
h2 { font-size: clamp(1.65rem, 0.95rem + 2.6vw, 3rem); font-weight: 800; letter-spacing: -0.03em; }
h3 { font-size: 1.25rem; font-weight: 800; letter-spacing: -0.015em; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
[hidden] { display: none !important; }
.container { width: 100%; max-width: calc(var(--container-width) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.skip-link { position: fixed; left: 12px; top: -80px; z-index: 100000; background: var(--accent-color); color: var(--navy-950); font-weight: 700; padding: 12px 18px; border-radius: 12px; transition: top 0.2s var(--ease); }
.skip-link:focus { top: calc(12px + env(safe-area-inset-top)); }
:focus-visible { outline: 3px solid var(--accent-color); outline-offset: 3px; border-radius: 6px; }
.ico { width: 1.25em; height: 1.25em; flex: none; }
.ico-arrow { width: 0.85em; height: 0.9em; fill: currentColor; flex: none; transition: transform 0.35s var(--ease-out); }

/* ---------- Pulsanti ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    min-height: 48px; padding: 0 24px; border-radius: 14px; font-size: 1rem; font-weight: 600; line-height: 1.1; text-align: center;
    border: 1.5px solid transparent;
    transition: transform 0.3s var(--ease-out), background-color 0.2s var(--ease), box-shadow 0.3s var(--ease), color 0.2s, border-color 0.2s;
}
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.45; pointer-events: none; }
.btn-lg { min-height: 54px; padding: 0 28px; font-size: 1.04rem; }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: 0.95rem; border-radius: 12px; }
.btn-block { width: 100%; }
.btn-accent { background: var(--accent-color); color: var(--navy-950); font-weight: 700; }
.btn-ghost { color: #fff; border-color: rgba(255, 255, 255, 0.3); background: rgba(255, 255, 255, 0.05); }
.btn-ghost-dark { color: #fff; border-color: rgba(255, 255, 255, 0.28); background: transparent; }
.btn-wa { background: var(--wa-green); color: #052e16; font-weight: 700; }
.btn-wa-ghost { align-self: flex-start; margin-top: auto; min-height: 46px; padding: 0 20px; border-radius: 999px; color: var(--wa-green); border-color: rgba(37, 211, 102, 0.55); font-size: 0.95rem; }
.btn-wa-light { color: #0B7A3B; border-color: var(--wa-green); background: #fff; font-weight: 700; }
@media (hover: hover) {
    .btn-accent:hover { background: var(--accent-hover); box-shadow: var(--glow-accent); transform: translateY(-2px); }
    .btn-accent:hover .ico-arrow { transform: translate(3px, -3px); }
    .btn-ghost:hover, .btn-ghost-dark:hover { border-color: #fff; background: rgba(255, 255, 255, 0.1); transform: translateY(-2px); }
    .btn-wa:hover { background: #3be07c; transform: translateY(-2px); box-shadow: 0 10px 24px rgba(37, 211, 102, 0.35); }
    .btn-wa-ghost:hover { background: var(--wa-green); color: #052e16; transform: translateY(-2px); }
    .btn-wa-light:hover { background: var(--wa-green); color: #052e16; transform: translateY(-2px); box-shadow: 0 10px 24px rgba(37, 211, 102, 0.3); }
}

/* =========================================================
   PRELOADER (~1,1s) — C e S si disegnano e si fondono nell'infinito,
   la freccia scatta con spring e bagliore oro, la barra si carica.
   Solo transform / opacity / stroke-dashoffset.
   ========================================================= */
.preloader { display: none; }
.js .preloader {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    position: fixed; inset: 0; z-index: 99999;
    background: radial-gradient(700px 420px at 80% 0%, rgba(37, 99, 235, 0.35), transparent 70%), var(--navy-950);
    will-change: transform, opacity;
    transition: opacity 0.24s var(--ease), transform 0.24s cubic-bezier(0.55, 0, 0.8, 0.4), visibility 0s linear 0.24s;
}
.js.intro-seen .preloader { display: none; }
.preloader.is-done { opacity: 0; visibility: hidden; pointer-events: none; transform: translate3d(0, -48px, 0); }

.pl-inner { display: flex; flex-direction: column; align-items: center; gap: 22px; padding: 0 24px; text-align: center; }
.pl-logo { width: min(62vw, 280px); height: auto; overflow: visible; }
.pl-body { fill: #fff; }
.pl-arrow path { fill: var(--accent-color); }
.pl-arrow {
    opacity: 0;
    transform-box: fill-box; transform-origin: 15% 90%;
    animation: plArrow 0.46s var(--ease-spring) 0.5s forwards;
}
.pl-glow {
    opacity: 0; transform-box: fill-box; transform-origin: center;
    animation: plGlow 0.5s ease-out 0.58s forwards;
}
.pl-m {
    fill: none; stroke: #fff; stroke-width: 88; stroke-linecap: round; stroke-linejoin: round;
    stroke-dasharray: 1 2; stroke-dashoffset: 1;
}
/* C e S si disegnano in sovrapposizione: la fusione nell'infinito avviene entro ~0,75s */
.pl-m-c  { animation: plDraw 0.42s cubic-bezier(0.5, 0, 0.25, 1) 0.04s forwards; }
.pl-m-s1 { animation: plDraw 0.3s cubic-bezier(0.4, 0, 0.4, 1) 0.28s forwards; }
.pl-m-s2 { animation: plDraw 0.36s cubic-bezier(0.4, 0, 0.3, 1) 0.4s forwards; }
.pl-bar { width: min(52vw, 160px); height: 3px; border-radius: 3px; overflow: hidden; background: rgba(255, 255, 255, 0.14); }
.pl-bar span {
    display: block; width: 100%; height: 100%; border-radius: 3px; transform: scaleX(0); transform-origin: left center;
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color)); will-change: transform;
    animation: plBar 0.82s cubic-bezier(0.3, 0, 0.2, 1) forwards;
}
.pl-tagline {
    font-family: var(--font-heading); font-weight: 700; font-size: clamp(0.95rem, 3.6vw, 1.2rem);
    color: var(--on-dark); letter-spacing: -0.01em;
    opacity: 0; transform: translateY(8px); animation: plText 0.35s var(--ease-out) 0.42s forwards;
}
@keyframes plDraw { to { stroke-dashoffset: 0; } }
@keyframes plText { to { opacity: 1; transform: none; } }
@keyframes plBar { to { transform: scaleX(1); } }
@keyframes plGlow {
    0%   { opacity: 0; transform: scale(0.45); }
    40%  { opacity: 1; transform: scale(1.12); }
    100% { opacity: 0.5; transform: scale(1); }
}
@keyframes plArrow {
    0%   { opacity: 0; transform: translate3d(-110px, 140px, 0) rotate(-14deg) scale(0.5); }
    22%  { opacity: 1; }
    70%  { opacity: 1; transform: translate3d(7px, -12px, 0) rotate(2deg) scale(1.08); }
    100% { opacity: 1; transform: none; }
}



/* =========================================================
   HEADER (solo logo) + MENU
   ========================================================= */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 1000; padding-top: env(safe-area-inset-top); }
.site-header::before {
    content: ""; position: absolute; inset: 0; z-index: 0; background: rgba(15, 23, 42, 0.74);
    -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07); opacity: 0; transition: opacity 0.3s var(--ease);
}
.site-header.is-scrolled::before, .site-header.solid::before, .site-header.menu-open::before { opacity: 1; }
.header-inner { position: relative; z-index: 2; display: flex; align-items: center; height: var(--header-h); gap: 20px; }
.brand { position: relative; z-index: 3; display: inline-flex; align-items: center; min-height: 44px; }
.brand img { height: 40px; width: auto; transition: transform 0.35s var(--ease-out); }
@media (hover: hover) { .brand:hover img { transform: scale(1.05); } }
.nav { display: flex; align-items: center; margin-left: auto; }
.nav-list { display: flex; gap: clamp(14px, 2vw, 28px); }
.nav-list a { position: relative; display: block; padding: 8px 0; font-weight: 500; font-size: 0.95rem; color: rgba(255, 255, 255, 0.86); transition: color 0.25s; }
.nav-list a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px; background: var(--accent-color); border-radius: 2px; transform: scaleX(0); transform-origin: left; transition: transform 0.35s var(--ease-out); }
.nav-list a.is-current { color: #fff; }
.nav-list a.is-current::after { transform: scaleX(1); }
@media (hover: hover) { .nav-list a:hover { color: #fff; } .nav-list a:hover::after { transform: scaleX(1); } }
.nav-extra { display: none; }
.header-cta { position: relative; z-index: 3; }
.menu-toggle { display: none; }
.scroll-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; z-index: 3; pointer-events: none; }
.scroll-progress-bar { display: block; height: 100%; width: 100%; transform-origin: left; transform: scaleX(var(--progress, 0)); background: linear-gradient(90deg, var(--secondary-color), var(--accent-color)); }

/* ---------- Navigazione a puntini + freccia "avanti" ---------- */
.dotnav { position: fixed; z-index: 900; right: max(10px, env(safe-area-inset-right)); top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; }
.dotnav a { position: relative; display: grid; place-items: center; width: 24px; height: 24px; }
.dotnav a::before { content: ""; width: 8px; height: 8px; border-radius: 999px; background: #94A3B8; box-shadow: 0 0 0 1.5px rgba(15, 23, 42, 0.35); transition: height 0.35s var(--ease-out), background-color 0.3s; }
.dotnav a[aria-current="true"]::before { height: 20px; background: var(--accent-color); }
.dotnav a span { position: absolute; right: 30px; padding: 4px 10px; font-size: 0.78rem; font-weight: 600; white-space: nowrap; color: #fff; background: var(--navy-950); border-radius: 8px; opacity: 0; transform: translateX(6px); pointer-events: none; transition: opacity 0.2s, transform 0.25s var(--ease-out); }
@media (hover: hover) { .dotnav a:hover span { opacity: 1; transform: none; } }
.next-cue {
    position: fixed; z-index: 850; left: 50%; bottom: calc(14px + env(safe-area-inset-bottom)); margin-left: -22px; width: 44px; height: 44px; border-radius: 50%;
    display: grid; place-items: center; background: rgba(15, 23, 42, 0.7); border: 1px solid rgba(255, 255, 255, 0.22);
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: opacity 0.3s, visibility 0.3s, transform 0.3s var(--ease-out);
}
.next-cue span { width: 11px; height: 11px; margin-top: -4px; border-right: 2.5px solid var(--accent-color); border-bottom: 2.5px solid var(--accent-color); transform: rotate(45deg); animation: cue 1.6s ease-in-out infinite; }
@keyframes cue { 0%, 100% { transform: translateY(0) rotate(45deg); } 50% { transform: translateY(5px) rotate(45deg); } }
.next-cue.is-hidden { opacity: 0; visibility: hidden; transform: translateY(10px); }
@media (hover: hover) { .next-cue:hover { background: var(--accent-color); } .next-cue:hover span { border-color: var(--navy-950); } }

/* =========================================================
   SEZIONI A SCHERMO INTERO
   ========================================================= */
.sec {
    position: relative; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; overflow: clip;
    padding: calc(var(--header-h) + env(safe-area-inset-top) + clamp(8px, 2vh, 20px)) 0 calc(64px + env(safe-area-inset-bottom));
    scroll-snap-align: start; scroll-snap-stop: always;
}
.sec > .container { position: relative; z-index: 2; }
.sec-dark { background: var(--navy-950); color: var(--on-dark); }
.sec-light { background: var(--main-bg); }
.sec-tint { background: var(--neutral-bg); }
.sec-dark h2, .sec-dark h3 { color: #fff; }

.eyebrow { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-size: 0.82rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--secondary-color); }
.eyebrow::before { content: ""; width: 24px; height: 2px; background: var(--accent-color); border-radius: 2px; }
.sec-dark .eyebrow { color: var(--accent-color); }
.sec-head { max-width: 780px; margin-bottom: clamp(16px, 3.2vh, 36px); }
.sec-head p:not(.eyebrow) { margin-top: 12px; font-size: clamp(1rem, 0.95rem + 0.25vw, 1.15rem); color: var(--text-muted); max-width: 40em; }
.sec-dark .sec-head p:not(.eyebrow) { color: var(--on-dark); }
.sec-cta { display: flex; justify-content: center; margin-top: clamp(16px, 3vh, 32px); }

/* Entrata: ogni sezione si "accende" quando arriva a schermo */
.js .rv { opacity: 0; transform: translate3d(0, 22px, 0); transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out); transition-delay: calc(var(--i, 0) * 70ms); }
.js .sec.seen .rv { opacity: 1; transform: none; }
.js .sec.seen .rv.done { transition-delay: 0s; }

/* =========================================================
   1. HERO
   ========================================================= */
.hero { background: var(--navy-950); color: #fff; }
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.aurora { position: absolute; display: block; border-radius: 50%; aspect-ratio: 1; will-change: transform; }
.aurora-1 { width: min(95vw, 880px); top: -32%; right: -18%; background: radial-gradient(closest-side, rgba(37, 99, 235, 0.6), rgba(37, 99, 235, 0)); animation: drift1 22s ease-in-out infinite alternate; }
.aurora-2 { width: min(90vw, 760px); bottom: -38%; left: -22%; background: radial-gradient(closest-side, rgba(255, 153, 0, 0.28), rgba(255, 153, 0, 0)); animation: drift2 27s ease-in-out infinite alternate; }
.aurora-3 { width: min(100vw, 900px); top: -40%; left: -20%; background: radial-gradient(closest-side, rgba(37, 99, 235, 0.45), rgba(37, 99, 235, 0)); animation: drift1 24s ease-in-out infinite alternate; }
@keyframes drift1 { to { transform: translate3d(-60px, 50px, 0) scale(1.1); } }
@keyframes drift2 { to { transform: translate3d(70px, -40px, 0) scale(1.12); } }
.hero-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px); background-size: 64px 64px; -webkit-mask-image: radial-gradient(ellipse at 50% 35%, #000 15%, transparent 72%); mask-image: radial-gradient(ellipse at 50% 35%, #000 15%, transparent 72%); }
.hero-inner { display: grid; align-items: center; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(24px, 4vw, 64px); }
.hero-kicker { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; font-weight: 500; font-size: 0.98rem; color: var(--on-dark); }
.hero-kicker::before { content: ""; width: 28px; height: 2px; background: var(--accent-color); border-radius: 2px; flex: none; }
.hero-title { font-size: clamp(2rem, 1rem + 3.6vw, 4.1rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1.04; color: #fff; }
.hero-title .hl { color: var(--accent-color); }
.hero-lead { margin-top: 20px; max-width: 34em; font-size: clamp(1rem, 0.95rem + 0.3vw, 1.2rem); color: var(--on-dark); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 26px; font-size: 0.93rem; color: var(--on-dark); }
.hero-proof li { display: flex; align-items: center; gap: 8px; }
.hero-proof .ico { color: var(--accent-color); width: 1.1em; height: 1.1em; }
.hero-channels { display: none; }

.stack { position: relative; width: 100%; max-width: 600px; margin-inline: auto; aspect-ratio: 1 / 0.9; max-height: calc(100svh - var(--header-h) - 140px); }
.device { position: absolute; width: 64%; transform: translate3d(0, var(--py, 0px), 0) rotate(var(--rot, 0deg)); filter: drop-shadow(0 26px 40px rgba(0, 0, 0, 0.5)); }
.dv1 { right: 0; top: 0; --rot: 4deg; }
.dv2 { left: 0; top: 19%; --rot: -3deg; width: 62%; }
.dv3 { right: 7%; bottom: 0; --rot: 1.5deg; width: 68%; }
.chip { position: absolute; z-index: 5; width: 54px; height: 54px; border-radius: 17px; display: grid; place-items: center; background: rgba(255, 255, 255, 0.95); box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35); animation: chipFloat 6s ease-in-out infinite; }
.chip img { width: 34px; height: 34px; border-radius: 8px; object-fit: contain; }
.chip-1 { left: -2%; top: 4%; }
.chip-2 { right: -3%; top: 45%; animation-delay: -2s; }
.chip-3 { left: 4%; bottom: 6%; animation-delay: -4s; }
.chip-4 { right: 28%; top: -4%; animation-delay: -1s; }
@keyframes chipFloat { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }

.macbook { display: block; position: relative; }
.macbook-screen { display: block; position: relative; overflow: hidden; aspect-ratio: 16 / 9; background: #0B1220; border: 8px solid #1B2332; border-bottom-width: 12px; border-radius: 13px 13px 3px 3px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06); }
.macbook-screen img { width: 100%; height: 100%; object-fit: cover; object-position: 10% 0; transition: transform 6s var(--ease-out); }
.macbook::before { content: ""; position: absolute; z-index: 3; top: 3px; left: 50%; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: #0B1220; box-shadow: 0 0 0 1px #2c3748; }
.macbook-base { display: block; position: relative; height: 10px; width: 112%; margin-left: -6%; background: linear-gradient(#E2E8F0, #BAC4D2); border-radius: 0 0 14px 14px; }
.macbook-base::after { content: ""; position: absolute; top: 0; left: 50%; width: 16%; height: 4px; margin-left: -8%; background: #A3AEBD; border-radius: 0 0 6px 6px; }
.macbook-cta { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(15, 23, 42, 0.62); color: #fff; font-weight: 700; opacity: 0; transition: opacity 0.35s var(--ease); }
.macbook-cta::after { content: "\2197"; margin-left: 8px; color: var(--accent-color); }
@media (hover: hover) { .macbook:hover .macbook-cta, .macbook:focus-visible .macbook-cta { opacity: 1; } .macbook:hover .macbook-screen img { transform: scale(1.06); } }
@media (hover: none) { .macbook-cta { inset: auto 8px 8px auto; display: block; background: rgba(15, 23, 42, 0.78); padding: 6px 12px; border-radius: 999px; font-size: 0.78rem; opacity: 1; } }

/* =========================================================
   2. NUMERI
   ========================================================= */
.numeri .sec-head { margin-inline: auto; text-align: center; }
.numeri .eyebrow { justify-content: center; }
.numeri .sec-head p:not(.eyebrow) { margin-inline: auto; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 1000px; margin-inline: auto; }
.stat { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 6px; padding: 6px clamp(12px, 2.4vw, 32px); text-align: center; border-left: 1px solid var(--slate-200); }
.stat:first-child { border-left: 0; }
.stat dd { font-family: var(--font-heading); font-weight: 800; letter-spacing: -0.04em; line-height: 1; font-size: clamp(2.3rem, 1.2rem + 3.6vw, 4.2rem); color: var(--primary-color); font-variant-numeric: tabular-nums; white-space: nowrap; }
.stat dd span { background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat dt { font-size: 0.95rem; color: var(--text-muted); line-height: 1.4; max-width: 14em; margin-inline: auto; }
.tools-label { margin: clamp(24px, 6vh, 56px) 0 14px; text-align: center; font-weight: 500; color: var(--text-muted); font-size: 0.95rem; }
.marquee { display: flex; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; flex: none; min-width: 100%; align-items: center; justify-content: space-around; gap: clamp(32px, 6vw, 64px); padding-right: clamp(32px, 6vw, 64px); animation: marquee 40s linear infinite; }
.marquee-track img { height: 34px; width: auto; max-width: none; border-radius: 6px; filter: grayscale(1); opacity: 0.6; }
@keyframes marquee { to { transform: translate3d(-100%, 0, 0); } }

/* =========================================================
   3. METODO — passo dopo passo
   ========================================================= */
.stepper { max-width: 980px; }
.step-rail { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); margin-bottom: clamp(14px, 2.6vh, 26px); }
.step-progress { position: absolute; top: 21px; left: 12.5%; right: 12.5%; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, 0.12); overflow: hidden; }
.step-progress span { display: block; width: 100%; height: 100%; background: linear-gradient(90deg, var(--secondary-color), var(--accent-color)); transform-origin: left; transform: scaleX(var(--p, 0)); transition: transform 0.6s var(--ease-out); }
.step-node { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; min-height: 44px; padding: 0 4px; text-align: center; color: var(--on-dark); }
.node-n { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; font-family: var(--font-heading); font-weight: 800; font-size: 1.1rem; color: var(--on-dark); background: var(--navy-950); border: 2px solid rgba(255, 255, 255, 0.22); transition: transform 0.5s var(--ease-spring), background-color 0.3s, border-color 0.3s, color 0.3s, box-shadow 0.3s; }
.node-t { font-size: 0.85rem; font-weight: 600; line-height: 1.25; opacity: 0.7; transition: opacity 0.3s, color 0.3s; }
.step-node.is-done .node-n { background: var(--secondary-color); border-color: var(--secondary-color); color: #fff; }
.step-node[aria-selected="true"] .node-n { background: var(--accent-color); border-color: var(--accent-color); color: var(--navy-950); transform: scale(1.14); box-shadow: 0 0 0 6px rgba(255, 153, 0, 0.18), var(--glow-accent); }
.step-node[aria-selected="true"] .node-t { opacity: 1; color: #fff; }
@media (hover: hover) { .step-node:hover .node-n { transform: scale(1.08); } }
.step-card { padding: clamp(18px, 3vw, 32px); border-radius: 24px; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.11); animation: stepIn 0.5s var(--ease-out); }
@keyframes stepIn { from { opacity: 0; transform: translate3d(14px, 0, 0); } to { opacity: 1; transform: none; } }
.step-time { font-size: 0.82rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent-color); margin-bottom: 8px; }
.step-card h3 { font-size: clamp(1.4rem, 1.1rem + 1.3vw, 2.1rem); margin-bottom: 14px; }
.roles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.role { padding: 14px 16px; border-radius: 16px; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.08); }
.role span { display: inline-block; margin-bottom: 4px; padding: 2px 10px; border-radius: 999px; font-size: 0.74rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.role-you span { color: var(--navy-950); background: #CBD5E1; }
.role-me span { color: var(--navy-950); background: var(--accent-color); }
.role p { font-size: 0.97rem; line-height: 1.5; color: #E2E8F0; }
.step-note { display: flex; align-items: center; gap: 10px; margin-top: 14px; font-size: 0.95rem; font-weight: 600; color: #fff; }
.step-note .ico { color: var(--accent-color); width: 1.1em; height: 1.1em; }
.step-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: clamp(12px, 2.4vh, 22px); }
.pills li { padding: 6px 14px; font-size: 0.85rem; font-weight: 600; color: var(--on-dark); border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 999px; }

/* =========================================================
   3. PERCHE' — la storia
   ========================================================= */
.perche-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(20px, 5vw, 80px); align-items: center; }
.perche-copy > p:not(.eyebrow) { margin-top: 16px; font-size: clamp(1rem, 0.95rem + 0.3vw, 1.15rem); color: var(--text-main); max-width: 36em; }
.sectors { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.sectors li { padding: 7px 14px; font-size: 0.88rem; font-weight: 600; color: var(--primary-color); background: #fff; border: 1px solid var(--slate-200); border-radius: 999px; box-shadow: var(--shadow-sm); }
.pains { display: grid; gap: 12px; }
.pains-title { font-family: var(--font-heading); font-weight: 800; font-size: 0.82rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); }
.pain { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; align-items: start; padding: 16px 18px; background: #fff; border: 1px solid var(--slate-200); border-radius: 20px; box-shadow: var(--shadow-sm); }
.pain-n { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; font-family: var(--font-heading); font-weight: 800; color: var(--accent-color); background: var(--navy-950); }
.pain h3 { font-size: 1.1rem; margin-bottom: 2px; }
.pain p { font-size: 0.95rem; line-height: 1.5; color: var(--text-main); }
.pains-end { font-size: 1.02rem; font-weight: 600; color: var(--primary-color); }
.pains-end a { color: var(--secondary-color); text-decoration: underline; text-underline-offset: 3px; }

/* =========================================================
   4. CONFRONTO
   ========================================================= */
.cmp-tabs { display: none; }
.compare-wrap { max-width: 1040px; margin-inline: auto; }
.compare-table { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; border: 1px solid var(--slate-200); border-radius: 24px; overflow: hidden; box-shadow: var(--shadow-sm); font-size: 0.98rem; }
.compare-table th, .compare-table td { padding: clamp(10px, 1.8vh, 18px) 20px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--slate-200); line-height: 1.45; }
.compare-table thead th { font-family: var(--font-heading); font-weight: 800; color: var(--primary-color); background: var(--neutral-bg); }
.compare-table tbody tr:last-child th, .compare-table tbody tr:last-child td { border-bottom: 0; }
.compare-table tbody th { width: 21%; font-family: var(--font-heading); font-weight: 800; color: var(--primary-color); }
.compare-table .cmp-head-me { background: var(--navy-950); color: #fff; }
.compare-table .cmp-head-me small { display: block; margin-top: 2px; font-family: var(--font-body); font-weight: 500; font-size: 0.76rem; color: var(--accent-color); }
.compare-table .cmp-yes { background: rgba(37, 99, 235, 0.07); color: var(--primary-color); font-weight: 600; }
.compare-table .cmp-no { color: var(--text-muted); }
.compare-table td::before { display: inline-block; width: 1.3em; font-weight: 800; }
.compare-table .cmp-yes::before { content: "\2713"; color: #16A34A; }
.compare-table .cmp-no::before { content: "\2715"; color: #DC2626; }

/* =========================================================
   5. SERVIZI
   ========================================================= */
.svc-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 20px); }
.svc { position: relative; isolation: isolate; display: flex; flex-direction: column; gap: 12px; overflow: hidden; padding: clamp(20px, 2.2vw, 30px); border-radius: 26px; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.1); }
.svc:nth-child(1) { background: linear-gradient(160deg, rgba(37, 99, 235, 0.24), rgba(255, 255, 255, 0.03) 62%); }
.svc:nth-child(2) { background: linear-gradient(160deg, rgba(255, 153, 0, 0.17), rgba(255, 255, 255, 0.03) 62%); }
.svc:nth-child(3) { background: linear-gradient(160deg, rgba(37, 99, 235, 0.16), rgba(255, 255, 255, 0.03) 62%); }
.svc:nth-child(4) { background: linear-gradient(160deg, rgba(255, 153, 0, 0.2), rgba(255, 255, 255, 0.03) 62%); }
.svc::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity 0.4s; background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 255, 255, 0.12), transparent 60%); }
@media (hover: hover) { .svc:hover::before { opacity: 1; } }
.svc-icon { width: 50px; height: 50px; border-radius: 15px; display: grid; place-items: center; background: rgba(255, 255, 255, 0.08); color: var(--accent-color); }
.svc-icon .ico { width: 24px; height: 24px; }
.svc h3 { font-size: clamp(1.15rem, 1rem + 0.5vw, 1.4rem); }
.svc > p { font-size: 0.97rem; color: var(--on-dark); }
.ticks { display: grid; gap: 8px; margin: 2px 0 8px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; color: #E2E8F0; font-size: 0.93rem; line-height: 1.4; }
.ticks .ico { width: 1.05em; height: 1.05em; margin-top: 0.2em; color: var(--accent-color); }
.carousel-dots { display: none; }

/* =========================================================
   VIEWER (marketplace + siti web)
   ========================================================= */
.sec-head--row { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(12px, 3vw, 48px); align-items: end; max-width: none; }
.sec-head--row p:not(.eyebrow) { margin-top: 0; }
.v-select { display: flex; gap: 8px; margin-bottom: clamp(12px, 2.2vh, 22px); overflow-x: auto; scrollbar-width: none; padding: 2px 2px 4px; }
.v-select::-webkit-scrollbar { display: none; }
.v-opt {
    flex: 1 0 auto; min-width: 128px; min-height: 52px; display: flex; flex-direction: column; justify-content: center; gap: 1px; padding: 8px 16px; text-align: left; border-radius: 16px;
    background: #fff; border: 1.5px solid var(--slate-200); transition: background-color 0.25s, border-color 0.25s, transform 0.25s var(--ease-out), box-shadow 0.25s;
}
.v-name { font-family: var(--font-heading); font-weight: 800; font-size: 0.97rem; color: var(--primary-color); line-height: 1.2; white-space: nowrap; }
.v-meta { font-size: 0.78rem; color: var(--text-muted); line-height: 1.25; white-space: nowrap; }
.v-opt:active { transform: scale(0.97); }
.v-opt[aria-selected="true"] { background: var(--navy-950); border-color: var(--navy-950); box-shadow: var(--shadow-md); }
.v-opt[aria-selected="true"] .v-name { color: #fff; }
.v-opt[aria-selected="true"] .v-meta { color: var(--accent-color); }
.sec-dark .v-opt { background: rgba(255, 255, 255, 0.05); border-color: rgba(255, 255, 255, 0.14); }
.sec-dark .v-name { color: #fff; }
.sec-dark .v-meta { color: var(--on-dark); }
.sec-dark .v-opt[aria-selected="true"] { background: var(--accent-color); border-color: var(--accent-color); }
.sec-dark .v-opt[aria-selected="true"] .v-name, .sec-dark .v-opt[aria-selected="true"] .v-meta { color: var(--navy-950); }
.cs-panel, .ws-panel { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(16px, 3vw, 44px); align-items: center; animation: panelIn 0.5s var(--ease-out); }
@keyframes panelIn { from { opacity: 0; transform: translate3d(0, 12px, 0); } to { opacity: 1; transform: none; } }

/* case study */
.cs-slider { width: min(100%, max(300px, calc((100svh - 410px) * 1.41))); margin-inline: auto; border-radius: 18px; background: #F5F3EF; border: 1px solid var(--slate-200); overflow: hidden; box-shadow: var(--shadow-md); }
.cs-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.cs-track::-webkit-scrollbar { display: none; }
.cs-slide { position: relative; flex: 0 0 100%; scroll-snap-align: start; scroll-snap-stop: always; aspect-ratio: 960 / 678; background: #F5F3EF; }
.cs-slide img { width: 100%; height: 100%; object-fit: contain; }
.cs-pill { position: absolute; right: 8px; bottom: 8px; padding: 4px 10px; font-size: 0.72rem; font-weight: 700; color: var(--primary-color); background: rgba(255, 255, 255, 0.94); border: 1px solid var(--slate-200); border-radius: 999px; }
.cs-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 12px; }
.cs-tag { min-height: 44px; padding: 0 18px; display: inline-flex; align-items: center; font-size: 0.92rem; font-weight: 600; color: var(--primary-color); background: #fff; border: 1.5px solid #CBD5E1; border-radius: 999px; transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.2s var(--ease-out); }
.cs-tag:active { transform: scale(0.96); }
.cs-tag[aria-selected="true"] { color: #fff; background: var(--primary-color); border-color: var(--primary-color); }
.cs-tag.is-static { min-height: 34px; color: var(--secondary-color); background: rgba(37, 99, 235, 0.08); border-color: transparent; }
.cs-ads { margin-top: 12px; padding: 12px 14px; background: #fff; border: 1px dashed #CBD5E1; border-radius: 14px; }
.cs-ads-title { font-size: 0.85rem; font-weight: 700; color: var(--primary-color); margin-bottom: 8px; line-height: 1.35; }
.cs-ads-title span { display: block; font-weight: 500; color: var(--text-muted); }
.cs-ads dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.cs-ads dt { font-size: 0.74rem; color: var(--text-muted); line-height: 1.2; }
.cs-ads dd { font-family: var(--font-heading); font-weight: 800; font-size: 1rem; color: var(--primary-color); }
.work-tag { align-self: flex-start; display: inline-block; font-size: 0.82rem; font-weight: 600; color: var(--secondary-color); background: rgba(37, 99, 235, 0.08); padding: 5px 14px; border-radius: 999px; margin-bottom: 12px; }
.sec-dark .work-tag { color: var(--accent-color); background: rgba(255, 153, 0, 0.12); }
.cs-info h3, .ws-info h3 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem); margin-bottom: 12px; }
.cs-sales { display: inline-flex; align-items: baseline; gap: 8px; margin-bottom: 14px; padding: 8px 16px; font-size: 0.95rem; font-weight: 600; color: var(--primary-color); background: rgba(255, 153, 0, 0.14); border-left: 3px solid var(--accent-color); border-radius: 8px; }
.cs-sales strong { font-family: var(--font-heading); font-weight: 800; font-size: 1.7rem; letter-spacing: -0.03em; line-height: 1; }
.cs-desc { font-size: 1.02rem; line-height: 1.55; color: var(--text-main); }
.cs-badge { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; padding: 7px 14px 7px 10px; font-size: 0.86rem; font-weight: 700; color: var(--navy-950); background: rgba(255, 153, 0, 0.18); border: 1px solid rgba(255, 153, 0, 0.55); border-radius: 999px; }
.cs-badge .ico { width: 1.25em; height: 1.25em; color: #B45309; }
.cs-points { display: grid; gap: 8px; margin-top: 12px; }
.cs-points li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.96rem; line-height: 1.45; color: var(--primary-color); font-weight: 500; }
.cs-points .ico { width: 1.1em; height: 1.1em; margin-top: 0.22em; color: #16A34A; }
.cs-cta, .ws-cta { margin-top: 18px; }
.cs-note { max-width: 760px; margin-top: clamp(12px, 2.4vh, 22px); font-size: 0.84rem; line-height: 1.5; color: var(--text-muted); }

/* siti web */
.ws-mock { width: min(100%, max(300px, calc((100svh - 420px) * 1.6))); margin-inline: auto; filter: drop-shadow(0 26px 40px rgba(0, 0, 0, 0.5)); }
.ws-mock .macbook-screen { aspect-ratio: 16 / 10; }
.work-url { display: inline-block; margin-bottom: 14px; color: var(--accent-color); font-weight: 600; font-size: 0.97rem; padding: 4px 0; }
.work-story { display: grid; gap: 12px; margin-bottom: 16px; }
.work-story dt { font-family: var(--font-heading); font-weight: 800; font-size: 0.93rem; color: #fff; margin-bottom: 2px; }
.work-story dd { font-size: 0.98rem; line-height: 1.5; color: var(--on-dark); }
.work-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.work-chips li { font-size: 0.8rem; font-weight: 600; color: #fff; background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.14); padding: 5px 12px; border-radius: 10px; }

/* =========================================================
   8. CHI SONO
   ========================================================= */
.about-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 6vw, 96px); align-items: center; }
.about-photo { position: relative; margin: 0 14px 14px 0; max-width: min(440px, calc((100svh - 220px))); }
.about-photo::before { content: ""; position: absolute; inset: 0; border: 2px solid var(--accent-color); border-radius: 30px; transform: translate(14px, 14px); }
.about-frame { position: relative; z-index: 1; aspect-ratio: 1; overflow: hidden; border-radius: 30px; background: var(--slate-200); box-shadow: var(--shadow-md); }
.about-frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; }
.about-badge { position: absolute; z-index: 2; left: -12px; bottom: 28px; display: flex; align-items: center; gap: 12px; padding: 12px 18px; border-radius: 18px; background: var(--navy-950); color: #fff; box-shadow: var(--shadow-md); }
.about-badge strong { font-family: var(--font-heading); font-size: 2.1rem; line-height: 1; color: var(--accent-color); font-weight: 800; }
.about-badge span { font-size: 0.88rem; line-height: 1.25; font-weight: 500; }
.about-copy > p:not(.eyebrow) { margin-top: 16px; color: var(--text-main); font-size: 1.06rem; }
.faq { margin-top: clamp(16px, 3vh, 28px); border-top: 1px solid var(--slate-200); }
.faq-item { border-bottom: 1px solid var(--slate-200); }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 54px; padding: 10px 0; font-family: var(--font-heading); font-weight: 800; font-size: 1.02rem; color: var(--primary-color); cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: ""; flex: none; width: 14px; height: 14px; background: linear-gradient(var(--accent-color), var(--accent-color)) center / 100% 2.5px no-repeat, linear-gradient(var(--accent-color), var(--accent-color)) center / 2.5px 100% no-repeat; transition: transform 0.4s var(--ease-out); }
.faq-item[open] summary::after { transform: rotate(135deg); }
.faq-body { padding: 0 0 16px; color: var(--text-main); animation: panelIn 0.4s var(--ease-out); font-size: 0.98rem; }
.logo-meaning { display: grid; gap: 8px; }
.logo-meaning li { position: relative; padding-left: 20px; }
.logo-meaning li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 8px; height: 8px; border-radius: 50%; background: var(--accent-color); }

/* =========================================================
   9. CONTATTI + FOOTER
   ========================================================= */
.contact { justify-content: flex-start; }
.contact-bg { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.contact .container.contact-grid { flex: 1; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(20px, 5vw, 80px); align-items: center; }
.contact-info > p:not(.eyebrow) { margin-top: 14px; font-size: 1.1rem; max-width: 30em; }
.assure { display: grid; gap: 10px; margin: 20px 0 24px; }
.assure li { display: flex; align-items: center; gap: 12px; color: #E2E8F0; }
.assure .ico { color: var(--accent-color); width: 1.1em; height: 1.1em; }
.contact-links { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.contact-mail { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; font-weight: 600; font-size: 1.08rem; color: #fff; word-break: break-word; }
.contact-mail .ico { color: var(--accent-color); }
@media (hover: hover) { .contact-mail:hover { color: var(--accent-color); } }
.contact-form { background: #fff; color: var(--text-main); border-radius: 26px; padding: clamp(18px, 2.6vw, 32px); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.6); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.field { margin-bottom: 14px; }
.field label { display: block; margin-bottom: 6px; font-weight: 600; font-size: 0.92rem; color: var(--primary-color); }
.field input, .field select, .field textarea { width: 100%; min-height: 50px; padding: 12px 14px; font-size: 1rem; background: var(--neutral-bg); border: 1.5px solid var(--slate-200); border-radius: 13px; color: var(--primary-color); transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s; -webkit-appearance: none; appearance: none; }
.field textarea { min-height: 88px; resize: vertical; line-height: 1.5; }
.field select { padding-right: 42px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%231E293B' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; }
.field input::placeholder, .field textarea::placeholder { color: #94A3B8; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; background: #fff; border-color: var(--secondary-color); box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.14); }
.field.has-error input, .field.has-error textarea { border-color: #DC2626; }
.field-opt { font-weight: 400; font-size: 0.82em; color: #94A3B8; }
.field input[type="file"] { padding: 9px 12px; font-size: 0.9rem; cursor: pointer; background: var(--neutral-bg); }
.field input[type="file"]::file-selector-button { margin-right: 12px; padding: 6px 14px; border: 0; border-radius: 8px; background: var(--slate-200); color: var(--primary-color); font-weight: 600; cursor: pointer; transition: background 0.2s; }
.field input[type="file"]::file-selector-button:hover { background: #CBD5E1; }
.turnstile-box { margin-bottom: 14px; min-height: 65px; display: flex; justify-content: flex-start; }
.consent { display: flex; align-items: flex-start; gap: 12px; margin: 2px 0 14px; font-size: 0.86rem; line-height: 1.45; color: var(--text-main); cursor: pointer; }
.consent input { flex: none; width: 22px; height: 22px; margin-top: 1px; accent-color: var(--accent-color); }
.consent a { color: var(--secondary-color); text-decoration: underline; text-underline-offset: 2px; }
.form-status { margin-bottom: 12px; font-size: 0.93rem; font-weight: 500; color: #B91C1C; }
.form-status:empty { display: none; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-success { text-align: center; padding: 24px 8px; animation: panelIn 0.6s var(--ease-out); }
.form-success .tick { width: 72px; height: 72px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center; background: rgba(37, 99, 235, 0.1); color: var(--secondary-color); }
.form-success .tick svg { width: 36px; height: 36px; }
.form-success h3 { color: var(--primary-color); font-size: 1.6rem; margin-bottom: 10px; }
.form-success p { color: var(--text-main); margin-bottom: 8px; }
.form-success .sign { margin-top: 16px; font-weight: 700; color: var(--primary-color); }
.site-footer { position: relative; z-index: 2; margin-top: clamp(14px, 3vh, 28px); padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, 0.08); font-size: 0.86rem; color: #94A3B8; }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 24px; }
.footer-links { display: flex; align-items: center; gap: 4px 20px; flex-wrap: wrap; }
.footer-links a { display: inline-flex; align-items: center; min-height: 36px; color: var(--on-dark); }
@media (hover: hover) { .footer-links a:hover { color: var(--accent-color); } }

.floating-wa { position: fixed; z-index: 900; right: calc(16px + env(safe-area-inset-right)); bottom: calc(16px + env(safe-area-inset-bottom)); width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--wa-green); color: #fff; box-shadow: 0 10px 26px rgba(37, 211, 102, 0.45); animation: waPulse 2.6s infinite; transition: transform 0.3s var(--ease-out), opacity 0.3s, visibility 0.3s; }
.floating-wa .ico { width: 29px; height: 29px; }
.floating-wa:active { transform: scale(0.94); }
@media (hover: hover) { .floating-wa:hover { transform: scale(1.08) translateY(-3px); animation-play-state: paused; } }
body.menu-open .floating-wa, body.wa-hide .floating-wa { opacity: 0; visibility: hidden; pointer-events: none; }
@keyframes waPulse { 0% { box-shadow: 0 10px 26px rgba(37, 211, 102, 0.45), 0 0 0 0 rgba(37, 211, 102, 0.45); } 70%, 100% { box-shadow: 0 10px 26px rgba(37, 211, 102, 0.45), 0 0 0 18px rgba(37, 211, 102, 0); } }

/* =========================================================
   PAGINE SEMPLICI (privacy, 404): scorrimento normale
   ========================================================= */
.page-simple { background: #fff; }
.page-simple main { padding-top: calc(var(--header-h) + env(safe-area-inset-top) + 40px); padding-bottom: 80px; min-height: 70vh; }
.legal { max-width: 760px; }
.legal h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.2rem); font-weight: 800; letter-spacing: -0.03em; margin-bottom: 12px; }
.legal h2 { font-size: 1.35rem; letter-spacing: -0.01em; margin: 30px 0 10px; }
.legal p, .legal li { color: var(--text-main); margin-bottom: 10px; }
.legal ul { list-style: disc; padding-left: 22px; margin-bottom: 14px; }
.legal a { color: var(--secondary-color); text-decoration: underline; text-underline-offset: 2px; }
.legal .meta { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 24px; }
.notfound { text-align: center; max-width: 560px; margin-inline: auto; }
.notfound .big { font-family: var(--font-heading); font-weight: 800; font-size: clamp(5rem, 22vw, 9rem); line-height: 1; letter-spacing: -0.05em; color: var(--primary-color); }
.notfound p { margin: 16px 0 28px; }
.page-simple .site-footer { background: #080C16; margin: 0; padding: 24px 0 calc(24px + env(safe-area-inset-bottom)); }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (min-width: 1500px) { :root { --container-width: 1260px; } }

@media (max-width: 1099px) {
    .svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .nav-list { gap: 14px; }
    .nav-list a { font-size: 0.9rem; }
}

@media (max-width: 960px) {
    .header-cta { display: none; }
    .menu-toggle { display: grid; place-items: center; position: relative; z-index: 3; width: 48px; height: 48px; margin: 0 -8px 0 auto; }
    .menu-toggle span { position: absolute; width: 26px; height: 2.5px; border-radius: 2px; background: #fff; transition: transform 0.4s var(--ease-out); }
    .menu-toggle span:nth-child(1) { transform: translateY(-4.5px); }
    .menu-toggle span:nth-child(2) { transform: translateY(4.5px); }
    .menu-open .menu-toggle span:nth-child(1) { transform: rotate(45deg); }
    .menu-open .menu-toggle span:nth-child(2) { transform: rotate(-45deg); }
    .nav {
        position: fixed; inset: 0; z-index: 1; width: 100%; height: 100vh; height: 100dvh; margin: 0; flex-direction: column; align-items: stretch; justify-content: center; gap: 24px; overflow-y: auto; overscroll-behavior: contain;
        padding: calc(var(--header-h) + env(safe-area-inset-top) + 12px) var(--gutter) calc(24px + env(safe-area-inset-bottom));
        background: radial-gradient(600px 380px at 90% 0%, rgba(37, 99, 235, 0.4), transparent 70%), radial-gradient(500px 340px at 0% 100%, rgba(255, 153, 0, 0.18), transparent 70%), var(--navy-950);
        opacity: 0; visibility: hidden; transform: translateY(-10px); transition: opacity 0.35s var(--ease), transform 0.5s var(--ease-out), visibility 0s linear 0.35s;
    }
    .nav.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
    .nav-list { flex-direction: column; gap: 0; }
    .nav-list li { opacity: 0; transform: translateY(16px); transition: opacity 0.5s var(--ease-out), transform 0.6s var(--ease-out); }
    .nav.is-open .nav-list li { opacity: 1; transform: none; }
    .nav.is-open .nav-list li:nth-child(1) { transition-delay: 0.06s; } .nav.is-open .nav-list li:nth-child(2) { transition-delay: 0.1s; } .nav.is-open .nav-list li:nth-child(3) { transition-delay: 0.14s; }
    .nav.is-open .nav-list li:nth-child(4) { transition-delay: 0.18s; } .nav.is-open .nav-list li:nth-child(5) { transition-delay: 0.22s; } .nav.is-open .nav-list li:nth-child(6) { transition-delay: 0.26s; }
    .nav-list a { padding: 12px 0; font-family: var(--font-heading); font-weight: 800; font-size: clamp(1.6rem, 7vw, 2.3rem); letter-spacing: -0.03em; color: #fff; border-bottom: 1px solid rgba(255, 255, 255, 0.09); }
    .nav-list a::after { display: none; }
    .nav-extra { display: flex; flex-direction: column; gap: 6px; }
    .nav-mail { display: flex; align-items: center; justify-content: center; min-height: 48px; color: var(--on-dark); }

    .hero-inner, .about-grid { grid-template-columns: 1fr; }
    .hero-visual { max-width: 460px; width: 100%; margin-inline: auto; }
    .about-grid { gap: 20px; }
    .about-photo { max-width: 240px; }
    .sec-head--row { grid-template-columns: 1fr; gap: 8px; }
    .cs-panel, .ws-panel { gap: 18px; }
    .cs-slider, .ws-mock { width: 100%; }
    .dotnav { right: 4px; }
}

@media (max-width: 820px) {
    /* confronto: una colonna alla volta, scelta con i tab */
    .cmp-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; margin-bottom: 12px; background: var(--neutral-bg); border: 1px solid var(--slate-200); border-radius: 16px; }
    .cmp-tabs button { min-height: 44px; border-radius: 12px; font-weight: 700; font-size: 0.95rem; color: var(--text-muted); transition: background-color 0.25s, color 0.25s; }
    .cmp-tabs button[aria-selected="true"] { background: var(--navy-950); color: #fff; }
    .cmp-tabs button[aria-selected="true"][data-col="me"] { background: var(--secondary-color); }
    .compare-table, .compare-table tbody, .compare-table tr, .compare-table th, .compare-table td { display: block; }
    .compare-table { background: transparent; border: 0; border-radius: 0; box-shadow: none; overflow: visible; }
    .compare-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
    .compare-table tbody tr { margin-bottom: 8px; background: #fff; border: 1px solid var(--slate-200); border-radius: 16px; overflow: hidden; }
    .compare-table tbody th { width: auto; padding: 8px 14px; font-size: 0.82rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-muted); background: var(--neutral-bg); border-bottom: 1px solid var(--slate-200); }
    .compare-table td { padding: 10px 14px; font-size: 0.97rem; border-bottom: 0; }
    .compare-wrap[data-show="ag"] [data-col]:not([data-col="ag"]),
    .compare-wrap[data-show="me"] [data-col]:not([data-col="me"]),
    .compare-wrap[data-show="fd"] [data-col]:not([data-col="fd"]) { display: none; }
    .compare-table .cmp-yes { background: rgba(37, 99, 235, 0.08); }

    .svc-grid { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); margin-inline: calc(-1 * var(--gutter)); padding: 4px var(--gutter) 6px; scrollbar-width: none; align-items: stretch; position: relative; }
    .svc-grid::-webkit-scrollbar { display: none; }
    .svc { flex: 0 0 min(84%, 360px); scroll-snap-align: start; scroll-snap-stop: always; }
    .carousel-dots { display: flex; justify-content: center; margin-top: 6px; }
    .carousel-dots button { width: 32px; height: 32px; display: grid; place-items: center; }
    .carousel-dots button::before { content: ""; width: 8px; height: 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.3); transition: width 0.3s var(--ease-out), background-color 0.3s; }
    .carousel-dots button[aria-current="true"]::before { width: 22px; background: var(--accent-color); }
}

@media (max-width: 700px) {
    .contact-grid { grid-template-columns: 1fr; }
    .cs-panel, .ws-panel { grid-template-columns: 1fr; gap: 14px; }
    .cs-slider, .ws-mock { width: min(100%, 560px); }
    .cs-info, .ws-info { max-width: 620px; margin-inline: auto; width: 100%; }
    .cs-tags { justify-content: flex-start; }
    .hero-visual { display: none; }
    .hero-channels { display: flex; gap: 10px; margin-top: 22px; }
    .hero-channels li { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px; background: rgba(255, 255, 255, 0.94); }
    .hero-channels img { width: 28px; height: 28px; object-fit: contain; border-radius: 6px; }
    .hero-inner { align-content: center; }
    .hero-actions .btn { flex: 1 1 100%; }
}

@media (max-width: 640px) {
    body { font-size: 1rem; }
    .sec { padding-bottom: calc(60px + env(safe-area-inset-bottom)); }
    .stats { grid-template-columns: repeat(2, 1fr); row-gap: 18px; }
    .stat { padding: 4px 8px; }
    .stat:nth-child(odd) { border-left: 0; }
    .stat dt { font-size: 0.85rem; }
    .step-rail { margin-bottom: 14px; }
    .node-t { display: none; }
    .step-node[aria-selected="true"] .node-t { display: block; position: absolute; top: 54px; width: 130px; left: 50%; margin-left: -65px; }
    .step-node { min-height: 46px; }
    .step-card { margin-top: 26px; }
    .roles { grid-template-columns: 1fr; gap: 8px; }
    .role { padding: 10px 12px; }
    .role p { font-size: 0.93rem; line-height: 1.42; }
    .step-actions .btn { flex: 1 1 auto; }
    .step-actions .step-prev { flex: 0 0 auto; }
    .pills { display: none; }
    .v-opt { min-width: 118px; padding: 8px 14px; }
    .field-row { grid-template-columns: 1fr; }
    .field { margin-bottom: 10px; }
    .field input, .field select { min-height: 48px; }
    .about-photo { max-width: 120px; margin: 0 8px 8px 0; }
    .about-photo::before { border-radius: 22px; transform: translate(8px, 8px); }
    .about-frame { border-radius: 22px; }
    .about-badge { display: none; }
    .contact-grid { gap: 16px; }
    .assure { margin: 14px 0 16px; gap: 6px; }
    .contact-links .btn { width: 100%; }
    .cs-info h3, .ws-info h3 { font-size: 1.5rem; margin-bottom: 8px; }
    .cs-desc { font-size: 0.97rem; }
    .cs-cta, .ws-cta { width: 100%; }
    .work-story { gap: 8px; margin-bottom: 12px; }
    .work-chips li:nth-child(n+3) { display: none; }
}

@media (max-height: 680px) and (min-width: 701px) {
    .stack { max-height: 52svh; }
    .hero-proof { display: none; }
}


/* Schermi bassi (laptop 768px di altezza): ogni sezione resta in una schermata */
@media (max-height: 840px) and (min-width: 701px) {
    :root { --header-h: 60px; }
    .sec { padding-bottom: 60px; }
    h2 { font-size: clamp(1.55rem, 0.8rem + 2.1vw, 2.5rem); }
    .eyebrow { margin-bottom: 8px; }
    .sec-head { margin-bottom: 14px; }
    .metodo .sec-head p:not(.eyebrow), .servizi .sec-head p:not(.eyebrow), .confronto .sec-head p:not(.eyebrow) { display: none; }
    .pills { display: none; }
    .step-card { padding: 18px 22px; }
    .step-card h3 { margin-bottom: 10px; }
    .step-actions { margin-top: 12px; }
    .step-note { margin-top: 10px; }
    .svc { padding: 20px 22px; gap: 10px; }
    .svc > p { display: none; }
    .compare-table th, .compare-table td { padding: 10px 18px; }
    .v-select { margin-bottom: 10px; }
    .v-opt { min-height: 46px; padding: 6px 14px; }
    .cs-tags { margin-top: 8px; }
    .cs-note { margin-top: 8px; font-size: 0.78rem; }
    .cs-info h3, .ws-info h3 { font-size: 1.7rem; margin-bottom: 8px; }
    .cs-sales { margin-bottom: 8px; }
    .cs-cta, .ws-cta { margin-top: 12px; }
    .work-story { gap: 8px; margin-bottom: 10px; }
    .work-url { margin-bottom: 8px; }
    .ws-info .work-chips li:nth-child(n+4) { display: none; }
    .sec-head--row p:not(.eyebrow) { font-size: 0.95rem; }
    .stat dd { font-size: clamp(2.2rem, 1rem + 3vw, 3.4rem); }
    .tools-label { margin: 22px 0 10px; }
    .about-photo { max-width: min(380px, calc(100svh - 260px)); }
    .faq-item summary { min-height: 46px; }
    .contact-info > p:not(.eyebrow) { font-size: 1.02rem; }
    .assure { margin: 14px 0 16px; }
    .field { margin-bottom: 10px; }
    .field textarea { min-height: 72px; }
}


/* Mobile 390px: una schermata per sezione, niente muri di testo */
@media (max-width: 640px) {
    :root { --header-h: 58px; }
    .sec { padding-top: calc(var(--header-h) + env(safe-area-inset-top) + 6px); padding-bottom: calc(58px + env(safe-area-inset-bottom)); }
    h2 { font-size: clamp(1.55rem, 1.1rem + 2.2vw, 1.9rem); }
    .eyebrow { margin-bottom: 8px; font-size: 0.74rem; }
    .sec-head { margin-bottom: 12px; }
    .metodo .sec-head p:not(.eyebrow), .confronto .sec-head p:not(.eyebrow), .servizi .sec-head p:not(.eyebrow),
    .marketplace .sec-head p:not(.eyebrow), .siti .sec-head p:not(.eyebrow) { display: none; }
    .brand img { height: 36px; }
    .dotnav { display: none; }

    .hero-lead { margin-top: 14px; font-size: 1rem; }
    .hero-actions { margin-top: 20px; }
    .hero-proof { margin-top: 18px; gap: 6px 16px; font-size: 0.88rem; }

    .step-card { padding: 16px; margin-top: 30px; }
    .step-card h3 { font-size: 1.35rem; margin-bottom: 8px; }
    .step-time { font-size: 0.74rem; margin-bottom: 4px; }
    .step-note { font-size: 0.9rem; margin-top: 8px; }
    .step-actions { margin-top: 12px; }
    .step-actions .btn { min-height: 46px; font-size: 0.95rem; }

    .cmp-tabs { margin-bottom: 8px; }
    .compare-table tbody tr { margin-bottom: 6px; }
    .compare-table tbody th { padding: 6px 12px; font-size: 0.76rem; }
    .compare-table td { padding: 8px 12px; font-size: 0.94rem; line-height: 1.38; }
    .sec-cta { margin-top: 10px; }
    .sec-cta .btn { width: 100%; min-height: 48px; }

    .svc { padding: 18px; gap: 10px; }
    .svc > p { font-size: 0.93rem; }

    .v-select { margin-bottom: 8px; }
    .v-opt { min-height: 46px; }
    .cs-info .work-tag, .ws-info .work-tag { display: none; }
    .cs-panel, .ws-panel { gap: 10px; }
    .cs-tags { margin-top: 8px; gap: 6px; }
    .cs-tag { min-height: 42px; padding: 0 14px; font-size: 0.88rem; }
    .cs-info h3, .ws-info h3 { display: inline; font-size: 1.35rem; margin: 0; }
    .cs-info, .ws-info { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
    .cs-sales { margin: 0; padding: 4px 10px; font-size: 0.82rem; }
    .cs-sales strong { font-size: 1.15rem; }
    .cs-desc { flex: 1 1 100%; font-size: 0.93rem; line-height: 1.45; }
    .cs-badge { display: none; }
    .cs-points { flex: 1 1 100%; margin-top: 0; }
    .cs-points li { font-size: 0.88rem; }
    .cs-cta, .ws-cta { flex: 1 1 100%; margin-top: 6px; min-height: 48px; }
    .cs-note { margin-top: 8px; font-size: 0.72rem; line-height: 1.4; }
    .cs-ads { margin-top: 8px; padding: 10px 12px; }
    .cs-ads dd { font-size: 0.92rem; }
    .work-url { margin: 0; flex: 1 1 100%; font-size: 0.9rem; padding: 0; }
    .ws-info .work-story { flex: 1 1 100%; gap: 6px; margin: 4px 0 2px; }
    .work-story dd { font-size: 0.9rem; line-height: 1.4; }
    .work-chips { display: none; }

    .about-grid { gap: 12px; }
    .about-copy > p:not(.eyebrow) { font-size: 0.97rem; margin-top: 10px; }
    .faq { margin-top: 12px; }
    .faq-item summary { min-height: 48px; font-size: 0.95rem; padding: 6px 0; }
    .faq-item:nth-child(n+4) { display: none; }

    .contact-info > p:not(.eyebrow) { display: none; }
    .assure { display: none; }
    .contact-links { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-top: 12px; }
    .contact-links .btn { width: auto; flex: 1 1 auto; min-height: 50px; }
    .contact-mail { font-size: 0.98rem; }
    .contact-form { padding: 16px; border-radius: 22px; }
    .field label { font-size: 0.85rem; margin-bottom: 4px; }
    .field input, .field select { min-height: 46px; padding: 10px 12px; }
    .field textarea { min-height: 64px; }
    .consent { font-size: 0.8rem; margin-bottom: 10px; }
    .site-footer { margin-top: 12px; padding-top: 8px; font-size: 0.78rem; }
}


@media (max-width: 960px) { .perche-grid { grid-template-columns: 1fr; gap: 16px; } }
@media (max-width: 640px) {
    .perche h2 { font-size: 1.5rem; }
    .perche-copy > p:not(.eyebrow) { margin-top: 8px; font-size: 0.92rem; line-height: 1.45; }
    .sectors { margin-top: 12px; gap: 6px; }
    .sectors li { padding: 5px 11px; font-size: 0.8rem; }
    .pains { gap: 6px; }
    .pain { grid-template-columns: 30px minmax(0, 1fr); gap: 10px; padding: 9px 12px; border-radius: 14px; }
    .pain-n { width: 30px; height: 30px; border-radius: 9px; font-size: 0.9rem; }
    .pain h3 { font-size: 1rem; }
    .pain p { font-size: 0.84rem; line-height: 1.38; }
    .pains-title { display: none; }
    .pains-end { font-size: 0.95rem; }
}
@media (max-height: 840px) and (min-width: 961px) {
    .pain { padding: 12px 16px; }
    .pain p { font-size: 0.9rem; }
    .perche-copy > p:not(.eyebrow) { font-size: 1.02rem; }
}

/* =========================================================
   MOVIMENTO RIDOTTO + RETI DI SICUREZZA
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; }
    .js .rv { opacity: 1 !important; transform: none !important; }
    .pl-m { stroke-dashoffset: 0; }
    .pl-arrow, .pl-tagline { opacity: 1; transform: none; }
    .pl-glow { opacity: 0.5; }
    .pl-bar span { transform: scaleX(1); }
    .marquee { overflow-x: auto; }
    .marquee-track, .floating-wa, .chip { animation: none; }
}
.js-failed .preloader { display: none !important; }
.js-failed .rv { opacity: 1 !important; transform: none !important; }
html:not(.fp) { scroll-snap-type: none; }
