/* DeskEngine — software gestionale */

@font-face { font-family: "Inter"; src: url("../fonts/inter-latin.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("../fonts/manrope-latin.woff2") format("woff2"); font-weight: 500 800; font-display: swap; }

:root {
  --green-300: #6ee7a8;
  --green-400: #36d982;
  --green-500: #12b76a;
  --green-600: #059a4f;
  --green-700: #008c3e;
  --green-50:  #ecfbf2;
  --ink:       #0c1a14;
  --ink-2:     #233a30;
  --text:      #3d5148;
  --muted:     #6b7d75;
  --line:      #e2eae6;
  --bg:        #ffffff;
  --surface:   #f4f8f6;
  --night:     #0a1424;
  --night-2:   #101e36;
  --amber:     #f59e0b;
  --blue:      #2f80ed;
  --red:       #e5484d;
  --radius:    18px;
  --radius-sm: 12px;
  --shadow-sm: 0 1px 2px rgba(12, 26, 20, .06), 0 2px 8px rgba(12, 26, 20, .05);
  --shadow:    0 2px 6px rgba(12, 26, 20, .05), 0 18px 40px -12px rgba(12, 26, 20, .18);
  --shadow-lg: 0 30px 80px -20px rgba(0, 0, 0, .55);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-head: "Manrope", "Inter", system-ui, sans-serif;
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 17px/1.65 var(--font); color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: var(--green-700); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.15; margin: 0; letter-spacing: -.02em; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--green-400); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.icon { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- Pulsanti ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 999px; font: 600 16px/1 var(--font); border: 1px solid transparent; cursor: pointer; transition: transform .15s ease, box-shadow .2s ease, background .2s ease; white-space: nowrap; }
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn .icon { width: 18px; height: 18px; }
.btn-primary { background: linear-gradient(135deg, var(--green-400), var(--green-600)); color: #fff; box-shadow: 0 10px 24px -8px rgba(18, 183, 106, .7); }
.btn-primary:hover { box-shadow: 0 14px 30px -8px rgba(18, 183, 106, .85); }
.btn-ghost { color: var(--ink); border-color: #cfdcd5; background: #fff; }
.btn-ghost:hover { border-color: var(--green-500); }
.btn-outline { color: var(--ink); border-color: var(--line); background: #fff; }
.btn-outline:hover { border-color: var(--green-500); }

/* ---------- Intestazione ---------- */
.site-header { position: fixed; inset: 0 0 auto; z-index: 50; transition: background .25s ease, box-shadow .25s ease; }
.site-header.scrolled { background: rgba(255, 255, 255, .88); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); }
.nav { display: flex; align-items: center; gap: 28px; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font: 800 21px/1 var(--font-head); letter-spacing: -.02em; }
.brand:hover { text-decoration: none; }
.brand img { width: 34px; height: 34px; }
.brand b { font-weight: 800; }
.brand span { font-weight: 500; opacity: .85; }
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a { color: var(--ink-2); padding: 8px 12px; border-radius: 10px; font-size: 15px; font-weight: 500; }
.nav-links a:hover { color: var(--green-700); background: rgba(18, 183, 106, .08); text-decoration: none; }
.nav .btn { padding: 11px 18px; font-size: 15px; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 0; color: var(--ink); padding: 8px; cursor: pointer; }
.nav-toggle .icon { width: 28px; height: 28px; }

/* ---------- Hero ---------- */
.hero { position: relative; background: #fff; color: var(--text); padding: 150px 0 0; overflow: hidden; isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(900px 520px at 78% 8%, rgba(54, 217, 130, .18), transparent 60%),
    radial-gradient(700px 480px at 8% 30%, rgba(59, 130, 246, .10), transparent 60%),
    linear-gradient(180deg, #f2f8f5 0%, #fff 100%); }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: linear-gradient(rgba(12, 26, 20, .04) 1px, transparent 1px), linear-gradient(90deg, rgba(12, 26, 20, .04) 1px, transparent 1px);
  background-size: 56px 56px; mask-image: radial-gradient(ellipse at 50% 20%, #000 20%, transparent 70%); -webkit-mask-image: radial-gradient(ellipse at 50% 20%, #000 20%, transparent 70%); }
.hero-copy { text-align: center; max-width: 860px; margin-inline: auto; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--green-700); background: var(--green-50); border: 1px solid #c6efd7; }
.eyebrow i { width: 8px; height: 8px; border-radius: 50%; background: var(--green-500); box-shadow: 0 0 10px rgba(18, 183, 106, .6); }
.hero h1 { color: var(--ink); font-size: clamp(40px, 6.4vw, 72px); font-weight: 800; letter-spacing: -.035em; margin: 22px 0 20px; }
.hero h1 em { font-style: normal; background: linear-gradient(120deg, var(--green-600), var(--green-500)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { font-size: clamp(18px, 2.1vw, 21px); color: var(--muted); max-width: 720px; margin: 0 auto 32px; }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-points { display: flex; gap: 10px 26px; justify-content: center; flex-wrap: wrap; margin: 30px 0 0; font-size: 15px; color: var(--muted); }
.hero-points li { display: flex; align-items: center; gap: 8px; }
.hero-points .icon { width: 18px; height: 18px; color: var(--green-600); }
.hero-visual { position: relative; margin-top: 64px; perspective: 1800px; }
.hero-visual::before { content: ""; position: absolute; left: 10%; right: 10%; top: 12%; height: 70%; background: radial-gradient(closest-side, rgba(54, 217, 130, .22), transparent); filter: blur(40px); z-index: -1; }

/* ---------- Finestra applicazione (mockup) ---------- */
.app { --app-bg: #fff; position: relative; margin: 0 auto -1px; width: min(1080px, 100%); background: var(--app-bg); border-radius: 14px 14px 0 0; box-shadow: 0 30px 80px -20px rgba(12, 26, 20, .35), 0 0 0 1px rgba(12, 26, 20, .08); overflow: hidden; color: #24352d; font-size: 13px; line-height: 1.35; text-align: left; transform: rotateX(8deg); transform-origin: 50% 100%; }
.app-title { display: flex; align-items: center; gap: 10px; height: 38px; padding: 0 0 0 14px; background: #f3f6f4; border-bottom: 1px solid #e3e9e6; font-size: 12.5px; color: #4b5d55; }
.app-title img { width: 18px; height: 18px; }
.app-title .win { margin-left: auto; display: flex; height: 100%; }
.app-title .win i { width: 44px; display: grid; place-items: center; }
.app-title .win i::before { content: ""; width: 10px; height: 10px; border: 1.4px solid #8a9a92; border-radius: 1px; }
.app-title .win i:first-child::before { height: 0; border-width: 1.4px 0 0; }
.app-title .win i:last-child::before { border: 0; width: 12px; height: 12px; background: linear-gradient(45deg, transparent 45%, #8a9a92 45%, #8a9a92 55%, transparent 55%), linear-gradient(-45deg, transparent 45%, #8a9a92 45%, #8a9a92 55%, transparent 55%); }
.app-toolbar { display: flex; align-items: center; gap: 6px; padding: 8px 12px; border-bottom: 1px solid #e3e9e6; }
.tb { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; color: #fff; }
.tb svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; }
.tb.menu { color: #3d5148; background: #eef3f0; }
.tb.sep { width: 1px; height: 24px; background: #e3e9e6; border-radius: 0; margin: 0 4px; }
.tb.c1 { background: #22c55e; } .tb.c2 { background: #3b82f6; } .tb.c3 { background: #f59e0b; } .tb.c4 { background: #8b5cf6; } .tb.c5 { background: #ef4444; } .tb.c6 { background: #14b8a6; }
.app-search { margin-left: auto; display: flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px; border: 1px solid #e3e9e6; border-radius: 9px; color: #8a9a92; min-width: 220px; }
.app-search svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; }
.app-body { display: grid; grid-template-columns: 190px 1fr 250px; min-height: 380px; }
.app-side { background: #f7faf8; border-right: 1px solid #e3e9e6; padding: 12px 10px; }
.app-side h5 { margin: 6px 8px 8px; font: 700 10.5px/1 var(--font); letter-spacing: .08em; text-transform: uppercase; color: #8a9a92; }
.app-side li { display: flex; align-items: center; gap: 8px; padding: 7px 8px; border-radius: 8px; color: #4b5d55; }
.app-side li i { width: 8px; height: 8px; border-radius: 3px; background: currentColor; opacity: .55; }
.app-side li.on { background: #e3f7ec; color: #087a3d; font-weight: 600; }
.app-side li.on i { opacity: 1; }
.app-main { padding: 14px 16px; min-width: 0; }
.app-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.app-head strong { font: 700 16px/1 var(--font-head); color: #10231a; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; background: #f1f5f3; color: #4b5d55; font-size: 12px; white-space: nowrap; }
.chip.on { background: #10231a; color: #fff; }
.app-head .chips { display: flex; gap: 6px; margin-left: auto; }
.grid { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.grid th { text-align: left; font-weight: 600; font-size: 11.5px; color: #7b8c84; padding: 8px 8px; border-bottom: 1px solid #e3e9e6; white-space: nowrap; }
.grid td { padding: 9px 8px; border-bottom: 1px solid #eef2f0; white-space: nowrap; }
.grid tr.sel td { background: #effaf4; }
.grid tr.sel td:first-child { box-shadow: inset 3px 0 0 var(--green-500); }
.grid .num { text-align: right; }
.grid .cli { overflow: hidden; text-overflow: ellipsis; max-width: 190px; }
.st { display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 600; }
.st.ok { background: #dcfce7; color: #15803d; } .st.prod { background: #dbeafe; color: #1d4ed8; } .st.wait { background: #fef3c7; color: #b45309; } .st.ship { background: #ede9fe; color: #6d28d9; }
.app-panel { border-left: 1px solid #e3e9e6; padding: 14px; background: #fbfdfc; display: grid; gap: 12px; align-content: start; }
.kpi { border: 1px solid #e3e9e6; border-radius: 12px; padding: 12px; background: #fff; }
.kpi small { color: #7b8c84; font-size: 11.5px; }
.kpi b { display: block; font: 800 20px/1.2 var(--font-head); color: #10231a; margin-top: 4px; }
.kpi .up { color: #15803d; font-size: 11.5px; font-weight: 600; }
.bars { display: flex; align-items: end; gap: 6px; height: 70px; margin-top: 10px; }
.bars i { flex: 1; border-radius: 4px 4px 2px 2px; background: linear-gradient(180deg, var(--green-400), var(--green-600)); opacity: .9; }
.bars i:nth-child(odd) { opacity: .55; }
.ring { display: flex; align-items: center; gap: 12px; }
.ring svg { width: 54px; height: 54px; transform: rotate(-90deg); }
.app-status { display: flex; gap: 18px; padding: 7px 14px; background: #f3f6f4; border-top: 1px solid #e3e9e6; color: #7b8c84; font-size: 11.5px; }
.app-status span:last-child { margin-left: auto; }

/* ---------- Sezioni ---------- */
section { position: relative; }
.section { padding: 110px 0; }
.section.alt { background: var(--surface); }
.head { max-width: 760px; margin-bottom: 56px; }
.head.center { text-align: center; margin-inline: auto; }
.kicker { display: inline-block; font: 700 13px/1 var(--font); letter-spacing: .12em; text-transform: uppercase; color: var(--green-600); margin-bottom: 16px; }
.head h2, .split h2 { font-size: clamp(32px, 4.2vw, 46px); font-weight: 800; margin-bottom: 18px; }
.head p { font-size: 19px; color: var(--muted); margin: 0; }

/* Valori */
.values { padding: 76px 0; border-bottom: 1px solid var(--line); }
.values .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.value { display: grid; gap: 10px; }
.value .ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; color: var(--green-700); background: var(--green-50); }
.value h3 { font-size: 18px; }
.value p { font-size: 15.5px; color: var(--muted); margin: 0; }

/* Moduli */
.modules { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.module { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px 24px; transition: transform .2s ease, box-shadow .25s ease, border-color .2s ease; }
.module:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.module .ico { width: 50px; height: 50px; border-radius: 15px; display: grid; place-items: center; color: #fff; margin-bottom: 18px; box-shadow: 0 8px 18px -8px currentColor; }
.module .ico .icon { width: 26px; height: 26px; }
.module h3 { font-size: 20px; margin-bottom: 8px; }
.module > p { font-size: 15px; color: var(--muted); margin-bottom: 14px; }
.module ul { display: grid; gap: 7px; font-size: 14.5px; color: var(--ink-2); }
.module li { display: flex; gap: 8px; }
.module li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--green-500); margin-top: 9px; flex: none; }
.i-green  { background: linear-gradient(135deg, #34d399, #059669); color: #059669; }
.i-blue   { background: linear-gradient(135deg, #60a5fa, #2563eb); color: #2563eb; }
.i-amber  { background: linear-gradient(135deg, #fbbf24, #ea580c); color: #ea580c; }
.i-violet { background: linear-gradient(135deg, #a78bfa, #7c3aed); color: #7c3aed; }
.i-teal   { background: linear-gradient(135deg, #2dd4bf, #0d9488); color: #0d9488; }
.i-pink   { background: linear-gradient(135deg, #f472b6, #db2777); color: #db2777; }
.i-sky    { background: linear-gradient(135deg, #38bdf8, #0284c7); color: #0284c7; }
.i-red    { background: linear-gradient(135deg, #fb7185, #e11d48); color: #e11d48; }
.module .ico .icon { color: #fff; }
.modules-note { margin-top: 28px; text-align: center; color: var(--muted); font-size: 15.5px; }

/* Split immagine + testo */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 72px; align-items: center; }
.split.rev > :first-child { order: 2; }
.split .lead { font-size: 19px; color: var(--muted); }
.features { display: grid; gap: 22px; margin-top: 30px; }
.feature { display: grid; grid-template-columns: 44px 1fr; gap: 16px; }
.feature .ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--green-50); color: var(--green-700); }
.feature .ico .icon { width: 22px; height: 22px; }
.feature h3 { font-size: 17.5px; margin: 2px 0 4px; }
.feature p { font-size: 15.5px; color: var(--muted); margin: 0; }
.photo { position: relative; border-radius: 24px; overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4 / 3.6; }
.photo.tall { aspect-ratio: 4 / 4.4; }
.photo img { width: 100%; height: 100%; object-fit: cover; }

/* Chat AI sopra la foto */
.ai-card { position: absolute; left: 22px; right: 22px; bottom: 22px; background: rgba(255, 255, 255, .94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-radius: 16px; padding: 16px; box-shadow: var(--shadow); font-size: 14px; }
.ai-q { display: flex; gap: 10px; align-items: flex-start; color: var(--ink); font-weight: 600; }
.ai-q .who { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: #e9eef0; color: #4b5d55; font-size: 12px; }
.ai-a { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.ai-a .tag { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--green-700); margin-bottom: 8px; }
.ai-a .tag .icon { width: 15px; height: 15px; }
.ai-a table { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
.ai-a td { padding: 5px 0; border-bottom: 1px dashed var(--line); }
.ai-a td:last-child { text-align: right; color: var(--red); font-weight: 600; }
.ai-a tr:last-child td { border: 0; }

/* Settori */
.sectors { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.sector { position: relative; border-radius: 22px; overflow: hidden; min-height: 440px; display: flex; align-items: flex-end; color: #fff; isolation: isolate; box-shadow: var(--shadow-sm); }
.sector img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .6s ease; }
.sector:hover img { transform: scale(1.04); }
.sector::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10, 20, 36, 0) 35%, rgba(10, 20, 36, .55) 60%, rgba(10, 20, 36, .92) 100%); }
.sector div { padding: 28px; }
.sector h3 { color: #fff; font-size: 23px; margin-bottom: 8px; }
.sector p { margin: 0; color: rgba(255, 255, 255, .82); font-size: 15.5px; }

/* Cloud */
.cloud { background: var(--night); color: #b4c3d8; overflow: hidden; isolation: isolate; }
.cloud::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(700px 400px at 85% 0%, rgba(54, 217, 130, .18), transparent 60%), radial-gradient(600px 400px at 0% 100%, rgba(47, 128, 237, .12), transparent 60%); }
.cloud .kicker { color: var(--green-400); }
.cloud h2 { color: #fff; }
.cloud .head p { color: #9fb0c8; }
.deploy { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.plan { border: 1px solid rgba(255, 255, 255, .1); background: rgba(255, 255, 255, .03); border-radius: 22px; padding: 34px; }
.plan.feat { border-color: rgba(54, 217, 130, .45); background: linear-gradient(180deg, rgba(54, 217, 130, .1), rgba(54, 217, 130, .02)); }
.plan .ico { width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; background: rgba(255, 255, 255, .07); color: var(--green-300); margin-bottom: 20px; }
.plan h3 { color: #fff; font-size: 24px; margin-bottom: 8px; }
.plan > p { color: #9fb0c8; }
.plan ul { display: grid; gap: 10px; margin-top: 18px; }
.plan li { display: flex; gap: 10px; color: #d5dfec; font-size: 15.5px; }
.plan li .icon { width: 20px; height: 20px; color: var(--green-400); margin-top: 2px; }

/* Perché DeskEngine / percorso */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 70px; counter-reset: s; }
.step { position: relative; padding: 26px 22px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.step::before { counter-increment: s; content: counter(s, decimal-leading-zero); display: block; font: 800 15px/1 var(--font-head); color: var(--green-600); margin-bottom: 14px; letter-spacing: .04em; }
.step h3 { font-size: 18px; margin-bottom: 6px; }
.step p { font-size: 15px; color: var(--muted); margin: 0; }
.badge-maker { display: inline-flex; align-items: center; gap: 12px; margin-top: 8px; padding: 12px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); font-size: 15px; color: var(--ink-2); }
.badge-maker svg { width: 26px; height: 26px; }

/* FAQ */
.faq { max-width: 860px; margin-inline: auto; display: grid; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 0 24px; transition: box-shadow .2s ease; }
.faq details[open] { box-shadow: var(--shadow-sm); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; font: 700 17.5px/1.35 var(--font-head); color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); color: var(--green-700); font: 500 22px/1 var(--font); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 6px; }

/* Contatti */
.contact { display: grid; grid-template-columns: 1.35fr 1fr; gap: 28px; align-items: start; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 36px; box-shadow: var(--shadow-sm); }
.form { display: grid; gap: 18px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.fld { display: grid; gap: 7px; }
.fld label, .fld legend { font-size: 14px; font-weight: 600; color: var(--ink-2); padding: 0; }
.fld label small { font-weight: 400; color: var(--muted); }
.fld input, .fld textarea { width: 100%; padding: 13px 15px; border-radius: var(--radius-sm); border: 1px solid #d5dfda; background: #fbfdfc; color: var(--ink); font: 400 16px/1.4 var(--font); transition: border-color .15s ease, box-shadow .15s ease, background .15s ease; }
.fld textarea { min-height: 130px; resize: vertical; }
.fld input:focus, .fld textarea:focus { outline: none; border-color: var(--green-500); background: #fff; box-shadow: 0 0 0 4px rgba(18, 183, 106, .15); }
.fld.err input, .fld.err textarea { border-color: var(--red); box-shadow: 0 0 0 4px rgba(229, 72, 77, .12); }
.check { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; font-size: 14.5px; color: var(--text); }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--green-600); }
.check.err { color: var(--red); }
.captcha { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: end; padding: 18px; border-radius: 16px; background: var(--surface); border: 1px dashed #cfdcd5; }
.captcha-img { display: flex; align-items: center; gap: 8px; }
.captcha-img img { color: transparent; font-size: 0; width: 200px; height: 64px; border-radius: 10px; background: #f7f9fb; border: 1px solid var(--line); }
.captcha-img button { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--ink-2); cursor: pointer; display: grid; place-items: center; transition: transform .3s ease; }
.captcha-img button:hover { color: var(--green-700); }
.captcha-img button.spin { transform: rotate(360deg); }
.captcha-img button .icon { width: 18px; height: 18px; }
.captcha .fld input { text-transform: uppercase; letter-spacing: .3em; font-weight: 600; }
.captcha .hint { grid-column: 1 / -1; margin: -6px 0 0; font-size: 13px; color: var(--muted); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.form-foot .btn { border: 0; }
.form-foot .btn[disabled] { opacity: .65; cursor: progress; transform: none; }
.status { font-size: 15px; font-weight: 600; min-height: 1.4em; margin: 0; }
.status.ok { color: var(--green-700); }
.status.ko { color: var(--red); }
.privacy-note { font-size: 13px; color: var(--muted); margin: 0; }
.aside { display: grid; gap: 20px; }
.aside .card { padding: 30px; }
.aside h3 { font-size: 20px; margin-bottom: 14px; }
.aside .list { display: grid; gap: 12px; }
.aside .list li { display: flex; gap: 12px; color: var(--ink-2); font-size: 15.5px; }
.aside .list .icon { width: 22px; height: 22px; color: var(--green-600); margin-top: 1px; }

/* Piè di pagina */
.site-footer { background: var(--night); color: #8fa0b8; padding: 64px 0 36px; font-size: 15px; }
.foot { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.site-footer .brand { color: #fff; }
.foot p { margin: 14px 0 0; max-width: 380px; }
.foot h4 { color: #fff; font-size: 15px; margin-bottom: 14px; }
.foot ul { display: grid; gap: 8px; }
.foot a, .site-footer button.link { color: #b4c3d8; }
.foot a:hover { color: #fff; }
.legal { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 26px; font-size: 13.5px; }
button.link { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* Informativa privacy */
dialog { width: min(680px, 100% - 32px); max-height: 85vh; border: 0; border-radius: 22px; padding: 0; box-shadow: var(--shadow-lg); color: var(--text); }
dialog::backdrop { background: rgba(10, 20, 36, .6); backdrop-filter: blur(4px); }
dialog .dlg { padding: 34px 36px 28px; }
dialog h2 { font-size: 26px; margin-bottom: 16px; }
dialog h3 { font-size: 16px; margin: 20px 0 6px; }
dialog p { font-size: 15px; margin: 0 0 8px; }
dialog .close { position: sticky; top: 0; float: right; margin: 14px 14px 0 0; width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--surface); cursor: pointer; display: grid; place-items: center; color: var(--ink); }

/* Comparsa allo scorrimento */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .app { transform: none; }
  * { transition-duration: 0s !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .modules { grid-template-columns: repeat(2, 1fr); }
  .app-body { grid-template-columns: 170px 1fr; }
  .app-panel { display: none; }
}
@media (max-width: 960px) {
  .nav-links, .nav .btn { display: none; }
  .nav-toggle { display: block; }
  .site-header.open { background: rgba(255, 255, 255, .98); box-shadow: 0 1px 0 var(--line); }
  .site-header.open .nav-links { display: grid; position: absolute; top: 72px; left: 0; right: 0; padding: 8px 20px 20px; background: rgba(255, 255, 255, .98); box-shadow: 0 12px 24px -12px rgba(12, 26, 20, .2); }
  .site-header.open .nav-links a { padding: 14px 8px; font-size: 17px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .values .wrap { grid-template-columns: repeat(2, 1fr); }
  .split, .contact { grid-template-columns: 1fr; gap: 48px; }
  .split.rev > :first-child { order: 0; }
  .sectors { grid-template-columns: 1fr; }
  .sector { min-height: 340px; }
  .deploy { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .foot { grid-template-columns: 1fr 1fr; }
  .foot > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .app-side { display: none; }
  .app-body { grid-template-columns: 1fr; min-height: 300px; }
  .app-search, .app-head .chips, .grid .hide-s { display: none; }
  .app { transform: none; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { width: calc(100% - 32px); }
  .section { padding: 80px 0; }
  .hero { padding-top: 120px; }
  .values .wrap, .modules, .steps { grid-template-columns: 1fr; }
  .form .row { grid-template-columns: 1fr; }
  .card { padding: 24px; }
  .captcha { grid-template-columns: 1fr; }
  .tb.x { display: none; }
  .foot { grid-template-columns: 1fr; }
  dialog .dlg { padding: 26px 22px 22px; }
}
