/* Logos Web Agency — stile del sito
   Indice: font · token · base · pulsanti · header · scena · hero · storia · sezioni ·
   cosa diventa · immagina · manifesto · metodo · lavori · prezzi · assistenza · faq ·
   contatti · footer · barra mobile · cursore · animazioni · reduced motion */

/* ---------- Font (in locale: nessuna richiesta a server esterni) ---------- */
@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("../fonts/instrument-serif-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("../fonts/instrument-serif-latin-400-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

/* ---------- Token ---------- */
:root {
  --bg: #07080d;
  --bg-night: #0b1224;
  --surface: rgba(14, 17, 27, 0.72);
  --surface-2: rgba(20, 24, 37, 0.8);
  --ink: #f4efe6;
  --muted: #aaa59c;
  --faint: rgba(244, 239, 230, 0.16);
  --line: rgba(244, 239, 230, 0.1);
  --line-strong: rgba(244, 239, 230, 0.26);
  --accent: #ffb547;
  --accent-soft: rgba(255, 181, 71, 0.16);
  --accent-ink: #1a1105;
  --error: #ff8f7d;

  --f-display: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --f-sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --gutter: clamp(20px, 4vw, 56px);
  --maxw: 1180px;
  /* margine laterale: la pagina resta in una colonna centrale anche sugli schermi grandi */
  --edge: max(var(--gutter), calc((100% - var(--maxw)) / 2));
  --section-y: clamp(72px, 10vh, 136px);
  --radius: 28px;
  --radius-s: 14px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur: 0.5s;

  --header-h: 84px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; overflow-x: clip; }
html:not(.has-motion) { scroll-behavior: smooth; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
/* Sfumature blu notte su un livello fisso (più leggero di background-attachment: fixed) */
.night {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(1100px 760px at 85% -8%, #10182f, #07080d 62%),
    #07080d;
}
.night::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(900px 700px at -10% 108%, #0c142a, rgba(7, 8, 13, 0) 60%);
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
h1, h2, h3, p, ul, ol, dl, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
em { font-family: var(--f-display); font-style: italic; font-weight: 400; color: var(--accent); }
strong { font-weight: 700; color: var(--ink); }

::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px 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: fixed; left: 16px; top: -60px; z-index: 100;
  background: var(--accent); color: var(--accent-ink); padding: 10px 16px; border-radius: 10px;
  font-weight: 700; text-decoration: none; transition: top 0.2s var(--ease-out);
}
.skip-link:focus { top: 16px; }

main { position: relative; z-index: 2; }

h2 {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(2.4rem, 4.8vw, 4.6rem);
  line-height: 0.98;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
h3 { font-weight: 700; letter-spacing: -0.01em; }
.lead {
  color: var(--muted);
  font-size: clamp(1.08rem, 1.35vw, 1.3rem);
  line-height: 1.55;
  max-width: 34em;
  text-wrap: pretty;
}
.lead em { font-size: 1.12em; }
.eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.fine-print { color: var(--muted); font-size: 0.86rem; }

/* ---------- Pulsanti ---------- */
.btn {
  --pad-y: 1.02rem; --pad-x: 1.7rem;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
  min-height: 52px;
  padding: var(--pad-y) var(--pad-x);
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 650;
  font-size: 0.98rem;
  line-height: 1.1;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color var(--dur) var(--ease-out), color var(--dur) var(--ease-out),
    border-color var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out), transform 0.2s var(--ease-out);
  will-change: transform;
}
.btn:active { transform: scale(0.97); }
.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 0 0 0 rgba(255, 181, 71, 0);
}
.btn-primary:hover { box-shadow: 0 0 44px -6px rgba(255, 181, 71, 0.65); background: #ffc266; }
.btn-ghost { border-color: var(--line-strong); color: var(--ink); background: rgba(244, 239, 230, 0.02); }
.btn-ghost:hover { border-color: var(--ink); background: rgba(244, 239, 230, 0.07); }
.btn-small { min-height: 42px; --pad-y: 0.7rem; --pad-x: 1.2rem; font-size: 0.9rem; }

.chip, .chip-radio span {
  display: inline-flex; align-items: center;
  min-height: 38px; padding: 0.45rem 0.95rem;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--muted);
  font-size: 0.9rem; font-weight: 600;
  cursor: pointer;
  transition: color 0.3s var(--ease-out), border-color 0.3s var(--ease-out), background-color 0.3s var(--ease-out);
}
.chip:hover, .chip-radio:hover span { color: var(--ink); border-color: var(--ink); }
.chip.is-active, .chip-radio input:checked + span { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chip-radio input { position: absolute; opacity: 0; pointer-events: none; }
.chip-radio input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------- Barra dell'offerta (sopra l'header, fino alla scadenza) ---------- */
:root { --offer-h: 0px; }
.has-offer { --offer-h: 40px; }
.offer-bar { display: none; }
.has-offer .offer-bar {
  position: fixed; inset: 0 0 auto 0; z-index: 55; height: var(--offer-h); isolation: isolate;
  display: flex; align-items: center; justify-content: center; gap: 0.9rem;
  padding: 0 var(--gutter);
  background: linear-gradient(90deg, #1c1306, #3d2709 50%, #1c1306);
  border-bottom: 1px solid rgba(255, 181, 71, 0.4);
  color: #f6e3c4; font-size: 0.9rem; font-weight: 600; text-decoration: none; white-space: nowrap; overflow: hidden;
  transition: box-shadow 0.4s var(--ease-out);
}
/* un riflesso di luce che ogni tanto attraversa la barra */
.has-offer .offer-bar::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -30%; width: 30%; z-index: -1; pointer-events: none;
  background: linear-gradient(100deg, transparent 10%, rgba(255, 214, 150, 0.24) 50%, transparent 90%);
  animation: ob-sheen 7s var(--ease-in-out) 1.5s infinite;
}
@keyframes ob-sheen { 0% { transform: translateX(0); } 35%, 100% { transform: translateX(460%); } }
.offer-bar:hover { box-shadow: inset 0 -2px 0 var(--accent), 0 8px 30px -12px rgba(255, 181, 71, 0.7); }
.offer-bar strong { color: var(--accent); }
.offer-bar s { color: #b9ab95; font-weight: 500; text-decoration-thickness: 1.5px; }
.ob-tag {
  padding: 0.2rem 0.65rem; border-radius: 999px; background: var(--accent); color: var(--accent-ink);
  font-size: 0.7rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
  animation: offer-pulse 2.4s var(--ease-out) infinite;
}
.ob-days { padding-left: 0.9rem; border-left: 1px solid rgba(255, 181, 71, 0.35); color: #fff4dd; }
.ob-days b {
  display: inline-block; min-width: 1.7em; margin: 0 0.15em; padding: 0.05em 0.35em; border-radius: 6px;
  background: rgba(255, 181, 71, 0.18); color: var(--accent); font-weight: 800; text-align: center; font-variant-numeric: tabular-nums;
}
.ob-go { display: inline-flex; align-items: center; gap: 0.35em; color: var(--accent); font-weight: 700; transition: transform 0.3s var(--ease-out); }
.offer-bar:hover .ob-go { transform: translateX(4px); }
.offer-bar:focus-visible { outline-offset: -4px; }
@media (max-width: 1080px) { .ob-go-text { display: none; } }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: var(--offer-h) 0 auto 0; z-index: 50;
  display: flex; align-items: center; gap: 2rem;
  height: var(--header-h);
  padding: 0 var(--edge);
  transition: height 0.4s var(--ease-out), background-color 0.4s var(--ease-out), border-color 0.4s var(--ease-out);
  border-bottom: 1px solid transparent;
}
.site-header.is-compact {
  height: 64px;
  background: rgba(7, 8, 13, 0.62);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  backdrop-filter: blur(16px) saturate(1.2);
  border-bottom-color: var(--line);
}
/* Logo originale in due pezzi: LOGOS col punto e WEB AGENCY (le proporzioni restano quelle del logo) */
.brand { --logo-w: 128px; display: inline-grid; justify-items: start; text-decoration: none; line-height: 0; }
.brand img { display: block; width: var(--logo-w); height: auto; }
.brand-top { transform-origin: left center; transition: transform 0.45s var(--ease-out); }
.brand-sub {
  height: calc(var(--logo-w) * 26 / 451) !important; clip-path: inset(0 0 0 0);
  transition: height 0.45s var(--ease-out), opacity 0.35s var(--ease-out), clip-path 0.45s var(--ease-out);
}
/* intestazione compatta: "web agency" scorre via e resta solo LOGOS */
.site-header.is-compact .brand-top { transform: scale(0.92); }
.site-header.is-compact .brand-sub { height: 0 !important; opacity: 0; clip-path: inset(0 0 0 100%); }
.brand--footer { --logo-w: 140px; }
.main-nav { margin-left: auto; }
.main-nav ul { display: flex; gap: 2.2rem; }
.main-nav a {
  position: relative; text-decoration: none; font-size: 0.95rem; font-weight: 550; color: var(--muted);
  transition: color 0.3s var(--ease-out);
}
.main-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px; background: var(--accent);
  transform: scaleX(0); transform-origin: right; transition: transform 0.4s var(--ease-out);
}
.main-nav a:hover { color: var(--ink); }
.main-nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.menu-toggle {
  display: none; margin-left: auto; align-items: center; gap: 0.7rem;
  min-height: 44px; padding: 0 0.2rem 0 1rem;
  border: 0; background: none; cursor: pointer; font-weight: 600;
}
.menu-toggle-icon { position: relative; width: 26px; height: 12px; }
.menu-toggle-icon::before, .menu-toggle-icon::after {
  content: ""; position: absolute; left: 0; right: 0; height: 1.5px; background: var(--ink);
  transition: transform 0.4s var(--ease-out), top 0.4s var(--ease-out);
}
.menu-toggle-icon::before { top: 0; }
.menu-toggle-icon::after { top: 10px; }
body.menu-open .menu-toggle-icon::before { top: 5px; transform: rotate(45deg); }
body.menu-open .menu-toggle-icon::after { top: 5px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 45;
  display: flex; flex-direction: column; justify-content: center;
  padding: calc(110px + var(--offer-h)) var(--gutter) 40px;
  background: var(--bg);
}
.mobile-menu[hidden] { display: none; }
.mobile-menu li { overflow: clip; }
.mobile-menu nav a {
  display: block; padding: 0.35rem 0;
  font-family: var(--f-display); font-size: clamp(2.6rem, 11vw, 4rem); line-height: 1.05;
  text-decoration: none;
}
.mobile-menu-foot { display: grid; gap: 12px; margin-top: 2.5rem; }

/* ---------- Scena 3D ---------- */
.scene { position: fixed; inset: 0; z-index: 0; pointer-events: none; transition: opacity 0.9s var(--ease-out); }
.scene.is-hidden { opacity: 0; }
.scene.is-dim { opacity: 0.5; }
.scene-poster {
  position: absolute; inset: 0;
  background: url("../img/scene-poster.webp") center / cover no-repeat;
  transition: opacity 1.2s var(--ease-out);
}
.scene.is-live .scene-poster { opacity: 0; }
#scene-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity 1.2s var(--ease-out); }
.scene.is-live #scene-canvas { opacity: 1; }
.grain {
  position: fixed; inset: 0; z-index: 3; pointer-events: none; opacity: 0.08; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%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");
}

/* Il passaparola sopra la città (creato da scene.js) */
.chatter { position: absolute; inset: 0; overflow: hidden; opacity: 0; transition: opacity 0.5s var(--ease-out); }
.chatter.is-on { opacity: 1; }
.chatter-bubble {
  position: absolute; left: 0; top: 0; margin: 0;
  max-width: 240px; padding: 0.55rem 0.85rem 0.55rem 2rem;
  border-radius: 16px 16px 16px 4px;
  background: rgba(18, 20, 29, 0.9); border: 1px solid rgba(255, 181, 71, 0.35);
  color: var(--ink); font-size: 0.84rem; font-weight: 600; line-height: 1.3;
  white-space: normal; will-change: transform;
  translate: -12px calc(-100% - 14px);
  opacity: 0; scale: 0.85; transform-origin: 0 100%;
  transition: opacity 0.45s var(--ease-out), scale 0.45s var(--ease-out);
}
.chatter-bubble::before {
  content: ""; position: absolute; left: 0.8rem; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 10px var(--accent);
}
.chatter-bubble.is-in { opacity: 1; scale: 1; }
.chatter-bubble.is-left { translate: calc(-100% + 12px) calc(-100% - 14px); border-radius: 16px 16px 4px 16px; transform-origin: 100% 100%; }
@media (max-width: 860px) { .chatter-bubble { max-width: 190px; font-size: 0.76rem; } }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: grid; align-items: center;
  padding: calc(var(--header-h) + var(--offer-h) + 32px) var(--edge) 112px;
}
.hero-inner { max-width: min(700px, 56vw); }
.hero .eyebrow { margin-bottom: 1.8rem; }
.hero-title {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(3.2rem, 7vw, 7.2rem);
  line-height: 0.92;
  letter-spacing: -0.025em;
}
/* da computer il titolo va a capo dove serve: "Il tuo lavoro / merita di / essere visto." */
.br-d { display: none; }
@media (min-width: 861px) { .br-d { display: inline; } }
.hero-sub {
  margin-top: 2rem; max-width: 30em;
  font-size: clamp(1.08rem, 1.4vw, 1.32rem); line-height: 1.55; color: var(--muted);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 2.6rem; }
/* Il buio: un velo scuro sulla scena, aperto dalla torcia (sotto i testi, che restano leggibili) */
.hero-dark {
  --tx: 72%; --ty: 48%; --tr: 300px;
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(circle var(--tr) at var(--tx) var(--ty), rgba(4, 5, 9, 0) 0%, rgba(4, 5, 9, 0.18) 45%, rgba(4, 5, 9, 0.72) 100%);
}
.hero-note {
  position: absolute; right: var(--edge); bottom: 118px; width: min(30ch, 32vw);
  font-family: var(--f-display); font-size: clamp(1.35rem, 1.8vw, 1.9rem); line-height: 1.15; color: #e6dfd4;
  text-wrap: balance;
}
.scroll-cue {
  position: absolute; left: 0; right: 0; bottom: 36px; z-index: 2;
  width: max-content; margin-inline: auto;
  display: inline-flex; align-items: center; gap: 12px;
  padding: 8px 20px 8px 8px; border-radius: 999px;
  border: 1px solid rgba(255, 181, 71, 0.55);
  background: rgba(255, 181, 71, 0.1);
  color: var(--ink); text-decoration: none;
  font-size: 0.82rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out), background-color 0.3s, border-color 0.3s;
  box-shadow: 0 0 0 0 rgba(255, 181, 71, 0.45);
  animation: cue-ring 2.4s var(--ease-out) 1.6s infinite;
}
.scroll-cue:hover { background: rgba(255, 181, 71, 0.2); border-color: var(--accent); }
.scroll-cue.is-gone { opacity: 0; transform: translateY(12px); pointer-events: none; }
.scroll-cue-icon {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  background: var(--accent); color: var(--accent-ink);
}
.scroll-cue-icon svg { width: 20px; height: 20px; animation: cue-bounce 1.6s var(--ease-in-out) infinite; }
@keyframes cue-bounce { 0%, 100% { transform: translateY(-3px); } 50% { transform: translateY(4px); } }
@keyframes cue-ring { 0% { box-shadow: 0 0 0 0 rgba(255, 181, 71, 0.45); } 70%, 100% { box-shadow: 0 0 0 16px rgba(255, 181, 71, 0); } }

