/* ==========================================================================
   OMNIANEXT S.R.L. — Design system
   Palette derivata dal logo ufficiale (navy + ciano/teal), oro come
   accento della divisione Sicurezza.
   ========================================================================== */

:root {
  --navy-900: #061626;
  --navy-800: #0b2340;
  --navy-700: #123256;
  --navy-600: #1b4670;
  --cyan-600: #1580b4;
  --cyan-500: #1f9bd1;
  --cyan-400: #35bee0;
  --teal-400: #3fbfa8;
  --gold-500: #f5a623;
  --gold-600: #d98c0c;

  --ink: #0e2136;
  --body: #46586c;
  --muted: #6b7f93;
  --line: #e3eaf1;
  --line-strong: #cfdae6;
  --bg: #ffffff;
  --bg-alt: #f4f8fc;
  --bg-tint: #eef5fb;

  --brand-grad: linear-gradient(135deg, #123256 0%, #1f9bd1 58%, #3fbfa8 100%);
  --dark-grad: linear-gradient(160deg, #0b2340 0%, #061626 100%);

  --radius-s: 8px;
  --radius: 14px;
  --radius-l: 22px;

  --shadow-sm: 0 1px 2px rgba(11, 35, 64, .06), 0 2px 8px rgba(11, 35, 64, .05);
  --shadow: 0 4px 12px rgba(11, 35, 64, .07), 0 18px 40px -18px rgba(11, 35, 64, .22);
  --shadow-lg: 0 10px 24px rgba(11, 35, 64, .10), 0 34px 70px -28px rgba(11, 35, 64, .35);

  --wrap: 1160px;
  --gap: clamp(1.25rem, 3vw, 2rem);

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;

  --header-h: 78px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--cyan-600); text-decoration: none; }
a:hover { color: var(--cyan-500); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.15; margin: 0 0 .6em; font-weight: 800; letter-spacing: -.022em; }
h1 { font-size: clamp(2.15rem, 1.35rem + 3.4vw, 3.75rem); }
h2 { font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.7rem); }
h3 { font-size: clamp(1.15rem, 1rem + .55vw, 1.4rem); }
h4 { font-size: 1.02rem; }
p { margin: 0 0 1.1em; }
ul { margin: 0 0 1.1em; padding-left: 1.15em; }
li { margin-bottom: .45em; }
strong { color: var(--ink); font-weight: 700; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }
:focus-visible { outline: 3px solid var(--cyan-400); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--navy-800); color: #fff; padding: .8rem 1.2rem; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; color: #fff; }

/* ---------- Layout ---------- */
.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.section { padding: clamp(3.5rem, 7vw, 6.5rem) 0; }
.section--tight { padding: clamp(2.5rem, 5vw, 4rem) 0; }
.section--alt { background: var(--bg-alt); }
.section--tint { background: linear-gradient(180deg, var(--bg-tint), #fff); }

.grid { display: grid; gap: var(--gap); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(225px, 1fr)); }

.center { text-align: center; }
.lead { font-size: clamp(1.05rem, 1rem + .35vw, 1.25rem); color: var(--body); }
.measure { max-width: 62ch; }
.measure-center { max-width: 66ch; margin-inline: auto; }

/* ---------- Eyebrow / section head ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .78rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase;
  color: var(--cyan-600); margin-bottom: .9rem;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--brand-grad); border-radius: 2px; }
.eyebrow--gold { color: var(--gold-600); }
.eyebrow--gold::before { background: linear-gradient(90deg, var(--gold-500), var(--gold-600)); }
.eyebrow--light { color: var(--cyan-400); }
.eyebrow--light::before { background: linear-gradient(90deg, var(--cyan-400), var(--teal-400)); }

.section-head { max-width: 68ch; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.section-head.center { margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  background-clip: padding-box;
  font: inherit; font-weight: 650; font-size: .97rem; line-height: 1;
  padding: .92rem 1.5rem; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn svg { width: 17px; height: 17px; flex: none; }

.btn--primary { background: var(--brand-grad); color: #fff; box-shadow: 0 6px 18px -6px rgba(31, 155, 209, .65); }
.btn--primary:hover { color: #fff; box-shadow: 0 12px 26px -8px rgba(31, 155, 209, .75); }

.btn--gold { background: linear-gradient(135deg, var(--gold-500), var(--gold-600)); color: #26180a; box-shadow: 0 6px 18px -6px rgba(217, 140, 12, .6); }
.btn--gold:hover { color: #26180a; }

.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { color: var(--ink); border-color: var(--cyan-500); background: var(--bg-tint); }

.btn--light { background: rgba(255, 255, 255, .1); color: #fff; border-color: rgba(255, 255, 255, .3); }
.btn--light:hover { color: #fff; background: rgba(255, 255, 255, .18); border-color: rgba(255, 255, 255, .55); }

.btn--white { background: #fff; color: var(--navy-800); }
.btn--white:hover { color: var(--navy-800); }

.btn--sm { padding: .68rem 1.15rem; font-size: .9rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }

.link-arrow { display: inline-flex; align-items: center; gap: .4rem; font-weight: 650; font-size: .95rem; }
.link-arrow svg { width: 15px; height: 15px; transition: transform .2s ease; }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.site-header.is-stuck { border-bottom-color: var(--line); box-shadow: 0 4px 20px -12px rgba(11, 35, 64, .4); }
.site-header__inner { display: flex; align-items: center; gap: 1.25rem; height: var(--header-h); }

.brand { display: flex; align-items: center; flex: none; }
.brand img { width: 205px; height: auto; }

.nav { margin-left: auto; display: flex; align-items: center; gap: .15rem; }
.nav a {
  display: block; padding: .55rem .8rem; border-radius: 8px;
  font-size: .95rem; font-weight: 550; color: var(--ink); transition: background .18s ease, color .18s ease;
}
.nav a:hover { background: var(--bg-tint); color: var(--cyan-600); }
.nav a[aria-current="page"] { color: var(--cyan-600); }
.header-cta { flex: none; margin-left: .6rem; }

.nav-toggle {
  display: none; margin-left: auto; width: 44px; height: 44px; flex: none;
  background: transparent; border: 1px solid var(--line-strong); border-radius: 10px;
  cursor: pointer; padding: 0; align-items: center; justify-content: center;
}
.nav-toggle span { display: block; width: 19px; height: 2px; background: var(--ink); border-radius: 2px; position: relative; transition: background .2s ease; }
.nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 0; width: 19px; height: 2px; background: var(--ink);
  border-radius: 2px; transition: transform .25s ease, top .2s ease;
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--bg-tint); }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(760px 420px at 82% -8%, rgba(63, 191, 168, .22), transparent 62%),
    radial-gradient(880px 520px at 10% 108%, rgba(31, 155, 209, .18), transparent 60%),
    linear-gradient(180deg, #eef5fb 0%, #ffffff 78%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; opacity: .5;
  background-image:
    linear-gradient(rgba(18, 50, 86, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18, 50, 86, .05) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(700px 460px at 70% 30%, #000, transparent 75%);
  mask-image: radial-gradient(700px 460px at 70% 30%, #000, transparent 75%);
}
.hero__inner { position: relative; z-index: 1; padding: clamp(3rem, 6vw, 5.5rem) 0 clamp(3.5rem, 7vw, 6rem); }
.hero__grid { display: grid; gap: clamp(2.25rem, 4vw, 3.5rem); grid-template-columns: 1.08fr .92fr; align-items: center; }
.hero h1 { margin-bottom: .5em; }
.hero h1 .accent { background: var(--brand-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__lead { font-size: clamp(1.05rem, 1rem + .4vw, 1.3rem); max-width: 54ch; margin-bottom: 1.9rem; }
.hero__cta { margin-bottom: 2.1rem; }

.hero__meta { display: flex; flex-wrap: wrap; gap: 1.6rem 2.4rem; padding-top: 1.6rem; border-top: 1px solid var(--line); }
.hero__meta div { min-width: 120px; }
.hero__meta dt { font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: .2rem; }
.hero__meta dd { margin: 0; font-size: 1.02rem; font-weight: 700; color: var(--ink); }

/* Hero cards (le due divisioni) */
.hero__cards { display: grid; gap: 1rem; }
.divcard {
  position: relative; display: block; padding: 1.5rem 1.5rem 1.4rem;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-l);
  box-shadow: var(--shadow); overflow: hidden;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.divcard:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--line-strong); }
