/* ============================================================
   Edoardo Marchese — main.css
   Deep Ink premium + accent electric-emerald "growth"
   ============================================================ */

:root {
  --bg: #070A12;
  --surface: #0E1320;
  --surface-2: #131A2B;
  --text: #F1F5FB;
  --muted: #8B95A9;
  --accent: #2DE0A6;
  --accent-2: #6C6CF6;
  --line: rgba(255,255,255,0.08);
  --line-strong: rgba(255,255,255,0.14);
  --radius: 18px;
  --maxw: 1180px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --font-head: "Bricolage Grotesque", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.15vw, 1.12rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.sr-only {
  position: absolute; 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; top: -60px; left: 12px; z-index: 200;
  background: var(--accent); color: #04120C; padding: 10px 16px; border-radius: 10px;
  font-weight: 600; transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; }

a { color: inherit; text-decoration: none; }
strong { color: var(--text); font-weight: 600; }
::selection { background: rgba(45,224,166,.28); color: #fff; }

/* ---------- shared ---------- */
.kicker {
  font-family: var(--font-mono);
  font-size: .74rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 1rem;
}
h1, h2, h3 { font-family: var(--font-head); line-height: 1.02; letter-spacing: -.02em; font-weight: 600; }
h2 { font-size: clamp(2rem, 4.5vw, 3.5rem); font-weight: 700; }
h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); }

section { padding: clamp(4.5rem, 9vw, 8rem) clamp(1.25rem, 5vw, 3rem); }
.section-head { max-width: 760px; margin: 0 auto clamp(2.5rem, 5vw, 4rem); text-align: center; }
.section-sub { color: var(--muted); margin-top: 1.1rem; font-size: 1.08rem; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .09s; }
.reveal-d2 { transition-delay: .18s; }
.reveal-d3 { transition-delay: .27s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* ---------- buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  gap: .5rem; padding: .95rem 1.6rem; border-radius: 999px; font-weight: 600;
  font-size: .98rem; cursor: pointer; border: 1px solid transparent;
  transition: transform .25s var(--ease), background .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease);
  will-change: transform;
}
.btn-primary { background: var(--accent); color: #04120C; }
.btn-primary:hover { box-shadow: 0 12px 40px -12px rgba(45,224,166,.6); }
.btn-ghost { border-color: var(--line-strong); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-wa { border-color: var(--line-strong); color: var(--muted); }
.btn-wa:hover { color: #25D366; border-color: #25D366; }
.btn-block { width: 100%; }

/* ---------- navbar ---------- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 100; transition: background .3s var(--ease), border-color .3s var(--ease), backdrop-filter .3s; border-bottom: 1px solid transparent; }
.nav.scrolled { border-bottom-color: var(--line); }
/* blur su ::before (non su .nav) per non rompere il position:fixed del menu mobile */
.nav.scrolled::before { content: ""; position: absolute; inset: 0; background: rgba(7,10,18,.72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); z-index: -1; }
.nav-inner { max-width: var(--maxw); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; padding: 1rem clamp(1.25rem, 5vw, 3rem); }
.brand { display: flex; align-items: center; gap: .6rem; font-family: var(--font-head); font-weight: 700; }
.brand-mark { font-family: var(--font-mono); font-size: .82rem; background: var(--accent); color: #04120C; padding: .28rem .42rem; border-radius: 8px; letter-spacing: -.02em; }
.brand-text { font-size: 1rem; }
.nav-links { display: flex; align-items: center; gap: 1.8rem; }
.nav-links > a { position: relative; font-size: .95rem; color: var(--muted); transition: color .25s var(--ease); }
.nav-links > a:not(.nav-cta)::after { content: ""; position: absolute; left: 0; bottom: -5px; height: 2px; width: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav-links > a:not(.nav-cta):hover { color: var(--text); }
.nav-links > a:not(.nav-cta):hover::after { transform: scaleX(1); }
.nav-cta { background: var(--accent); color: #04120C; padding: .7rem 1.4rem; border-radius: 999px; font-weight: 700; font-size: .96rem; letter-spacing: -.01em; box-shadow: 0 8px 26px -10px rgba(45,224,166,.65); transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 12px 34px -10px rgba(45,224,166,.8); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--text); transition: transform .3s var(--ease), opacity .3s var(--ease); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- scroll progress ---------- */
.scroll-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 101; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
/* barra progresso fluida via scroll-timeline nativa (no jank su mobile); fallback JS su width */
@supports (animation-timeline: scroll()) {
  .scroll-progress { width: 100%; transform: scaleX(0); transform-origin: 0 50%; will-change: transform; animation: sp-grow linear both; animation-timeline: scroll(root); }
  @keyframes sp-grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
}
@media (prefers-reduced-motion: reduce) { @supports (animation-timeline: scroll()) { .scroll-progress { animation: none; transform: scaleX(0); } } }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding-top: 7rem; overflow: hidden; }
.hero-mesh { position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(60% 80% at 20% 15%, rgba(45,224,166,.16) 0%, transparent 55%),
    radial-gradient(50% 70% at 85% 30%, rgba(108,108,246,.14) 0%, transparent 60%),
    radial-gradient(80% 90% at 50% 110%, rgba(45,224,166,.08) 0%, transparent 70%);
}
.hero-canvas { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; }
.hero-inner { position: relative; z-index: 2; max-width: var(--maxw); margin: 0 auto; width: 100%; }
.hero-title { font-size: clamp(3rem, 11vw, 8rem); font-weight: 800; margin: .4rem 0 1.4rem; letter-spacing: -.03em; }
.hero-title .line { display: block; }
.hero-title .line--thin { font-weight: 300; color: var(--muted); }
.hero-desc { max-width: 620px; font-size: clamp(1.05rem, 1.5vw, 1.3rem); color: #C6CEDC; }
.hero-badges { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1.8rem 0; }
.badge { font-family: var(--font-mono); font-size: .76rem; color: var(--muted); border: 1px solid var(--line-strong); border-radius: 999px; padding: .4rem .85rem; transition: border-color .25s var(--ease), color .25s var(--ease); }
.badge:hover { border-color: var(--accent); color: var(--accent); }
.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; }
.hero-trust { margin-top: 1.6rem; font-family: var(--font-mono); font-size: .74rem; letter-spacing: .04em; color: var(--muted); }
.hero-scroll { position: absolute; bottom: 1.8rem; left: 50%; transform: translateX(-50%); z-index: 2; font-family: var(--font-mono); font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: .5rem; }
.hero-scroll span { width: 1px; height: 34px; background: linear-gradient(var(--accent), transparent); animation: scrolldown 1.8s var(--ease) infinite; }
@keyframes scrolldown { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 50.1% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ---------- stats ---------- */
.stats { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.stats-grid { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.stat { text-align: center; }
.stat-num { display: block; font-family: var(--font-mono); font-weight: 600; font-size: clamp(2.2rem, 4.5vw, 3.4rem); color: var(--text); letter-spacing: -.03em; }
.stat-lbl { display: block; margin-top: .5rem; font-size: .86rem; color: var(--muted); }

/* ---------- services ---------- */
.services-grid { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; align-items: stretch; }
.card { position: relative; display: flex; flex-direction: column; background: linear-gradient(180deg, var(--surface-2), var(--surface)); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem 1.8rem; overflow: hidden; transition: transform .35s var(--ease), border-color .35s var(--ease); }
.card:hover { border-color: var(--line-strong); }
.card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.4rem; }
.card-idx { font-family: var(--font-mono); font-size: 1rem; color: var(--muted); }
.card-tag { font-family: var(--font-mono); font-size: .68rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); border: 1px solid var(--line-strong); border-radius: 999px; padding: .28rem .7rem; }
.card-tag--accent { color: #04120C; background: var(--accent); border-color: var(--accent); }
.card-title { margin-bottom: .8rem; }
.card-desc { color: var(--muted); font-size: .98rem; }
.card-list { list-style: none; margin: 1.2rem 0 0; display: grid; gap: .5rem; }
.card-list li { position: relative; padding-left: 1.3rem; font-size: .9rem; color: #C6CEDC; }
.card-list li::before { content: ""; position: absolute; left: 0; top: .6em; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.card-cta { align-self: flex-start; margin-top: auto; display: inline-flex; align-items: center; gap: .4rem; padding: .62rem 1.05rem; border-radius: 999px; background: rgba(45,224,166,.12); border: 1px solid rgba(45,224,166,.35); color: var(--accent); font-weight: 600; font-size: .9rem; cursor: pointer; transition: background .25s var(--ease), color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease); }
.card-cta:hover { background: var(--accent); color: #04120C; transform: translateY(-2px); box-shadow: 0 10px 26px -12px rgba(45,224,166,.75); }
/* featured Google Ads card */
.card--featured { grid-row: span 1; background: linear-gradient(180deg, var(--surface-2), var(--surface)); border-color: rgba(45,224,166,.32); box-shadow: 0 30px 80px -40px rgba(45,224,166,.35); }
.card--featured::before { content: ""; position: absolute; inset: 0; padding: 1px; border-radius: var(--radius); background: linear-gradient(140deg, rgba(45,224,166,.5), transparent 40%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.card-canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .4s var(--ease); pointer-events: none; z-index: 0; }
.card--featured:hover .card-canvas { opacity: .5; }

/* interactive glow che segue il mouse — su tutte le card/step/why/testimonianze */
.card, .step, .why-item, .tst { position: relative; overflow: hidden; }
.glow-layer { position: absolute; width: 300px; height: 300px; border-radius: 50%; background: radial-gradient(circle, rgba(45,224,166,.18), transparent 70%); left: var(--mx, 50%); top: var(--my, 30%); transform: translate(-50%, -50%); pointer-events: none; opacity: 0; transition: opacity .3s var(--ease); z-index: 0; }
.card:hover .glow-layer, .step:hover .glow-layer, .why-item:hover .glow-layer, .tst:hover .glow-layer { opacity: 1; }
.card > *:not(.glow-layer):not(.card-canvas),
.step > *:not(.glow-layer),
.why-item > *:not(.glow-layer),
.tst > *:not(.glow-layer) { position: relative; z-index: 1; }

/* ---------- method / steps ---------- */
.method { background: var(--surface); border-top: 1px solid var(--line); }
.steps { max-width: var(--maxw); margin: 0 auto; list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.step { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem 1.5rem; }
.step-n { font-family: var(--font-mono); font-size: .82rem; color: var(--accent); }
.step h3 { margin: .8rem 0 .6rem; font-size: 1.3rem; }
.step p { color: var(--muted); font-size: .92rem; }

/* ---------- why ---------- */
.why-grid { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.why-item { padding: 1.8rem; border-left: 2px solid var(--accent); background: linear-gradient(90deg, rgba(45,224,166,.05), transparent); border-radius: 0 var(--radius) var(--radius) 0; }
.why-item h3 { margin-bottom: .8rem; }
.why-item p { color: var(--muted); font-size: .96rem; }

/* ---------- testimonials ---------- */
.testimonials { background: var(--surface); border-top: 1px solid var(--line); }
.tst-grid { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.tst { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem; display: flex; flex-direction: column; gap: 1.2rem; }
.tst blockquote { font-family: var(--font-head); font-size: 1.08rem; line-height: 1.45; color: var(--text); }
.tst figcaption { font-size: .86rem; color: var(--muted); margin-top: auto; }
.tst figcaption strong { color: var(--accent); }

/* ---------- about ---------- */
.about { background: var(--surface); border-top: 1px solid var(--line); }
.about-grid { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
/* roadmap del metodo (sostituisce la foto) */
.about-visual { display: flex; flex-direction: column; }
.rm-node { position: relative; display: flex; gap: 1rem; align-items: flex-start; background: linear-gradient(180deg, var(--surface-2), var(--surface)); border: 1px solid var(--line); border-radius: 16px; padding: 1.2rem 1.3rem; transition: transform .3s var(--ease), border-color .3s var(--ease); }
.rm-node:hover { transform: translateX(4px); border-color: var(--line-strong); }
.rm-node--accent { border-color: rgba(45,224,166,.42); box-shadow: 0 24px 60px -38px rgba(45,224,166,.5); }
.rm-ico { flex: 0 0 auto; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: rgba(45,224,166,.12); border: 1px solid rgba(45,224,166,.32); color: var(--accent); }
.rm-ico svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.rm-step { display: block; font-family: var(--font-mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: .25rem; }
.rm-node strong { font-family: var(--font-head); font-size: 1.05rem; display: block; margin-bottom: .3rem; }
.rm-node p { color: var(--muted); font-size: .9rem; margin: 0; line-height: 1.5; }
.rm-arrow { width: 2px; height: 30px; margin-left: calc(1.3rem + 20px); background: linear-gradient(var(--accent), rgba(45,224,166,.15)); position: relative; }
.rm-arrow::after { content: ""; position: absolute; bottom: -1px; left: 50%; transform: translateX(-50%); border-left: 5px solid transparent; border-right: 5px solid transparent; border-top: 6px solid var(--accent); }
.rm-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-left: .35rem; vertical-align: middle; box-shadow: 0 0 0 0 rgba(45,224,166,.55); animation: rm-pulse 1.4s ease-out infinite; }
@keyframes rm-pulse { 0% { box-shadow: 0 0 0 0 rgba(45,224,166,.55); } 70% { box-shadow: 0 0 0 7px rgba(45,224,166,0); } 100% { box-shadow: 0 0 0 0 rgba(45,224,166,0); } }
@media (prefers-reduced-motion: reduce) { .rm-dot { animation: none; } }
.rm-loop { margin-top: 1.1rem; text-align: center; font-family: var(--font-mono); font-size: .72rem; letter-spacing: .08em; color: var(--muted); display: flex; align-items: center; justify-content: center; gap: .5rem; }
.rm-loop::before { content: "↻"; color: var(--accent); font-size: 1.15rem; }
.about-content h2 { margin: .4rem 0 1.4rem; }
.about-content p { color: var(--muted); }
.about-highlights { list-style: none; margin-top: 1.6rem; display: grid; gap: .7rem; }
.about-highlights li { position: relative; padding-left: 1.7rem; color: #C6CEDC; font-size: .95rem; }
.about-highlights li::before { content: "→"; position: absolute; left: 0; color: var(--accent); }

/* ---------- sectors ---------- */
.chips { max-width: 900px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: .7rem; justify-content: center; }
.chip { font-size: .9rem; color: var(--muted); border: 1px solid var(--line-strong); border-radius: 999px; padding: .55rem 1.1rem; transition: transform .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease); }
.chip:hover { transform: translateY(-2px); border-color: var(--accent); color: var(--accent); }

/* ---------- faq ---------- */
.faq { background: var(--surface); border-top: 1px solid var(--line); }
.faq-list { max-width: 820px; margin: 0 auto; display: grid; gap: .8rem; }
.faq-item { background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 0 1.4rem; transition: border-color .25s var(--ease); }
.faq-item[open] { border-color: var(--line-strong); }
.faq-item summary { list-style: none; cursor: pointer; padding: 1.2rem 0; font-family: var(--font-head); font-weight: 600; font-size: 1.08rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--accent); font-size: 1.4rem; transition: transform .3s var(--ease); }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { color: var(--muted); padding: 0 0 1.3rem; font-size: .96rem; }

/* ---------- contact ---------- */
.contact { position: relative; }
.contact-inner { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.contact-copy h2 { margin: .4rem 0 1.2rem; }
.contact-copy p { color: var(--muted); }
.contact-form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; display: grid; gap: 1.2rem; }
.field { position: relative; }
.field input, .field textarea { width: 100%; background: var(--bg); border: 1px solid var(--line-strong); border-radius: 12px; padding: 1.15rem 1rem .5rem; color: var(--text); font-family: inherit; font-size: .98rem; transition: border-color .25s var(--ease); resize: vertical; }
.field textarea { padding-top: 1.4rem; }
.field label { position: absolute; left: 1rem; top: .95rem; color: var(--muted); font-size: .98rem; pointer-events: none; transition: transform .2s var(--ease), font-size .2s var(--ease), color .2s var(--ease); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.field input:focus + label, .field textarea:focus + label,
.field input:not(:placeholder-shown) + label, .field textarea:not(:placeholder-shown) + label { transform: translateY(-.7rem); font-size: .7rem; color: var(--accent); }
.field.is-invalid input, .field.is-invalid textarea { border-color: #ff5c72; }
.field.shake { animation: shake .35s var(--ease); }
@keyframes shake { 0%,100%{transform:translateX(0)} 25%{transform:translateX(-5px)} 75%{transform:translateX(5px)} }
.privacy { display: flex; align-items: center; gap: .6rem; font-size: .85rem; color: var(--muted); }
.privacy input { accent-color: var(--accent); width: 16px; height: 16px; }
.privacy a { color: var(--accent); text-decoration: underline; }
.privacy.is-invalid { color: #ff8a99; }
.form-reassure { font-size: .82rem; color: var(--muted); text-align: center; }
.form-direct { font-size: .86rem; color: var(--muted); text-align: center; }
.form-direct a { color: var(--accent); }
.form-message { font-size: .92rem; padding: .8rem 1rem; border-radius: 10px; }
.form-message.success { background: rgba(45,224,166,.12); color: var(--accent); }
.form-message.error { background: rgba(255,92,114,.12); color: #ff8a99; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); padding: clamp(3rem,6vw,4rem) clamp(1.25rem,5vw,3rem); background: var(--surface); }
.footer-inner { max-width: var(--maxw); margin: 0 auto; text-align: center; display: grid; gap: 1rem; justify-items: center; }
.footer-brand { display: flex; align-items: center; gap: .6rem; font-family: var(--font-head); font-weight: 700; }
.footer-tag { color: var(--muted); max-width: 520px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.footer-links a { color: var(--muted); font-size: .92rem; transition: color .25s var(--ease); }
.footer-links a:hover { color: var(--accent); }
.footer-legal { color: rgba(139,149,169,.65); font-size: .82rem; }

/* ---------- custom cursor ---------- */
.cursor-dot, .cursor-ring { position: fixed; top: 0; left: 0; border-radius: 50%; pointer-events: none; z-index: 300; mix-blend-mode: difference; opacity: 0; transition: opacity .3s; }
.cursor-dot { width: 7px; height: 7px; background: #fff; transform: translate(-50%,-50%); }
.cursor-ring { width: 34px; height: 34px; border: 1px solid rgba(255,255,255,.6); transform: translate(-50%,-50%); transition: width .25s var(--ease), height .25s var(--ease), opacity .3s; }
.cursor-ring.hover { width: 54px; height: 54px; border-color: var(--accent); }
/* cursore custom additivo: il puntatore nativo resta visibile (scelta CRO) */

/* ---------- mobile sticky bar ---------- */
.mobile-bar { display: none; position: fixed; left: 1rem; right: 1rem; bottom: calc(1rem + env(safe-area-inset-bottom, 0px)); z-index: 95; background: var(--accent); color: #04120C; text-align: center; padding: 1rem; border-radius: 999px; font-weight: 700; transform: translateY(140%); transition: transform .4s var(--ease); box-shadow: 0 12px 40px -12px rgba(45,224,166,.6); }
.mobile-bar.visible { transform: translateY(0); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 940px) {
  .nav-links { position: fixed; inset: 0 0 0 auto; width: min(80vw, 320px); flex-direction: column; justify-content: center; align-items: flex-start; gap: 1.6rem; background: var(--surface); padding: 2rem; transform: translateX(100%); transition: transform .35s var(--ease); border-left: 1px solid var(--line); }
  .nav-links.open { transform: translateX(0); }
  .nav-links > a { font-size: 1.2rem; }
  .nav-toggle { display: flex; z-index: 110; }
  .services-grid, .steps, .why-grid, .tst-grid { grid-template-columns: 1fr 1fr; }
  .card--featured { grid-column: span 2; }
  .about-grid, .contact-inner { grid-template-columns: 1fr; }
  .about-photo { max-width: 320px; }
}
@media (max-width: 640px) {
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 2rem 1rem; }
  .services-grid, .steps, .why-grid, .tst-grid { grid-template-columns: 1fr; }
  .card--featured { grid-column: span 1; }
  .hero-scroll { display: none; }
  .mobile-bar { display: block; }
  .nav .nav-cta { display: none; }
}
