/* Kherno · foglio di stile
   I colori e i font del brand si cambiano qui, nei token di :root. */

:root {
  /* Palette Kherno (brand book Pomelli): Jet Black, Cornflower Blue, Chalk White, Muted Steel, Sapphire Blue */
  --bg: #ffffff;
  --surface: #eef2f7;        /* Chalk White */
  --surface-2: #e1e7f0;
  --line: #d3dae5;
  --ink: #04060a;            /* Jet Black */
  --text: #1f2733;
  --muted: #5d6879;          /* Muted Steel scurito per leggibilità su bianco */
  --steel: #8a94a6;          /* Muted Steel */
  --accent: #0e3ec8;         /* Sapphire Blue */
  --accent-ink: #0b3199;
  --accent-2: #5e87fc;       /* Cornflower Blue */
  --accent-soft: #e9effe;
  --on-accent: #ffffff;
  --tbc: #fff2a8;
  --tbc-ink: #4a3d00;
  --ok: #1e7f4f;
  --err: #b42318;
  --radius: 4px;
  --radius-lg: 8px;
  --shadow: 0 1px 2px rgba(4, 6, 10, .06), 0 8px 24px rgba(4, 6, 10, .06);
  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Spline Sans Mono", "SFMono-Regular", Menlo, Consolas, monospace;
  --container: 1400px;
  --gutter: clamp(16px, 4vw, 48px);
  --section: clamp(56px, 8vw, 96px);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #04060a;
    --surface: #0d1219;
    --surface-2: #151c27;
    --line: #232c3a;
    --ink: #eef2f7;
    --text: #d3dae5;
    --muted: #9aa5b6;
    --steel: #8a94a6;
    --accent: #5e87fc;
    --accent-ink: #86a4ff;
    --accent-2: #5e87fc;
    --accent-soft: #121d3b;
    --on-accent: #04060a;
    --tbc: #5a4a00;
    --tbc-ink: #fff2a8;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .4);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #04060a;
  --surface: #0d1219;
  --surface-2: #151c27;
  --line: #232c3a;
  --ink: #eef2f7;
  --text: #d3dae5;
  --muted: #9aa5b6;
  --steel: #8a94a6;
  --accent: #5e87fc;
  --accent-ink: #86a4ff;
  --accent-2: #5e87fc;
  --accent-soft: #121d3b;
  --on-accent: #04060a;
  --tbc: #5a4a00;
  --tbc-ink: #fff2a8;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .4);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-ink); text-decoration: underline; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.15;
  margin: 0 0 .5em;
  text-wrap: balance;
  letter-spacing: -.01em;
}
h1 { font-size: clamp(34px, 4.4vw, 52px); font-weight: 700; letter-spacing: -.025em; }
h2 { font-size: clamp(26px, 3vw, 36px); font-weight: 700; letter-spacing: -.02em; }
h3 { font-size: clamp(19px, 1.7vw, 22px); font-weight: 700; }
h4 { font-size: 17px; font-weight: 700; }
.lead { font-size: clamp(18px, 1.5vw, 20px); color: var(--muted); max-width: 42em; }
.kicker {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 13px; font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 14px;
}
.muted { color: var(--muted); }
.small { font-size: 14px; }
.center { text-align: center; }
.measure { max-width: 42em; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.section.alt { background: var(--surface); }
.section.tight { padding-block: clamp(40px, 5vw, 64px); }
.section-head { max-width: 46em; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head p { color: var(--muted); font-size: 18px; }
.divider { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; min-height: 48px;
  border-radius: var(--radius); border: 1.5px solid transparent;
  font-family: var(--font-display); font-weight: 700; font-size: 16px;
  cursor: pointer; text-decoration: none; transition: background .15s, color .15s, border-color .15s;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-ink); border-color: var(--accent-ink); color: var(--on-accent); }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-secondary:hover { border-color: var(--ink); color: var(--ink); }
.btn-link { padding: 0; min-height: 0; color: var(--accent); font-weight: 700; }
.btn-link::after { content: "→"; }
.btn-block { width: 100%; }

/* Header */
.header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: var(--bg); border-bottom: 1px solid var(--line);
}
.header .container { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.logo:hover { text-decoration: none; color: var(--ink); }
.logo { color: var(--accent); }
.logo:hover { color: var(--accent); }
.logo svg { height: 26px; width: auto; }
.footer .logo svg { height: 24px; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav > li { position: relative; }
.nav a, .nav button.nav-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 14px; border-radius: var(--radius);
  color: var(--text); font-weight: 500; background: none; border: 0; cursor: pointer;
}
.nav a:hover, .nav button.nav-btn:hover, .nav a.active { color: var(--ink); background: var(--surface); text-decoration: none; }
.nav .chev { width: 12px; height: 12px; transition: transform .15s; }
.nav li.open .chev { transform: rotate(180deg); }
.dropdown {
  position: absolute; top: calc(100% + 8px); left: 0;
  min-width: 320px; background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 8px;
  display: none;
}
.nav li.open .dropdown { display: block; }
.dropdown a { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 12px 14px; border-radius: var(--radius); }
.dropdown a strong { color: var(--ink); font-family: var(--font-display); }
.dropdown a span { color: var(--muted); font-size: 14px; }
.header-cta { margin-left: 8px; }
.burger { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: var(--radius); width: 44px; height: 44px; align-items: center; justify-content: center; cursor: pointer; }
.burger svg { width: 22px; height: 22px; }

@media (max-width: 900px) {
  .nav, .header-cta { display: none; }
  .burger { display: inline-flex; }
  .header.menu-open .nav {
    display: flex; flex-direction: column; align-items: stretch; gap: 2px;
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 12px var(--gutter) 20px; margin: 0; box-shadow: var(--shadow);
  }
  .header.menu-open .nav a, .header.menu-open .nav button.nav-btn { width: 100%; justify-content: space-between; padding: 14px; }
  .header.menu-open .dropdown { position: static; box-shadow: none; border: 0; padding: 0 0 6px 10px; min-width: 0; }
  .header.menu-open .nav li.open .dropdown { display: block; }
  .header.menu-open .nav .cta-mobile { display: block; margin-top: 10px; }
}
.nav .cta-mobile { display: none; }

/* Hero */
.hero { padding-block: clamp(48px, 7vw, 96px); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { margin-bottom: 20px; }
.hero .lead { margin-bottom: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { margin-top: 18px; font-size: 14px; color: var(--muted); }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }

/* Mock UI: segnaposto per screenshot */
.mock {
  border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface);
  box-shadow: var(--shadow); overflow: hidden; aspect-ratio: 16 / 10.5; max-width: 100%;
  display: flex; flex-direction: column;
}
.mock-bar { display: flex; gap: 6px; padding: 10px 12px; border-bottom: 1px solid var(--line); background: var(--bg); }
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.mock-body { flex: 1; display: grid; grid-template-columns: 72px 1fr; }
.mock-side { border-right: 1px solid var(--line); background: var(--bg); padding: 12px 10px; display: grid; gap: 10px; align-content: start; }
.mock-side i { height: 10px; border-radius: 3px; background: var(--surface-2); display: block; }
.mock-side i:first-child { background: var(--accent-soft); }
.mock-main { padding: 14px; display: grid; gap: 12px; grid-template-rows: auto 1fr; }
.mock-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mock-tiles b { display: block; height: 52px; background: var(--bg); border: 1px solid var(--line); border-radius: 5px; }
.mock-chart { background: var(--bg); border: 1px solid var(--line); border-radius: 5px; position: relative; overflow: hidden; }
.mock-chart svg { width: 100%; height: 100%; }
.mock-label {
  position: absolute; inset: auto 10px 10px auto; font-size: 12px; font-weight: 600;
  background: var(--tbc); color: var(--tbc-ink); padding: 4px 8px; border-radius: 4px;
}
.mock-wrap { position: relative; }

/* Cards */
.grid { display: grid; gap: clamp(16px, 2vw, 24px); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(20px, 2.4vw, 28px); display: flex; flex-direction: column; gap: 10px;
}
.card h3 { margin: 0; }
.card p { color: var(--muted); margin: 0; }
.card .btn-link { margin-top: auto; padding-top: 8px; }
.card-product { min-height: 100%; }
.card-product .sector { font-size: 14px; color: var(--muted); font-weight: 500; }
.card-product .icon { width: 44px; height: 44px; color: var(--accent-2); margin-bottom: 4px; }
.card-product .icon svg { width: 100%; height: 100%; }

.feature { display: flex; gap: 14px; align-items: flex-start; }
.feature .dot { flex: 0 0 auto; width: 36px; height: 36px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-2); display: grid; place-items: center; }
.feature .dot svg { width: 18px; height: 18px; }
.feature h4 { margin: 0 0 4px; }
.feature p { margin: 0; color: var(--muted); font-size: 15.5px; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2vw, 28px); counter-reset: step; }
.step { position: relative; padding-top: 18px; border-top: 2px solid var(--line); }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  font-family: var(--font-mono); font-weight: 600; font-size: 14px; color: var(--accent);
  position: absolute; top: -12px; left: 0; background: var(--bg); padding-right: 8px;
}
.section.alt .step::before { background: var(--surface); }
.step h3 { font-size: 19px; margin-bottom: 6px; }
.step p { color: var(--muted); margin: 0; font-size: 15.5px; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .steps { grid-template-columns: 1fr; } }


/* Split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

/* Check list */
.checks { display: grid; gap: 10px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; }
.checks svg { flex: 0 0 auto; width: 20px; height: 20px; color: var(--accent-2); margin-top: 3px; }

/* Chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-block; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; background: var(--bg); }

/* Doubts */
.doubts { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2vw, 24px); }
@media (max-width: 900px) { .doubts { grid-template-columns: 1fr; } }
.doubt { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(22px, 2.6vw, 32px); }
.doubt h3 { margin-bottom: 10px; }
.doubt p { color: var(--muted); }
.doubt .checks { margin: 16px 0; }
.doubt .note { font-size: 14px; }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 24px); align-items: stretch; }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; } }
.plan { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(22px, 2.6vw, 32px); display: flex; flex-direction: column; gap: 14px; }
.plan.featured { border-color: var(--accent); border-width: 2px; }
.plan .tag { font-size: 12px; font-weight: 500; color: var(--accent); text-transform: uppercase; letter-spacing: .08em; font-family: var(--font-mono); }
.plan h3 { margin: 0; font-size: 24px; }
.plan .price { font-family: var(--font-mono); font-weight: 600; font-size: 32px; color: var(--ink); font-variant-numeric: tabular-nums; }
.plan .price small { font-size: 15px; font-weight: 500; color: var(--muted); font-family: var(--font-body); }
.plan .desc { color: var(--muted); margin: 0; }
.plan .checks { margin-block: 6px 8px; flex: 1; }
.pricing-note { margin-top: 20px; font-size: 14px; color: var(--muted); max-width: 60em; }

/* FAQ */
.faq { display: grid; gap: 10px; max-width: 800px; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--bg); }
.faq summary { cursor: pointer; padding: 16px 20px; font-family: var(--font-display); font-weight: 700; color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; color: var(--accent); line-height: 1; flex: 0 0 auto; }
.faq details[open] summary::after { content: "−"; }
.faq .answer { padding: 0 20px 18px; color: var(--muted); }

/* Table sectors */
.table-wrap { overflow-x: auto; }
table.plain { width: 100%; border-collapse: collapse; }
table.plain th, table.plain td { text-align: left; padding: 14px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.plain th { font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 500; }
.status { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; border: 1px solid var(--line); }
.status.ok { color: var(--ok); border-color: currentColor; }

/* Facts */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 700px) { .facts { grid-template-columns: repeat(2, 1fr); } }
.fact { border-top: 2px solid var(--line); padding-top: 12px; }
.fact .k { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-family: var(--font-mono); font-weight: 500; }
.fact .v { font-family: var(--font-mono); font-weight: 600; font-size: 22px; color: var(--ink); }

/* Form */
.form-card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(22px, 2.6vw, 32px); box-shadow: var(--shadow); }
.form-card h3 { margin-bottom: 4px; }
.form-card > p { color: var(--muted); margin-bottom: 20px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 600; color: var(--ink); }
.field label .req { color: var(--err); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 11px 14px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--bg); color: var(--text);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
.field .hint { font-size: 13px; color: var(--muted); }
.more-toggle { background: none; border: 0; color: var(--accent); font-weight: 600; padding: 0; cursor: pointer; text-align: left; }
.more-fields { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
@media (max-width: 600px) { .more-fields { grid-template-columns: 1fr; } }
.radios { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.radios label { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; font-size: 15px; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); }
.consent input { margin-top: 4px; width: 18px; height: 18px; flex: 0 0 auto; }
.form-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 4px; }
.form-msg { display: none; padding: 16px 18px; border-radius: var(--radius); border: 1px solid var(--line); margin-top: 16px; }
.form-msg.show { display: block; }
.form-msg.ok { border-color: var(--ok); }
.form-msg.err { border-color: var(--err); }
.form-msg h4 { margin: 0 0 4px; }
.form-msg pre { font-size: 12px; overflow-x: auto; background: var(--surface); padding: 10px; border-radius: 4px; margin: 10px 0 0; }
.field.invalid input, .field.invalid select { border-color: var(--err); }
.field .error { display: none; font-size: 13px; color: var(--err); }
.field.invalid .error { display: block; }

/* Contact layout */
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-list { display: grid; gap: 18px; }
.contact-list .k { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-family: var(--font-mono); font-weight: 500; }
.contact-list .v { font-size: 18px; color: var(--ink); }
.after { counter-reset: after; display: grid; gap: 14px; }
.after li { display: flex; gap: 14px; align-items: flex-start; }
.after li::before { counter-increment: after; content: counter(after); flex: 0 0 auto; width: 28px; height: 28px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 600; font-family: var(--font-mono); display: grid; place-items: center; font-size: 14px; }

