/* ==========================================================================
   Giuseppe Golia — Marketer, Closer & Setter
   Replica fedele del template "Aniviox": campo verde smeraldo, pannelli neri.
   I token qui sotto sono documentati in DESIGN.md. Le illustrazioni delle card
   (telefoni, laptop, icone 3D) stanno in illustrazioni.css.
   ========================================================================== */

:root {
  /* Superfici */
  --bg: #0e0e0e;
  --bg-2: #151515;
  --line: #262626;
  --line-2: #363636;

  /* Testo */
  --text: #ffffff;
  --text-2: rgba(255, 255, 255, 0.72);
  --text-3: #8f8f8f;
  --text-soft: #d9d9d9;
  --on-green-2: rgba(236, 255, 245, 0.8);

  /* Verdi campionati dal template */
  --emerald-bright: #06b25e;
  --green: #05ac5a;
  --teal-glow: #02a878;
  --field-highlight: #06cc8a;
  --emerald-deep: #04825a;
  --pine-mid: #0a4a39;
  --pine: #063c2f;
  --pine-deep: #07291f;
  --mint: #2fd082;
  --mint-soft: #9cffe2;
  --mint-white: #eafff4;
  --mint-mist: #cfe9dc;
  --logo-mint: #74eeb2;
  --ink-green: #0b4d31;
  --ink-deep: #062416;

  /* Pulsanti */
  --green-deep: #0b7743;
  --green-mid: #1b9e5c;
  --green-hover-deep: #0d8a4e;
  --green-hover: #22b86c;
  --dot-light: #36de97;
  --dot: #0aa864;

  /* Card illustrate */
  --card-glow: #2b5c40;
  --card-mid: #172a1f;
  --card-deep: #0f1511;
  --card-floor: #080f0b;

  /* Luce e ombre */
  --glow: rgba(52, 238, 166, 0.4);
  --ring: 0 0 0 1px rgba(255, 255, 255, 0.08);
  --shadow-float: 0 18px 40px -14px rgba(0, 0, 0, 0.7);
  --shadow-drop: 0 40px 60px -22px rgba(0, 0, 0, 0.75);
  --shadow-lift: 0 14px 30px -12px rgba(0, 0, 0, 0.45);
  --shadow-lift-green: 0 14px 34px -12px rgba(27, 158, 92, 0.6);

  /* Il campo verde dell'hero, riusato in Chi sono, Prenota e nel menu */
  --field:
    radial-gradient(42% 60% at 51% 10%, color-mix(in srgb, var(--field-highlight) 80%, transparent) 0%, color-mix(in srgb, var(--teal-glow) 35%, transparent) 52%, transparent 78%),
    radial-gradient(52% 70% at 104% 58%, color-mix(in srgb, var(--pine-deep) 95%, transparent) 0%, color-mix(in srgb, var(--pine-deep) 55%, transparent) 48%, transparent 76%),
    linear-gradient(180deg, transparent 46%, color-mix(in srgb, var(--pine-deep) 92%, transparent) 100%),
    linear-gradient(100deg, var(--emerald-bright) 0%, var(--green) 24%, var(--teal-glow) 40%, var(--emerald-deep) 55%, var(--pine-mid) 72%, var(--pine-deep) 100%);
  --field-flat: linear-gradient(100deg, var(--emerald-bright) 0%, var(--green) 34%, var(--emerald-deep) 64%, var(--pine-mid) 100%);
  --noise: 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='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");

  /* Tipografia */
  --font: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --fs-display: clamp(3.2rem, 8.3vw, 7.4rem);
  --fs-headline: clamp(2.3rem, 5.2vw, 4.6rem);
  --fs-lead: clamp(1.25rem, 2.3vw, 2.05rem);
  --fs-pretitle: clamp(1.15rem, 2.2vw, 2rem);
  --fs-title: clamp(1.6rem, 2.8vw, 2.55rem);
  --fs-claim: clamp(1.25rem, 2.1vw, 1.95rem);
  --fs-subtitle: clamp(1.15rem, 1.7vw, 1.5rem);
  --fs-lead-sm: clamp(1.08rem, 1.45vw, 1.32rem);
  --fs-body-l: clamp(1rem, 1.3vw, 1.18rem);
  --fs-body: 17px;
  --fs-body-s: 16px;
  --fs-label: 15.5px;
  --fs-small: 14px;
  --fs-micro: 13px;
  --fs-logo: clamp(23px, 2.5vw, 36px);

  /* Misure */
  --max: 1440px;
  --gutter: clamp(20px, 3.4vw, 56px);
  --wrap: min(calc(100% - 2 * var(--gutter)), calc(var(--max) - 2 * var(--gutter)));
  --section: clamp(96px, 11vw, 176px);
  --r-xl: clamp(28px, 4vw, 56px);
  --r-l: clamp(22px, 2.4vw, 32px);
  --r-pill: 999px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Base ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
/* Il contorno segue la forma di ogni elemento (pillole comprese): nessun raggio forzato. */
:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; }
::selection { background: var(--mint); color: var(--ink-deep); }
.menu-open { overflow: hidden; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: fixed; left: 16px; top: -64px; z-index: 100;
  padding: 12px 18px; border-radius: var(--r-pill); background: var(--text); color: var(--ink-green); font-weight: 600;
  transition: top 0.3s var(--ease);
}
.skip:focus { top: 16px; }

