/* ==========================================================================
   Orsiens — design system del brand
   Colori ufficiali: Nero #0A0A0A · Bianco #F5F5F5 (monocromatico)
   Font: Inter (Display Black per i titoli, spaziatura 42% per la scritta)
   Tema predefinito: scuro (come il brand board). Raggi interni < esterni.
   ========================================================================== */

:root {
  --bg: #0A0A0A;
  --surface: #111111;
  --surface-2: #171717;
  --text: #F5F5F5;          /* 18.1:1 su --bg */
  --muted: #A3A3A3;         /* 8.0:1 su --bg */
  --line: #232323;
  --line-strong: #3A3A3A;

  /* Il "colore d'azione" del brand è il bianco: bottoni bianchi su nero */
  --accent: #F5F5F5;
  --accent-hover: #FFFFFF;
  --accent-ink: #0A0A0A;
  --accent-soft: #1C1C1C;
  --accent-text: #E5E5E5;

  --warn: #FF9A8A;          /* solo per errori dei moduli */
  --rec: #FF7A6A;

  --glow-1: #FFFFFF; --glow-2: #BDBDBD; --glow-3: #8A8A8A;
  --aurora-op: .07;

  --r-xl: 24px; --r-lg: 18px; --r-md: 12px; --r-sm: 8px; --r-pill: 999px;
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 72px; --s9: 120px;

  --shadow-sm: 0 1px 2px rgba(0,0,0,.5);
  --shadow-md: 0 14px 34px -14px rgba(0,0,0,.7);
  --shadow-lg: 0 40px 80px -30px rgba(0,0,0,.85);

  --font-display: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --track-brand: .42em;

  --container: 1200px;
  --header-h: 72px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  color-scheme: dark;
}

/* Tema chiaro (versione su bianco del brand) */
:root[data-theme="light"] {
  --bg: #F5F5F5;
  --surface: #FFFFFF;
  --surface-2: #EBEBEB;
  --text: #0A0A0A;          /* 18.1:1 */
  --muted: #525252;         /* 7.2:1 */
  --line: #E0E0E0;
  --line-strong: #C2C2C2;
  --accent: #0A0A0A;
  --accent-hover: #262626;
  --accent-ink: #F5F5F5;
  --accent-soft: #E6E6E6;
  --accent-text: #1F1F1F;
  --warn: #B42318;
  --rec: #C2412F;
  --glow-1: #000000; --glow-2: #4A4A4A; --glow-3: #8A8A8A;
  --aurora-op: .06;
  --shadow-sm: 0 1px 2px rgba(10,10,10,.06);
  --shadow-md: 0 14px 34px -14px rgba(10,10,10,.18);
  --shadow-lg: 0 40px 80px -30px rgba(10,10,10,.28);
  color-scheme: light;
}

/* ---------- 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;
  background: var(--bg);
  color: var(--text);
  font: 400 1rem/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color .3s, color .3s;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.12; margin: 0; letter-spacing: -0.02em; font-weight: 600; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 200; background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: var(--r-sm); text-decoration: none; font-weight: 600; }
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 16px; }
@media (min-width: 768px) { .container { padding-inline: 32px; } }

/* ---------- Intro (apertura pagina) ---------- */
.intro {
  position: fixed; inset: 0; z-index: 300;
  display: grid; place-items: center;
  background: var(--bg);
  pointer-events: none;
}
.intro__inner { display: grid; justify-items: center; gap: var(--s4); }
.intro__mark { width: 84px; height: 84px; }
.intro__mark path, .intro__mark circle { fill: none; stroke: var(--text); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.intro__mark .dot { fill: var(--accent); stroke: none; }
.intro__word { font: 600 1.5rem/1 var(--font-display); letter-spacing: .32em; text-transform: uppercase; overflow: hidden; display: flex; }
.intro__word span { display: inline-block; }
.intro__bar { width: 160px; height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.intro__bar i { display: block; height: 100%; width: 100%; background: var(--accent); transform-origin: left; transform: scaleX(0); }
html:not(.js) .intro { display: none; }
/* Fallback: se gli script non partono, l'intro sparisce comunque */
.intro { animation: introFallback .4s ease 4s forwards; }
@keyframes introFallback { to { opacity: 0; visibility: hidden; } }
.intro.is-done { display: none; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background-color .3s;
}
.header.is-scrolled { border-bottom-color: var(--line); }
.header__row { height: 100%; display: flex; align-items: center; gap: var(--s4); }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 600 1.15rem/1 var(--font-display); letter-spacing: .02em; }
.logo svg { width: 30px; height: 30px; }
.nav { margin-left: auto; display: none; }
.nav ul { display: flex; gap: var(--s1); }
.nav a { display: block; padding: 8px 12px; border-radius: var(--r-pill); text-decoration: none; color: var(--muted); font-weight: 500; font-size: .95rem; transition: color .2s, background-color .2s; }
.nav a:hover { color: var(--text); background: var(--surface-2); }
.header__tools { margin-left: auto; display: flex; align-items: center; gap: var(--s2); }
@media (min-width: 960px) {
  .nav { display: block; }
  .header__tools { margin-left: var(--s2); }
}

.icon-btn {
  display: inline-grid; place-items: center;
  min-width: 44px; height: 44px; padding: 0 10px;
  border: 1px solid var(--line); border-radius: var(--r-pill);
  background: var(--surface); cursor: pointer;
  transition: border-color .2s, background-color .2s;
}
.icon-btn:hover { border-color: var(--line-strong); }
.icon-btn svg { width: 20px; height: 20px; }
.lang { position: relative; }
.lang__btn { display: inline-flex; gap: 6px; align-items: center; font-weight: 600; font-size: .85rem; letter-spacing: .04em; }
.lang__menu {
  position: absolute; right: 0; top: calc(100% + 8px);
  min-width: 180px; padding: 6px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(-6px) scale(.98); transform-origin: top right;
  transition: opacity .2s, transform .25s var(--ease), visibility .2s;
}
.lang.is-open .lang__menu { opacity: 1; visibility: visible; transform: none; }
.lang__menu button {
  width: 100%; display: flex; justify-content: space-between; align-items: center;
  padding: 10px 12px; min-height: 44px; border: 0; border-radius: var(--r-sm);
  background: transparent; cursor: pointer; text-align: left;
}
.lang__menu button:hover, .lang__menu button[aria-checked="true"] { background: var(--surface-2); }
.lang__menu button span:last-child { color: var(--muted); font-size: .8rem; font-weight: 600; }
.theme-btn .moon { display: none; }
:root[data-theme="dark"] .theme-btn .sun { display: none; }
:root[data-theme="dark"] .theme-btn .moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-btn .sun { display: none; }
  :root:not([data-theme="light"]) .theme-btn .moon { display: block; }
}
/* Su mobile la CTA vive nella barra in basso (zona pollice), non nell'header */
.header .header__cta { display: none; }
@media (min-width: 640px) { .header .header__cta { display: inline-flex; } }
@media (max-width: 340px) { .logo span { display: none; } }
.menu-btn { display: inline-grid; }
@media (min-width: 960px) { .menu-btn { display: none; } }

/* Menu mobile */
.mobile-nav {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 90;
  background: var(--bg);
  padding: var(--s5) 16px calc(var(--s8) + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; gap: var(--s2);
  transform: translateY(-8px); opacity: 0; visibility: hidden;
  transition: opacity .25s, transform .3s var(--ease), visibility .25s;
}
.mobile-nav.is-open { opacity: 1; transform: none; visibility: visible; }
.mobile-nav a { font: 600 1.6rem/1.2 var(--font-display); text-decoration: none; padding: 12px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 960px) { .mobile-nav { display: none; } }

/* ---------- Bottoni (un solo primario per azione) ---------- */
.btn {
  --h: 52px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--h); padding: 0 22px;
  border-radius: var(--r-pill); border: 1px solid transparent;
  font-weight: 600; font-size: 1rem; text-decoration: none; cursor: pointer;
  transition: background-color .2s, border-color .2s, transform .2s var(--ease), box-shadow .2s;
  -webkit-tap-highlight-color: transparent;
  white-space: nowrap;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn:active { transform: scale(.97); }
.btn--primary { background: var(--accent); color: var(--accent-ink); box-shadow: var(--shadow-md); }
.btn--primary:hover { background: var(--accent-hover); }
.btn--secondary { background: var(--surface); border-color: var(--line-strong); color: var(--text); }
.btn--secondary:hover { border-color: var(--text); }
.btn--sm { --h: 44px; padding: 0 16px; font-size: .92rem; }
.btn--block { width: 100%; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--accent-text); text-decoration: none; min-height: 44px; }
.link-arrow:hover { text-decoration: underline; text-underline-offset: 4px; }
.link-arrow svg { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.link-arrow:hover svg { transform: translateX(3px); }

/* ---------- Sezioni ---------- */
.section { padding-block: var(--s8); }
@media (min-width: 960px) { .section { padding-block: var(--s9); } }
.section--alt { background: var(--surface-2); }
.section__head { max-width: 680px; margin-bottom: var(--s7); }
.section__head > * + * { margin-top: var(--s3); }
.kicker { display: inline-flex; align-items: center; gap: 8px; font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-text); }
.kicker::before { content: ""; width: 18px; height: 2px; background: currentColor; border-radius: 2px; }
.h2 { font-size: clamp(1.9rem, 4.4vw, 3rem); }
.lead { color: var(--muted); font-size: 1.08rem; }

