/* =========================================================
   Valtellina Automazioni — stile principale
   ========================================================= */

:root {
  --ink: #0B1B2B;
  --ink-2: #12283D;
  --ink-3: #1B3550;
  --bg: #F7F8F6;
  --tint: #EEF2F0;
  --surface: #FFFFFF;
  --text: #16212E;
  --muted: #586675;
  --line: #E1E6E8;
  --accent: #0F8A6C;
  --accent-600: #0B735A;
  --accent-bright: #34D1A1;
  --accent-soft: #E3F4EE;
  --warm: #F0A73A;
  --warm-soft: #FDF1DD;

  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 1px 2px rgba(11, 27, 43, .06), 0 2px 8px rgba(11, 27, 43, .04);
  --shadow: 0 2px 6px rgba(11, 27, 43, .05), 0 18px 40px -18px rgba(11, 27, 43, .22);
  --shadow-lg: 0 30px 80px -30px rgba(0, 0, 0, .55);

  --font-head: "Manrope", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --container: 1180px;
  --header-h: 72px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: var(--font-head); color: var(--ink); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.ic { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 820px; }

.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 1000; }
.skip-link:focus { left: 8px; }

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

/* ---------- Bottoni ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  font-family: var(--font-head); font-weight: 700; font-size: 1rem;
  padding: .85em 1.4em; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: transform .2s ease, background .2s ease, box-shadow .2s ease, color .2s ease, border-color .2s ease;
  text-decoration: none !important; line-height: 1.2; text-align: center;
}
.btn .ic { transition: transform .2s ease; }
.btn:hover .ic { transform: translateX(3px); }
.btn--primary { background: var(--accent); color: #fff; box-shadow: 0 10px 24px -10px rgba(15, 138, 108, .7); }
.btn--primary:hover { background: var(--accent-600); transform: translateY(-2px); }
.btn--ghost { background: rgba(255,255,255,.06); color: #fff; border-color: rgba(255,255,255,.28); }
.btn--ghost:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.5); }
.btn--sm { padding: .6em 1.1em; font-size: .92rem; }
.btn--lg { padding: 1em 1.6em; font-size: 1.04rem; }
.btn--block { width: 100%; }

.link-arrow { display: inline-flex; align-items: center; gap: .4em; font-weight: 600; font-family: var(--font-head); margin-top: auto; }
.link-arrow:hover { text-decoration: none; }
.link-arrow:hover .ic { transform: translateX(3px); }
.link-arrow .ic { transition: transform .2s; }

/* ---------- Eyebrow ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .5em;
  font-family: var(--font-head); font-weight: 700; font-size: .82rem;
  letter-spacing: .08em; text-transform: uppercase; color: var(--accent);
  margin-bottom: 1rem;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
.eyebrow--light { color: var(--accent-bright); }
.hero .eyebrow::before { display: none; }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h);
  transition: background .3s ease, box-shadow .3s ease, backdrop-filter .3s;
}
.header.is-scrolled { background: rgba(11, 27, 43, .88); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 rgba(255,255,255,.06); }
.header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.logo { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none !important; }
.logo__mark { width: 38px; height: 38px; border-radius: 11px; background: linear-gradient(140deg, var(--accent), #0D5E6E); color: #fff; display: grid; place-items: center; }
.logo__mark svg { width: 24px; height: 24px; }
.logo__text { font-family: var(--font-head); font-weight: 600; font-size: 1.06rem; letter-spacing: -.01em; }
.logo__text strong { font-weight: 800; margin-left: 2px; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav a:not(.btn) { color: rgba(255,255,255,.82); font-weight: 500; font-size: .95rem; text-decoration: none; transition: color .2s; }
.nav a:not(.btn):hover { color: #fff; }

.nav-toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; padding: 10px; border-radius: 10px; }
.nav-toggle span { display: block; height: 2px; background: #fff; border-radius: 2px; margin: 5px 0; transition: transform .3s, opacity .3s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--ink); color: rgba(255,255,255,.82);
  padding: calc(var(--header-h) + 72px) 0 110px;
}
.hero__bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(900px 500px at 85% 10%, rgba(52, 209, 161, .16), transparent 60%),
    radial-gradient(700px 500px at 0% 100%, rgba(240, 167, 58, .10), transparent 60%),
    linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 100%);
}
/* profilo di montagne stilizzato */
.hero__bg::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 160px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 160' preserveAspectRatio='none'%3E%3Cpath d='M0 160V110l120-50 90 40 140-80 110 70 90-30 150 70 120-90 140 80 100-40 130 60 120-50 130 40v80z' fill='%23ffffff' fill-opacity='.035'/%3E%3Cpath d='M0 160v-30l160-40 120 30 160-50 140 50 120-20 160 40 140-50 140 40 150-30 150 40v40z' fill='%23ffffff' fill-opacity='.04'/%3E%3C/svg%3E") bottom / 100% 100% no-repeat;
}
.hero__bg::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 70% 30%, #000 10%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 70% 30%, #000 10%, transparent 70%);
}
.hero__grid { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.hero h1 { color: #fff; margin-bottom: .4em; }
.hl { background: linear-gradient(90deg, var(--accent-bright), #9BE7C9); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__lead { font-size: 1.16rem; max-width: 34em; margin-bottom: 2rem; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 2rem; }
.hero__trust { display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: .94rem; }
.hero__trust li { display: inline-flex; align-items: center; gap: 8px; }
.hero__trust .ic { color: var(--accent-bright); }

/* Card agente */
.hero__visual { position: relative; }
.agent-card {
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.04));
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 24px; padding: 22px;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(10px);
}
.agent-card__head { display: flex; align-items: center; gap: 14px; padding-bottom: 16px; border-bottom: 1px solid rgba(255,255,255,.08); margin-bottom: 14px; }
.agent-card__head strong { color: #fff; font-family: var(--font-head); display: block; font-size: 1rem; }
.agent-card__avatar { width: 44px; height: 44px; border-radius: 13px; background: linear-gradient(140deg, var(--accent), #0D5E6E); display: grid; place-items: center; color: #fff; }
.agent-card__avatar .ic { width: 24px; height: 24px; }
.status { display: inline-flex; align-items: center; gap: 7px; font-size: .84rem; color: var(--accent-bright); }
.status__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-bright); box-shadow: 0 0 0 0 rgba(52,209,161,.6); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(52,209,161,.55); } 70% { box-shadow: 0 0 0 9px rgba(52,209,161,0); } 100% { box-shadow: 0 0 0 0 rgba(52,209,161,0); } }

.feed { display: flex; flex-direction: column; gap: 10px; min-height: 292px; }
.feed__item {
  display: grid; grid-template-columns: 36px 1fr auto; gap: 12px; align-items: center;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.07);
  border-radius: 14px; padding: 11px 13px;
  animation: feedIn .5s cubic-bezier(.2,.8,.2,1) both;
}
.feed__icon { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: rgba(52,209,161,.12); color: var(--accent-bright); }
.feed__icon .ic { width: 18px; height: 18px; }
.feed__text { min-width: 0; }
.feed__text strong { display: block; color: #fff; font-size: .92rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feed__text span { font-size: .8rem; color: rgba(255,255,255,.6); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feed__state { font-size: .75rem; font-weight: 600; padding: 4px 9px; border-radius: 999px; white-space: nowrap; display: inline-flex; align-items: center; gap: 5px; }
.feed__state--work { background: rgba(240,167,58,.15); color: var(--warm); }
.feed__state--work::before { content: ""; width: 10px; height: 10px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; }
.feed__state--done { background: rgba(52,209,161,.14); color: var(--accent-bright); }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes feedIn { from { opacity: 0; transform: translateY(-10px) scale(.98); } to { opacity: 1; transform: none; } }

.agent-card__foot { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.08); }
.kpi { display: block; font-family: var(--font-head); font-weight: 800; font-size: 1.8rem; color: #fff; line-height: 1.1; }
.kpi--warm { color: var(--warm); }
.kpi-label { font-size: .82rem; color: rgba(255,255,255,.6); }
.visual-note { text-align: center; font-size: .75rem; color: rgba(255,255,255,.4); margin: 10px 0 0; }

/* ---------- Sezioni ---------- */
.section { padding: 110px 0; position: relative; }
.section--tint { background: var(--tint); }
.section--dark { background: var(--ink); color: rgba(255,255,255,.78); }
.section--dark h2, .section--dark h3 { color: #fff; }
.section__head { max-width: 760px; margin: 0 auto 56px; text-align: center; }
.section__head .eyebrow { justify-content: center; }
.section__lead { font-size: 1.1rem; color: var(--muted); margin: 0; }
.section--dark .section__lead { color: rgba(255,255,255,.72); }

/* ---------- Problema ---------- */
.pain-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 56px; }
.pain {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow-sm); transition: transform .25s, box-shadow .25s, border-color .25s;
}
.pain:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #d2dadd; }
.pain__ic { width: 46px; height: 46px; padding: 11px; border-radius: 13px; background: var(--warm-soft); color: #B86E0A; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 18px; }
.pain h3 { margin-bottom: .4em; }
.pain p { color: var(--muted); margin: 0; font-size: .98rem; }

/* Calcolatore */
.calc {
  background: var(--surface); border: 1px solid var(--line); border-radius: 26px;
  padding: 44px; box-shadow: var(--shadow);
}
.calc__intro { text-align: center; max-width: 620px; margin: 0 auto 32px; }
.calc__intro h3 { font-size: clamp(1.4rem, 2.6vw, 1.8rem); }
.calc__intro p { color: var(--muted); margin: 0; }
.calc__body { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.calc__inputs { display: flex; flex-direction: column; gap: 28px; }
.range { display: block; }
.range__top { display: flex; justify-content: space-between; gap: 12px; font-weight: 500; margin-bottom: 10px; font-size: .98rem; }
.range output { font-family: var(--font-head); font-weight: 800; color: var(--accent); min-width: 3.5em; text-align: right; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 8px; border-radius: 99px; background: linear-gradient(to right, var(--accent) var(--p, 50%), var(--line) var(--p, 50%)); outline: none; cursor: pointer; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 3px solid var(--accent); box-shadow: 0 2px 8px rgba(0,0,0,.18); transition: transform .15s; }
input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.12); }
input[type="range"]::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 3px solid var(--accent); box-shadow: 0 2px 8px rgba(0,0,0,.18); }

