/* ==========================================================
   SofLab: foglio di stile (tema scuro / futuristico)
   Palette in :root. Quando arriva il logo definitivo basta
   aggiornare queste variabili (e i colori in js/main.js).
   ========================================================== */

:root {
  --cyan: #5ee7ff;
  --violet: #8b5cf6;
  --pink: #f472b6;
  --grad: linear-gradient(115deg, var(--cyan) 0%, var(--violet) 50%, var(--pink) 100%);
  --field: #6d32e8;          /* campo di colore pieno (fascia assistenza) */

  --bg: #05050a;
  --tone-1: #0d0c16;         /* un gradino sopra lo sfondo */
  --tone-2: #16141f;         /* due gradini */
  --tone-3: #221f2e;
  --text: #f4f3f9;
  --text-2: #d3d0e0;         /* testo corrente */
  --muted: #a9a5bb;          /* solo note secondarie */

  --wa: #25d366;
  --wa-dark: #1fbf5b;

  --font: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Sora", "Onest", system-ui, sans-serif;

  --fs-display: clamp(2.6rem, 5.4vw, 4.9rem);
  --fs-h2: clamp(2rem, 3.8vw, 3.25rem);
  --fs-h3: 1.25rem;
  --fs-lead: 1.25rem;
  --fs-body: 1.0625rem;
  --fs-small: .9375rem;

  --radius: 22px;
  --radius-sm: 14px;
  --ease: cubic-bezier(.22, .8, .24, 1);
  --header-h: 72px;
  --gap-section: clamp(96px, 10vw, 144px);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; background: var(--bg); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.55;
  color: var(--text);
  background: transparent; /* lo sfondo è su <html>, così il canvas 3D resta visibile */
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--display); line-height: 1.05; letter-spacing: -.03em; font-weight: 600; }
p, dl, dd, figure { margin: 0; }

.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 20px; }
@media (min-width: 768px) { .container { padding: 0 32px; } }