.divcard::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--brand-grad); }
.divcard--gold::before { background: linear-gradient(180deg, var(--gold-500), var(--gold-600)); }
.divcard__ico {
  width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center;
  background: var(--bg-tint); color: var(--cyan-600); margin-bottom: .9rem;
}
.divcard--gold .divcard__ico { background: #fdf4e3; color: var(--gold-600); }
.divcard__ico svg { width: 22px; height: 22px; }
.divcard h3 { margin-bottom: .35em; font-size: 1.18rem; }
.divcard p { margin: 0 0 .9rem; font-size: .95rem; color: var(--body); }
.divcard .link-arrow { color: var(--cyan-600); }
.divcard--gold .link-arrow { color: var(--gold-600); }

/* ---------- Trust bar ---------- */
.trustbar { border-block: 1px solid var(--line); background: #fff; }
.trustbar ul {
  list-style: none; margin: 0; padding: 1.5rem 0; display: grid; gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}
.trustbar li { display: flex; align-items: flex-start; gap: .7rem; margin: 0; font-size: .93rem; color: var(--body); }
.trustbar svg { width: 20px; height: 20px; flex: none; color: var(--cyan-500); margin-top: 2px; }
.trustbar strong { display: block; color: var(--ink); font-size: .95rem; }

/* ---------- Cards ---------- */
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem; box-shadow: var(--shadow-sm);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.card h3 { margin-bottom: .45em; }
.card p:last-child { margin-bottom: 0; }
.card__ico {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: var(--bg-tint); color: var(--cyan-600); margin-bottom: 1.1rem;
}
.card__ico svg { width: 23px; height: 23px; }
.card--gold .card__ico { background: #fdf4e3; color: var(--gold-600); }

/* Card con immagine */
.photocard {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
  transition: transform .22s ease, box-shadow .22s ease;
}
.photocard:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.photocard img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: var(--navy-800); }
.photocard__body { padding: 1.3rem 1.4rem 1.5rem; }
.photocard h3 { font-size: 1.1rem; margin-bottom: .4em; }
.photocard p { font-size: .93rem; margin: 0; }

/* Lista servizi compatta */
.tick { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.tick li { display: flex; align-items: flex-start; gap: .65rem; margin: 0; font-size: .96rem; }
.tick li::before {
  content: ""; flex: none; width: 19px; height: 19px; margin-top: 3px; border-radius: 50%;
  background: var(--bg-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f9bd1' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/12px no-repeat;
}
.tick--gold li::before {
  background-color: #fdf4e3;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d98c0c' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
}
.tick--light li { color: rgba(255, 255, 255, .82); }
.tick--light li::before {
  background-color: rgba(255, 255, 255, .12);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2335bee0' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
}

/* ---------- Split (testo + immagine) ---------- */
.split { display: grid; gap: clamp(2rem, 4vw, 3.5rem); grid-template-columns: 1fr 1fr; align-items: center; }
.split--reverse .split__media { order: -1; }
.split__media { position: relative; }
.split__media img { border-radius: var(--radius-l); box-shadow: var(--shadow-lg); width: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.split__badge {
  position: absolute; right: -12px; bottom: -18px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: .95rem 1.2rem; box-shadow: var(--shadow);
  font-size: .85rem; font-weight: 700; color: var(--ink); max-width: 230px; line-height: 1.4;
}
.split__badge span { display: block; font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--cyan-600); margin-bottom: .15rem; }
.split__badge--gold span { color: var(--gold-600); }

/* ---------- Numeri / stat ---------- */
.stats { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.stats li { margin: 0; }
.stats b { display: block; font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.4rem); font-weight: 800; letter-spacing: -.03em; color: var(--ink); line-height: 1.1; }
.stats span { font-size: .92rem; color: var(--muted); }

/* ---------- Sezione scura ---------- */
.dark { background: var(--dark-grad); color: rgba(255, 255, 255, .78); position: relative; overflow: hidden; }
.dark::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(720px 400px at 88% 4%, rgba(63, 191, 168, .2), transparent 62%),
              radial-gradient(620px 380px at 4% 96%, rgba(31, 155, 209, .18), transparent 64%);
}
.dark > * { position: relative; z-index: 1; }
.dark h1, .dark h2, .dark h3, .dark h4 { color: #fff; }
.dark strong { color: #fff; }
.dark a { color: var(--cyan-400); }
.dark .lead { color: rgba(255, 255, 255, .78); }

.dark-card {
  background: rgba(255, 255, 255, .055); border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--radius); padding: 1.6rem; backdrop-filter: blur(6px);
}
.dark-card h3 { font-size: 1.08rem; }
.dark-card p { font-size: .94rem; margin: 0; color: rgba(255, 255, 255, .74); }
.dark-card__ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(53, 190, 224, .14); color: var(--cyan-400); margin-bottom: 1rem; }
.dark-card__ico svg { width: 22px; height: 22px; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--dark-grad); position: relative; overflow: hidden; }
.cta-band::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(700px 380px at 78% 0%, rgba(31, 155, 209, .3), transparent 60%),
              radial-gradient(560px 340px at 6% 100%, rgba(63, 191, 168, .22), transparent 62%);
}
.cta-band__inner { position: relative; z-index: 1; padding: clamp(3rem, 6vw, 4.75rem) 0; display: grid; gap: 2rem; grid-template-columns: 1.35fr .65fr; align-items: center; }
.cta-band h2 { color: #fff; margin-bottom: .4em; }
.cta-band p { color: rgba(255, 255, 255, .78); margin: 0; max-width: 58ch; }
.cta-band .btn-row { justify-content: flex-end; }

/* ---------- Settori ---------- */
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.chips li {
  margin: 0; padding: .6rem 1.05rem; border-radius: 999px; background: #fff;
  border: 1px solid var(--line); font-size: .92rem; font-weight: 600; color: var(--ink);
  box-shadow: var(--shadow-sm);
}

/* ---------- Steps ---------- */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; display: grid; gap: 1.25rem; }
.steps li {
  counter-increment: s; margin: 0; position: relative; padding-left: 3.6rem;
}
.steps li::before {
  content: counter(s, decimal-leading-zero); position: absolute; left: 0; top: 0;
  width: 2.5rem; height: 2.5rem; border-radius: 12px; display: grid; place-items: center;
  background: var(--bg-tint); color: var(--cyan-600); font-weight: 800; font-size: .9rem;
}
.steps h3 { font-size: 1.05rem; margin-bottom: .25em; }
.steps p { font-size: .94rem; margin: 0; }

/* ---------- Tabella dati ---------- */
.datatable { width: 100%; border-collapse: collapse; font-size: .95rem; }
.datatable th, .datatable td { text-align: left; padding: .85rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.datatable th { width: 42%; font-weight: 600; color: var(--muted); }
.datatable td { color: var(--ink); font-weight: 600; }

/* ---------- Form ---------- */
.form { display: grid; gap: 1.1rem; }
.form__row { display: grid; gap: 1.1rem; grid-template-columns: 1fr 1fr; }
.field { display: grid; gap: .4rem; }
.field label { font-size: .88rem; font-weight: 650; color: var(--ink); }
.field label .req { color: #d0453c; }
.field input, .field select, .field textarea {
  font: inherit; font-size: .97rem; color: var(--ink); background: #fff;
  border: 1px solid var(--line-strong); border-radius: 10px; padding: .8rem .95rem;
  transition: border-color .18s ease, box-shadow .18s ease; width: 100%;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--cyan-500); box-shadow: 0 0 0 3px rgba(31, 155, 209, .16);
}
.field--check { grid-template-columns: auto 1fr; align-items: start; gap: .65rem; }
.field--check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--cyan-500); }
.field--check label { font-size: .86rem; font-weight: 400; color: var(--body); line-height: 1.55; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__note { font-size: .83rem; color: var(--muted); margin: 0; }

.alert { padding: 1rem 1.2rem; border-radius: 12px; font-size: .95rem; margin-bottom: 1.5rem; }
.alert--ok { background: #e8f7f0; border: 1px solid #b7e4d0; color: #185f42; }
.alert--err { background: #fdecea; border: 1px solid #f5c6c0; color: #8c2f27; }

/* ---------- Contatti ---------- */
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.3rem; }
.contact-list li { margin: 0; display: flex; gap: .9rem; align-items: flex-start; }
.contact-list svg { width: 20px; height: 20px; flex: none; color: var(--cyan-500); margin-top: 3px; }
.contact-list b { display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: .09em; color: var(--muted); font-weight: 700; margin-bottom: .1rem; }
.contact-list a, .contact-list span { color: var(--ink); font-weight: 600; word-break: break-word; }
.contact-list a:hover { color: var(--cyan-600); }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 1.25rem 2.5rem 1.25rem 0; position: relative;
  font-weight: 700; color: var(--ink); font-size: 1.02rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: .5rem; top: 1.55rem; width: 12px; height: 12px;
  border-right: 2px solid var(--cyan-500); border-bottom: 2px solid var(--cyan-500);
  transform: rotate(45deg); transition: transform .22s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); top: 1.75rem; }
