:root {
  --bg: #ffffff;
  --bg-alt: #f6f8fb;
  --footer-bg: #1b2028;
  --ink: #222222;
  --ink-dim: #6b7280;
  --ink-on-dark: #eef1f6;
  --dim-on-dark: #9aa3b2;
  --line: #e7eaf0;
  --accent: #379b02;
  --accent-dark: #2b7a01;
  --accent-soft: #eef7e6;
  --second: #6362e5;
  --second-soft: #efeffc;
  --third: #f7c633;
  --shadow-card: 0 6px 24px -10px rgba(34,34,34,.12);
  --shadow-fig: 0 10px 20px -8px rgba(34,34,34,.12), 0 30px 60px -25px rgba(34,34,34,.25);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: "Poppins", "Segoe UI", system-ui, sans-serif;
  font-size: clamp(15px, .5vw + 13px, 16px); line-height: 1.75;
}
img { max-width: 100%; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0; text-wrap: balance; font-weight: 700; }
a { color: var(--accent); }

/* section header */
.sec-head { text-align: center; max-width: 720px; margin: 0 auto clamp(30px, 5vw, 54px); }
.sec-head h2 { font-size: clamp(26px, 3.2vw, 36px); position: relative; display: inline-block; padding-bottom: 14px; }
.sec-head h2::after {
  content: ""; position: absolute; left: 50%; transform: translateX(-50%); bottom: 0;
  width: 56px; height: 3px; border-radius: 2px; background: var(--accent);
}
.sec-head p { color: var(--ink-dim); margin: 16px 0 0; }

/* nav */
.topbar {
  position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.95);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  box-shadow: 0 2px 14px rgba(34,34,34,.06);
}
nav { display: flex; align-items: center; justify-content: space-between; height: 78px; gap: 16px; }
.logo { display: flex; align-items: center; flex-shrink: 0; }
.logo img { height: 42px; width: auto; display: block; }
.navlinks { display: flex; gap: 28px; align-items: center; flex-wrap: nowrap; }
.navlinks a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 15px; padding: 6px 0; white-space: nowrap; }
.navlinks a:not(.btn):hover, .navlinks a:not(.btn):focus-visible { color: var(--accent); }
.navlinks a.active { color: var(--accent); font-weight: 600; }
.navlinks .btn { padding: 10px 24px; font-size: 14px; }
.navtoggle { display: none; }
.hamburger { display: none; }
@media (min-width: 1301px) and (max-width: 1520px) {
  .navlinks { gap: 17px; }
  .navlinks a { font-size: 14.5px; }
  .navlinks .btn { padding: 10px 16px; }
}
@media (max-width: 1300px) {
  .hamburger {
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 44px; height: 44px; padding: 10px; cursor: pointer;
    border: 1px solid var(--line); border-radius: 6px; background: var(--bg);
  }
  .hamburger span { display: block; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s, opacity .25s; }
  .navlinks {
    position: absolute; top: 78px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); box-shadow: 0 24px 40px -20px rgba(34,34,34,.3);
    padding: 8px 24px 20px; display: none;
  }
  .navlinks a { padding: 13px 4px; border-bottom: 1px solid var(--line); font-size: 16px; }
  .navlinks a:last-child { border-bottom: 0; }
  .navlinks .btn { margin-top: 12px; text-align: center; padding: 13px; }
  .navtoggle:checked ~ .navlinks { display: flex; }
  .navtoggle:checked ~ .hamburger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .navtoggle:checked ~ .hamburger span:nth-child(2) { opacity: 0; }
  .navtoggle:checked ~ .hamburger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

.btn {
  display: inline-block; padding: 13px 34px; border-radius: 3px;
  font-weight: 600; text-decoration: none; font-size: 15px;
  transition: background .18s, color .18s, border-color .18s, transform .12s;
}
.btn-primary { background: var(--accent); color: #fff !important; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-primary:active { transform: translateY(1px); }
.btn-ghost { border: 2px solid var(--ink); color: var(--ink) !important; background: transparent; }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent) !important; }
/* Login al portale licenze (license.rbservice.net): pulsante secondario in barra di
   navigazione, contornato e non pieno, per non competere con la CTA "Richiedi una demo". */