/* ---------- Storia ---------- */
.story { position: relative; overflow-x: clip; }
.story-pin { position: relative; padding: 0 var(--edge); }
.act { padding: 18vh 0; max-width: 980px; }
.act-label {
  display: flex; align-items: center; gap: 0.9rem; margin-bottom: 1.4rem;
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted);
}
.act-label span { font-family: var(--f-display); font-size: 1.3rem; letter-spacing: 0; color: var(--accent); text-transform: none; }
.act-text {
  font-family: var(--f-display);
  font-size: clamp(2.3rem, 4.8vw, 4.8rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  max-width: 16ch;
  text-wrap: balance;
}
.act-sub {
  margin-top: 1.4rem; max-width: 30em;
  font-size: clamp(1.05rem, 1.5vw, 1.35rem); line-height: 1.5; color: #d4cec4;
}
.story-progress { display: none; }

.has-motion .story-pin { height: 100vh; height: 100svh; }
.has-motion .story-acts { position: absolute; left: var(--edge); right: var(--edge); bottom: clamp(70px, 14vh, 150px); height: 1px; z-index: 0; }
.has-motion .story-acts::before { inset: auto -20% -40% -10%; height: 70vh; max-width: 1100px; }
.has-motion .act { position: absolute; left: 0; bottom: 0; padding: 0; }
.has-motion .story-progress {
  position: absolute; right: var(--edge); top: 50%; transform: translateY(-50%);
  display: grid; gap: 14px;
}
.story-progress span { width: 6px; height: 6px; border-radius: 50%; background: var(--faint); transition: background-color 0.4s, transform 0.4s var(--ease-out); }
.story-progress span.is-on { background: var(--accent); transform: scale(1.6); }

/* ---------- Sezioni ---------- */
.section {
  position: relative;
  max-width: calc(var(--maxw) + var(--gutter) * 2);
  margin: 0 auto;
  padding: var(--section-y) var(--gutter);
}
.section-head { display: grid; gap: 1.2rem; margin-bottom: clamp(32px, 4vw, 56px); }
.section-head h2 { max-width: 14ch; }
@media (min-width: 1081px) {
  /* titolo a sinistra, testo a destra: la sezione resta compatta */
  .section-head--row { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); column-gap: clamp(40px, 5vw, 80px); align-items: end; }
  .section-head--row:has(> :nth-child(3)) h2 { grid-row: 1 / span 2; }
  .section-head--row > :not(h2) { grid-column: 2; }
}
/* Il filo di luce che collega le sezioni (tracciato in app.js) */
.page-thread { position: absolute; left: 0; top: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: -1; }
.page-thread path { fill: none; stroke-width: 1.5; stroke-linecap: round; }
.pt-bg { stroke: rgba(244, 239, 230, 0.09); }
.pt-fg { stroke: var(--accent); filter: drop-shadow(0 0 5px rgba(255, 181, 71, 0.85)); }

/* ---------- Cosa diventa il tuo sito ---------- */
.values-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 22px); }
.value {
  position: relative;
  display: flex; flex-direction: column; gap: 0.9rem;
  padding: clamp(16px, 1.8vw, 24px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}
.value h3 { font-family: var(--f-display); font-weight: 400; font-size: clamp(1.6rem, 2vw, 2.1rem); line-height: 1; letter-spacing: -0.01em; }
.value-copy p { color: var(--muted); max-width: 32em; margin-top: 0.35rem; font-size: 0.95rem; line-height: 1.5; }
.value-unique { grid-column: 1 / span 7; }
.value-visible { grid-column: 8 / span 5; }
.value-fast { grid-column: 1 / span 5; }
.value-modern { grid-column: 6 / span 7; flex-direction: row-reverse; align-items: center; }
.value-modern .value-demo { flex: 1 1 50%; }
.value-modern .value-copy { flex: 1 1 50%; }
.value-demo { position: relative; flex: 1; min-height: 150px; }
@media (min-width: 1081px) { .value-unique .compare { aspect-ratio: 16 / 8.4; } }

/* Unico: confronto tra un sito qualunque e lo stesso sito disegnato su misura */
.compare {
  position: relative; container-type: inline-size;
  aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden;
  box-shadow: 0 30px 80px -40px rgba(0, 0, 0, 0.9);
  touch-action: pan-y; user-select: none; -webkit-user-select: none; cursor: ew-resize;
}
.cmp-side { position: absolute; inset: 0; display: flex; flex-direction: column; font-size: 1.9cqi; line-height: 1.3; }
.cmp-bar { display: flex; align-items: center; gap: 0.5em; padding: 0.75em 1em; font-size: 0.85em; }
.cmp-bar i { width: 0.75em; height: 0.75em; border-radius: 50%; background: currentColor; opacity: 0.25; }
.cmp-bar span { margin-left: 0.8em; padding: 0.2em 1.1em; border-radius: 999px; opacity: 0.75; white-space: nowrap; }
/* il sito qualunque: grigio, carattere di sistema, testo segnaposto */
.cmp-generic { background: #e6e6e6; color: #5a5a5a; font-family: Arial, Helvetica, sans-serif; }
.cmp-generic .cmp-bar { background: #d2d2d2; }
.cmp-generic .cmp-bar span { background: #f0f0f0; }
.cmp-g-nav { display: flex; justify-content: space-between; align-items: center; padding: 0.9em 2.4em; background: #fff; border-bottom: 1px solid #cdcdcd; }
.cmp-g-logo { font-weight: 700; letter-spacing: 0.12em; color: #9a9a9a; border: 1px dashed #aaa; padding: 0.15em 0.6em; font-size: 0.9em; }
.cmp-g-links { display: flex; gap: 1.4em; font-size: 0.85em; color: #2a5db0; text-decoration: underline; }
.cmp-g-hero { flex: 1; display: grid; grid-template-columns: 1.2fr 1fr; gap: 2em; align-items: center; padding: 1.4em 2.4em 3.4em; }
.cmp-g-title { font-size: 2em; font-weight: 700; color: #3a3a3a; line-height: 1.15; }
.cmp-g-text { margin-top: 0.6em; font-size: 0.9em; line-height: 1.4; color: #7a7a7a; }
.cmp-g-btn { display: inline-block; margin-top: 1em; padding: 0.5em 1.2em; background: #2a5db0; color: #fff; font-size: 0.85em; border-radius: 3px; }
.cmp-g-img { aspect-ratio: 4 / 3; display: grid; place-items: center; background: #cdcdcd; color: #a3a3a3; }
.cmp-g-img svg { width: 40%; }
/* lo stesso sito, disegnato per te */
.cmp-custom { background: #f3ede2; color: #2b1d15; clip-path: inset(0 0 0 var(--pos)); }
.cmp-custom em { color: #b4532f; }
.cmp-custom .cmp-bar { background: rgba(43, 29, 21, 0.06); }
.cmp-custom .cmp-bar span { background: rgba(43, 29, 21, 0.07); }
.cmp-c-nav { display: flex; justify-content: space-between; align-items: center; padding: 0.9em 2.4em; }
.cmp-c-logo { font-family: var(--f-display); font-size: 1.8em; line-height: 1; }
.cmp-c-links { display: flex; gap: 1.4em; font-size: 0.85em; opacity: 0.7; }
.cmp-c-hero { flex: 1; display: grid; grid-template-columns: 1.2fr 1fr; gap: 2em; align-items: center; padding: 0.4em 2.4em 3.4em; }
.cmp-c-kicker { font-size: 0.75em; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; opacity: 0.6; margin-bottom: 0.7em; }
.cmp-c-title { font-family: var(--f-display); font-size: 3.2em; line-height: 0.95; letter-spacing: -0.02em; }
.cmp-c-btn { display: inline-block; margin-top: 1.1em; padding: 0.65em 1.4em; border-radius: 999px; background: #b4532f; color: #f3ede2; font-weight: 700; font-size: 0.85em; }
.cmp-c-art { aspect-ratio: 1; display: grid; place-items: center; border-radius: 999px 999px 1.4em 1.4em; background: rgba(180, 83, 47, 0.12); color: #b4532f; }
.cmp-c-art svg { width: 66%; }
@container (max-width: 480px) {
  .cmp-side { font-size: 2.6cqi; }
  .cmp-tag { bottom: 8px; padding: 0.25rem 0.55rem; font-size: 0.68rem; }
  .cmp-tag-l { left: 8px; }
  .cmp-tag-r { right: 8px; }
  .cmp-g-links, .cmp-c-links { display: none; }
  .cmp-g-hero, .cmp-c-hero { padding-inline: 1.6em; gap: 1.2em; }
  .cmp-g-nav, .cmp-c-nav { padding-inline: 1.6em; }
}
.cmp-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: var(--accent); box-shadow: 0 0 18px rgba(255, 181, 71, 0.8); pointer-events: none; }
.cmp-handle span { position: absolute; top: 50%; left: 50%; width: 44px; height: 44px; translate: -50% -50%; display: grid; place-items: center; border-radius: 50%; background: var(--accent); color: var(--accent-ink); box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35); }
.cmp-handle svg { width: 22px; height: 22px; }
.compare:has(.cmp-range:focus-visible) .cmp-handle span { outline: 2px solid var(--ink); outline-offset: 3px; }
.cmp-tag { position: absolute; bottom: 12px; padding: 0.35rem 0.75rem; border-radius: 999px; font-size: 0.78rem; font-weight: 700; line-height: 1.2; pointer-events: none; transition: opacity 0.3s; }
.cmp-tag-l { left: 12px; background: rgba(40, 40, 40, 0.78); color: #eee; }
.cmp-tag-r { right: 12px; background: var(--accent); color: var(--accent-ink); }
.compare.hide-l .cmp-tag-l, .compare.hide-r .cmp-tag-r { opacity: 0; }
.cmp-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; pointer-events: none; }

/* Visibile: mappa */
.map {
  border-radius: 14px; overflow: hidden; min-height: 160px;
  background: radial-gradient(circle at 50% 50%, rgba(255, 181, 71, 0.08), transparent 55%), #0a0d16;
  border: 1px solid var(--line);
}
.map-streets { position: absolute; inset: 0; width: 100%; height: 100%; }
.map-streets path { fill: none; stroke: rgba(244, 239, 230, 0.14); stroke-width: 6; stroke-linecap: round; }
.map-streets path.minor { stroke-width: 2.5; stroke: rgba(244, 239, 230, 0.08); }
.map-dots { position: absolute; inset: 0; }
.map-dot {
  position: absolute; left: 50%; top: 50%; width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%;
  background: var(--ink); opacity: 0; transform: translate(var(--x), var(--y));
  box-shadow: 0 0 10px rgba(255, 220, 160, 0.8);
}
.value-visible.is-in .map-dot { animation: dot-in var(--d) var(--ease-in-out) var(--delay) infinite; }
@keyframes dot-in {
  0% { transform: translate(var(--x), var(--y)); opacity: 0; }
  15% { opacity: 0.9; }
  85% { opacity: 0.9; }
  100% { transform: translate(0, 0); opacity: 0; }
}
.map-pin { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: grid; place-items: center; }
.map-pin-dot { width: 18px; height: 18px; border-radius: 50%; background: #3a3530; border: 2px solid var(--muted); transition: background-color 0.8s var(--ease-out), border-color 0.8s, box-shadow 0.8s; }
.value-visible.is-in .map-pin-dot { background: var(--accent); border-color: #fff4dd; box-shadow: 0 0 30px 6px rgba(255, 181, 71, 0.55); }
.map-pin-ring { position: absolute; width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--accent); opacity: 0; }
.value-visible.is-in .map-pin-ring { animation: ring 2.4s var(--ease-out) 0.8s infinite; }
@keyframes ring { 0% { transform: scale(1); opacity: 0.8; } 100% { transform: scale(5.5); opacity: 0; } }
.map-pin-label {
  position: absolute; top: 28px; white-space: nowrap; font-size: 0.78rem; font-weight: 650;
  padding: 4px 10px; border-radius: 999px; background: rgba(7, 8, 13, 0.8); border: 1px solid var(--line);
}

/* Veloce */
.speed { display: flex; flex-direction: column; justify-content: center; gap: 14px; min-height: 0; }
.speed-figure { display: flex; align-items: baseline; gap: 0.2em; font-family: var(--f-display); line-height: 0.85; }
.speed-number { font-size: clamp(3.2rem, 4.6vw, 4.6rem); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.speed-unit { font-size: clamp(1.6rem, 2.2vw, 2.2rem); color: var(--accent); font-style: italic; }
.speed-bar { position: relative; height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; }
.speed-bar span { position: absolute; inset: 0; background: var(--accent); transform: scaleX(0); transform-origin: left; box-shadow: 0 0 16px var(--accent); }
.speed-note { color: var(--muted); font-size: 0.82rem; max-width: 30em; }

/* Moderno: oggetto 3D in CSS */
.modern { display: grid; place-items: center; min-height: 150px; perspective: 900px; }
.mono { position: relative; width: 112px; height: 112px; transform-style: preserve-3d; transition: transform 0.6s var(--ease-out); }
.mono span {
  position: absolute; inset: 0; border-radius: 26px;
  border: 1px solid rgba(255, 181, 71, 0.55);
  box-shadow: inset 0 0 26px rgba(255, 181, 71, 0.08);
  transform-style: preserve-3d;
  animation: mono-spin 18s linear infinite;
}
.mono span:nth-child(1) { --r: 0deg; }
.mono span:nth-child(2) { --r: 36deg; border-color: rgba(244, 239, 230, 0.4); animation-duration: 22s; }
.mono span:nth-child(3) { --r: 72deg; animation-duration: 26s; }
.mono span:nth-child(4) { --r: 108deg; border-color: rgba(244, 239, 230, 0.3); animation-duration: 30s; }
.mono span:nth-child(5) { --r: 144deg; animation-duration: 34s; }
.mono .mono-core {
  inset: 34%; border: 0; border-radius: 50%; animation: none;
  background: radial-gradient(circle at 40% 35%, #fff3d9, var(--accent) 45%, rgba(255, 181, 71, 0) 72%);
  box-shadow: 0 0 60px 10px rgba(255, 181, 71, 0.35);
  transform: translateZ(0);
}
@keyframes mono-spin {
  from { transform: rotateY(var(--r)) rotateX(calc(var(--r) / 2)) rotateZ(0deg); }
  to { transform: rotateY(calc(var(--r) + 360deg)) rotateX(calc(var(--r) / 2)) rotateZ(360deg); }
}

/* ---------- Immagina il tuo sito ---------- */
.imagine-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.imagine-form { display: grid; gap: 1.2rem; }
.imagine-form h2 { max-width: 10ch; }
.field { display: grid; gap: 0.6rem; border: 0; padding: 0; margin: 0; min-width: 0; }
.field label, .field legend { font-weight: 650; font-size: 0.95rem; padding: 0; }
.field legend { margin-bottom: 0.6rem; }
.field input[type="text"], .field input[type="tel"], .field textarea {
  width: 100%; min-height: 54px; padding: 0.9rem 1.1rem;
  border: 1px solid var(--line-strong); border-radius: var(--radius-s);
  background: rgba(244, 239, 230, 0.03);
  transition: border-color 0.3s var(--ease-out), background-color 0.3s var(--ease-out);
}
.field textarea { resize: vertical; min-height: 120px; }
.field input::placeholder, .field textarea::placeholder { color: #8f8b84; }
.field input[type="text"]:hover, .field input[type="tel"]:hover, .field textarea:hover { border-color: rgba(244, 239, 230, 0.45); }
.field input[type="text"]:focus, .field input[type="tel"]:focus, .field textarea:focus { outline: none; border-color: var(--accent); background: rgba(255, 181, 71, 0.04); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.swatches { display: flex; flex-wrap: wrap; gap: 12px; }
/* le opzioni in più restano chiuse dietro il "+" (tranne quella scelta) */
.chips-more, .swatches-more { display: contents; }
.chips-more:not(.is-open) > :not(:has(input:checked)), .swatches-more:not(.is-open) > :not(:has(input:checked)) { display: none; }
.chip-more { border-style: dashed; }
.chip-more span { color: var(--accent); font-weight: 700; margin-right: 0.15em; }
.swatch-more { display: grid; place-items: center; padding: 0; background: rgba(244, 239, 230, 0.04); border-style: dashed; color: var(--ink); font-size: 1.6rem; line-height: 1; }
.swatch-more[aria-expanded="true"] span { display: inline-block; transform: rotate(45deg); }
.chip-more:focus-visible, .swatch-more:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.has-motion .chips-more.is-open > *, .has-motion .swatches-more.is-open > * { animation: pop-in 0.45s var(--ease-out) backwards; animation-delay: calc(var(--k, 0) * 0.035s); }
@keyframes pop-in { from { opacity: 0; transform: scale(0.85); } }
.swatch {
  position: relative; width: 46px; height: 46px; border-radius: 50%; cursor: pointer;
  background: linear-gradient(135deg, var(--a) 50%, var(--b) 50%);
  border: 2px solid var(--line-strong);
  transition: transform 0.3s var(--ease-out), border-color 0.3s;
}
.swatch:hover { transform: scale(1.08); }
.swatch input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.swatch:has(input:checked) { border-color: var(--ink); box-shadow: 0 0 0 4px rgba(244, 239, 230, 0.12); }
.swatch:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 4px; }
.imagine-cta { display: grid; gap: 0.9rem; justify-items: start; }

.imagine-stage { perspective: 1800px; }
.devices { position: relative; transform-style: preserve-3d; transform: rotateY(-13deg) rotateX(7deg); transition: transform 0.8s var(--ease-out); padding-bottom: 8%; }
.laptop-screen {
  position: relative; aspect-ratio: 16 / 10; padding: 2.2%;
  border-radius: 18px 18px 6px 6px; background: #15171f;
  border: 1px solid rgba(244, 239, 230, 0.16);
  box-shadow: 0 60px 120px -50px rgba(0, 0, 0, 0.95), 0 0 80px -30px rgba(255, 181, 71, 0.25);
  container-type: inline-size;
}
.laptop-base { height: 14px; margin: 0 -6%; border-radius: 2px 2px 18px 18px; background: linear-gradient(#2a2d36, #121318); }
.phone {
  position: absolute; right: -4%; bottom: 0; width: 25%;
  transform: translateZ(90px) rotateY(-8deg);
}
.phone-screen {
  aspect-ratio: 9 / 19; padding: 5%; border-radius: 26px; background: #15171f;
  border: 1px solid rgba(244, 239, 230, 0.2);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.95);
  container-type: inline-size;
}

/* Anteprima del sito (dentro laptop e telefono) */
.pv {
  --pv-bg: #14161c; --pv-ink: #f4efe6; --pv-acc: #ffb547; --pv-soft: rgba(244, 239, 230, 0.08);
  --pv-font: var(--f-display);
  height: 100%; overflow: hidden; border-radius: 8px;
  background: var(--pv-bg); color: var(--pv-ink);
  display: flex; flex-direction: column;
  font-size: 1.55cqi;
  transition: background-color 0.6s var(--ease-out), color 0.6s var(--ease-out);
}
.pv[data-palette="terracotta"] { --pv-bg: #f3ede2; --pv-ink: #2b1d15; --pv-acc: #b4532f; --pv-soft: rgba(43, 29, 21, 0.07); }
.pv[data-palette="salvia"] { --pv-bg: #eef1ea; --pv-ink: #1d2a1b; --pv-acc: #46613f; --pv-soft: rgba(29, 42, 27, 0.07); }
.pv[data-palette="mare"] { --pv-bg: #0d2231; --pv-ink: #ecf7fa; --pv-acc: #7fd0e2; --pv-soft: rgba(236, 247, 250, 0.08); }
.pv[data-palette="maiolica"] { --pv-bg: #f6f1e4; --pv-ink: #142a52; --pv-acc: #1f4fa0; --pv-soft: rgba(31, 79, 160, 0.09); }
.pv[data-palette="agrumi"] { --pv-bg: #fbf3e0; --pv-ink: #3a2410; --pv-acc: #c86f16; --pv-soft: rgba(217, 130, 43, 0.12); }
.pv[data-palette="cipria"] { --pv-bg: #f8ebe8; --pv-ink: #3d1f27; --pv-acc: #b4506a; --pv-soft: rgba(180, 80, 106, 0.09); }
.pv[data-palette="bordeaux"] { --pv-bg: #f4ece0; --pv-ink: #2e1418; --pv-acc: #7b1f2e; --pv-soft: rgba(123, 31, 46, 0.08); }
.pv[data-palette="bosco"] { --pv-bg: #13201a; --pv-ink: #e9f1e4; --pv-acc: #a6cf8f; --pv-soft: rgba(233, 241, 228, 0.08); }
.pv[data-palette="lime"] { --pv-bg: #141414; --pv-ink: #f2f2f2; --pv-acc: #d6f25c; --pv-soft: rgba(242, 242, 242, 0.08); }
.pv[data-palette="lavanda"] { --pv-bg: #efedf7; --pv-ink: #221a3a; --pv-acc: #6a4fb0; --pv-soft: rgba(106, 79, 176, 0.09); }
.pv[data-palette="tramonto"] { --pv-bg: #1a1530; --pv-ink: #fbeff0; --pv-acc: #ff7a8a; --pv-soft: rgba(251, 239, 240, 0.08); }
.pv-bar { display: flex; align-items: center; gap: 0.6em; padding: 0.8em 1em; background: var(--pv-soft); }
.pv-bar i { width: 0.7em; height: 0.7em; border-radius: 50%; background: currentColor; opacity: 0.25; }
.pv-url { margin-left: 0.8em; padding: 0.25em 1.2em; border-radius: 999px; background: var(--pv-soft); font-family: var(--f-sans); font-size: 0.85em; opacity: 0.8; max-width: 60%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pv-nav { display: flex; align-items: center; justify-content: space-between; padding: 1.2em 3em; }
.pv-sign { font-family: var(--pv-font); font-size: 1.7em; line-height: 1; max-width: 60%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pv-links { display: flex; gap: 1.6em; font-family: var(--f-sans); font-size: 0.85em; opacity: 0.7; }
.pv-hero { flex: 1; display: grid; grid-template-columns: 1.15fr 1fr; gap: 2em; align-items: center; padding: 1em 3em 2.4em; }
.pv-kicker { font-family: var(--f-sans); font-size: 0.8em; letter-spacing: 0.16em; text-transform: uppercase; opacity: 0.65; margin-bottom: 0.9em; }
.pv-title { font-family: var(--pv-font); font-weight: 400; font-size: 3.6em; line-height: 0.95; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.pv-title .pv-name { color: var(--pv-acc); font-style: italic; }
.pv-btn { display: inline-block; margin-top: 1.4em; padding: 0.75em 1.5em; border-radius: 999px; background: var(--pv-acc); color: var(--pv-bg); font-family: var(--f-sans); font-weight: 700; font-size: 0.9em; }
.pv-art { aspect-ratio: 1; border-radius: 1.4em; background: var(--pv-soft); display: grid; place-items: center; color: var(--pv-acc); overflow: hidden; }
.pv-art svg { width: 72%; height: 72%; }
.pv-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2em; padding: 0 3em 2.4em; }
.pv-row span { height: 3.6em; border-radius: 0.8em; background: var(--pv-soft); }
.pv-mobile { font-size: 6.4cqi; border-radius: 18px; }
.pv-mobile .pv-bar { display: none; }
.pv-mobile .pv-nav { padding: 1.4em 1.4em 0.6em; }
.pv-mobile .pv-links { display: none; }
.pv-mobile .pv-sign { font-size: 1.4em; max-width: 100%; }
.pv-mobile .pv-hero { grid-template-columns: 1fr; padding: 0.6em 1.4em 1.4em; gap: 1em; align-content: start; }
.pv-mobile .pv-art { order: -1; aspect-ratio: 4 / 3; }
.pv-mobile .pv-title { font-size: 2.2em; }
.pv-mobile .pv-row { display: none; }

/* ---------- Manifesto ---------- */
.manifesto { text-align: center; }
.manifesto-text {
  font-family: var(--f-display);
  font-size: clamp(2.1rem, 4.4vw, 4.4rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
  max-width: 22ch; margin-inline: auto;
  text-wrap: balance;
}
.manifesto-text .mw { color: var(--faint); transition: color 0.2s linear; }
.manifesto-text .mw.is-lit { color: var(--ink); }
.manifesto-points { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 40px; margin-top: clamp(32px, 4vw, 52px); color: var(--muted); font-weight: 600; }
.manifesto-points li { display: flex; align-items: center; gap: 14px; max-width: 22em; }
.point-mark { width: 10px; height: 10px; flex: none; border-radius: 50%; background: var(--accent); box-shadow: 0 0 16px var(--accent); }
.manifesto-name { margin-top: 2rem; color: var(--muted); font-size: 1.1rem; }

/* ---------- Come lavoriamo ---------- */
.timeline { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr); }
/* la linea dei passi: disegnata da app.js tra i punti dei quattro passi */
.timeline-path { position: absolute; left: 0; top: 0; overflow: visible; pointer-events: none; }
.timeline-path path { fill: none; stroke-linecap: round; }
.tl-bg { stroke: var(--line); stroke-width: 1.5; }
.tl-seg { stroke: var(--accent); stroke-width: 2; filter: drop-shadow(0 0 6px rgba(255, 181, 71, 0.8)); }
.tl-tail { stroke: url(#tl-online); stroke-width: 3; filter: drop-shadow(0 0 7px rgba(74, 222, 128, 0.7)); }
.timeline.is-online .tl-tail { animation: tl-shift 3.2s var(--ease-in-out) infinite alternate; }
@keyframes tl-shift { from { filter: drop-shadow(0 0 7px rgba(74, 222, 128, 0.7)) hue-rotate(-20deg); } to { filter: drop-shadow(0 0 10px rgba(45, 212, 191, 0.8)) hue-rotate(30deg); } }
.steps { grid-column: 2; display: grid; gap: clamp(32px, 6vw, 48px); }
.step { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; }
.step-num { font-family: var(--f-display); font-style: italic; font-size: clamp(2.8rem, 4vw, 3.6rem); line-height: 0.8; color: var(--accent); margin-bottom: 0.7rem; }
.step h3 { font-family: var(--f-display); font-weight: 400; font-size: clamp(1.6rem, 2.2vw, 2.1rem); line-height: 1.05; }
.step p { color: var(--muted); margin-top: 0.5rem; max-width: 28em; }
/* il punto del passo: grigio, poi dorato quando la linea arriva, verde quando il sito è online */
.step-dot {
  position: absolute; left: -35px; top: 10px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--line-strong);
  transition: background-color 0.4s, border-color 0.4s, box-shadow 0.4s;
}
.step.is-reached .step-dot { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 14px rgba(255, 181, 71, 0.75); }
.step.is-online .step-dot { background: #4ade80; border-color: #4ade80; box-shadow: 0 0 16px rgba(74, 222, 128, 0.85); }
.step.is-online .step-dot::after { content: ""; position: absolute; inset: -7px; border-radius: 50%; border: 2px solid #4ade80; animation: tl-ring 2s var(--ease-out) infinite; }
@keyframes tl-ring { from { opacity: 0.9; transform: scale(0.6); } to { opacity: 0; transform: scale(1.6); } }
.has-motion .step > :not(.step-dot) { transition: opacity 0.5s var(--ease-out); }
.has-motion .step:not(.is-reached) > :not(.step-dot) { opacity: 0.35; }
@media (min-width: 861px) {
  .timeline { display: block; }
  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 2.6vw, 40px); }
  .step { padding-top: 104px; }
  .step-num { position: absolute; left: 0; top: 0; margin: 0; }
  .step-dot { left: 4px; top: 67px; }
}
.step .step-when {
  justify-self: start; transition: color 0.4s, border-color 0.4s, background-color 0.4s; margin-top: 0.9rem; padding: 0.3rem 0.85rem; border-radius: 999px;
  border: 1px solid rgba(255, 181, 71, 0.4); background: rgba(255, 181, 71, 0.06);
  color: var(--accent); font-size: 0.85rem; font-weight: 700;
}
.step.is-online .step-when { border-color: rgba(74, 222, 128, 0.55); background: rgba(74, 222, 128, 0.08); color: #86efac; }

/* ---------- Lavori ---------- */
.work-card {
  --mx: 50%; --my: 50%;
  position: relative; display: grid; gap: 0.6rem;
  padding: clamp(26px, 3.4vw, 48px);
  border: 1px solid var(--line); border-radius: 28px;
  background: var(--surface);
  text-decoration: none; overflow: hidden;
  transform-style: preserve-3d;
  transition: border-color 0.4s var(--ease-out), transform 0.5s var(--ease-out);
}
.work-card:hover { border-color: var(--line-strong); }
.work-glow { position: absolute; inset: 0; background: radial-gradient(520px circle at var(--mx) var(--my), rgba(255, 181, 71, 0.16), transparent 60%); opacity: 0; transition: opacity 0.4s; pointer-events: none; }
.work-card:hover .work-glow { opacity: 1; }
.work-meta { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.work-name { font-family: var(--f-display); font-size: clamp(3rem, 6vw, 5.6rem); line-height: 0.9; letter-spacing: -0.03em; }
@media (min-width: 861px) {
  .works { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); column-gap: clamp(32px, 5vw, 72px); align-items: center; }
  .works .section-head { margin-bottom: 0; }
}
.work-url { justify-self: start; margin-top: 1rem; font-weight: 650; color: var(--accent); border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.work-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.work-live { display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.3rem 0.7rem; border-radius: 999px; border: 1px solid rgba(74, 222, 128, 0.4); color: #86efac; font-size: 0.78rem; font-weight: 700; }
.work-live i { width: 7px; height: 7px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 10px #4ade80; }
/* Equilibrium: i colori del suo sito (fucsia) */
.work-card--eq {
  --eq: #e0218a; --eq-light: #ff6cbf;
  border-color: rgba(224, 33, 138, 0.35);
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(224, 33, 138, 0.28), transparent 55%),
    radial-gradient(90% 120% at 0% 100%, rgba(224, 33, 138, 0.12), transparent 60%),
    var(--surface);
}
.work-card--eq:hover { border-color: rgba(255, 108, 191, 0.6); }
.work-card--eq .work-glow { background: radial-gradient(520px circle at var(--mx) var(--my), rgba(255, 108, 191, 0.2), transparent 60%); }
.work-card--eq .work-name { background: linear-gradient(100deg, var(--ink) 35%, var(--eq-light)); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: 0.08em; }
.work-card--eq .work-url { color: var(--eq-light); }
/* una luce fucsia che respira nell'angolo */
.work-orb {
  position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(255, 108, 191, 0.45), rgba(224, 33, 138, 0) 65%);
  animation: orb-breathe 5s var(--ease-in-out) infinite alternate;
}
@keyframes orb-breathe { from { transform: scale(0.85); opacity: 0.7; } to { transform: scale(1.1); opacity: 1; } }
.work-card > :not(.work-glow):not(.work-orb) { position: relative; }

/* ---------- Prezzi ---------- */

.offer-note {
  display: inline-flex; align-items: center; gap: 0.7rem; justify-self: start;
  padding: 0.5rem 1.1rem 0.5rem 0.9rem; border-radius: 999px;
  border: 1px solid rgba(255, 181, 71, 0.4); background: rgba(255, 181, 71, 0.08);
  color: #f6e3c4; font-weight: 600; font-size: 0.95rem;
}
.offer-note-days:not(:empty)::before { content: " · "; }
.offer-dot { width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--accent); animation: offer-pulse 2s var(--ease-out) infinite; }
@keyframes offer-pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 181, 71, 0.55); } 70%, 100% { box-shadow: 0 0 0 10px rgba(255, 181, 71, 0); } }
.offer-over .offer-note, .offer-over .price-was { display: none; }
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); align-items: stretch; }
.plan {
  --mx: 50%; --my: 0%;
  position: relative; display: flex; flex-direction: column; gap: 0.7rem;
  padding: clamp(24px, 2.8vw, 40px);
  border: 1px solid var(--line); border-radius: 28px;
  background: var(--surface);
  overflow: hidden; transform-style: preserve-3d;
  transition: border-color 0.4s var(--ease-out), transform 0.5s var(--ease-out);
}
.plan:hover { border-color: rgba(255, 181, 71, 0.4); }
.plan-sub { background: var(--surface-2); }
.plan-light { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(420px circle at var(--mx) var(--my), rgba(255, 181, 71, 0.18), transparent 62%); }
.plan > *:not(.plan-light) { position: relative; }
.plan-name { font-size: 1.05rem; font-weight: 700; letter-spacing: 0.02em; }
.plan-claim { font-family: var(--f-display); font-size: clamp(1.5rem, 2.1vw, 2rem); line-height: 1.05; }
.plan-pricing { margin-top: 0.5rem; }
/* il prezzo pieno barrato: la riga si traccia quando il prezzo è sceso */
.price-was { display: flex; align-items: center; gap: 0.7rem; margin-bottom: 0.4rem; color: var(--muted); font-weight: 600; }
.price-was s { position: relative; text-decoration: none; font-size: 1.2rem; }
.price-was s::after {
  content: ""; position: absolute; left: -5%; right: -5%; top: 50%; height: 2px; border-radius: 2px;
  background: #ff8f7d; transform: rotate(-6deg) scaleX(var(--strike, 1)); transform-origin: left center;
  transition: transform 0.45s var(--ease-out);
}
.has-motion .plan:not(.is-dropped) .price-was s::after { --strike: 0; }
.price-off { padding: 0.1rem 0.55rem; border-radius: 999px; background: rgba(255, 143, 125, 0.14); color: #ffb3a6; font-size: 0.8rem; font-weight: 800; transition: opacity 0.4s, transform 0.4s var(--ease-out); }
.has-motion .plan:not(.is-dropped) .price-off { opacity: 0; transform: scale(0.8); }
.plan-price { display: flex; align-items: baseline; gap: 0.08em; font-family: var(--f-display); line-height: 0.85; }
.price-num { font-size: clamp(4rem, 6vw, 5.8rem); letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.price-cur { font-size: clamp(2rem, 3.2vw, 3rem); color: var(--accent); }
.price-per { font-family: var(--f-sans); font-size: 1.05rem; color: var(--muted); margin-left: 0.4em; }
.plan-terms { font-size: 0.9rem; font-weight: 600; color: var(--muted); }
.plan-note { color: var(--muted); font-size: 0.95rem; max-width: 34em; margin-bottom: 0.8rem; }
.plan .btn { margin-top: auto; align-self: flex-start; }
/* sempre inclusi: etichette con la spunta, centrate sotto i due pacchetti */
.plan-includes { margin-top: clamp(40px, 5vw, 64px); }
.plan-includes-title {
  display: flex; align-items: center; gap: 1.2rem; margin-bottom: 1.4rem;
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); text-align: center;
}
.plan-includes-title::before, .plan-includes-title::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--line-strong)); }
.plan-includes-title::after { background: linear-gradient(90deg, var(--line-strong), transparent); }
.includes { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.includes li {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.5rem 1rem 0.5rem 0.55rem; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(244, 239, 230, 0.03);
  font-size: 0.95rem; line-height: 1.3;
}
.check { display: grid; place-items: center; flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); }
.check svg { width: 14px; height: 14px; }
.pricing-foot { margin-top: 1.6rem; color: var(--muted); text-align: center; }

/* ---------- Sempre accanto a te ---------- */
.support-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.support-copy { display: grid; gap: 1.6rem; }
.support-copy h2 { max-width: 12ch; }
.chat { border: 1px solid var(--line); border-radius: 28px; background: var(--surface); padding: 22px; box-shadow: 0 40px 100px -60px rgba(0, 0, 0, 0.9); }
.chat-head { display: flex; align-items: center; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.chat-head span:last-child { display: grid; line-height: 1.3; }
.chat-head small { color: var(--muted); font-size: 0.8rem; }
.chat-avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); font-family: var(--f-display); font-size: 1.4rem; }
.chat-list { display: grid; gap: 10px; }
.msg { max-width: 82%; padding: 0.7rem 1rem; border-radius: 18px; font-size: 0.97rem; line-height: 1.45; }
.msg-in { justify-self: start; background: rgba(244, 239, 230, 0.07); border-bottom-left-radius: 6px; }
.msg-out { justify-self: end; background: var(--accent); color: var(--accent-ink); border-bottom-right-radius: 6px; font-weight: 550; }

/* ---------- Domande frequenti ---------- */
.faq-list { border-top: 1px solid var(--line); max-width: 980px; }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  position: relative; display: flex; align-items: center; justify-content: space-between; gap: 24px;
  min-height: 64px; padding: 1rem 0; cursor: pointer; list-style: none;
  font-size: clamp(1.05rem, 1.4vw, 1.25rem); font-weight: 600;
  transition: color 0.3s var(--ease-out);
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: ""; flex: none; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line-strong);
  background:
    linear-gradient(var(--ink), var(--ink)) center / 12px 1.5px no-repeat,
    linear-gradient(var(--ink), var(--ink)) center / 1.5px 12px no-repeat;
  transition: transform 0.4s var(--ease-out), background-color 0.3s, border-color 0.3s;
}
.faq-list summary:hover { color: var(--accent); }
.faq-list details[open] summary::after { transform: rotate(45deg); border-color: var(--accent); }
.faq-body { padding: 0 0 1.6rem; color: var(--muted); max-width: 46em; }
.faq-body p + p { margin-top: 0.6rem; }
.faq-body strong { color: var(--ink); }
.faq-list details[open] .faq-body { animation: faq-in 0.5s var(--ease-out); }
@keyframes faq-in { from { opacity: 0; transform: translateY(-8px); } }

/* ---------- Contatti ---------- */
/* La chiamata finale: il testo a sinistra, la vetrina accesa della scena 3D a destra fa da sfondo */
.final {
  display: flex; flex-direction: column; justify-content: center;
  min-height: calc(100vh - var(--header-h) - var(--offer-h)); min-height: calc(100svh - var(--header-h) - var(--offer-h));
  padding-top: clamp(56px, 9vh, 96px); padding-bottom: clamp(56px, 9vh, 96px); overflow-x: clip;
}
.final-copy { position: relative; display: grid; justify-items: start; gap: 1.1rem; max-width: min(640px, 52%); }
/* una velatura morbida solo dietro il testo, così la vetrina resta luminosa */
.final-copy::before, .has-motion .story-acts::before {
  content: ""; position: absolute; z-index: -1; inset: -18% -30% -22% -12%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(7, 8, 13, 0.9), rgba(7, 8, 13, 0.62) 55%, rgba(7, 8, 13, 0));
}
.final-copy h2 { font-size: clamp(2.3rem, 4vw, 3.6rem); line-height: 1; max-width: none; text-wrap: initial; }
@media (min-width: 861px) { .final-copy h2 .fl { display: block; white-space: nowrap; } }
.final-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 0.4rem; }
.book-toggle svg { width: 20px; height: 20px; margin-right: 0.55rem; color: var(--accent); }
.book-toggle[aria-expanded="true"] { border-color: var(--accent); background: rgba(255, 181, 71, 0.08); }
/* recapiti in una riga, con un'icona ciascuno */
.final-contacts { display: flex; flex-wrap: wrap; gap: 0.5rem 1.6rem; margin-top: 0.4rem; color: var(--muted); font-size: 0.95rem; }
.final-contacts li { display: inline-flex; align-items: center; gap: 0.5rem; }
.final-contacts svg { width: 18px; height: 18px; flex: none; color: var(--accent); }
.final-contacts a { color: var(--ink); text-decoration: none; }
.final-contacts a:hover { color: var(--accent); }
/* il riquadro della prenotazione, che si apre col pulsante */
.booking { width: 100%; border: 1px solid var(--line-strong); border-radius: 24px; background: rgba(10, 12, 19, 0.96); box-shadow: 0 30px 80px -40px rgba(0, 0, 0, 0.9); }
.booking[hidden] { display: none; }
.has-motion .booking:not([hidden]) { animation: when-in 0.4s var(--ease-out); }
.booking-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; padding: 20px 22px 0; }
.booking-head h3 { font-family: var(--f-display); font-weight: 400; font-size: 1.75rem; line-height: 1.1; }
.booking-head p { margin-top: 0.2rem; color: var(--muted); font-size: 0.95rem; }
.booking-close {
  display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--line-strong); background: none; color: var(--ink); cursor: pointer; transition: border-color 0.3s, background-color 0.3s;
}
.booking-close:hover { border-color: var(--ink); background: rgba(244, 239, 230, 0.06); }
.booking-close svg { width: 18px; height: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.booking-form { display: grid; gap: 0.9rem; padding: 16px 22px 22px; }
.booking-form textarea { min-height: 72px; }
/* pulsante e nota sulla privacy sulla stessa riga */
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 0.8rem 1.2rem; }
.form-foot .btn { flex: none; }
.form-foot .form-privacy { flex: 1 1 220px; }
.day-list { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 10px; scroll-snap-type: x proximity; scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 32px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 32px), transparent); }
.pick { position: relative; flex: none; cursor: pointer; }
.pick input { position: absolute; opacity: 0; pointer-events: none; }
.pick > span { display: grid; place-items: center; border: 1px solid var(--line-strong); background: rgba(244, 239, 230, 0.02); transition: background-color 0.25s, border-color 0.25s, color 0.25s; }
.pick:hover > span { border-color: var(--ink); }
.pick input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.pick input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 3px; }
.pick input:disabled + span { opacity: 0.32; text-decoration: line-through; cursor: not-allowed; border-style: dashed; }
.pick:has(input:disabled) { cursor: not-allowed; }
.pick:has(input:disabled):hover > span { border-color: var(--line-strong); }
.day { scroll-snap-align: start; }
.day > span { min-width: 66px; gap: 2px; padding: 0.55rem 0.5rem; border-radius: 16px; line-height: 1.1; }
.day small { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.75; }
.day b { font-family: var(--f-display); font-weight: 400; font-size: 1.75rem; line-height: 1; }
.day i { font-style: normal; font-size: 0.74rem; opacity: 0.75; }
.when { gap: 0.6rem; }
.when-label { font-weight: 650; font-size: 0.95rem; }
.when-toggle {
  display: flex; align-items: center; gap: 0.8rem; width: 100%; min-height: 58px; padding: 0.6rem 1rem 0.6rem 0.6rem;
  border: 1px solid var(--line-strong); border-radius: 14px; background: rgba(244, 239, 230, 0.03);
  cursor: pointer; text-align: left; font-weight: 600; transition: border-color 0.3s, background-color 0.3s;
}
.when-toggle:hover { border-color: rgba(244, 239, 230, 0.45); }
.when-toggle[aria-expanded="true"] { border-color: var(--accent); background: rgba(255, 181, 71, 0.04); }
.field.has-error .when-toggle { border-color: var(--error); }
.when-icon { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); }
.when-icon svg { width: 20px; height: 20px; }
.when-text { flex: 1; color: var(--muted); }
.when.is-set .when-text { color: var(--ink); }
.when-chev { display: grid; color: var(--muted); }
.when-chev svg { width: 20px; height: 20px; transition: transform 0.3s var(--ease-out); }
.when-toggle[aria-expanded="true"] .when-chev svg { transform: rotate(180deg); }
.when-panel { display: grid; gap: 1.1rem; padding: 1.1rem; border: 1px solid var(--line); border-radius: 16px; background: rgba(7, 8, 13, 0.55); }
.when-panel[hidden] { display: none; }
.has-motion .when-panel:not([hidden]) { animation: when-in 0.35s var(--ease-out); }
@keyframes when-in { from { opacity: 0; transform: translateY(-6px); } }
.when-group { display: grid; min-width: 0; margin: 0; padding: 0; border: 0; }
.when-group legend { margin-bottom: 0.6rem; padding: 0; font-size: 0.76rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.slot-groups { display: grid; gap: 1rem 1.6rem; }
@media (min-width: 600px) { .slot-groups:has(> :nth-child(2)) { grid-template-columns: 1fr 1fr; } }
.slot-label { margin-bottom: 0.5rem; font-size: 0.76rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.slot-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.slot > span { min-height: 44px; border-radius: 12px; font-weight: 650; font-variant-numeric: tabular-nums; }
.slot-empty { grid-column: 1 / -1; color: var(--muted); font-size: 0.9rem; }
.optional { font-weight: 500; color: var(--muted); }
.form-privacy { color: var(--muted); font-size: 0.86rem; }
.form-privacy a { color: var(--ink); }
.booking-done { display: grid; gap: 0.6rem; padding: 1.2rem 1.4rem; border-radius: 18px; border: 1px solid rgba(255, 181, 71, 0.45); background: rgba(255, 181, 71, 0.08); }
.booking-done strong { font-family: var(--f-display); font-weight: 400; font-size: 1.7rem; line-height: 1.1; color: var(--accent); }
.field-error { color: var(--error); font-size: 0.86rem; min-height: 0; }
.field-error:empty { display: none; }
.field.has-error input, .field.has-error textarea { border-color: var(--error); }
.booking-form .btn { justify-self: start; }
.form-status { font-weight: 600; }
.form-status.is-ok { color: var(--accent); }
.form-status.is-error { color: var(--error); }
.form-status:empty { display: none; }
.hp { display: none; }

/* ---------- Footer ---------- */
.site-footer { position: relative; z-index: 2; padding: 32px var(--edge) 22px; border-top: 1px solid var(--line); background: var(--bg); font-size: 0.93rem; }
.footer-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 40px; }
.footer-top nav ul, .footer-contacts { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.footer-top a { text-decoration: none; color: var(--muted); transition: color 0.3s; }
.footer-top a:hover { color: var(--ink); }
.footer-contacts { color: var(--muted); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; margin-top: 20px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.84rem; }
.footer-bottom a { color: var(--muted); }
.footer-bottom a:hover { color: var(--ink); }

/* ---------- Barra contatti su telefono ---------- */
.mobile-bar { display: none; }

/* ---------- Cursore (solo puntatore fine) ---------- */
.cursor { display: none; }
@media (pointer: fine) {
  .has-motion .cursor {
    display: block; position: fixed; left: 0; top: 0; z-index: 60; pointer-events: none;
    width: 0; height: 0;
  }
  /* la torcia: un cono di luce calda che segue il puntatore */
  .cursor::before {
    content: ""; position: absolute; width: 640px; height: 640px; left: -320px; top: -320px; border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 214, 150, 0.2) 0%, rgba(255, 190, 110, 0.09) 22%, rgba(255, 170, 80, 0.03) 42%, transparent 62%);
    mix-blend-mode: screen;
  }
  .cursor::after {
    content: ""; position: absolute; width: 12px; height: 12px; left: -6px; top: -6px; border-radius: 50%;
    background: radial-gradient(circle, #fffaf0 0%, #ffd590 55%, rgba(255, 181, 71, 0) 100%);
    box-shadow: 0 0 22px 8px rgba(255, 200, 120, 0.45);
    transition: transform 0.3s var(--ease-out), opacity 0.3s;
  }
  .cursor.is-hover::after { transform: scale(1.8); }
  .cursor::before { transition: opacity 0.3s; }
  .cursor.is-tag::before { opacity: 0; }
  .cursor.is-tag::after, .cursor.is-tag.is-hover::after {
    content: attr(data-tag); width: auto; height: auto; left: 14px; top: 12px; transform: none;
    padding: 0.32rem 0.62rem; border-radius: 999px 999px 999px 4px;
    background: var(--accent); color: var(--accent-ink); font: 800 0.8rem/1 var(--f-sans); white-space: nowrap;
    box-shadow: 0 8px 22px rgba(255, 181, 71, 0.5);
    animation: tag-in 0.35s var(--ease-out);
  }
  @keyframes tag-in { from { opacity: 0; transform: scale(0.4) rotate(-14deg); } }
}

/* ---------- Stati iniziali delle animazioni (solo con movimento attivo) ---------- */
.has-motion [data-reveal] { opacity: 0; transform: translateY(28px); }
.has-motion [data-split] .w { display: inline-block; overflow: clip; overflow-clip-margin: 0.1em; vertical-align: top; padding: 0 0.04em 0.16em; margin: 0 -0.04em -0.16em; }
.has-motion [data-split] .wi { display: inline-block; transform: translateY(110%); }
.has-motion .act { opacity: 0; }
/* Hero: animata in CSS, così compare subito senza aspettare il JavaScript */
.has-motion .hero-title .w { display: inline-block; overflow: clip; overflow-clip-margin: 0.1em; vertical-align: top; padding: 0 0.04em 0.16em; margin: 0 -0.04em -0.16em; }
.has-motion .hero-title .wi { display: inline-block; animation: word-in 0.9s var(--ease-out) both; animation-delay: calc(0.08s + var(--i) * 0.045s); }
.has-motion .hero [data-reveal] { animation: fade-up 0.85s var(--ease-out) both; animation-delay: calc(0.35s + var(--i) * 0.09s); }
.has-motion .scroll-cue { animation: fade-up 0.8s var(--ease-out) 0.9s backwards, cue-ring 2.4s var(--ease-out) 1.8s infinite; }
@keyframes word-in { from { transform: translateY(110%); } to { transform: none; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .values-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .value-unique, .value-visible, .value-fast, .value-modern { grid-column: auto; }
  .value-unique, .value-modern { grid-column: 1 / -1; }
  /* su tablet "Unico" mette anteprima e testo affiancati, come "Moderno" */
  .value-unique { flex-direction: row; align-items: center; gap: clamp(18px, 3vw, 32px); }
  .value-unique .value-demo { flex: 1 1 58%; min-height: 0; }
  .value-unique .value-copy { flex: 1 1 42%; }
  .imagine-grid, .support-grid { grid-template-columns: minmax(0, 1fr); }
  .imagine-stage { max-width: 760px; }
  .footer-top { justify-content: flex-start; }
}
@media (max-width: 860px) {
  :root { --header-h: 68px; }
  .site-header .brand { --logo-w: 108px; }
  .has-offer { --offer-h: 36px; }
  .ob-tag, .ob-wide { display: none; }
  .has-offer .offer-bar { gap: 0.6rem; font-size: 0.8rem; }
  .ob-days { padding-left: 0.6rem; }
  .main-nav, .header-cta { display: none; }
  .menu-toggle { display: inline-flex; }
  .hero { align-items: end; padding-bottom: 170px; }
  .hero-inner { max-width: 100%; }
  .hero::before {
    content: ""; position: absolute; inset: 35% 0 0 0; pointer-events: none;
    background: linear-gradient(to bottom, transparent, rgba(7, 8, 13, 0.85) 45%);
  }
  .hero-inner { position: relative; }
  .hero-note { position: static; width: auto; margin-top: 1.6rem; font-size: 1.3rem; }
  .scroll-cue { bottom: calc(84px + env(safe-area-inset-bottom)); padding: 6px 16px 6px 6px; font-size: 0.74rem; }
  .scroll-cue-icon { width: 32px; height: 32px; }
  .has-motion .story-acts { bottom: 110px; right: calc(var(--gutter) + 18px); }
  .has-motion .story-progress { top: auto; bottom: 120px; right: 12px; }
  /* su telefono la velatura sta solo dietro il testo, così la scena (porta, città, messaggi) resta luminosa */
  .story::before {
    content: ""; position: absolute; inset: 62% 0 0 0; pointer-events: none;
    background: linear-gradient(to bottom, transparent, rgba(7, 8, 13, 0.55) 55%);
  }
  .has-motion .story-acts::before {
    inset: auto -30% -70px -25%; height: 380px;
    background: radial-gradient(closest-side, rgba(7, 8, 13, 0.72), rgba(7, 8, 13, 0.4) 60%, rgba(7, 8, 13, 0));
  }
  .value-unique .value-demo { min-height: 0; }
  .mobile-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    background: rgba(7, 8, 13, 0.86);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    border-top: 1px solid var(--line);
  }
  .mobile-bar a {
    display: grid; place-items: center; min-height: 48px; border-radius: 999px;
    font-weight: 700; text-decoration: none; border: 1px solid var(--line-strong);
  }
  .mobile-bar a:first-child { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
  .site-footer { padding-bottom: calc(92px + env(safe-area-inset-bottom)); }
  /* tablet e telefono: la vetrina sta in alto, il testo in basso */
  .final { justify-content: flex-end; }
  .final-copy { max-width: none; }
  .footer-top { gap: 12px 24px; }
  .footer-top nav ul, .footer-contacts { gap: 4px 16px; }
  .brand--footer { --logo-w: 120px; }
  body.menu-open .mobile-bar { display: none; }
}
/* telefono */
@media (max-width: 699px) {
  .values-grid { grid-template-columns: minmax(0, 1fr); }
  .value-unique { flex-direction: column; align-items: stretch; }
  .value-unique .value-demo, .value-unique .value-copy { flex: none; }
  /* sempre inclusi: un elenco ordinato, una voce per riga */
  .plan-includes-title { justify-content: flex-start; text-align: left; }
  .plan-includes-title::before { display: none; }
  .includes { flex-direction: column; align-items: stretch; gap: 8px; }
  .includes li { border-radius: 14px; }
  .compare { aspect-ratio: 4 / 3; }
  .value-modern { flex-direction: column; align-items: stretch; }
  .plans { grid-template-columns: minmax(0, 1fr); }
  .form-row { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 520px) {
  .hero-actions .btn { flex: 1 1 100%; }
  .final-actions { width: 100%; }
  .final-actions .btn { flex: 1 1 100%; }
  .booking-head { padding: 16px 16px 0; }
  .booking-form { padding: 12px 16px 18px; }
  .site-footer { font-size: 0.88rem; }
  /* nome e telefono affiancati anche su telefono; i recapiti del footer sono già nella sezione sopra */
  .booking-form .form-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0.7rem; }
  .footer-contacts { display: none; }
  .phone { width: 30%; right: -2%; }
  .devices { transform: rotateY(-8deg) rotateX(5deg); }
}

/* ---------- Riduzione del movimento ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.2s !important; }
  .grain { display: none; }
  .scroll-cue, .scroll-cue-icon svg { animation: none !important; }
  .value-visible.is-in .map-dot { animation: none; opacity: 0.8; transform: translate(calc(var(--x) * 0.4), calc(var(--y) * 0.4)); }
}

/* ---------- Pagine legali ---------- */
.legal-page { background: var(--bg); }
.legal-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 22px var(--gutter); border-bottom: 1px solid var(--line); }
.legal-header .brand { --logo-w: 116px; }
.legal { max-width: 760px; margin: 0 auto; padding: clamp(56px, 9vw, 120px) var(--gutter); }
.legal h1 { font-family: var(--f-display); font-weight: 400; font-size: clamp(2.8rem, 7vw, 5rem); line-height: 1; letter-spacing: -0.02em; }
.legal-updated { margin-top: 1rem; color: var(--muted); font-size: 0.9rem; }
.legal h2 { margin-top: 2.6rem; font-family: var(--f-sans); font-size: 1.2rem; font-weight: 700; letter-spacing: 0; line-height: 1.3; }
.legal p { margin-top: 0.8rem; color: #d7d2c9; }
.legal-list { margin-top: 0.6rem; padding-left: 1.2rem; list-style: disc; color: #d7d2c9; }
.legal-list li { margin-top: 0.3rem; }
.legal a { color: var(--accent); }
.legal-page .site-footer { padding-top: 0; padding-bottom: 28px; border-top: 0; }
