/* Palette: deep navy + royal blue, with a warm amber highlight */
:root {
  --bg: #f7f9fc;
  --surface: #ffffff;
  --tint: #eef3fa;
  --ink: #0b1b33;
  --muted: #55627a;
  --line: #e1e7f0;
  --accent: #1d4ed8;
  --accent-2: #3b82f6;
  --accent-ink: #ffffff;
  --accent-soft: #e4ecff;
  --warm: #f5a524;
  --good: #0f9d6b;
  --dark: #0b1b33;
  --dark-2: #12284a;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(11, 27, 51, .05), 0 12px 32px -12px rgba(11, 27, 51, .18);
  --font-head: "Bricolage Grotesque", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #07111f;
    --surface: #0e1b2f;
    --tint: #0b1728;
    --ink: #eef3fa;
    --muted: #9badc4;
    --line: #1d2d47;
    --accent: #4f7dff;
    --accent-2: #60a5fa;
    --accent-soft: #142a5c;
    --dark: #040b16;
    --dark-2: #0e1b2f;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 16px 40px -16px rgba(0,0,0,.6);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.08; letter-spacing: -.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.5rem, 5.6vw, 4.4rem); font-weight: 800; }
h2 { font-size: clamp(2rem, 3.8vw, 3rem); font-weight: 800; }
h3 { font-size: 1.3rem; font-weight: 700; }
p { margin: 0 0 1em; }

.container { width: min(1180px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(820px, 100% - 32px); }
.center { text-align: center; }
/* Bilingual content: show only the active language */
html[lang="it"] body [lang="en"], html[lang="en"] body [lang="it"] { display: none !important; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

.lead { font-size: 1.15rem; color: var(--muted); max-width: 40em; }
.kicker { font-weight: 600; color: var(--accent); text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; margin-bottom: .9em; }
.hl { background: linear-gradient(transparent 62%, color-mix(in srgb, var(--warm) 45%, transparent) 62%); padding: 0 .08em; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .95em 1.4em; border-radius: 999px; font-weight: 600; font-size: 1rem;
  text-decoration: none; border: 1.5px solid transparent; cursor: pointer;
  transition: transform .2s, box-shadow .2s, background .2s, border-color .2s;
  font-family: inherit;
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.btn:hover svg { transform: translateX(3px); }
.btn--primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 8px 22px -8px color-mix(in srgb, var(--accent) 70%, transparent); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -10px color-mix(in srgb, var(--accent) 80%, transparent); }
.btn--ghost { border-color: var(--line); background: var(--surface); }
.btn--ghost:hover { border-color: var(--ink); transform: translateY(-2px); }
.btn--sm { padding: .6em 1.1em; font-size: .9rem; }
.btn--block { width: 100%; }
.btn:focus-visible, a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid transparent; transition: border-color .3s; }
.nav.is-scrolled { border-color: var(--line); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { display: inline-flex; align-items: center; gap: .55em; font: 800 1.3rem var(--font-head); text-decoration: none; letter-spacing: -.02em; }
.logo__mark { width: 34px; height: 34px; border-radius: 10px; background: var(--accent); display: grid; place-items: center; }
.logo__mark svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }
.nav__links { display: flex; align-items: center; gap: 1.8rem; }
.nav__links a:not(.btn) { text-decoration: none; color: var(--muted); font-weight: 500; font-size: .95rem; transition: color .2s; }
.nav__links a:not(.btn):hover { color: var(--ink); }
.nav__right { display: flex; align-items: center; gap: 8px; margin-left: 1.4rem; }
.lang-switch { display: inline-flex; padding: 3px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); }
.lang-switch button { border: 0; background: none; font: 700 .78rem var(--font-body); letter-spacing: .04em; color: var(--muted); padding: .45em .75em; border-radius: 999px; cursor: pointer; transition: background .2s, color .2s; }
.lang-switch button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.play-i { width: 16px !important; height: 16px !important; fill: currentColor !important; stroke: none !important; }
.nav__toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; position: relative; }
.nav__toggle span { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s, top .3s; }
.nav__toggle span:first-child { top: 17px; }
.nav__toggle span:last-child { top: 25px; }
.nav__toggle[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

/* Hero */
.hero { padding: 72px 0 56px; position: relative; }
.hero::before {
  content: ""; position: absolute; inset: -120px 0 auto; height: 720px; z-index: -1;
  background:
    radial-gradient(600px 360px at 85% 20%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%),
    radial-gradient(500px 300px at 10% 0%, color-mix(in srgb, var(--warm) 16%, transparent), transparent 70%);
}
.hero__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: .6em; font-size: .88rem; font-weight: 500; padding: .45em .95em; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); margin-bottom: 1.4em; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 0 var(--good); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 2em 0 2.4em; }
.hero__proof { display: flex; flex-wrap: wrap; gap: 28px; list-style: none; padding: 0; margin: 0; color: var(--muted); font-size: .92rem; }
.hero__proof strong { display: block; color: var(--ink); font: 800 1.6rem var(--font-head); }