.calc__result { background: var(--ink); color: rgba(255,255,255,.8); border-radius: 20px; padding: 32px; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.calc__stat { display: flex; flex-direction: column; }
.calc__num { font-family: var(--font-head); font-weight: 800; font-size: clamp(1.8rem, 3.4vw, 2.5rem); color: #fff; line-height: 1.1; }
.calc__stat:nth-child(2) .calc__num { color: var(--warm); }
.calc__label { font-size: .88rem; color: rgba(255,255,255,.62); }
.calc__save { grid-column: 1 / -1; margin: 0; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.1); }
.calc__save strong { color: var(--accent-bright); }
.calc__result .btn { grid-column: 1 / -1; }
.calc__note { text-align: center; color: var(--muted); font-size: .84rem; margin: 22px 0 0; }

/* ---------- Soluzione (flow) ---------- */
.flow {
  display: grid; grid-template-columns: 1fr 90px 1.1fr 90px 1fr; align-items: center; gap: 0;
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  border: 1px solid rgba(255,255,255,.1); border-radius: 28px; padding: 44px 36px; margin-bottom: 40px;
}
.flow__title { font-size: 1.05rem; margin-bottom: 18px; text-align: center; }
.chips { display: flex; flex-direction: column; gap: 10px; }
.chips li {
  display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 12px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08); color: #fff; font-size: .95rem; font-weight: 500;
}
.chips .ic { color: var(--warm); }
.chips--done .ic { color: var(--accent-bright); }
.flow__wire { position: relative; height: 2px; background: linear-gradient(90deg, rgba(255,255,255,.08), rgba(52,209,161,.5), rgba(255,255,255,.08)); margin: 0 10px; overflow: visible; }
.flow__wire span { position: absolute; top: -3px; left: 0; width: 8px; height: 8px; border-radius: 50%; background: var(--accent-bright); box-shadow: 0 0 12px var(--accent-bright); animation: travel 2.4s linear infinite; }
.flow__wire span:nth-child(2) { animation-delay: .8s; }
.flow__wire span:nth-child(3) { animation-delay: 1.6s; }
@keyframes travel { 0% { left: 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { left: calc(100% - 8px); opacity: 0; } }

.flow__core { text-align: center; padding: 10px; }
.core { position: relative; width: 120px; height: 120px; margin: 0 auto 22px; }
.core__ring { position: absolute; inset: 0; border-radius: 50%; border: 2px dashed rgba(52,209,161,.45); animation: spin 18s linear infinite; }
.core__ring::after { content: ""; position: absolute; inset: 12px; border-radius: 50%; background: radial-gradient(circle, rgba(52,209,161,.25), transparent 70%); }
.core__icon { position: absolute; inset: 22px; border-radius: 26px; background: linear-gradient(140deg, var(--accent), #0D5E6E); display: grid; place-items: center; color: #fff; box-shadow: 0 0 40px rgba(52,209,161,.35); }
.core__icon .ic { width: 38px; height: 38px; }
.core__list { display: inline-flex; flex-direction: column; gap: 8px; text-align: left; }
.core__list li { position: relative; padding-left: 24px; font-size: .96rem; }
.core__list li::before { content: ""; position: absolute; left: 0; top: .5em; width: 12px; height: 12px; border-radius: 4px; background: var(--accent-bright); opacity: .85; }

.benefits { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.benefit { display: flex; gap: 14px; align-items: flex-start; padding: 20px; border-radius: 16px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); }
.benefit > .ic { width: 40px; height: 40px; padding: 9px; border-radius: 11px; background: rgba(52,209,161,.12); color: var(--accent-bright); }
.benefit strong { display: block; color: #fff; font-family: var(--font-head); font-size: 1.05rem; }
.benefit span { font-size: .9rem; color: rgba(255,255,255,.66); line-height: 1.45; display: block; }

/* ---------- Esempi ---------- */
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 40px; }
.filter {
  font: 600 .93rem var(--font-body); padding: .62em 1.15em; border-radius: 999px; cursor: pointer;
  background: var(--surface); border: 1px solid var(--line); color: var(--text); transition: all .2s;
}
.filter:hover { border-color: var(--accent); color: var(--accent); }
.filter.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }

.cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.case {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow-sm); transition: transform .25s, box-shadow .25s, opacity .3s;
}
.case:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.case.is-hidden { display: none; }
.case__tag { align-self: flex-start; font-size: .76rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--accent); background: var(--accent-soft); padding: 5px 10px; border-radius: 999px; margin-bottom: 14px; }
.case h3 { font-size: 1.16rem; margin-bottom: 20px; }
.case__flow { display: flex; flex-direction: column; gap: 0; margin-bottom: 20px; counter-reset: f; }
.case__flow li { position: relative; display: flex; align-items: center; gap: 14px; padding: 8px 0; font-size: .95rem; }
.case__flow li .ic { width: 38px; height: 38px; padding: 9px; border-radius: 11px; background: var(--tint); color: var(--ink-3); position: relative; z-index: 1; }
.case__flow li:nth-child(2) .ic { background: var(--ink); color: var(--accent-bright); }
.case__flow li:last-child .ic { background: var(--accent-soft); color: var(--accent); }
.case__flow li:not(:last-child)::after { content: ""; position: absolute; left: 18px; top: 46px; width: 2px; height: calc(100% - 38px); background: repeating-linear-gradient(to bottom, var(--line) 0 4px, transparent 4px 8px); }
.case__result { margin: auto 0 0; padding-top: 16px; border-top: 1px solid var(--line); display: flex; gap: 10px; align-items: flex-start; font-weight: 600; color: var(--ink); font-size: .95rem; line-height: 1.45; }
.case__result .ic { color: var(--accent); margin-top: 2px; }

