/* ===========================================================
   S.Q. Labs — Design System
   Palette ispirata al logo: navy profondo + cyan brillante
   =========================================================== */

:root {
  /* Brand — navy profondo + cyan del logo + blu elettrico (nuovo) */
  --navy-900: #040a14;
  --navy-800: #081222;
  --navy-700: #0e1a2c;
  --navy-600: #14253c;
  --cyan-400: #29c6ef;
  --cyan-500: #19b6e6;
  --cyan-600: #0c97c6;
  --blue-400: #4f8cff;       /* secondo accento: blu elettrico */
  --blue-500: #3b78f0;
  --blue-600: #2563eb;
  --cyan-soft: rgba(41, 198, 239, .16);
  --blue-soft: rgba(79, 140, 255, .16);

  /* Neutrals — DARK THEME (near-black premium) */
  --ink: #eaf2fb;
  --body: #93a6bf;
  --muted: #6f8095;
  --line: rgba(120, 160, 210, .12);
  --bg: #060b14;
  --bg-soft: #0a1424;
  --bg-tint: #0f1f33;
  --white: #0e1a2c;          /* superficie card elevata */
  --surface-2: #13243d;
  --accent: var(--cyan-400);     /* accento testi su superfici */
  --marquee-item: #7d92ac;
  --body-glow: radial-gradient(860px circle at 8% -6%, rgba(79,140,255,.10), transparent 54%),
               radial-gradient(820px circle at 100% 8%, rgba(41,198,239,.10), transparent 50%),
               radial-gradient(700px circle at 60% 120%, rgba(79,140,255,.06), transparent 55%);

  /* Effects */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow-md: 0 14px 38px rgba(0, 0, 0, .46);
  --shadow-lg: 0 30px 70px rgba(0, 0, 0, .58);
  --shadow-cyan: 0 14px 38px rgba(41, 198, 239, .32);
  --glow-cyan: 0 0 0 1px rgba(41,198,239,.28), 0 0 46px rgba(41,198,239,.20);
  --glow-blue: 0 0 0 1px rgba(79,140,255,.30), 0 0 46px rgba(79,140,255,.22);

  --radius: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;
  /* firma "squadrato + tondo" ispirata al logo: due angoli tondi, due vivi */
  --radius-hybrid: 22px 6px 22px 6px;
  --radius-hybrid-sm: 14px 4px 14px 4px;

  --container: 1180px;
  /* firma cromatica: blu elettrico → cyan del logo */
  --gradient-cyan: linear-gradient(120deg, var(--blue-400) 0%, var(--cyan-400) 100%);
  --gradient-navy: linear-gradient(160deg, var(--navy-800) 0%, var(--navy-900) 100%);

  --font-head: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* ---------- TEMA CHIARO (giorno) — off-white freddo, raffinato ---------- */
:root[data-theme="light"] {
  --ink: #0e1a2c;
  --body: #46586e;
  --muted: #6b7a90;
  --line: #e2eaf2;
  --bg: #f7fafd;
  --bg-soft: #eef4fa;
  --bg-tint: #e7f1f9;
  --white: #ffffff;
  --surface-2: #ffffff;
  --cyan-soft: #d6f0fb;
  --blue-soft: #e0e9ff;
  --accent: var(--cyan-600);
  --blue-400: #2563eb;       /* in chiaro il blu è più scuro per contrasto */
  --marquee-item: #5d6e83;
  --shadow-sm: 0 1px 2px rgba(14,26,44,.06), 0 2px 8px rgba(14,26,44,.05);
  --shadow-md: 0 10px 30px rgba(14,26,44,.10);
  --shadow-lg: 0 24px 56px rgba(14,26,44,.15);
  --shadow-cyan: 0 14px 34px rgba(37,99,235,.22);
  --glow-cyan: 0 0 0 1px rgba(12,151,198,.22), 0 0 36px rgba(37,99,235,.12);
  /* firma chiara: blu → cyan scuro */
  --gradient-cyan: linear-gradient(120deg, #2563eb 0%, #0c97c6 100%);
  --gradient-navy: linear-gradient(160deg, #0e1f38 0%, #07101f 100%);
  --body-glow: radial-gradient(780px circle at 6% -6%, rgba(37,99,235,.08), transparent 54%),
               radial-gradient(820px circle at 108% 10%, rgba(12,151,198,.07), transparent 52%);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--body);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
button { font-family: inherit; cursor: pointer; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -.02em;
}
h1 { font-size: clamp(2.1rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
p { color: var(--body); }
strong { color: var(--ink); font-weight: 600; }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}
.section { padding-block: clamp(64px, 9vw, 120px); }
.section--soft { background: var(--bg-soft); }
.section--tint { background: var(--bg-tint); }
.section--navy { background: var(--gradient-navy); color: #cfe0f0; position: relative; overflow: hidden; }
.section--navy::after {
  content: ""; position: absolute;
  right: -100px; top: -90px;
  width: 360px; height: 360px;
  background: var(--cyan-400);
  -webkit-mask: url(/assets/img/deco-mark.png) center / contain no-repeat;
  mask: url(/assets/img/deco-mark.png) center / contain no-repeat;
  opacity: .08; pointer-events: none;
}
.section--navy .container { position: relative; z-index: 1; }
.section--navy h1, .section--navy h2, .section--navy h3 { color: #fff; }

.center { text-align: center; }
.narrow { max-width: 760px; margin-inline: auto; }

/* ---------- Eyebrow / headings ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--cyan-600);
  margin-bottom: 16px;
}
.section--navy .eyebrow { color: var(--cyan-400); }
.eyebrow::before {
  content: "";
  width: 14px; height: 14px;
  background: var(--gradient-cyan);
  border-radius: var(--radius-hybrid-sm);
}
.lead {
  font-size: clamp(1.05rem, 1.6vw, 1.22rem);
  color: var(--body);
  max-width: 60ch;
}
.center .lead { margin-inline: auto; }
.section--navy .lead { color: #b8cae0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .98rem;
  border: 1.5px solid transparent;
  transition: transform .18s ease, box-shadow .18s ease, background .2s ease, color .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--gradient-cyan); color: #fff; box-shadow: var(--shadow-cyan); }
.btn-primary:hover { box-shadow: 0 16px 38px rgba(22, 180, 230, .45); }
.btn-dark { background: var(--navy-800); color: #fff; }
.btn-dark:hover { background: var(--navy-700); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-outline:hover { border-color: var(--cyan-500); color: var(--cyan-600); }
.section--navy .btn-outline,
.hero .btn-outline,
.page-hero .btn-outline { color: #fff; border-color: rgba(255,255,255,.28); }
.section--navy .btn-outline:hover,
.hero .btn-outline:hover,
.page-hero .btn-outline:hover { border-color: var(--cyan-400); color: var(--cyan-400); }
.btn-ghost { background: rgba(255,255,255,.08); color:#fff; border-color: rgba(255,255,255,.16); }
.btn-lg { padding: 16px 34px; font-size: 1.05rem; }
/* freccia "chip ibrido": riquadro con la firma angoli misti del brand */
.arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  width: 1.7em; height: 1.7em;
  flex-shrink: 0;
  border: 1.5px solid currentColor;
  border-radius: var(--radius-hybrid-sm);
  color: inherit;
  transition: transform .2s ease, background .2s ease, border-color .2s ease, color .2s ease;
}
.arrow svg { width: .92em; height: .92em; }
.btn:hover .arrow,
a:hover .arrow,
.card:hover .arrow {
  transform: translateX(3px);
  background: var(--gradient-cyan);
  border-color: transparent;
  color: #fff;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.site-header.scrolled { border-color: var(--line); box-shadow: var(--shadow-sm); }
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 24px;
}
.brand { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
.brand-mark { height: 40px; width: auto; }
.brand-name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.32rem;
  letter-spacing: .02em;
  color: var(--navy-800);
}
.brand-name b { color: var(--cyan-500); font-weight: 700; }
.site-footer .brand-name { color: #fff; }
.site-footer .brand-name b { color: var(--cyan-400); }
.site-footer .brand-mark { filter: brightness(0) invert(1); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.nav-links a {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: .95rem;
  color: var(--navy-800);
  padding: 9px 14px;
  border-radius: var(--radius-pill);
  transition: background .2s ease, color .2s ease;
}
.nav-links a:hover { background: var(--bg-tint); color: var(--cyan-600); }
.nav-links a.active { color: var(--cyan-600); }
.nav-cta { margin-left: 8px; }
/* Nav dropdown (Settori) */
.nav-item { position: relative; display: flex; align-items: center; }
.nav-drop-toggle .caret { font-size: .7em; opacity: .7; margin-left: 3px; }
.dropdown {
  position: absolute;
  top: 100%; left: 0;
  min-width: 250px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-hybrid-sm);
  box-shadow: var(--shadow-md);
  padding: 8px;
  display: flex; flex-direction: column; gap: 2px;
  opacity: 0; visibility: hidden;
  transform: translateY(8px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
  z-index: 60;
}
.nav-item:hover > .dropdown,
.nav-item:focus-within > .dropdown { opacity: 1; visibility: visible; transform: none; }
.dropdown a { white-space: nowrap; }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  width: 44px; height: 44px;
  position: relative;
}
.nav-toggle span {
  position: absolute;
  left: 11px; right: 11px;
  height: 2px;
  background: var(--navy-800);
  border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease, top .25s ease;
}
.nav-toggle span:nth-child(1) { top: 16px; }
.nav-toggle span:nth-child(2) { top: 22px; }
.nav-toggle span:nth-child(3) { top: 28px; }
.nav-toggle.open span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { top: 22px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--gradient-navy);
  color: #d6e4f3;
  overflow: hidden;
  padding-block: clamp(80px, 12vw, 150px);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(520px circle at 82% 18%, rgba(46,199,243,.22), transparent 60%),
    radial-gradient(420px circle at 8% 92%, rgba(46,199,243,.12), transparent 60%);
  pointer-events: none;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 40%, transparent 100%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 2; }
/* decorazione "marchio": anelli concentrici + nodi del logo */
.hero::after, .page-hero::after {
  content: "";
  position: absolute;
  right: -130px; top: 50%;
  transform: translateY(-50%);
  width: 540px; height: 540px;
  background: var(--cyan-400);
  -webkit-mask: url(/assets/img/deco-mark.png) center / contain no-repeat;
  mask: url(/assets/img/deco-mark.png) center / contain no-repeat;
  opacity: .12;
  pointer-events: none;
  z-index: 1;
}
.page-hero::after { width: 420px; height: 420px; right: -90px; opacity: .1; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: rgba(46,199,243,.12);
  border: 1px solid rgba(46,199,243,.3);
  color: var(--cyan-400);
  font-family: var(--font-head);
  font-weight: 500;
  font-size: .82rem;
  letter-spacing: .03em;
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  margin-bottom: 26px;
}
.hero-badge .dot { width: 7px; height: 7px; background: var(--cyan-400); border-radius: 50%; box-shadow: 0 0 0 4px rgba(46,199,243,.25); }
.hero h1 { color: #fff; max-width: 16ch; }
.hero h1 .accent { background: var(--gradient-cyan); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub {
  font-size: clamp(1.05rem, 1.7vw, 1.3rem);
  color: #aebfd4;
  max-width: 56ch;
  margin-top: 22px;
}
.hero-sub strong, .page-hero p strong { color: #fff; font-weight: 600; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  margin-top: 60px;
  padding-top: 36px;
  border-top: 1px solid rgba(255,255,255,.1);
}
.hero-stats .stat strong {
  display: block;
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: #fff;
  background: var(--gradient-cyan);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-stats .stat span { font-size: .9rem; color: #93a6bf; }

/* ---------- Section header ---------- */
.section-head { max-width: 680px; margin-bottom: 56px; }
.center .section-head, .section-head.center { margin-inline: auto; }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 26px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-hybrid);
  padding: 34px 30px;
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: #cfe7f2; }
.card h3 { margin-bottom: 10px; }
.card p { font-size: .98rem; }
.card-icon {
  width: 54px; height: 54px;
  display: grid; place-items: center;
  border-radius: var(--radius-hybrid-sm);
  background: var(--bg-tint);
  color: var(--cyan-600);
  margin-bottom: 22px;
}
.card-icon svg { width: 26px; height: 26px; }

/* feature list with check */
.checklist li {
  position: relative;
  padding-left: 34px;
  margin-bottom: 14px;
  color: var(--body);
}
.checklist li strong { color: var(--ink); }
.checklist li::before {
  content: "";
  position: absolute;
  left: 0; top: 3px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--cyan-soft);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%230c97c6' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}
.section--navy .checklist li { color: #c4d4e8; }
.section--navy .checklist li strong { color: #fff; }

/* ---------- Split (text + visual) ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 6vw, 80px);
  align-items: center;
}
.split.reverse .split-media { order: 2; }

/* ---------- Stat pills ---------- */
.pills { display: flex; flex-wrap: wrap; gap: 12px; }
.pill {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 9px 18px;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: .9rem;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}
.pill svg { width: 17px; height: 17px; color: var(--cyan-600); }

/* ---------- Product showcase cards ---------- */
.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-hybrid);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.product-card .pc-top {
  padding: 32px 32px 0;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.product-card .pc-top img { height: 93px; width: auto; max-width: 60%; object-fit: contain; }
.product-tag {
  font-family: var(--font-head); font-size: .72rem; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--cyan-600); background: var(--bg-tint);
  padding: 5px 12px; border-radius: var(--radius-pill);
  white-space: nowrap; flex-shrink: 0;
}
.product-card .pc-body { padding: 22px 32px 32px; flex: 1; display: flex; flex-direction: column; }
.product-card .pc-body h3 { font-size: 1.5rem; margin-bottom: 10px; }
.product-card .pc-body p { margin-bottom: 22px; }
.product-card .pc-foot { margin-top: auto; display: flex; align-items: center; gap: 16px; }

/* ---------- Steps / process ---------- */
.steps { counter-reset: step; display: grid; gap: 22px; grid-template-columns: repeat(4,1fr); }
.step {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-hybrid);
  padding: 30px 26px;
  position: relative;
}
.step .num {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  color: var(--cyan-600);
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border: 1.5px solid var(--cyan-soft);
  border-radius: var(--radius-hybrid-sm);
  margin-bottom: 20px;
  background: var(--bg-tint);
}
.step h3 { font-size: 1.12rem; margin-bottom: 8px; }
.step p { font-size: .94rem; }

/* ---------- Testimonials ---------- */
.testimonials { display: grid; gap: 26px; grid-template-columns: repeat(3,1fr); }
.quote {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-hybrid);
  padding: 32px 30px;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-sm);
}
.quote .stars { display: flex; gap: 3px; margin-bottom: 18px; color: #f6b73c; }
.quote .stars svg { width: 18px; height: 18px; }
.quote p { color: var(--ink); font-size: 1.02rem; line-height: 1.6; flex: 1; }
.quote .who { display: flex; align-items: center; gap: 14px; margin-top: 24px; }
.quote .avatar {
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--gradient-navy);
  color: #fff; display: grid; place-items: center;
  font-family: var(--font-head); font-weight: 600; font-size: 1rem;
  flex-shrink: 0;
}
.quote .who strong { display: block; color: var(--ink); font-family: var(--font-head); font-size: .98rem; }
.quote .who span { font-size: .86rem; color: var(--muted); }

/* ---------- Audio demo ---------- */
.audio-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-hybrid);
  padding: 26px;
  box-shadow: var(--shadow-sm);
}
.audio-card h4 { font-family: var(--font-head); font-size: 1.05rem; color: var(--ink); margin-bottom: 6px; }
.audio-card p { font-size: .92rem; margin-bottom: 16px; }
.audio-card audio { width: 100%; }

/* ---------- Pricing ---------- */
.pricing { display: grid; gap: 26px; grid-template-columns: repeat(3,1fr); align-items: stretch; }
.price-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-hybrid);
  padding: 36px 30px;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease;
}
.price-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.price-card.featured {
  border-color: var(--cyan-400);
  box-shadow: 0 18px 50px rgba(22,180,230,.18);
}
.price-card.featured::before {
  content: "Il pi\f9\20scelto"; /* \f9 = ù (escape ASCII, immune da problemi di encoding) */
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--gradient-cyan); color: #fff;
  font-family: var(--font-head); font-weight: 600; font-size: .76rem;
  letter-spacing: .04em; padding: 6px 16px; border-radius: var(--radius-pill);
  box-shadow: var(--shadow-cyan); white-space: nowrap;
}
.price-card .plan-name { font-family: var(--font-head); font-weight: 700; color: var(--ink); font-size: 1.2rem; }
.price-card .plan-for { font-size: .9rem; color: var(--muted); margin: 8px 0 22px; min-height: 42px; }
.price-card .price { display: flex; align-items: flex-start; gap: 4px; margin-bottom: 4px; }
.price-card .price .cur { font-family: var(--font-head); font-size: 1.3rem; font-weight: 600; color: var(--ink); margin-top: 6px; }
.price-card .price .amount { font-family: var(--font-head); font-size: 3rem; font-weight: 700; color: var(--ink); line-height: 1; letter-spacing: -.03em; }
.price-card .price .per { font-size: .88rem; color: var(--muted); align-self: flex-end; margin-bottom: 8px; }
.price-card .setup { font-size: .85rem; color: var(--cyan-600); font-weight: 500; margin-bottom: 22px; }
.price-card ul { margin: 4px 0 28px; }
.price-card ul li { position: relative; padding-left: 28px; margin-bottom: 12px; font-size: .94rem; }
.price-card ul li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%2316b4e6' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center;
}
.price-card .btn { margin-top: auto; width: 100%; }
.price-note { font-size: .88rem; color: var(--muted); margin-top: 22px; text-align: center; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 820px; margin-inline: auto; display: grid; gap: 14px; }
.faq-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.faq-item.open { border-color: #cfe7f2; box-shadow: var(--shadow-sm); }
.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 22px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--ink);
}
.faq-q .chev {
  flex-shrink: 0; width: 24px; height: 24px;
  display: grid; place-items: center;
  color: var(--cyan-600);
  transition: transform .25s ease;
}
.faq-item.open .faq-q .chev { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-a-inner { padding: 0 24px 24px; color: var(--body); font-size: .98rem; }
.faq-cat-title { font-family: var(--font-head); color: var(--cyan-600); font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; margin: 38px 0 14px; max-width: 820px; margin-inline: auto; font-weight: 600; }
.faq-cat-title:first-of-type { margin-top: 0; }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--gradient-navy);
  border-radius: var(--radius-lg);
  padding: clamp(40px, 6vw, 72px);
  position: relative;
  overflow: hidden;
  text-align: center;
}
.cta-band::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(420px circle at 80% 20%, rgba(46,199,243,.25), transparent 60%);
}
.cta-band::after {
  content: ""; position: absolute;
  left: -90px; bottom: -110px;
  width: 360px; height: 360px;
  background: #fff;
  -webkit-mask: url(/assets/img/deco-mark.png) center / contain no-repeat;
  mask: url(/assets/img/deco-mark.png) center / contain no-repeat;
  opacity: .06;
  pointer-events: none;
}
.cta-band > * { position: relative; z-index: 2; }
.cta-band h2 { color: #fff; margin-bottom: 14px; }
.cta-band p { color: #aebfd4; max-width: 52ch; margin: 0 auto 30px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(36px, 5vw, 64px); align-items: start; }
.contact-info .info-row { display: flex; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.contact-info .info-row:last-child { border-bottom: none; }
.contact-info .info-ic {
  width: 46px; height: 46px; flex-shrink: 0;
  display: grid; place-items: center;
  background: var(--bg-tint); color: var(--cyan-600);
  border-radius: var(--radius-hybrid-sm);
}
.contact-info .info-ic svg { width: 22px; height: 22px; }
.contact-info h4 { font-family: var(--font-head); font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; font-weight: 600; }
.contact-info .info-row a, .contact-info .info-row p { color: var(--ink); font-size: 1.02rem; }
.contact-info .info-row a:hover { color: var(--cyan-600); }

.form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-hybrid);
  padding: clamp(28px, 4vw, 40px);
  box-shadow: var(--shadow-md);
}
.field { margin-bottom: 18px; }
.field label { display: block; font-family: var(--font-head); font-size: .86rem; font-weight: 500; color: var(--ink); margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%;
  font-family: inherit;
  font-size: 1rem;
  color: var(--ink);
  padding: 13px 16px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--bg-soft);
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--cyan-400); background: var(--surface-2);
  box-shadow: 0 0 0 4px rgba(46,199,243,.16);
}
.field textarea { resize: vertical; min-height: 130px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.check-row { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 22px; font-size: .9rem; color: var(--body); }
.check-row input { width: 18px; height: 18px; margin-top: 3px; flex-shrink: 0; accent-color: var(--cyan-500); }
.form-note { font-size: .82rem; color: var(--muted); margin-top: 16px; text-align: center; }

/* ---------- Calculator (Andromeda) ---------- */
.calc {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-hybrid); padding: clamp(28px,4vw,40px);
  box-shadow: var(--shadow-md); max-width: 560px; margin-inline: auto;
}
.calc-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.calc-row label { font-family: var(--font-head); font-weight: 600; color: var(--ink); }
.calc-row label small { display: block; font-weight: 400; font-family: var(--font-body); font-size: .82rem; color: var(--muted); }
.stepper { display: flex; align-items: center; gap: 12px; }
.stepper button {
  width: 38px; height: 38px; border-radius: 10px;
  border: 1.5px solid var(--line); background: var(--bg-soft);
  font-size: 1.3rem; color: var(--cyan-600); line-height: 1;
  display: grid; place-items: center; transition: all .15s ease;
}
.stepper button:hover { border-color: var(--cyan-400); background: var(--bg-tint); }
.stepper output { font-family: var(--font-head); font-weight: 700; font-size: 1.2rem; color: var(--ink); min-width: 28px; text-align: center; }
.calc-total { display: flex; align-items: baseline; justify-content: space-between; margin-top: 22px; }
.calc-total span { font-family: var(--font-head); font-weight: 600; color: var(--ink); }
.calc-total strong { font-family: var(--font-head); font-size: 2rem; color: var(--cyan-600); }