.hero__visual { position: relative; }
.browser { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow), 0 40px 80px -40px color-mix(in srgb, var(--accent) 45%, transparent); overflow: hidden; transform: rotate(-1deg); }
.browser__bar { display: flex; align-items: center; gap: 6px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.browser__bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.browser__bar i:first-child { background: #ff5f57; } .browser__bar i:nth-child(2) { background: #febc2e; } .browser__bar i:nth-child(3) { background: #28c840; }
.browser__bar span { margin-left: 12px; font-size: .78rem; color: var(--muted); background: var(--tint); padding: 3px 12px; border-radius: 6px; flex: 1; }
.browser__body { padding: 20px; display: grid; gap: 16px; }
.kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.kpi { background: var(--tint); border-radius: 12px; padding: 12px 14px; }
.kpi small { display: block; color: var(--muted); font-size: .76rem; }
.kpi b { font: 800 1.6rem var(--font-head); }
.kpi em { font-style: normal; font-size: .78rem; font-weight: 600; color: var(--good); margin-left: 6px; }
.chart svg { width: 100%; height: 120px; }
.chart__line { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 500; stroke-dashoffset: 500; animation: draw 2s .4s ease-out forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.rows { display: grid; gap: 8px; }
.row { display: flex; align-items: center; gap: 10px; font-size: .84rem; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line); }
.row p { margin: 0; flex: 1; color: var(--muted); }
.row b { color: var(--ink); font-weight: 600; }
.row time { font-size: .75rem; color: var(--muted); }
.av { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: .7rem; font-weight: 700; background: var(--accent-soft); color: var(--accent); flex: none; }
.av--2 { background: color-mix(in srgb, var(--warm) 20%, transparent); color: var(--warm); }
.av--3 { background: color-mix(in srgb, var(--good) 20%, transparent); color: var(--good); }

.float { position: absolute; display: flex; gap: 10px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px; box-shadow: var(--shadow); font-size: .85rem; animation: bob 6s ease-in-out infinite; }
.float b { display: block; }
.float small { color: var(--muted); }
.float__icon { font-size: 1.3rem; }
.float--1 { left: -36px; bottom: 64px; }
.float--2 { right: -20px; top: -22px; animation-delay: -3s; }
@keyframes bob { 50% { transform: translateY(-10px); } }

/* Logos */
.logos { padding: 28px 0 8px; }
.logos p { text-align: center; color: var(--muted); font-size: .88rem; margin-bottom: 1.2em; }
.logos__row { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px 48px; }
.logos__row span { font: 700 1.25rem var(--font-head); color: var(--muted); opacity: .7; letter-spacing: -.01em; }

/* Sections */
.section { padding: 110px 0; }
.section--tint { background: var(--tint); }
.section--dark { background: var(--dark); color: #f1f1f7; }
.section--dark .kicker { color: #a9a9ff; }
.section__head { max-width: 640px; margin-bottom: 56px; }
.section__head p:last-child { color: var(--muted); font-size: 1.08rem; }
.problem { padding: 96px 0 40px; }
.problem .lead { margin-inline: auto; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; transition: transform .25s, box-shadow .25s, border-color .25s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); }
.card__icon { width: 50px; height: 50px; border-radius: 14px; background: var(--accent-soft); display: grid; place-items: center; margin-bottom: 20px; }
.card__icon svg { width: 24px; height: 24px; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.card p { color: var(--muted); }
.card ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.card li { font-size: .78rem; font-weight: 500; padding: .3em .75em; border-radius: 999px; background: var(--tint); }

/* Stats */
.stats { background: linear-gradient(120deg, var(--dark) 0%, #143a8a 100%); color: #fff; padding: 64px 0; }
.stat b { background: linear-gradient(180deg, #fff, #bcd3ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat b { display: block; font: 800 clamp(2.4rem, 4.5vw, 3.4rem) var(--font-head); letter-spacing: -.03em; line-height: 1.1; }
.stat span { opacity: .85; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; position: relative; }
.step__n { font: 800 2.6rem var(--font-head); color: transparent; -webkit-text-stroke: 1.5px var(--accent); display: block; margin-bottom: .3em; }
.step p { color: var(--muted); margin: 0; font-size: .96rem; }

/* Quotes */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.quote { margin: 0; background: var(--dark-2); border: 1px solid rgba(255,255,255,.08); border-radius: var(--radius); padding: 30px; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; }
.quote blockquote { margin: 0; font-size: 1.05rem; line-height: 1.6; }
.quote figcaption { display: flex; gap: 12px; align-items: center; }
.quote small { display: block; color: #a3a5bb; }
.section--dark .section__head h2 { color: #fff; }

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 0 24px; transition: border-color .2s; }
.faq details[open] { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.faq summary { cursor: pointer; list-style: none; font-weight: 600; padding: 20px 0; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; font-weight: 400; color: var(--accent); transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 20px; margin: 0; }

/* Contact */
.contact { background: linear-gradient(180deg, var(--bg), var(--tint)); }
.contact__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: start; }
.contact__list { list-style: none; padding: 0; margin: 2em 0 0; display: grid; gap: 14px; }
.contact__list li { display: flex; gap: 12px; align-items: center; }
.contact__list a { text-decoration: none; font-weight: 500; }
.contact__list a:hover { color: var(--accent); }
.form { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 34px; box-shadow: var(--shadow); display: grid; gap: 18px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: grid; gap: 6px; font-size: .88rem; font-weight: 600; }
.opt { font-weight: 400; color: var(--muted); }
.form input:not([type="checkbox"]), .form textarea {
  font: 400 1rem var(--font-body); color: var(--ink); background: var(--bg);
  border: 1.5px solid var(--line); border-radius: 12px; padding: .8em 1em; width: 100%;
  transition: border-color .2s, box-shadow .2s;
}
.form textarea { resize: vertical; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.form .is-invalid { border-color: #e5484d !important; }
fieldset { border: 0; padding: 0; margin: 0; }
legend { font-size: .88rem; font-weight: 600; margin-bottom: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { cursor: pointer; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip > span { display: inline-block; padding: .5em 1em; border-radius: 999px; border: 1.5px solid var(--line); font-weight: 500; font-size: .9rem; transition: all .2s; }
.chip input:checked + span { background: var(--accent); border-color: var(--accent); color: #fff; }
.chip input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.form__note { margin: 0; font-size: .86rem; color: var(--muted); text-align: center; }
.form__note.is-error { color: #e5484d; }
.form__note.is-success { color: var(--good); font-weight: 600; }

/* Footer */
.footer { background: var(--dark); color: #c9cadb; padding: 72px 0 28px; }
.footer .logo { color: #fff; margin-bottom: 1em; }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.3fr; gap: 40px; }
.footer__grid p { max-width: 30ch; font-size: .95rem; }
.footer h4 { color: #fff; font-family: var(--font-body); font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 1em; }
.footer__grid a:not(.logo) { display: block; text-decoration: none; padding: 4px 0; font-size: .95rem; color: #c9cadb; }
.footer__grid a:not(.logo):hover { color: #fff; }
.footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; border-top: 1px solid rgba(255,255,255,.1); margin-top: 48px; padding-top: 24px; }
.footer__bottom a { color: inherit; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .chart__line { stroke-dashoffset: 0; }
}

/* Responsive */
@media (max-width: 1024px) {
  .hero__grid { grid-template-columns: 1fr; gap: 56px; }
  .hero__visual { max-width: 560px; margin-inline: auto; width: 100%; }
  .cards, .quotes { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .contact__grid { grid-template-columns: 1fr; gap: 40px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .nav__toggle { display: block; }
  .nav__right { margin-left: auto; }
  .nav__links {
    position: fixed; inset: 72px 0 auto; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 16px 20px;
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: all .25s;
  }
  .nav__links.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav__links a:not(.btn) { padding: 14px 4px; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav__cta { margin-top: 16px; }
  .stats__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .section { padding: 76px 0; }
  .hero { padding: 40px 0 32px; }
  .cards, .quotes, .steps { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .form { padding: 24px; }
  .float--1 { left: -6px; bottom: 40px; }
  .float--2 { right: -6px; top: -26px; }
  .hero__proof { gap: 20px; }
  .hero__actions .btn { flex: 1 1 100%; }
  .footer__grid { grid-template-columns: 1fr; }
}

/* About */
.about { background: var(--tint); }
.about__grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: 72px; align-items: center; }
.about__media { position: relative; padding: 0 0 70px 0; }
.about__img { display: block; border-radius: 24px; object-fit: cover; box-shadow: var(--shadow); }
.about__img--main { width: 82%; aspect-ratio: 9 / 11; height: auto; }
.about__img--small { position: absolute; right: 0; bottom: 0; width: 52%; aspect-ratio: 30 / 23; height: auto; border: 6px solid var(--tint); }
.about__badge { position: absolute; left: 24px; bottom: 26px; display: flex; gap: 12px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 12px 16px; box-shadow: var(--shadow); max-width: 260px; }
.about__badge b { display: block; font-size: .95rem; }
.about__badge small { color: var(--muted); font-size: .82rem; }
.about__badge-icon { font-size: 1.6rem; }
.about__text { color: var(--muted); }
.values { list-style: none; padding: 0; margin: 28px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 18px 24px; }
.values li { display: flex; gap: 14px; align-items: flex-start; }
.values__icon { flex: none; width: 42px; height: 42px; border-radius: 12px; background: var(--accent-soft); display: grid; place-items: center; }
.values__icon svg { width: 21px; height: 21px; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.values b { display: block; margin-bottom: 2px; }
.values p { margin: 0; color: var(--muted); font-size: .94rem; }
.about__facts { display: flex; gap: 36px; flex-wrap: wrap; padding: 22px 0; margin-bottom: 26px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.about__facts b { display: block; font: 800 1.9rem var(--font-head); letter-spacing: -.02em; }
.about__facts small { color: var(--muted); font-size: .85rem; }
@media (max-width: 1024px) {
  .about__grid { grid-template-columns: 1fr; gap: 48px; }
  .about__media { max-width: 560px; margin-inline: auto; width: 100%; }
}
@media (max-width: 640px) {
  .values { grid-template-columns: 1fr; }
  .about__media { padding-bottom: 50px; }
  .about__badge { left: 10px; bottom: 10px; }
  .about__facts { gap: 22px; }
}

.footer__loc { margin: 4px 0 0; padding: 4px 0; font-size: .95rem; color: #c9cadb; }

.logo em { font-style: normal; color: var(--accent); }
.footer .logo em { color: #8fb0ff; }
.logo__mark svg { stroke-width: 2.6 !important; }