.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 100; background: #fff; color: #000; padding: 8px 14px; border-radius: 8px; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Sfondo 3D ---------- */
.bg3d { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.bg3d canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1.4s var(--ease); }
.bg3d.ready canvas { opacity: 1; }
.bg3d.ready .bg-fallback .core, .bg3d.ready .bg-fallback::after { opacity: 0; }
/* Sfondo di riserva: visibile subito e se il 3D non è disponibile */
.bg-fallback { position: absolute; inset: 0; background: var(--bg); }
.bg-fallback::after {
  content: ""; position: absolute; left: -50%; right: -50%; bottom: -10%; height: 50%;
  background:
    linear-gradient(rgba(139, 92, 246, .3) 1px, transparent 1px) 0 0 / 60px 60px,
    linear-gradient(90deg, rgba(139, 92, 246, .3) 1px, transparent 1px) 0 0 / 60px 60px;
  transform: perspective(400px) rotateX(62deg);
  transform-origin: bottom;
  -webkit-mask: linear-gradient(to top, #000 10%, transparent 85%);
  mask: linear-gradient(to top, #000 10%, transparent 85%);
  opacity: .45;
  transition: opacity 1s;
}
.bg-fallback .core {
  position: absolute; aspect-ratio: 1; border-radius: 50%;
  top: calc(var(--header-h) + 12px); left: 50%; width: min(44vw, 220px); transform: translateX(-40%);
  background: radial-gradient(circle at 35% 30%, #fff 0%, var(--cyan) 12%, var(--violet) 45%, rgba(244, 114, 182, .6) 75%, transparent 76%);
  opacity: .6;
  transition: opacity 1s;
}
@media (min-width: 900px) { .bg-fallback .core { left: auto; right: 6%; top: 18%; width: min(32vw, 440px); transform: none; opacity: .85; } }

/* ---------- Bottoni ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 26px;
  border-radius: 999px; border: 0;
  font: 600 1rem/1 var(--font);
  text-decoration: none; cursor: pointer;
  transition: transform .25s var(--ease), background-color .2s, color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn .i { width: 22px; height: 22px; }
.btn-sm { min-height: 44px; padding: 0 20px; font-size: var(--fs-small); }
.btn-block { width: 100%; }
.btn-wa { background: var(--wa); color: #03140a; }
.btn-wa:hover { background: #3ee07d; }
.btn-light { background: #fff; color: #05050a; }
.btn-light:hover { background: var(--cyan); }
.btn-ghost { background: var(--tone-2); color: var(--text); }
.btn-ghost:hover { background: var(--tone-3); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  transition: background-color .3s;
}
.site-header.scrolled { background: rgba(5, 5, 10, .94); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 700 1.3rem/1 var(--display); letter-spacing: -.02em; }
.brand b { font-weight: 700; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand img { border-radius: 10px; }

.nav { display: none; }
.nav a:not(.btn) { text-decoration: none; font-weight: 500; font-size: var(--fs-small); color: var(--text-2); transition: color .2s; }
.nav a:not(.btn):hover { color: var(--cyan); }

.nav-toggle {
  width: 46px; height: 46px; border: 0; border-radius: 14px; background: var(--tone-2);
  cursor: pointer; display: grid; place-content: center; gap: 6px;
}
.nav-toggle span { display: block; width: 20px; height: 2px; border-radius: 2px; background: var(--text); transition: transform .3s var(--ease); }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

@media (max-width: 899px) {
  .nav.open {
    display: flex; flex-direction: column; gap: 4px;
    position: absolute; top: calc(var(--header-h) - 6px); left: 16px; right: 16px;
    padding: 12px; border-radius: var(--radius);
    background: var(--tone-2);
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .9); /* taste-skill-ignore: menu aperto, è un overlay */
    animation: drop .3s var(--ease);
  }
  .nav.open a:not(.btn) { padding: 13px 14px; font-size: 1.1rem; color: var(--text); border-radius: 10px; }
  .nav.open a:not(.btn):active { background: var(--tone-3); }
  .nav.open .btn { margin-top: 8px; }
}
@keyframes drop { from { opacity: 0; transform: translateY(-8px); } }
@media (min-width: 900px) {
  .nav { display: flex; align-items: center; gap: 32px; }
  .nav-toggle { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: center;
  padding: calc(var(--header-h) + 40px) 0 72px;
}
.hero h1 { font-size: var(--fs-display); max-width: 12.5ch; letter-spacing: -.045em; line-height: 1; }
.hero h1 .grad-text { white-space: nowrap; }
.hero-sub { margin-top: 36px; font-size: var(--fs-lead); color: var(--text-2); max-width: 46ch; }
.hero-cta { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero-cta .btn { flex: 1 1 auto; }
.hero-points { list-style: none; padding: 0; margin: 32px 0 0; display: flex; flex-wrap: wrap; gap: 10px 26px; font-size: var(--fs-small); font-weight: 500; color: var(--text-2); }
.hero-points li { display: inline-flex; align-items: center; gap: 9px; }
.hero-points li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); }

@media (max-width: 899px) {
  /* su telefono e tablet lo spazio in alto è riservato al nucleo 3D */
  .hero { align-items: flex-end; padding-top: calc(var(--header-h) + clamp(150px, 21vh, 260px)); padding-bottom: 48px; }
}
@media (min-width: 600px) { .hero-cta .btn { flex: 0 0 auto; } }

/* ---------- Sezioni ---------- */
.section { padding: var(--gap-section) 0 0; position: relative; }
main > .section:last-child { padding-bottom: var(--gap-section); }
/* velo scuro: il 3D resta visibile ma i testi si leggono sempre */
.section::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(5, 5, 10, .86);
}
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head h2, .contact-intro h2, .picker-intro h2 { font-size: var(--fs-h2); }
.lead { margin-top: 20px; font-size: var(--fs-lead); color: var(--text-2); }