/* CTA band */
.cta-band { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cta-band .split { align-items: center; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding-block: 48px 32px; background: var(--surface); font-size: 14.5px; color: var(--muted); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .footer-grid { grid-template-columns: 1fr; } }
.footer h4 { font-family: var(--font-mono); font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: .08em; color: var(--ink); margin-bottom: 12px; }
.footer ul { display: grid; gap: 8px; }
.footer a { color: var(--text); }
.footer-legal { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; font-size: 13.5px; }

/* Cookie banner */
.cookie { position: fixed; left: 16px; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 60; margin-inline: auto; max-width: 720px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 18px 20px; display: none; gap: 14px; align-items: center; flex-wrap: wrap; }
.cookie.show { display: flex; }
.cookie p { flex: 1 1 320px; margin: 0; font-size: 14px; color: var(--muted); }
.cookie .btn { min-height: 40px; padding: 8px 16px; font-size: 14px; }

/* Segnaposto da confermare: visibili solo in bozza */
mark.tbc { background: none; color: inherit; }
.draft mark.tbc { background: var(--tbc); color: var(--tbc-ink); padding: 0 3px; border-radius: 3px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.draft-banner { display: none; }
.draft .draft-banner { display: block; background: var(--tbc); color: var(--tbc-ink); font-size: 13px; text-align: center; padding: 6px var(--gutter); }

.draft.hide-tbc mark.tbc { background: none; color: inherit; padding: 0; }
.draft.hide-tbc .mock-label { display: none; }
[hidden] { display: none !important; }

/* Preview single-file: router */
.page { display: none; }
.page.active { display: block; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--bg); padding: 8px 12px; border: 1px solid var(--line); border-radius: 4px; z-index: 100; }
.skip:focus { left: 8px; }

/* ===================== V2: componenti da mockup ===================== */
:root { --radius: 8px; --radius-lg: 14px; --radius-xl: 20px; }
.btn { border-radius: 10px; }
.btn .arr { width: 16px; height: 16px; }
.btn-white { background: var(--bg); color: var(--accent); border-color: var(--bg); }
.btn-white:hover { background: var(--accent-soft); border-color: var(--accent-soft); color: var(--accent-ink); }
.btn-ghost { background: transparent; color: var(--ink); border-color: transparent; padding-inline: 12px; }
.btn-ghost:hover { color: var(--accent); }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--accent); }
.link-arrow svg { width: 16px; height: 16px; }
.header-right { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.nav { margin-left: 8px; }
.header .header-cta { margin-left: 4px; }
@media (max-width: 900px) { .header-right .btn-ghost { display: none; } .header-right { margin-left: auto; } .header .header-cta { display: none; } .header-right .burger { margin-left: 0; } }
.dropdown { min-width: 360px; }
.dropdown-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
@media (max-width: 900px) { .dropdown-grid { grid-template-columns: 1fr; } .dropdown { min-width: 0; } }

/* Segnaposto foto */
.photo { position: relative; background: var(--surface-2); border-radius: var(--radius-lg); overflow: hidden; display: grid; place-items: center; color: var(--muted); max-width: 100%; }
.photo::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(135deg, transparent 0 14px, rgba(138,148,166,.08) 14px 15px); }
.photo .ph { position: relative; text-align: center; padding: 16px; font-size: 13px; line-height: 1.45; max-width: 34ch; }
.photo .ph svg { width: 34px; height: 34px; margin: 0 auto 8px; color: var(--steel); }
.photo .ph b { display: block; font-family: var(--font-mono); font-weight: 500; color: var(--text); }
.hide-tbc .photo .ph, .final .photo .ph { display: none; }

/* Hero fotografico */
.hero2 { position: relative; overflow: hidden; }
.hero2 .bg { position: absolute; inset: 0; border-radius: 0; }
.hero2 .bg::after { content: ""; position: absolute; inset: 0; background: var(--bg); opacity: .78; }
@media (min-width: 901px) { .hero2 .bg::after { background: linear-gradient(90deg, var(--bg) 0 46%, rgba(255,255,255,0) 100%); opacity: 1; } }
.hero2 .container { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; padding-block: clamp(48px, 6vw, 88px); }
@media (max-width: 900px) { .hero2 .container { grid-template-columns: 1fr; } }
.hero2 h1 { margin-bottom: 18px; }
.hero2 .lead { margin-bottom: 26px; color: var(--text); }
.hero2 .actions { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; }
.hero2 .note { margin-top: 14px; font-size: 14px; color: var(--muted); }
.hero-devices { position: relative; min-height: 320px; }
.hero-devices .device-tablet { width: min(100%, 560px); margin-left: auto; }
.hero-devices .device-phone { position: absolute; right: -6px; bottom: -22px; width: 26%; min-width: 120px; }
@media (max-width: 900px) { .hero-devices { min-height: 0; padding-bottom: 30px; } .hero-devices .device-phone { right: 0; } }