.btn-login { border: 1px solid var(--line); color: var(--ink) !important; background: transparent; }
.btn-login:hover { border-color: var(--accent); color: var(--accent) !important; }
.btn-white { background: #fff; color: var(--accent) !important; }
.btn-white:hover { background: #e7f5dd; }
.btn:focus-visible { outline: 2px solid var(--second); outline-offset: 2px; }

/* hero home */
.hero { position: relative; overflow: hidden; background: var(--bg); }
.hero::before {
  content: ""; position: absolute; right: -180px; top: -180px; width: 560px; height: 560px;
  border-radius: 50%; background: var(--second-soft); z-index: 0;
}
.hero::after {
  content: ""; position: absolute; left: -140px; bottom: -200px; width: 420px; height: 420px;
  border-radius: 50%; background: var(--accent-soft); z-index: 0;
}
.hero .wrap { position: relative; z-index: 1; padding-top: clamp(48px, 7vw, 90px); padding-bottom: clamp(48px, 7vw, 90px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 5vw, 60px); align-items: center; }
@media (max-width: 940px) { .hero-grid { grid-template-columns: 1fr; } }
.hero h1 { font-weight: 800; font-size: clamp(38px, 5.4vw, 64px); line-height: 1.05; letter-spacing: -.01em; }
.hero h1 .line2 { display: block; color: var(--accent); }
.hero h1 .dot { color: var(--third); }
.hero p.lead { color: var(--ink-dim); font-size: clamp(15.5px, 1.2vw, 17.5px); margin: 24px 0 30px; max-width: 54ch; }
.cta-row { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.trust { margin-top: 26px; font-size: 13.5px; color: var(--ink-dim); }

/* hero pagine interne */
.page-hero { background: linear-gradient(120deg, var(--accent-soft) 0%, var(--second-soft) 100%); padding: clamp(40px, 6vw, 70px) 0; text-align: center; }
.page-hero h1 { font-size: clamp(30px, 4vw, 44px); font-weight: 800; }
.page-hero p { color: var(--ink-dim); max-width: 62ch; margin: 14px auto 0; }
.crumbs { font-size: 13.5px; color: var(--ink-dim); margin-bottom: 10px; }
.crumbs a { color: var(--accent); text-decoration: none; font-weight: 500; }

/* screenshot */
.shot { border-radius: 8px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-fig); background: #fff; }
.shot img { display: block; width: 100%; height: auto; }

/* protocols */
.protocols { padding: 26px 0; background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.protocols .wrap { display: flex; gap: 10px 12px; flex-wrap: wrap; align-items: center; justify-content: center; }
.protocols .label { flex-basis: 100%; text-align: center; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-dim); font-weight: 600; margin-bottom: 4px; }
.chip { border-radius: 999px; padding: 7px 20px; font-weight: 500; font-size: 14px; color: var(--ink); background: #fff; box-shadow: var(--shadow-card); white-space: nowrap; }

section { padding: clamp(56px, 8vw, 100px) 0; }
section.alt { background: var(--bg-alt); }

/* cards */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; text-align: left; }
@media (max-width: 940px) { .grid { grid-template-columns: repeat(2, 1fr) !important; } }
@media (max-width: 600px) { .grid { grid-template-columns: 1fr !important; } }
.card {
  background: #fff; border-radius: 8px; padding: 34px 30px;
  box-shadow: var(--shadow-card); border-bottom: 3px solid transparent;
  transition: transform .18s, border-color .18s;
  color: inherit; text-decoration: none; display: block;
}
.card:hover { transform: translateY(-5px); border-bottom-color: var(--accent); }
.card h3 { font-size: 18px; margin: 20px 0 10px; font-weight: 600; }
.card p { margin: 0; color: var(--ink-dim); font-size: 14.5px; }
.card .more { display: inline-block; margin-top: 14px; color: var(--accent); font-weight: 600; font-size: 14px; }
.icon { width: 62px; height: 62px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.icon svg { width: 28px; height: 28px; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon.c1 { background: var(--accent-soft); } .icon.c1 svg { stroke: var(--accent); }
.icon.c2 { background: var(--second-soft); } .icon.c2 svg { stroke: var(--second); }
.icon.c3 { background: #fdf6dd; } .icon.c3 svg { stroke: #c79a10; }

/* split */
.split { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: clamp(30px, 5vw, 64px); align-items: center; }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; gap: 28px; }
  .split .txt { order: 1 !important; }
  .split .fig { order: 2 !important; }
}
.kicker { display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.split h2.feat-h, .split h3.feat-h { font-size: clamp(22px, 2.4vw, 28px); margin-bottom: 14px; }
.split p { color: var(--ink-dim); margin-top: 0; font-size: 15px; }
.checks { margin: 20px 0 0; padding: 0; }
.checks li { list-style: none; padding-left: 32px; position: relative; margin-bottom: 13px; font-size: 15px; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--accent);
  -webkit-mask: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><circle cx="12" cy="12" r="10" fill="black"/><path d="M8 12.5l2.6 2.6L16 9.5" fill="none" stroke="white" stroke-width="2.6" stroke-linecap="round" stroke-linejoin="round"/></svg>') center/contain no-repeat;
          mask: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><circle cx="12" cy="12" r="10" fill="black"/><path d="M8 12.5l2.6 2.6L16 9.5" fill="none" stroke="white" stroke-width="2.6" stroke-linecap="round" stroke-linejoin="round"/></svg>') center/contain no-repeat;
}
.checks li:nth-child(2)::before { background: var(--second); }
.checks li:nth-child(3)::before { background: var(--third); }
.checks li b { font-weight: 600; }
.stack > .split { margin-bottom: clamp(56px, 8vw, 96px); }
.stack > .split:last-child { margin-bottom: 0; }
@media (min-width: 861px) {
  .stack > .split > .txt { order: 1; }
  .stack > .split > .fig { order: 2; }
  .stack > .split:nth-child(even) > .fig { order: 1; }
  .stack > .split:nth-child(even) > .txt { order: 2; }
}
.fig-narrow { max-width: 430px; margin: 0 auto; width: 100%; }

/* cta band */
.ctaband { background: linear-gradient(120deg, #43b30a 0%, #2b7a01 100%); color: #fff; text-align: center; padding: clamp(52px, 7vw, 84px) 0; }
.ctaband h2 { color: #fff; font-size: clamp(26px, 3.4vw, 38px); }
.ctaband p { color: #dff3d2; max-width: 56ch; margin: 16px auto 30px; }

/* facts */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 760px) { .facts { grid-template-columns: repeat(2, 1fr); } }
.fact { text-align: center; padding: 30px 14px; background: #fff; border-radius: 8px; box-shadow: var(--shadow-card); }
.fact .big { font-weight: 800; font-size: clamp(30px, 3vw, 40px); color: var(--accent); font-variant-numeric: tabular-nums; }
.facts .fact:nth-child(2) .big { color: var(--second); }
.facts .fact:nth-child(3) .big { color: #c79a10; }
.fact .lbl { font-size: 14px; color: var(--ink-dim); margin-top: 6px; }

/* contatti */
.contact-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: 900px; margin: 0 auto; }
@media (max-width: 760px) { .contact-cards { grid-template-columns: 1fr; } }
.ccard { background: #fff; border-radius: 8px; padding: 30px 24px; text-align: center; box-shadow: var(--shadow-card); }
.ccard h4 { font-size: 16px; font-weight: 600; margin: 14px 0 6px; }
.ccard a { text-decoration: none; font-weight: 600; color: var(--accent); }
.ccard p { margin: 0; color: var(--ink-dim); font-size: 14px; }
.ccard .icon { margin: 0 auto; }

/* footer */
footer { background: var(--footer-bg); color: var(--dim-on-dark); font-size: 14.5px; }
.foot-main { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; padding: clamp(44px, 6vw, 64px) 0; }
@media (max-width: 760px) { .foot-main { grid-template-columns: 1fr; gap: 28px; } }
.foot-main img { height: 44px; width: auto; display: block; margin-bottom: 18px; }
.foot-main h4 { color: #fff; font-size: 15px; font-weight: 600; margin-bottom: 14px; }
.foot-main a { color: var(--dim-on-dark); text-decoration: none; display: block; padding: 4px 0; }
.foot-main a:hover { color: #fff; }
.foot-bottom { border-top: 1px solid #2b323d; padding: 20px 0; text-align: center; font-size: 13.5px; }
.foot-bottom b { color: var(--ink-on-dark); }

/* reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }
