/* Landing nuova (anteprima) · palette Emerald dell'app.
   Font self-hosted (OFL): Fraunces per i titoli, Hanken Grotesk per il testo. */
@font-face { font-family: 'Fraunces'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(/fonts/fraunces-latin.woff2) format('woff2'); }
@font-face { font-family: 'Fraunces'; font-style: italic; font-weight: 400 700; font-display: swap; src: url(/fonts/fraunces-italic-latin.woff2) format('woff2'); }
@font-face { font-family: 'Hanken Grotesk'; font-style: normal; font-weight: 400 800; font-display: swap; src: url(/fonts/hanken-latin.woff2) format('woff2'); }

:root {
  --forest: #054c3c; --forest-d: #033a2d; --forest-l: #0a6350;
  --cream: #f0e8da; --sand: #f8e7c9; --sand-d: #ecd5a8;
  --ink: #0b3a2e; --muted: #48625a; --line: rgba(5, 76, 60, .16);
  --emerald: #10b981; --emerald-h: #1ec896; --emerald-ink: #03261d; --emerald-text: #066b4e;
  --gold: #e3b45f; --gold-d: #9a6a14;
  --on-dark: #f4efe3; --on-dark-2: #bfd3cb;
  --display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Hanken Grotesk', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --head-h: 64px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--head-h) + 12px); -webkit-text-size-adjust: 100%; }
body { background: var(--cream); color: var(--ink); font-family: var(--sans); line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, picture, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
ul, ol { list-style: none; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--emerald); outline-offset: 3px; border-radius: 6px; }
.forest-bg :focus-visible, .hero :focus-visible, .calc :focus-visible, .final :focus-visible, .site-head :focus-visible, .site-foot :focus-visible { outline-color: var(--gold); }

.skip { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--gold); color: #2a1c00; padding: 10px 16px; border-radius: 10px; font-weight: 700; transition: top .15s; }
.skip:focus { top: 10px; }

/* barra di avanzamento della pagina */
.page-progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 120; pointer-events: none; }
.page-progress i { display: block; height: 100%; background: var(--emerald-h); transform: scaleX(0); transform-origin: 0 50%; }
@supports (animation-timeline: scroll()) {
  .js-anim .page-progress i { animation: prog linear both; animation-timeline: scroll(root); }
  @keyframes prog { to { transform: scaleX(1); } }
}

h1, h2, h3 { text-wrap: balance; }
h1, h2 { font-family: var(--display); font-optical-sizing: auto; font-weight: 600; letter-spacing: -.02em; line-height: 1.04; }
h2 { font-size: clamp(30px, 4.6vw, 54px); max-width: 17ch; }
h3 { font-weight: 700; letter-spacing: -.01em; }
.eyebrow { font-weight: 800; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--emerald-text); margin-bottom: 14px; }
.eyebrow-on-dark { color: var(--gold); }
.lead { font-size: clamp(17px, 1.7vw, 20px); color: var(--muted); max-width: 58ch; margin-top: 18px; }
section { padding: clamp(72px, 10vw, 128px) 0; position: relative; }

/* pulsanti */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 26px; border: 0; border-radius: 14px; background: var(--emerald); color: var(--emerald-ink); font-weight: 800; font-size: 16px; cursor: pointer; text-decoration: none; white-space: nowrap; box-shadow: 0 10px 26px -10px rgba(16, 185, 129, .7); transition: transform .18s var(--ease), background .18s, box-shadow .18s; }
.btn:hover { background: var(--emerald-h); transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .7; cursor: default; transform: none; }
.btn-ghost { background: transparent; color: var(--on-dark); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .4); }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 14.5px; box-shadow: none; }

/* header */
.site-head { position: sticky; top: 0; z-index: 100; height: var(--head-h); background: rgba(5, 76, 60, .94); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); border-bottom: 1px solid rgba(255, 255, 255, .08); color: var(--on-dark); }
.nav { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { font-family: var(--display); font-weight: 600; font-size: 28px; line-height: 1; color: var(--on-dark); text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.brand img { height: 1em; width: auto; }
.nav-links { display: flex; gap: 6px; margin-left: auto; }
.nav-links a { padding: 10px 14px; border-radius: 10px; font-weight: 600; font-size: 15px; color: var(--on-dark-2); text-decoration: none; transition: color .15s, background .15s; }
.nav-links a:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.lang-btn { min-width: 48px; min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .28); background: rgba(255, 255, 255, .08); color: var(--on-dark); font-weight: 800; font-size: 13px; letter-spacing: .04em; cursor: pointer; transition: background .15s; }
.lang-btn:hover { background: rgba(255, 255, 255, .18); }
@media (max-width: 980px) { .nav-links { display: none; } .nav-actions { margin-left: auto; } }
@media (max-width: 640px) { .nav-cta { display: none; } }
@media (max-width: 420px) { .brand { font-size: 25px; } }

/* browser */
.browser { background: var(--forest-d); border-radius: 16px; overflow: hidden; box-shadow: 0 50px 90px -40px rgba(1, 25, 19, .75), 0 0 0 1px rgba(255, 255, 255, .06); }
.bw-bar { display: flex; align-items: center; gap: 7px; padding: 10px 14px; background: #0a2f26; }
.bw-bar i { width: 11px; height: 11px; border-radius: 50%; background: #3d6f61; }
.bw-bar i:nth-child(1) { background: #ff6b5e; } .bw-bar i:nth-child(2) { background: #f5bd4f; } .bw-bar i:nth-child(3) { background: #3fcf6d; }
.bw-url { margin: 0 auto; font-size: 12px; color: #8fb2a6; background: rgba(0, 0, 0, .25); padding: 4px 16px; border-radius: 8px; }
.browser img { width: 100%; height: auto; aspect-ratio: 1919 / 989; background: var(--cream); }

/* ===== HERO ===== */
.hero { padding: clamp(40px, 6vw, 72px) 0 0; color: var(--on-dark); background: linear-gradient(180deg, var(--forest) 0, var(--forest) calc(100% - clamp(90px, 14vw, 200px)), var(--cream) calc(100% - clamp(90px, 14vw, 200px))); overflow: clip; }
.hero-glow { position: absolute; inset: 0 0 auto 0; height: 80%; background: radial-gradient(60% 55% at 50% 0%, rgba(30, 200, 150, .28), transparent 70%), radial-gradient(40% 40% at 90% 30%, rgba(227, 180, 95, .12), transparent 70%); pointer-events: none; }
.hero-copy { position: relative; text-align: center; }
.hero-h1 { font-size: clamp(40px, 7vw, 96px); color: #fff; max-width: 15ch; margin: 0 auto; line-height: 1; }
.hero-h1 em { font-style: italic; font-weight: 500; color: var(--gold); }
.hero-sub { max-width: 54ch; margin: 26px auto 34px; font-size: clamp(17px, 1.9vw, 21px); color: var(--on-dark-2); }
.hero-sub b { color: #fff; font-weight: 700; }
.wl-form { display: flex; gap: 10px; max-width: 500px; margin: 0 auto; }
.wl-form input { flex: 1; min-width: 0; min-height: 52px; padding: 0 18px; border-radius: 14px; border: 1.5px solid rgba(255, 255, 255, .28); background: rgba(255, 255, 255, .1); color: #fff; font-size: 16px; }
.wl-form input::placeholder { color: #9fbdb2; }
.wl-form input:focus { border-color: var(--emerald-h); background: rgba(255, 255, 255, .16); outline: none; box-shadow: 0 0 0 3px rgba(30, 200, 150, .35); }
.wl-form .btn { min-height: 52px; }
@media (max-width: 480px) { .wl-form { flex-direction: column; } }
.wl-msg { min-height: 24px; margin-top: 14px; font-weight: 700; font-size: 15px; color: var(--on-dark); }
.wl-msg.err { color: #ffb59c; }
.hero-micro { margin-top: 6px; font-size: 13.5px; color: #9fbdb2; max-width: 60ch; margin-inline: auto; }

.hero-stage { position: relative; max-width: 1040px; margin: clamp(36px, 5vw, 60px) auto 0; perspective: 1600px; }
.hero-tilt { transform-origin: 50% 0; transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); backface-visibility: hidden; }
.js-anim .hero-tilt { will-change: transform; }
.fl { position: absolute; z-index: 3; display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 16px; background: var(--sand); color: var(--ink); font-weight: 700; font-size: 15px; box-shadow: 0 22px 44px -18px rgba(1, 25, 19, .6), 0 0 0 1px rgba(5, 76, 60, .12); transform: translate3d(0, calc(var(--sy, 0) * var(--k, 0) * 1px), 0); }
.fl small { display: block; font-weight: 500; font-size: 12.5px; color: var(--muted); }
.fl-1 { left: -5%; top: 20%; flex-direction: column; align-items: flex-start; gap: 0; padding: 14px 20px; --k: -0.10; }
.fl-k { font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 800; }
.fl-v { font-size: clamp(30px, 4vw, 46px); font-family: var(--display); font-weight: 700; line-height: 1.05; color: var(--forest); font-variant-numeric: tabular-nums; }
.fl-2 { right: -4%; top: 6%; color: #055a41; --k: -0.20; }
.fl-2 svg { color: var(--emerald-text); }
.fl-3 { right: 5%; bottom: 10%; --k: -0.05; }
.fl-ok { width: 30px; height: 30px; flex: none; border-radius: 50%; background: var(--emerald); color: var(--emerald-ink); display: grid; place-items: center; }
.demo-note { text-align: center; font-size: 13px; color: var(--muted); margin-top: 16px; }
@media (max-width: 900px) {
  .fl-1 { left: 2%; top: auto; bottom: -26px; } .fl-2 { right: 2%; top: -22px; } .fl-3 { right: 4%; bottom: -26px; }
  .fl { padding: 9px 12px; font-size: 13px; border-radius: 13px; }
  .fl-1 { padding: 10px 14px; }
}
@media (max-width: 520px) { .fl-3 { display: none; } .fl-1 { bottom: -34px; } }

/* ===== FATTI ===== */
.facts { padding-top: clamp(40px, 6vw, 72px); }
.facts-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 44px; }
@media (max-width: 960px) { .facts-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .facts-grid { grid-template-columns: 1fr; gap: 12px; } }
.fact { background: var(--sand); border-radius: 22px; padding: 26px 24px; box-shadow: 0 0 0 1px var(--line); }
.fact-ico { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--forest); color: var(--gold); margin-bottom: 18px; }
.fact h3 { font-size: 19px; margin-bottom: 8px; }
.fact p { color: var(--muted); font-size: 15.5px; }

/* ===== TOUR ===== */
.tour { overflow-x: clip; padding: clamp(56px, 8vw, 100px) 0; background: var(--forest); color: var(--on-dark); }
.tour h2 { color: #fff; }
.tour .eyebrow { color: var(--gold); }
.tour .lead { color: var(--on-dark-2); }
.tour-grid { display: grid; grid-template-columns: minmax(300px, 380px) 1fr; gap: clamp(28px, 3.4vw, 56px); align-items: center; }
.tour-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 22px; }
.tour-tabs button { min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1.5px solid rgba(255, 255, 255, .26); background: transparent; color: var(--on-dark); font-weight: 700; font-size: 14.5px; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.tour-tabs button:hover { border-color: #fff; }
.tour-tabs button[aria-selected="true"] { background: var(--gold); border-color: var(--gold); color: #2a1c00; }
html:not(.js) .tour-tabs, html:not(.js) .tour-meter, html:not(.js) .zoom-btn { display: none; }
.tour-caps { display: grid; }
.cap { grid-area: 1 / 1; transition: opacity .5s var(--ease), transform .5s var(--ease); }
.cap h3 { font-family: var(--display); font-weight: 600; font-size: clamp(24px, 2.8vw, 34px); line-height: 1.1; color: #fff; margin-bottom: 10px; }
.cap p { color: var(--on-dark-2); font-size: 17px; max-width: 42ch; }
.js .cap:not(.is-on) { opacity: 0; transform: translateY(14px); pointer-events: none; visibility: hidden; transition: opacity .35s var(--ease), transform .35s var(--ease), visibility 0s .35s; }
html:not(.js) .cap { grid-area: auto; margin-bottom: 24px; }
.tour-meter { display: flex; align-items: center; gap: 14px; margin-top: 26px; }
.tour-bar { flex: 1; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .16); overflow: hidden; }
.tour-bar i { display: block; height: 100%; background: var(--gold); transform: scaleX(.2); transform-origin: 0 50%; transition: transform .45s var(--ease); }
.tour-count { font-size: 14px; color: var(--on-dark-2); font-variant-numeric: tabular-nums; min-width: 48px; text-align: right; }
.tour-count b { color: #fff; }

.tour-stage { position: relative; min-width: 0; }
.tour-frame { position: relative; aspect-ratio: 1919 / 989; background: var(--cream); overflow: hidden; }
.panel { position: absolute; inset: 0; margin: 0; transition: opacity .6s var(--ease), transform .7s var(--ease); }
.panel img { height: 100%; object-fit: cover; object-position: 50% 0; }
.js .panel:not(.is-on) { opacity: 0; transform: translateY(26px) scale(.985); pointer-events: none; }
.js .panel.is-past:not(.is-on) { transform: translateY(-26px) scale(.985); }
html:not(.js) .tour-frame { aspect-ratio: auto; }
html:not(.js) .panel { position: static; margin-bottom: 16px; }
.zoom-btn { display: none; }

@media (min-width: 769px) {
  .js-anim .tour { --steps: 5; height: calc(100svh + (var(--steps) - 1) * 62svh); padding: 0; }
  .js-anim .tour-pin { position: sticky; top: 0; height: 100svh; display: flex; align-items: center; padding-top: var(--head-h); }
  .js-anim .tour-grid { width: 100%; }
  .js-anim .tour-stage .browser { transform: perspective(2000px) rotateY(-3deg) rotateX(1deg); transform-origin: 0 50%; }
  .js-anim .tour-stage { margin-right: calc(-1 * min(5vw, 80px)); }
  .js .tour-stage .tour-frame { cursor: default; }
}
@media (max-width: 1100px) and (min-width: 769px) { .tour-grid { grid-template-columns: minmax(260px, 330px) 1fr; } }
@media (max-width: 768px) {
  .tour-grid { display: flex; flex-direction: column; gap: 0; align-items: stretch; }
  .tour-text { display: contents; }
  .tour-stage { order: 1; margin-top: 28px; } .tour-tabs { order: 2; } .tour-caps { order: 3; } .tour-meter { display: none; }
  .tour-caps { margin-top: 8px; }
  .tour-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 4px -20px 0; padding: 4px 20px; width: calc(100% + 40px); }
  .tour-tabs::-webkit-scrollbar { display: none; }
  .tour-tabs button { flex: none; }
  .tour .browser { border-radius: 14px; }
  .tour .bw-bar { display: none; }
  .zoom-btn { position: absolute; right: 10px; bottom: 10px; z-index: 4; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border-radius: 999px; border: 0; background: rgba(3, 38, 29, .88); color: #fff; font-weight: 700; font-size: 13.5px; cursor: pointer; backdrop-filter: blur(6px); }
  .tour-frame { cursor: zoom-in; }
}

/* ===== EXCEL vs APP ===== */
.excel .lead { margin-bottom: 40px; }
.cmp { position: relative; container-type: inline-size; aspect-ratio: 1919 / 989; border-radius: 22px; overflow: hidden; background: var(--cream); box-shadow: 0 40px 80px -40px rgba(1, 25, 19, .55), 0 0 0 1px var(--line); user-select: none; -webkit-user-select: none; }
.cmp-app, .cmp-xl { position: absolute; inset: 0; }
.cmp-app img { width: 100%; height: 100%; object-fit: cover; object-position: 0 0; }
.cmp-xl { background: #fff; clip-path: inset(0 calc(100% - var(--pos)) 0 0); display: flex; align-items: flex-start; }
html:not(.js) .cmp { aspect-ratio: auto; display: grid; gap: 12px; }
html:not(.js) .cmp-app, html:not(.js) .cmp-xl { position: static; clip-path: none; }
html:not(.js) .cmp-handle, html:not(.js) .cmp-range, html:not(.js) .cmp-tag { display: none; }
.xl { border-collapse: collapse; width: 100%; font-family: Calibri, Carlito, 'Segoe UI', Arial, sans-serif; font-size: clamp(11px, 1.9cqw, 19px); color: #222; table-layout: fixed; }
.xl tbody td:empty::after { content: ' '; }
.xl th, .xl td { border: 1px solid #cfd3d1; padding: .5em .7em; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 400; }
.xl th { background: #eceeed; color: #666; text-align: center; font-weight: 600; width: 5%; }
.xl thead th:nth-child(2) { width: 38%; } .xl thead th:nth-child(3) { width: 15%; } .xl thead th:nth-child(4) { width: 22%; }
.xl .hd { font-weight: 700; background: #f6f7f6; }
.xl .er { color: #c0392b; font-weight: 700; }
.xl .nt { background: #fff2a8; color: #6b5a00; font-style: italic; }
.xl .dp { background: #fde3df; }
.cmp-tag { position: absolute; top: 14px; z-index: 3; padding: 8px 14px; border-radius: 999px; font-weight: 800; font-size: clamp(12px, 1.6cqw, 15px); pointer-events: none; }
.cmp-tag-l { left: 14px; background: #fff; color: #8c2f23; box-shadow: 0 6px 18px -8px rgba(0, 0, 0, .4); }
.cmp-tag-r { right: 14px; background: var(--forest); color: #fff; box-shadow: 0 6px 18px -8px rgba(0, 0, 0, .5); }
.cmp-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; margin-left: -1.5px; background: var(--gold); z-index: 4; pointer-events: none; }
.cmp-handle span { position: absolute; top: 50%; left: 50%; width: 48px; height: 48px; margin: -24px 0 0 -24px; border-radius: 50%; background: var(--gold); color: #2a1c00; display: grid; place-items: center; box-shadow: 0 10px 26px -6px rgba(0, 0, 0, .55); }
.cmp-range { position: absolute; inset: 0; z-index: 5; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; touch-action: pan-y; -webkit-appearance: none; appearance: none; background: transparent; }
.cmp-range::-webkit-slider-thumb { -webkit-appearance: none; width: 48px; height: 100vh; }
.cmp-range::-moz-range-thumb { width: 48px; height: 100vh; border: 0; }
.cmp:has(.cmp-range:focus-visible) { outline: 3px solid var(--emerald); outline-offset: 4px; }
.cmp:has(.cmp-range:focus-visible) .cmp-handle span { outline: 3px solid #fff; }
@media (max-width: 600px) { .cmp { aspect-ratio: 4 / 3.4; } .xl { font-size: clamp(11px, 3.1cqw, 15px); } .xl th, .xl td { padding: .4em .5em; } .cmp-tag { top: auto; bottom: 10px; } .cmp-tag-l { left: 10px; } .cmp-tag-r { right: 10px; } }
.vs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 28px; }
@media (max-width: 700px) { .vs-grid { grid-template-columns: 1fr; } }
.vs { border-radius: 18px; padding: 22px 24px; box-shadow: 0 0 0 1px var(--line); }
.vs h3 { font-size: 17.5px; margin-bottom: 6px; display: flex; gap: 8px; }
.vs p { color: var(--muted); font-size: 15.5px; }
.vs-bad { background: rgba(255, 255, 255, .5); }
.vs-bad h3 > span:first-child { color: #b23a2a; }
.vs-good { background: var(--sand); }
.vs-good h3 > span:first-child { color: var(--emerald-text); }

/* ===== COME FUNZIONA ===== */
.how { background: var(--sand); }
.steps { position: relative; margin-top: 52px; }
.steps-line { position: absolute; left: 27px; top: 8px; bottom: 8px; width: 3px; background: rgba(5, 76, 60, .16); border-radius: 3px; }
.steps-line i { display: block; width: 100%; height: 100%; background: linear-gradient(var(--emerald), var(--forest)); border-radius: 3px; transform: scaleY(var(--p, 1)); transform-origin: 50% 0; }
.js-anim .steps-line i { transform: scaleY(var(--p, 0)); }
@supports (animation-timeline: view()) {
  .js-anim.has-vt .steps-line i { transform: none; animation: draw linear both; animation-timeline: view(); animation-range: entry 30% cover 55%; }
  @keyframes draw { from { transform: scaleY(0); } to { transform: scaleY(1); } }
}
.step { position: relative; display: grid; grid-template-columns: 56px 1fr minmax(280px, 460px); gap: 28px; align-items: center; padding: 0 0 clamp(36px, 5vw, 64px); }
.step:last-child { padding-bottom: 0; }
.step-n { display: flex; align-items: center; justify-content: center; }
.step-n b { width: 56px; height: 56px; border-radius: 50%; background: var(--forest); color: var(--gold); font-family: var(--display); font-size: 26px; font-weight: 600; display: grid; place-items: center; box-shadow: 0 0 0 6px var(--sand); position: relative; z-index: 1; }
.step-lbl { display: none; }
.step-body h3 { font-family: var(--display); font-weight: 600; font-size: clamp(22px, 2.6vw, 32px); line-height: 1.12; margin-bottom: 8px; }
.step-body p { color: var(--muted); font-size: 17px; max-width: 40ch; }
.step-vis { border-radius: 18px; overflow: hidden; background: var(--forest); box-shadow: 0 24px 50px -28px rgba(1, 25, 19, .6); aspect-ratio: 16 / 9; position: relative; }
.vis-cam { display: grid; place-items: center; color: var(--gold); padding: 16px; }
.vis-cam svg { width: 100%; height: 100%; }
.vis-crop img { position: absolute; max-width: none; height: auto; }
.crop-cat img { width: 260%; left: -34%; top: -44%; }
.crop-ana img { width: 244%; left: -34%; top: -35%; }
@media (max-width: 780px) {
  .steps-line { left: 21px; }
  .step { grid-template-columns: 44px 1fr; gap: 14px 16px; align-items: start; }
  .step-n b { width: 44px; height: 44px; font-size: 21px; box-shadow: 0 0 0 5px var(--sand); }
  .step-vis { grid-column: 2; max-width: 460px; width: 100%; }
}

/* ===== CALCOLATORE ===== */
.calc { background: var(--forest); color: var(--on-dark); }
.calc h2 { color: #fff; } .calc .lead { color: var(--on-dark-2); }
.calc-card { margin-top: 44px; display: grid; grid-template-columns: 1fr 1.15fr; gap: 0; border-radius: 28px; overflow: hidden; background: var(--sand); color: var(--ink); box-shadow: 0 50px 90px -40px rgba(0, 0, 0, .6); }
@media (max-width: 860px) { .calc-card { grid-template-columns: 1fr; } }
.calc-form { padding: clamp(24px, 4vw, 44px); display: grid; gap: 20px; align-content: center; }
.fld label { display: block; font-weight: 800; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.inp { display: flex; align-items: center; min-height: 56px; background: #fff7e6; border: 1.5px solid rgba(5, 76, 60, .28); border-radius: 14px; padding: 0 16px; transition: border-color .15s, box-shadow .15s; }
.inp:focus-within { border-color: var(--emerald-text); box-shadow: 0 0 0 3px rgba(16, 185, 129, .3); }
.inp input { flex: 1; min-width: 0; border: 0; background: transparent; font-size: 24px; font-weight: 700; color: var(--forest); outline: none; font-variant-numeric: tabular-nums; padding: 8px 0; }
.inp > span { font-weight: 800; color: var(--muted); font-size: 18px; }
.inp .unit { display: flex; gap: 4px; padding: 4px; margin-right: -10px; background: rgba(5, 76, 60, .1); border-radius: 11px; }
.unit button { min-width: 44px; min-height: 44px; border: 0; border-radius: 8px; background: transparent; font-weight: 800; font-size: 16px; cursor: pointer; color: var(--muted); }
.unit button.on { background: var(--forest); color: #fff; }
.calc-out { background: var(--forest-d); color: var(--on-dark); padding: clamp(24px, 4vw, 44px); display: flex; flex-direction: column; gap: 6px; }
.out { display: flex; flex-direction: column; }
.out-k { font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--on-dark-2); }
.out b { font-family: var(--display); font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.05; color: #fff; }
.out-profit b { font-size: clamp(54px, 8vw, 92px); color: var(--emerald-h); }
.out-margin { margin-top: 10px; }
.out-margin b { font-size: clamp(34px, 4.5vw, 48px); color: var(--gold); }
.calc-out.is-loss .out-profit b { color: #ff9d86; }
.calc-bar { position: relative; height: 18px; border-radius: 9px; background: rgba(255, 255, 255, .1); overflow: hidden; margin-top: 22px; }
.calc-bar i { position: absolute; top: 0; bottom: 0; transition: left .45s var(--ease), width .45s var(--ease); }
.b-cost { background: #3d7f6f; } .b-fee { background: var(--gold); } .b-profit { background: var(--emerald-h); }
.calc-out.is-loss .b-profit { display: none; }
.calc-legend { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 12px; font-size: 13.5px; color: var(--on-dark-2); }
.calc-legend li::before { content: ''; display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 7px; background: var(--c); }
.l-cost { --c: #3d7f6f; } .l-fee { --c: var(--gold); } .l-profit { --c: var(--emerald-h); }
.calc-loss { margin-top: 14px; font-weight: 800; color: #ffb59c; }
.calc-note { margin-top: auto; padding-top: 18px; font-size: 13.5px; color: var(--on-dark-2); }

/* ===== FUNZIONI ===== */
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 48px; }
@media (max-width: 900px) { .feat-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 580px) { .feat-grid { grid-template-columns: 1fr; } }
.feat { position: relative; background: var(--sand); border-radius: 22px; padding: 28px; box-shadow: 0 0 0 1px var(--line); transform-style: preserve-3d; overflow: hidden; }
.feat::after { content: ''; position: absolute; inset: 0; background: radial-gradient(220px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 255, 255, .55), transparent 70%); opacity: 0; transition: opacity .25s; pointer-events: none; }
.feat:hover::after { opacity: 1; }
.feat .ico { width: 48px; height: 48px; border-radius: 14px; background: var(--forest); color: var(--gold); display: grid; place-items: center; margin-bottom: 18px; }
.feat h3 { font-size: 19px; margin-bottom: 8px; }
.feat p { color: var(--muted); font-size: 15.5px; }

/* ===== TESTIMONIANZE ===== */
.testi { background: var(--sand); }
.testi[hidden] { display: none; }
.te-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; margin-top: 40px; }
.te { background: var(--cream); border-radius: 22px; padding: 28px; box-shadow: 0 0 0 1px var(--line); }
.te blockquote { font-family: var(--display); font-size: 21px; line-height: 1.35; }
.te figcaption { margin-top: 18px; font-size: 14.5px; color: var(--muted); }
.te figcaption b { color: var(--ink); display: block; }

/* ===== FAQ ===== */
.faq { max-width: 820px; margin-top: 44px; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item h3 { font-size: 18px; }
.faq-item button { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 64px; padding: 14px 4px; background: none; border: 0; text-align: left; font-weight: 700; font-size: 18px; cursor: pointer; color: var(--ink); }
.faq-item button i { flex: none; position: relative; width: 28px; height: 28px; border-radius: 50%; background: var(--forest); transition: transform .35s var(--ease), background .2s; }
.faq-item button i::before, .faq-item button i::after { content: ''; position: absolute; left: 8px; right: 8px; top: 13px; height: 2px; background: var(--gold); border-radius: 2px; }
.faq-item button i::after { transform: rotate(90deg); transition: transform .35s var(--ease); }
.faq-item.is-open button i { transform: rotate(180deg); background: var(--emerald-text); }
.faq-item.is-open button i::after { transform: rotate(0); }
.faq-a { display: grid; grid-template-rows: 1fr; transition: grid-template-rows .4s var(--ease), opacity .4s var(--ease); }
.faq-a > div { overflow: hidden; }
.faq-a p { padding: 0 4px 22px; color: var(--muted); font-size: 16.5px; max-width: 62ch; }
.js .faq-item:not(.is-open) .faq-a { grid-template-rows: 0fr; opacity: 0; }

/* ===== BANNER FINALE ===== */
.final { background: var(--forest); color: var(--on-dark); text-align: center; overflow: clip; }
.final-in { position: relative; z-index: 1; }
.final h2 { color: #fff; margin: 0 auto; max-width: 14ch; font-size: clamp(36px, 6vw, 72px); }
.final .lead { margin: 20px auto 34px; color: var(--on-dark-2); }
.final .wl-msg { margin-top: 16px; }
.wl-consent { font-size: 13px; color: var(--on-dark-2); margin-top: 8px; }
.wl-consent a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.final-rings { position: absolute; left: 50%; top: 50%; width: 0; height: 0; pointer-events: none; }
.final-rings i { position: absolute; border-radius: 50%; border: 1.5px solid rgba(227, 180, 95, .22); transform: translate(-50%, -50%); }
.final-rings i:nth-child(1) { width: 520px; height: 520px; } .final-rings i:nth-child(2) { width: 860px; height: 860px; border-color: rgba(30, 200, 150, .18); } .final-rings i:nth-child(3) { width: 1240px; height: 1240px; border-color: rgba(255, 255, 255, .07); }
.js-anim .final-rings i { animation: ring 9s ease-in-out infinite; }
.js-anim .final-rings i:nth-child(2) { animation-delay: -3s; } .js-anim .final-rings i:nth-child(3) { animation-delay: -6s; }
@keyframes ring { 0%, 100% { transform: translate(-50%, -50%) scale(.96); } 50% { transform: translate(-50%, -50%) scale(1.04); } }

/* ===== FOOTER ===== */
.site-foot { background: var(--forest-d); color: var(--on-dark-2); padding: 40px 0; font-size: 14.5px; }
.foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.brand-foot { font-size: 26px; margin-bottom: 8px; }
.foot nav { display: flex; gap: 6px; flex-wrap: wrap; }
.foot nav a { padding: 12px 12px; min-height: 44px; display: inline-flex; align-items: center; text-decoration: none; color: var(--on-dark); border-radius: 10px; }
.foot nav a.foot-login { color: var(--gold); font-weight: 700; }
.foot nav a:hover { background: rgba(255, 255, 255, .08); }

/* ===== LIGHTBOX ===== */
.lb { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(2, 28, 22, .97); color: #fff; }
.lb:not([open]) { display: none; }
.lb[open] { display: flex; flex-direction: column; }
.lb-scroll { flex: 1; overflow: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: 64px 0 8px; }
.lb-scroll img { width: 1500px; max-width: none; height: auto; margin: 0 auto; }
.lb-close { position: fixed; top: 10px; right: 10px; z-index: 2; width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--gold); color: #2a1c00; display: grid; place-items: center; cursor: pointer; }
.lb-hint { text-align: center; font-size: 13px; color: var(--on-dark-2); padding: 10px 16px 14px; }
@media (min-width: 1600px) { .lb-scroll img { width: min(1600px, 100%); } }

/* ===== MOVIMENTO (solo con js-anim, cioè senza prefers-reduced-motion) ===== */
.js-anim .rv { opacity: 0; transform: translateY(32px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.js-anim .rv.in { opacity: 1; transform: none; }
.js-anim .w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .06em .14em 0; margin-bottom: -.14em; }
.js-anim .wi { display: inline-block; transform: translateY(110%); }
.js-anim .hero.is-in .wi { transform: none; transition: transform .95s var(--ease); transition-delay: calc(var(--i) * 75ms + 120ms); }
.js-anim .hero-copy > :not(h1) { opacity: 0; transform: translateY(18px); }
.js-anim .hero.is-in .hero-copy > :not(h1) { opacity: 1; transform: none; transition: opacity .8s var(--ease) .9s, transform .8s var(--ease) .9s; }
.js-anim .hero-stage { opacity: 0; transform: translateY(40px); }
.js-anim .hero.is-in .hero-stage { opacity: 1; transform: none; transition: opacity 1s var(--ease) .7s, transform 1.1s var(--ease) .7s; }
.js-anim .feat { transition: transform .25s var(--ease), box-shadow .25s, opacity .8s var(--ease); }
@media (hover: hover) and (pointer: fine) {
  .js-anim .feat.in:hover { transform: perspective(800px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-4px); box-shadow: 0 28px 50px -26px rgba(1, 25, 19, .5), 0 0 0 1px var(--line); will-change: transform; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
}