/* Device mockup */
.device-tablet { background: #0b0d12; border-radius: 22px; padding: 14px; box-shadow: 0 30px 60px -20px rgba(4,6,10,.45), 0 8px 20px -8px rgba(4,6,10,.3); aspect-ratio: 16 / 10.4; max-width: 100%; }
.device-tablet .screen, .device-phone .screen { background: #ffffff; color: #1f2733; border-radius: 10px; height: 100%; overflow: hidden; display: grid; font-family: var(--font-body); font-size: 11px; line-height: 1.3; }
.device-phone { background: #0b0d12; border-radius: 26px; padding: 8px; aspect-ratio: 9 / 18.5; box-shadow: 0 24px 40px -16px rgba(4,6,10,.5); }
.device-phone .screen { border-radius: 20px; grid-template-rows: auto 1fr; }
.ui-side { background: #10254f; color: #c9d6f5; padding: 10px 8px; display: grid; gap: 7px; align-content: start; font-size: 8.5px; }
.ui-side .brand { color: #fff; font-weight: 700; font-size: 10px; letter-spacing: .04em; margin-bottom: 6px; }
.ui-side span { display: flex; align-items: center; gap: 6px; padding: 4px 6px; border-radius: 5px; white-space: nowrap; overflow: hidden; }
.ui-side span::before { content: ""; width: 8px; height: 8px; border: 1.2px solid currentColor; border-radius: 2px; flex: 0 0 auto; opacity: .8; }
.ui-side span.on { background: #0e3ec8; color: #fff; }
.ui-main { padding: 10px 12px; display: grid; gap: 8px; align-content: start; }
.ui-top { display: flex; justify-content: space-between; align-items: center; color: #5d6879; font-size: 8.5px; }
.ui-top b { color: #04060a; font-size: 12px; }
.ui-tabs { display: flex; gap: 5px; }
.ui-tabs span { padding: 3px 7px; border-radius: 999px; background: #eef2f7; font-size: 8.5px; }
.ui-tabs span.on { background: #0e3ec8; color: #fff; }
.ui-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.ui-table { aspect-ratio: 1.15; background: #eef2f7; border-radius: 8px; display: grid; place-items: center; font-weight: 700; color: #1f2733; font-size: 10px; position: relative; }
.ui-table.busy { background: #5e87fc; color: #fff; }
.ui-table.ok { background: #2fb36a; color: #fff; }
.ui-panel { background: #f6f8fb; border: 1px solid #e1e7f0; border-radius: 8px; padding: 8px; display: grid; gap: 5px; font-size: 8.5px; color: #5d6879; align-content: start; }
.ui-panel b { color: #04060a; font-size: 10px; }
.ui-panel .row { display: flex; justify-content: space-between; gap: 6px; border-bottom: 1px dashed #e1e7f0; padding-bottom: 3px; }
.ui-panel .btn-ui { margin-top: 4px; background: #0e3ec8; color: #fff; text-align: center; border-radius: 6px; padding: 5px; font-weight: 600; }
.ui-split { display: grid; grid-template-columns: 1.4fr 1fr; gap: 8px; }
.ui-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.ui-tile { display: grid; gap: 3px; font-size: 7.5px; color: #5d6879; text-align: center; }
.ui-tile i { display: block; aspect-ratio: 1; border-radius: 6px; background: #eef2f7; }
.ui-tile i.a { background: #f3d9b1; } .ui-tile i.b { background: #dfe8c9; } .ui-tile i.c { background: #f0c9c0; } .ui-tile i.d { background: #e7d8f0; }
.ui-list { display: grid; gap: 4px; }
.ui-list .row { display: grid; grid-template-columns: 1fr auto; gap: 6px; padding: 5px 6px; background: #f6f8fb; border-radius: 5px; font-size: 8.5px; }
.ui-list .row b { color: #04060a; }
.ui-agenda { display: grid; grid-template-columns: 26px repeat(3, 1fr); gap: 4px; font-size: 7.5px; color: #5d6879; }
.ui-agenda .h { text-align: right; padding-right: 3px; }
.ui-agenda .c { background: #f6f8fb; border-radius: 4px; min-height: 16px; }
.ui-agenda .c.ev { background: #5e87fc; color: #fff; padding: 3px 4px; font-weight: 600; }
.ui-agenda .c.ev2 { background: #0e3ec8; color: #fff; padding: 3px 4px; font-weight: 600; }
.ui-agenda .c.ev3 { background: #dfe8c9; color: #2d4a1e; padding: 3px 4px; font-weight: 600; }
.ui-kpi { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.ui-kpi div { background: #f6f8fb; border-radius: 6px; padding: 6px; font-size: 7.5px; color: #5d6879; }
.ui-kpi b { display: block; color: #04060a; font-size: 11px; font-family: var(--font-mono); }
.ui-phone-head { padding: 12px 10px 6px; display: grid; gap: 4px; }
.ui-phone-head b { font-size: 11px; color: #04060a; }
.ui-phone-head small { font-size: 8px; color: #5d6879; }
.ui-phone-body { padding: 0 10px 10px; display: grid; gap: 6px; align-content: start; }
.ui-dish { display: grid; grid-template-columns: 34px 1fr; gap: 6px; align-items: center; font-size: 8px; color: #04060a; }
.ui-dish i { display: block; aspect-ratio: 1; border-radius: 6px; background: #f3d9b1; }
.ui-dish i.b { background: #dfe8c9; } .ui-dish i.c { background: #f0c9c0; }
.ui-dish small { display: block; color: #5d6879; font-size: 7px; }
.ui-phone-body .btn-ui { margin-top: auto; background: #0e3ec8; color: #fff; text-align: center; border-radius: 8px; padding: 6px; font-size: 8px; font-weight: 600; }
.device-caption { text-align: center; font-size: 12px; color: var(--muted); margin-top: 10px; }

/* Card settore */
.sector-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 900px) { .sector-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .sector-cards { grid-template-columns: 1fr; } }
.sector-card { display: flex; flex-direction: column; gap: 8px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 12px 12px 18px; color: inherit; text-decoration: none; transition: border-color .15s, box-shadow .15s; position: relative; }
.sector-card:hover { text-decoration: none; color: inherit; border-color: var(--accent-2); box-shadow: var(--shadow); }
.sector-card .photo { aspect-ratio: 16 / 10; border-radius: 10px; }
.sector-card h3 { margin: 10px 8px 0; font-size: 20px; }
.sector-card p { margin: 0 8px; color: var(--accent); font-size: 15px; }
.sector-card .go { margin: 8px 8px 0; width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid var(--line); display: grid; place-items: center; color: var(--accent); }
.sector-card .go svg { width: 16px; height: 16px; }
.sector-card:hover .go { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.badge { position: absolute; top: 20px; left: 20px; background: var(--bg); color: var(--ink); font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; padding: 4px 8px; border-radius: 6px; border: 1px solid var(--line); }

/* Fascia blu */
.band { background: var(--accent); color: #ffffff; }
.band .container { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(28px, 4vw, 64px); align-items: center; padding-block: clamp(48px, 6vw, 88px); }
@media (max-width: 900px) { .band .container { grid-template-columns: 1fr; } }
.band .kicker, .band h2, .band p { color: #ffffff; }
.band .kicker { opacity: .85; }
.band h2 { margin-bottom: 14px; }
.band .lead { color: rgba(255,255,255,.88); margin-bottom: 26px; }
.band .btn-white { margin-top: 8px; }
.minifeats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-block: 22px 12px; }
@media (max-width: 560px) { .minifeats { grid-template-columns: 1fr; } }
.minifeat { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.minifeat .ic { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.16); display: grid; place-items: center; }
.minifeat .ic svg { width: 16px; height: 16px; color: #fff; }
.minifeat b { display: block; font-size: 14px; margin-bottom: 2px; }
.minifeat span { color: rgba(255,255,255,.85); font-size: 13px; line-height: 1.4; }
.band .device-tablet { transform: rotate(-4deg) translateY(6px); margin-inline: auto; width: min(100%, 620px); }
@media (max-width: 900px) { .band .device-tablet { transform: none; margin-top: 10px; } }

/* Tre feature con icona (pagina prodotto) */
.feat3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 900px) { .feat3 { grid-template-columns: 1fr; } }
.feat3 > div { display: flex; gap: 16px; align-items: center; padding-right: 20px; }
.feat3 > div + div { border-left: 1px solid var(--line); padding-left: 24px; }
@media (max-width: 900px) { .feat3 > div + div { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 20px; } }
.icon-circle { flex: 0 0 auto; width: 60px; height: 60px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.icon-circle svg { width: 26px; height: 26px; }
.icon-circle.sm { width: 48px; height: 48px; } .icon-circle.sm svg { width: 22px; height: 22px; }
.feat3 h3 { margin: 0 0 4px; font-size: 19px; }
.feat3 p { margin: 0; color: var(--muted); font-size: 15px; }

/* Card "più possibilità" */
.more-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 800px) { .more-cards { grid-template-columns: 1fr; } }
.more-card { display: flex; align-items: center; gap: 20px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px 24px; color: inherit; text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.more-card:hover { text-decoration: none; color: inherit; border-color: var(--accent-2); box-shadow: var(--shadow); }
.more-card .icon-circle { width: 68px; height: 68px; } .more-card .icon-circle svg { width: 30px; height: 30px; }
.more-card h3 { margin: 0 0 4px; font-size: 20px; }
.more-card p { margin: 0; color: var(--muted); font-size: 15px; }
.more-card .go { margin-left: auto; color: var(--accent); flex: 0 0 auto; width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid var(--line); display: grid; place-items: center; }
.more-card .go svg { width: 16px; height: 16px; }

/* CTA chiara */
.cta-soft { background: var(--accent-soft); border-radius: var(--radius-xl); padding: clamp(28px, 4vw, 44px); display: grid; grid-template-columns: 1fr auto; gap: 24px 40px; align-items: center; }
@media (max-width: 800px) { .cta-soft { grid-template-columns: 1fr; } }
.cta-soft h2 { margin-bottom: 6px; }
.cta-soft p { margin: 0; color: var(--text); font-size: 18px; }
.cta-soft .side { display: grid; gap: 12px; justify-items: start; }
.cta-soft .side .small { color: var(--muted); }

/* Pacchetti V2 */
.infobar { display: flex; align-items: center; gap: 10px; background: var(--accent-soft); color: var(--accent-ink); border-radius: 10px; padding: 12px 16px; font-size: 15px; font-weight: 500; margin-bottom: 24px; }
.infobar svg { width: 20px; height: 20px; flex: 0 0 auto; }
.plan { border-radius: var(--radius-lg); }
.plan .price { display: flex; align-items: baseline; gap: 6px; font-family: var(--font-display); font-weight: 700; font-size: 40px; letter-spacing: -.03em; }
.plan .price .cur { font-size: 26px; font-weight: 600; }
.plan .price small { font-family: var(--font-body); font-size: 16px; color: var(--muted); font-weight: 400; }
.plan .sub { color: var(--text); margin: 0; }
.plan hr { border: 0; border-top: 1px solid var(--line); margin: 4px 0; }
.plan .checks svg { color: var(--accent); background: var(--accent-soft); border-radius: 50%; padding: 3px; }
.plan h3 { font-size: 26px; }

/* FAQ V2 */
.faq { max-width: none; }
.faq summary::after { content: ""; width: 10px; height: 10px; border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(45deg); margin-right: 4px; transition: transform .15s; }
.faq details[open] summary::after { content: ""; transform: rotate(-135deg); }
.faq summary { padding: 18px 22px; font-size: 17px; }

/* Breadcrumb */
.crumbs { font-size: 14px; color: var(--muted); display: flex; gap: 8px; margin-bottom: 18px; }
.crumbs a { color: var(--accent); }

/* Fascia CTA prodotto */
.band-cta .container { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px 40px; padding-block: clamp(36px, 4vw, 56px); }
.band-cta h2 { margin-bottom: 6px; font-size: clamp(24px, 2.6vw, 32px); }
.band-cta p { margin: 0; color: rgba(255,255,255,.88); font-size: 18px; }

/* Sticky CTA mobile */
.sticky-cta { display: none; }
@media (max-width: 700px) {
  .sticky-cta { display: block; position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); z-index: 55; }
  .sticky-cta .btn { width: 100%; box-shadow: var(--shadow); }
  body.has-sticky { padding-bottom: 84px; }
  .cookie { bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
}

/* Pagina contatto */
.contact2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: start; padding-block: clamp(40px, 5vw, 72px); }
@media (max-width: 900px) { .contact2 { grid-template-columns: 1fr; } }
.contact2 .chip.prod { background: var(--accent-soft); border-color: var(--accent-soft); color: var(--accent); font-weight: 600; margin-bottom: 14px; display: inline-block; }
.lead-form .field label { font-size: 15px; }
.lead-form .field label .opt { color: var(--muted); font-weight: 400; }
.lead-form .field input, .lead-form .field select { min-height: 54px; border-radius: 10px; font-size: 16px; }
.phone-row { display: grid; grid-template-columns: 96px 1fr; gap: 10px; }
.phone-row select { padding-inline: 12px; }
.expander { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 4px 0; }
.expander summary { display: flex; align-items: center; gap: 10px; padding: 14px 0; cursor: pointer; color: var(--accent); font-weight: 600; list-style: none; }
.expander summary::-webkit-details-marker { display: none; }
.expander summary svg { width: 20px; height: 20px; }
.expander summary .chev { margin-left: auto; width: 14px; height: 14px; transition: transform .15s; }
.expander[open] summary .chev { transform: rotate(180deg); }
.expander .inner { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding-bottom: 16px; }
@media (max-width: 560px) { .expander .inner { grid-template-columns: 1fr; } }
.privacy-note { font-size: 14px; color: var(--muted); }
.form-side { display: grid; gap: 22px; }
.form-side .box { background: var(--surface); border-radius: var(--radius-lg); padding: 22px 24px; }
.form-side .box h3 { font-size: 18px; margin-bottom: 8px; }
.form-side .box p, .form-side .box li { font-size: 15px; color: var(--muted); }

/* Pagina grazie */
.thanks-wrap { background: var(--surface); padding-block: clamp(32px, 5vw, 72px); }
.thanks { max-width: 860px; margin-inline: auto; background: var(--bg); border-radius: var(--radius-xl); padding: clamp(28px, 4vw, 48px); box-shadow: var(--shadow); }
.thanks .top { text-align: center; display: grid; justify-items: center; gap: 10px; margin-bottom: 28px; }
.thanks .check { width: 84px; height: 84px; border-radius: 50%; border: 3px solid var(--accent); background: var(--accent-soft); display: grid; place-items: center; color: var(--accent); }
.thanks .check svg { width: 40px; height: 40px; }
.thanks h1 { font-size: clamp(32px, 4vw, 48px); margin: 0; }
.thanks .top p { font-size: 18px; color: var(--text); max-width: 34em; }
.recap { background: var(--accent-soft); border-radius: var(--radius-lg); padding: 18px 22px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.recap .icon-circle { background: var(--bg); width: 48px; height: 48px; } .recap .icon-circle svg { width: 20px; height: 20px; }
.recap .k { font-size: 14px; color: var(--muted); }
.recap .v { font-family: var(--font-mono); font-size: 20px; font-weight: 600; color: var(--ink); }
.recap .fix { margin-left: auto; padding-left: 18px; border-left: 1px solid rgba(14,62,200,.2); }
@media (max-width: 560px) { .recap .fix { margin-left: 0; padding-left: 0; border: 0; } }
.thanks h2 { font-size: 22px; margin: 28px 0 12px; }
.pref { background: var(--accent-soft); border-radius: var(--radius-lg); padding: 22px; margin-top: 24px; }
.pref h3 { font-size: 19px; margin-bottom: 14px; }
.pref .row { display: grid; grid-template-columns: 1fr 1fr auto; gap: 14px; align-items: end; }
@media (max-width: 700px) { .pref .row { grid-template-columns: 1fr; } }
.pref .field select { background: var(--bg); }
.pref .small { margin-top: 10px; }
.thanks .back { text-align: center; margin-top: 26px; }

/* Rivenditori / PA */
.benefit-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
@media (max-width: 800px) { .benefit-grid { grid-template-columns: 1fr; } }
.benefit { display: flex; gap: 16px; align-items: flex-start; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px; }
.benefit h3 { font-size: 19px; margin: 0 0 4px; }
.benefit p { margin: 0; color: var(--muted); font-size: 15px; }

.footer .payoff { font-family: var(--font-display); font-weight: 700; color: var(--accent); line-height: 1.25; font-size: 17px; }
.footer .payoff::after { content: ""; display: block; width: 28px; height: 3px; background: var(--accent); margin-top: 8px; border-radius: 2px; }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; }
.footer-bottom .links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.footer-bottom .links a { color: var(--text); font-size: 14px; }
.footer .social { display: flex; gap: 10px; }
.footer .social a { width: 30px; height: 30px; border: 1px solid var(--line); border-radius: 6px; display: grid; place-items: center; color: var(--ink); }
.footer .social svg { width: 15px; height: 15px; }
.hero2 .container > *, .band .container > *, .split > *, .contact2 > *, .grid > * { min-width: 0; }
.device-tablet .screen, .device-phone .screen { min-width: 0; }
.ui-top span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.footer-top { display: grid; grid-template-columns: 1.2fr 1fr auto; gap: 28px 40px; align-items: start; }
@media (max-width: 900px) { .footer-top { grid-template-columns: 1fr; } }
.footer-brand { display: grid; grid-template-columns: auto auto 1fr; gap: 10px 18px; align-items: center; }
.footer-brand .vr { border-left: 1px solid var(--line); height: 22px; }
.footer-brand p { grid-column: 1 / -1; margin: 0; }
@media (max-width: 560px) { .footer-brand { grid-template-columns: 1fr; } .footer-brand .vr { display: none; } }
.footer-mid { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; padding-top: 4px; }
.footer .payoff { justify-self: end; text-align: left; }
@media (max-width: 900px) { .footer .payoff { justify-self: start; } }
.hero2 .bg .ph { position: absolute; right: 16px; top: 16px; text-align: right; max-width: 30ch; font-size: 12px; background: rgba(255,255,255,.7); border-radius: 8px; padding: 10px 12px; }
.hero2 .bg .ph svg { margin: 0 0 4px auto; width: 22px; height: 22px; }
.hero2 .bg { display: block; }
.footer .links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.footer .links a { color: var(--text); font-size: 14px; white-space: nowrap; }
.contact2 { grid-template-areas: "intro form" "aside form"; grid-template-columns: 1fr 1fr; align-items: start; row-gap: 28px; }
.contact-intro { grid-area: intro; } .contact-form { grid-area: form; } .contact-aside { grid-area: aside; }
@media (max-width: 900px) { .contact2 { grid-template-areas: "intro" "form" "aside"; grid-template-columns: 1fr; } }

/* ===================== V2.1: revisione UX/accessibilità ===================== */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.h3 { font-size: clamp(19px, 1.7vw, 22px); font-weight: 700; }
.h4 { font-size: 17px; font-weight: 700; margin: 0 0 4px; }

/* Link riconoscibili nel testo (WCAG 1.4.1) */
p a:not(.btn), li a:not(.btn), .consent a, .cookie a, .privacy-note a { text-decoration: underline; text-underline-offset: 2px; }
.footer .links a, .crumbs a { text-decoration: none; }
.footer .links a:hover, .crumbs a:hover { text-decoration: underline; }

/* Header: CTA nascoste nelle pagine di contatto */
.page-contatti .header-cta, .page-grazie .header-cta { display: none; }
.nav a[aria-current="page"] { color: var(--ink); background: var(--surface); }

/* Menu a tendina: apertura al passaggio del mouse su desktop */
@media (hover: hover) and (min-width: 901px) {
  .nav > li:hover .dropdown, .nav > li:focus-within .dropdown { display: block; }
  .nav > li:hover .chev { transform: rotate(180deg); }
}
.dropdown a:focus-visible { outline-offset: -3px; }

/* Card cliccabili: focus visibile */
.sector-card:focus-visible, .more-card:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

/* Card settore su mobile: due colonne, foto più bassa */
@media (max-width: 560px) {
  .sector-cards { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .sector-card { padding: 8px 8px 14px; }
  .sector-card .photo { aspect-ratio: 3 / 2; }
  .sector-card h3 { font-size: 17px; margin: 8px 6px 0; }
  .sector-card p { font-size: 13px; margin: 0 6px; }
  .sector-card .go { margin: 6px 6px 0; width: 32px; height: 32px; }
  .badge { top: 14px; left: 14px; font-size: 10px; padding: 3px 6px; }
}

/* Fiducia */
.trust-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(20px, 3vw, 40px); align-items: start; }
@media (max-width: 900px) { .trust-grid { grid-template-columns: 1fr; } }
.cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 700px) { .cases { grid-template-columns: 1fr; } }
.case { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; }
.case .case-photo { aspect-ratio: 16 / 10; border-radius: 0; }
.case > div { padding: 14px 16px 18px; }
.case h3 { font-size: 18px; margin: 0 0 2px; }
.case p { margin: 0; font-size: 14.5px; }
.case p + p { margin-top: 6px; color: var(--text); }
.trust-points { display: grid; gap: 12px; }
.trust-points .benefit { padding: 16px 18px; }
.trust-points .benefit h3 { font-size: 17px; }
.steps-title { font-size: 20px; margin: 36px 0 22px; }
.steps-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .steps-3 { grid-template-columns: 1fr; } }

/* Fascia blu: sfondo icone più leggibile */
.minifeat .ic { background: rgba(255,255,255,.22); }

/* Pacchetti: gerarchia */
.plan .tag { font-family: var(--font-mono); background: var(--accent); color: var(--on-accent); display: inline-block; padding: 4px 10px; border-radius: 6px; width: max-content; }
.plan.featured { box-shadow: var(--shadow); }
.plan .btn-secondary { border-color: var(--accent); color: var(--accent); }
.plan .btn-secondary:hover { background: var(--accent-soft); }

/* Funzionalità: mostra tutte (solo mobile) */
.show-more { display: none; margin-top: 18px; }
@media (max-width: 700px) {
  .features-grid:not(.expanded) .feature-more { display: none; }
  .show-more { display: inline-flex; }
}

/* Cookie compatto su mobile */
.cookie-actions { display: flex; gap: 10px; flex: 0 0 auto; }
@media (max-width: 700px) {
  .cookie { padding: 12px 14px; gap: 10px; left: 8px; right: 8px; }
  .cookie p { font-size: 13px; flex-basis: 100%; }
  .cookie-actions { width: 100%; }
  .cookie-actions .btn { flex: 1; min-height: 40px; padding: 8px 10px; font-size: 14px; }
}

/* Footer: social 40px */
.footer .social a { width: 40px; height: 40px; }
.footer .social svg { width: 18px; height: 18px; }

/* Segnaposto hero su mobile: fuori dal testo */
@media (max-width: 900px) { .hero2 .bg .ph { top: auto; bottom: 12px; right: 12px; max-width: 24ch; font-size: 11px; } }

/* Agenda mock: contrasto */
.ui-agenda .c.ev { background: #3f6cf0; }

/* Form: stato di invio e validazione */
.btn[aria-busy="true"] { opacity: .75; cursor: progress; }
.field.valid input, .field.valid select { border-color: var(--ok); }
.field .error { color: var(--err); }

/* Micro-interazioni: reveal leggero (visibile a riposo, animato solo all'ingresso) */
@keyframes rise { from { opacity: .35; transform: translateY(10px); } to { opacity: 1; transform: none; } }
[data-reveal].in { animation: rise .5s cubic-bezier(.2,.7,.2,1) both; }
.btn { transition: background .15s, color .15s, border-color .15s, transform .15s; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
@media (prefers-reduced-motion: reduce) { [data-reveal].in { animation: none; } .btn:hover { transform: none; } }
.footer-legal a { text-decoration: underline; text-underline-offset: 2px; }

/* ===================== V2.3: mega menu Soluzioni ===================== */
.nav > li.has-mega { position: static; }
.mega-panel { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--bg); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); box-shadow: 0 24px 40px -24px rgba(4,6,10,.25); z-index: 60; }
.nav li.open .mega-panel { display: block; }
@media (hover: hover) and (min-width: 901px) { .nav > li.has-mega:hover .mega-panel, .nav > li.has-mega:focus-within .mega-panel { display: block; } }
.mega { display: grid; grid-template-columns: 1.1fr 1.1fr .9fr 1fr; gap: 28px; padding-block: 26px 30px; }
.mtitle { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px 8px; font-weight: 500; }
.mcol a { display: flex; gap: 10px; align-items: flex-start; padding: 8px; border-radius: 8px; color: var(--text); text-decoration: none; }
.mcol a:hover, .mcol a:focus-visible { background: var(--surface); color: var(--text); text-decoration: none; }
.mcol a strong { display: block; color: var(--ink); font-size: 15px; line-height: 1.3; }
.mcol a span span { display: block; color: var(--muted); font-size: 13px; }
.mic { width: 32px; height: 32px; border-radius: 8px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; flex: 0 0 auto; }
.mic svg { width: 16px; height: 16px; }
.mbadge { display: inline-block; font-family: var(--font-mono); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; border: 1px solid var(--line); border-radius: 5px; padding: 1px 6px; margin-left: 6px; color: var(--muted); vertical-align: middle; }
.mfeat { background: var(--accent-soft); border-radius: 12px; padding: 18px 20px; display: grid; gap: 8px; align-content: start; }
.mfeat .kicker { margin: 0; }
.mfeat b { font-size: 17px; color: var(--ink); line-height: 1.3; }
.mfeat p { margin: 0 0 4px; font-size: 14px; color: var(--text); }
.mfeat .btn { justify-self: start; }
@media (max-width: 900px) {
  .header.menu-open .mega-panel { position: static; border: 0; box-shadow: none; padding-left: 6px; }
  .header.menu-open .nav li.open .mega-panel { display: block; }
  .header.menu-open .mega { display: grid; grid-template-columns: 1fr; gap: 14px; padding: 4px 0 10px; }
  .header.menu-open .mfeat { display: none; }
  .header.menu-open .mtitle { margin-top: 6px; }
  .header.menu-open .mcol a { width: auto; padding: 8px; }
}
/* Mega menu: neutralizza le regole generiche di .nav sui link interni */
.nav .mega-panel { align-self: stretch; }
.nav .mega { align-items: start; }
.nav .mega-panel a, .nav .mega-panel li a { text-decoration: none; padding: 8px; border-radius: 8px; color: var(--text); background: none; display: flex; align-items: flex-start; gap: 10px; width: auto; justify-content: flex-start; font-weight: 500; }
.nav .mega-panel a:hover, .nav .mega-panel a:focus-visible { background: var(--surface); color: var(--text); }
.nav .mega-panel a strong { font-weight: 700; }
.nav .mega-panel a.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 22px; border-radius: 10px; font-weight: 700; }
.nav .mega-panel a.btn-primary { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.nav .mega-panel a.btn-primary:hover { background: var(--accent-ink); border-color: var(--accent-ink); }
.nav .mega-panel .mtitle { margin-top: 0; }
.nav .mega-panel .mfeat .btn .arr { width: 16px; height: 16px; }
@media (max-width: 900px) { .header.menu-open .nav .mega-panel a { padding: 8px; } }
.nav > li > a { text-decoration: none; }
.nav .mega { grid-template-columns: 1fr 1.25fr 1fr 1fr; gap: 20px; }
.nav .mega-panel a strong { font-size: 14.5px; }
.nav .mega-panel a span span { font-size: 12.5px; }
.mfeat { padding: 16px 18px; }
.nav .mega { grid-template-columns: 1fr 2fr 1fr 1.1fr; gap: 22px; }
.mgrid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 8px; }
@media (max-width: 900px) { .header.menu-open .mgrid2 { grid-template-columns: 1fr; } }
.header .mega-panel .container.mega { display: grid; min-height: 0; gap: 22px; align-items: start; }
@media (max-width: 900px) { .header.menu-open .nav .mega-panel a { justify-content: flex-start; text-align: left; width: 100%; } .header.menu-open .nav .mega-panel a > span { flex: 1; } }
@media (max-width: 900px) { .header.menu-open .nav .mega-panel a > span.mic { flex: 0 0 32px; width: 32px; } }
.mcol a span span.mbadge, .nav .mega-panel .mbadge { display: inline-block; width: auto; color: var(--muted); font-size: 10px; }
/* Mega menu: descrizioni su una riga */
.header .mega-panel .container.mega { grid-template-columns: auto 1.6fr auto minmax(220px, .9fr); gap: 26px; }
.nav .mega-panel .mcol a strong, .nav .mega-panel .mcol a span span { white-space: nowrap; }
.nav .mega-panel .mcol a strong { font-size: 15px; }
.nav .mega-panel .mcol a span span { font-size: 13px; }
.mgrid2 { gap: 0 14px; }
@media (max-width: 1100px) { .nav .mega-panel .mgrid2 { grid-template-columns: 1fr; } .header .mega-panel .container.mega { grid-template-columns: auto 1fr auto minmax(200px, .9fr); } }
@media (max-width: 900px) { .nav .mega-panel .mcol a strong, .nav .mega-panel .mcol a span span { white-space: normal; } }
.header .mega-panel .container.mega { grid-template-columns: auto 1.5fr auto minmax(200px, .8fr); gap: 22px; }
.nav .mega-panel .mfeat { padding: 16px; }
.nav .mega-panel .mfeat b { font-size: 16px; }
@media (max-width: 1180px) { .nav .mega-panel .mgrid2 { grid-template-columns: 1fr; } }
.header .mega-panel .container.mega { gap: 16px; }
.nav .mega-panel .mcol a { gap: 8px; padding: 7px 6px; }
.nav .mega-panel .mic { width: 28px; height: 28px; } .nav .mega-panel .mic svg { width: 15px; height: 15px; }
.nav .mega-panel .mcol a strong { font-size: 14.5px; }
.nav .mega-panel .mcol a span span { font-size: 12.5px; }
.mgrid2 { gap: 0 10px; }
.header .mega-panel .container.mega { grid-template-columns: auto 1.5fr auto minmax(190px, .8fr); }
@media (max-width: 1000px) { .nav .mega-panel .mcol a strong, .nav .mega-panel .mcol a span span { white-space: normal; } .header .mega-panel .container.mega { grid-template-columns: 1fr 1fr 1fr minmax(180px, .8fr); } }
.nav .mega-panel .mfeat a.btn { width: 100%; justify-self: stretch; padding: 12px 14px; font-size: 15px; }
.nav .mega-panel .mfeat .kicker { font-size: 12px; }

/* Aggiunte per il mockup v2 (struttura decisa con Simone il 01/10/2026) */
.prod-strip{display:grid;grid-template-columns:repeat(5,1fr);gap:12px;margin-top:28px;max-width:620px}
.prod-chip{display:flex;flex-direction:column;align-items:flex-start;gap:6px;background:#fff;border:1px solid #dde3ee;border-radius:14px;padding:12px 14px;text-decoration:none;color:#0a1020;box-shadow:0 2px 6px rgba(10,32,90,.05)}
.prod-chip b{font-size:14px}.prod-chip small{font-size:11.5px;color:#5b6475}
.prod-chip .dot{width:28px;height:28px;border-radius:50%;background:#0E3EC8;color:#fff;display:flex;align-items:center;justify-content:center}
.prod-chip .dot svg{width:16px;height:16px}
.prod-chip.soon .dot{background:#5E87FC}
.soon-tag{font-family:'Spline Sans Mono',monospace;font-size:9.5px;letter-spacing:.12em;text-transform:uppercase;color:#0E3EC8;background:#e8eeff;border-radius:99px;padding:2px 7px}
.actions3{display:flex;flex-wrap:wrap;gap:12px;align-items:center;margin-top:26px}
.trustbar{background:#04060a;color:#eef2f7}
.trustbar .container{display:grid;grid-template-columns:repeat(4,1fr);gap:24px;padding-block:28px}
.trustbar b{display:block;font-size:26px;letter-spacing:-.02em}.trustbar span{font-size:13px;color:#9fb0c8}
.prod-row{display:grid;grid-template-columns:1.05fr 1fr;gap:56px;align-items:center;padding-block:56px;border-top:1px solid #e5e9f2}
.prod-row:nth-child(even) .prod-txt{order:2}
.prod-txt .from{display:inline-flex;align-items:baseline;gap:6px;margin:14px 0 18px;background:#e8eeff;color:#0E3EC8;border-radius:12px;padding:8px 14px;font-weight:600}
.prod-txt .from b{font-size:24px}
.prod-txt ul{list-style:none;padding:0;margin:14px 0 0}.prod-txt li{display:flex;gap:10px;margin-bottom:10px;font-size:15px}
.prod-txt li::before{content:'';flex:none;width:18px;height:18px;margin-top:2px;border-radius:50%;background:#e3f6ec url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2312915a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><path d='M20 6 9 17l-5-5'/></svg>") center/12px no-repeat}
.shot{border-radius:16px;overflow:hidden;box-shadow:0 24px 50px rgba(10,32,90,.18);border:8px solid #0d0e11;background:#fff}
.shot img{display:block;width:100%}
.why{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}
.why .card{background:#fff;border:1px solid #dde3ee;border-radius:16px;padding:22px}
.why .card h3{font-size:16px;margin:10px 0 6px}.why .card p{font-size:14px;color:#4a5568;margin:0}
.why .vs{display:block;font-size:12.5px;color:#8a94a6;margin-top:10px;text-decoration:line-through}
.case-num{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:16px 0}
.case-num div{background:#f3f6fb;border-radius:12px;padding:12px}.case-num b{display:block;font-size:20px;color:#0E3EC8}.case-num span{font-size:12px;color:#5b6475}
.steps5{display:grid;grid-template-columns:repeat(5,1fr);gap:14px;counter-reset:s}
.steps5 div{background:#fff;border:1px solid #dde3ee;border-radius:14px;padding:18px;position:relative}
.steps5 div::before{counter-increment:s;content:counter(s);display:flex;width:30px;height:30px;border-radius:50%;background:#0E3EC8;color:#fff;align-items:center;justify-content:center;font-weight:700;margin-bottom:10px}
.steps5 b{display:block;font-size:15px}.steps5 span{font-size:13px;color:#5b6475}
.resell{background:linear-gradient(100deg,#0A2E96 0%,#0E3EC8 42%,#5E87FC 100%);color:#fff;border-radius:22px;padding:34px 40px;display:flex;justify-content:space-between;align-items:center;gap:24px}
.resell h3{font-size:24px;margin:0 0 6px;color:#fff}.resell p{margin:0;color:#dfe7ff}
.wa{position:fixed;right:22px;bottom:22px;width:58px;height:58px;border-radius:50%;background:#25D366;display:flex;align-items:center;justify-content:center;box-shadow:0 10px 24px rgba(0,0,0,.25);z-index:50}
.wa svg{width:30px;height:30px}
.langs{font-family:'Spline Sans Mono',monospace;font-size:12px;letter-spacing:.08em;color:#4a5568;margin-right:8px}
/* contatti */
.choose{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin:26px 0 30px}
.choose a{display:block;border:2px solid #dde3ee;border-radius:16px;padding:18px 20px;text-decoration:none;color:#0a1020;background:#fff}
.choose a.on{border-color:#0E3EC8;background:#f3f6ff;box-shadow:0 8px 20px rgba(14,62,200,.12)}
.choose b{display:block;font-size:16px;margin:8px 0 4px}.choose span{font-size:13px;color:#5b6475}
.cal{display:grid;grid-template-columns:1fr 1.2fr;gap:0;border:1px solid #dde3ee;border-radius:18px;overflow:hidden;background:#fff}
.cal .l{padding:26px;border-right:1px solid #e5e9f2}.cal .r{padding:26px}
.cal .l h3{margin:4px 0 8px}.cal .l p{font-size:14px;color:#4a5568}
.cal .meta{display:flex;flex-direction:column;gap:8px;margin-top:14px;font-size:14px;color:#4a5568}
.month{display:grid;grid-template-columns:repeat(7,1fr);gap:6px;text-align:center;font-size:13px;margin:14px 0}
.month span{padding:9px 0;border-radius:10px}.month .h{font-family:'Spline Sans Mono',monospace;font-size:10.5px;color:#8a94a6}
.month .av{background:#e8eeff;color:#0E3EC8;font-weight:600}.month .sel{background:#0E3EC8;color:#fff;font-weight:700}.month .no{color:#c0c7d4}
.slots{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.slots span{border:1px solid #0E3EC8;color:#0E3EC8;border-radius:10px;padding:9px 0;text-align:center;font-weight:600;font-size:14px}
.slots span.on{background:#0E3EC8;color:#fff}
.calc{display:grid;grid-template-columns:1.25fr 1fr;gap:24px;align-items:start}
.calc .box{background:#fff;border:1px solid #dde3ee;border-radius:18px;padding:24px}
.calc label{display:block;font-weight:600;font-size:14px;margin:14px 0 8px}
.seg{display:flex;flex-wrap:wrap;gap:8px}.seg span{border:1px solid #dde3ee;border-radius:99px;padding:8px 14px;font-size:14px;background:#fff}
.seg span.on{background:#0E3EC8;border-color:#0E3EC8;color:#fff;font-weight:600}
.stepper{display:flex;align-items:center;gap:12px}.stepper i{width:34px;height:34px;border-radius:10px;border:1px solid #dde3ee;display:flex;align-items:center;justify-content:center;font-style:normal;font-weight:700}
.stepper b{font-size:18px;min-width:24px;text-align:center}
.total{background:#04060a;color:#fff;border-radius:18px;padding:26px}
.total .et{font-family:'Spline Sans Mono',monospace;font-size:11px;letter-spacing:.16em;text-transform:uppercase;color:#9fb0c8}
.total .big{font-size:44px;font-weight:700;letter-spacing:-.02em;margin:6px 0 2px}.total small{color:#9fb0c8}
.total .rows div{display:flex;justify-content:space-between;font-size:14px;padding:7px 0;border-bottom:1px dashed rgba(255,255,255,.15);color:#c6cfde}
.total .btn{margin-top:12px}
.note{font-size:12.5px;color:#8a94a6;margin-top:10px}
.header .nav a,.header .nav button{white-space:nowrap}
.header .nav{gap:4px}
.langs{white-space:nowrap;font-size:11px}
.header .logo-svg{height:30px!important;width:auto!important;min-width:150px}

/* ---- Sito V1 (01/10/2026): pezzi nuovi e versioni per telefono ---- */
.skip{position:absolute;left:-9999px;top:0;background:var(--accent);color:#fff;padding:10px 14px;z-index:100}
.skip:focus{left:12px;top:12px}
.crumb{font-size:13px;color:var(--muted);margin:0 0 14px}.crumb a{color:var(--muted)}
.h1-page{font-size:clamp(32px,5vw,46px);margin:8px 0 10px}
.hero2 .kicker+.soon-tag{margin-left:6px;vertical-align:middle}
.hero2 .from{margin-top:0}
.ul-reset{list-style:none;padding:0;margin:14px 0 18px}
.ul-reset li{display:flex;gap:10px;margin-bottom:8px;font-size:14.5px}
.ul-reset li::before{content:'';flex:none;width:16px;height:16px;margin-top:3px;border-radius:50%;background:#e3f6ec url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2312915a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><path d='M20 6 9 17l-5-5'/></svg>") center/11px no-repeat}
mark.tbc .ul-reset{margin:6px 0}
.plans4{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;align-items:stretch}
.plans4 .plan{display:flex;flex-direction:column;background:#fff;border:1px solid var(--line);border-radius:16px;padding:22px}
.plans4 .plan h3{font-size:17px;margin:6px 0 8px;min-height:2.6em}
.plans4 .plan .btn{margin-top:auto}
.plans4 .plan.featured{border:2px solid var(--accent);box-shadow:0 14px 34px rgba(14,62,200,.14)}
.note.center{text-align:center;margin-top:18px}
.cards-fn .card{background:#fff;border:1px solid var(--line);border-radius:14px;padding:20px}
.cards-fn .card h3{font-size:16px;margin:0 0 6px}.cards-fn .card p{font-size:14px;color:var(--muted);margin:0}
.grid-3 .card,.grid-4 .card{background:#fff;border:1px solid var(--line);border-radius:14px;padding:20px}
.grid-3 .card h3,.grid-4 .card h3{font-size:16px;margin:0 0 6px}.grid-3 .card p,.grid-4 .card p{font-size:14.5px;margin:0;color:var(--text)}
.gallery{display:grid;grid-template-columns:1fr 1fr;gap:26px}
.gallery figure{margin:0}.gallery figcaption{font-size:14px;color:var(--muted);margin-top:12px}.gallery figcaption b{display:block;color:var(--ink);font-size:15.5px;margin-bottom:2px}
.g2{display:grid;grid-template-columns:1fr 1fr;gap:20px}
.card.case{background:#fff;border:1px solid var(--line);border-radius:16px;padding:24px}
.cta-pair{display:flex;gap:10px;flex-wrap:wrap}
.btn-outline-white{background:transparent;color:#fff;border-color:rgba(255,255,255,.55)}
.btn-outline-white:hover{background:rgba(255,255,255,.1);color:#fff;border-color:#fff}
.btn-on-dark{background:#5E87FC;border-color:#5E87FC;margin-top:10px}
.steps4{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;counter-reset:s}
.steps4 div{background:#fff;border:1px solid var(--line);border-radius:14px;padding:20px}
.steps4 div::before{counter-increment:s;content:counter(s);display:flex;width:32px;height:32px;border-radius:50%;background:var(--accent);color:#fff;align-items:center;justify-content:center;font-weight:700;margin-bottom:12px}
.steps4 b{display:block;font-size:16px;margin-bottom:4px}.steps4 span{font-size:14px;color:var(--muted)}
.misura-art{display:flex;align-items:center;justify-content:center;aspect-ratio:4/3;border-radius:22px;background:linear-gradient(135deg,#0A2E96,#0E3EC8 50%,#5E87FC);color:#fff}
.misura-art svg{width:34%;height:auto;opacity:.95}
.side-card{background:#fff;border:1px solid var(--line);border-radius:16px;padding:20px;margin-bottom:14px}
.side-card h3{font-size:16px;margin:0 0 8px}.side-card p{margin:0;font-size:14.5px}
.form-card{background:#fff;border:1px solid var(--line);border-radius:18px;padding:24px}
.form-intro{font-size:14.5px;color:var(--muted);margin:0 0 16px}
.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.field{display:flex;flex-direction:column;gap:6px}.field.full{grid-column:1/-1}
.field label,.field .lbl{font-weight:600;font-size:14px;color:var(--ink)}
.field input,.field select,.field textarea{font:inherit;font-size:15px;padding:11px 12px;border:1px solid var(--line);border-radius:10px;background:#fff;color:var(--ink);width:100%}
.field input:focus,.field select:focus,.field textarea:focus{outline:2px solid var(--accent-2);outline-offset:1px;border-color:var(--accent)}
.field [aria-invalid=true]{border-color:var(--err)}
.req{color:var(--err)}.opt{font-weight:400;color:var(--muted);font-size:12.5px}
.f-check{display:flex!important;gap:10px;align-items:flex-start;font-weight:400!important;font-size:13.5px!important;color:var(--text)!important}
.f-check input{width:18px!important;height:18px;margin-top:2px;flex:none}
.f-status{margin:12px 0 0;font-size:14.5px;min-height:1.2em}
.f-status[data-ok]{color:var(--ok);font-weight:600}.f-status[data-err]{color:var(--err);font-weight:600}
.lead-form .btn{margin-top:18px}
.seg button,.seg label,.seg span{font:inherit;border:1px solid var(--line);border-radius:99px;padding:8px 14px;font-size:14px;background:#fff;cursor:pointer;color:var(--ink)}
.seg button.on,.seg label:has(input:checked){background:var(--accent);border-color:var(--accent);color:#fff;font-weight:600}
.seg-radio label{position:relative}
.seg-radio input{position:absolute;left:0;top:0;width:1px;height:1px;opacity:0;pointer-events:none}
.stepper button{width:36px;height:36px;border-radius:10px;border:1px solid var(--line);background:#fff;font:inherit;font-weight:700;font-size:18px;cursor:pointer}
.stepper .note{margin:0}
.calc .box label{display:block;font-weight:600;font-size:14px;margin:16px 0 8px}
.calc .box label:first-child{margin-top:0}
.choose a{cursor:pointer}
.contact2{display:grid;grid-template-columns:1.35fr 1fr;gap:28px;align-items:start}
.after{list-style:none;padding:0;margin:0;counter-reset:after}
.after li{display:flex;gap:12px;align-items:flex-start;margin-bottom:10px;font-size:14.5px}
.device-caption{font-size:12px;color:var(--muted);text-align:right;margin:10px 0 0}
.nav .has-drop{position:relative}
.dropdown a strong{font-size:15px}
.footer2{background:#04060a;color:#c6cfde;margin-top:0}
.footer2 .container{padding-block:44px 28px}
.footer2 .logo{color:#fff}.footer2 .logo-svg{height:24px!important;min-width:0!important}
.f-cols{display:grid;grid-template-columns:1.4fr 1fr 1fr 1fr;gap:28px}
.f-cols p{font-size:14px;color:#9fb0c8;margin:12px 0 0;max-width:30ch}
.f-cols h4{font-family:var(--font-mono);font-size:11.5px;letter-spacing:.12em;text-transform:uppercase;color:#fff;margin:0 0 12px;font-weight:500}
.f-cols a{display:block;color:#c6cfde;font-size:14px;margin-bottom:8px;text-decoration:none}
.f-cols a:hover{color:#fff}
.f-legal{display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap;border-top:1px solid rgba(255,255,255,.12);margin-top:30px;padding-top:18px;font-size:12px;color:#8a94a6}
.f-legal a{color:#c6cfde}
.legal h2{font-size:20px;margin:28px 0 8px}.legal p{max-width:70ch}
.shot img{height:auto}
/* anteprima locale: i punti da confermare si vedono in giallo */
mark.tbc{background:var(--tbc);color:var(--tbc-ink);border-radius:3px;padding:0 3px}

@media (max-width:1000px){
  .plans4{grid-template-columns:1fr 1fr}
  .why,.steps5,.steps4,.grid-4{grid-template-columns:1fr 1fr}
  .f-cols{grid-template-columns:1fr 1fr}
}
@media (max-width:900px){
  .prod-row{grid-template-columns:1fr;gap:26px;padding-block:40px}
  .prod-row:nth-child(even) .prod-txt{order:0}
  .trustbar .container{grid-template-columns:1fr 1fr}
  .g2,.gallery,.contact2,.calc,.cal{grid-template-columns:1fr}
  .choose{grid-template-columns:1fr}
  .resell{flex-direction:column;align-items:flex-start;padding:26px}
  .prod-strip{grid-template-columns:repeat(3,1fr);max-width:none}
}
@media (max-width:600px){
  .plans4,.why,.steps5,.steps4,.grid-4,.grid-3,.form-grid,.f-cols{grid-template-columns:1fr}
  .prod-strip{grid-template-columns:1fr 1fr}
  .case-num{grid-template-columns:1fr 1fr 1fr;gap:8px}
  .total .big{font-size:36px}
  .actions3 .btn{width:100%}
}

/* ---------- Pagina gestionale (pp-): apertura centrata, punti forti, funzioni, un riquadro, prezzo */
.pp-hero { text-align: center; padding: clamp(40px, 6vw, 80px) 0 0; overflow: hidden; }
.pp-hero .crumb { margin-bottom: 18px; }
.pp-kicker { display: inline-block; font-family: var(--font-mono); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.pp-soon { display: block; width: max-content; margin: 0 auto 16px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); background: var(--accent-soft); padding: 5px 12px; border-radius: 99px; }
.pp-hero h1 { font-size: clamp(40px, 6.4vw, 88px); line-height: 1.02; letter-spacing: -.045em; max-width: 13em; margin: 0 auto .32em; }
.pp-hero .lead { margin: 0 auto 18px; max-width: 34em; font-size: clamp(18px, 1.8vw, 22px); }
.pp-price { color: var(--muted); margin-bottom: 26px; }
.pp-price b { font-family: var(--font-display); font-size: 22px; color: var(--ink); letter-spacing: -.02em; }
.pp-cta { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px 22px; margin-bottom: clamp(40px, 6vw, 72px); }
.pp-cta .btn { border-radius: 999px; padding-inline: 24px; }
.pp-link { font-weight: 500; text-decoration: none; }
.pp-link::after { content: "\00a0›"; }
.pp-link:hover { text-decoration: none; opacity: .8; }
.pp-vis { width: min(1100px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.pp-mac .scr { background: #0b0d12; border-radius: clamp(10px, 1.6vw, 20px) clamp(10px, 1.6vw, 20px) 0 0; padding: clamp(6px, 1.2vw, 14px) clamp(6px, 1.2vw, 14px) clamp(10px, 1.8vw, 20px); box-shadow: 0 40px 80px -30px rgba(4, 6, 10, .45); }
.pp-mac img { border-radius: 4px; width: 100%; height: auto; }
.pp-mac .base { height: clamp(8px, 1.4vw, 16px); margin-inline: -7%; border-radius: 0 0 50% 50% / 0 0 100% 100%; background: linear-gradient(#e4e8ee, #b7bec9); }
.pp-vis .tz-dev { position: relative; left: auto; top: auto; transform: none; opacity: 1; width: min(980px, 100% - 10px); margin-inline: auto; text-align: left; box-shadow: var(--anello), 0 40px 80px -30px rgba(4, 6, 10, .45); }
.pp-vis-cap { color: var(--muted); font-size: 13px; margin-top: 16px; }
.pp-sec { padding-block: clamp(72px, 10vw, 140px); }
.pp-sec.alt { background: var(--surface); }
.pp-head { text-align: center; max-width: 40em; margin: 0 auto clamp(36px, 5vw, 64px); }
.pp-head h2 { font-size: clamp(32px, 4.6vw, 60px); letter-spacing: -.04em; line-height: 1.05; }
.pp-head p { color: var(--muted); font-size: clamp(17px, 1.6vw, 20px); }
.pp-tre { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 4vw, 64px); }
.pp-tre > div { text-align: left; }
.pp-tre .ic { width: 52px; height: 52px; border-radius: 16px; background: var(--accent); color: #fff; display: grid; place-items: center; margin-bottom: 18px; }
.pp-tre .ic svg, .pp-fn .ic svg { width: 26px; height: 26px; }
.pp-tre h3 { font-size: clamp(22px, 2.2vw, 28px); letter-spacing: -.02em; margin-bottom: 8px; }
.pp-tre p { color: var(--muted); font-size: 17px; }
.pp-fn { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.pp-fn > div { background: var(--bg); border-radius: 20px; padding: 26px 24px; border: 1px solid var(--line); transition: transform .2s, box-shadow .2s; }
.pp-fn > div:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.pp-fn .ic { width: 46px; height: 46px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin-bottom: 18px; }
.pp-fn .ic svg { width: 22px; height: 22px; }
.pp-fn h3 { font-size: 18px; margin-bottom: 6px; }
.pp-fn p { color: var(--muted); font-size: 15px; line-height: 1.5; }
.pp-spot { background: #04060a; color: #c9d1dc; overflow: hidden; }
.pp-spot .container { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.pp-spot h2 { color: #eef2f7; font-size: clamp(32px, 4.4vw, 58px); letter-spacing: -.04em; line-height: 1.05; }
.pp-spot .pp-kicker { color: #86a4ff; }
.pp-spot p { color: #9aa5b6; font-size: clamp(17px, 1.6vw, 20px); max-width: 30em; }
.pp-spot .pp-link { color: #86a4ff; }
.pp-prezzo { display: grid; grid-template-columns: 1fr auto; gap: 24px 48px; align-items: center; background: var(--surface); border-radius: 28px; padding: clamp(28px, 4vw, 56px); }
.pp-prezzo .pp-kicker { margin-bottom: 8px; }
.pp-prezzo h2 { font-size: clamp(34px, 4.4vw, 56px); letter-spacing: -.04em; margin-bottom: 10px; }
.pp-prezzo p { color: var(--muted); max-width: 36em; margin: 0; }
.pp-prezzo .btns { display: flex; flex-direction: column; gap: 12px; min-width: 240px; }
.pp-prezzo .btn { border-radius: 999px; }
@media (max-width: 1000px) { .pp-fn { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 900px) { .pp-tre { grid-template-columns: 1fr; } .pp-spot .container { grid-template-columns: 1fr; } .pp-prezzo { grid-template-columns: 1fr; } .pp-prezzo .btns { min-width: 0; } }
@media (max-width: 600px) { .pp-fn { grid-template-columns: 1fr; } .pp-fn > div { padding: 22px 20px; } }

/* ---------- Tema: chiaro per tutti, scuro solo se chi guarda lo sceglie dal pulsante in testata */
.tema-btn { width: 40px; height: 40px; flex: 0 0 auto; border-radius: 50%; border: 1px solid var(--line); background: var(--bg); color: var(--ink);
  display: inline-grid; place-items: center; cursor: pointer; transition: background .2s, border-color .2s; }
.tema-btn:hover { background: var(--surface); border-color: var(--steel); }
.tema-btn svg { width: 18px; height: 18px; }
.tema-btn .sole, [data-theme="dark"] .tema-btn .luna { display: none; }
[data-theme="dark"] .tema-btn .sole { display: block; }
/* I pezzi nati con i colori fissati a mano, ripassati sui token nel tema scuro */
[data-theme="dark"] :is(.prod-chip, .why .card, .steps5 div, .steps4 div, .choose a, .cal, .calc .box, .plans4 .plan, .cards-fn .card, .grid-3 .card, .grid-4 .card,
  .card.case, .side-card, .form-card, .seg button, .seg label, .seg span, .stepper button, .field input, .field select, .field textarea) {
  background: var(--surface); border-color: var(--line); color: var(--text); }
[data-theme="dark"] :is(.prod-chip b, .choose b, .why .card h3, .steps5 b, .steps4 b) { color: var(--ink); }
[data-theme="dark"] :is(.prod-chip small, .why .card p, .steps5 span, .steps4 span, .choose span, .cal .l p, .cal .meta, .case-num span) { color: var(--muted); }
[data-theme="dark"] .choose a.on { background: var(--accent-soft); border-color: var(--accent); }
[data-theme="dark"] :is(.seg button.on, .seg label:has(input:checked), .seg span.on) { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
[data-theme="dark"] :is(.soon-tag, .prod-txt .from, .month .av) { background: var(--accent-soft); color: var(--accent-ink); }
[data-theme="dark"] .case-num div { background: var(--surface-2); }
[data-theme="dark"] :is(.prod-row, .cal .l) { border-color: var(--line); }
[data-theme="dark"] :is(.footer2, .pz-sum, .total) { box-shadow: inset 0 0 0 1px var(--line); }
[data-theme="dark"] .footer2 { box-shadow: none; border-top: 1px solid var(--line); }
[data-theme="dark"] .ap-tile.dark { background: #0d1219; }
[data-theme="dark"] :is(.ap-dark, .pp-spot) { background: #080b11; }

/* ---------- «Con gli altri / Con Kherno»: le domande che con Kherno non ci si fa più (pagine gestionale) */
.pp-vs-sec { background: #04060a; color: #c9d1dc; }
[data-theme="dark"] .pp-vs-sec { background: #080b11; }
.pp-vs-sec .pp-head h2 { color: #eef2f7; }
.pp-vs-sec .pp-head .pp-kicker { color: #86a4ff; }
.pp-vs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.vs-card { border-radius: 22px; background: #0d1219; border: 1px solid #1c2430; padding: clamp(22px, 2.6vw, 32px); display: grid; gap: 18px; align-content: start; }
.vs-card p { margin: 0; }
.vs-card .lbl { display: block; font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 6px; }
.vs-q { color: #8a94a6; font-size: clamp(17px, 1.6vw, 20px); }
.vs-q .lbl { color: #5d6879; }
.vs-a { color: #c9d1dc; font-size: clamp(17px, 1.6vw, 19px); line-height: 1.45; padding-top: 18px; border-top: 1px dashed #263041; }
.vs-a .lbl { color: #86a4ff; }
.vs-a b { display: block; color: #eef2f7; font-family: var(--font-display); font-size: clamp(26px, 2.8vw, 36px); letter-spacing: -.03em; line-height: 1.1; margin-bottom: 6px; }
@media (max-width: 800px) { .pp-vs { grid-template-columns: 1fr; } }

/* ---------- Trova un rivenditore (home e pagina Rivenditori): contorno dell'Italia Natural Earth 1:10m, pubblico dominio */
.riv-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.riv-cerca { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0 8px; }
.riv-cerca input { flex: 1 1 220px; min-width: 0; font: inherit; font-size: 16px; padding: 12px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); }
.riv-cerca input:focus { outline: 2px solid var(--accent-2); outline-offset: 1px; }
.riv-cerca .btn { border-radius: 999px; display: inline-flex; align-items: center; gap: 8px; }
.riv-cerca .btn svg { width: 18px; height: 18px; }
.riv-stato { min-height: 1.4em; margin: 0 0 8px; font-size: 14px; color: var(--muted); }
.riv-lista { list-style: none; margin: 0; padding: 4px; display: grid; gap: 6px; max-height: 420px; overflow-y: auto; border-radius: 18px; }
.riv-item { width: 100%; display: flex; align-items: center; gap: 14px; text-align: left; font: inherit; color: var(--text); background: var(--bg); border: 1px solid var(--line);
  border-radius: 14px; padding: 12px 14px; cursor: pointer; transition: border-color .2s, box-shadow .2s; }
.riv-item:hover { border-color: var(--accent-2); }
.riv-item.on { border-color: var(--accent); box-shadow: 0 10px 24px -14px rgba(14, 62, 200, .45); }
.riv-txt { flex: 1; min-width: 0; display: grid; }
.riv-txt b { color: var(--ink); font-weight: 600; }
.riv-txt small { color: var(--muted); font-size: 13.5px; }
.riv-km { font-family: var(--font-mono); font-size: 13px; color: var(--accent); white-space: nowrap; }
.riv-logo { flex: 0 0 auto; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; overflow: hidden; background: var(--accent); color: #fff;
  font-family: var(--font-display); font-weight: 700; font-size: 15px; box-shadow: 0 0 0 3px var(--bg); }
.riv-logo img { width: 100%; height: 100%; object-fit: cover; }
.riv-map { position: relative; width: min(430px, 100%); margin-inline: auto; aspect-ratio: 900 / 1066; }
.riv-map svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.riv-map path { fill: var(--accent-soft); stroke: var(--accent-2); stroke-width: 2; stroke-linejoin: round; }
/* confini delle regioni (ISTAT, via openpolis/geojson-italy): una linea leggera dentro la sagoma */
.riv-map path.riv-confini { fill: none; stroke-width: 1.1; opacity: .5; stroke-linecap: round; }
.riv-pin { position: absolute; transform: translate(-50%, -50%); padding: 0; border: 0; background: none; cursor: pointer; z-index: 1; }
.riv-pin .riv-logo { width: 30px; height: 30px; font-size: 12px; transition: transform .25s cubic-bezier(.2, .9, .3, 1.4); }
.riv-pin:hover .riv-logo, .riv-pin.on .riv-logo { transform: scale(1.25); }
.riv-pin.on { z-index: 3; }
.riv-pin.spento { opacity: .25; }
.riv-tip { position: absolute; left: 50%; bottom: calc(100% + 10px); transform: translateX(-50%); white-space: nowrap; background: var(--ink); color: var(--bg);
  font-size: 13px; padding: 7px 11px; border-radius: 10px; text-align: left; display: grid; opacity: 0; pointer-events: none; transition: opacity .2s; }
.riv-tip b { font-size: 13.5px; }
.riv-pin:hover .riv-tip, .riv-pin.on .riv-tip, .riv-pin:focus-visible .riv-tip { opacity: 1; }
.riv-pin:hover, .riv-pin:focus-visible { z-index: 4; }
@media (max-width: 900px) { .riv-grid { grid-template-columns: 1fr; } .riv-map { order: -1; width: min(420px, 100%); } .riv-lista { max-height: 340px; } }
.ap-riv, .riv-sec { background: var(--surface); overflow-x: clip; }
.ap-riv .ap-h2 { font-size: clamp(34px, 4.4vw, 60px); }
.riv-sec { padding-block: clamp(56px, 8vw, 110px); }
.riv-h2 { font-size: clamp(34px, 4.4vw, 60px); letter-spacing: -.04em; line-height: 1.04; margin-bottom: .35em; }
.grad { background: linear-gradient(100deg, var(--accent) 0%, var(--accent-2) 55%, #afc5ff 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.riv-sec .lead { max-width: 32em; }

/* ---------- Galleria di schermate vere (pagina Food): fila scorrevole con frecce */
.pp-rail { display: flex; gap: clamp(14px, 2vw, 24px); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding: 8px max(var(--gutter), (100% - var(--container)) / 2 + var(--gutter)) 24px; scroll-padding-inline: max(var(--gutter), (100% - var(--container)) / 2 + var(--gutter)); }
.pp-rail::-webkit-scrollbar { display: none; }
.pp-rail figure { flex: 0 0 min(80vw, 820px); scroll-snap-align: start; margin: 0; }
.pp-rail .frame { border-radius: clamp(12px, 1.6vw, 22px); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); background: var(--surface); }
.pp-rail img { width: 100%; height: auto; display: block; }
.pp-rail figcaption { margin-top: 14px; color: var(--muted); font-size: clamp(15px, 1.4vw, 17px); max-width: 32em; }
.pp-rail figcaption b { color: var(--ink); font-weight: 600; }
.pp-rail-nav { display: flex; justify-content: flex-end; gap: 12px; }
.pp-rail-nav button { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--surface-2); color: var(--ink); cursor: pointer; display: grid; place-items: center; }
.pp-rail-nav button:disabled { opacity: .35; cursor: default; }
.pp-rail-nav svg { width: 18px; height: 18px; }

/* ---------- numeri grandi (Chi siamo) */
.pp-num { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(24px, 4vw, 56px); }
.pp-num b { display: block; white-space: nowrap; font-family: var(--font-display); font-size: clamp(44px, 5vw, 80px); letter-spacing: -.05em; line-height: 1; margin-bottom: 10px; }
.pp-num > div > span { color: var(--muted); font-size: 17px; }
.pp-num mark.tbc { -webkit-text-fill-color: var(--tbc-ink); }
@media (max-width: 900px) { .pp-num { grid-template-columns: 1fr 1fr; } }

/* ---------- Racconto scorrendo (.st): home e pagine dei gestionali. Il palco resta fermo e le scene avanzano con lo scorrimento.
   Senza JavaScript o con meno movimento le scene stanno una sotto l'altra, già complete. */
.st-head { padding-top: clamp(80px, 12vw, 160px); padding-bottom: clamp(16px, 2vw, 32px); }
.st-nav { display: none; }
.st-blocco { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(28px, 4vw, 72px); align-items: center;
  width: min(var(--container), 100%); margin-inline: auto; padding: clamp(32px, 5vw, 64px) var(--gutter); }
.st-tag { display: inline-block; font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); background: var(--accent-soft); padding: 4px 10px; border-radius: 99px; margin-bottom: 14px; }
.st-t h3 { font-size: clamp(38px, 5vw, 68px); letter-spacing: -.045em; line-height: 1; margin-bottom: 14px; }
.st-slogan { font-size: clamp(19px, 1.9vw, 24px); color: var(--text); margin-bottom: 8px; max-width: 20em; }
.st-prezzo { color: var(--muted); font-size: 15px; margin-bottom: 22px; }
.st-links { justify-content: flex-start; }
.st-quadri { display: grid; gap: 40px; justify-items: center; }
.st-q { margin: 0; display: grid; justify-items: center; gap: 16px; width: 100%; }
.st-q .tz-dev { position: relative; left: auto; top: auto; transform: none; opacity: 1; margin-inline: auto; box-shadow: var(--anello), 0 40px 80px -30px rgba(14, 62, 200, .45); }
.st-q .tz-tab { width: min(100%, 700px); }
.st-q .tz-phone { width: min(290px, 70vw); }
.st-cap { color: var(--muted); font-size: 15px; text-align: center; max-width: 30em; }
.st .st-via.via { opacity: .3; }
.st:not(.vivo) .st-t { position: sticky; top: 110px; align-self: start; }
.st-foot { padding-block: clamp(24px, 3vw, 40px) clamp(64px, 8vw, 120px); }
.st-foot .ap-note { margin-top: 14px; }
/* modalità viva: sezione alta, palco fermo, blocchi e quadri che si alternano */
.st.vivo .st-track { position: relative; height: calc(var(--n) * 72vh + 100vh); }
.st.vivo .st-sticky { position: sticky; top: 72px; height: calc(100vh - 72px); display: grid; grid-template-rows: auto 1fr; overflow: hidden; }
.st.vivo .st-nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; padding: 14px var(--gutter) 0; }
.st-nav button { font: inherit; font-size: 14px; font-weight: 600; color: var(--muted); background: none; border: 1px solid var(--line); border-radius: 99px; padding: 7px 16px; cursor: pointer; transition: background .25s, color .25s, border-color .25s; }
.st-nav button.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.st.vivo .st-palco { position: relative; min-height: 0; }
.st.vivo .st-blocco { position: absolute; inset: 0; left: 50%; transform: translateX(-50%); padding-block: 12px 24px; opacity: 0; visibility: hidden; transition: opacity .45s ease, visibility .45s; }
.st.vivo .st-blocco.on { opacity: 1; visibility: visible; }
.st.vivo .st-quadri { position: relative; height: 100%; display: block; }
.st.vivo .st-q { position: absolute; inset: 0; align-content: center; opacity: 0; transform: translateY(26px) scale(.97); transition: opacity .45s ease, transform .6s cubic-bezier(.2, .7, .2, 1); }
.st.vivo .st-q.on { opacity: 1; transform: none; }
.st.vivo .st-q .tz-tab { width: min(100%, 700px, (100vh - 290px) * 1.5); }
.st.vivo .st-q .tz-phone { width: min(290px, (100vh - 300px) * .46); }
@media (max-width: 900px) {
  .st-blocco { grid-template-columns: 1fr; text-align: left; gap: 22px; }
  .st.vivo .st-blocco { grid-template-rows: auto 1fr; align-items: start; padding-block: 12px 16px; }
  .st.vivo .st-t h3 { font-size: 32px; margin-bottom: 6px; }
  .st.vivo .st-slogan { font-size: 17px; margin-bottom: 2px; }
  .st.vivo .st-prezzo { font-size: 13px; margin-bottom: 8px; }
  .st.vivo .st-tag { margin-bottom: 6px; }
  .st.vivo .st-cap { font-size: 13px; }
  .st.vivo .st-q { gap: 10px; }
  .st.vivo .st-q .tz-tab { width: min(88vw, (100svh - 420px) * .75); }
  .st.vivo .st-q .tz-phone { width: min(62vw, (100svh - 430px) * .46); }
  .st-nav button { font-size: 13px; padding: 6px 12px; }
}


/* ---------- Animazioni delle pagine dei gestionali (sito.js): comparse, dispositivo che si raddrizza, testo che si accende, numeri che contano */
.js-anim .cmp { opacity: 0; transform: translateY(32px); transition: opacity .8s ease, transform .9s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--d, 0s); }
.js-anim .cmp.on { opacity: 1; transform: none; }
.an-zoom { --p: 1; perspective: 1800px; }
.an-zoom > * { transform-origin: 50% 100%; transform: rotateX(calc((1 - var(--p)) * 22deg)) scale(calc(.84 + var(--p) * .16)); transition: transform .1s linear; }
.an-par { padding-block: clamp(80px, 12vw, 170px); }
.an-par p { font-family: var(--font-display); font-weight: 700; font-size: clamp(30px, 4.4vw, 60px); line-height: 1.12; letter-spacing: -.035em; color: var(--ink); max-width: 22em; margin: 0 auto; text-align: center; }
.js-anim .an-par .w { opacity: .16; transition: opacity .3s; }
.js-anim .an-par .w.on { opacity: 1; }
.st.st-prod .st-t h3 { font-size: clamp(30px, 3.8vw, 54px); }
.st.st-prod .st-head { text-align: center; }

/* ---------- Testata: tra 1101 e 1260 px le voci si stringono; sotto i 1100 px si passa al menu a scomparsa, come sul telefono
   (con Premioo e il pulsante del tema, a 1000-1100 px «Prenota una demo» usciva dallo schermo) */
@media (min-width: 1101px) and (max-width: 1260px) {
  .header .container { gap: 14px; }
  .nav a, .nav button.nav-btn { padding-inline: 9px; font-size: 15px; }
  .header .logo-svg { min-width: 128px !important; height: 26px !important; }
  .header-cta { padding-inline: 16px; }
}
@media (max-width: 1100px) {
  .nav, .header-cta, .header .header-cta { display: none; }
  .burger { display: inline-flex; }
  .header-right { margin-left: auto; }
  .header-right .burger { margin-left: 0; }
  .header.menu-open .nav {
    display: flex; flex-direction: column; align-items: stretch; gap: 2px;
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 12px var(--gutter) 20px; margin: 0; box-shadow: var(--shadow);
  }
  .header.menu-open .nav a, .header.menu-open .nav button.nav-btn { width: 100%; justify-content: space-between; padding: 14px; }
  .header.menu-open .dropdown { position: static; box-shadow: none; border: 0; padding: 0 0 6px 10px; min-width: 0; }
  .header.menu-open .nav li.open .dropdown { display: block; }
  .header.menu-open .nav .cta-mobile { display: block; margin-top: 10px; }
  .dropdown-grid { grid-template-columns: 1fr; }
}

/* ---------- Scritta del prodotto in apertura (pagine dei gestionali): monogram + KHERNO, poi il nome grande in blu.
   Entra una lettera alla volta, poi un riflesso la attraversa una volta. */
.pp-hero { padding-bottom: clamp(56px, 8vw, 110px); }
.wm { display: grid; justify-items: center; gap: clamp(4px, 1vw, 12px); margin: clamp(8px, 2vw, 24px) auto clamp(18px, 2.4vw, 30px); max-width: none; }
.wm-riga { display: inline-flex; align-items: center; gap: clamp(10px, 1.4vw, 18px); color: var(--ink); }
.wm-mono { width: clamp(30px, 3.4vw, 48px); height: auto; color: var(--accent); }
.wm-k { font-family: var(--font-display); font-weight: 900; font-size: clamp(30px, 3.6vw, 52px); letter-spacing: .04em; line-height: 1; }
.wm-nome { display: inline-flex; font-family: var(--font-display); font-weight: 900; font-size: min(clamp(84px, 17vw, 250px), calc(88vw / (var(--n, 4) * 1.02))); line-height: .86; letter-spacing: -.02em;
  background: linear-gradient(100deg, #0e3ec8 0%, #2f6bff 38%, #8fb0ff 50%, #2f6bff 62%, #5e87fc 100%); background-size: 240% 100%; background-position: 100% 0;
  -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: .04em; padding-inline: .05em; }
.wm-nome span { display: inline-block; }
.pp-slogan { font-family: var(--font-display); font-weight: 700; font-size: clamp(24px, 3vw, 42px); letter-spacing: -.03em; line-height: 1.12; color: var(--ink); max-width: 18em; margin: 0 auto 16px; text-wrap: balance; }
.js-anim .wm-mono circle { transform-box: fill-box; transform-origin: center; animation: wm-pop .6s cubic-bezier(.2, .9, .3, 1.35) both; }
.js-anim .wm-mono circle:nth-of-type(2) { animation-delay: .08s; }
.js-anim .wm-mono circle:nth-of-type(3) { animation-delay: .16s; }
.js-anim .wm-mono path { stroke-dasharray: 80; stroke-dashoffset: 80; animation: wm-draw .7s .3s cubic-bezier(.6, 0, .2, 1) forwards; }
.js-anim .wm-k { animation: wm-in .8s .35s cubic-bezier(.2, .7, .2, 1) both; }
.js-anim .wm-nome span { animation: wm-su .9s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(.55s + var(--i) * .07s); }
.js-anim .wm-nome { animation: wm-luce 1.6s 1.3s ease-in-out both; }
.js-anim .pp-hero .pp-slogan, .js-anim .pp-hero .lead, .js-anim .pp-hero .pp-price, .js-anim .pp-hero .pp-cta { animation: wm-in .8s cubic-bezier(.2, .7, .2, 1) both; animation-delay: 1s; }
@keyframes wm-pop { from { transform: scale(0); opacity: 0; } }
@keyframes wm-draw { to { stroke-dashoffset: 0; } }
@keyframes wm-in { from { opacity: 0; transform: translateY(14px); } }
@keyframes wm-su { from { opacity: 0; transform: translateY(.35em) scale(.96); filter: blur(8px); } }
@keyframes wm-luce { from { background-position: 100% 0; } to { background-position: 0 0; } }
[data-theme="dark"] .wm-nome { background-image: linear-gradient(100deg, #5e87fc 0%, #86a4ff 38%, #dbe5ff 50%, #86a4ff 62%, #afc5ff 100%); }

/* ---------- Passaggi più morbidi nel racconto scorrendo: la scena che esce sale e sfuma, quella che entra arriva dal basso */
.st.vivo .st-q { transform: translateY(46px) scale(.95); filter: blur(6px); transition: opacity .75s ease, transform .9s cubic-bezier(.2, .7, .2, 1), filter .75s ease; }
.st.vivo .st-q.prima { transform: translateY(-46px) scale(.95); }
.st.vivo .st-q.on { opacity: 1; transform: none; filter: none; transition-delay: .12s; }
.st.vivo .st-blocco { transition: opacity .7s ease, visibility .7s; }
.st.vivo .st-t > * { transform: translateY(18px); opacity: 0; transition: transform .8s cubic-bezier(.2, .7, .2, 1), opacity .6s ease; }
.st.vivo .st-blocco.on .st-t > * { transform: none; opacity: 1; }
.st.vivo .st-blocco.on .st-t > :nth-child(2) { transition-delay: .06s; }
.st.vivo .st-blocco.on .st-t > :nth-child(3) { transition-delay: .12s; }
.st.vivo .st-blocco.on .st-t > :nth-child(4) { transition-delay: .18s; }
.st.vivo .st-q .k-row, .st.vivo .st-q .k-card, .st.vivo .st-q .k-btn, .st.vivo .st-q .k-tav, .st.vivo .st-q .k-ag .c { transition: background .45s ease, color .45s ease, box-shadow .45s ease, opacity .5s ease, transform .55s cubic-bezier(.2, .9, .3, 1.2); }

/* il telefono di Premioo, da provare: un po' più grande */
.disp .pa-dev { width: min(340px, 80vw); }

/* Kherno Team in Food: telefono a sinistra, testo a destra */
@media (min-width: 901px) { .tt-sez-pag .container { grid-template-columns: 1fr 1.1fr !important; } }
.disp .tt-dev { width: min(340px, 80vw); }
.tt-punti-sito { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; color: #c9d1dc; }
.tt-punti-sito li { display: flex; gap: 10px; }
.tt-punti-sito li::before { content: ""; flex: 0 0 auto; width: 7px; height: 7px; margin-top: .6em; border-radius: 50%; background: #6E8CFF; }

/* ---------- Marchio Premioo (disegno vero da alhena-diners/Wordmark.tsx): «premi» in Plus Jakarta Sans + gli anelli */
.pm-marchio { display: inline-flex; align-items: baseline; gap: .14em; line-height: 1; white-space: nowrap; }
.pm-premi { font-family: "Plus Jakarta Sans", var(--font-display); font-weight: 700; letter-spacing: -.045em; color: #0B1033; }
.pm-oo { height: .72em; width: auto; color: #0A5BF5; }
[data-theme="dark"] .pm-premi { color: #F2F3F6; } [data-theme="dark"] .pm-oo { color: #5B8CFF; }
.pm-bianco .pm-premi, .pm-bianco .pm-oo { color: #fff; }

/* ---------- «Provala tu»: sopra i telefoni con l'app interattiva, e un cerchio che pulsa finché non si tocca */
.prova-box { display: grid; justify-items: center; }
.prova { text-align: center; margin-bottom: 22px; display: grid; justify-items: center; gap: 6px; }
.prova-et { font-family: var(--font-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: #fff; background: #2f6bff; border-radius: 99px; padding: 6px 14px; }
.prova b { font-family: var(--font-display); font-size: clamp(34px, 4vw, 52px); letter-spacing: -.04em; line-height: 1; color: inherit; }
.prova > span:last-child, .prova > span:not([class]) { color: #9aa5b6; font-size: 16px; }
.pp-spot .prova b { color: #eef2f7; }
.prova-tel .tz-dev { position: relative; }
.prova-tel:not(.toccato) .tz-dev::after { content: none; }
.prova-tel .prova-dito { position: absolute; z-index: 9; left: 50%; top: 58%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; pointer-events: none;
  background: rgba(94, 135, 252, .35); box-shadow: 0 0 0 3px rgba(255, 255, 255, .9); animation: prova-pulsa 1.6s ease-in-out infinite; transition: opacity .3s; }
.prova-tel.toccato .prova-dito { opacity: 0; }
@keyframes prova-pulsa { 0%, 100% { transform: scale(.85); } 50% { transform: scale(1.1); box-shadow: 0 0 0 3px rgba(255, 255, 255, .9), 0 0 0 16px rgba(94, 135, 252, .18); } }
@media (prefers-reduced-motion: reduce) { .prova-tel .prova-dito { animation: none; } }

/* ---------- Progetti su misura */
.sm-flusso { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr; gap: calc(1.6 * var(--u)); align-items: center; }
.sm-flusso .k-card { min-height: calc(26 * var(--u)); align-content: start; transition: background .45s, border-color .45s, box-shadow .45s; }
.sm-flusso .k-card small { font-family: var(--font-mono); }
.sm-flusso .k-card.rossa { border-top-color: #B3261E; background: #fdecea; box-shadow: inset 0 0 0 calc(.4 * var(--u)) rgba(179, 38, 30, .35); }
.sm-fr { font-style: normal; color: #8a94a6; font-size: calc(6 * var(--u)); }
@media (max-width: 600px) { .tz-tab .sm-flusso { grid-template-columns: 1fr 1fr; } .tz-tab .sm-fr { display: none; } .tz-tab .sm-flusso .k-card { min-height: 0; } }
.k-row.sm-noi { background: #e9effe; }
.sm-progs { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 28px); }
.sm-prog { background: var(--bg); border: 1px solid var(--line); border-radius: 24px; padding: 22px 22px 26px; display: grid; gap: 10px; align-content: start; }
.sm-prog h3 { font-size: 20px; margin: 10px 0 0; }
.sm-prog p { color: var(--muted); margin: 0; font-size: 15.5px; }
.sm-mini .tz-tab { position: relative; left: auto; top: auto; transform: none; opacity: 1; width: 100%; box-shadow: var(--anello), 0 20px 40px -24px rgba(4, 6, 10, .4); }
@media (max-width: 900px) { .sm-progs { grid-template-columns: 1fr; } }

/* ---------- Menu Prodotti: Food è pronto, gli altri arrivano */
.nav .dropdown a, .nav .dropdown a:hover { text-decoration: none; }  /* batte «li a:not(.btn)» */
.dropdown a.dd-pronto { grid-column: 1 / -1; }
.dropdown a.dd-largo { grid-column: 1 / -1; }
.dropdown a.dd-largo span { white-space: normal; }
.dropdown a strong { display: inline-flex; align-items: center; gap: 8px; }
.soon { font-style: normal; font-family: var(--font-mono); font-size: 10.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--accent);
  background: var(--accent-soft); border-radius: 99px; padding: 3px 8px; line-height: 1; }
.pp-num.tre { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 700px) { .pp-num.tre { grid-template-columns: 1fr; gap: 28px; } }
.vs-nota { display: block; margin-top: 12px; font-size: 13px; line-height: 1.45; color: #6b7686; }
.grad { padding-right: .08em; margin-right: -.08em; }  /* l'ultima lettera non esce dalla sfumatura */

/* Food: cassa sull'iPad e telefono affiancati, sulla stessa sala */
.cp-wrap { display: grid !important; grid-template-columns: 1fr !important; gap: clamp(28px, 4vw, 56px) !important; }
.cp-stage { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 300px); width: 100%; gap: clamp(20px, 3vw, 44px); align-items: center; }
.cp-dev { display: grid; justify-items: center; min-width: 0; }
.cp-ipad, .cp-ipad .disp { width: 100%; }  /* il tablet misura in cqw: senza una larghezza propria del contenitore collassa */
.cp-ipad .disp .tz-dev.cs-dev { width: min(100%, 900px, (100vh - 150px) * 1.41); }
.cp-tel .tt-dev { width: min(300px, 72vw, (100vh - 180px) * .48); }
.cp-dev .pa-hint b { color: #eef2f7; }
.cp-dev .pa-hint { max-width: 34em; }
.cp-due { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 80px); }
.cp-due h2 { font-size: clamp(28px, 3.2vw, 44px) !important; }
@media (max-width: 1000px) { .cp-stage, .cp-due { grid-template-columns: 1fr; } .cp-tel { order: -1; } }
.riv-map::after { content: "Confini regionali: ISTAT"; position: absolute; right: 0; bottom: -20px; font-size: 11px; color: var(--muted); }
/* badge ufficiali degli store, senza modifiche (assets/badge): «Scarica su App Store» di Apple (kit Apple in italiano) e «Disponibile su Google Play» di Google */
.store-badges { display: inline-flex !important; align-items: center; gap: 14px; margin-top: 14px; flex-wrap: wrap; justify-content: center; }
.store-badges img { display: block; height: 52px; width: auto; }
/* il badge di Google ha un bordo trasparente sopra e sotto (29 e 30 px su 250): si allarga e si ritaglia, così i due badge sono alti uguali */
.store-badges img.gp { height: calc(52px / .768); margin: -7.9px 0; }
.store-badges a { display: block; border-radius: 9px; transition: opacity .2s, transform .2s; }
.store-badges a[href]:hover { opacity: .85; transform: translateY(-1px); }
.store-badges a[href]:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.pm-hero .store-badges { margin-top: 26px; }
/* Food: la cassa e il telefono sono le app vere */
.cp-demo { display: grid; grid-template-columns: auto 1fr auto; gap: clamp(16px, 2.4vw, 32px); align-items: center; padding: clamp(20px, 2.6vw, 30px) clamp(20px, 3vw, 36px);
  border-radius: 24px; background: linear-gradient(120deg, rgba(14, 62, 200, .35), rgba(94, 135, 252, .12)); border: 1px solid rgba(94, 135, 252, .45); }
.cp-live { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: #fff; background: #0E3EC8; border-radius: 99px; padding: 7px 14px; white-space: nowrap; }
.cp-live i { width: 8px; height: 8px; border-radius: 50%; background: #3FBF8F; box-shadow: 0 0 0 0 rgba(63, 191, 143, .7); animation: cp-viva 1.8s ease-out infinite; }
@keyframes cp-viva { 70% { box-shadow: 0 0 0 8px rgba(63, 191, 143, 0); } 100% { box-shadow: 0 0 0 0 rgba(63, 191, 143, 0); } }
.cp-demo b { display: block; color: #fff; font-family: var(--font-display); font-size: clamp(20px, 2vw, 26px); letter-spacing: -.02em; line-height: 1.15; margin-bottom: 6px; }
.cp-demo p { margin: 0; color: #c9d4f2 !important; font-size: 16px !important; max-width: 46em; }
.cp-cta { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 1000px) { .cp-demo { grid-template-columns: 1fr; } .cp-live { justify-self: start; } .cp-cta { justify-content: flex-start; } }
@media (prefers-reduced-motion: reduce) { .cp-live i { animation: none; } }
.cp-nota { margin-top: 14px !important; font-size: 14px !important; color: #8a94a6 !important; }
/* rivenditori: la rete sta nascendo, pallini nelle città di tutte le regioni */
.riv-dot { position: absolute; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px rgba(255, 255, 255, .9); }
.riv-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--accent-2); opacity: 0; animation: riv-onda 14s ease-out infinite; animation-delay: var(--d, 0s); }
/* ogni pallino si accende di rado: un'onda breve ogni 14 secondi, sfalsata fra i pallini */
@keyframes riv-onda { 0% { transform: scale(1); opacity: .5; } 16% { transform: scale(3); opacity: 0; } 100% { transform: scale(3); opacity: 0; } }
[data-theme="dark"] .riv-dot { box-shadow: 0 0 0 3px rgba(4, 6, 10, .9); }
@media (prefers-reduced-motion: reduce) { .riv-dot::after { animation: none; opacity: 0; } }
.riv-info { margin-top: 22px; padding: 22px 24px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); display: grid; gap: 8px; }
.riv-info b { font-family: var(--font-display); font-size: 20px; letter-spacing: -.02em; color: var(--ink); }
.riv-info p { margin: 0; color: var(--muted); }
.riv-btns { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
/* accesso al gestionale per chi ha le credenziali */
.header-login { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 40px; padding: 0 16px; border-radius: 99px; border: 1px solid var(--line);
  background: var(--bg); color: var(--ink); font-weight: 600; font-size: 15px; white-space: nowrap; transition: background .2s, border-color .2s; }
.header-login:hover { background: var(--surface); border-color: var(--steel); color: var(--ink); text-decoration: none; }
.header-login svg { width: 18px; height: 18px; flex: 0 0 auto; }
@media (max-width: 1260px) { .header-login { width: 40px; padding: 0; } .header-login span { display: none; } }
/* indice a destra (sito.js): chiuso è una colonna di pallini; al passaggio del mouse il pannello si allarga verso sinistra e mostra i nomi */
.indice { position: fixed; right: 16px; top: 50%; transform: translateY(-50%); z-index: 90; display: grid; padding: 10px 8px; border-radius: 20px;
  background: color-mix(in srgb, var(--bg) 78%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 0 0 1px var(--line), 0 10px 30px -12px rgba(4, 6, 10, .25); transition: background .3s, box-shadow .3s; }
.indice button { display: flex; align-items: center; justify-content: flex-end; gap: 0; height: 32px; padding: 0 6px; border: 0; border-radius: 10px; background: none; cursor: pointer;
  font: inherit; color: var(--muted); transition: background .2s, color .2s, gap .35s; }
.indice span { max-width: 0; overflow: hidden; white-space: nowrap; opacity: 0; font-size: 14px; font-weight: 500; letter-spacing: -.005em; text-align: right;
  transition: max-width .4s cubic-bezier(.2, .8, .2, 1), opacity .25s ease; }
.indice i { flex: 0 0 auto; width: 6px; height: 6px; margin: 0 4px; border-radius: 50%; background: currentColor; opacity: .55; transition: width .25s, height .25s, opacity .25s, background .25s; }
.indice:hover button, .indice:focus-within button { gap: 14px; padding: 0 10px 0 14px; }
.indice:hover span, .indice:focus-within span { max-width: 180px; opacity: 1; }
.indice button:hover { background: color-mix(in srgb, var(--ink) 6%, transparent); color: var(--ink); }
.indice button.on { color: var(--accent); }
.indice button.on span { font-weight: 650; }
.indice button.on i { width: 9px; height: 9px; margin: 0 2.5px; opacity: 1; box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 20%, transparent); }
.indice.su-scuro { background: rgba(13, 18, 25, .66); box-shadow: 0 0 0 1px rgba(255, 255, 255, .1), 0 10px 30px -12px rgba(0, 0, 0, .6); }
.indice.su-scuro button { color: #9aa5b6; }
.indice.su-scuro button:hover { background: rgba(255, 255, 255, .07); color: #eef2f7; }
.indice.su-scuro button.on { color: #86a4ff; }
html.teaser-on .indice { display: none; }
.indice { transition: background .3s, box-shadow .3s, opacity .3s, transform .3s; }
.indice.via { opacity: 0; pointer-events: none; transform: translate(12px, -50%); }
@media (max-width: 1100px) { .indice { display: none; } }
/* Food: la dimostrazione che va da sola (cp-demo.js) */
.cp-stage { position: relative; }
.cp-dito { position: absolute; z-index: 20; left: 50%; top: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; pointer-events: none;
  background: rgba(255, 255, 255, .22); box-shadow: 0 0 0 3px rgba(255, 255, 255, .9), 0 10px 30px rgba(0, 0, 0, .45); opacity: 0;
  transition: left .6s cubic-bezier(.3, .7, .2, 1), top .6s cubic-bezier(.3, .7, .2, 1), opacity .3s, transform .15s; }
.cp-dito.on { opacity: 1; }
.cp-dito.tap { transform: scale(.78); background: rgba(134, 164, 255, .55); }
.cp-auto { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; margin: -6px auto 8px; padding: 10px 12px 10px 18px; border-radius: 99px;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); width: max-content; max-width: 100%; color: #c9d1dc; }
.cp-rec { display: inline-flex; align-items: center; gap: 9px; font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: #eef2f7; }
.cp-rec b { font-weight: 600; }
.cp-rec i { width: 9px; height: 9px; border-radius: 50%; background: #F2695E; animation: cp-viva 1.6s ease-out infinite; }
.cp-passo { font-size: 15px; color: #c9d1dc; min-width: 18em; }
.cp-passo:empty { display: none; }
.cp-salta { font: inherit; font-size: 14px; font-weight: 600; border: 0; border-radius: 99px; padding: 8px 14px; background: #eef2f7; color: #04060a; cursor: pointer; }
.cp-auto.fatto .cp-salta { display: none; }
.cp-auto.fatto .cp-rec i { background: #3FBF8F; }
/* tendina App: una colonna, con la riga che dice per chi è ogni app */
.dropdown.dd-app { min-width: 340px; }
.dropdown.dd-app .dropdown-grid { grid-template-columns: 1fr; }
.dropdown.dd-app a span { max-width: 32em; }
.nav .nav-btn.active { color: var(--ink); background: var(--surface); }
.dropdown.dd-app a span, .dropdown .dd-voce span { white-space: normal; }
.dropdown .dd-voce { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 12px 14px; border-radius: var(--radius); cursor: default; }
.dropdown .dd-voce strong { color: var(--ink); font-family: var(--font-display); display: inline-flex; align-items: center; gap: 8px; }
.dropdown .dd-voce > span { color: var(--muted); font-size: 14px; }
.dropdown .dd-voce strong { font-size: 15px; }
/* pagine dei gestionali: le app della piattaforma (Kherno Cassa, Kherno Team) */
.app-due { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2vw, 24px); }
.app-card { display: grid; gap: 10px; align-content: start; padding: clamp(22px, 2.6vw, 32px); border-radius: 24px; background: var(--bg); border: 1px solid var(--line); box-shadow: var(--shadow); }
.app-card .ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.app-card .ic svg { width: 24px; height: 24px; }
.app-card h3 { margin: 0; font-size: 24px; letter-spacing: -.02em; }
.app-card p { margin: 0; color: var(--muted); }
.app-tag { justify-self: start; font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); background: var(--accent-soft); border-radius: 99px; padding: 4px 10px; }
@media (max-width: 760px) { .app-due { grid-template-columns: 1fr; } }
.store-nota { display: block !important; margin-top: 8px; font-size: 13px !important; }

/* Area clienti · accedi.html */
.acc-sez { min-height: calc(100vh - 80px); display: flex; align-items: center; }
.acc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 470px); gap: clamp(32px, 6vw, 96px); align-items: center; }
.acc-testo .lead { max-width: 30em; }
.acc-punti { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 16px; max-width: 34em; }
.acc-punti li { position: relative; padding-left: 26px; color: var(--muted); line-height: 1.5; }
.acc-punti li::before { content: ""; position: absolute; left: 0; top: .55em; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }
.acc-punti b { color: var(--ink); font-weight: 600; }
.acc-aiuto { margin-top: 32px; padding-top: 22px; border-top: 1px solid var(--line); display: grid; gap: 6px; color: var(--muted); }
.acc-aiuto p { margin: 0; }
.acc-aiuto a { font-weight: 600; }
.acc-card { padding: clamp(24px, 3vw, 36px); }
.acc-prod { border: 0; margin: 0 0 24px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.acc-prod legend { width: 100%; margin-bottom: 10px; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.acc-prod label { position: relative; cursor: pointer; }
.acc-prod input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.acc-prod span { display: inline-flex; align-items: center; height: 38px; padding: 0 13px; border-radius: 99px; border: 1px solid var(--line); background: var(--bg); font-weight: 600; font-size: 15px; color: var(--ink); transition: background .2s, border-color .2s, color .2s; }
.acc-prod label:hover span { border-color: var(--accent); }
.acc-prod input:checked + span { background: var(--accent); border-color: var(--accent); color: #fff; }
.acc-prod input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.acc-form { display: grid; gap: 16px; }
.acc-form[hidden], .acc-form [hidden], .acc-prod[hidden] { display: none !important; }
.acc-tit { margin: 0; font-size: clamp(22px, 2vw, 26px); letter-spacing: -.02em; }
.acc-intro { margin: -4px 0 0; color: var(--muted); }
.acc-modo { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 12px; background: var(--surface); }
.acc-modo button { height: 40px; border: 0; border-radius: 9px; background: none; font: inherit; font-weight: 600; font-size: 15px; color: var(--muted); cursor: pointer; }
.acc-modo button[aria-selected="true"] { background: var(--bg); color: var(--ink); box-shadow: 0 1px 4px rgba(4, 6, 10, .12); }
.acc-form .field input { min-height: 52px; font-size: 16px; border-radius: 10px; }
.acc-pass { position: relative; }
.acc-pass input { padding-right: 52px; }
.acc-occhio { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border: 0; border-radius: 8px; background: none; color: var(--muted); cursor: pointer; display: grid; place-items: center; }
.acc-occhio:hover { color: var(--ink); background: var(--surface); }
.acc-occhio[aria-pressed="true"] { color: var(--accent); }
.acc-occhio svg { width: 20px; height: 20px; }
.acc-form .field input.acc-pin { font-family: var(--font-mono); font-size: 22px; letter-spacing: .4em; }
.acc-form .btn-block { min-height: 52px; font-size: 16px; }
.acc-form .f-status { margin: -4px 0 0; min-height: 0; }
.acc-form .f-status:empty { display: none; }
.f-status.ok { color: var(--ok); font-weight: 600; }
.f-status.err { color: var(--err); font-weight: 600; }
.acc-link { justify-self: center; border: 0; background: none; padding: 4px; font: inherit; font-size: 15px; font-weight: 600; color: var(--accent); cursor: pointer; }
.acc-link:hover { text-decoration: underline; }
.acc-sicuro { display: flex; gap: 10px; align-items: flex-start; margin: 22px 0 0; padding-top: 18px; border-top: 1px solid var(--line); font-size: 13.5px; line-height: 1.45; color: var(--muted); }
.acc-sicuro svg { width: 16px; height: 16px; flex: 0 0 auto; margin-top: 1px; }
.header-login[aria-current="page"] { border-color: var(--accent); color: var(--accent); }
@media (max-width: 900px) {
  .acc-sez { min-height: 0; display: block; }
  .acc { grid-template-columns: 1fr; }
  .acc { gap: 0; }
  .acc-testo { display: contents; }
  .acc-card { order: 1; margin-top: 24px; }
  .acc-punti { order: 2; margin-top: 36px; }
  .acc-aiuto { order: 3; }
  .acc-testo .h1-page { font-size: clamp(32px, 8vw, 44px); }
}
