/* FlussAI — landing page */
:root {
  --bg: #F4F4F1;
  --card: #FFFFFF;
  --ink: #0F1B2D;
  --muted: #5E5E68;
  --soft: #B9B9C0;
  --line: #E4E4E0;
  --blue: #1D4ED8;
  --navy: #0F2A5C;
  --blue-d: #1E3A8A;
  --blue-dd: #172554;
  --green: #0E9F6E;
  --radius: 22px;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); font-size: 17px; line-height: 1.6; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }
button { font: inherit; color: inherit; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; }
.ic { width: 1.1em; height: 1.1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }
.wrap--narrow { max-width: 860px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 8px; }

/* ---------- Bottoni ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; font-weight: 600; font-size: .98rem; padding: .9em 1.4em; border-radius: 12px; text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: transform .2s, background .2s, box-shadow .2s, border-color .2s; white-space: nowrap; }
.btn .ic { transition: transform .2s; }
.btn:hover .ic { transform: translateX(3px); }
.btn--blue { background: var(--blue); color: #fff; box-shadow: 0 10px 24px -12px rgba(29,78,216,.8); }
.btn--blue:hover { background: var(--blue-d); transform: translateY(-1px); }
.btn--line { border-color: #D6D6D2; background: rgba(255,255,255,.6); }
.btn--line:hover { border-color: var(--ink); }
.btn--white { background: #fff; color: var(--blue); width: 100%; }
.btn--white:hover { background: #EAF0FF; }
.btn--sm { padding: .62em 1.05em; font-size: .9rem; border-radius: 10px; }

/* ---------- Header ---------- */
.header { position: fixed; inset: 0 0 auto; z-index: 50; transition: background .3s, box-shadow .3s; }
.header.is-scrolled { background: rgba(244,244,241,.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); }
.header__in { height: 72px; display: flex; align-items: center; justify-content: space-between; }
.logo { font-weight: 800; font-size: 1.55rem; letter-spacing: -.05em; color: var(--blue); text-decoration: none; display: inline-flex; align-items: flex-end; }
.logo { align-items: center; }
.logo__ai { margin-left: 2px; padding: 1px 7px 2px; border-radius: 8px; background: var(--blue); color: #fff; font-size: .78em; letter-spacing: -.02em; line-height: 1.25; }
.logo--light { color: #fff; }
.logo--light .logo__ai { background: #fff; color: var(--blue); }
.header__actions { display: flex; align-items: center; gap: 14px; }
.menu-btn { display: inline-flex; align-items: center; gap: 9px; background: none; border: 0; cursor: pointer; font-weight: 500; font-size: .95rem; padding: 8px 6px; }
.menu-btn__lines { display: inline-flex; flex-direction: column; gap: 4px; width: 16px; }
.menu-btn__lines i { height: 1.8px; background: currentColor; border-radius: 2px; transition: transform .3s; }
.menu-btn[aria-expanded="true"] .menu-btn__lines i:first-child { transform: translateY(3px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-btn__lines i:last-child { transform: translateY(-3px) rotate(-45deg); }

.menu { position: fixed; inset: 72px 0 auto; z-index: 49; background: rgba(244,244,241,.97); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); padding: 20px 0 36px; animation: menuIn .3s ease; }
.menu__in { display: flex; flex-direction: column; }
.menu a { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 700; letter-spacing: -.03em; text-decoration: none; padding: 10px 0; border-bottom: 1px solid var(--line); transition: color .2s, padding .2s; }
.menu a:hover { color: var(--blue); padding-left: 8px; }
.menu .menu__cta { color: var(--blue); border: 0; display: inline-flex; align-items: center; gap: 10px; margin-top: 12px; font-size: 1.2rem; }
@keyframes menuIn { from { opacity: 0; transform: translateY(-8px); } }

/* ---------- Hero ---------- */
.hero { padding: 150px 0 0; text-align: center; overflow: hidden; position: relative; }
.hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 64px 64px; mask-image: radial-gradient(ellipse 70% 55% at 50% 30%, #000 0%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 70% 55% at 50% 30%, #000 0%, transparent 75%); opacity: .7; pointer-events: none; }
.hero__copy { position: relative; }
.hero__kicker { display: inline-flex; align-items: center; gap: 10px; font-size: .88rem; font-weight: 500; color: var(--muted); background: #fff; border: 1px solid var(--line); padding: 7px 14px; border-radius: 99px; margin-bottom: 28px; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(14,159,110,.5); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(14,159,110,0); } 100% { box-shadow: 0 0 0 0 rgba(14,159,110,0); } }
.hero h1 { font-size: clamp(2.5rem, 6.4vw, 5.2rem); line-height: 1.02; letter-spacing: -.045em; font-weight: 700; margin-bottom: 26px; }
.hero h1 em, .big-title em, .cta h2 em, .footer__big em { color: var(--blue); letter-spacing: -.01em; }
.hero__lead { font-size: 1.15rem; color: var(--muted); max-width: 640px; margin: 0 auto 34px; }
.hero__ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Mockup */
.stage { position: relative; height: 520px; margin: 70px auto 0; max-width: 1240px; }
.mock { position: absolute; background: var(--card); border-radius: 18px; box-shadow: 0 1px 2px rgba(0,0,0,.05), 0 30px 60px -24px rgba(16,16,40,.28); border: 1px solid #ECECE8; text-align: left; font-size: .82rem; animation: float 7s ease-in-out infinite; }
.mock__bar { display: flex; align-items: center; gap: 6px; padding: 12px 14px; border-bottom: 1px solid #F0F0EC; }
.mock__bar span { width: 9px; height: 9px; border-radius: 50%; background: #E3E3DE; }
.mock__bar b { margin-left: 8px; font-weight: 600; font-size: .8rem; color: var(--muted); }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(var(--r, 0deg)); } 50% { transform: translateY(-12px) rotate(var(--r, 0deg)); } }

.mock--main { left: 50%; top: 20px; width: 560px; margin-left: -280px; z-index: 3; animation-delay: -1s; }
.dash { padding: 18px; }
.dash__kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.dash__kpis div { background: #F7F7F4; border-radius: 12px; padding: 12px; }
.dash__kpis small { display: block; color: var(--muted); font-size: .72rem; }
.dash__kpis strong { font-size: 1.5rem; letter-spacing: -.03em; }
.dash__kpis .kpi-blue { color: var(--blue); }
.dash__chart { height: 96px; background: #F7F7F4; border-radius: 12px; padding: 8px 0 0; overflow: hidden; margin-bottom: 14px; }
.dash__chart svg { width: 100%; height: 100%; }
.chart-line { fill: none; stroke: var(--blue); stroke-width: 2.5; stroke-dasharray: 600; stroke-dashoffset: 600; animation: draw 2.4s .4s ease forwards; vector-effect: non-scaling-stroke; }
.chart-area { fill: rgba(29,78,216,.08); }
@keyframes draw { to { stroke-dashoffset: 0; } }
.dash__flows li { display: flex; align-items: center; gap: 10px; padding: 9px 4px; border-top: 1px solid #F0F0EC; font-weight: 500; }
.dash__flows .ic { color: var(--blue); }
.dash__flows .on { margin-left: auto; font-size: .72rem; font-weight: 600; color: var(--green); background: rgba(14,159,110,.1); padding: 3px 9px; border-radius: 99px; }

.mock--invoice { left: 2%; top: 120px; width: 330px; --r: -5deg; z-index: 2; animation-delay: -3s; }
.inv { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 8px; }
.inv__row { display: grid; grid-template-columns: 36px 1fr auto; gap: 10px; align-items: center; }
.inv__doc { width: 36px; height: 40px; border-radius: 7px; background: #FFF0F0; color: #D03A3A; font-size: .62rem; font-weight: 700; display: grid; place-items: center; }
.inv__row strong { display: block; font-size: .8rem; }
.inv__row small { color: var(--muted); font-size: .72rem; }
.tag { font-size: .68rem; font-weight: 600; padding: 3px 8px; border-radius: 99px; white-space: nowrap; }
.tag--ok { background: rgba(14,159,110,.1); color: var(--green); }
.tag--run { background: rgba(29,78,216,.08); color: var(--blue); }

.mock--cal { right: 14%; top: 250px; width: 230px; padding: 16px; z-index: 4; --r: 3deg; animation-delay: -5s; }
.cal__head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.cal__day { width: 46px; height: 46px; border-radius: 12px; background: var(--blue); color: #fff; font-size: 1.4rem; font-weight: 700; display: grid; place-items: center; }
.cal__head small { display: block; color: var(--muted); }
.cal__item { display: flex; align-items: center; gap: 8px; padding: 6px 0; font-size: .76rem; border-top: 1px solid #F0F0EC; }
.cal__item i { width: 4px; height: 18px; border-radius: 2px; background: var(--green); }
.cal__item i.b { background: var(--blue); }
.cal__note { margin-top: 8px; display: flex; align-items: center; gap: 6px; font-size: .74rem; font-weight: 600; color: var(--green); }

.mock--chat { right: 1%; top: 60px; width: 250px; padding: 14px; background: #fff; --r: 5deg; z-index: 2; animation-delay: -2s; }
.chat__head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.chat__av { width: 34px; height: 34px; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 700; display: grid; place-items: center; }
.chat__head small { display: block; color: var(--green); font-size: .72rem; }
.bubble { padding: 8px 11px; border-radius: 14px; margin-bottom: 7px; max-width: 88%; line-height: 1.4; font-size: .78rem; }
.bubble--in { background: #F1F1EE; border-bottom-left-radius: 4px; }
.bubble--out { background: var(--blue); color: #fff; margin-left: auto; border-bottom-right-radius: 4px; }
.typing { display: inline-flex; gap: 4px; background: #F1F1EE; padding: 9px 12px; border-radius: 14px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: #A8A8B0; animation: dot 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%, 60%, 100% { transform: none; opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }

/* Ticker */
.ticker { position: relative; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; overflow: hidden; padding: 18px 0; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.ticker__track { display: flex; gap: 48px; width: max-content; animation: marquee 40s linear infinite; }
.ticker__track span { display: inline-flex; align-items: center; gap: 48px; font-weight: 600; white-space: nowrap; color: var(--muted); }
.ticker__track span::after { content: "✦"; color: var(--blue); font-size: .8rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Manifesto ---------- */
.manifesto { padding: 160px 0; }
.reveal-text { font-family: var(--serif); font-size: clamp(2rem, 4.6vw, 3.6rem); line-height: 1.15; letter-spacing: -.01em; max-width: 980px; margin-bottom: 1.1em; }
.reveal-text:last-child { margin-bottom: 0; }
.reveal-text .w { color: #CFCFD4; transition: color .25s; }
.reveal-text .w.on { color: var(--ink); }
.reveal-text--blue .w.on { color: var(--blue); }
.reveal-text em { font-family: inherit; }

/* ---------- Sezione blu ---------- */
.blue { position: relative; background: var(--navy); color: #fff; padding: 140px 0; overflow: hidden; }
.blue__grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px); background-size: 56px 56px; pointer-events: none; }
.blue::after { content: ""; position: absolute; inset: 0; background: radial-gradient(900px 600px at 80% 0%, rgba(255,255,255,.12), transparent 60%), radial-gradient(800px 600px at 0% 100%, rgba(5,10,90,.45), transparent 60%); pointer-events: none; }
.thread { position: absolute; left: 50%; top: 0; width: 200px; height: 100%; margin-left: -100px; pointer-events: none; z-index: 1; }
.thread path { fill: none; stroke: rgba(255,255,255,.45); stroke-width: 2; vector-effect: non-scaling-stroke; }
.blue__in { position: relative; z-index: 2; }
.blue__eyebrow { text-align: center; font-family: var(--serif); font-style: italic; font-size: 1.6rem; opacity: .85; margin-bottom: 70px; }

.pb { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-bottom: 140px; }
.pb__col { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.16); border-radius: var(--radius); padding: 40px; backdrop-filter: blur(6px); }
.pb__col p { color: rgba(255,255,255,.82); font-size: 1.06rem; }
.pb__col p + p { margin-top: 14px; }
.pb__title { font-size: clamp(2rem, 3.6vw, 2.8rem); letter-spacing: -.035em; font-weight: 700; margin-bottom: 22px; }
.pb__list li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid rgba(255,255,255,.14); font-size: 1.04rem; }
.pb__list li:first-child { border-top: 0; }
.pb__list .ic { color: #FF9C9C; }

.integr { text-align: center; margin-bottom: 140px; }
.integr__q { font-size: 1.8rem; text-align: center; opacity: .9; margin-bottom: 8px; }
.integr__title { font-size: clamp(2.6rem, 6vw, 4.8rem); letter-spacing: -.045em; font-weight: 700; margin-bottom: 44px; }
.integr__list { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; max-width: 900px; margin: 0 auto; }
.integr__list li { display: inline-flex; align-items: center; gap: 10px; padding: 14px 20px; border-radius: 14px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); font-weight: 600; font-size: 1.02rem; transition: background .2s, transform .2s; }
.integr__list li:hover { background: rgba(255,255,255,.18); transform: translateY(-2px); }

.results__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 40px; }
.res { background: linear-gradient(160deg, var(--blue-d), var(--blue-dd)); border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius); padding: 36px; text-align: center; box-shadow: 0 30px 60px -30px rgba(0,0,30,.6); }
.res h3 { font-size: 1.55rem; letter-spacing: -.03em; margin-bottom: 10px; }
.res p { color: rgba(255,255,255,.78); }

/* ---------- Titoli sezione ---------- */
.big-title { font-size: clamp(2.4rem, 5.4vw, 4.4rem); line-height: 1.04; letter-spacing: -.045em; font-weight: 700; text-align: center; margin-bottom: 20px; }
.sub { text-align: center; color: var(--muted); font-size: 1.1rem; max-width: 620px; margin: 0 auto 56px; }

/* ---------- Team ---------- */
.team { padding: 150px 0 120px; }
.team__lead { max-width: 720px; margin: 0 auto 56px; text-align: center; color: var(--muted); font-size: 1.12rem; }
.team__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 860px; margin: 0 auto 32px; }
.person { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }
.person__av { width: 64px; height: 64px; border-radius: 18px; background: var(--ink); color: #fff; font-size: 1.3rem; letter-spacing: -.03em; font-weight: 700; display: grid; place-items: center; margin-bottom: 18px; }
.person__av--blue { background: var(--blue); }
.person h3 { font-size: 1.3rem; letter-spacing: -.02em; }
.person__role { color: var(--blue); font-weight: 600; font-size: .92rem; margin: 2px 0 12px; }
.person p:last-child { color: var(--muted); }
.team__social { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 99px; background: #fff; border: 1px solid var(--line); text-decoration: none; font-weight: 600; font-size: .92rem; transition: border-color .2s; }
.chip:hover { border-color: var(--ink); }

/* ---------- Metodo ---------- */
.method { padding: 100px 0 120px; }
.stepper { max-width: 960px; margin: 0 auto; background: var(--card); border: 1px solid var(--line); border-radius: 28px; padding: 14px; box-shadow: 0 30px 60px -40px rgba(16,16,40,.3); }
.stepper__tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; background: #F4F4F1; border-radius: 18px; padding: 6px; }
.stepper__tabs button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; background: transparent; padding: 12px 8px; border-radius: 13px; font-weight: 600; cursor: pointer; color: var(--muted); transition: background .25s, color .25s, box-shadow .25s; }
.stepper__tabs button span { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: .78rem; background: #E6E6E1; transition: background .25s, color .25s; }
.stepper__tabs button[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: 0 2px 10px rgba(0,0,0,.06); }
.stepper__tabs button[aria-selected="true"] span { background: var(--blue); color: #fff; }
.stepper__panels { position: relative; min-height: 290px; }
.panel { position: absolute; inset: 0; padding: 56px 64px 30px; text-align: center; opacity: 0; transform: translateY(10px); transition: opacity .4s, transform .4s; pointer-events: none; }
.panel.is-active { opacity: 1; transform: none; pointer-events: auto; position: relative; }
.panel h3 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); letter-spacing: -.035em; margin-bottom: 18px; }
.panel h3 em { color: var(--blue); }
.panel p { color: var(--muted); max-width: 640px; margin: 0 auto 12px; font-size: 1.06rem; }
.panel p em { color: var(--ink); font-size: 1.12em; }
.stepper__nav { display: flex; align-items: center; gap: 16px; padding: 10px 14px 6px; }
.round { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; cursor: pointer; transition: border-color .2s, background .2s; }
.round:hover { border-color: var(--ink); }
.round:disabled { opacity: .35; cursor: default; border-color: var(--line); }
.stepper__bar { flex: 1; height: 3px; background: #EDEDE9; border-radius: 3px; overflow: hidden; }
.stepper__bar span { display: block; height: 100%; width: 25%; background: var(--blue); border-radius: 3px; transition: width .4s ease; }

/* ---------- Casi ---------- */
.cases { padding: 100px 0 140px; }
.cases__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.case { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 14px 26px; transition: transform .3s, box-shadow .3s; }
.case:hover { transform: translateY(-6px); box-shadow: 0 30px 50px -30px rgba(16,16,40,.35); }
.case__vis { height: 170px; border-radius: 14px; background: #F4F4F1; margin-bottom: 20px; display: flex; flex-direction: column; justify-content: center; gap: 8px; padding: 18px; overflow: hidden; }
.case > :not(.case__vis) { margin-left: 8px; margin-right: 8px; }
.case__cat { display: inline-block; font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--blue); margin-bottom: 8px; }
.case h3 { font-size: 1.18rem; letter-spacing: -.02em; line-height: 1.25; margin-bottom: 8px; }
.case p { color: var(--muted); font-size: .95rem; line-height: 1.5; }
.mini-row { display: grid; grid-template-columns: 34px 1fr 22px; gap: 10px; align-items: center; background: #fff; border-radius: 10px; padding: 7px 9px; box-shadow: 0 2px 6px rgba(0,0,0,.04); }
.mini-row b { font-size: .6rem; background: #FFF0F0; color: #D03A3A; border-radius: 6px; padding: 5px 0; text-align: center; }
.mini-row span { height: 7px; border-radius: 4px; background: #E6E6E1; }
.mini-row em { font-style: normal; color: var(--green); font-weight: 700; font-family: var(--sans); }
.case__vis--mail { flex-direction: row; flex-wrap: wrap; align-content: center; justify-content: center; gap: 8px; }
.mail-tag { padding: 8px 14px; border-radius: 10px; font-weight: 600; font-size: .82rem; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.05); }
.mail-tag.a { color: var(--blue); } .mail-tag.b { color: #B5650B; } .mail-tag.c { color: var(--green); } .mail-tag.d { color: #9A9AA3; text-decoration: line-through; }
.case__vis--chat { gap: 4px; }
.bubble.sm { font-size: .76rem; }
.case__vis--rep { justify-content: flex-end; }
.bars { display: flex; align-items: flex-end; gap: 10px; height: 120px; }
.bars i { flex: 1; height: var(--h); border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, var(--blue), #6B93F5); opacity: .9; transform-origin: bottom; }
.case.is-visible .bars i { animation: grow .9s cubic-bezier(.2,.8,.2,1) both; }
.bars i:nth-child(2) { animation-delay: .08s !important; } .bars i:nth-child(3) { animation-delay: .16s !important; } .bars i:nth-child(4) { animation-delay: .24s !important; } .bars i:nth-child(5) { animation-delay: .32s !important; } .bars i:nth-child(6) { animation-delay: .4s !important; }
@keyframes grow { from { transform: scaleY(0); } }

/* ---------- CTA ---------- */
.cta-sec { padding: 0 0 130px; }
.cta { position: relative; overflow: hidden; background: var(--navy); color: #fff; border-radius: 32px; padding: 72px 64px; display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.cta::after { content: ""; position: absolute; inset: 0; background: radial-gradient(700px 400px at 100% 0%, rgba(255,255,255,.14), transparent 60%); pointer-events: none; }
.cta__copy, .cta__form { position: relative; z-index: 1; }
.cta h2 { font-size: clamp(2.2rem, 4.4vw, 3.6rem); line-height: 1.04; letter-spacing: -.045em; margin-bottom: 20px; }
.cta h2 em { color: #fff; opacity: .9; }
.cta__copy p { color: rgba(255,255,255,.82); font-size: 1.1rem; }
.cta__form { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.2); border-radius: 22px; padding: 22px; display: flex; flex-direction: column; gap: 10px; backdrop-filter: blur(8px); }
.cta__form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cta__form input:not([type="checkbox"]), .cta__form textarea { width: 100%; font: inherit; font-size: .98rem; color: #fff; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.22); border-radius: 12px; padding: 13px 14px; transition: border-color .2s, background .2s; resize: vertical; }
.cta__form ::placeholder { color: rgba(255,255,255,.62); }
.cta__form input:focus, .cta__form textarea:focus { outline: none; border-color: #fff; background: rgba(255,255,255,.16); }
.cta__form .invalid { border-color: #FFB4B4 !important; background: rgba(255,120,120,.14) !important; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .84rem; color: rgba(255,255,255,.8); line-height: 1.4; margin: 4px 0 6px; }
.consent input { width: 17px; height: 17px; accent-color: #fff; margin-top: 1px; flex-shrink: 0; }
.consent.invalid { color: #FFC9C9; }
.form-msg { font-size: .92rem; text-align: center; min-height: 1.3em; }

/* ---------- FAQ ---------- */
.faq { padding: 40px 0 140px; }
.faq__list { display: flex; flex-direction: column; gap: 10px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 16px; transition: border-color .2s; }
.faq details[open] { border-color: #CDCDC8; }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 26px; font-weight: 600; font-size: 1.05rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ic { width: 22px; height: 22px; padding: 3px; border-radius: 50%; background: #F1F1EE; transition: transform .3s, background .3s, color .3s; }
.faq details[open] summary .ic { transform: rotate(45deg); background: var(--blue); color: #fff; }
.faq details p { padding: 0 26px 24px; color: var(--muted); }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: rgba(255,255,255,.7); padding: 110px 0 32px; }
.footer__big { font-size: clamp(2.8rem, 8vw, 7rem); line-height: 1; letter-spacing: -.05em; font-weight: 700; color: #fff; margin-bottom: 80px; }
.footer__big em { color: #8FB0FF; }
.footer__row { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer__claim { margin-top: 10px; max-width: 320px; }
.footer__contacts { display: flex; gap: 48px; flex-wrap: wrap; }
.footer__contacts span { display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: rgba(255,255,255,.45); margin-bottom: 4px; }
.footer__contacts a { color: #fff; text-decoration: none; font-weight: 600; font-size: 1.1rem; }
.footer__contacts a:hover { text-decoration: underline; }
.footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 24px; font-size: .86rem; }
.footer__bottom a { text-decoration: none; }
.footer__bottom a:hover { color: #fff; }

/* ---------- Toast ---------- */
.toast { position: fixed; right: 24px; bottom: 24px; z-index: 60; width: min(380px, calc(100vw - 32px)); display: flex; gap: 12px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 14px; box-shadow: 0 24px 50px -20px rgba(16,16,40,.4); animation: toastIn .5s cubic-bezier(.2,.8,.2,1); }
.toast[hidden] { display: none; }
@keyframes toastIn { from { opacity: 0; transform: translateY(20px) scale(.97); } }
.toast__av { position: relative; flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 800; font-size: 1.1rem; display: grid; place-items: center; letter-spacing: -.05em; }
.toast__av i { position: absolute; right: 0; bottom: 0; width: 11px; height: 11px; border-radius: 50%; background: var(--green); border: 2px solid #fff; }
.toast__body strong { font-size: .92rem; }
.toast__body p { font-size: .86rem; color: var(--muted); line-height: 1.4; }
.toast__actions { display: flex; gap: 4px; margin-left: auto; }
.toast__close, .toast__go { width: 32px; height: 32px; border-radius: 50%; border: 0; background: #F4F4F1; display: grid; place-items: center; cursor: pointer; color: var(--muted); }
.toast__go { background: var(--blue); color: #fff; }
.toast__close:hover { color: #D03A3A; }

/* ---------- Animazioni ingresso ---------- */
.fade { opacity: 0; transform: translateY(28px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
.fade.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .fade { opacity: 1; transform: none; }
  .chart-line { stroke-dashoffset: 0; }
  .reveal-text .w { color: var(--ink); }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .mock--invoice { left: -2%; }
  .mock--chat { right: -2%; }
  .mock--cal { right: 6%; }
  .cases__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .stage { height: 460px; }
  .mock--main { width: 480px; margin-left: -240px; }
  .mock--chat { display: none; }
  .mock--invoice { left: -60px; top: 230px; }
  .mock--cal { right: -30px; top: 270px; }
  .pb { grid-template-columns: 1fr; margin-bottom: 100px; }
  .integr { margin-bottom: 100px; }
  .cta { grid-template-columns: 1fr; padding: 52px 36px; gap: 36px; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .header__in { height: 64px; }
  .menu { inset: 64px 0 auto; }
  .menu-btn { font-size: 0; gap: 0; padding: 10px; }
  .hero { padding-top: 116px; }
  .hero__kicker { font-size: .8rem; }
  .hero__lead { font-size: 1.04rem; }
  .hero__ctas .btn { width: 100%; }
  .stage { height: 430px; margin-top: 48px; }
  .mock--main { width: 330px; margin-left: -165px; top: 0; }
  .dash { padding: 12px; }
  .dash__kpis { gap: 6px; }
  .dash__kpis div { padding: 8px; }
  .dash__kpis strong { font-size: 1.15rem; }
  .dash__kpis small { font-size: .62rem; line-height: 1.25; }
  .dash__chart { height: 70px; }
  .dash__flows li:nth-child(3) { display: none; }
  .mock--invoice { display: none; }
  .mock--cal { width: 190px; right: 4px; top: 250px; padding: 12px; }
  .cal__item:nth-of-type(3) { display: none; }
  .manifesto { padding: 100px 0; }
  .blue { padding: 100px 0; }
  .thread { display: none; }
  .blue__eyebrow { margin-bottom: 40px; }
  .pb__col { padding: 28px 22px; }
  .integr__list li { padding: 11px 14px; font-size: .94rem; }
  .results__grid { grid-template-columns: 1fr; }
  .res { padding: 28px 22px; }
  .team { padding: 100px 0 80px; }
  .team__grid { grid-template-columns: 1fr; }
  .stepper { border-radius: 22px; padding: 10px; }
  .stepper__tabs { grid-template-columns: repeat(4, 1fr); }
  .stepper__tabs button { flex-direction: column; font-size: .74rem; padding: 10px 2px; gap: 4px; }
  .panel { padding: 36px 14px 18px; }
  .cases { padding: 80px 0 100px; }
  .cases__grid { grid-template-columns: 1fr; }
  .cta-sec { padding-bottom: 90px; }
  .cta { padding: 40px 20px; border-radius: 24px; }
  .cta__form { padding: 16px; }
  .cta__form .row { grid-template-columns: 1fr; }
  .faq summary { padding: 18px; font-size: 1rem; }
  .faq details p { padding: 0 18px 20px; }
  .footer { padding-top: 80px; }
  .footer__big { margin-bottom: 56px; }
  .toast { right: 16px; bottom: 16px; }
}