.faq details > div { padding: 0 2.5rem 1.4rem 0; font-size: .96rem; }
.faq details > div p:last-child { margin-bottom: 0; }

/* ---------- Page hero (pagine interne) ---------- */
.pagehero { background: var(--dark-grad); position: relative; overflow: hidden; }
.pagehero::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(680px 380px at 84% 0%, rgba(31, 155, 209, .28), transparent 62%),
              radial-gradient(520px 320px at 4% 100%, rgba(63, 191, 168, .2), transparent 64%);
}
.pagehero__inner { position: relative; z-index: 1; padding: clamp(2.75rem, 6vw, 4.75rem) 0 clamp(2.75rem, 6vw, 4.25rem); }
.pagehero h1 { color: #fff; max-width: 20ch; }
.pagehero p { color: rgba(255, 255, 255, .78); max-width: 60ch; margin-bottom: 0; }
.pagehero .btn-row { margin-top: 2rem; }

.crumbs { font-size: .85rem; color: rgba(255, 255, 255, .55); margin-bottom: 1.1rem; }
.crumbs a { color: rgba(255, 255, 255, .75); }
.crumbs a:hover { color: #fff; }
.crumbs span { margin: 0 .45rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: rgba(255, 255, 255, .62); font-size: .93rem; }
.site-footer h4 { color: #fff; font-size: .82rem; letter-spacing: .11em; text-transform: uppercase; margin-bottom: 1.1rem; }
.site-footer a { color: rgba(255, 255, 255, .62); }
.site-footer a:hover { color: var(--cyan-400); }
.site-footer__top { padding: clamp(3rem, 5vw, 4rem) 0 2.5rem; display: grid; gap: 2.5rem; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.site-footer li { margin: 0; }
.footer-brand__mark { font-size: 1.35rem; font-weight: 800; letter-spacing: -.02em; color: #fff; margin-bottom: .35rem; }
.footer-brand__mark em { font-style: normal; color: var(--cyan-400); }
.footer-brand__tag { font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: rgba(255, 255, 255, .45); margin-bottom: 1.2rem; }
.footer-brand p { max-width: 34ch; font-size: .9rem; }
.site-footer__legal {
  border-top: 1px solid rgba(255, 255, 255, .1); padding: 1.5rem 0 2.25rem;
  display: flex; flex-wrap: wrap; gap: .6rem 1.6rem; align-items: center; font-size: .84rem;
}
.site-footer__legal p { margin: 0; }
.site-footer__legal nav { margin-left: auto; display: flex; flex-wrap: wrap; gap: 1.2rem; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__cards { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
  .split { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
  .split__badge { position: static; margin-top: 1rem; max-width: none; }
  .cta-band__inner { grid-template-columns: 1fr; }
  .cta-band .btn-row { justify-content: flex-start; }
  .site-footer__top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1024px) {
  .nav-toggle { display: flex; }
  .header-cta { display: none; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto; margin: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: .75rem 1.25rem 1.5rem; box-shadow: 0 18px 40px -20px rgba(11, 35, 64, .45);
    max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
    transform: translateY(-12px); opacity: 0; visibility: hidden;
    transition: transform .22s ease, opacity .22s ease, visibility .22s;
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav a { padding: .85rem .6rem; font-size: 1.02rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav a:last-of-type { border-bottom: 0; }
  .nav .btn { margin-top: 1rem; width: 100%; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .brand img { width: 168px; }
  .form__row { grid-template-columns: 1fr; }
  .site-footer__top { grid-template-columns: 1fr; gap: 2rem; }
  .site-footer__legal nav { margin-left: 0; width: 100%; }
  .hero__meta { gap: 1.2rem 1.8rem; }
  .btn { width: 100%; }
  .btn-row .btn { width: auto; flex: 1 1 auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

@media print {
  .site-header, .cta-band, .nav-toggle, .site-footer__legal nav { display: none; }
  body { color: #000; }
}

/* ==========================================================================
   ANIMAZIONI E COMPONENTI DINAMICI
   Tutto in CSS (nessuna libreria). Disattivate da prefers-reduced-motion.
   ========================================================================== */

/* ---------- Keyframes ---------- */
@keyframes fadeUp      { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes float-y     { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes float-y-alt { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(12px); } }
@keyframes drift       { 0% { transform: translate(0, 0) scale(1); } 33% { transform: translate(3%, -4%) scale(1.06); } 66% { transform: translate(-3%, 3%) scale(.96); } 100% { transform: translate(0, 0) scale(1); } }
@keyframes pulse-ring  { 0% { transform: scale(.75); opacity: .55; } 80% { transform: scale(1.9); opacity: 0; } 100% { opacity: 0; } }
@keyframes blink       { 0%, 45% { opacity: 1; } 50%, 95% { opacity: 0; } 100% { opacity: 1; } }
@keyframes scanline    { 0% { transform: translateY(-100%); opacity: 0; } 12% { opacity: .8; } 88% { opacity: .8; } 100% { transform: translateY(1200%); opacity: 0; } }
@keyframes marquee     { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes sheen       { 0% { transform: translateX(-120%) skewX(-18deg); } 100% { transform: translateX(320%) skewX(-18deg); } }
@keyframes gradient-x  { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
@keyframes line-in {
  0%   { opacity: 0; transform: translateX(-8px); }
  4%   { opacity: 1; transform: none; }
  86%  { opacity: 1; transform: none; }
  94%  { opacity: 0; transform: none; }
  100% { opacity: 0; }
}

/* ---------- Reveal con direzione e stagger ---------- */
.reveal-l, .reveal-r, .reveal-s {
  opacity: 0;
  transition: opacity .7s cubic-bezier(.22, 1, .36, 1), transform .7s cubic-bezier(.22, 1, .36, 1);
  transition-delay: var(--d, 0s);
}
.reveal   { transition-delay: var(--d, 0s); }
.reveal-l { transform: translateX(-32px); }
.reveal-r { transform: translateX(32px); }
.reveal-s { transform: scale(.94); }
.reveal-l.is-visible, .reveal-r.is-visible, .reveal-s.is-visible { opacity: 1; transform: none; }

/* Stagger automatico sui figli di un contenitore */
.stagger > * { opacity: 0; transform: translateY(22px); transition: opacity .65s cubic-bezier(.22, 1, .36, 1), transform .65s cubic-bezier(.22, 1, .36, 1); }
.stagger.is-visible > * { opacity: 1; transform: none; }
.stagger.is-visible > *:nth-child(1) { transition-delay: .00s; }
.stagger.is-visible > *:nth-child(2) { transition-delay: .07s; }
.stagger.is-visible > *:nth-child(3) { transition-delay: .14s; }
.stagger.is-visible > *:nth-child(4) { transition-delay: .21s; }
.stagger.is-visible > *:nth-child(5) { transition-delay: .28s; }
.stagger.is-visible > *:nth-child(6) { transition-delay: .35s; }
.stagger.is-visible > *:nth-child(7) { transition-delay: .42s; }
.stagger.is-visible > *:nth-child(8) { transition-delay: .49s; }
.stagger.is-visible > *:nth-child(9) { transition-delay: .56s; }

/* ---------- Barra di avanzamento lettura ---------- */
.progress {
  position: fixed; inset: 0 0 auto; height: 3px; z-index: 200;
  background: var(--brand-grad); transform-origin: 0 50%; transform: scaleX(0);
  transition: transform .12s linear; pointer-events: none;
}

/* ---------- Hero animato ---------- */
.hero--tech { background: var(--navy-900); }
.hero--tech::before {
  background:
    radial-gradient(820px 520px at 78% 6%, rgba(31, 155, 209, .30), transparent 62%),
    radial-gradient(720px 480px at 8% 96%, rgba(63, 191, 168, .22), transparent 62%),
    linear-gradient(165deg, #0b2340 0%, #061626 100%);
  animation: drift 26s ease-in-out infinite;
}
.hero--tech::after {
  background-image:
    linear-gradient(rgba(53, 190, 224, .10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(53, 190, 224, .10) 1px, transparent 1px);
  background-size: 62px 62px;
  -webkit-mask-image: radial-gradient(760px 520px at 62% 42%, #000, transparent 76%);
  mask-image: radial-gradient(760px 520px at 62% 42%, #000, transparent 76%);
  opacity: .75;
}
.hero--tech h1, .hero--tech h2, .hero--tech h3 { color: #fff; }
.hero--tech .hero__lead { color: rgba(255, 255, 255, .78); }
.hero--tech strong { color: #fff; }
.hero--tech .hero__meta { border-top-color: rgba(255, 255, 255, .14); }
.hero--tech .hero__meta dt { color: rgba(255, 255, 255, .5); }
.hero--tech .hero__meta dd { color: #fff; }
.hero--tech h1 .accent {
  background: linear-gradient(100deg, #35bee0 0%, #3fbfa8 45%, #35bee0 100%);
  background-size: 220% auto;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: gradient-x 7s ease infinite;
}

/* Parola che ruota nel titolo */
.rotator { display: inline-grid; vertical-align: bottom; }
.rotator > span {
  grid-area: 1 / 1; opacity: 0; transform: translateY(14px);
  transition: opacity .5s ease, transform .5s ease; white-space: nowrap;
}
.rotator > span.is-on { opacity: 1; transform: none; }

/* Pannello terminale */
.codepanel {
  position: relative; border-radius: 16px; overflow: hidden;
  background: rgba(3, 12, 22, .82);
  border: 1px solid rgba(53, 190, 224, .26);
  box-shadow: 0 30px 70px -28px rgba(0, 0, 0, .85), 0 0 0 1px rgba(255, 255, 255, .03) inset;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.codepanel__bar {
  display: flex; align-items: center; gap: .45rem;
  padding: .7rem .95rem; border-bottom: 1px solid rgba(255, 255, 255, .09);
  background: rgba(255, 255, 255, .035);
}
.codepanel__bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, .2); }
.codepanel__bar i:nth-child(1) { background: #ff5f57; }
.codepanel__bar i:nth-child(2) { background: #febc2e; }
.codepanel__bar i:nth-child(3) { background: #28c840; }
.codepanel__bar em {
  font-style: normal; margin-left: auto; font-size: .74rem; letter-spacing: .04em;
  color: rgba(255, 255, 255, .42);
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}
.codepanel__body {
  margin: 0; padding: 1.15rem 1.2rem 1.3rem;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: .805rem; line-height: 1.95; color: rgba(255, 255, 255, .74);
  overflow-x: auto; min-height: 268px;
}
.codepanel__body b { display: block; font-weight: 400; opacity: 0; animation: line-in 11s linear var(--d, 0s) infinite; }
.codepanel .p { color: #3fbfa8; }
.codepanel .ok { color: #35bee0; }
.codepanel .warn { color: #f5a623; }
.codepanel .dim { color: rgba(255, 255, 255, .42); }
.codepanel .cursor { display: inline-block; width: 8px; height: 1em; background: #3fbfa8; vertical-align: -2px; animation: blink 1.1s steps(1) infinite; }
.codepanel::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 42px; pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(53, 190, 224, .16), transparent);
  animation: scanline 7.5s ease-in-out infinite;
}

/* Card fluttuanti attorno al terminale */
.hero__visual { position: relative; }
.floatcard {
  position: absolute; display: flex; align-items: center; gap: .65rem;
  padding: .75rem .95rem; border-radius: 13px;
  background: rgba(255, 255, 255, .96); box-shadow: var(--shadow-lg);
  font-size: .82rem; font-weight: 700; color: var(--ink); z-index: 2;
}
.floatcard svg { width: 18px; height: 18px; flex: none; }
.floatcard small { display: block; font-size: .7rem; font-weight: 500; color: var(--muted); }
.floatcard--a { top: -18px; left: -22px; animation: float-y 6.5s ease-in-out infinite; color: var(--cyan-600); }
.floatcard--b { bottom: -20px; right: -18px; animation: float-y-alt 7.5s ease-in-out infinite .8s; }
.floatcard--a svg { color: var(--cyan-500); }
.floatcard--b svg { color: var(--teal-400); }
.floatcard--b span { color: var(--ink); }

/* ---------- Marquee competenze ---------- */
.marquee {
  overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
  padding: 1.1rem 0;
}
.marquee__track { display: flex; width: max-content; animation: marquee 42s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track > div { display: flex; align-items: center; gap: 2.6rem; padding-right: 2.6rem; }
.marquee span {
  display: inline-flex; align-items: center; gap: .55rem; white-space: nowrap;
  font-size: .92rem; font-weight: 650; color: var(--muted); letter-spacing: .01em;
}
.marquee span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--cyan-500); flex: none; }
.dark .marquee span { color: rgba(255, 255, 255, .6); }
.dark .marquee span::before { background: var(--teal-400); }

/* ---------- Contatori ---------- */
.counter { font-variant-numeric: tabular-nums; }

/* ---------- Card con effetto luce ---------- */
.card, .dark-card, .photocard, .divcard { position: relative; overflow: hidden; }
.card::after, .dark-card::after, .divcard::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 42%; pointer-events: none; z-index: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .38), transparent);
  transform: translateX(-120%) skewX(-18deg); opacity: 0;
}
.dark-card::after { background: linear-gradient(90deg, transparent, rgba(53, 190, 224, .16), transparent); }
.card:hover::after, .dark-card:hover::after, .divcard:hover::after { opacity: 1; animation: sheen .85s ease forwards; }
.card > *, .dark-card > *, .divcard > * { position: relative; z-index: 1; }

.dark-card { transition: transform .22s ease, border-color .22s ease, background .22s ease; }
.dark-card:hover { transform: translateY(-4px); border-color: rgba(53, 190, 224, .4); background: rgba(255, 255, 255, .08); }

.photocard img { transition: transform .55s cubic-bezier(.22, 1, .36, 1); }
.photocard:hover img { transform: scale(1.06); }

/* Icone che reagiscono all'hover della card */
.card__ico, .dark-card__ico, .divcard__ico { transition: transform .3s cubic-bezier(.34, 1.56, .64, 1), background .3s ease; }
.card:hover .card__ico, .divcard:hover .divcard__ico { transform: translateY(-3px) rotate(-6deg) scale(1.06); }
.dark-card:hover .dark-card__ico { transform: translateY(-3px) rotate(-6deg) scale(1.06); background: rgba(53, 190, 224, .24); }

/* ---------- Pulsanti con alone ---------- */
.btn--primary { position: relative; overflow: hidden; }
.btn--primary::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 45%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .45), transparent);
  transform: translateX(-160%) skewX(-18deg);
}
.btn--primary:hover::after { animation: sheen .8s ease forwards; }

/* ---------- Radar / pulse per la sezione sicurezza ---------- */
.pulse { position: relative; display: inline-grid; place-items: center; }
.pulse::before, .pulse::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid rgba(245, 166, 35, .55); animation: pulse-ring 2.8s ease-out infinite;
}
.pulse::after { animation-delay: 1.4s; }

/* ---------- Bordo animato per card in evidenza ---------- */
.card--feature {
  border: 0; padding: 1px; background: var(--brand-grad); background-size: 220% auto;
  animation: gradient-x 8s ease infinite; border-radius: calc(var(--radius) + 1px);
}
.card--feature > div {
  background: #fff; border-radius: var(--radius); padding: 1.75rem; height: 100%;
}
.dark .card--feature > div { background: #08192b; }

/* ---------- Split media con parallasse leggera ---------- */
.split__media img { transition: transform .8s cubic-bezier(.22, 1, .36, 1); }
.split__media:hover img { transform: scale(1.03); }

/* ---------- Responsive animazioni ---------- */
@media (max-width: 980px) {
  .floatcard--a { top: -14px; left: 0; }
  .floatcard--b { bottom: -16px; right: 0; }
  .codepanel__body { min-height: 232px; font-size: .74rem; }
}
@media (max-width: 620px) {
  .floatcard { display: none; }
  .codepanel__body { min-height: 210px; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal-l, .reveal-r, .reveal-s, .stagger > * { opacity: 1 !important; transform: none !important; }
  .hero--tech::before, .marquee__track, .codepanel__body b, .codepanel::after,
  .floatcard, .hero--tech h1 .accent, .card--feature, .pulse::before, .pulse::after {
    animation: none !important;
  }
  .codepanel__body b { opacity: 1; }
  .progress { display: none; }
}

/* ==========================================================================
   LAYER v2 — "super modern"
   View Transitions · aurora mesh · bento grid · spotlight · text reveal
   scroll-driven animations · grana · magnetic buttons
   ========================================================================== */

/* ---------- Transizioni fra pagine (Chrome/Edge/Safari 18+) ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .28s cubic-bezier(.4, 0, 1, 1) both; }
::view-transition-new(root) { animation: vt-in  .38s cubic-bezier(.22, 1, .36, 1) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-8px); } }
@keyframes vt-in  { from { opacity: 0; transform: translateY(12px); } }
.site-header { view-transition-name: hdr; }
.site-footer { view-transition-name: ftr; }

/* ---------- Aurora / mesh gradient animata ---------- */
@keyframes aurora-a { 0%,100% { transform: translate(0,0) scale(1); }   50% { transform: translate(8%,-6%) scale(1.25); } }
@keyframes aurora-b { 0%,100% { transform: translate(0,0) scale(1.1); } 50% { transform: translate(-9%,7%) scale(.9); } }
@keyframes aurora-c { 0%,100% { transform: translate(0,0) scale(.95); } 50% { transform: translate(6%,9%) scale(1.2); } }

.aurora { position: absolute; inset: -25%; pointer-events: none; filter: blur(72px); opacity: .62; z-index: 0; }
.aurora i {
  position: absolute; display: block; border-radius: 50%; mix-blend-mode: screen;
}
.aurora i:nth-child(1) { width: 46%; height: 58%; left: 4%;  top: 6%;  background: radial-gradient(circle, #1f9bd1 0%, transparent 68%); animation: aurora-a 19s ease-in-out infinite; }
.aurora i:nth-child(2) { width: 42%; height: 52%; right: 2%; top: 0;   background: radial-gradient(circle, #3fbfa8 0%, transparent 68%); animation: aurora-b 23s ease-in-out infinite; }
.aurora i:nth-child(3) { width: 38%; height: 46%; left: 32%; bottom: 0; background: radial-gradient(circle, #6f5bd6 0%, transparent 70%); animation: aurora-c 27s ease-in-out infinite; }

/* ---------- Grana ---------- */
.grain { position: relative; }
.grain > .grain-fx {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1; opacity: .04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Hero v2 ---------- */
.hero--v2 { position: relative; overflow: hidden; background: #050e1a; isolation: isolate; }
.hero--v2::before, .hero--v2::after { content: none; }
.hero--v2 .hero__inner { position: relative; z-index: 2; padding: clamp(3.5rem, 8vw, 7rem) 0 clamp(3.5rem, 7vw, 6rem); }
.hero--v2 .hero__grid { grid-template-columns: 1.05fr .95fr; }
.hero--v2 h1, .hero--v2 h2, .hero--v2 h3 { color: #fff; }
.hero--v2 .hero__lead { color: rgba(255, 255, 255, .76); }
.hero--v2 strong { color: #fff; }
.hero--v2 .hero__meta { border-top-color: rgba(255, 255, 255, .14); }
.hero--v2 .hero__meta dt { color: rgba(255, 255, 255, .48); }
.hero--v2 .hero__meta dd { color: #fff; }

.hero-grid-fx {
  position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: .55;
  background-image:
    linear-gradient(rgba(53, 190, 224, .11) 1px, transparent 1px),
    linear-gradient(90deg, rgba(53, 190, 224, .11) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(620px circle at var(--mx, 60%) var(--my, 40%), #000 0%, rgba(0,0,0,.35) 45%, transparent 78%);
  mask-image: radial-gradient(620px circle at var(--mx, 60%) var(--my, 40%), #000 0%, rgba(0,0,0,.35) 45%, transparent 78%);
  transition: -webkit-mask-position .2s, mask-position .2s;
}

.hero--v2 h1 .accent {
  background: linear-gradient(100deg, #35bee0 0%, #3fbfa8 38%, #7aa8ff 62%, #35bee0 100%);
  background-size: 240% auto;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: gradient-x 8s ease infinite;
}

/* Badge in cima all'hero */
.hero-badge {
  display: inline-flex; align-items: center; gap: .6rem; margin-bottom: 1.5rem;
  padding: .45rem .95rem .45rem .55rem; border-radius: 999px;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14);
  font-size: .8rem; font-weight: 600; color: rgba(255, 255, 255, .84);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.hero-badge b {
  display: inline-flex; align-items: center; gap: .35rem; padding: .22rem .6rem;
  border-radius: 999px; background: var(--brand-grad); color: #fff; font-size: .7rem;
  letter-spacing: .06em; text-transform: uppercase;
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: #4ade80; position: relative; flex: none; }
.dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #4ade80; animation: pulse-ring 2.2s ease-out infinite; }

/* ---------- Text reveal per parole ---------- */
.tr { display: block; }
.tr .w {
  display: inline-block; opacity: 0; transform: translateY(.55em);
  transition: opacity .62s cubic-bezier(.22, 1, .36, 1), transform .62s cubic-bezier(.22, 1, .36, 1);
  transition-delay: calc(var(--i, 0) * 42ms);
  will-change: transform, opacity;
}
.tr.is-visible .w { opacity: 1; transform: none; }

/* ---------- Bento grid ---------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1.1rem; }
.bento > * { grid-column: span 2; min-width: 0; }
.bento .b-2 { grid-column: span 2; }
.bento .b-3 { grid-column: span 3; }
.bento .b-4 { grid-column: span 4; }
.bento .b-6 { grid-column: span 6; }
@media (max-width: 900px) { .bento { grid-template-columns: repeat(2, 1fr); } .bento > * { grid-column: span 1; } .bento .b-3, .bento .b-4, .bento .b-6 { grid-column: span 2 !important; } }
@media (max-width: 560px) { .bento { grid-template-columns: 1fr; } .bento > *, .bento .b-3, .bento .b-4, .bento .b-6 { grid-column: span 1 !important; } }

.tile {
  position: relative; overflow: hidden; border-radius: 20px; padding: 1.7rem;
  background: rgba(255, 255, 255, .045);
  border: 1px solid rgba(255, 255, 255, .1);
  transition: transform .3s cubic-bezier(.22, 1, .36, 1), border-color .3s ease, background .3s ease;
  isolation: isolate;
}
.tile:hover { transform: translateY(-5px); border-color: rgba(53, 190, 224, .38); background: rgba(255, 255, 255, .07); }
.tile h3 { color: #fff; font-size: 1.15rem; margin-bottom: .45em; }
.tile p { color: rgba(255, 255, 255, .7); font-size: .94rem; margin: 0; }
.tile__ico { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: rgba(53, 190, 224, .15); color: var(--cyan-400); margin-bottom: 1.05rem; transition: transform .3s cubic-bezier(.34, 1.56, .64, 1); }
.tile__ico svg { width: 22px; height: 22px; }
.tile:hover .tile__ico { transform: translateY(-3px) rotate(-7deg) scale(1.07); }
.tile--hi { background: linear-gradient(150deg, rgba(31, 155, 209, .19), rgba(63, 191, 168, .11)); border-color: rgba(53, 190, 224, .3); }
.tile--gold { background: linear-gradient(150deg, rgba(245, 166, 35, .16), rgba(245, 166, 35, .04)); border-color: rgba(245, 166, 35, .3); }
.tile--gold .tile__ico { background: rgba(245, 166, 35, .18); color: var(--gold-500); }
.tile .kpi { display: block; font-size: clamp(2rem, 1.4rem + 2.2vw, 3rem); font-weight: 800; letter-spacing: -.035em; color: #fff; line-height: 1; margin-bottom: .35rem; }
.tile .kpi + span { font-size: .88rem; color: rgba(255, 255, 255, .6); }

/* Chiaro */
.bento--light .tile { background: #fff; border-color: var(--line); box-shadow: var(--shadow-sm); }
.bento--light .tile:hover { border-color: var(--line-strong); box-shadow: var(--shadow); }
.bento--light .tile h3 { color: var(--ink); }
.bento--light .tile p { color: var(--body); }
.bento--light .tile__ico { background: var(--bg-tint); color: var(--cyan-600); }
.bento--light .tile .kpi { color: var(--ink); }
.bento--light .tile .kpi + span { color: var(--muted); }
.bento--light .tile--hi { background: linear-gradient(150deg, #eaf6fd, #f3fbf9); border-color: rgba(31, 155, 209, .28); }
.bento--light .tile--gold { background: linear-gradient(150deg, #fdf4e3, #fffaf1); border-color: rgba(217, 140, 12, .3); }
.bento--light .tile--gold .tile__ico { background: #fdefd6; color: var(--gold-600); }

/* ---------- Spotlight che segue il puntatore ---------- */
.spot::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(330px circle at var(--mx, 50%) var(--my, 50%), rgba(53, 190, 224, .20), transparent 68%);
  opacity: 0; transition: opacity .35s ease;
}
.spot:hover::before { opacity: 1; }
.bento--light .spot::before { background: radial-gradient(330px circle at var(--mx, 50%) var(--my, 50%), rgba(31, 155, 209, .13), transparent 68%); }

/* ---------- Bottoni magnetici ---------- */
.mag { transition: transform .28s cubic-bezier(.22, 1, .36, 1), box-shadow .22s ease, background .22s ease, color .22s ease, border-color .22s ease; }

/* ---------- Parallasse leggera ---------- */
[data-par] { will-change: transform; }

/* ---------- Animazioni guidate dallo scroll (dove supportate) ---------- */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .scroll-fade {
      animation: fadeUp linear both;
      animation-timeline: view();
      animation-range: entry 8% cover 26%;
    }
  }
}

/* ---------- Titoli con sottolineatura animata ---------- */
.uline { position: relative; display: inline-block; }
.uline::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -.12em; height: .1em; border-radius: 2px;
  background: var(--brand-grad); transform: scaleX(0); transform-origin: 0 50%;
  transition: transform .7s cubic-bezier(.22, 1, .36, 1) .25s;
}
.is-visible .uline::after, .uline.is-visible::after { transform: scaleX(1); }

/* ---------- Divisore luminoso ---------- */
.glow-line { height: 1px; border: 0; margin: 0; background: linear-gradient(90deg, transparent, rgba(53, 190, 224, .55), transparent); }

/* ---------- Sezione scura v2 ---------- */
.dark--v2 { background: #050e1a; position: relative; overflow: hidden; isolation: isolate; }
.dark--v2::before { content: none; }
.dark--v2 > .wrap { position: relative; z-index: 2; }

/* ---------- Riduzione movimento ---------- */
@media (prefers-reduced-motion: reduce) {
  .aurora i, .hero--v2 h1 .accent { animation: none !important; }
  .tr .w { opacity: 1 !important; transform: none !important; }
  .uline::after { transform: scaleX(1) !important; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none !important; }
}

/* ---------- Entrata al caricamento (above the fold) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .anim-in { animation: fadeUp .85s cubic-bezier(.22, 1, .36, 1) both; animation-delay: var(--d, 0s); }
}

/* Il codepanel entra ruotando leggermente */
@keyframes panel-in { from { opacity: 0; transform: perspective(1200px) rotateY(-9deg) rotateX(4deg) translateY(28px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  .panel-in { animation: panel-in 1.1s cubic-bezier(.22, 1, .36, 1) .25s both; }
}

/* ---------- Correzioni tile/spotlight ---------- */
.tile > * { position: relative; z-index: 1; }
.spot::before { z-index: 0; }
a.tile { display: block; color: inherit; text-decoration: none; }
a.tile:hover { color: inherit; }
.tile .tick { padding-left: 0; }
.tile hr.glow-line { position: relative; z-index: 1; }

/* La grana non deve mai coprire i contenuti */
.grain-fx { z-index: 1; }
.hero--v2 .hero__inner, .dark--v2 > .wrap, .cta-band__inner { z-index: 3; }

/* ---------- Il CTA nel menu serve solo in versione mobile ---------- */
@media (min-width: 1025px) { .nav > .btn { display: none; } }

/* ---------- Float card: più staccata dal pannello ---------- */
.floatcard--a { top: 21%; left: -52px; }
.floatcard--b { bottom: -22px; right: -26px; }
@media (max-width: 1100px) { .floatcard--a { left: -18px; } .floatcard--b { right: -10px; } }

/* ---------- Hero v2: una colonna sotto i 980px ---------- */
@media (max-width: 980px) {
  .hero--v2 .hero__grid { grid-template-columns: 1fr; }
  .hero--v2 .hero__grid { gap: 2.5rem; }
}
/* Il pannello non deve mai sbordare */
.hero__visual { max-width: 100%; min-width: 0; }
.codepanel { max-width: 100%; }

/* ---------- Pagehero: sfondo animato come la home ---------- */
.pagehero { isolation: isolate; }
.pagehero::before { z-index: 2; }
.pagehero .aurora { z-index: 1; filter: blur(80px); }
.pagehero__inner { z-index: 3; }

/* ---------- Grassetto leggibile sui fondi scuri ---------- */
.pagehero strong, .cta-band strong, .hero--v2 strong, .tile strong, .codepanel strong { color: #fff; }
.bento--light .tile strong { color: var(--ink); }

/* ==========================================================================
   PREZZI — Siti vetrina & e-commerce
   ========================================================================== */
.pricing { display: grid; gap: 1.4rem; grid-template-columns: repeat(auto-fit, minmax(310px, 1fr)); align-items: stretch; }

.plan {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  border-radius: 22px; padding: 2rem 1.9rem 2.1rem;
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .12);
  transition: transform .3s cubic-bezier(.22, 1, .36, 1), border-color .3s ease, background .3s ease;
}
.plan:hover { transform: translateY(-5px); border-color: rgba(53, 190, 224, .4); background: rgba(255, 255, 255, .075); }
.plan > * { position: relative; z-index: 1; }

.plan--hi {
  background: linear-gradient(155deg, rgba(31, 155, 209, .22), rgba(63, 191, 168, .10));
  border-color: rgba(53, 190, 224, .38);
}
.plan__tag {
  position: absolute; top: 1.15rem; right: 1.15rem; z-index: 2;
  padding: .3rem .7rem; border-radius: 999px; font-size: .68rem; font-weight: 800;
  letter-spacing: .09em; text-transform: uppercase;
  background: var(--brand-grad); color: #fff;
}
.plan__ico { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: rgba(53, 190, 224, .16); color: var(--cyan-400); margin-bottom: 1.1rem; }
.plan__ico svg { width: 23px; height: 23px; }
.plan h3 { color: #fff; font-size: 1.35rem; margin-bottom: .35em; }
.plan__sub { color: rgba(255, 255, 255, .66); font-size: .95rem; margin: 0 0 1.5rem; }

.plan__price { display: flex; align-items: baseline; gap: .4rem; flex-wrap: wrap; margin-bottom: .3rem; }
.plan__price em { font-style: normal; font-size: .85rem; font-weight: 600; color: rgba(255, 255, 255, .6); }
.plan__price b {
  font-size: clamp(2.4rem, 1.9rem + 2vw, 3.2rem); font-weight: 800; letter-spacing: -.04em; line-height: 1;
  background: linear-gradient(100deg, #35bee0, #3fbfa8); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.plan__price span { font-size: .95rem; font-weight: 600; color: rgba(255, 255, 255, .72); }
.plan__note { font-size: .82rem; color: rgba(255, 255, 255, .5); margin: 0 0 1.6rem; }

.plan ul { list-style: none; padding: 0; margin: 0 0 1.9rem; display: grid; gap: .62rem; }
.plan li { display: flex; align-items: flex-start; gap: .6rem; margin: 0; font-size: .93rem; color: rgba(255, 255, 255, .8); }
.plan li::before {
  content: ""; flex: none; width: 18px; height: 18px; margin-top: 3px; border-radius: 50%;
  background: rgba(53, 190, 224, .16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2335bee0' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/11px no-repeat;
}
.plan .btn { margin-top: auto; width: 100%; }

/* Striscia "cosa è incluso sempre" */
.included { list-style: none; padding: 0; margin: 0; display: grid; gap: .9rem 2rem; grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); }
.included li { display: flex; align-items: flex-start; gap: .6rem; margin: 0; font-size: .92rem; color: rgba(255, 255, 255, .74); }
.included svg { width: 18px; height: 18px; flex: none; color: var(--teal-400); margin-top: 3px; }

@media (max-width: 620px) { .plan { padding: 1.7rem 1.4rem 1.8rem; } }

/* --------------------------------------------------------------------------
   FIX bordo pulsanti — deve restare in fondo al foglio.
   `.btn` ha un bordo trasparente di 1px e i modificatori usano la shorthand
   `background`, che reimposta background-clip a border-box: il gradiente
   finiva sotto il bordo e Chrome disegnava una scheggia colorata sul lato
   sinistro della pillola. Con padding-box lo sfondo si ferma prima del bordo.
   -------------------------------------------------------------------------- */
.btn, .btn:hover, .btn:focus { background-clip: padding-box; }

/* --------------------------------------------------------------------------
   CONTRASTO PULSANTI PRIMARI
   Il gradiente decorativo del marchio finisce sul teal (#3fbfa8): il testo
   bianco sopra arrivava a ~2,2:1, sotto la soglia WCAG AA. I pulsanti usano
   quindi una variante che si ferma su un ciano più profondo (~5,4:1),
   mentre il gradiente originale resta per bordi, titoli e decorazioni.
   -------------------------------------------------------------------------- */
.btn--primary { background-image: linear-gradient(120deg, #10305a 0%, #175f8a 55%, #14719f 100%); }
.btn--primary:hover { background-image: linear-gradient(120deg, #143a69 0%, #1a6d9c 55%, #1780b3 100%); }

/* --------------------------------------------------------------------------
   reCAPTCHA v3
   Il badge fluttuante viene nascosto: le linee guida di Google lo consentono
   a condizione di mostrare la nota testuale con i link a privacy e termini,
   presente sotto il modulo contatti.
   -------------------------------------------------------------------------- */
.grecaptcha-badge { visibility: hidden; }
