/* JUE · sito di presentazione. Colori e font dell'app (frontend/lib/theme.dart). */
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(../fonts/plus-jakarta-sans-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(../fonts/plus-jakarta-sans-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --blue: #2F5BEA;
  --navy: #1F1C4B;
  --navy-2: #2A2668;
  --amber: #FFB020;
  --violet: #7C4DFF;
  --green: #16A34A;
  --red: #E5484D;
  --bg: #F4F6FB;
  --surface: #FFFFFF;
  --ink: #1F1C4B;
  --muted: #64748B;
  --line: #E3E8F2;
  --grad: linear-gradient(120deg, var(--blue) 0%, var(--violet) 100%);
  --navy-grad: linear-gradient(160deg, #1F1C4B 0%, #26236A 55%, #2F2A80 100%);
  --radius: 18px;
  --shadow: 0 20px 50px -20px rgba(31, 28, 75, .28), 0 4px 12px rgba(31, 28, 75, .06);
  --shadow-lg: 0 40px 90px -30px rgba(15, 12, 50, .55);
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.3rem, 5.2vw, 3.9rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
code {
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: .88em;
  background: #EEF2FF;
  color: var(--blue);
  padding: .12em .45em;
  border-radius: 6px;
  white-space: nowrap;
}
.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.wrap--narrow { width: min(820px, 100% - 40px); }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 6px; }

/* ------------------------------------------------------------------ pulsanti */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .7em 1.25em; border-radius: 12px; border: 0;
  font: inherit; font-weight: 700; font-size: .95rem; text-decoration: none; cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
  white-space: nowrap;
}
.btn--lg { padding: .95em 1.6em; font-size: 1rem; border-radius: 14px; }
.btn--primary { background: var(--grad); color: #fff; box-shadow: 0 10px 24px -8px rgba(47, 91, 234, .6); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -10px rgba(124, 77, 255, .7); }
.btn--ghost { color: var(--ink); background: transparent; }
.btn--ghost:hover { background: rgba(47, 91, 234, .08); color: var(--blue); }
.btn--ghost-dark { color: var(--ink); background: #EEF2FF; }
.btn--glass { color: #fff; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .22); backdrop-filter: blur(6px); }
.btn--glass:hover { background: rgba(255, 255, 255, .18); transform: translateY(-2px); }

/* ------------------------------------------------------------------ header */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  transition: background .25s ease, box-shadow .25s ease;
}
.nav__inner { display: flex; align-items: center; gap: 28px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; font-weight: 800; letter-spacing: .18em; font-size: 1.05rem; }
.brand img { border-radius: 9px; }
.nav__links { display: flex; gap: 6px; margin-left: 12px; }
.nav__links a { color: rgba(255, 255, 255, .78); text-decoration: none; font-weight: 600; font-size: .95rem; padding: 8px 12px; border-radius: 10px; transition: color .2s, background .2s; }
.nav__links a:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.nav__cta { margin-left: auto; display: flex; gap: 8px; }
.nav .btn--ghost { color: #fff; }
.nav .btn--ghost:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.nav.is-scrolled { background: rgba(255, 255, 255, .86); backdrop-filter: saturate(160%) blur(14px); box-shadow: 0 1px 0 var(--line), 0 10px 30px -18px rgba(31, 28, 75, .35); }
.nav.is-scrolled .brand { color: var(--navy); }
.nav.is-scrolled .nav__links a { color: var(--muted); }
.nav.is-scrolled .nav__links a:hover { color: var(--blue); background: #EEF2FF; }
.nav.is-scrolled .btn--ghost { color: var(--ink); }
.nav.is-scrolled .btn--ghost:hover { background: #EEF2FF; color: var(--blue); }
.nav__toggle { display: none; margin-left: auto; width: 44px; height: 44px; border: 0; background: transparent; border-radius: 10px; cursor: pointer; padding: 10px; }
.nav__toggle span { display: block; height: 2px; background: #fff; border-radius: 2px; margin: 5px 0; transition: transform .25s, opacity .25s; }
.nav.is-scrolled .nav__toggle span, .nav.is-open .nav__toggle span { background: var(--navy); }
.nav.is-open .nav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.is-open .nav__toggle span:nth-child(2) { opacity: 0; }
.nav.is-open .nav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-menu { background: #fff; padding: 8px 20px 20px; display: grid; gap: 4px; box-shadow: 0 20px 30px -20px rgba(31, 28, 75, .4); }
.mobile-menu[hidden] { display: none; }
.mobile-menu a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 600; padding: 12px 4px; border-bottom: 1px solid var(--line); }
.mobile-menu .btn { margin-top: 8px; }
.nav.is-open { background: #fff; }
.nav.is-open .brand { color: var(--navy); }

/* ------------------------------------------------------------------ hero */
.hero {
  position: relative; overflow: hidden;
  background: var(--navy-grad);
  color: #fff;
  padding: 140px 0 120px;
}
.hero__glow { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; pointer-events: none; animation: drift 18s ease-in-out infinite alternate; }
.hero__glow--blue { width: 520px; height: 520px; background: #3B5BFF; left: -160px; top: -120px; }
.hero__glow--amber { width: 300px; height: 300px; background: var(--amber); right: 8%; top: 18%; opacity: .28; animation-duration: 22s; }
.hero__glow--violet { width: 460px; height: 460px; background: var(--violet); right: -140px; bottom: -200px; opacity: .45; animation-duration: 26s; }
@keyframes drift { to { transform: translate(60px, 40px) scale(1.12); } }
.hero__inner { position: relative; display: grid; grid-template-columns: 1fr 1.08fr; gap: 56px; align-items: center; }
.eyebrow { text-transform: uppercase; letter-spacing: .16em; font-size: .78rem; font-weight: 800; color: var(--blue); margin-bottom: 14px; }
.eyebrow--light { color: #AFC0FF; }
.grad-text { background: linear-gradient(100deg, #8FA8FF 0%, #C4B1FF 50%, #FFCF70 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__lead { font-size: 1.12rem; color: rgba(255, 255, 255, .78); max-width: 34em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 22px; }
.hero__actions--center { justify-content: center; }
.hero__points { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: .92rem; color: rgba(255, 255, 255, .72); }
.hero__points li::before { content: ""; display: inline-block; width: 16px; height: 16px; margin-right: 8px; vertical-align: -3px; border-radius: 50%; background: rgba(22, 163, 74, .25) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234ADE80' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/11px no-repeat; }
.hero__visual { position: relative; min-height: 440px; }
.device { border-radius: 22px; background: #0F0D2E; padding: 10px; box-shadow: var(--shadow-lg), inset 0 0 0 1px rgba(255, 255, 255, .08); }
.device img { border-radius: 13px; }
.device--tablet { transform: perspective(1600px) rotateY(-9deg) rotateX(4deg); transform-origin: left center; }
.device--phone { position: absolute; width: 27%; right: -2%; bottom: -14%; padding: 7px; border-radius: 26px; }
.device--phone img { border-radius: 20px; }
.float-card {
  position: absolute; z-index: 2; background: rgba(255, 255, 255, .96); color: var(--ink);
  border-radius: 16px; box-shadow: var(--shadow-lg); padding: 14px 18px;
}
.float-card--margin { left: -6%; bottom: 6%; display: grid; gap: 2px; min-width: 210px; }
.float-card__label { font-size: .78rem; color: var(--muted); font-weight: 600; }
.float-card__value { font-size: 1.5rem; color: var(--green); font-variant-numeric: tabular-nums; }
.float-card__chip { justify-self: start; font-size: .75rem; font-weight: 700; color: var(--green); background: #E8F7EE; padding: 2px 10px; border-radius: 99px; }
.float-card--sent { right: 18%; top: -7%; display: flex; align-items: center; gap: 10px; font-size: .9rem; }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.dot--green { background: var(--green); box-shadow: 0 0 0 4px rgba(22, 163, 74, .18); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(22, 163, 74, .05); } }
.hero__wave { position: absolute; left: 0; right: 0; bottom: -1px; height: 70px; background: var(--bg); clip-path: ellipse(75% 100% at 50% 100%); }

/* ------------------------------------------------------------------ settori */
.sectors { padding: 36px 0 12px; text-align: center; }
.sectors__title { color: var(--muted); font-weight: 600; font-size: .95rem; margin-bottom: 18px; }
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee__track { display: flex; gap: 12px; width: max-content; animation: marquee 40s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track span { white-space: nowrap; padding: 10px 18px; border-radius: 99px; background: #fff; border: 1px solid var(--line); font-weight: 600; font-size: .93rem; color: var(--navy); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ------------------------------------------------------------------ sezioni */
.section { position: relative; padding: 100px 0; }
.section--tinted { background: linear-gradient(180deg, #EBEFFA 0%, var(--bg) 100%); }
.section--navy { background: var(--navy-grad); color: #fff; overflow: hidden; }
.section--navy p { color: rgba(255, 255, 255, .78); }
.section__head { text-align: center; max-width: 760px; margin: 0 auto 56px; }
.section__lead { color: var(--muted); font-size: 1.08rem; }

.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feature {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.feature:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.feature p { color: var(--muted); font-size: .95rem; margin: 0; }
.feature__icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 18px; }
.feature__icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ic-blue { background: #E8EEFF; color: var(--blue); }
.ic-violet { background: #F0EAFF; color: var(--violet); }
.ic-amber { background: #FFF4DE; color: #D98A00; }
.ic-green { background: #E5F6EC; color: var(--green); }

/* ------------------------------------------------------------------ come funziona */
.steps { display: grid; grid-template-columns: 380px 1fr; gap: 36px; align-items: start; }
.steps__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.steps__list button {
  position: relative; overflow: hidden; width: 100%; text-align: left; font: inherit; color: inherit; cursor: pointer;
  display: grid; grid-template-columns: 40px 1fr; gap: 14px; padding: 18px; border-radius: 16px;
  background: transparent; border: 1px solid transparent; transition: background .25s, border-color .25s, box-shadow .25s;
}
.steps__list button:hover { background: rgba(255, 255, 255, .6); }
.steps__list button[aria-selected="true"] { background: #fff; border-color: var(--line); box-shadow: var(--shadow); }
.steps__list b { display: block; font-size: 1.02rem; }
.steps__list small { display: block; color: var(--muted); font-size: .9rem; line-height: 1.5; max-height: 0; opacity: 0; transition: max-height .4s ease, opacity .3s ease, margin .3s; }
.steps__list button[aria-selected="true"] small { max-height: 120px; opacity: 1; margin-top: 4px; }
.steps__num { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; background: #E8EEFF; color: var(--blue); transition: background .25s, color .25s; }
.steps__list button[aria-selected="true"] .steps__num { background: var(--grad); color: #fff; }
.steps__bar { position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: var(--grad); }
.steps__list button[aria-selected="true"] .steps__bar { animation: progress var(--step-ms, 6000ms) linear forwards; }
.steps.is-paused .steps__bar { animation-play-state: paused !important; }
@keyframes progress { to { width: 100%; } }

.browser { background: #fff; border-radius: 18px; box-shadow: var(--shadow-lg); overflow: hidden; border: 1px solid var(--line); }
.browser__bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; background: #F7F8FC; border-bottom: 1px solid var(--line); }
.browser__bar i { width: 11px; height: 11px; border-radius: 50%; background: #E2E6EF; }
.browser__bar i:nth-child(1) { background: #FF6159; } .browser__bar i:nth-child(2) { background: #FFBD2E; } .browser__bar i:nth-child(3) { background: #28C941; }
.browser__bar span { margin-left: 12px; font-size: .8rem; color: var(--muted); background: #fff; border: 1px solid var(--line); padding: 3px 12px; border-radius: 8px; }
.browser__stage { position: relative; aspect-ratio: 1600 / 1054; background: var(--bg); }
.browser__stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; opacity: 0; transform: scale(1.02); transition: opacity .55s ease, transform .9s ease; }
.browser__stage img.is-active { opacity: 1; transform: none; }

/* ------------------------------------------------------------------ split */
.split { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: center; }
.split--reverse > :first-child { order: 2; }
.split__copy p { color: var(--muted); font-size: 1.04rem; }
.section--navy .split__copy p { color: rgba(255, 255, 255, .78); }
.ticks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.ticks li { padding-left: 32px; position: relative; font-weight: 600; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 6px; background: #E8EEFF url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232F5BEA' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/12px no-repeat; }
.framed { border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid var(--line); background: #fff; }

/* calcolatore */
.calc { background: #fff; border-radius: 22px; box-shadow: var(--shadow); border: 1px solid var(--line); padding: 30px; }
.calc__head h3 { font-size: 1.35rem; margin: 10px 0 4px; }
.calc__head p { color: var(--muted); font-size: .95rem; }
.calc__badge { display: inline-block; font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--violet); background: #F0EAFF; padding: 4px 10px; border-radius: 99px; }
.calc__row { display: grid; gap: 8px; margin: 18px 0; font-weight: 600; font-size: .95rem; }
.calc__row output { color: var(--blue); font-weight: 800; font-variant-numeric: tabular-nums; }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 8px; border-radius: 99px; background: linear-gradient(90deg, var(--blue) var(--fill, 50%), #E3E8F2 var(--fill, 50%)); outline-offset: 6px; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 3px solid var(--blue); box-shadow: 0 4px 10px rgba(47, 91, 234, .35); cursor: grab; }
input[type=range]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 3px solid var(--blue); cursor: grab; }
.calc__lines { margin: 22px 0 0; display: grid; gap: 2px; }
.calc__lines div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.calc__lines dt { color: var(--muted); font-size: .95rem; }
.calc__lines dt small { display: block; font-size: .78rem; }
.calc__lines dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.calc__total { border: 0 !important; margin-top: 10px; background: var(--grad); color: #fff; border-radius: 14px; padding: 14px 18px !important; }
.calc__total dt, .calc__total dd { color: #fff; font-size: 1.1rem; font-weight: 800; }
.calc__margin { border: 0 !important; background: #E8F7EE; border-radius: 14px; padding: 12px 18px !important; margin-top: 8px; }
.calc__margin dt, .calc__margin dd { color: var(--green); font-weight: 800; }
.calc__note { margin: 14px 0 0; font-size: .8rem; color: var(--muted); }
.bump { animation: bump .35s ease; }
@keyframes bump { 40% { transform: scale(1.06); } }

/* PDF */
.toggle { display: inline-flex; gap: 4px; padding: 5px; border-radius: 14px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .16); margin-top: 10px; }
.toggle button { font: inherit; font-weight: 700; font-size: .92rem; border: 0; padding: 9px 16px; border-radius: 10px; color: rgba(255, 255, 255, .8); background: transparent; cursor: pointer; transition: background .2s, color .2s; }
.toggle button[aria-selected="true"] { background: #fff; color: var(--navy); }
.toggle--light { background: #fff; border-color: var(--line); margin-top: 18px; }
.toggle--light button { color: var(--muted); }
.toggle--light button[aria-selected="true"] { background: var(--grad); color: #fff; }
.toggle em { font-style: normal; font-size: .75rem; padding: 2px 8px; border-radius: 99px; background: #E5F6EC; color: var(--green); margin-left: 6px; }
.paper { position: relative; aspect-ratio: 900 / 1273; width: 100%; max-width: 470px; margin-inline: auto; border-radius: 6px; box-shadow: var(--shadow-lg); background: #fff; transform: rotate(2deg); }
.paper img { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 6px; opacity: 0; transition: opacity .45s ease, transform .45s ease; transform: translateY(8px); }
.paper img.is-active { opacity: 1; transform: none; }

/* ruoli */
.roles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 24px; }
.role { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; display: grid; gap: 4px; }
.role span { color: var(--muted); font-size: .9rem; }
.role--owner { border-color: var(--amber); box-shadow: 0 0 0 3px rgba(255, 176, 32, .15); }

/* dispositivi */
.devices { position: relative; padding: 0 12% 12% 0; }
.device--small { transform: none; }
.device--overlap { position: absolute; width: 30%; right: 0; bottom: 0; }

/* ------------------------------------------------------------------ prezzi */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; align-items: stretch; }
.plan {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 30px 28px;
  display: flex; flex-direction: column; transition: transform .25s ease, box-shadow .25s ease;
}
.plan:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.plan--featured { border: 0; background: var(--navy-grad); color: #fff; box-shadow: var(--shadow-lg); }
.plan--featured .plan__desc, .plan--featured .plan__period { color: rgba(255, 255, 255, .8); }
.plan__badge { position: absolute; top: -13px; left: 28px; background: var(--amber); color: var(--navy); font-size: .74rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 5px 12px; border-radius: 99px; }
.plan__name { font-size: 1.25rem; font-weight: 800; margin: 0 0 4px; }
.plan__desc { color: var(--muted); font-size: .93rem; min-height: 2.8em; }
.plan__price { font-size: 2.6rem; font-weight: 800; letter-spacing: -.03em; margin: 8px 0 0; font-variant-numeric: tabular-nums; }
.plan__price small { font-size: 1rem; font-weight: 600; }
.plan__period { color: var(--muted); font-size: .85rem; min-height: 1.4em; margin-bottom: 18px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 10px; flex: 1; }
.plan li { padding-left: 28px; position: relative; font-size: .95rem; color: var(--ink); }
.plan li::before { content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%; background: #E8EEFF url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232F5BEA' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/11px no-repeat; }
.plan--featured li { color: rgba(255, 255, 255, .88); }
.plan--featured li::before { background-color: rgba(255, 255, 255, .14); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFB020' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E"); }
.plan .btn { width: 100%; }
.plan:not(.plan--featured) .btn--glass { color: var(--blue); background: #EEF2FF; border: 0; backdrop-filter: none; }
.plan--skeleton { min-height: 420px; background: linear-gradient(90deg, #fff 0%, #EEF1F8 50%, #fff 100%) 0 0 / 200% 100%; animation: shimmer 1.4s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.plans__note { text-align: center; color: var(--muted); font-size: .88rem; margin-top: 26px; }
.plans__error { grid-column: 1 / -1; text-align: center; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 30px; }

/* ------------------------------------------------------------------ sicurezza */
.trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.trust__item { background: #fff; border-radius: var(--radius); border: 1px solid var(--line); padding: 24px; display: grid; gap: 6px; border-top: 4px solid var(--blue); }
.trust__item:nth-child(2) { border-top-color: var(--violet); }
.trust__item:nth-child(3) { border-top-color: var(--amber); }
.trust__item:nth-child(4) { border-top-color: var(--green); }
.trust__item span { color: var(--muted); font-size: .93rem; }

/* ------------------------------------------------------------------ FAQ */
.faq { display: grid; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 0 22px; transition: box-shadow .25s; }
.faq details[open] { box-shadow: var(--shadow); }
.faq summary { list-style: none; cursor: pointer; font-weight: 700; padding: 20px 36px 20px 0; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 0; top: 50%; width: 22px; height: 22px; margin-top: -11px; border-radius: 50%; background: #EEF2FF url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232F5BEA' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center/12px no-repeat; transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 20px; margin: 0; }

/* ------------------------------------------------------------------ CTA + footer */
.cta { position: relative; overflow: hidden; background: var(--navy-grad); color: #fff; padding: 100px 0; text-align: center; }
.cta__inner { position: relative; }
.cta img { margin: 0 auto 22px; }
.cta p { color: rgba(255, 255, 255, .78); font-size: 1.1rem; }
.footer { background: #17153A; color: rgba(255, 255, 255, .7); padding: 64px 0 28px; font-size: .93rem; }
.footer__inner { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.footer__brand p { margin-top: 14px; max-width: 26em; }
.brand--light { color: #fff; }
.footer__col { display: grid; gap: 10px; align-content: start; }
.footer__col b { color: #fff; margin-bottom: 4px; }
.footer__col a { color: rgba(255, 255, 255, .7); text-decoration: none; }
.footer__col a:hover { color: #fff; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .85rem; }

/* documenti legali */
.legal { width: min(760px, 100% - 32px); max-height: min(80vh, 900px); border: 0; border-radius: 20px; padding: 0; box-shadow: var(--shadow-lg); color: var(--ink); }
.legal::backdrop { background: rgba(23, 21, 58, .6); backdrop-filter: blur(3px); }
.legal__head { position: sticky; top: 0; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 20px 26px; background: #fff; border-bottom: 1px solid var(--line); }
.legal__head h2 { font-size: 1.25rem; margin: 0; }
.legal__close { width: 38px; height: 38px; border-radius: 10px; border: 0; background: #EEF2FF; color: var(--navy); font-size: 1.5rem; cursor: pointer; }
.legal__body { padding: 22px 26px 28px; white-space: pre-line; color: #3B4A63; font-size: .95rem; }

/* ------------------------------------------------------------------ comparsa allo scorrimento */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--delay, 0s); }
.js .reveal--zoom { transform: translateY(20px) scale(.96); }
.js .reveal--right { transform: translateX(40px); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .device--tablet.reveal.is-visible { transform: perspective(1600px) rotateY(-9deg) rotateX(4deg); }
.js .paper.reveal.is-visible { transform: rotate(2deg); }

/* ------------------------------------------------------------------ responsive */
@media (max-width: 1080px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .trust { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .steps__list { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 901px) { .mobile-menu { display: none; } }
@media (max-width: 900px) {
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: block; }
  .hero { padding: 116px 0 110px; }
  .hero__inner, .split { grid-template-columns: 1fr; gap: 48px; }
  .split--reverse > :first-child { order: 0; }
  .hero__visual { min-height: 0; margin-right: 6%; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .section { padding: 72px 0; }
  .features, .trust, .roles, .steps__list { grid-template-columns: 1fr; }
  .float-card--margin { left: -2%; bottom: -10%; min-width: 0; padding: 10px 14px; }
  .float-card__value { font-size: 1.15rem; }
  .float-card--sent { right: 4%; top: -14%; font-size: .8rem; }
  .device--tablet { transform: none; }
  .js .device--tablet.reveal.is-visible { transform: none; }
  .hero__actions .btn { width: 100%; }
  .calc { padding: 22px; }
  .footer__inner { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}