.wrap { width: var(--wrap); margin-inline: auto; }

.grain {
  position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background-image: var(--noise); background-size: 180px;
  opacity: 0.16; mix-blend-mode: overlay;
}

/* --- Tipografia condivisa -------------------------------------------------- */
.h-display {
  font-size: var(--fs-headline);
  font-weight: 600;
  line-height: 1.07;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.kicker {
  color: var(--mint);
  font-size: var(--fs-pretitle);
  font-weight: 500;
  letter-spacing: -0.015em;
  margin-bottom: clamp(12px, 1.6vw, 22px);
}
.lead {
  font-size: var(--fs-lead);
  font-weight: 500;
  line-height: 1.38;
  letter-spacing: -0.02em;
  text-wrap: pretty;
}
.lead--sm {
  font-size: var(--fs-lead-sm);
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: -0.01em;
  color: var(--text-2);
}
.muted { color: var(--text-3); font-size: var(--fs-label); line-height: 1.5; }
.hash { color: var(--mint); margin-right: 0.08em; font-weight: 600; }

/* --- Pulsanti a pillola (bianca con cerchio verde / verde con cerchio bianco) --- */
.pill {
  display: inline-flex; align-items: center; gap: 14px;
  height: 54px; padding: 0 7px 0 24px;
  border-radius: var(--r-pill);
  font-size: var(--fs-label); font-weight: 600; letter-spacing: -0.01em; white-space: nowrap;
  transition: background-color 0.35s, box-shadow 0.35s, translate 0.45s var(--ease);
}
.pill__dot {
  flex: none; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  transition: transform 0.6s var(--ease);
}
.pill__dot svg { width: 18px; height: 18px; }
.pill:hover { translate: 0 -2px; }
.pill:hover .pill__dot { transform: rotate(-45deg); }
.pill--light { background: var(--text); color: var(--ink-green); }
.pill--light .pill__dot {
  background: linear-gradient(140deg, var(--dot-light), var(--dot));
  color: var(--text);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--mint-soft) 50%, transparent);
}
.pill--light:hover { background: var(--mint-white); box-shadow: var(--shadow-lift); }
.pill--green { background: linear-gradient(90deg, var(--green-deep), var(--green-mid)); color: var(--text); }
.pill--green .pill__dot { background: var(--text); color: var(--green-deep); }
.pill--green:hover { background: linear-gradient(90deg, var(--green-hover-deep), var(--green-hover)); box-shadow: var(--shadow-lift-green); }
.pill--lg { height: 62px; padding-left: 30px; font-size: var(--fs-body); gap: 18px; }
.pill--lg .pill__dot { width: 48px; height: 48px; }

/* --- Navigazione ----------------------------------------------------------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; pointer-events: none; }
/* Allo scorrimento la barra non cambia layout: compare una pillola scura dietro i contenuti. */
.nav__inner {
  position: relative; isolation: isolate;
  pointer-events: auto;
  display: flex; align-items: center; gap: clamp(24px, 3vw, 44px);
  width: var(--wrap);
  margin: 22px auto 0;
  transition: translate 0.6s var(--ease);
}
.nav__inner::before {
  content: ""; position: absolute; inset: -8px -8px -8px -24px; z-index: -1;
  border-radius: var(--r-pill);
  background: var(--bg-2);
  box-shadow: var(--ring), var(--shadow-float);
  opacity: 0; transform: scale(0.97, 0.85);
  transition: opacity 0.4s var(--ease), transform 0.6s var(--ease);
}
.nav.is-scrolled .nav__inner { translate: 0 -6px; }
.nav.is-scrolled .nav__inner::before { opacity: 1; transform: none; }
.logo {
  font-size: var(--fs-logo);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  white-space: nowrap;
  transform-origin: left center;
  transition: transform 0.5s var(--ease);
}
.logo__g { color: var(--logo-mint); }
.nav.is-scrolled .logo { transform: scale(0.8); }
.footer .logo { transform: none; }
.nav__links { margin-left: auto; display: flex; gap: clamp(24px, 3vw, 44px); font-size: var(--fs-body-s); font-weight: 500; }
.nav__links a { position: relative; padding: 6px 0; opacity: 0.92; transition: opacity 0.3s; }
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; border-radius: var(--r-pill);
  background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform 0.5s var(--ease);
}
.nav__links a:hover { opacity: 1; }
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }

.burger {
  display: none; position: relative; flex: none;
  width: 48px; height: 48px; margin-left: auto; border-radius: 50%;
  background: var(--text);
}
.burger__line {
  position: absolute; left: 15px; right: 15px; height: 2px; border-radius: var(--r-pill);
  background: var(--ink-green);
  transition: transform 0.45s var(--ease), top 0.45s var(--ease);
}
.burger__line--a { top: 19px; }
.burger__line--b { top: 27px; }
.burger[aria-expanded="true"] .burger__line--a { top: 23px; transform: rotate(45deg); }
.burger[aria-expanded="true"] .burger__line--b { top: 23px; transform: rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 45;
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 44px;
  padding: 120px var(--gutter) 56px;
  background: var(--field);
  opacity: 0; visibility: hidden;
  transition: opacity 0.45s var(--ease), visibility 0s linear 0.45s;
}
.menu.is-open { opacity: 1; visibility: visible; transition: opacity 0.45s var(--ease); }
.menu__links { display: flex; flex-direction: column; gap: 4px; }
.menu__links a {
  font-size: var(--fs-headline); font-weight: 600; letter-spacing: -0.035em; line-height: 1.15;
  opacity: 0; translate: 0 24px;
  transition: opacity 0.6s var(--ease), translate 0.8s var(--ease);
}
.menu.is-open .menu__links a { opacity: 1; translate: 0 0; }
.menu.is-open .menu__links a:nth-child(2) { transition-delay: 0.05s; }
.menu.is-open .menu__links a:nth-child(3) { transition-delay: 0.1s; }
.menu.is-open .menu__links a:nth-child(4) { transition-delay: 0.15s; }
.menu.is-open .menu__links a:nth-child(5) { transition-delay: 0.2s; }

/* --- Hero ------------------------------------------------------------------ */
.hero {
  position: relative; isolation: isolate; z-index: 2;
  display: flex; flex-direction: column;
  min-height: clamp(660px, min(100svh, 69vw), 1000px);
  overflow: hidden;
  border-radius: 0 0 var(--r-xl) var(--r-xl);
  background: var(--pine);
}
.hero__bg { position: absolute; inset: 0; z-index: -2; background: var(--field); }
.hero__glow {
  position: absolute;
  left: calc(52% + var(--mx, 0) * 7%);
  top: calc(16% + var(--my, 0) * 5%);
  width: 52vw; aspect-ratio: 1; translate: -50% -50%;
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--glow), transparent);
  opacity: 0.85;
}
.hero__inner {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: 1fr auto;
  column-gap: 24px;
  width: var(--wrap);
  margin-inline: auto;
  padding: clamp(112px, 13vh, 150px) 0 clamp(30px, 4.4vh, 50px);
}
.hero__intro { grid-column: 1 / span 6; grid-row: 1; align-self: center; position: relative; z-index: 1; padding-top: 3vh; }
.hero__hello {
  font-size: var(--fs-pretitle);
  font-weight: 500; letter-spacing: -0.015em;
  opacity: 0.95;
  margin-bottom: clamp(10px, 1.4vw, 22px);
}
.hero__title {
  font-size: var(--fs-display);
  font-weight: 700;
  line-height: 0.97;
  letter-spacing: -0.04em;
  translate: calc(var(--mx, 0) * 5px) 0;
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.hero__title .line > span { display: block; }

.hero__portrait {
  position: absolute; z-index: -1; bottom: -2%;
  left: calc((100% - min(100%, var(--max))) / 2 + min(100%, var(--max)) * 0.35);
  height: 93%;
  aspect-ratio: 970 / 1639;
  margin: 0;
  translate: calc(var(--mx, 0) * -14px) calc(var(--my, 0) * -7px);
}
/* Le maschere usano il nero come valore di opacità, non come colore visibile. */
.hero__portrait img {
  position: relative;
  width: 100%; height: 100%;
  object-fit: contain; object-position: bottom center;
  -webkit-mask-image: linear-gradient(to right, #000 74%, transparent 99%), linear-gradient(to top, transparent 4%, #000 34%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, #000 74%, transparent 99%), linear-gradient(to top, transparent 4%, #000 34%);
  mask-composite: intersect;
}
.hero__halo {
  position: absolute; left: 38%; top: 20%;
  width: 82%; aspect-ratio: 1; translate: -50% -50%;
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--glow), transparent);
}

.hero__aside {
  grid-column: 9 / -1; grid-row: 1;
  justify-self: end; align-self: center;
  width: min(100%, 21rem);
  margin-top: 14vh;
  position: relative; z-index: 1;
  text-shadow: 0 1px 24px color-mix(in srgb, var(--pine-deep) 55%, transparent);
}
.hero__claim {
  font-size: var(--fs-claim);
  font-weight: 600; line-height: 1.22; letter-spacing: -0.025em;
  margin-bottom: 16px;
}
.hero__text { font-size: var(--fs-body-l); line-height: 1.6; color: var(--on-green-2); }