/* ---------- Logos / trust ---------- */
.trust { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 40px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: #93a6bf; padding-top: 70px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 50px; }
.footer-brand img { height: 50px; margin-bottom: 18px; }
.footer-brand p { color: #8298b5; font-size: .95rem; max-width: 30ch; }
.site-footer h5 { font-family: var(--font-head); color: #fff; font-size: .92rem; letter-spacing: .04em; margin-bottom: 18px; text-transform: uppercase; }
.site-footer ul li { margin-bottom: 11px; }
.site-footer ul li a, .footer-contact a, .footer-contact p { color: #93a6bf; font-size: .95rem; transition: color .2s ease; }
.site-footer ul li a:hover, .footer-contact a:hover { color: var(--cyan-400); }
.footer-contact p { margin-bottom: 11px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 24px 0;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px;
  font-size: .86rem; color: #6f87a6;
}
.footer-bottom a { color: #6f87a6; }
.footer-bottom a:hover { color: var(--cyan-400); }
.footer-bottom .legal-links { display: flex; gap: 20px; flex-wrap: wrap; }

/* ---------- Breadcrumb / page hero ---------- */
.page-hero {
  background: var(--gradient-navy);
  color: #cfe0f0;
  padding-block: clamp(60px, 9vw, 110px);
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(500px circle at 85% 25%, rgba(46,199,243,.2), transparent 60%);
}
.page-hero .container { position: relative; z-index: 2; }
/* breadcrumb stile "terminale" coerente con .eyebrow--term */
.breadcrumb {
  font-family: var(--font-mono);
  font-size: .78rem;
  letter-spacing: .04em;
  text-transform: none;
  color: var(--cyan-400);
  margin-bottom: 18px;
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--cyan-400); opacity: .82; transition: opacity .2s ease; }
.breadcrumb a:hover { color: var(--cyan-400); opacity: 1; }
.breadcrumb .sep { font-size: 0; display: inline-flex; }
.breadcrumb .sep::before { content: "/"; font-size: .78rem; color: var(--cyan-600); opacity: .75; }
.breadcrumb::after {
  content: "";
  display: inline-block;
  width: .5em; height: 1em;
  background: var(--cyan-400);
  box-shadow: 0 0 10px rgba(41,198,239,.8);
  animation: caretBlink 1.05s steps(1) infinite;
}
.page-hero h1 { color: #fff; }
.page-hero p { color: #aebfd4; max-width: 60ch; margin-top: 16px; }

/* ---------- Legal pages ---------- */
.legal { max-width: 800px; margin-inline: auto; }
.legal h2 { font-size: 1.5rem; margin: 36px 0 14px; }
.legal h3 { font-size: 1.15rem; margin: 26px 0 10px; }
.legal p, .legal li { font-size: 1rem; margin-bottom: 12px; }
.legal ul { list-style: disc; padding-left: 22px; margin-bottom: 16px; }
.legal a { color: var(--cyan-600); text-decoration: underline; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .grid-4 { grid-template-columns: repeat(2,1fr); }
  .steps { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 860px) {
  .nav-links {
    position: fixed;
    top: 76px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: rgba(10, 18, 32, .96);
    backdrop-filter: saturate(160%) blur(14px);
    padding: 18px 22px 26px;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .22s ease, transform .22s ease;
    max-height: calc(100vh - 76px);
    overflow-y: auto;
  }
  .nav-links.open { opacity: 1; transform: none; pointer-events: auto; }
  .nav-links a { padding: 13px 14px; font-size: 1rem; }
  .nav-cta { margin: 8px 0 0; }
  .nav-item { flex-direction: column; align-items: stretch; width: 100%; }
  .dropdown {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: none; background: transparent;
    padding: 0 0 4px 14px; min-width: 0;
  }
  .nav-toggle { display: block; }
  .split, .contact-grid { grid-template-columns: 1fr; }
  .split.reverse .split-media { order: 0; }
  .grid-2, .grid-3, .pricing, .testimonials { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  :root[data-theme="light"] .nav-links {
    background: rgba(255,255,255,.98);
    border-bottom-color: var(--line);
  }
  :root[data-theme="light"] .dropdown {
    background: var(--bg-soft);
    border: 1px solid var(--line);
    border-radius: var(--radius-hybrid-sm);
    padding: 6px 0 6px 10px;
    margin-top: 4px;
  }
  :root[data-theme="light"] .dropdown a { color: var(--ink); }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .grid-4, .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 26px; }
  .btn { width: 100%; }
  .hero-actions .btn, .cta-actions .btn { width: 100%; }
}

/* ===========================================================
   MODERN DARK — tipografia display, glow, mono, ticker, bento
   =========================================================== */

/* tipografia display più grande e moderna */
h1 { font-size: clamp(2.6rem, 6.4vw, 4.9rem); font-weight: 600; letter-spacing: -.035em; line-height: 1.03; }
h2 { font-size: clamp(2rem, 4vw, 3.1rem); font-weight: 600; letter-spacing: -.025em; line-height: 1.08; }
h3 { font-weight: 600; letter-spacing: -.015em; }

/* glow ambientale su tutta la pagina */
body {
  background: var(--body-glow), var(--bg);
  background-attachment: fixed;
}

/* transizione morbida al cambio tema */
body, .section--soft, .section--tint, .card, .product-card, .price-card,
.bento-cell, .faq-item, .audio-card, .quote, .form-card, .calc, .pill,
.marquee, .field input, .field select, .field textarea, .step {
  transition: background-color .3s ease, border-color .3s ease, color .25s ease, box-shadow .3s ease;
}

/* eyebrow stile terminale/monospace */
.eyebrow { font-family: var(--font-mono); font-weight: 500; font-size: .73rem; letter-spacing: .16em; color: var(--accent); gap: 10px; }

/* accenti su superfici (cyan brillante di notte, più scuro di giorno) */
.product-tag, .card-icon, .contact-info .info-ic, .pill svg,
.stepper button, .calc-total strong, .faq-cat-title, .legal a,
.nav-links a.active, .contact-info .info-row a:hover { color: var(--accent); }
.legal a { text-decoration-color: rgba(46,199,243,.4); }

/* header vetro scuro + logo bianco */
.site-header { background: rgba(8,14,26,.72); -webkit-backdrop-filter: saturate(180%) blur(16px); backdrop-filter: saturate(180%) blur(16px); }
.site-header.scrolled { box-shadow: 0 10px 34px rgba(0,0,0,.45); }
.nav-links a { color: #c2d2e6; }
.nav-links a:hover { background: rgba(46,199,243,.1); color: #fff; }
.nav-links a.active { color: var(--cyan-400); }
.brand-name { color: #fff; }
.brand-name b { color: var(--cyan-400); }
.brand-mark { filter: brightness(0) invert(1); }
.nav-toggle span { background: #fff; }

/* bottone "dark" diventa chiaro per contrasto */
.btn-dark { background: #fff; color: var(--navy-900); }
.btn-dark:hover { background: #dff2fb; }
.btn-outline { color: var(--ink); border-color: var(--line); }
.btn-outline:hover { border-color: var(--cyan-400); color: var(--cyan-400); }

/* hover card con bordo/alone cyan */
.card:hover, .product-card:hover, .price-card:hover { border-color: rgba(46,199,243,.38); box-shadow: var(--shadow-lg); }
.faq-item.open { border-color: rgba(46,199,243,.4); }

/* check list su scuro */
.checklist li::before {
  background-color: rgba(46,199,243,.15);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%232ec7f3' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
}
.field input::placeholder, .field textarea::placeholder { color: var(--muted); }

/* CTA band come pannello luminoso */
.cta-band { border: 1px solid rgba(46,199,243,.28); box-shadow: var(--glow-cyan); }

/* deco-mark del logo come watermark statico (orientamento corretto) */

/* ---------- Ticker / marquee ---------- */
.marquee {
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: var(--bg-soft);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track { display: flex; width: max-content; animation: marquee 34s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-group { display: flex; align-items: center; flex-shrink: 0; }
.marquee-item {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .82rem;
  color: var(--marquee-item);
  padding: 16px 0;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}
.marquee-item span { padding-inline: 30px; }
.marquee-item::after { content: "◆"; color: var(--cyan-400); font-size: .6rem; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }

/* indice grande editoriale (numeri sezione) */
.kicker-row { display: flex; align-items: baseline; gap: 16px; margin-bottom: 14px; }
.kicker-num { font-family: var(--font-mono); font-size: .8rem; color: var(--cyan-400); letter-spacing: .1em; }

/* ---------- Bento grid ---------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.bento-cell {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-hybrid);
  padding: 32px;
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  display: flex; flex-direction: column;
}
.bento-cell:hover { transform: translateY(-4px); border-color: rgba(46,199,243,.38); box-shadow: var(--shadow-lg); }
.bento-cell.col-4 { grid-column: span 4; }
.bento-cell.col-3 { grid-column: span 3; }
.bento-cell.col-2 { grid-column: span 2; }
.bento-cell.col-6 { grid-column: span 6; }
.bento-cell .b-num { font-family: var(--font-mono); font-size: .76rem; color: var(--cyan-400); letter-spacing: .1em; }
.bento-cell h3 { margin: 16px 0 8px; }
.bento-cell.accent .b-stat { margin-top: 22px; }
.bento-cell p { font-size: .96rem; }
.bento-cell .b-stat { font-family: var(--font-head); font-weight: 600; font-size: clamp(2.2rem, 4vw, 3rem); letter-spacing: -.03em;
  background: var(--gradient-cyan); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.bento-cell.accent { background: linear-gradient(150deg, rgba(46,199,243,.14), rgba(15,28,48,.4)); border-color: rgba(46,199,243,.3); }
@media (max-width: 860px) {
  .bento-cell.col-4, .bento-cell.col-3, .bento-cell.col-2, .bento-cell.col-6 { grid-column: span 6; }
}

/* ===========================================================
   THEME TOGGLE (giorno / notte)
   =========================================================== */
.nav-right { display: flex; align-items: center; gap: 6px; }
.theme-toggle {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.05);
  border-radius: var(--radius-hybrid-sm);
  color: #d7e6f5;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.theme-toggle:hover { border-color: var(--cyan-400); color: var(--cyan-400); background: rgba(46,199,243,.1); }
.theme-toggle svg { width: 20px; height: 20px; }
.theme-toggle .ic-moon { display: none; }
:root[data-theme="light"] .theme-toggle .ic-sun { display: none; }
:root[data-theme="light"] .theme-toggle .ic-moon { display: block; }

/* override per il TEMA CHIARO su elementi con colori fissi */
:root[data-theme="light"] .site-header {
  background: rgba(255,255,255,.88);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
}
:root[data-theme="light"] .site-header.scrolled { box-shadow: var(--shadow-sm); }
:root[data-theme="light"] .nav-links a { color: var(--navy-800); }
:root[data-theme="light"] .nav-links a:hover { background: var(--bg-tint); color: var(--cyan-600); }
:root[data-theme="light"] .nav-links a.active { color: var(--cyan-600); }
:root[data-theme="light"] .brand-name { color: var(--navy-800); }
:root[data-theme="light"] .brand-name b { color: var(--cyan-500); }
:root[data-theme="light"] .brand-mark { filter: none; }
:root[data-theme="light"] .nav-toggle span { background: var(--navy-800); }
:root[data-theme="light"] .theme-toggle {
  border-color: var(--line);
  background: var(--bg-soft);
  color: var(--navy-800);
}
:root[data-theme="light"] .theme-toggle:hover {
  border-color: var(--cyan-600);
  color: var(--cyan-600);
  background: var(--cyan-soft);
}
:root[data-theme="light"] .dropdown {
  background: var(--white);
  border-color: rgba(14,26,44,.16);
  box-shadow: var(--shadow-lg), 0 4px 20px rgba(14,26,44,.12);
}
:root[data-theme="light"] .dropdown a { color: var(--ink); }
:root[data-theme="light"] .dropdown a:hover {
  background: var(--bg-tint);
  color: var(--cyan-600);
}
:root[data-theme="light"] .btn-dark { background: var(--navy-800); color: #fff; }
:root[data-theme="light"] .btn-dark:hover { background: var(--navy-700); }
:root[data-theme="light"] .bento-cell .b-num { color: var(--cyan-600); }
:root[data-theme="light"] .bento-cell.accent { background: linear-gradient(150deg, rgba(46,199,243,.12), rgba(255,255,255,.5)); border-color: rgba(46,199,243,.35); }
:root[data-theme="light"] .checklist li::before {
  background-color: var(--cyan-soft);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%230c97c6' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
}
:root[data-theme="light"] .card:hover,
:root[data-theme="light"] .product-card:hover,
:root[data-theme="light"] .price-card:hover,
:root[data-theme="light"] .bento-cell:hover { border-color: rgba(12,151,198,.4); }

/* ===========================================================
   SCI-FI FX LAYER — canvas neurale, griglia animata, aurora,
   glitch, spotlight, tilt/glow card, scanline, waveform
   =========================================================== */

/* ---- Heroes: profondità e contenuto sopra agli effetti ---- */
.hero, .page-hero { isolation: isolate; }
.hero .container, .page-hero .container { z-index: 3; }

/* canvas rete neurale (iniettato via JS) */
.fx-canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  z-index: 1;
  pointer-events: none;
  opacity: .9;
}
:root[data-theme="light"] .fx-canvas { opacity: .55; }

/* griglia animata in profondità */
.hero-grid {
  background-size: 56px 56px;
  animation: gridScroll 22s linear infinite;
  will-change: background-position;
}
.page-hero .hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(140,180,230,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(140,180,230,.05) 1px, transparent 1px);
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 25%, #000 35%, transparent 100%);
  mask-image: radial-gradient(ellipse 90% 80% at 50% 25%, #000 35%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}
@keyframes gridScroll { to { background-position: 0 -56px; } }

/* aurora / mesh in lento movimento dietro l'hero */
.hero::before, .page-hero::before { animation: auroraShift 16s ease-in-out infinite alternate; }
@keyframes auroraShift {
  0%   { transform: translate3d(0,0,0) scale(1); opacity: .9; }
  100% { transform: translate3d(-3%, 2%, 0) scale(1.08); opacity: 1; }
}

/* il watermark deco-mark ruota lentissimo per dare "vita" */
.hero::after, .page-hero::after { animation: spinMark 90s linear infinite; transform-origin: center; }
@keyframes spinMark {
  from { transform: translateY(-50%) rotate(0deg); }
  to   { transform: translateY(-50%) rotate(360deg); }
}
.page-hero::after { animation: spinMarkP 90s linear infinite; }
@keyframes spinMarkP { from { transform: rotate(0); } to { transform: rotate(360deg); } }

/* ---- Eyebrow stile terminale con caret lampeggiante ---- */
.eyebrow--term {
  color: var(--cyan-400);
  text-transform: none;
  letter-spacing: .04em;
}
.eyebrow--term::before { display: none; }
.term-caret {
  display: inline-block;
  width: .55em; height: 1.05em;
  margin-left: 2px;
  translate: 0 .18em;
  background: var(--cyan-400);
  box-shadow: 0 0 10px rgba(41,198,239,.8);
  animation: caretBlink 1.05s steps(1) infinite;
}
@keyframes caretBlink { 50% { opacity: 0; } }

/* ---- Titolo: accento con glow del gradiente ---- */
.hero h1 .accent {
  position: relative;
  filter: drop-shadow(0 0 24px rgba(79,140,255,.28));
}

/* testo in fase di "decodifica" scramble */
[data-scramble] .scrambling { color: var(--cyan-400); opacity: .9; }

/* ---- Waveform vocale (richiamo a ELIOS) ---- */
.waveform { display: inline-flex; align-items: flex-end; gap: 4px; height: 30px; }
.waveform span {
  width: 4px; height: 8px; border-radius: 2px;
  background: var(--gradient-cyan);
  animation: wave 1.1s ease-in-out infinite;
  opacity: .85;
}
.waveform span:nth-child(1){ animation-delay: -.9s } .waveform span:nth-child(2){ animation-delay: -.7s }
.waveform span:nth-child(3){ animation-delay: -.5s } .waveform span:nth-child(4){ animation-delay: -.3s }
.waveform span:nth-child(5){ animation-delay: -.1s } .waveform span:nth-child(6){ animation-delay: -.6s }
.waveform span:nth-child(7){ animation-delay: -.4s } .waveform span:nth-child(8){ animation-delay: -.2s }
@keyframes wave { 0%,100% { height: 7px } 50% { height: 30px } }
.wave-row { display: flex; align-items: center; gap: 14px; margin-top: 30px; }
.wave-row .wave-label { font-family: var(--font-mono); font-size: .76rem; letter-spacing: .14em; color: var(--muted); text-transform: uppercase; }

/* ---- CTA: sheen + glow rinforzato ---- */
.btn-primary { position: relative; overflow: hidden; box-shadow: var(--shadow-cyan), inset 0 0 0 1px rgba(255,255,255,.08); }
.btn-primary::after {
  content: ""; position: absolute; top: 0; left: -120%;
  width: 60%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.4), transparent);
  transform: skewX(-18deg);
  transition: left .55s ease;
}
.btn-primary:hover::after { left: 130%; }
.btn-primary:hover { box-shadow: 0 18px 44px rgba(41,198,239,.5), var(--glow-blue); }

/* ---- Card: glow che segue il mouse + tilt 3D ---- */
.fx-card { position: relative; transform-style: preserve-3d; will-change: transform; }
/* glow su ::after per non collidere col badge ::before della price-card.featured */
.fx-card::after {
  content: ""; position: absolute; inset: 0;
  border-radius: inherit;
  background: radial-gradient(220px circle at var(--mx, 50%) var(--my, 0%), rgba(41,198,239,.16), transparent 60%);
  opacity: 0; transition: opacity .25s ease;
  pointer-events: none; z-index: 0;
}
.fx-card:hover::after { opacity: 1; }
.fx-card > * { position: relative; z-index: 1; }
.fx-card.is-tilting {
  transform: perspective(1100px) rotateX(var(--rx,0deg)) rotateY(var(--ry,0deg)) translateY(-5px);
  transition: transform .12s ease, box-shadow .25s ease, border-color .25s ease;
}

/* ---- Particelle attorno al cursore ---- */
.fx-cursor {
  position: fixed; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: screen;
}
:root[data-theme="light"] .fx-cursor { mix-blend-mode: normal; opacity: .9; }
/* cursore custom attivo: nascondi la freccia di sistema (testo escluso) */
.has-fx-cursor, .has-fx-cursor * { cursor: none; }
.has-fx-cursor input, .has-fx-cursor textarea, .has-fx-cursor select,
.has-fx-cursor [contenteditable="true"] { cursor: text; }

/* ---- Reveal a cascata (stagger) ---- */
.reveal { transition-delay: calc(var(--i, 0) * 80ms); }

/* badge hero più "tech" */
.hero-badge { backdrop-filter: blur(6px); }

/* numeri statistici hero con micro-glow */
.hero-stats .stat strong { filter: drop-shadow(0 0 18px rgba(79,140,255,.25)); }

/* ---- Accessibilità / motion ridotto ---- */
@media (prefers-reduced-motion: reduce) {
  .hero-grid, .hero::before, .page-hero::before, .hero::after, .page-hero::after,
  .waveform span, .term-caret, .breadcrumb::after { animation: none !important; }
  .btn-primary::after { display: none; }
  .fx-cursor { display: none; }
}

/* ---- Mobile: niente effetti pesanti ---- */
@media (max-width: 860px) {
  .fx-cursor { display: none; }
  .fx-card.is-tilting { transform: translateY(-5px); }
}

/* ---- Mobile: card prodotto — impila logo e tag per evitare overflow ---- */
@media (max-width: 640px) {
  .product-card .pc-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  .product-card .pc-top img {
    height: 93px;
    max-height: 93px;
    max-width: 78%;
  }
  /* guardia generale anti-overflow orizzontale */
  .product-tag { max-width: 100%; }
}

/* ===========================================================
   Cookie consent — banner + modale preferenze
   =========================================================== */
.cc-banner {
  position: fixed;
  left: 16px; right: 16px; bottom: 16px;
  z-index: 9990;
  max-width: 720px;
  margin-inline: auto;
  display: none;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 20px 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-hybrid);
  box-shadow: var(--shadow-lg);
}
.cc-banner.is-open { display: flex; }
.cc-banner-text { flex: 1 1 320px; min-width: 240px; }
.cc-banner-text strong { display: block; font-family: var(--font-head); color: var(--ink); margin-bottom: 4px; }
.cc-banner-text p { font-size: .9rem; color: var(--body); margin: 0; }
.cc-banner-text a, .cc-links a { color: var(--cyan-600); font-weight: 600; }
.cc-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.cc-btn {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .9rem;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--line);
  background: transparent;
  color: var(--ink);
  transition: transform .15s ease, box-shadow .15s ease, border-color .2s ease, color .2s ease;
}
.cc-btn:hover { transform: translateY(-1px); }
.cc-btn-ghost:hover { border-color: var(--cyan-500); color: var(--cyan-600); }
.cc-btn-primary { background: var(--gradient-cyan); color: #fff; border-color: transparent; box-shadow: var(--shadow-cyan); }

/* modale preferenze */
.cc-modal { position: fixed; inset: 0; z-index: 9991; }
.cc-overlay {
  position: absolute; inset: 0;
  background: rgba(4, 10, 20, .55);
  backdrop-filter: blur(3px);
  opacity: 0; transition: opacity .2s ease;
}
.cc-modal.is-open .cc-overlay { opacity: 1; }
.cc-card {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -48%);
  width: min(540px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-hybrid);
  box-shadow: var(--shadow-lg);
  padding: 30px 28px;
  opacity: 0;
  transition: opacity .2s ease, transform .2s ease;
}
.cc-modal.is-open .cc-card { opacity: 1; transform: translate(-50%, -50%); }
.cc-card h3 { margin-bottom: 8px; }
.cc-intro { font-size: .92rem; color: var(--body); margin-bottom: 20px; }
.cc-cat {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  cursor: pointer;
}
.cc-cat span { display: flex; flex-direction: column; gap: 3px; }
.cc-cat strong { font-family: var(--font-head); color: var(--ink); font-size: .98rem; }
.cc-cat small { color: var(--muted); font-size: .82rem; line-height: 1.4; }
.cc-cat input { width: 20px; height: 20px; accent-color: var(--cyan-500); margin-top: 3px; flex-shrink: 0; }
.cc-card .cc-actions { margin-top: 22px; justify-content: flex-end; }
.cc-links { margin-top: 18px; font-size: .85rem; color: var(--muted); text-align: center; }

@media (max-width: 560px) {
  .cc-actions { width: 100%; }
  .cc-btn { flex: 1 1 auto; text-align: center; }
}

/* honeypot anti-spam (campo nascosto, non per gli utenti) */
.hp-field { position: absolute !important; left: -9999px !important; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* scrim per evidenziare il banner al primo accesso (non bloccante) */
.cc-scrim {
  position: fixed; inset: 0;
  z-index: 9989;
  background: rgba(4, 10, 20, .38);
  backdrop-filter: blur(2px);
  opacity: 0; visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
  pointer-events: none;
}
.cc-active .cc-scrim { opacity: 1; visibility: visible; }

/* fix: l'intera UI consenso sopra al canvas del cursore (z-index 9999) */
.cc-root { position: relative; z-index: 10000; }
/* sui controlli del banner mostra un puntatore normale (il cursore custom è nascosto) */
.has-fx-cursor .cc-root, .has-fx-cursor .cc-root * { cursor: auto; }
.has-fx-cursor .cc-root a,
.has-fx-cursor .cc-root button,
.has-fx-cursor .cc-root label,
.has-fx-cursor .cc-root [data-cc] { cursor: pointer; }