.cases__cta { margin-top: 44px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: 28px 32px; border-radius: var(--radius); background: var(--accent-soft); border: 1px solid #C9E9DE; }
.cases__cta p { margin: 0; font-size: 1.05rem; }

/* ---------- Servizi ---------- */
.service {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 36px;
  box-shadow: var(--shadow-sm); transition: transform .25s, box-shadow .25s;
}
.service:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.service p { color: var(--muted); }
.service__icon { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); margin-bottom: 20px; }
.service__icon .ic { width: 28px; height: 28px; }
.service__icon--alt { background: #E5EEF8; color: #2563A8; }
.service__icon--warm { background: var(--warm-soft); color: #B86E0A; }
.service h3 { font-size: 1.45rem; }
.service__list { display: flex; flex-direction: column; gap: 10px; margin: 6px 0 26px; }
.service__list li { display: flex; gap: 10px; align-items: flex-start; font-size: .97rem; }
.service__list .ic { color: var(--accent); margin-top: 3px; }

.service--main {
  display: grid; grid-template-columns: .95fr 1.05fr; gap: 48px; align-items: center;
  background: linear-gradient(135deg, var(--ink) 0%, var(--ink-3) 100%); border: 0; color: rgba(255,255,255,.78);
  padding: 52px; margin-bottom: 24px; position: relative; overflow: hidden;
}
.service--main::before { content: ""; position: absolute; width: 500px; height: 500px; right: -160px; top: -200px; background: radial-gradient(circle, rgba(52,209,161,.2), transparent 65%); pointer-events: none; }
.service--main h3 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.1rem); }
.service--main p { color: rgba(255,255,255,.75); margin-bottom: 1.6em; }
.service--main .service__icon { background: rgba(52,209,161,.14); color: var(--accent-bright); }
.service__copy { position: relative; }
.badge { display: inline-block; font-size: .76rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); background: var(--warm); padding: 6px 12px; border-radius: 999px; margin-bottom: 18px; }
.service__list--cols { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0; position: relative; }
.service__list--cols li { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08); border-radius: 12px; padding: 12px 14px; color: #fff; font-size: .93rem; line-height: 1.4; align-items: center; }
.service__list--cols .ic { color: var(--accent-bright); margin-top: 0; }
.service-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }

/* ---------- Come funziona ---------- */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; position: relative; }
.steps::before { content: ""; position: absolute; top: 30px; left: 10%; right: 10%; height: 2px; background: linear-gradient(90deg, var(--accent), var(--warm)); opacity: .35; }
.step { position: relative; text-align: center; padding: 0 6px; }
.step__num {
  position: relative; z-index: 1; width: 60px; height: 60px; margin: 0 auto 20px; border-radius: 50%;
  display: grid; place-items: center; font-family: var(--font-head); font-weight: 800; font-size: 1.35rem;
  background: var(--surface); color: var(--accent); border: 2px solid var(--accent); box-shadow: 0 0 0 8px var(--bg);
  transition: background .3s, color .3s;
}
.step:hover .step__num { background: var(--accent); color: #fff; }
.step:last-child .step__num { border-color: var(--warm); color: #B86E0A; }
.step:last-child:hover .step__num { background: var(--warm); color: var(--ink); }
.step h3 { font-size: 1.15rem; margin-bottom: .35em; }
.step p { color: var(--muted); font-size: .95rem; margin: 0; }

/* ---------- Perché noi ---------- */
.why { display: grid; grid-template-columns: .85fr 1.15fr; gap: 56px; align-items: start; }
.why__intro { position: sticky; top: calc(var(--header-h) + 32px); }
.why__intro .section__lead { margin-bottom: 1.8rem; }
.why__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.why__item { display: flex; gap: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); }
.why__item > .ic { width: 44px; height: 44px; padding: 10px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); }
.why__item h3 { font-size: 1.06rem; margin-bottom: .3em; }
.why__item p { color: var(--muted); margin: 0; font-size: .94rem; line-height: 1.5; }