/* ---------- Selettore obiettivi ---------- */
.section-picker::before { background: rgba(5, 5, 10, .7); }
.picker { display: grid; gap: 40px; align-items: start; }
@media (min-width: 960px) { .picker { grid-template-columns: 5fr 7fr; gap: 64px; } }
.picker-box { background: var(--tone-1); border-radius: var(--radius); padding: 24px; }
@media (min-width: 600px) { .picker-box { padding: 36px; } }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  font: 500 var(--fs-small)/1.2 var(--font); color: var(--text);
  background: var(--tone-3); border: 0; border-radius: 999px;
  padding: 13px 18px; min-height: 48px; cursor: pointer;
  transition: background-color .2s, color .2s, transform .2s var(--ease);
}
.chip:hover { background: #2e2a3d; }
.chip:active { transform: scale(.97); }
.chip[aria-pressed="true"] { background: var(--cyan); color: #04121a; }
.picker-result { margin-top: 32px; padding-top: 28px; background: linear-gradient(var(--tone-3), var(--tone-3)) top / 100% 2px no-repeat; }
.picker-label { font-weight: 600; color: var(--text); }
.picker-services { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 8px 10px; }
.picker-services:empty { display: none; }
.picker-services a {
  display: inline-block; padding: 8px 14px; border-radius: 10px;
  background: rgba(139, 92, 246, .18); color: #e3d9ff; text-decoration: none; font-weight: 600; font-size: var(--fs-small);
  transition: background-color .2s;
}
.picker-services a:hover { background: rgba(139, 92, 246, .32); }
.picker-actions { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 12px; }
.picker-actions .btn { flex: 1 1 auto; }
@media (min-width: 600px) { .picker-actions .btn { flex: 0 0 auto; } }

/* ---------- Servizi ---------- */
.areas { display: grid; gap: 72px; }
.area { display: grid; gap: 24px; }
@media (min-width: 960px) {
  .area { grid-template-columns: 4fr 8fr; gap: 64px; }
  .area-title { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; }
}
.area-title { font-size: 2rem; color: var(--cyan); }
.area-list { display: grid; gap: 14px; }
@media (min-width: 700px) { .area-list { grid-template-columns: 1fr 1fr; } }
.area-list > div {
  background: var(--tone-1); border-radius: var(--radius-sm); padding: 24px 26px;
  scroll-margin-top: calc(var(--header-h) + 24px);
  transition: background-color .3s, transform .3s var(--ease);
}
.area-list > div:hover { background: var(--tone-2); transform: translateY(-3px); }
.area-list > div:target, .area-list > div.flash { background: #241a44; }
.area-list dt { font: 600 var(--fs-h3)/1.2 var(--display); letter-spacing: -.02em; }
.area-list dd { margin-top: 10px; color: var(--text-2); }

/* ---------- Esempi (frammenti di interfaccia) ---------- */
.demos { display: grid; gap: 48px 24px; }
@media (min-width: 700px) { .demos { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) {
  .demos { gap: 56px 48px; }
  .demo { display: grid; grid-template-columns: 300px 1fr; gap: 28px; align-items: center; }
  .demo figcaption { margin-top: 0; }
}
.demo figcaption { margin-top: 24px; }
.demo h3 { font-size: var(--fs-h3); }
.demo figcaption p { margin-top: 8px; color: var(--text-2); }
.demo-note { margin-top: 40px; font-size: var(--fs-small); color: var(--muted); }

.ui-phone {
  background: #0b141a; border-radius: 28px; overflow: hidden;
  font-family: var(--font); font-size: .9375rem; line-height: 1.4;
  min-height: 380px; display: flex; flex-direction: column;
  transition: transform .5s var(--ease);
}
.demo:hover .ui-phone { transform: translateY(-6px) rotate(-.6deg); }
.ui-bar { display: flex; align-items: center; gap: 12px; padding: 16px 18px; background: #1f2c34; color: #e9edef; }
.ui-bar b { display: block; font-size: .9375rem; }
.ui-bar small { display: block; font-size: .8125rem; color: #8696a0; }
.ui-avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; background: #f59e0b; color: #1a1300; flex: none; }
.ui-avatar--alt { background: var(--pink); color: #2a0718; }
.ui-avatar--alt2 { background: var(--cyan); color: #04121a; }
.ui-chat { flex: 1; padding: 18px 14px; display: flex; flex-direction: column; gap: 8px; background: #0b141a; }
.msg { max-width: 84%; padding: 9px 12px; border-radius: 12px; color: #e9edef; }
.msg.in { background: #202c33; align-self: flex-start; border-top-left-radius: 4px; }
.msg.out { background: #005c4b; align-self: flex-end; border-top-right-radius: 4px; }
.js .demo .msg { opacity: 0; transform: translateY(10px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.js .demo.in .msg { opacity: 1; transform: none; }
.js .demo.in .msg:nth-child(2) { transition-delay: .5s; }
.js .demo.in .msg:nth-child(3) { transition-delay: 1s; }
.js .demo.in .msg:nth-child(4) { transition-delay: 1.5s; }

.ui-book { flex: 1; padding: 20px 18px; background: #f6f5fa; color: #17151f; display: flex; flex-direction: column; gap: 18px; }
.ui-step { font-weight: 700; font-size: 1rem; }
.ui-days { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.ui-days span { display: grid; justify-items: center; gap: 2px; padding: 10px 0; border-radius: 12px; background: #e8e6f0; font-size: .8125rem; color: #4a4658; }
.ui-days b { font-size: 1.15rem; color: #17151f; }
.ui-days .on { background: #17151f; color: #cfcbe0; }
.ui-days .on b { color: #fff; }
.ui-slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ui-slots span { text-align: center; padding: 10px 0; border-radius: 10px; background: #fff; font-weight: 600; box-shadow: inset 0 0 0 1px #dcd9e6; } /* taste-skill-ignore: frammento di interfaccia */
.ui-slots .off { color: #615d74; text-decoration: line-through; background: #efedf4; box-shadow: none; } /* taste-skill-ignore: frammento di interfaccia */
.ui-slots .on { background: var(--field); color: #fff; box-shadow: none; } /* taste-skill-ignore: frammento di interfaccia */
/* gestionale */
.ui-admin { background: #f6f5fa; }
.ui-orders { list-style: none; margin: 0; padding: 14px; display: grid; gap: 8px; flex: 1; align-content: start; }
.ui-orders li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border-radius: 12px; background: #fff; color: #17151f; }
.ui-orders b { display: block; font-size: .9375rem; }
.ui-orders small { display: block; font-size: .8125rem; color: #5d596e; }
.ui-orders em { flex: none; font-style: normal; font-size: .75rem; font-weight: 700; padding: 5px 9px; border-radius: 999px; }
.ui-orders .ok { background: #dcfce7; color: #14532d; }
.ui-orders .wip { background: #fef3c7; color: #713f12; }
.ui-orders .new { background: #ede9fe; color: #4c1d95; }
.ui-total { margin: 0 14px 14px; padding: 12px 14px; border-radius: 12px; background: #17151f; color: #fff; font-weight: 600; font-size: .875rem; text-align: center; }
.ui-avatar--alt3 { background: #a3e635; color: #1a2e05; }
.ui-confirm { margin-top: auto; text-align: center; padding: 14px; border-radius: 12px; background: #17151f; color: #fff; font-weight: 600; }

/* ---------- Fascia assistenza (campo di colore pieno) ---------- */
.band { position: relative; margin-top: var(--gap-section); background: var(--field); padding: clamp(72px, 9vw, 120px) 0; }
.band-inner { display: grid; gap: 24px; }
@media (min-width: 960px) { .band-inner { grid-template-columns: 6fr 6fr; gap: 64px; align-items: end; } }
.band h2 { font-size: var(--fs-h2); color: #fff; }
.band p { font-size: var(--fs-lead); color: #f1ecff; }

/* ---------- Perché ---------- */
.why-wrap { display: grid; gap: 8px; }
@media (min-width: 960px) {
  .why-wrap { grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; }
  .why-wrap .section-head { margin-bottom: 0; }
}
.why { display: grid; gap: 40px 32px; }
@media (min-width: 640px) { .why { grid-template-columns: 1fr 1fr; } }
.why-item h3 { font-size: 2rem; }
.why-item p { margin-top: 12px; color: var(--text-2); }

/* ---------- Come funziona ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
@media (min-width: 700px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step { padding: 30px 28px 34px; border-radius: var(--radius); background: var(--tone-1); transition: background-color .3s; }
.step:hover { background: var(--tone-2); }
.step:last-child { background: #1d1440; }
.step h3 { font-size: var(--fs-h3); }
.step p { margin-top: 12px; color: var(--text-2); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; align-items: start; }
@media (min-width: 960px) { .faq { grid-template-columns: 1fr 1fr; gap: 14px 20px; } }
.faq details { background: var(--tone-1); border-radius: var(--radius-sm); transition: background-color .3s; }
.faq details:hover { background: var(--tone-2); }
.faq details[open] { background: var(--tone-2); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 22px 24px; font-weight: 600; font-size: 1.0625rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 30px; height: 30px; border-radius: 50%;
  background:
    linear-gradient(var(--cyan), var(--cyan)) center / 12px 2px no-repeat,
    linear-gradient(var(--cyan), var(--cyan)) center / 2px 12px no-repeat,
    var(--tone-3);
  transition: transform .35s var(--ease);
}
.faq details[open] summary::after { transform: rotate(135deg); }
.faq details p { padding: 0 24px 24px; color: var(--text-2); }

/* ---------- Contatti ---------- */
.contact { display: grid; gap: 48px; align-items: start; }
@media (min-width: 960px) { .contact { grid-template-columns: 5fr 7fr; gap: 64px; } }
.contact-intro .btn { margin-top: 32px; }
.contact-list { list-style: none; padding: 0; margin: 40px 0 0; display: grid; gap: 18px; }
.contact-list li { display: flex; flex-wrap: wrap; gap: 2px 16px; }
.contact-list span { width: 96px; color: var(--muted); font-size: var(--fs-small); padding-top: 2px; }
.contact-list a { text-decoration: none; font-weight: 600; word-break: break-all; }
.contact-list a:hover { color: var(--cyan); }

.form { background: var(--tone-1); border-radius: var(--radius); padding: 24px; display: grid; gap: 18px; }
@media (min-width: 600px) { .form { padding: 40px; } }
.field { display: grid; gap: 8px; }
.field-row { display: grid; gap: 18px; }
@media (min-width: 600px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field label { font-weight: 600; font-size: var(--fs-small); }
.field small { font-weight: 400; color: var(--muted); font-size: var(--fs-small); }
.field input, .field textarea {
  width: 100%;
  font: 1rem/1.4 var(--font); color: var(--text);
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid #2c2939;
  background: var(--bg);
  transition: border-color .2s;
}
.field input::placeholder, .field textarea::placeholder { color: #807c94; }
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--cyan); }
.field input.invalid, .field textarea.invalid { border-color: #ff5c7a; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: var(--fs-small); color: var(--text-2); cursor: pointer; }
.check input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--violet); flex: none; }
.check a { color: var(--cyan); }
.check.invalid span { color: #ff5c7a; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; } /* taste-skill-ignore: campo anti-spam nascosto */
.form-status { font-size: var(--fs-small); font-weight: 500; min-height: 1.4em; }
.form-status.ok { color: #4ade80; }
.form-status.err { color: #ff5c7a; }

/* ---------- Footer ---------- */
.site-footer { position: relative; background: var(--tone-1); color: var(--text-2); padding: 72px 0 calc(40px + env(safe-area-inset-bottom)); font-size: var(--fs-small); overflow: hidden; }
.footer-mark { font: 700 clamp(4.5rem, 19vw, 17rem)/.85 var(--display); letter-spacing: -.06em; color: var(--text); margin-bottom: 40px; }
.footer-inner { display: grid; gap: 14px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.footer-links a { color: var(--text); text-decoration: none; }
.footer-links a:hover { color: var(--cyan); }
.copy { color: var(--muted); }
@media (min-width: 900px) {
  .footer-inner { grid-template-columns: 1fr auto auto; align-items: center; gap: 40px; }
}

/* ---------- WhatsApp fisso ---------- */
.wa-float {
  position: fixed; z-index: 60;
  right: 16px; bottom: calc(16px + env(safe-area-inset-bottom));
  width: 60px; height: 60px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--wa); color: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .5); /* taste-skill-ignore: pulsante fisso che galleggia */
  transition: transform .3s var(--ease), background-color .2s;
}
.wa-float svg { width: 30px; height: 30px; }
.wa-float:hover { transform: scale(1.08); background: var(--wa-dark); }
.wa-float::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: var(--wa); z-index: -1;
  animation: pulse 2.6s ease-out infinite;
}
@keyframes pulse { 0% { transform: scale(1); opacity: .45; } 80%, 100% { transform: scale(1.6); opacity: 0; } }
@media (min-width: 768px) { .wa-float { right: 24px; bottom: 24px; } }

/* ---------- Animazioni allo scroll ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
  transition-delay: calc(var(--d, 0) * 80ms);
}
.js .reveal.in { opacity: 1; transform: none; }

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

/* ---------- Pagina privacy ---------- */
.page { padding: calc(var(--header-h) + 56px) 0 96px; min-height: 70vh; }
.page .container { max-width: 820px; }
.legal .legal-intro { font-size: var(--fs-lead); color: var(--text); margin-top: 8px; }
.legal .legal-date { color: var(--muted); font-size: var(--fs-small); }
.legal ul { margin: 0 0 12px; padding-left: 1.2em; color: var(--text-2); display: grid; gap: 8px; }
.legal strong { color: var(--text); font-weight: 600; }
.legal .site-footer, .page + .site-footer { padding-top: 40px; }
.page h1 { font-size: clamp(2rem, 6vw, 3rem); margin-bottom: 20px; }
.page h2 { font-size: 1.3rem; margin: 36px 0 10px; }
.page p { color: var(--text-2); margin-bottom: 12px; }
.page a { color: var(--cyan); }
.notice { padding: 18px 20px; border-radius: var(--radius-sm); background: var(--tone-2); color: var(--text) !important; }