/* ---------- Hero ---------- */
.hero { padding-block: var(--s6) var(--s8); overflow: hidden; }
@media (min-width: 960px) { .hero { padding-block: var(--s8) var(--s9); } }
.hero__grid { display: grid; gap: var(--s7); align-items: center; }
@media (min-width: 960px) { .hero__grid { grid-template-columns: 1.05fr .95fr; gap: var(--s8); } }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 8px; border: 1px solid var(--line); border-radius: var(--r-pill); background: var(--surface); font-size: .82rem; font-weight: 500; color: var(--muted); }
.eyebrow i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.hero__title { font-size: clamp(2.4rem, 7vw, 4.4rem); margin-top: var(--s5); font-weight: 700; letter-spacing: -0.035em; }
.hero__title .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.hero__title .w > span { display: inline-block; }
.hero__sub { margin-top: var(--s5); font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--muted); max-width: 560px; }

/* Prezzi in evidenza (informazione importante prima) */
.hero__prices { display: flex; gap: var(--s2); margin-top: var(--s5); flex-wrap: wrap; }
.price-chip { display: flex; align-items: baseline; gap: 8px; padding: 10px 16px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); }
.price-chip span { font-size: .85rem; color: var(--muted); }
.price-chip strong { font: 700 1.25rem/1 var(--font-display); }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s4); margin-top: var(--s6); }
.hero__trust { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s5); margin-top: var(--s6); color: var(--muted); font-size: .92rem; }
.hero__trust li { display: inline-flex; align-items: center; gap: 8px; }
.hero__trust svg { width: 18px; height: 18px; color: var(--accent-text); }

/* Visual: mirino drone sulla pianta */
.viewfinder {
  position: relative; border-radius: var(--r-xl); padding: 12px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg);
}
.viewfinder__screen { position: relative; border-radius: var(--r-md); overflow: hidden; background: var(--surface-2); aspect-ratio: 4 / 3; }
.viewfinder__screen svg { width: 100%; height: 100%; }
.vf-corner { position: absolute; width: 22px; height: 22px; border: 2px solid var(--text); opacity: .55; }
.vf-corner.tl { top: 14px; left: 14px; border-right: 0; border-bottom: 0; border-top-left-radius: 6px; }
.vf-corner.tr { top: 14px; right: 14px; border-left: 0; border-bottom: 0; border-top-right-radius: 6px; }
.vf-corner.bl { bottom: 14px; left: 14px; border-right: 0; border-top: 0; border-bottom-left-radius: 6px; }
.vf-corner.br { bottom: 14px; right: 14px; border-left: 0; border-top: 0; border-bottom-right-radius: 6px; }
.vf-hud { position: absolute; top: 16px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; align-items: center; font: 600 .75rem/1 ui-monospace, SFMono-Regular, Menlo, monospace; padding: 6px 10px; border-radius: var(--r-pill); background: color-mix(in srgb, var(--surface) 88%, transparent); border: 1px solid var(--line); }
.vf-hud .rec { display: inline-flex; align-items: center; gap: 6px; color: var(--rec); }
.vf-hud .rec::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; animation: blink 1.2s steps(2, start) infinite; }
@keyframes blink { to { visibility: hidden; } }
.vf-formats { display: flex; gap: var(--s2); margin-top: 12px; }
.vf-format { flex: 1; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--r-md); background: var(--surface-2); font-size: .85rem; font-weight: 600; }
.vf-format i { border: 2px solid var(--text); border-radius: 3px; opacity: .7; }
.vf-format .v { width: 11px; height: 18px; }
.vf-format .h { width: 22px; height: 13px; }
.vf-format small { display: block; color: var(--muted); font-weight: 500; font-size: .75rem; }

.plan-wall { fill: none; stroke: var(--text); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; opacity: .85; }
.plan-inner { fill: none; stroke: var(--text); stroke-width: 2; opacity: .45; stroke-linecap: round; }
.plan-room { fill: var(--surface); }
.plan-label { font: 600 11px var(--font-body); fill: var(--muted); letter-spacing: .06em; text-transform: uppercase; }
.plan-furn { fill: none; stroke: var(--muted); stroke-width: 1.5; opacity: .5; }
.flight-ghost { fill: none; stroke: var(--line-strong); stroke-width: 2; stroke-dasharray: 2 7; stroke-linecap: round; }
.flight { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; }
.drone-body { fill: var(--text); }
.drone-rotor { fill: none; stroke: var(--text); stroke-width: 1.5; }
.drone-cone { fill: var(--accent); opacity: .18; }

/* ---------- Steps ---------- */
.steps { display: grid; gap: var(--s4); position: relative; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step { position: relative; padding: var(--s5); border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.step__num { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: var(--r-sm); background: var(--accent-soft); color: var(--accent-text); font: 700 1rem/1 var(--font-display); }
.step h3 { margin-top: var(--s4); font-size: 1.15rem; }
.step p { margin-top: var(--s2); color: var(--muted); font-size: .95rem; }
.steps__line { display: none; }
@media (min-width: 1080px) {
  .steps__line { display: block; position: absolute; left: 0; right: 0; top: -20px; height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
  .steps__line i { display: block; height: 100%; background: var(--accent); transform-origin: left; transform: scaleX(0); }
}

/* ---------- Pricing ---------- */
.price-group + .price-group { margin-top: var(--s7); }
.price-group__title { font-size: .85rem; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-bottom: var(--s4); }
.price-grid { display: grid; gap: var(--s4); }
@media (min-width: 900px) { .price-grid--3 { grid-template-columns: repeat(3, 1fr); } }
.card {
  position: relative; display: flex; flex-direction: column;
  padding: var(--s5); border-radius: var(--r-xl);
  background: var(--surface); border: 1px solid var(--line);
  transition: border-color .25s, box-shadow .3s, transform .3s var(--ease);
}
@media (min-width: 768px) { .card { padding: var(--s6); } }
.card:hover { box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.card--featured { border: 2px solid var(--accent); }
.card--wide { display: grid; gap: var(--s5); }
@media (min-width: 900px) { .card--wide { grid-template-columns: 1fr 1.1fr; align-items: center; gap: var(--s7); } }
.card__badge { position: absolute; top: -13px; left: var(--s5); padding: 4px 12px; border-radius: var(--r-pill); background: var(--accent); color: var(--accent-ink); font-size: .78rem; font-weight: 700; }
.card__name { font-size: 1.2rem; }
.card__desc { margin-top: var(--s2); color: var(--muted); font-size: .95rem; }
.card__price { display: flex; align-items: baseline; gap: 8px; margin-top: var(--s5); }
.card__price strong { font: 700 clamp(2.4rem, 5vw, 3rem)/1 var(--font-display); letter-spacing: -0.03em; }
.card__price span { color: var(--muted); font-size: .88rem; }
.features { margin-top: var(--s5); display: grid; gap: var(--s3); }
.features li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; font-size: .96rem; }
.features svg { width: 22px; height: 22px; padding: 4px; border-radius: 6px; background: var(--accent-soft); color: var(--accent-text); }
.card__cta { margin-top: auto; padding-top: var(--s6); }
.card--wide .card__cta { padding-top: var(--s5); }
.card--wide .features { margin-top: 0; padding: var(--s5); border-radius: var(--r-md); background: var(--surface-2); }

/* ---------- About ---------- */
.about { display: grid; gap: var(--s7); }
@media (min-width: 960px) { .about { grid-template-columns: 1fr 1fr; gap: var(--s8); align-items: start; } }
.about__text > * + * { margin-top: var(--s4); }
.about__text p { color: var(--muted); font-size: 1.05rem; }
.values { display: grid; gap: var(--s3); }
.value { display: grid; grid-template-columns: 48px 1fr; gap: var(--s4); padding: var(--s5); border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.value__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: var(--r-md); background: var(--accent-soft); color: var(--accent-text); }
.value__icon svg { width: 24px; height: 24px; }
.value h3 { font-size: 1.05rem; }
.value p { margin-top: 4px; color: var(--muted); font-size: .95rem; }

/* ---------- FAQ: cerca + scorri + token ---------- */
.faq { display: grid; gap: var(--s5); }
@media (min-width: 960px) { .faq { grid-template-columns: 320px 1fr; gap: var(--s7); align-items: start; } .faq__tools { position: sticky; top: calc(var(--header-h) + 24px); } }
.faq__tools { display: grid; gap: var(--s4); }
.field-search { position: relative; }
.field-search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--muted); pointer-events: none; }
.field-search input { padding-left: 44px !important; }
.tokens { display: flex; flex-wrap: wrap; gap: var(--s2); }
.token {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 40px; padding: 0 14px; border-radius: var(--r-pill);
  border: 1px solid var(--line-strong); background: var(--surface);
  font-size: .9rem; font-weight: 500; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.token[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.token .tick { width: 14px; height: 14px; display: none; }
.token[aria-pressed="true"] .tick { display: block; }
.faq__count { font-size: .85rem; color: var(--muted); }
.faq__list {
  display: grid; gap: var(--s2);
  max-height: 640px; overflow-y: auto; overscroll-behavior: contain;
  padding-right: 4px; scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent;
}
.faq-item { border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.faq-item summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: var(--s4);
  padding: 18px var(--s5); min-height: 56px; font-weight: 600;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .plus { flex: none; position: relative; width: 28px; height: 28px; border-radius: var(--r-sm); background: var(--surface-2); }
.faq-item summary .plus::before, .faq-item summary .plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; background: var(--text); border-radius: 2px; transform: translate(-50%, -50%); transition: transform .3s var(--ease); }
.faq-item summary .plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item[open] summary .plus::after { transform: translate(-50%, -50%) rotate(0); }
.faq-item__body { padding: 0 var(--s5) var(--s5); color: var(--muted); }
.faq-item__tag { display: inline-block; margin-bottom: var(--s2); font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--accent-text); }
.faq-item mark { background: var(--accent-soft); color: inherit; border-radius: 3px; padding: 0 2px; }
.faq__empty { padding: var(--s6); border-radius: var(--r-lg); border: 1px dashed var(--line-strong); text-align: center; color: var(--muted); }
.faq__empty a { color: var(--accent-text); font-weight: 600; }

/* Skeleton loading */
.skeleton { position: relative; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px var(--s5); display: grid; gap: 10px; }
.skeleton i { display: block; height: 12px; border-radius: 6px; background: var(--surface-2); }
.skeleton i:nth-child(1) { width: 70%; height: 16px; }
.skeleton i:nth-child(2) { width: 45%; }
.skeleton::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--text) 6%, transparent), transparent);
  transform: translateX(-100%); animation: shimmer 1.3s infinite;
}
@keyframes shimmer { to { transform: translateX(100%); } }

/* ---------- Contatti ---------- */
.contact { display: grid; gap: var(--s5); }
@media (min-width: 960px) { .contact { grid-template-columns: .9fr 1.1fr; gap: var(--s6); align-items: start; } }
.contact__channels { display: grid; gap: var(--s3); }
.channel { display: grid; gap: var(--s4); padding: var(--s5); border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--line); }
.channel--wa { border: 2px solid var(--accent); background: linear-gradient(160deg, var(--accent-soft), var(--surface) 70%); padding: var(--s6) var(--s5); }
.channel__top { display: flex; align-items: center; gap: var(--s3); }
.channel__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: var(--r-md); background: var(--accent); color: var(--accent-ink); flex: none; }
.channel--email .channel__icon { background: var(--surface-2); color: var(--text); }
.channel__icon svg { width: 24px; height: 24px; }
.channel__label { font-size: .85rem; color: var(--muted); font-weight: 500; }
.channel__value { font: 600 1.25rem/1.25 var(--font-display); text-decoration: none; word-break: break-word; }
.channel--wa .channel__value { font-size: clamp(1.4rem, 3vw, 1.7rem); }
.channel__note { display: inline-flex; align-items: center; gap: 6px; font-size: .85rem; color: var(--accent-text); font-weight: 600; }
.channel__note::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.channel--email .channel__value:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Form: box, non sottolineature */
.form { padding: var(--s5); border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--line); }
@media (min-width: 768px) { .form { padding: var(--s6); } }
.form h3 { font-size: 1.25rem; }
.form fieldset { border: 0; padding: 0; margin: var(--s5) 0 0; display: grid; gap: var(--s4); }
.form__row { display: grid; gap: var(--s4); }
@media (min-width: 640px) { .form__row--2 { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 6px; }
.field label { font-size: .9rem; font-weight: 600; }
.field label small { font-weight: 400; color: var(--muted); }
.input, .field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 12px 14px;
  border-radius: var(--r-md);
  border: 1.5px solid var(--line-strong);
  background: var(--bg);
  font-size: 1rem; /* evita lo zoom su iOS */
  transition: border-color .2s, box-shadow .2s, background-color .2s;
  appearance: none; -webkit-appearance: none;
}
.field textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
.field select { padding-right: 42px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23808a85' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; cursor: pointer; }
.input:hover, .field input:hover, .field select:hover, .field textarea:hover { border-color: var(--muted); }
.input:focus, .field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); background: var(--surface); }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: var(--warn); }
.field.is-valid input, .field.is-valid select, .field.is-valid textarea { border-color: var(--accent); }
.field__error { min-height: 0; font-size: .85rem; color: var(--warn); font-weight: 500; display: none; }
.field.is-invalid .field__error { display: flex; gap: 6px; align-items: center; }
.check { display: grid; grid-template-columns: 24px 1fr; gap: 10px; align-items: start; font-size: .95rem; cursor: pointer; }
.check input { width: 24px; height: 24px; min-height: 0; padding: 0; margin: 0; border-radius: 6px; accent-color: var(--accent); appearance: auto; -webkit-appearance: checkbox; }
.check a { color: var(--accent-text); font-weight: 600; }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.form__hint { margin-top: var(--s3); font-size: .85rem; color: var(--muted); display: flex; gap: 8px; }
.form__hint svg { width: 18px; height: 18px; flex: none; margin-top: 2px; }
.form__status { margin-top: var(--s3); font-size: .92rem; font-weight: 600; }
.form__status.ok { color: var(--accent-text); }
.form__status.err { color: var(--warn); }
.form__submit { margin-top: var(--s5); }

/* ---------- Footer ---------- */
.footer { padding: var(--s8) 0 calc(var(--s8) + 64px); border-top: 1px solid var(--line); }
@media (min-width: 960px) { .footer { padding-bottom: var(--s7); } }
.footer__grid { display: grid; gap: var(--s6); }
@media (min-width: 768px) { .footer__grid { grid-template-columns: 2fr 1fr 1fr; } }
.footer h2 { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-family: var(--font-body); margin-bottom: var(--s3); }
.footer ul { display: grid; gap: 2px; }
.footer a, .footer button.linklike { color: var(--text); text-decoration: none; display: inline-flex; min-height: 40px; align-items: center; }
.footer a:hover, .footer button.linklike:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer__tag { color: var(--muted); margin-top: var(--s3); max-width: 340px; }
.footer__bottom { margin-top: var(--s7); padding-top: var(--s5); border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: var(--s3); justify-content: space-between; font-size: .85rem; color: var(--muted); }
button.linklike { background: none; border: 0; padding: 0; cursor: pointer; font: inherit; }

/* ---------- CTA nella zona del pollice ---------- */
.thumb-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 80;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  transition: transform .35s var(--ease);
}
.thumb-bar.is-hidden { transform: translateY(110%); }
@media (min-width: 960px) { .thumb-bar { display: none; } }
.wa-fab {
  position: fixed; right: 24px; bottom: 24px; z-index: 80;
  display: none; align-items: center; gap: 10px;
  padding: 0 20px 0 14px; height: 56px; border-radius: var(--r-pill);
  background: var(--accent); color: var(--accent-ink); text-decoration: none; font-weight: 600;
  box-shadow: var(--shadow-lg);
  transition: transform .3s var(--ease), background-color .2s;
}
.wa-fab:hover { background: var(--accent-hover); transform: translateY(-2px); }
.wa-fab svg { width: 26px; height: 26px; }
@media (min-width: 960px) { .wa-fab { display: inline-flex; } }

/* ---------- Cookie banner ---------- */
.cookie {
  position: fixed; z-index: 150; left: 12px; right: 12px; bottom: calc(84px + env(safe-area-inset-bottom));
  max-width: 460px; padding: var(--s5); border-radius: var(--r-xl);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg);
  display: none;
}
.cookie.is-visible { display: block; animation: cookieIn .5s var(--ease); }
@keyframes cookieIn { from { opacity: 0; transform: translateY(16px); } }
@media (min-width: 960px) { .cookie { left: 24px; right: auto; bottom: 24px; } }
.cookie h2 { font-size: 1.05rem; }
.cookie p { margin-top: var(--s2); color: var(--muted); font-size: .92rem; }
.cookie p a { color: var(--accent-text); font-weight: 600; }
.cookie__actions { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s2); margin-top: var(--s4); }
/* Accetta e Rifiuta con lo stesso peso visivo (GDPR) */
.cookie__actions .btn { --h: 46px; padding: 0 12px; }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom)); transform: translateX(-50%) translateY(20px); z-index: 160; padding: 12px 18px; border-radius: var(--r-md); background: var(--text); color: var(--bg); font-weight: 600; font-size: .92rem; opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s var(--ease); max-width: calc(100% - 32px); text-align: center; }
.toast.is-visible { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- Pagine legali / 404 ---------- */
.legal { padding-block: var(--s7) var(--s8); }
.legal__wrap { max-width: 760px; }
.legal h1 { font-size: clamp(2rem, 5vw, 3rem); }
.legal .updated { margin-top: var(--s3); color: var(--muted); }
.legal .notice { margin-top: var(--s4); padding: var(--s3) var(--s4); border-radius: var(--r-md); background: var(--accent-soft); font-size: .92rem; }
.legal .notice:empty { display: none; }
.legal h2 { font-size: 1.3rem; margin-top: var(--s6); }
.legal p, .legal li { color: var(--muted); margin-top: var(--s3); }
.legal ul { list-style: disc; padding-left: 1.3em; }
.legal a { color: var(--accent-text); font-weight: 600; }
.legal table { width: 100%; border-collapse: collapse; margin-top: var(--s4); font-size: .92rem; }
.legal th, .legal td { text-align: left; padding: 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal th { color: var(--text); }
.legal td { color: var(--muted); }
.table-wrap { overflow-x: auto; }

.notfound { min-height: calc(100vh - var(--header-h)); min-height: calc(100svh - var(--header-h)); display: grid; place-items: center; text-align: center; padding: var(--s7) 16px; }
.notfound__code { font: 700 clamp(5rem, 22vw, 10rem)/1 var(--font-display); letter-spacing: -0.06em; color: var(--line-strong); }
.notfound h1 { font-size: clamp(1.6rem, 4vw, 2.2rem); margin-top: var(--s3); }
.notfound p { margin: var(--s3) auto 0; max-width: 440px; color: var(--muted); }
.notfound .btn { margin-top: var(--s6); }
.notfound svg.lost { width: 120px; height: 80px; margin: 0 auto var(--s4); }

/* ==========================================================================
   Due servizi in primo piano: sfondi animati, slider, mockup
   Tutte le animazioni continue usano solo transform/opacity (GPU).
   ========================================================================== */

/* Grana leggera su tutta la pagina */
.grain {
  position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
main, .footer, .marquee { position: relative; }

/* Aurora (macchie sfocate in lento movimento) */
.hero, .services-sec, .pricing-sec, .contact-sec { position: relative; isolation: isolate; }
.services-sec, .pricing-sec, .contact-sec { overflow: hidden; }
.bg-aurora { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.bg-aurora i { position: absolute; width: 46vmax; height: 46vmax; border-radius: 50%; filter: blur(70px); opacity: var(--aurora-op); will-change: transform; }
.bg-aurora i:nth-child(1) { background: var(--glow-1); top: -18vmax; right: -10vmax; animation: drift1 22s ease-in-out infinite alternate; }
.bg-aurora i:nth-child(2) { background: var(--glow-2); top: 10%; left: -20vmax; animation: drift2 26s ease-in-out infinite alternate; }
.bg-aurora i:nth-child(3) { background: var(--glow-3); bottom: -26vmax; right: 20%; width: 34vmax; height: 34vmax; opacity: calc(var(--aurora-op) * .7); animation: drift3 30s ease-in-out infinite alternate; }
.bg-aurora--soft i { opacity: calc(var(--aurora-op) * .7); }
@keyframes drift1 { to { transform: translate(-12vmax, 10vmax) scale(1.15); } }
@keyframes drift2 { to { transform: translate(14vmax, -6vmax) scale(.9); } }
@keyframes drift3 { to { transform: translate(-10vmax, -8vmax) scale(1.2); } }

/* Griglia a punti con maschera radiale */
.bg-grid {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(color-mix(in srgb, var(--text) 22%, transparent) 1px, transparent 1.2px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 70% 40%, #000 20%, transparent 75%);
          mask-image: radial-gradient(ellipse 70% 60% at 70% 40%, #000 20%, transparent 75%);
  animation: gridPan 40s linear infinite;
}
@keyframes gridPan { to { background-position: 26px 260px; } }

/* Curve di livello (servizi) */
.bg-contours {
  position: absolute; inset: -20% -10%; z-index: -1; pointer-events: none; opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='600' viewBox='0 0 600 600' fill='none' stroke='%23808a85' stroke-opacity='.28' stroke-width='1.2'%3E%3Cpath d='M-50 120C80 60 160 180 300 120s220-80 350 0'/%3E%3Cpath d='M-50 170C80 110 160 230 300 170s220-80 350 0'/%3E%3Cpath d='M-50 220C80 160 160 280 300 220s220-80 350 0'/%3E%3Cpath d='M-50 380C90 320 170 450 310 380s210-70 340 10'/%3E%3Cpath d='M-50 430C90 370 170 500 310 430s210-70 340 10'/%3E%3Cpath d='M-50 480C90 420 170 550 310 480s210-70 340 10'/%3E%3C/svg%3E");
  background-size: 600px 600px;
  -webkit-mask-image: linear-gradient(transparent, #000 20%, #000 80%, transparent);
          mask-image: linear-gradient(transparent, #000 20%, #000 80%, transparent);
  animation: contours 60s linear infinite;
}
@keyframes contours { to { transform: translate3d(-600px, 0, 0); } }

/* Fasci di luce (prezzi) */
.bg-beams { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.bg-beams i { position: absolute; top: -20%; width: 2px; height: 140%; background: linear-gradient(transparent, color-mix(in srgb, var(--accent) 45%, transparent), transparent); opacity: .35; transform: rotate(18deg); animation: beam 9s ease-in-out infinite; }
.bg-beams i:nth-child(1) { left: 12%; }
.bg-beams i:nth-child(2) { left: 52%; animation-delay: -3s; animation-duration: 11s; }
.bg-beams i:nth-child(3) { left: 86%; animation-delay: -6s; animation-duration: 13s; }
@keyframes beam { 0%, 100% { transform: rotate(18deg) translateY(-12%); opacity: .1; } 50% { transform: rotate(18deg) translateY(12%); opacity: .4; } }

/* Bagliore che segue il puntatore sulle card */
.glow { position: relative; overflow: hidden; isolation: isolate; }
.glow::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 0%), color-mix(in srgb, var(--accent) 16%, transparent), transparent 60%);
  transition: opacity .35s;
}
.glow:hover::before { opacity: 1; }
.card.glow { overflow: visible; }
.card.glow::before { border-radius: inherit; }

/* Intro: sottotitolo servizi */
.intro__services { display: flex; align-items: center; gap: 12px; font-size: .85rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.intro__services i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

/* Chip prezzi come link */
a.price-chip { text-decoration: none; align-items: center; transition: border-color .2s, transform .25s var(--ease); }
a.price-chip:hover { border-color: var(--accent); transform: translateY(-2px); }
a.price-chip svg { width: 18px; height: 18px; color: var(--accent-text); align-self: center; }

/* ---------- Nastro scorrevole ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--line); background: var(--surface); padding-block: 18px; -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; align-items: center; gap: 28px; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee span { font: 600 clamp(1rem, 2vw, 1.25rem)/1 var(--font-display); white-space: nowrap; letter-spacing: -0.01em; }
.marquee i { width: 8px; height: 8px; border-radius: 2px; background: var(--accent); transform: rotate(45deg); flex: none; }
@keyframes marquee { to { transform: translate3d(-50%, 0, 0); } }

/* ---------- Servizi ---------- */
.services { display: grid; gap: var(--s4); }
@media (min-width: 900px) { .services { grid-template-columns: 1fr 1fr; } }
.service { display: grid; border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--line); transition: border-color .25s, box-shadow .3s, transform .3s var(--ease); }
.service:hover { border-color: var(--line-strong); box-shadow: var(--shadow-md); transform: translateY(-3px); }
.service__visual { position: relative; height: 260px; margin: 10px 10px 0; border-radius: var(--r-lg); background: var(--surface-2); overflow: hidden; display: grid; place-items: center; }
.service__body { padding: var(--s5); display: grid; gap: var(--s2); align-content: start; }
@media (min-width: 768px) { .service__body { padding: var(--s6); } }
.service__label { display: inline-flex; align-items: center; gap: 8px; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--accent-text); }
.service__label svg { width: 18px; height: 18px; }
.service h3 { font-size: clamp(1.35rem, 2.6vw, 1.7rem); }
.service__body > p:not(.service__label) { color: var(--muted); }
.service__foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--s3); margin-top: var(--s3); padding-top: var(--s4); border-top: 1px solid var(--line); }
.service__price { color: var(--muted); font-size: .9rem; }
.service__price strong { font: 700 1.6rem/1 var(--font-display); color: var(--text); }

/* Mini browser che scorre + punteggio */
.mini-browser { width: 82%; height: 84%; transform: translateY(14px); border-radius: 12px 12px 0 0; background: var(--surface); border: 1px solid var(--line-strong); border-bottom: 0; overflow: hidden; box-shadow: var(--shadow-md); }
.mini-browser__bar { display: flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px; border-bottom: 1px solid var(--line); }
.mini-browser__bar b { width: 7px; height: 7px; border-radius: 50%; background: var(--line-strong); }
.mini-browser__bar span { flex: 1; height: 10px; margin-left: 10px; border-radius: 5px; background: var(--surface-2); }
.mini-browser__page { padding: 12px; display: grid; gap: 12px; animation: pageScroll 10s cubic-bezier(.6,0,.4,1) infinite alternate; }
@keyframes pageScroll { 0%, 25% { transform: translateY(0); } 75%, 100% { transform: translateY(-90px); } }
.mb-nav { display: flex; gap: 6px; align-items: center; }
.mb-nav i { width: 26px; height: 6px; border-radius: 3px; background: var(--line); }
.mb-nav i:first-child { width: 40px; background: var(--text); opacity: .7; margin-right: auto; }
.mb-nav em { width: 38px; height: 14px; border-radius: 7px; background: var(--accent); }
.mb-hero { display: grid; grid-template-columns: 1.2fr 1fr; gap: 10px; align-items: center; }
.mb-hero div { display: grid; gap: 6px; }
.mb-hero i { height: 10px; border-radius: 4px; background: var(--text); opacity: .8; }
.mb-hero i.s { height: 6px; width: 80%; background: var(--line); opacity: 1; }
.mb-hero em { width: 54px; height: 16px; border-radius: 8px; background: var(--accent); margin-top: 4px; }
.mb-hero span { height: 70px; border-radius: 8px; background: linear-gradient(160deg, var(--accent-soft), color-mix(in srgb, var(--accent) 40%, var(--surface))); }
.mb-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mb-cards i { height: 46px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--line); }
.score { position: absolute; right: 14px; bottom: 14px; display: flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: var(--r-pill); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-md); font-size: .8rem; font-weight: 700; }
.score svg { width: 30px; height: 30px; transform: rotate(-90deg); }
.score circle { fill: none; stroke: var(--line); stroke-width: 4; }
.score .arc { stroke: var(--accent); stroke-linecap: round; stroke-dasharray: 94.25; stroke-dashoffset: 94.25; animation: arc 3s var(--ease) infinite alternate; }
@keyframes arc { 0%, 20% { stroke-dashoffset: 94.25; } 80%, 100% { stroke-dashoffset: 4; } }

.combo { display: flex; gap: 12px; align-items: center; margin-top: var(--s4); padding: var(--s4) var(--s5); border-radius: var(--r-lg); border: 1px dashed var(--line-strong); background: color-mix(in srgb, var(--surface) 70%, transparent); color: var(--muted); }
.combo svg { width: 22px; height: 22px; flex: none; color: var(--accent-text); }

/* ---------- Schede passi (controllo segmentato) ---------- */
.section__head--row { max-width: none; display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: var(--s5); }
.section__head--row > div > * + * { margin-top: var(--s3); }
.seg { position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: var(--r-pill); background: var(--surface); border: 1px solid var(--line); }
.seg__btn { position: relative; z-index: 1; min-height: 44px; padding: 0 20px; border: 0; background: none; border-radius: var(--r-pill); font-weight: 600; color: var(--muted); cursor: pointer; transition: color .25s; }
.seg__btn[aria-selected="true"] { color: var(--accent-ink); }
.seg__pill { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: var(--r-pill); background: var(--accent); transition: transform .45s var(--ease); }
.seg[data-active="web"] .seg__pill { transform: translateX(100%); }
.steps-wrap { position: relative; }
.steps { list-style: none; padding: 0; margin: 0; }
.steps[hidden] { display: none; }


/* ==========================================================================
   Brand Orsiens — componenti (sovrascrivono le regole precedenti)
   ========================================================================== */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
h1, h2, h3, h4 { font-weight: 800; letter-spacing: -0.03em; font-optical-sizing: auto; }
.h2 { font-size: clamp(2.1rem, 5vw, 3.6rem); font-weight: 900; letter-spacing: -0.04em; line-height: 1; }
.kicker { color: var(--muted); letter-spacing: .32em; font-size: .74rem; }
.kicker::before { width: 24px; height: 1px; }
.lead { max-width: 560px; }

/* Logo: simbolo + scritta ufficiali */
.logo { gap: 12px; }
.logo__mark { width: 30px; height: 32px; flex: none; transition: transform .8s var(--ease); }
.logo:hover .logo__mark { transform: rotate(180deg); }
.logo__word { width: 112px; height: 12px; }
@media (max-width: 380px) { .logo__word { display: none; } }

/* Header in vetro (solo lo strato funzionale) */
.header { background: color-mix(in srgb, var(--bg) 70%, transparent); backdrop-filter: saturate(160%) blur(18px); -webkit-backdrop-filter: saturate(160%) blur(18px); }
.header.is-scrolled { border-bottom-color: color-mix(in srgb, var(--text) 10%, transparent); }
.nav a { color: var(--muted); }
.nav a:hover { color: var(--text); background: color-mix(in srgb, var(--text) 7%, transparent); }
.icon-btn { background: color-mix(in srgb, var(--surface) 70%, transparent); }

/* Bottoni monocromatici */
.btn--primary { box-shadow: 0 0 0 1px color-mix(in srgb, var(--text) 10%, transparent), var(--shadow-md); }
.btn--primary:hover { box-shadow: 0 0 0 6px color-mix(in srgb, var(--text) 10%, transparent), var(--shadow-md); }
.btn--secondary { background: transparent; }
.link-arrow { color: var(--text); }
.card--featured { border-color: var(--text); }
.card__badge { background: var(--text); color: var(--bg); }
.features svg { background: color-mix(in srgb, var(--text) 10%, transparent); color: var(--text); }
.step__num { background: color-mix(in srgb, var(--text) 8%, transparent); color: var(--text); }
.value__icon { background: color-mix(in srgb, var(--text) 8%, transparent); color: var(--text); }
.channel--wa { border-color: var(--text); background: linear-gradient(160deg, color-mix(in srgb, var(--text) 7%, var(--surface)), var(--surface) 70%); }
.channel__note { color: var(--text); }
.eyebrow { background: color-mix(in srgb, var(--surface) 70%, transparent); backdrop-filter: blur(8px); }
.eyebrow i { background: var(--text); box-shadow: 0 0 0 4px color-mix(in srgb, var(--text) 14%, transparent); }
.token[aria-pressed="true"] { background: var(--text); color: var(--bg); }

/* ---------- Intro: simbolo che ruota di 180°, scritta che si stringe ---------- */
.intro { background: #0A0A0A; color: #F5F5F5; }
.intro__inner { gap: 22px; }
.intro__mark { width: 110px; height: 120px; }
.intro__mark svg { width: 100%; height: 100%; color: #F5F5F5; }
.intro__word { font: 900 1.6rem/1 var(--font-display); letter-spacing: var(--track-brand); margin-right: calc(var(--track-brand) * -1); overflow: visible; }
.intro__services { color: #A3A3A3; letter-spacing: .3em; font-size: .72rem; }
.intro__services i { background: #F5F5F5; width: 4px; height: 4px; }

/* ---------- Hero ---------- */
.hero { padding-block: var(--s7) var(--s8); }
@media (min-width: 960px) { .hero { padding-block: var(--s8) var(--s9); min-height: calc(100svh - var(--header-h)); display: grid; align-items: center; } }
@media (min-width: 960px) { .hero__grid { grid-template-columns: 1fr 1.02fr; gap: var(--s8); } }
.hero__title { font-size: clamp(3rem, 8vw, 6.4rem); font-weight: 900; letter-spacing: -0.05em; line-height: .94; }
.hero__sub { max-width: 520px; }
.hero__symbol {
  position: absolute; z-index: -1; pointer-events: none;
  width: min(92vw, 980px); height: min(100vw, 1060px);
  right: -18%; top: 50%; translate: 0 -50%;
  color: var(--text); opacity: .05;
}
@media (max-width: 959px) { .hero__symbol { right: -40%; top: 34%; opacity: .045; } }

/* ---------- Prima / Dopo ---------- */
.compare { margin: 0; position: relative; padding: 10px; border-radius: var(--r-xl); background: color-mix(in srgb, var(--surface) 75%, transparent); border: 1px solid var(--line); box-shadow: var(--shadow-lg); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.compare__stage { --pos: 50%; position: relative; aspect-ratio: 4 / 3.1; border-radius: var(--r-lg); overflow: hidden; touch-action: pan-y; user-select: none; }
.mock { position: absolute; inset: 0; display: flex; flex-direction: column; }
.mock--after { clip-path: inset(0 0 0 var(--pos)); }

/* Il sito "prima": datato di proposito */
.mock--before { background: #e8e4d6; color: #222; font-family: "Times New Roman", Times, serif; font-size: clamp(9px, 1.25vw, 13px); }
.old-top { background: linear-gradient(#2b4fc2, #1a2f7a); color: #fff; padding: 10px 12px; display: grid; gap: 4px; }
.old-top b { font-size: 1.35em; letter-spacing: .02em; text-shadow: 2px 2px 0 #000; }
.old-top span { font-size: .85em; text-decoration: underline; color: #cfe0ff; }
.old-banner { background: #ffeb3b; color: #c00; text-align: center; font-weight: 700; padding: 6px; font-size: 1.1em; border-block: 2px dashed #c00; }
.old-body { display: grid; grid-template-columns: 34% 1fr; gap: 10px; padding: 12px; flex: 1; }
.old-img { display: grid; place-items: center; background: repeating-linear-gradient(45deg, #ccc 0 8px, #bbb 8px 16px); border: 2px inset #999; color: #666; font-weight: 700; min-height: 90px; }
.old-text { font-size: .95em; line-height: 1.35; text-align: justify; }
.old-text u { color: #00e; }
.old-foot { background: #999; color: #fff; text-align: center; font-size: .75em; padding: 5px; }

/* Il sito "dopo": pulito, nello stile Orsiens */
.mock--after { background: #0A0A0A; color: #F5F5F5; font-family: var(--font-body); padding: 5% 6%; gap: 7%; }
.new-nav { display: flex; align-items: center; gap: 10px; }
.new-logo { display: inline-flex; align-items: center; gap: 6px; font-weight: 900; font-size: clamp(8px, 1vw, 11px); letter-spacing: .4em; }
.new-logo i { width: 12px; height: 12px; border-radius: 50%; border: 3px solid #F5F5F5; }
.new-links { display: flex; gap: 8px; margin-left: auto; }
.new-links i { width: 26px; height: 5px; border-radius: 3px; background: #3A3A3A; }
.new-pill { width: 54px; height: 16px; border-radius: 99px; background: #F5F5F5; }
.new-hero { display: grid; grid-template-columns: 1.15fr 1fr; gap: 6%; align-items: center; flex: 1; }
.new-kicker { font-size: clamp(6px, .75vw, 9px); letter-spacing: .32em; color: #8A8A8A; font-weight: 600; }
.new-title { font-weight: 900; font-size: clamp(16px, 2.6vw, 34px); line-height: .98; letter-spacing: -0.045em; margin-top: 8px; }
.new-btn { display: block; width: 44%; height: clamp(14px, 1.9vw, 24px); border-radius: 99px; background: #F5F5F5; margin-top: 12%; }
.new-art { position: relative; aspect-ratio: 1; border-radius: 14px; background: radial-gradient(circle at 30% 25%, #2c2c2c, #111 70%); overflow: hidden; border: 1px solid #232323; }
.new-art i { position: absolute; border-radius: 50%; border: clamp(6px, 1.2vw, 14px) solid #F5F5F5; }
.new-art i:first-child { inset: 22%; }
.new-art i:last-child { width: 30%; height: 30%; right: 12%; bottom: 10%; border: 0; background: #F5F5F5; opacity: .9; animation: floaty 6s ease-in-out infinite alternate; }
@keyframes floaty { to { transform: translate(-30%, -40%) scale(.8); } }
.new-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4%; }
.new-cards i { height: clamp(26px, 4vw, 52px); border-radius: 10px; background: #171717; border: 1px solid #232323; }

.compare__tag { position: absolute; top: 12px; z-index: 3; padding: 6px 12px; border-radius: 99px; font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; pointer-events: none; }
.compare__tag--before { left: 12px; background: rgba(255,255,255,.85); color: #111; }
.compare__tag--after { right: 12px; background: rgba(10,10,10,.75); color: #F5F5F5; border: 1px solid rgba(255,255,255,.2); }
.compare__handle { position: absolute; top: 0; bottom: 0; left: var(--pos); z-index: 4; width: 2px; translate: -1px 0; background: #F5F5F5; box-shadow: 0 0 0 1px rgba(0,0,0,.35); pointer-events: none; }
.compare__handle span { position: absolute; top: 50%; left: 50%; translate: -50% -50%; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: #F5F5F5; color: #0A0A0A; box-shadow: 0 10px 30px rgba(0,0,0,.45); transition: transform .25s var(--ease); }
.compare__handle svg { width: 22px; height: 22px; }
.compare__stage:hover .compare__handle span { transform: scale(1.08); }
.compare__stage:has(.compare__range:focus-visible) .compare__handle span { outline: 3px solid #F5F5F5; outline-offset: 4px; }
.compare__range { position: absolute; inset: 0; z-index: 5; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none; }
.compare__cap { display: flex; justify-content: space-between; align-items: center; gap: var(--s3); margin-top: 10px; padding: 12px 14px; border-radius: var(--r-md); background: color-mix(in srgb, var(--text) 5%, transparent); font-size: .88rem; color: var(--muted); }
.compare__cap strong { color: var(--text); font-weight: 800; letter-spacing: .02em; }

/* ---------- Nastro ---------- */
.marquee span { font-weight: 800; letter-spacing: -0.01em; }
.marquee i { width: 14px; height: 15px; border-radius: 0; transform: none; background: none; -webkit-mask: none; }
.marquee i::before { content: ""; display: block; width: 100%; height: 100%; background: currentColor; opacity: .6;
  -webkit-mask: url("../brand/simbolo.svg") center / contain no-repeat; mask: url("../brand/simbolo.svg") center / contain no-repeat; }

/* ---------- Metodo ---------- */
.method-sec { position: relative; isolation: isolate; overflow: hidden; }
.pillars { display: grid; gap: var(--s4); }
@media (min-width: 720px) { .pillars { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .pillars { grid-template-columns: repeat(4, 1fr); } }
.pillar { padding: var(--s4) var(--s4) var(--s5); border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--line); transition: border-color .3s, transform .4s var(--ease); }
.pillar:hover { border-color: var(--line-strong); transform: translateY(-4px); }
.pillar h3 { font-size: 1.25rem; margin: var(--s5) var(--s2) 0; }
.pillar p { color: var(--muted); font-size: .95rem; margin: var(--s2) var(--s2) 0; }
.pillar__art { position: relative; height: 150px; border-radius: var(--r-md); background: var(--surface-2); overflow: hidden; display: grid; place-items: center; }
/* Identità */
.art-type { grid-template-columns: auto auto; gap: 18px; place-content: center; }
.art-type b { font-weight: 900; font-size: 3.6rem; letter-spacing: -0.05em; line-height: 1; animation: weight 4s ease-in-out infinite alternate; }
@keyframes weight { from { font-weight: 300; } to { font-weight: 900; } }
.art-type span { display: grid; gap: 6px; }
.art-type span i { width: 34px; height: 18px; border-radius: 6px; border: 1px solid var(--line-strong); animation: swatch 3s ease-in-out infinite; }
.art-type span i:nth-child(1) { background: #0A0A0A; }
.art-type span i:nth-child(2) { background: #F5F5F5; animation-delay: .3s; }
.art-type span i:nth-child(3) { background: #8A8A8A; animation-delay: .6s; }
@keyframes swatch { 50% { transform: translateX(6px); } }
/* Struttura */
.art-grid { grid-template-columns: repeat(3, 34px); grid-template-rows: repeat(2, 34px); gap: 8px; place-content: center; }
.art-grid i { border-radius: 8px; background: color-mix(in srgb, var(--text) 14%, transparent); }
.art-grid i:nth-child(1) { grid-column: span 2; background: var(--text); animation: gridA 5s var(--ease) infinite; }
.art-grid i:nth-child(4) { grid-column: span 2; animation: gridB 5s var(--ease) infinite; }
@keyframes gridA { 0%, 40% { transform: none; } 50%, 90% { transform: translateY(42px); } }
@keyframes gridB { 0%, 40% { transform: none; } 50%, 90% { transform: translateY(-42px); } }
/* Velocità */
.art-speed svg { width: 150px; }
.art-speed path { fill: none; stroke-width: 7; stroke-linecap: round; }
.art-speed .track { stroke: color-mix(in srgb, var(--text) 14%, transparent); }
.art-speed .fill { stroke: var(--text); stroke-dasharray: 126; stroke-dashoffset: 126; animation: gauge 3.6s var(--ease) infinite; }
.art-speed .needle { stroke: var(--text); stroke-width: 3; stroke-linecap: round; transform-origin: 50px 55px; animation: needle 3.6s var(--ease) infinite; }
@keyframes gauge { 0%, 10% { stroke-dashoffset: 126; } 60%, 100% { stroke-dashoffset: 8; } }
@keyframes needle { 0%, 10% { transform: rotate(-88deg); } 60%, 100% { transform: rotate(80deg); } }
/* Conversione */
.art-click .btnmock { width: 120px; height: 38px; border-radius: 99px; background: var(--text); animation: press 3s ease-in-out infinite; }
.art-click .cur { position: absolute; width: 18px; fill: var(--text); stroke: var(--surface-2); stroke-width: 1.5; animation: cursor 3s ease-in-out infinite; }
@keyframes cursor { 0% { transform: translate(70px, 60px); } 45%, 60% { transform: translate(14px, 8px); } 100% { transform: translate(70px, 60px); } }
@keyframes press { 0%, 48% { transform: scale(1); box-shadow: 0 0 0 0 color-mix(in srgb, var(--text) 40%, transparent); } 52% { transform: scale(.94); } 70% { transform: scale(1); box-shadow: 0 0 0 16px transparent; } 100% { transform: scale(1); } }

/* ---------- Servizi ---------- */
@media (min-width: 900px) { .services { grid-template-columns: 1.25fr 1fr; align-items: stretch; } }
.service--main { border-color: var(--line-strong); }
.service__label { color: var(--muted); letter-spacing: .2em; }
.service__visual { height: 280px; }
.service__visual--plan svg { width: 100%; height: 100%; }
.service__visual--plan .vf-hud { top: 14px; }
.plan-room { fill: var(--surface); }

/* ---------- Chi siamo ---------- */
.about { align-items: center; }
.about .values { margin-top: var(--s5); }
.about__art { position: relative; display: grid; justify-items: center; gap: var(--s5); padding: var(--s8) var(--s5); border-radius: var(--r-xl); background: radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--text) 7%, var(--surface)), var(--surface) 70%); border: 1px solid var(--line); overflow: hidden; }
.about__symbol { width: min(56%, 260px); height: auto; aspect-ratio: 961 / 1042; color: var(--text); animation: turn 12s var(--ease) infinite; }
@keyframes turn { 0%, 40% { transform: rotate(0); } 50%, 90% { transform: rotate(180deg); } 100% { transform: rotate(180deg); } }
.about__word { width: min(70%, 300px); height: auto; aspect-ratio: 2086 / 218; color: var(--text); }
.about__tagline { font-size: .72rem; letter-spacing: .32em; color: var(--muted); font-weight: 600; }

/* ---------- Footer ---------- */
.footer { position: relative; overflow: hidden; }
.footer__symbol { position: absolute; right: -6%; bottom: -30%; width: 520px; height: 560px; opacity: .04; pointer-events: none; color: var(--text); }
.footer__symbol svg { width: 100%; height: 100%; }
.footer .logo { color: var(--text); }

/* Mini browser monocromatico */
.mb-hero span { background: linear-gradient(160deg, color-mix(in srgb, var(--text) 18%, var(--surface)), var(--surface-2)); }

/* ---------- Stato iniziale animazioni (solo se GSAP è disponibile) ---------- */
html.has-gsap .reveal { visibility: hidden; }

@media (prefers-reduced-motion: reduce) {
  html:not(.force-motion) *, html:not(.force-motion) *::before, html:not(.force-motion) *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  html.has-gsap .reveal { visibility: visible; }
}

/* Rifiniture */
.art-grid { place-items: stretch; }
.bg-contours { opacity: .22; }
.logo__word { width: 136px; height: 14px; }
.header .logo__mark { width: 28px; height: 30px; }

/* ==========================================================================
   404 — vortice del brand
   ========================================================================== */
.nf-body { min-height: 100vh; min-height: 100svh; overflow: hidden; display: grid; grid-template-rows: auto 1fr auto; }
.nf-canvas { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.nf-header { position: relative; z-index: 2; display: flex; justify-content: space-between; align-items: center; padding: 20px clamp(16px, 4vw, 40px); }
.nf-code { font-size: .72rem; letter-spacing: .32em; color: var(--muted); font-weight: 600; }
.nf { position: relative; z-index: 2; display: grid; justify-items: center; align-content: center; text-align: center; padding: 24px 16px 40px; }
.nf-digits { display: flex; align-items: center; gap: clamp(4px, 2vw, 24px); font-weight: 900; font-size: clamp(7rem, 26vw, 17rem); line-height: .8; letter-spacing: -0.06em; }
.nf-d { display: inline-block; background: linear-gradient(180deg, var(--text) 30%, color-mix(in srgb, var(--text) 25%, transparent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nf-zero { display: inline-grid; place-items: center; width: .74em; height: .8em; color: var(--text); cursor: grab; will-change: transform; filter: drop-shadow(0 0 40px color-mix(in srgb, var(--text) 25%, transparent)); }
.nf-zero svg { width: 100%; height: 100%; }
.nf-title { margin-top: clamp(20px, 4vw, 36px); font-size: clamp(1.6rem, 4vw, 2.6rem); font-weight: 900; letter-spacing: -0.04em; max-width: 16ch; }
.nf-text { margin-top: 14px; max-width: 440px; color: var(--muted); }
.nf-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }
.nf-actions .btn--secondary { background: color-mix(in srgb, var(--bg) 60%, transparent); backdrop-filter: blur(8px); }
.nf-foot { position: relative; z-index: 2; text-align: center; padding: 18px; font-size: .7rem; letter-spacing: .32em; color: var(--muted); }

/* ==========================================================================
   Movimento: scritta in alto, pillole che scorrono, bottoni, prezzi a rullo
   ========================================================================== */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

/* Scritta ORSIENS grande in cima */
.hero__brand { margin-bottom: clamp(28px, 5vw, 64px); }
.hero__wordmark { display: block; width: 100%; height: auto; aspect-ratio: 2086 / 218; color: var(--text); }
.hero__wordmark--clip { clip-path: inset(0 100% 0 0); }

/* Barra di avanzamento della lettura */
.progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; pointer-events: none; }
.progress i { display: block; height: 100%; background: var(--text); transform-origin: left; transform: scaleX(0); }

/* Pillola che scivola tra i link del menu */
.nav { position: relative; }
.nav ul { position: relative; z-index: 1; }
.nav a { background: transparent !important; transition: color .3s; }
.nav a.is-active, .nav a:hover { color: var(--text); }
.nav__pill { position: absolute; top: 0; left: 0; height: 100%; width: 0; border-radius: var(--r-pill); background: color-mix(in srgb, var(--text) 10%, transparent); border: 1px solid color-mix(in srgb, var(--text) 12%, transparent); opacity: 0; pointer-events: none; }

/* Pillola che scivola tra i filtri FAQ */
.tokens { position: relative; }
.token { position: relative; z-index: 1; background: transparent; transition: color .3s, border-color .3s; }
.token[aria-pressed="true"] { background: transparent; color: var(--bg); border-color: transparent; }
.tokens__pill { position: absolute; top: 0; left: 0; width: 0; height: 0; border-radius: var(--r-pill); background: var(--text); pointer-events: none; }
html:not(.has-pill) .token[aria-pressed="true"] { background: var(--text); }

/* Bottoni: testo che rotola + riempimento che scorre */
.roll { display: inline-block; overflow: hidden; vertical-align: top; line-height: 1.3; height: 1.3em; }
.roll > span { display: inline-block; text-shadow: 0 1.3em 0 currentColor; transition: transform .5s var(--ease); }
.btn:hover .roll > span, .btn:focus-visible .roll > span { transform: translateY(-1.3em); }
.btn--secondary { position: relative; isolation: isolate; overflow: hidden; transition: color .45s var(--ease), border-color .3s; }
.btn--secondary::after { content: ""; position: absolute; inset: -1px; z-index: -1; background: var(--text); border-radius: inherit; transform: translateY(101%); transition: transform .5s var(--ease); }
.btn--secondary:hover { color: var(--bg); border-color: var(--text); }
.btn--secondary:hover::after { transform: translateY(0); }
.btn svg { transition: transform .45s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.seg__pill { transition: transform .55s cubic-bezier(.65,0,.2,1); }

/* Prezzi a rullo (contatore veloce) */
.odo { display: inline-flex; align-items: baseline; }
.odo__d { display: inline-block; height: 1em; overflow: hidden; line-height: 1; vertical-align: top; }
.odo__d > span { display: flex; flex-direction: column; }
.odo__d > span > i { font-style: normal; height: 1em; line-height: 1; }

/* Profondità al passaggio del mouse */
.tilt { transform-style: preserve-3d; will-change: transform; }

@media (prefers-reduced-motion: reduce) {
  html:not(.force-motion) .roll > span { transition: none; text-shadow: none; }
  html:not(.force-motion) .hero__wordmark--clip { clip-path: none; }
}
.odo, .odo span, .odo i { font-size: inherit !important; color: inherit !important; font-weight: inherit; letter-spacing: inherit; }

/* ==========================================================================
   Revisione: logo, titolo, schede, WhatsApp, cookie, Havi
   ========================================================================== */
:root { --wa: #25D366; --wa-hover: #1EBE5A; --wa-ink: #0A0A0A; }

/* Logo in alto: simbolo O-S + scritta, ben leggibile e sempre visibile */
.header .logo { gap: 12px; }
.header .logo__mark { width: 32px; height: 35px; }
.header .logo__word { display: block; width: 191px; height: 20px; }
@media (max-width: 959px) {
  .header .logo__mark { width: 28px; height: 30px; }
  .header .logo__word { width: 144px; height: 15px; }
  .header .theme-btn { display: none; }        /* il tema si cambia dal menu */
}
@media (max-width: 380px) { .header .logo__word { display: block; width: 124px; height: 13px; } }

/* Titolo principale: niente lettere tagliate (discendenti e accenti) */
.hero__title { line-height: 1.02; }
.hero__title .w { padding: .1em .02em .18em; margin: -.1em -.02em -.18em; }

/* Schede Sito web / Video tour: si illumina quella scelta */
.seg[data-active="web"] .seg__pill { transform: none; }
.seg[data-active="video"] .seg__pill { transform: translateX(100%); }
.seg__btn { transition: color .35s; }
.seg__btn[aria-selected="true"] { color: var(--accent-ink); }
.seg__btn[aria-selected="false"]:hover { color: var(--text); }

/* Bottoni WhatsApp: verdi, uniformi, senza testo che scorre */
.btn--wa, .wa-fab {
  background: var(--wa); color: var(--wa-ink); border-color: transparent;
  box-shadow: 0 10px 30px -12px color-mix(in srgb, var(--wa) 60%, transparent);
  transition: background-color .3s var(--ease), box-shadow .3s var(--ease);
}
.btn--wa:hover, .wa-fab:hover { background: var(--wa-hover); color: var(--wa-ink); transform: none; box-shadow: 0 0 0 5px color-mix(in srgb, var(--wa) 22%, transparent), 0 10px 30px -12px color-mix(in srgb, var(--wa) 60%, transparent); }
.btn--wa:active { transform: scale(.98); }
.btn--wa:hover svg { transform: none; }
.btn--wa .roll > span { text-shadow: none; transform: none !important; }
.channel--wa .channel__icon { background: var(--wa); color: var(--wa-ink); }
.channel--wa { border-color: color-mix(in srgb, var(--wa) 55%, var(--line)); }
.channel__note::before { background: var(--wa); }

/* Menu mobile: interruttore del tema */
.mobile-nav__theme { margin-top: var(--s4); align-self: flex-start; display: inline-flex; gap: 10px; align-items: center; min-height: 48px; padding: 0 18px; border-radius: var(--r-pill); border: 1px solid var(--line-strong); background: transparent; font-weight: 600; cursor: pointer; }
.mobile-nav__theme svg { width: 20px; height: 20px; }

/* Cookie: subito in primo piano, sopra l'intro */
.cookie { z-index: 400; }

/* ---------- Havi ---------- */
.havi-dock { position: fixed; right: 24px; bottom: 24px; z-index: 120; display: flex; align-items: center; gap: 12px; }
.havi-dock .wa-fab { position: static; }
.havi-btn {
  position: relative; display: grid; place-items: center; width: 56px; height: 56px; flex: none;
  border-radius: 50%; border: 1px solid color-mix(in srgb, var(--text) 18%, transparent);
  background: var(--surface); color: var(--text); cursor: pointer; box-shadow: var(--shadow-lg);
  transition: transform .4s var(--ease), background-color .3s;
}
.havi-btn:hover { transform: rotate(-12deg) scale(1.05); }
.havi-btn svg { position: absolute; width: 26px; height: 28px; transition: transform .45s var(--ease), opacity .3s; }
.havi-btn .havi-btn__x { opacity: 0; transform: rotate(-90deg) scale(.6); width: 22px; height: 22px; }
.havi-btn.is-open .havi-btn__logo { opacity: 0; transform: rotate(180deg) scale(.6); }
.havi-btn.is-open .havi-btn__x { opacity: 1; transform: none; }
.havi-btn__dot { position: absolute; top: 4px; right: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--wa); border: 2px solid var(--surface); }
.havi-btn.is-pinging .havi-btn__dot { animation: havPing 1.4s ease-out infinite; }
@keyframes havPing { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--wa) 70%, transparent); } 100% { box-shadow: 0 0 0 12px transparent; } }

.havi-nudge { position: absolute; right: 0; bottom: calc(100% + 12px); display: flex; align-items: flex-start; gap: 4px; width: max-content; max-width: min(280px, calc(100vw - 32px)); padding: 12px 8px 12px 16px; border-radius: 18px 18px 6px 18px; background: var(--text); color: var(--bg); box-shadow: var(--shadow-lg); }
.havi-nudge[hidden] { display: none; }
.havi-nudge__text { background: none; border: 0; color: inherit; font: 600 .92rem/1.4 var(--font-body); text-align: left; cursor: pointer; padding: 0; }
.havi-nudge__x { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 0; background: transparent; color: inherit; cursor: pointer; flex: none; }
.havi-nudge__x svg { width: 14px; height: 14px; }

.havi {
  position: fixed; z-index: 130; right: 24px; bottom: 96px;
  width: min(380px, calc(100vw - 32px)); height: min(600px, calc(100vh - 140px)); height: min(600px, calc(100svh - 140px));
  display: flex; flex-direction: column; overflow: hidden;
  border-radius: 24px; background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(20px) saturate(140%); -webkit-backdrop-filter: blur(20px) saturate(140%);
  border: 1px solid color-mix(in srgb, var(--text) 14%, transparent); box-shadow: var(--shadow-lg);
}
.havi[hidden] { display: none; }
.havi__head { display: flex; align-items: center; gap: 12px; padding: 14px 14px 14px 16px; border-bottom: 1px solid var(--line); }
.havi__avatar { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--text); color: var(--bg); flex: none; }
.havi__avatar svg { width: 20px; height: 22px; }
.havi__name { font-weight: 800; letter-spacing: .02em; }
.havi__role { display: flex; align-items: center; gap: 6px; font-size: .78rem; color: var(--muted); }
.havi__role i { width: 7px; height: 7px; border-radius: 50%; background: var(--wa); }
.havi__close { margin-left: auto; }
.havi__log { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 16px; display: flex; flex-direction: column; gap: 8px; scrollbar-width: thin; }
.havi__msg { max-width: 86%; padding: 10px 14px; border-radius: 18px; font-size: .94rem; line-height: 1.45; overflow-wrap: anywhere; }
.havi__msg--bot { align-self: flex-start; background: var(--surface-2); border-bottom-left-radius: 6px; }
.havi__msg--me { align-self: flex-end; background: var(--text); color: var(--bg); border-bottom-right-radius: 6px; }
.havi__msg--card { padding: 0; background: none; max-width: 92%; }
.havi__dots { display: inline-flex; gap: 4px; padding: 4px 0; }
.havi__dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: havDot 1s ease-in-out infinite; }
.havi__dots i:nth-child(2) { animation-delay: .15s; }
.havi__dots i:nth-child(3) { animation-delay: .3s; }
@keyframes havDot { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }
.havi__chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 6px; }
.havi__chip { min-height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: transparent; color: var(--text); font: 600 .86rem/1 var(--font-body); cursor: pointer; transition: background-color .25s, color .25s, border-color .25s; }
.havi__chip:hover { background: var(--text); color: var(--bg); border-color: var(--text); }
.havi__chip--solid { background: var(--text); color: var(--bg); border-color: var(--text); }
.havi__mail { display: grid; gap: 8px; padding: 12px; border-radius: 16px; background: var(--surface-2); }
.havi__mail input[type="email"] { min-height: 44px; padding: 10px 12px; border-radius: 10px; border: 1.5px solid var(--line-strong); background: var(--bg); color: var(--text); font-size: 1rem; }
.havi__mail input[type="email"]:focus { outline: none; border-color: var(--text); }
.havi__consent { display: grid; grid-template-columns: 20px 1fr; gap: 8px; font-size: .78rem; color: var(--muted); line-height: 1.4; cursor: pointer; }
.havi__consent input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--text); }
.havi__consent a { color: var(--text); }
.havi__err { font-size: .8rem; color: var(--warn); }
.havi__err:empty { display: none; }
.havi__row { display: flex; gap: 6px; flex-wrap: wrap; }
.havi__rec { display: grid; gap: 6px; padding: 14px; border-radius: 18px; border: 1px solid var(--line-strong); background: var(--surface); }
.havi__rec-name { font-weight: 800; }
.havi__rec-price { font-weight: 900; font-size: 1.8rem; letter-spacing: -0.03em; line-height: 1; }
.havi__rec-desc { color: var(--muted); font-size: .88rem; margin-bottom: 4px; }
.havi__link { color: var(--text); font-weight: 600; font-size: .88rem; text-underline-offset: 3px; }
.havi__form { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--line); }
.havi__input { flex: 1; min-width: 0; min-height: 46px; padding: 10px 14px; border-radius: 999px; border: 1.5px solid var(--line-strong); background: var(--bg); color: var(--text); font-size: 1rem; }
.havi__input:focus { outline: none; border-color: var(--text); }
.havi__send { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--text); color: var(--bg); cursor: pointer; flex: none; transition: transform .3s var(--ease); }
.havi__send:hover { transform: rotate(-30deg); }
.havi__send svg { width: 20px; height: 20px; }
.havi__note { padding: 0 14px 10px; font-size: .7rem; color: var(--muted); text-align: center; }

/* Mobile: Havi accanto al bottone WhatsApp nella barra in basso */
@media (max-width: 959px) {
  .thumb-bar--havi { display: flex; align-items: center; gap: 10px; }
  .thumb-bar--havi > .btn { flex: 1; }
  .thumb-bar .havi-dock { position: relative; right: auto; bottom: auto; }
  .thumb-bar .havi-btn { width: 52px; height: 52px; }
  .havi { right: 12px; left: 12px; width: auto; bottom: calc(80px + env(safe-area-inset-bottom)); height: min(560px, calc(100svh - 150px)); }
}
@media (min-width: 960px) { .thumb-bar--havi { display: none; } }

/* ==========================================================================
   Loghi più discreti + robottino di Havi
   ========================================================================== */
/* Header: scritta un po' più piccola */
.header .logo { gap: 10px; }
.header .logo__mark { width: 30px; height: 32px; }
.header .logo__word { width: 168px; height: 17.5px; }
@media (max-width: 959px) {
  .header .logo__mark { width: 26px; height: 28px; }
  .header .logo__word { width: 128px; height: 13.4px; }
}
@media (max-width: 380px) { .header .logo__word { width: 112px; height: 11.7px; } }

/* Hero: scritta ORSIENS presente ma non invadente */
.hero__brand { max-width: min(640px, 100%); }
@media (min-width: 960px) { .hero__brand { max-width: 620px; } }

/* Chi siamo: solo il simbolo */
.about__symbol { width: min(44%, 200px); }

/* Footer: solo la scritta */
.footer__brand { display: inline-flex; color: var(--text); }
.footer__brand svg { width: 150px; height: 15.7px; }
.footer__brand:hover { opacity: .8; }

/* 404: solo la scritta in alto */
.nf-word { width: 140px; height: 14.7px; color: var(--text); }

/* ---------- Robottino di Havi ---------- */
.havi-bot { overflow: visible; }
.havi-bot .bot-face { fill: var(--bot-face, var(--surface)); }
.havi-bot .bot-eye { fill: var(--wa); }
.havi-bot .bot-smile { fill: none; stroke: var(--wa); stroke-width: 2.4; stroke-linecap: round; }
.havi-bot .bot-led { fill: var(--wa); animation: botLed 2.4s ease-in-out infinite; }
.havi-bot .bot-eyes { transform-box: fill-box; transform-origin: center; animation: botBlink 4.5s infinite; }
@keyframes botBlink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.1); } }
@keyframes botLed { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.havi-btn .havi-btn__logo { width: 32px; height: 32px; }
.havi-btn:hover { transform: translateY(-2px) rotate(-6deg); }
.havi__avatar { --bot-face: var(--text); background: var(--surface-2); color: var(--bg); }
.havi__avatar .havi-bot { width: 30px; height: 30px; color: var(--text); --bot-face: var(--bg); }
@media (prefers-reduced-motion: reduce) {
  html:not(.force-motion) .havi-bot .bot-eyes, html:not(.force-motion) .havi-bot .bot-led { animation: none; }
}

@media (max-width: 959px) { .hero__brand { max-width: 72%; margin-bottom: 20px; } }