/* ---------- FAQ ---------- */
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 0 24px; transition: box-shadow .2s, border-color .2s; }
.faq details[open] { box-shadow: var(--shadow-sm); border-color: #CFE3DB; }
.faq summary { cursor: pointer; list-style: none; padding: 20px 36px 20px 0; position: relative; font-family: var(--font-head); font-weight: 700; color: var(--ink); font-size: 1.05rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 4px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: translateY(-70%) rotate(45deg); transition: transform .25s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { color: var(--muted); margin: 0 0 20px; }

/* ---------- CTA finale ---------- */
.section--cta { background: var(--ink); color: rgba(255,255,255,.78); overflow: hidden; }
.section--cta::before { content: ""; position: absolute; inset: 0; background: radial-gradient(800px 500px at 0% 0%, rgba(52,209,161,.16), transparent 60%), radial-gradient(600px 400px at 100% 100%, rgba(240,167,58,.1), transparent 60%); pointer-events: none; }
.cta { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.cta h2 { color: #fff; font-size: clamp(2rem, 4vw, 3rem); }
.cta__lead { font-size: 1.12rem; margin-bottom: 1.6rem; }
.cta__points { display: flex; flex-direction: column; gap: 10px; margin-bottom: 2rem; }
.cta__points li { display: flex; align-items: center; gap: 10px; }
.cta__points .ic { color: var(--accent-bright); }
.cta__direct { display: flex; flex-wrap: wrap; gap: 12px; }
.cta__direct a { display: inline-flex; align-items: center; gap: 8px; color: #fff; padding: 10px 16px; border-radius: 999px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); font-weight: 500; text-decoration: none; transition: background .2s; word-break: break-all; }
.cta__direct a:hover { background: rgba(255,255,255,.12); }

.form { background: var(--surface); color: var(--text); border-radius: 24px; padding: 36px; box-shadow: var(--shadow-lg); }
.form__title { font-size: 1.35rem; margin-bottom: 20px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: block; margin-bottom: 14px; }
.field > span { display: block; font-size: .88rem; font-weight: 600; margin-bottom: 6px; color: var(--ink); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--text);
  padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: #FBFCFB;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); background: #fff; box-shadow: 0 0 0 4px rgba(15,138,108,.12); }
.field.is-invalid input, .field.is-invalid textarea { border-color: #D14343; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .86rem; color: var(--muted); margin: 4px 0 20px; line-height: 1.45; }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--accent); flex-shrink: 0; }
.check.is-invalid { color: #D14343; }
.form__msg { margin: 14px 0 0; font-size: .95rem; text-align: center; min-height: 1.2em; }
.form__msg.is-ok { color: var(--accent); font-weight: 600; }
.form__msg.is-err { color: #D14343; }

/* ---------- Footer ---------- */
.footer { background: #07131F; color: rgba(255,255,255,.62); padding: 72px 0 28px; font-size: .95rem; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.08); }
.footer h3 { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.footer ul { display: flex; flex-direction: column; gap: 8px; }
.footer a { color: rgba(255,255,255,.75); }
.footer a:hover { color: #fff; }
.footer address { font-style: normal; line-height: 1.8; }
.footer__claim { margin-top: 16px; max-width: 30em; }
.footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 24px; font-size: .86rem; }
.footer__bottom p { margin: 0; }

/* ---------- CTA mobile ---------- */
.mobile-cta { display: none; }

/* ---------- Animazioni reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1080px) {
  .hero__grid { grid-template-columns: 1fr; gap: 56px; }
  .hero__visual { max-width: 560px; }
  .flow { grid-template-columns: 1fr; gap: 8px; padding: 32px 24px; }
  .flow__wire { width: 2px; height: 48px; margin: 6px auto; background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(52,209,161,.5), rgba(255,255,255,.08)); }
  .flow__wire span { left: -3px; animation-name: travelV; }
  @keyframes travelV { 0% { top: 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { top: calc(100% - 8px); opacity: 0; } }
  .chips { flex-direction: row; flex-wrap: wrap; justify-content: center; }
  .benefits { grid-template-columns: 1fr 1fr; }
  .cases { grid-template-columns: 1fr 1fr; }
  .service--main { grid-template-columns: 1fr; padding: 40px; }
  .steps { grid-template-columns: 1fr; gap: 0; max-width: 560px; margin: 0 auto; }
  .steps::before { top: 30px; bottom: 30px; left: 29px; right: auto; width: 2px; height: auto; background: linear-gradient(180deg, var(--accent), var(--warm)); }
  .step { display: grid; grid-template-columns: 60px 1fr; column-gap: 20px; text-align: left; padding: 0 0 28px; }
  .step__num { margin: 0; grid-row: span 2; }
  .step h3 { align-self: end; margin-top: 6px; }
  .why { grid-template-columns: 1fr; gap: 40px; }
  .why__intro { position: static; }
  .cta { grid-template-columns: 1fr; gap: 44px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  :root { --header-h: 64px; }
  .nav-toggle { display: block; }
  .nav {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(11, 27, 43, .98); padding: 12px 24px 24px;
    border-top: 1px solid rgba(255,255,255,.06);
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: all .25s ease;
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.07); font-size: 1.05rem; }
  .nav__cta { margin-top: 16px; padding: .9em; }
  .header.menu-open { background: rgba(11, 27, 43, .98); }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .container { padding: 0 16px; }
  .section { padding: 76px 0; }
  .section__head { margin-bottom: 40px; text-align: left; }
  .section__head .eyebrow { justify-content: flex-start; }
  .hero { padding: calc(var(--header-h) + 44px) 0 80px; }
  .hero__lead { font-size: 1.05rem; }
  .hero__ctas .btn { width: 100%; }
  .hero__trust { flex-direction: column; gap: 8px; }
  .agent-card { padding: 16px; border-radius: 20px; }
  .feed { min-height: 270px; }
  .feed__item { grid-template-columns: 32px 1fr; padding: 10px 12px; }
  .feed__icon { width: 32px; height: 32px; }
  .feed__state { grid-column: 2; justify-self: start; }
  .kpi { font-size: 1.5rem; }
  .pain-grid { grid-template-columns: 1fr; gap: 14px; margin-bottom: 40px; }
  .pain { padding: 22px; display: grid; grid-template-columns: 46px 1fr; column-gap: 16px; }
  .pain__ic { margin: 0; grid-row: span 2; }
  .calc { padding: 26px 18px; border-radius: 20px; }
  .calc__intro { text-align: left; }
  .calc__body { grid-template-columns: 1fr; gap: 28px; }
  .calc__result { padding: 24px 20px; grid-template-columns: 1fr; gap: 16px; }
  .calc__num { white-space: nowrap; }
  .benefits { grid-template-columns: 1fr; }
  .filters { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px 28px; padding: 0 16px 6px; scrollbar-width: none; }
  .filters::-webkit-scrollbar { display: none; }
  .filter { flex-shrink: 0; }
  .cases { grid-template-columns: 1fr; gap: 16px; }
  .case { padding: 22px; }
  .cases__cta { padding: 22px; }
  .cases__cta .btn { width: 100%; }
  .service { padding: 26px 22px; }
  .service--main { padding: 30px 22px; gap: 28px; }
  .service__list--cols { grid-template-columns: 1fr; }
  .service-pair { grid-template-columns: 1fr; gap: 16px; }
  .why__grid { grid-template-columns: 1fr; gap: 14px; }
  .faq details { padding: 0 18px; }
  .form { padding: 26px 18px; }
  .form__row { grid-template-columns: 1fr; gap: 0; }
  .footer { padding-bottom: 100px; }
  .footer__grid { grid-template-columns: 1fr; gap: 28px; }

  .mobile-cta {
    display: block; position: fixed; left: 16px; right: 16px; bottom: 14px; z-index: 90;
    text-align: center; padding: 15px; border-radius: 999px;
    background: var(--accent); color: #fff; font-family: var(--font-head); font-weight: 700;
    box-shadow: 0 14px 30px -10px rgba(0,0,0,.45);
    transform: translateY(140%); transition: transform .35s ease;
    text-decoration: none !important;
  }
  .mobile-cta.is-visible { transform: none; }
}

/* ---------- Pagine interne ---------- */
.hero--page { padding-bottom: 90px; }
.hero--page .hero__grid { grid-template-columns: 1fr; max-width: 860px; }
.crumbs { font-size: .88rem; margin-bottom: 18px; color: rgba(255,255,255,.6); }
.crumbs a { color: rgba(255,255,255,.8); }
.prose-grid { display: grid; grid-template-columns: 1.4fr .9fr; gap: 48px; align-items: start; }
.prose h2 { margin-bottom: .6em; }
.prose p { color: var(--muted); font-size: 1.06rem; max-width: 66ch; }
.prose strong { color: var(--ink); }
.prose .btn { margin-top: 10px; }
.note-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); position: sticky; top: calc(var(--header-h) + 24px); }
.note-card h3 { margin-bottom: 16px; }
.note-card ul { display: flex; flex-direction: column; gap: 12px; }
.note-card li { display: flex; gap: 10px; align-items: flex-start; }
.note-card li .ic { color: var(--accent); margin-top: 4px; }
.note-card--dark { background: var(--ink); border-color: var(--ink); color: rgba(255,255,255,.85); }
.note-card--dark h3 { color: #fff; }
.mini-flow { display: flex; flex-direction: column; gap: 12px; }
.mini-flow li { display: flex; gap: 12px; align-items: center; }
.mini-flow span { width: 30px; height: 30px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center; background: rgba(52,209,161,.15); color: var(--accent-bright); font-family: var(--font-head); font-weight: 800; font-size: .9rem; }
.zones { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 900px; margin: 0 auto; }
.zones li { padding: 9px 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-weight: 600; font-size: .95rem; }
@media (max-width: 860px) {
  .prose-grid { grid-template-columns: 1fr; gap: 28px; }
  .note-card { position: static; }
}
@media (max-width: 720px) {
  .zones { justify-content: flex-start; }
}
.link-arrow--light { color: var(--accent-bright); display: inline-flex; margin-top: 18px; margin-left: 4px; }
.service--main .service__copy .link-arrow--light { display: flex; }
.related { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; max-width: 900px; margin: 0 auto; }
.related__item { display: flex; gap: 16px; align-items: center; padding: 22px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); color: var(--text); text-decoration: none !important; box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s, border-color .2s; }
.related__item:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--accent); }
.related__item > .ic:first-child { width: 46px; height: 46px; padding: 11px; border-radius: 13px; background: var(--accent-soft); color: var(--accent); }
.related__item h3 { margin-bottom: 2px; font-size: 1.08rem; }
.related__item p { margin: 0; color: var(--muted); font-size: .93rem; line-height: 1.45; }
.related__go { margin-left: auto; color: var(--accent); }
@media (max-width: 720px) { .related { grid-template-columns: 1fr; } }