.hero__services {
  grid-column: 1 / -1; grid-row: 2;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px;
  position: relative; z-index: 1;
}
.hero__services a { display: inline-flex; flex-direction: column; gap: 8px; padding: 4px 0; }
.hero__services .num { font-size: var(--fs-body-l); font-weight: 700; letter-spacing: -0.01em; }
.hero__services .label {
  position: relative;
  font-size: var(--fs-body-l); font-weight: 500;
  color: var(--on-green-2);
  transition: color 0.3s;
}
.hero__services .label::after {
  content: ""; position: absolute; left: 0; bottom: -4px; width: 100%; height: 1.5px; border-radius: var(--r-pill);
  background: var(--mint); transform: scaleX(0); transform-origin: left; transition: transform 0.6s var(--ease);
}
.hero__services a:hover .label { color: var(--text); }
.hero__services a:hover .label::after { transform: scaleX(1); }

/* --- Fascia strumenti ------------------------------------------------------ */
.tools {
  position: relative; z-index: 1;
  margin-top: calc(var(--r-xl) * -1);
  padding: calc(var(--r-xl) + clamp(44px, 5.4vw, 80px)) 0 clamp(56px, 6.6vw, 96px);
  background: var(--bg-2);
  border-radius: 0 0 var(--r-xl) var(--r-xl);
}
.tools__inner { display: flex; align-items: center; gap: clamp(32px, 5vw, 88px); }
.tools__label { flex: none; font-size: var(--fs-label); font-weight: 700; line-height: 1.4; letter-spacing: -0.005em; }
.tools__viewport { flex: 1; min-width: 0; display: flex; overflow: hidden; }
.tools__list { flex: 1; display: flex; align-items: center; justify-content: space-between; gap: clamp(24px, 3vw, 48px); }
.tools__list--clone { display: none; }
.tools__list li {
  display: flex; align-items: center; gap: 0.4em;
  color: var(--text-soft); opacity: 0.8;
  font-size: var(--fs-subtitle); font-weight: 600; letter-spacing: -0.035em; white-space: nowrap;
  transition: opacity 0.3s, color 0.3s;
}
.tools__list li:hover { opacity: 1; color: var(--text); }
.tools__ico { width: 1.1em; height: 1.1em; flex: none; }
.tools__ico--wide { width: 1.4em; }
.tools__ico--zoom { width: 3.9em; height: 0.95em; }

/* --- Il mio approccio ------------------------------------------------------ */
.approach { padding-top: var(--section); }
.approach__head {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 96px); align-items: start;
}
.approach__side { padding-top: 0.3em; }
.approach__cta {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  margin-top: clamp(28px, 3.8vw, 56px);
}

.channels {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 1.8vw, 24px);
  margin-top: clamp(52px, 6vw, 90px);
}
.channel {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end;
  aspect-ratio: 4 / 4.5; min-height: 400px;
  border-radius: var(--r-l);
  background: radial-gradient(100% 85% at var(--light-x, 50%) 0%, var(--card-glow) 0%, var(--card-mid) 50%, var(--card-deep) 100%);
}
.channel--phone { --light-x: 22%; }
.channel--call { --light-x: 78%; }
.channel--social { --light-x: 50%; }
.channel__art { position: absolute; inset: 0; z-index: -1; }
.channel .grain { z-index: 0; opacity: 0.12; }
.channel__body {
  position: relative; z-index: 1;
  padding: 96px clamp(22px, 2.4vw, 32px) clamp(22px, 2.4vw, 32px);
  background: linear-gradient(to top, color-mix(in srgb, var(--card-floor) 96%, transparent) 38%, transparent);
}
.channel__body h3 { font-size: var(--fs-subtitle); font-weight: 600; letter-spacing: -0.025em; line-height: 1.2; }
.channel__body p { margin-top: 6px; color: var(--text-2); font-size: var(--fs-body-s); line-height: 1.5; }

/* --- Servizi --------------------------------------------------------------- */
.services { padding-top: var(--section); }
.services__head {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.78fr);
  gap: clamp(28px, 5vw, 80px); align-items: end;
  margin-bottom: clamp(44px, 5vw, 76px);
}
.service {
  position: relative; isolation: isolate;
  display: grid;
  grid-template-columns: minmax(64px, 0.3fr) minmax(0, 1fr) minmax(0, 1.3fr) auto;
  gap: clamp(16px, 3vw, 48px); align-items: center;
  padding: clamp(28px, 3vw, 42px) clamp(16px, 2.4vw, 36px);
  border-top: 1px solid var(--line);
  transition: border-color 0.4s;
}
.service:last-child { border-bottom: 1px solid var(--line); }
.service::before {
  content: ""; position: absolute; inset: -1px 0; z-index: -1;
  border-radius: var(--r-l);
  background: var(--field-flat);
  opacity: 0; transform: scale(0.98, 0.7);
  transition: opacity 0.45s var(--ease), transform 0.75s var(--ease);
}
.service:hover::before, .service:focus-within::before { opacity: 1; transform: none; }
.service:hover, .service:focus-within, .service:hover + .service, .service:focus-within + .service { border-top-color: transparent; }
.service:last-child:hover, .service:last-child:focus-within { border-bottom-color: transparent; }
.service__num { font-size: var(--fs-body-l); font-weight: 700; }
.service:hover .hash, .service:focus-within .hash { color: var(--mint-white); }
.service__title { font-size: var(--fs-title); font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; }
.service__body > p:first-child { max-width: 54ch; color: var(--text-2); font-size: var(--fs-body-s); line-height: 1.6; }
.service:hover .service__body > p:first-child, .service:focus-within .service__body > p:first-child { color: var(--on-green-2); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.tags span {
  padding: 6px 12px; border-radius: var(--r-pill);
  background: color-mix(in srgb, var(--text) 6%, transparent);
  color: var(--mint-mist); font-size: var(--fs-micro); font-weight: 600;
  transition: background-color 0.4s;
}
.service:hover .tags span, .service:focus-within .tags span { background: color-mix(in srgb, var(--bg) 24%, transparent); }
.service__go {
  width: 60px; height: 60px; border-radius: 50%;
  display: grid; place-items: center;
  box-shadow: inset 0 0 0 1px var(--line-2);
  transition: background-color 0.4s, color 0.4s, box-shadow 0.4s, transform 0.6s var(--ease);
}
.service__go svg { width: 22px; height: 22px; }
.service:hover .service__go, .service:focus-within .service__go { background: var(--text); color: var(--green-deep); box-shadow: none; transform: rotate(45deg); }

/* --- Chi sono -------------------------------------------------------------- */
.about {
  padding-top: var(--section);
  display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(36px, 6vw, 110px); align-items: center;
}
.about__visual { position: relative; }
.about__panel {
  position: relative; isolation: isolate; overflow: hidden;
  aspect-ratio: 4 / 5;
  border-radius: var(--r-xl);
  background: var(--field);
}
.about__glow {
  position: absolute; left: 50%; top: 24%; z-index: -1;
  width: 96%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%;
  background: radial-gradient(closest-side, var(--glow), transparent);
}
.about__panel img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 100%;
  -webkit-mask-image: linear-gradient(to top, transparent 0, #000 24%);
  mask-image: linear-gradient(to top, transparent 0, #000 24%);
}
.about__panel .grain { z-index: 1; }
.about__badge {
  position: absolute; left: clamp(16px, 2vw, 28px); bottom: clamp(16px, 2vw, 28px); z-index: 2;
  display: flex; align-items: center; gap: 10px;
  padding: 12px 18px;
  border-radius: var(--r-pill);
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  box-shadow: var(--ring), var(--shadow-float);
  font-size: var(--fs-small); font-weight: 600;
}
.about__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px color-mix(in srgb, var(--mint) 20%, transparent); }
.about__content .h-display { max-width: 13ch; margin-bottom: clamp(20px, 2.4vw, 32px); }
.about__intro { color: var(--text); font-weight: 500; }
.about__text { margin-top: 16px; max-width: 60ch; color: var(--text-2); }
.principles { display: grid; gap: 20px; margin: clamp(28px, 3vw, 40px) 0 clamp(32px, 3.4vw, 44px); }
.principles li { display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: start; }
.principles__ico { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--mint) 12%, transparent); color: var(--mint); }
.principles__ico svg { width: 20px; height: 20px; }
.principles p { color: var(--text-2); font-size: var(--fs-body-s); line-height: 1.55; }
.principles strong { display: block; margin-bottom: 2px; color: var(--text); font-size: var(--fs-body-l); font-weight: 600; letter-spacing: -0.01em; }

/* --- Metodo ---------------------------------------------------------------- */
.method { padding-top: var(--section); }
.method__panel {
  position: relative; isolation: isolate; overflow: hidden;
  padding: clamp(40px, 6vw, 88px) clamp(24px, 5vw, 80px) clamp(44px, 6vw, 92px);
  border-radius: var(--r-xl);
  background:
    radial-gradient(46% 70% at 100% 0%, color-mix(in srgb, var(--green) 20%, transparent), transparent 72%),
    var(--bg-2);
}
.method__panel .grain { z-index: -1; opacity: 0.08; }
.method__head {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
  gap: 40px; align-items: end;
  margin-bottom: clamp(52px, 6vw, 92px);
}
.steps { position: relative; }
.steps__track { position: absolute; left: 28px; top: 27px; width: 0; height: 2px; border-radius: var(--r-pill); background: var(--line); overflow: hidden; }
.steps__fill {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--green-deep), var(--mint));
  transform-origin: left center;
  transform: scaleX(var(--p, 0));
}
.steps.is-vertical .steps__fill { background: linear-gradient(180deg, var(--green-deep), var(--mint)); transform-origin: center top; transform: scaleY(var(--p, 0)); }
.steps__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 3vw, 48px); }
.step__node {
  position: relative; z-index: 1;
  width: 56px; height: 56px; margin-bottom: 28px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--bg-2);
  box-shadow: inset 0 0 0 1px var(--line-2);
  font-size: var(--fs-label); font-weight: 700; color: var(--text-3);
  transition: background-color 0.5s, color 0.5s, box-shadow 0.5s;
}
.step.is-on .step__node { background: var(--mint); color: var(--ink-deep); box-shadow: 0 0 0 7px color-mix(in srgb, var(--mint) 14%, transparent); }
.step h3 { margin-bottom: 10px; font-size: var(--fs-subtitle); font-weight: 600; letter-spacing: -0.02em; }
.step p { color: var(--text-2); font-size: var(--fs-body-s); line-height: 1.6; }

/* --- Fascia che scorre ----------------------------------------------------- */
.marquee {
  margin-top: var(--section);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track { display: flex; align-items: center; width: max-content; animation: marquee 40s linear infinite; }
.marquee span {
  margin-right: clamp(24px, 3vw, 48px);
  font-size: var(--fs-display); font-weight: 600; letter-spacing: -0.04em; line-height: 1.12; white-space: nowrap;
}
.marquee .is-ghost { color: transparent; -webkit-text-stroke: 1.5px color-mix(in srgb, var(--text) 30%, transparent); }
.marquee i { flex: none; width: clamp(14px, 1.4vw, 22px); aspect-ratio: 1; margin-right: clamp(24px, 3vw, 48px); border-radius: 50%; background: var(--mint); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* --- Domande --------------------------------------------------------------- */
.faq {
  padding-top: var(--section);
  display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(36px, 6vw, 100px); align-items: start;
}
.faq__head { position: sticky; top: 120px; }
.faq__head .muted { margin: 20px 0 32px; }
.qa { border-bottom: 1px solid var(--line); }
.qa:first-child { border-top: 1px solid var(--line); }
.qa summary {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 28px 0;
  list-style: none; cursor: pointer;
  font-size: var(--fs-subtitle); font-weight: 600; letter-spacing: -0.02em; line-height: 1.3;
  transition: color 0.3s;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary:hover { color: var(--mint-white); }
.qa summary:focus-visible { outline-offset: 6px; }
.qa__icon {
  position: relative; flex: none;
  width: 48px; height: 48px; border-radius: 50%;
  box-shadow: inset 0 0 0 1px var(--line-2);
  transition: background-color 0.35s, color 0.35s, box-shadow 0.35s, transform 0.55s var(--ease);
}
.qa__icon::before, .qa__icon::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 16px; height: 2px; border-radius: var(--r-pill);
  background: currentColor; translate: -50% -50%;
}
.qa__icon::after { rotate: 90deg; }
.qa[open]:not(.is-closing) .qa__icon { background: var(--mint); color: var(--ink-deep); box-shadow: none; transform: rotate(45deg); }
.qa__body { overflow: hidden; }
.qa__body p { max-width: 62ch; padding: 0 64px 30px 0; color: var(--text-2); font-size: var(--fs-body); line-height: 1.65; }

/* --- Prenota --------------------------------------------------------------- */
.cta { padding-top: var(--section); }
.cta__panel {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; align-items: center;
  min-height: clamp(520px, 44vw, 640px);
  padding: clamp(44px, 7vw, 104px) clamp(24px, 6vw, 96px);
  border-radius: var(--r-xl);
}
.cta__bg { position: absolute; inset: 0; z-index: -2; background: var(--field); }
.cta__glow {
  position: absolute; right: 12%; top: 22%;
  width: 46%; aspect-ratio: 1; translate: 50% -50%; border-radius: 50%;
  background: radial-gradient(closest-side, var(--glow), transparent);
}
.cta__portrait {
  position: absolute; z-index: -1; right: 0; bottom: 0;
  height: 94%; width: auto;
  -webkit-mask-image: linear-gradient(to top, transparent 0, #000 28%);
  mask-image: linear-gradient(to top, transparent 0, #000 28%);
}
.cta__content { position: relative; max-width: min(100%, 44rem); }
.cta__person { display: flex; align-items: center; gap: 10px; margin-bottom: 26px; font-size: var(--fs-label); font-weight: 600; color: var(--mint-white); }
.cta__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--text); box-shadow: 0 0 0 4px color-mix(in srgb, var(--text) 22%, transparent); }
.cta__title { max-width: 15ch; font-size: var(--fs-headline); font-weight: 600; line-height: 1.02; letter-spacing: -0.04em; text-wrap: balance; }
.cta__text { max-width: 42ch; margin-top: 22px; font-size: var(--fs-lead-sm); line-height: 1.55; color: var(--on-green-2); }
.cta__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 38px; }
.link-ico {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 2px;
  font-size: var(--fs-body-s); font-weight: 600;
  border-bottom: 1px solid color-mix(in srgb, var(--text) 40%, transparent);
  transition: border-color 0.3s;
}
.link-ico svg { width: 20px; height: 20px; }
.link-ico:hover { border-color: var(--text); }

/* --- Footer ---------------------------------------------------------------- */
.footer {
  margin-top: var(--section);
  padding: clamp(56px, 7vw, 96px) 0 28px;
  background: var(--bg-2);
  border-radius: var(--r-xl) var(--r-xl) 0 0;
}
.footer__top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer__brand p { margin-top: 16px; color: var(--text-3); font-size: var(--fs-label); line-height: 1.5; }
.footer__title { margin-bottom: 16px; color: var(--text-3); font-size: var(--fs-small); font-weight: 600; }
.footer__col { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.footer__col a { display: inline-flex; align-items: center; gap: 8px; color: var(--text-soft); font-size: var(--fs-label); transition: color 0.3s; }
.footer__col a:hover { color: var(--mint); }
.footer__col svg { width: 16px; height: 16px; }
.footer__word {
  margin: clamp(56px, 7vw, 100px) 0 clamp(20px, 2.4vw, 32px);
  font-size: calc((min(100vw, var(--max)) - 2 * var(--gutter)) / 6.8); font-weight: 700; letter-spacing: -0.04em; line-height: 0.9;
  color: var(--line); white-space: nowrap; text-align: center; user-select: none;
}
.footer__bottom {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  padding-top: 24px; border-top: 1px solid var(--line);
  color: var(--text-3); font-size: var(--fs-small);
}
.to-top { display: inline-flex; align-items: center; gap: 8px; color: var(--text-soft); transition: color 0.3s; }
.to-top svg { width: 16px; height: 16px; }
.to-top:hover { color: var(--mint); }

/* Pulsante flottante (solo mobile) */
.fab {
  position: fixed; left: 50%; bottom: max(16px, env(safe-area-inset-bottom)); z-index: 40;
  display: none;
  translate: -50% 160%;
  opacity: 0; visibility: hidden;
  box-shadow: var(--shadow-drop);
  transition: translate 0.55s var(--ease), opacity 0.4s, visibility 0s linear 0.55s, background-color 0.35s;
}
.fab.is-visible { opacity: 1; visibility: visible; transition: translate 0.55s var(--ease), opacity 0.4s, background-color 0.35s; }

/* --- Ingresso dell'hero: il campo si accende, il ritratto emerge, il titolo sale --- */
.js .hero__bg { filter: brightness(0.32) saturate(0.6); }
.js .hero__portrait img { opacity: 0; transform: translateY(46px) scale(1.04); filter: blur(12px); }
.js .hero__title .line > span { transform: translateY(108%); }
.js .hero [data-in] { opacity: 0; transform: translateY(22px); }
.js .nav__inner { opacity: 0; }

.js .hero.is-ready .hero__bg { filter: none; transition: filter 1.8s var(--ease); }
.js .hero.is-ready .hero__portrait img {
  opacity: 1; transform: none; filter: none;
  transition: opacity 1.2s var(--ease) 0.25s, transform 1.6s var(--ease) 0.25s, filter 1.3s var(--ease) 0.25s;
}
.js .hero.is-ready .hero__title .line > span { transform: none; transition: transform 1.25s var(--ease) calc(0.32s + var(--i) * 0.1s); }
.js .hero.is-ready [data-in] { opacity: 1; transform: none; transition: opacity 1s var(--ease) var(--d, 0s), transform 1.2s var(--ease) var(--d, 0s); }
.js.is-ready-nav .nav__inner { opacity: 1; transition: opacity 1s var(--ease) 0.5s, translate 0.6s var(--ease); }

/* Rivelazioni allo scorrimento: salita per i testi, tendina per le immagini */
.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 0.9s var(--ease) var(--d, 0s), transform 1.1s var(--ease) var(--d, 0s); }
.js [data-reveal="clip"] { opacity: 1; transform: none; clip-path: inset(22% 0 0 0 round var(--r-l)); transition: clip-path 1.3s var(--ease) var(--d, 0s); }
.js .about__visual[data-reveal="clip"], .js .cta__panel[data-reveal="clip"] { clip-path: inset(22% 0 0 0 round var(--r-xl)); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-reveal="clip"].is-in { clip-path: inset(0 0 0 0 round var(--r-l)); }
.js .about__visual[data-reveal="clip"].is-in, .js .cta__panel[data-reveal="clip"].is-in { clip-path: inset(0 0 0 0 round var(--r-xl)); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1180px) {
  .hero__portrait { left: calc(100% * 0.31); height: 84%; }
  .hero__intro { grid-column: 1 / span 7; }
  .hero__aside { width: min(100%, 19rem); }
  .channel { aspect-ratio: 4 / 5; }
  .service { grid-template-columns: minmax(56px, 0.25fr) minmax(0, 1fr) auto; }
  .service__body { grid-column: 2 / 3; }
  .service__title { grid-column: 2 / 3; }
  .service__go { grid-column: 3; grid-row: 1 / span 2; }
  .footer__top { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
}

@media (max-width: 860px) {
  body { font-size: var(--fs-body-s); }
  html { scroll-padding-top: 84px; }

  .nav__links, .nav__cta { display: none; }
  .burger { display: block; }
  .nav__inner { margin-top: 16px; }
  .nav__inner::before { inset: -7px -7px -7px -14px; }

  /* Hero impilato: titolo, ritratto, claim, servizi */
  .hero { min-height: 0; }
  .hero__inner { display: flex; flex-direction: column; padding-top: 104px; padding-bottom: 32px; }
  .hero__intro { padding-top: 0; align-self: stretch; }
  .hero__title { font-size: clamp(3.2rem, 15.5vw, 7.4rem); }
  .hero__portrait {
    position: relative; left: auto; bottom: auto; z-index: 0;
    width: calc(100% + 2 * var(--gutter)); height: auto;
    aspect-ratio: 970 / 1240;
    margin: -7% calc(var(--gutter) * -1) 0;
    translate: none;
  }
  .hero__portrait img {
    object-fit: cover; object-position: 50% 0;
    -webkit-mask-image: linear-gradient(to top, transparent 2%, #000 42%);
    mask-image: linear-gradient(to top, transparent 2%, #000 42%);
  }
  .hero__aside { width: 100%; align-self: stretch; margin-top: -24%; }
  .hero__claim { font-size: var(--fs-title); }
  .hero__text { max-width: 36ch; }
  .hero__services {
    grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 16px;
    margin-top: 36px; padding-top: 28px;
    border-top: 1px solid color-mix(in srgb, var(--text) 14%, transparent);
  }

  .tools__inner { flex-direction: column; align-items: flex-start; gap: 22px; }
  .tools__viewport {
    width: calc(100% + 2 * var(--gutter)); margin-inline: calc(var(--gutter) * -1);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  }
  .tools__list { flex: none; justify-content: flex-start; gap: 40px; padding-right: 40px; animation: tools 26s linear infinite; }
  .tools__list--clone { display: flex; }

  .approach__head, .services__head, .method__head { grid-template-columns: 1fr; gap: 24px; }
  .approach__cta { flex-wrap: wrap; }
  .channels { grid-template-columns: 1fr; }
  .channel { aspect-ratio: auto; height: clamp(420px, 118vw, 520px); }

  .service { grid-template-columns: 1fr auto; gap: 14px 20px; padding: 28px 4px; }
  .service__num { grid-column: 1; grid-row: 1; }
  .service__go { grid-column: 2; grid-row: 1 / span 2; align-self: start; width: 52px; height: 52px; }
  .service__title { grid-column: 1 / -1; grid-row: 2; }
  .service__body { grid-column: 1 / -1; grid-row: 3; }
  .service::before { inset: -1px -12px; }

  .about { grid-template-columns: 1fr; }
  .about__visual { width: min(100%, 520px); }

  .steps__list { grid-template-columns: 1fr; gap: 36px; }
  .step { position: relative; padding-left: 80px; min-height: 56px; }
  .step__node { position: absolute; left: 0; top: -6px; margin: 0; }

  .faq { grid-template-columns: 1fr; }
  .faq__head { position: static; }
  .qa__body p { padding-right: 0; }

  .cta__panel { flex-direction: column; align-items: flex-start; min-height: 0; padding-top: 0; }
  .cta__portrait { position: relative; order: -1; right: auto; height: auto; width: calc(100% + 2 * clamp(24px, 6vw, 96px)); max-width: none; margin: 0 calc(clamp(24px, 6vw, 96px) * -1) -18%; }
  .cta__glow { right: 50%; top: 18%; width: 90%; }

  .footer__top { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 20px; }
  .footer__brand { grid-column: 1 / -1; }
  .footer { padding-bottom: 104px; }

  .fab { display: inline-flex; }
  .fab.is-visible { translate: -50% 0; }
}

@media (max-width: 520px) {
  .pill--lg { height: 58px; padding-left: 24px; font-size: var(--fs-body-s); }
  .pill--lg .pill__dot { width: 44px; height: 44px; }
  .approach__cta .muted { flex-basis: 100%; }
  .about__name { display: none; }
  .channel__body { padding-top: 80px; }
  .footer__top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
}

@keyframes tools { to { transform: translateX(-100%); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; transition-delay: 0s !important; }
  .js .hero__bg, .js .hero__portrait img, .js .hero__title .line > span, .js .hero [data-in], .js .nav__inner,
  .js [data-reveal], .js [data-reveal="clip"] { opacity: 1 !important; transform: none !important; filter: none !important; clip-path: none !important; }
}
