/* =========================================================================
   BUZZ — sito pubblico www.buzzstudio.it
   Un solo foglio di stile, senza strumenti di compilazione.
   Ordine: basi · componenti comuni · sezioni (nell'ordine della pagina) · movimento ridotto
   ========================================================================= */

@font-face {
  font-family: "Anybody";
  src: url("/fonts/Anybody-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 50% 150%;
  font-display: swap;
}

:root {
  --ink: #0a0a0a;
  --ink-2: #141218;
  --paper: #f6f5f8;
  --violet: #6c3bff;
  --violet-deep: #4a1fd6;
  --violet-soft: #b8a2ff;
  --muted: #a49eae;
  --muted-dark: #5d5768;
  --line: rgba(255, 255, 255, .14);
  --line-dark: rgba(10, 10, 10, .14);
  --gutter: clamp(16px, 4vw, 56px);
  --header-h: 76px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --font: "Anybody", "Arial Narrow", Arial, sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--header-h); scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font);
  font-size: clamp(15px, 1.05vw, 17px);
  line-height: 1.55;
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, p, ol, ul, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
[hidden] { display: none !important; }
::selection { background: var(--violet); color: #fff; }
:focus-visible { outline: 2px solid var(--violet-soft); outline-offset: 4px; border-radius: 4px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ico { width: 1em; height: 1em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.shell { width: min(100% - 2 * var(--gutter), 1440px); margin-inline: auto; }

.skip-link {
  position: fixed; left: 16px; top: -60px; z-index: 100;
  background: var(--paper); color: var(--ink); padding: 10px 16px; border-radius: 999px; font-weight: 700;
}
.skip-link:focus { top: 16px; }

/* ---------- Testi ricorrenti ---------- */
.eyebrow {
  display: flex; align-items: center; gap: .6em; flex-wrap: wrap;
  font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted);
}
.eyebrow-side { margin-left: auto; color: var(--muted-dark); }
.display {
  font-weight: 900; font-stretch: 150%; text-transform: uppercase;
  font-size: clamp(42px, 7.4vw, 128px); line-height: .88; letter-spacing: -.01em;
}
.accent { color: var(--violet); }

/* ---------- Pulsanti e link ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 18px 26px; border-radius: 999px;
  font-weight: 700; font-size: 15px; letter-spacing: .01em;
  transition: background .3s, color .3s, transform .4s var(--ease);
  will-change: transform;
}
.btn .ico { width: 20px; height: 20px; transition: transform .4s var(--ease); }
.btn:hover .ico { transform: translate(3px, -3px) rotate(0deg); }
.btn-light { background: var(--paper); color: var(--ink); }
.btn-light:hover { background: var(--violet); color: #fff; }
.btn-violet { background: var(--violet); color: #fff; }
.btn-violet:hover { background: var(--paper); color: var(--ink); }
.btn:disabled { opacity: .5; cursor: not-allowed; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px;
  padding-bottom: 4px; background: linear-gradient(currentColor, currentColor) left bottom / 100% 1px no-repeat;
  transition: background-size .5s var(--ease), color .3s;
}
.link-arrow:hover { background-size: 30% 1px; color: var(--violet-soft); }
.link-arrow .ico { width: 16px; height: 16px; }

/* ---------- Barra di avanzamento, grana, cursore ---------- */
.progress { position: fixed; inset: 0 0 auto; height: 3px; z-index: 60; pointer-events: none; }
.progress span { display: block; height: 100%; background: var(--violet); transform-origin: left; transform: scaleX(0); }

.grain {
  position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1s steps(4) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 25% { transform: translate(-3%, 2%); }
  50% { transform: translate(2%, -3%); } 75% { transform: translate(-2%, -1%); } 100% { transform: translate(0, 0); }
}

.cursor { display: none; }
.has-cursor .cursor { display: block; position: fixed; inset: 0; pointer-events: none; z-index: 130; } /* sopra l'ingresso (120) */
.has-cursor, .has-cursor a, .has-cursor button { cursor: none; }
.has-cursor input, .has-cursor textarea, .has-cursor select { cursor: auto; }
.cursor-dot, .cursor-ring { position: absolute; left: 0; top: 0; border-radius: 50%; will-change: transform; }
.cursor-dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--paper); mix-blend-mode: difference; }
.cursor-ring {
  width: 40px; height: 40px; margin: -20px 0 0 -20px; border: 1px solid rgba(255, 255, 255, .5);
  display: grid; place-items: center; transition: width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease), background .35s, border-color .35s;
  mix-blend-mode: difference;
}
.cursor-ring b { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; opacity: 0; transition: opacity .2s; }
.cursor.is-link .cursor-ring { width: 64px; height: 64px; margin: -32px 0 0 -32px; background: rgba(255, 255, 255, .12); border-color: transparent; }
.cursor.is-label .cursor-ring { width: 96px; height: 96px; margin: -48px 0 0 -48px; background: var(--violet); border-color: transparent; mix-blend-mode: normal; }
.cursor.is-label .cursor-ring b { opacity: 1; color: #fff; }
.cursor.is-label .cursor-dot { opacity: 0; }
.cursor.is-hidden { opacity: 0; }
.cursor { transition: opacity .3s; }
/* Il lettore video sta sopra a tutto: lì si usa il puntatore normale */
.has-cursor .story, .has-cursor .story * { cursor: auto; }
.has-cursor .story a, .has-cursor .story button { cursor: pointer; }
.has-cursor.story-open .cursor { display: none; }

/* ---------- Testata ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding-inline: var(--gutter);
  transition: transform .5s var(--ease), background .4s, color .4s, box-shadow .4s, backdrop-filter .4s;
}
.site-header.is-solid { background: rgba(10, 10, 10, .72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
/* Sopra le parti chiare la testata diventa chiara, sopra il viola diventa viola */
.site-header.is-solid.is-light { background: rgba(246, 245, 248, .82); color: var(--ink); box-shadow: 0 1px 0 var(--line-dark); }
.site-header.is-solid.is-violet { background: rgba(108, 59, 255, .82); }
.brand { position: relative; display: block; }
.brand img { transition: opacity .4s; }
.brand .logo-on-light { position: absolute; left: 0; top: 0; opacity: 0; }
.site-header.is-light .logo-on-light { opacity: 1; }
.site-header.is-light .logo-on-dark { opacity: 0; }
.site-header.is-light .nav-cta { border-color: var(--line-dark); }
.site-header.is-light .nav-cta:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.site-header.is-hidden { transform: translateY(-100%); }
.brand img { width: 108px; }
.site-header nav { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 34px); font-size: 14px; font-weight: 600; }
.site-header nav a:not(.nav-cta) { position: relative; }
.site-header nav a:not(.nav-cta)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease);
}
.site-header nav a:not(.nav-cta):hover::after { transform: scaleX(1); transform-origin: left; }
.nav-cta { display: inline-flex; align-items: center; gap: 6px; padding: 10px 16px; border: 1px solid var(--line); border-radius: 999px; transition: background .3s, color .3s, border-color .3s; }
.nav-cta:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }
@media (max-width: 640px) {
  .site-header nav a:not(.nav-cta) { display: none; }
}

/* =========================================================================
   00 · APERTURA
   ========================================================================= */
.hero { position: relative; height: 140vh; height: 140svh; }
.hero-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: grid; grid-template-rows: 1fr auto; }
.hero-art { position: absolute; inset: 0; }
.hero-art picture, .hero-art img { width: 100%; height: 100%; }
.hero-art img {
  object-fit: cover; object-position: 70% 50%;
  transform: scale(calc(1.08 + var(--hero-p, 0) * .35)) translate3d(var(--px, 0px), var(--py, 0px), 0);
  filter: saturate(1.15) brightness(calc(.85 - var(--hero-p, 0) * .45));
  transition: transform .2s linear;
}
.hero-waves { position: absolute; inset: 0; width: 100%; height: 100%; mix-blend-mode: screen; opacity: .9; }
.hero-vignette {
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 90% at 70% 40%, transparent 30%, rgba(10, 10, 10, .65) 80%),
    linear-gradient(180deg, rgba(10, 10, 10, .55) 0%, transparent 22%, transparent 60%, var(--ink) 100%);
}
.hero-content {
  position: relative; z-index: 2; align-self: end;
  padding-top: calc(var(--header-h) + 24px);
  display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 24px 40px;
  transform: translateY(calc(var(--hero-p, 0) * -14vh));
  opacity: calc(1 - var(--hero-p, 0) * 1.6);
}
.hero-content .eyebrow { grid-column: 1 / -1; color: var(--paper); }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--violet); box-shadow: 0 0 0 0 rgba(108, 59, 255, .7); animation: live 2s infinite; }
@keyframes live { 70% { box-shadow: 0 0 0 10px rgba(108, 59, 255, 0); } 100% { box-shadow: 0 0 0 0 rgba(108, 59, 255, 0); } }

.hero-title { grid-column: 1 / -1; text-transform: uppercase; font-weight: 900; line-height: .84; letter-spacing: -.015em; }
.hero-title > span { display: block; }
.hero-intro { font-size: clamp(16px, 1.6vw, 24px); font-weight: 700; font-stretch: 100%; letter-spacing: .02em; margin-bottom: .9em; }
.hero-line, .hero-volume { font-size: clamp(54px, 11.6vw, 210px); font-stretch: 150%; }
.hero-line { padding-left: 0; }
.hero-volume { padding-left: clamp(30px, 6vw, 120px); color: var(--paper); }
.hero-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 48px; max-width: 980px; }
.hero-description { max-width: 440px; color: #d9d4e2; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; }

.meter { display: grid; gap: 10px; justify-items: end; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--violet-soft); }
.meter-bars { display: flex; align-items: flex-end; gap: 4px; height: 56px; }
.meter-bars i { width: 6px; height: 100%; background: var(--violet-soft); border-radius: 2px; transform-origin: bottom; transform: scaleY(.15); transition: transform .12s linear; }
.meter-value { color: var(--paper); font-variant-numeric: tabular-nums; }

.hero-bottom {
  position: relative; z-index: 2; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 22px 0 26px; margin-top: 26px; border-top: 1px solid var(--line);
  font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  opacity: calc(1 - var(--hero-p, 0) * 3);
}
.hero-bottom a { display: inline-flex; gap: 8px; align-items: center; }
.hero-bottom a:hover { color: var(--violet-soft); }
.scroll-hint { display: inline-flex; align-items: center; gap: 10px; }
.scroll-hint i { width: 1px; height: 26px; background: var(--line); position: relative; overflow: hidden; }
.scroll-hint i::after { content: ""; position: absolute; inset: 0; background: var(--paper); animation: drip 1.8s var(--ease-in-out) infinite; }
@keyframes drip { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }

@media (max-width: 900px) {
  .hero-content { grid-template-columns: minmax(0, 1fr); }
  .meter { display: none; }
  .hero-bottom span:first-child { display: none; }
}
@media (max-width: 600px) {
  .hero-line, .hero-volume { font-size: 12.2vw; }
  .hero-volume { padding-left: 5vw; }
  .hero-bottom .scroll-hint { display: none; }
}

/* ---------- Striscia scorrevole ---------- */
.ticker { position: relative; z-index: 3; background: var(--violet); color: #fff; overflow: hidden; padding: 18px 0; transform: rotate(-1.4deg) scale(1.04); margin-block: -10px; }
.ticker-track { display: flex; align-items: center; gap: 30px; width: max-content; will-change: transform; }
.ticker-track span { font-weight: 900; font-stretch: 150%; text-transform: uppercase; font-size: clamp(22px, 3vw, 44px); line-height: 1; white-space: nowrap; }
.ticker-track b { font-size: clamp(20px, 2.4vw, 34px); font-weight: 400; }

/* =========================================================================
   01 · IN OTTIMA COMPAGNIA
   ========================================================================= */
.proof { position: relative; display: grid; grid-template-columns: 1fr 1.2fr; gap: 60px; padding-block: clamp(110px, 16vw, 220px) clamp(90px, 12vw, 170px); }
.proof-head .display { margin-top: 22px; font-size: clamp(38px, 4.8vw, 86px); }
.proof-body > p { color: var(--muted); max-width: 420px; margin-bottom: 40px; font-size: 17px; }
.client-list li { border-top: 1px solid var(--line); }
.client-list li:last-child { border-bottom: 1px solid var(--line); }
.client-list a {
  display: grid; grid-template-columns: 40px 1fr auto 28px; align-items: center; gap: 16px;
  padding: 26px 4px; position: relative; overflow: hidden;
}
.client-list a::before { content: ""; position: absolute; inset: 0; background: var(--violet); transform: scaleY(0); transform-origin: bottom; transition: transform .55s var(--ease); z-index: -1; }
.client-list a:hover::before, .client-list a:focus-visible::before { transform: scaleY(1); }
.client-list .num { font-size: 12px; color: var(--muted); font-weight: 700; }
.client-list .name { font-size: clamp(24px, 3.2vw, 46px); font-weight: 800; font-stretch: 125%; line-height: 1; transition: transform .55s var(--ease), font-stretch .55s var(--ease); }
.client-list a:hover .name { transform: translateX(10px); font-stretch: 150%; }
.client-list .tag { white-space: nowrap; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.client-list a:hover .tag, .client-list a:hover .num { color: #fff; }
.client-list .ico { width: 24px; height: 24px; transition: transform .45s var(--ease); }
.client-list .thumb { display: none; }
.client-list a:hover .ico { transform: rotate(45deg); }
.client-preview {
  position: fixed; left: 0; top: 0; width: 220px; aspect-ratio: 9 / 16; z-index: 40; pointer-events: none;
  border-radius: 14px; overflow: hidden; opacity: 0; transform: translate(-50%, -50%) scale(.6) rotate(-6deg);
  transition: opacity .3s, transform .5s var(--ease); box-shadow: 0 30px 80px rgba(0, 0, 0, .6);
}
.client-preview.is-on { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(-4deg); }
.client-preview img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 900px) {
  .proof { grid-template-columns: 1fr; gap: 36px; }
  .client-list .tag { display: none; }
  .client-list a { grid-template-columns: 56px 1fr 24px; padding-block: 18px; }
  .client-list .num { display: none; }
  .client-list .thumb { display: block; width: 56px; aspect-ratio: 4 / 5; border-radius: 10px; overflow: hidden; }
  .client-list .thumb img { width: 100%; height: 100%; object-fit: cover; }
  .client-preview { display: none; }
}

/* =========================================================================
   02 · IL PUNTO DI PARTENZA (fissato mentre si scorre)
   ========================================================================= */
.problem { position: relative; height: 230vh; background: var(--ink); }
.problem-sticky {
  position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden;
  display: grid; align-items: center;
  background: color-mix(in srgb, var(--violet) calc(var(--problem-bg, 0) * 100%), var(--ink));
}
.problem-mark {
  position: absolute; right: -14vmin; top: 50%; width: 78vmin; opacity: .14;
  transform: translateY(-50%) rotate(calc(var(--problem-p, 0) * 220deg)) scale(calc(.8 + var(--problem-p, 0) * .5));
}
.problem .eyebrow { color: var(--paper); opacity: .7; }
.problem-title { margin-top: 22px; text-transform: uppercase; font-weight: 900; line-height: .88; font-size: clamp(40px, 8.2vw, 150px); }
.problem-title span {
  display: block; font-stretch: calc(118% + var(--l, 0) * 32%);
  opacity: var(--l, 0);
  transform: translateY(calc((1 - var(--l, 0)) * .45em));
}
.problem-title span:nth-child(2) { padding-left: 7vw; }
.problem-title .accent { color: color-mix(in srgb, var(--paper) calc(var(--problem-bg, 0) * 100%), var(--violet)); }
.problem-copy {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin-top: clamp(30px, 6vh, 70px); max-width: 1100px;
  opacity: var(--copy, 0); transform: translateY(calc((1 - var(--copy, 0)) * 40px));
}
.problem-copy p { font-size: clamp(15px, 1.2vw, 18px); }
.problem-copy .muted { color: rgba(255, 255, 255, .78); }
.problem-resolution { display: flex; gap: 10px; align-items: flex-start; font-weight: 800; font-stretch: 125%; font-size: clamp(18px, 1.6vw, 24px) !important; }
.problem-resolution .ico { margin-top: .2em; }
@media (max-width: 900px) {
  .problem-copy { grid-template-columns: 1fr; gap: 14px; }
}

/* =========================================================================
   03 · COME LAVORIAMO (scorrimento orizzontale su schermi grandi)
   ========================================================================= */
.method { position: relative; background: var(--paper); color: var(--ink); }
.method .eyebrow { color: var(--muted-dark); }
.method-sticky { padding-block: clamp(90px, 12vw, 160px); overflow: hidden; }
.method-head { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: end; }
.method-head .display { margin-top: 22px; font-size: clamp(40px, 6.4vw, 112px); }
.method-side { display: grid; gap: 18px; justify-items: start; }
.method-side > p { color: var(--muted-dark); font-size: 17px; }
.method-counter { display: flex; align-items: baseline; gap: 6px; font-weight: 900; font-stretch: 150%; }
.method-counter b { font-size: clamp(56px, 6vw, 96px); line-height: 1; color: var(--violet); font-variant-numeric: tabular-nums; }
.method-counter span { color: var(--muted-dark); font-size: 18px; }
.method-rail { width: 100%; max-width: 380px; height: 3px; background: var(--line-dark); border-radius: 3px; overflow: hidden; }
.method-rail span { display: block; height: 100%; background: var(--violet); transform-origin: left; transform: scaleX(var(--method-p, .2)); }

.method-track { display: flex; gap: 22px; margin-top: clamp(40px, 6vw, 80px); padding-inline: var(--gutter); will-change: transform; }
.step {
  flex: 0 0 clamp(290px, 31vw, 460px); min-height: clamp(340px, 46vh, 460px);
  display: flex; flex-direction: column; gap: 14px;
  padding: 30px; border-radius: 22px; background: #fff; border: 1px solid var(--line-dark);
  transition: background .5s, color .5s, transform .6s var(--ease);
}
.step-num { font-weight: 900; font-stretch: 150%; font-size: clamp(64px, 7vw, 120px); line-height: .9; color: transparent; -webkit-text-stroke: 1.5px var(--ink); margin-bottom: auto; }
.step-label { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--violet); }
.step h3 { font-size: clamp(22px, 2vw, 30px); line-height: 1.1; font-weight: 800; font-stretch: 120%; }
.step p:last-child { color: var(--muted-dark); }
.step.is-active { background: var(--ink); color: var(--paper); transform: translateY(-10px); }
.step.is-active .step-num { -webkit-text-stroke-color: var(--violet-soft); }
.step.is-active .step-label { color: var(--violet-soft); }
.step.is-active p:last-child { color: var(--muted); }
.step-repeat { background: var(--violet); color: #fff; border-color: transparent; justify-content: flex-end; }
.step-repeat .repeat-word { font-weight: 900; font-stretch: 150%; text-transform: uppercase; font-size: clamp(44px, 5vw, 84px); line-height: .9; margin-bottom: auto; }
.step-repeat p:last-child { color: rgba(255, 255, 255, .85); }

.is-pinned-method .method { height: var(--method-h, 400vh); }
.is-pinned-method .method-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; flex-direction: column; justify-content: center; padding-block: calc(var(--header-h) + 10px) 40px; }
.is-pinned-method .method-track { transform: translate3d(calc(var(--method-x, 0) * -1px), 0, 0); }

@media (max-width: 900px) {
  .method-head { grid-template-columns: 1fr; }
  .method-counter, .method-rail { display: none; }
  .method-track { flex-direction: column; padding-inline: 0; width: min(100% - 2 * var(--gutter), 1440px); margin-inline: auto; }
  .step { flex-basis: auto; min-height: 0; }
  .step-num { margin-bottom: 18px; }
}

/* =========================================================================
   04 · I CASI STUDIO
   ========================================================================= */
.cases { position: relative; background: var(--ink); }
.cases-head { padding-block: clamp(110px, 14vw, 200px) clamp(50px, 6vw, 90px); display: grid; gap: 24px; }
.cases-head .display { font-size: clamp(48px, 9vw, 168px); }
.cases-head > p:last-child { color: var(--muted); max-width: 420px; font-size: 17px; }

.case { position: relative; min-height: 100vh; padding-block: clamp(80px, 10vw, 140px); overflow: hidden; isolation: isolate; }
.case-bg { position: absolute; inset: -10% 0; z-index: -2; opacity: .22; filter: blur(40px) saturate(1.4); transform: scale(1.2); }
.case-bg img { width: 100%; height: 100%; object-fit: cover; }
.case::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, var(--ink) 0%, rgba(10, 10, 10, .7) 30%, rgba(10, 10, 10, .7) 70%, var(--ink) 100%); }
.case-dark::after { background: linear-gradient(180deg, var(--ink) 0%, rgba(20, 18, 24, .8) 30%, rgba(20, 18, 24, .85) 70%, var(--ink) 100%); }
.case-violet { background: var(--violet-deep); }
.case-violet::after { background: linear-gradient(180deg, var(--ink) 0%, rgba(74, 31, 214, .82) 22%, rgba(74, 31, 214, .9) 78%, var(--ink) 100%); }
.case-violet .eyebrow, .case-violet .case-context { color: rgba(255, 255, 255, .78); }

.case-inner {
  display: grid; gap: 40px 56px;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 380px) minmax(0, .9fr);
  grid-template-areas: "head head head" "text film detail";
  align-items: start;
}
.case-head { grid-area: head; }
.case-name {
  margin: 18px 0 14px; font-weight: 900; text-transform: uppercase; line-height: .86; letter-spacing: -.01em;
  font-size: clamp(38px, 8.2vw, 150px);
  font-stretch: calc(70% + var(--case-in, 1) * 80%);
  clip-path: inset(0 calc((1 - var(--case-in, 1)) * 100%) 0 0);
}
.case-context { color: var(--muted); max-width: 460px; font-size: 17px; }

.case-film {
  grid-area: film; position: relative; display: block; aspect-ratio: 9 / 16; border-radius: 26px; overflow: hidden;
  box-shadow: 0 40px 100px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .1);
  transform: translateY(calc(var(--case-shift, 0) * 1px)) rotate(calc(var(--case-tilt, 0) * 1deg));
  transition: box-shadow .4s;
}
.case-film img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.case-film:hover img { transform: scale(1.06); }
.case-play {
  position: absolute; left: 50%; top: 50%; width: 84px; height: 84px; margin: -42px 0 0 -42px;
  display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--ink);
  transition: transform .5s var(--ease), background .3s, color .3s;
}
.case-play::before { content: ""; position: absolute; inset: -10px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .6); animation: ping 2.2s var(--ease) infinite; }
@keyframes ping { 0% { transform: scale(.85); opacity: 1; } 100% { transform: scale(1.5); opacity: 0; } }
.case-play .ico { width: 30px; height: 30px; margin-left: 4px; }
.case-film:hover .case-play { transform: scale(1.12); background: var(--violet); color: #fff; }
/* Con il cursore "Guarda" sopra il video, il pulsante play si fa da parte: un solo invito */
.has-cursor .case-film:hover .case-play { opacity: 0; transform: scale(.6); }
.case-film-caption {
  position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; gap: 12px;
  padding: 40px 18px 16px; font-size: 13px; font-weight: 600;
  background: linear-gradient(transparent, rgba(0, 0, 0, .75));
}

.case-text { grid-area: text; display: grid; gap: 18px; align-content: start; padding-top: 30px; max-width: 460px; }
.case-title { font-size: clamp(22px, 2vw, 30px); font-weight: 800; font-stretch: 120%; line-height: 1.12; }
.case-text > p:not(.case-title) { color: #d2cdda; }
.case-points { display: grid; gap: 0; margin-block: 6px 8px; }
.case-points li { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); font-size: 15px; font-weight: 600; }
.case-points li:last-child { border-bottom: 1px solid var(--line); }
.case-points li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--violet); flex: none; }
.case-violet .case-points li::before { background: #fff; }
.case-text .link-arrow { justify-self: start; }

.case-detail { grid-area: detail; align-self: end; display: grid; gap: 12px; max-width: 300px; justify-self: end; transform: translateY(calc(var(--parallax, 0) * 1px)); }
.case-detail img { border-radius: 18px; aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.case-detail figcaption { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--violet-soft); }
.case-violet .case-detail figcaption { color: #fff; }

@media (max-width: 1100px) {
  .case-inner { grid-template-columns: minmax(0, 1fr) minmax(240px, 340px); grid-template-areas: "head head" "text film" "detail film"; }
  .case-detail { justify-self: start; align-self: start; }
}
@media (max-width: 700px) {
  .case { min-height: 0; }
  .case-name { font-size: clamp(34px, 11vw, 64px); font-stretch: calc(60% + var(--case-in, 1) * 50%); }
  .case-inner { grid-template-columns: 1fr; grid-template-areas: "head" "film" "text"; }
  .case-film { width: min(100%, 360px); justify-self: center; }
  .case-detail { display: none; }
  .case-text { padding-top: 0; }
}

/* ---------- Lettore video stile storie ---------- */
.story {
  width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: #000; color: #fff; overflow: hidden;
}
.story::backdrop { background: rgba(0, 0, 0, .9); }
.story[open] { display: grid; grid-template-rows: auto auto 1fr auto; animation: story-in .5s var(--ease); }
@keyframes story-in { from { opacity: 0; transform: scale(.96); } }
.story-progress { height: 3px; margin: 14px 16px 0; background: rgba(255, 255, 255, .25); border-radius: 3px; overflow: hidden; }
.story-progress span { display: block; height: 100%; background: #fff; transform-origin: left; transform: scaleX(0); }
.story-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px 16px; }
.story-client { font-weight: 900; font-stretch: 150%; text-transform: uppercase; font-size: 18px; line-height: 1.1; }
.story-caption { font-size: 13px; color: rgba(255, 255, 255, .75); }
.story-video { width: 100%; height: 100%; min-height: 0; object-fit: contain; background: #000; }
.story-controls { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 12px 16px calc(14px + env(safe-area-inset-bottom)); }
.story-btn { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, .12); transition: background .3s; }
.story-btn:hover { background: var(--violet); }
.story-btn .ico { width: 22px; height: 22px; }
.story-ig { font-size: 14px; font-weight: 700; padding: 12px 18px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .3); }
.story-ig:hover { background: #fff; color: #000; }

/* =========================================================================
   05 · L'OFFERTA
   ========================================================================= */
.offer { position: relative; background: var(--ink-2); padding-block: clamp(110px, 14vw, 200px); overflow: hidden; }
.offer::before {
  content: ""; position: absolute; width: 90vmax; aspect-ratio: 1; left: -30vmax; top: -40vmax; border-radius: 50%;
  background: radial-gradient(circle, rgba(108, 59, 255, .35), transparent 60%);
  transform: translateY(calc(var(--offer-p, 0) * 30vh)); pointer-events: none;
}
.offer-inner { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.offer-main { position: sticky; top: calc(var(--header-h) + 30px); display: grid; gap: 28px; justify-items: start; }
.offer-title { font-size: clamp(48px, 7.6vw, 136px); }
.offer-description { color: #d2cdda; max-width: 420px; font-size: 17px; }
.offer-details { display: grid; gap: 26px; }
.offer-count { display: flex; align-items: center; gap: 22px; padding: 26px 30px; border-radius: 22px; background: var(--violet); }
.offer-count b { font-weight: 900; font-stretch: 150%; font-size: clamp(80px, 9vw, 150px); line-height: .8; font-variant-numeric: tabular-nums; }
.offer-count span { font-weight: 700; font-size: 18px; line-height: 1.2; text-transform: uppercase; letter-spacing: .04em; }
.offer-list li { display: flex; align-items: center; gap: 14px; padding: 18px 0; border-top: 1px solid var(--line); font-size: 17px; font-weight: 600; }
.offer-list li:last-child { border-bottom: 1px solid var(--line); }
.offer-list .ico { color: var(--violet-soft); width: 18px; height: 18px; }
.platforms { display: flex; flex-wrap: wrap; gap: 8px; }
.platforms span { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); font-size: 13px; font-weight: 600; }
.duration { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px; padding: 22px 24px; border-radius: 18px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); }
.duration strong { display: block; font-weight: 900; font-stretch: 150%; text-transform: uppercase; font-size: 20px; color: var(--violet-soft); }
.duration div:last-child { text-align: right; }
.duration span { font-size: 13px; color: var(--muted); }
.duration-line { height: 2px; background: var(--line); position: relative; overflow: hidden; border-radius: 2px; }
.duration-line span { position: absolute; inset: 0; background: linear-gradient(90deg, var(--violet), var(--violet-soft)); transform-origin: left; transform: scaleX(0); transition: transform 1.6s var(--ease) .3s; }
.duration.is-in .duration-line span { transform: scaleX(1); }
.offer-note { color: var(--muted); font-size: 14px; }
@media (max-width: 900px) {
  .offer-inner { grid-template-columns: 1fr; }
  .offer-main { position: static; }
}

/* =========================================================================
   06 · CONTATTI
   ========================================================================= */
.contact { background: var(--paper); color: var(--ink); padding-block: clamp(100px, 12vw, 170px); }
.contact .eyebrow { color: var(--muted-dark); }
.contact-switch-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 18px; padding-bottom: 26px; border-bottom: 1px solid var(--line-dark); }
.contact-switch { display: inline-flex; padding: 5px; border-radius: 999px; background: #e9e5ef; }
.contact-switch button { display: inline-flex; align-items: center; gap: 6px; padding: 11px 18px; border-radius: 999px; font-size: 14px; font-weight: 700; color: var(--muted-dark); transition: background .3s, color .3s; }
.contact-switch button[aria-selected="true"] { background: var(--violet); color: #fff; }
.contact-switch .ico { width: 14px; height: 14px; }

.contact-grid > * { min-width: 0; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(40px, 6vw, 100px); margin-top: clamp(40px, 6vw, 80px); }
.contact-copy { display: grid; gap: 26px; align-content: start; }
.contact-title { font-size: clamp(42px, 5.6vw, 100px); }
.contact-copy > p:not(.eyebrow) { font-size: 18px; color: var(--muted-dark); max-width: 440px; }
.contact-brand { display: flex; align-items: center; gap: 20px; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.contact-brand img { width: 84px; }
.contact-brand strong { color: var(--violet); }
.roles li { border-top: 1px solid var(--line-dark); }
.roles li:last-child { border-bottom: 1px solid var(--line-dark); }
.roles button { width: 100%; display: grid; grid-template-columns: 34px 1fr 24px; align-items: center; gap: 12px; padding: 20px 0; text-align: left; font-size: clamp(20px, 2.2vw, 30px); font-weight: 800; font-stretch: 125%; transition: color .3s, padding .4s var(--ease); }
.roles button span { font-size: 12px; color: var(--muted-dark); }
.roles button:hover { color: var(--violet); padding-left: 10px; }
.roles .ico { width: 22px; height: 22px; }
.location { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.location span { width: 10px; height: 10px; border-radius: 50%; background: var(--violet); }

.form { display: grid; gap: 22px; }
.form-top { display: flex; justify-content: space-between; padding-bottom: 14px; border-bottom: 2px solid var(--ink); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.form-intro { color: var(--muted-dark); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 26px; }
.field { position: relative; padding-top: 22px; }
.field-full { grid-column: 1 / -1; }
.field input, .field textarea, .field select {
  width: 100%; border: 0; border-bottom: 1px solid var(--line-dark); background: transparent; color: var(--ink);
  padding: 12px 0 12px; font-size: 17px; border-radius: 0; outline: none; transition: border-color .3s;
  appearance: none; -webkit-appearance: none;
}
.field textarea { resize: vertical; min-height: 110px; }
.field select { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%230a0a0a' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right 4px center no-repeat; padding-right: 26px; }
.field label {
  position: absolute; left: 0; top: 34px; font-size: 17px; color: var(--muted-dark); pointer-events: none;
  transform-origin: left top; transition: transform .35s var(--ease), color .3s;
}
.field label span { color: var(--violet); }
.field input:focus, .field textarea:focus, .field select:focus { border-bottom-color: var(--violet); }
.field input:focus + label, .field textarea:focus + label,
.field input:not(:placeholder-shown) + label, .field textarea:not(:placeholder-shown) + label,
.field-select label { transform: translateY(-30px) scale(.76); color: var(--ink); font-weight: 700; }
.field::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--violet); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.field:focus-within::after { transform: scaleX(1); }
.field:has(.hint)::after { display: none; }
.hint { margin-top: 8px; font-size: 13px; color: var(--muted-dark); }
.form-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-privacy { font-size: 13px; color: var(--muted-dark); }
.form-privacy a { text-decoration: underline; text-underline-offset: 3px; }
.form-submit { justify-self: stretch; justify-content: space-between; padding: 22px 28px; font-size: 16px; }
.form-required { font-size: 12px; color: var(--muted-dark); }
.form-feedback p { padding: 14px 18px; border-radius: 12px; font-size: 15px; font-weight: 600; }
.feedback-success { background: #e4f7ea; color: #145c2c; }
.feedback-error { background: #fde8e8; color: #8a1c1c; }
.feedback-notice, .feedback-preview { background: #ece6ff; color: #3b1d9a; }
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .contact-switch { width: 100%; }
  .contact-switch button { flex: 1; justify-content: center; padding: 11px 10px; font-size: 13px; }
  .form-grid { grid-template-columns: 1fr; }
}

/* =========================================================================
   PIEDE
   ========================================================================= */
.footer { position: relative; background: var(--ink); padding-block: clamp(70px, 9vw, 120px) 40px; overflow: hidden; border-top: 3px solid var(--violet); }
.footer-top { display: flex; align-items: center; gap: 24px; }
.footer-mark { width: 56px; }
.footer-top p { font-size: clamp(22px, 2.4vw, 34px); line-height: 1.15; color: #cfc9d8; margin-right: auto; }
.footer-wordmark { display: block; margin-block: clamp(50px, 8vw, 110px) clamp(40px, 6vw, 80px); }
.footer-wordmark img {
  width: 100%;
  transform: translateY(calc((1 - var(--footer-p, 1)) * 18%)) scale(calc(.86 + var(--footer-p, 1) * .14));
  opacity: calc(.2 + var(--footer-p, 1) * .8);
  transform-origin: center bottom;
}
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px 30px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.footer-bottom .accent { color: var(--violet-soft); font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.footer-bottom a:hover { color: var(--paper); }
.footer-legal { margin-top: 20px; font-size: 12px; color: var(--muted-dark); display: grid; gap: 2px; }

[data-spin] { animation: spin 18s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* =========================================================================
   INGRESSO
   ========================================================================= */
.gate {
  position: fixed; inset: 0; z-index: 120; background: var(--ink); color: var(--paper);
  display: grid; place-items: center; overflow: hidden;
  transition: clip-path 1.1s var(--ease-in-out);
  clip-path: inset(0 0 0 0);
}
.gate.is-leaving { clip-path: inset(0 0 100% 0); }
.gate-inner { position: relative; z-index: 2; display: grid; justify-items: center; gap: clamp(24px, 4vh, 42px); text-align: center; padding: 24px; }
.gate-inner > img { width: 110px; }
.gate-title { text-transform: uppercase; font-weight: 900; font-stretch: 150%; line-height: .86; font-size: clamp(48px, 11vw, 168px); }
/* "VOLUME." si riempie di viola da sinistra a destra mentre si tiene premuto, come una barra del volume */
.gate-title span {
  color: transparent; -webkit-background-clip: text; background-clip: text;
  background-image: linear-gradient(90deg, var(--violet) calc(var(--gate, 0) * 100%), rgba(255, 255, 255, .16) calc(var(--gate, 0) * 100%));
}
.gate-knob { position: relative; width: 150px; height: 150px; border-radius: 50%; display: grid; place-items: center; touch-action: none; user-select: none; -webkit-user-select: none; }
.gate-knob svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.gate-track, .gate-fill { fill: none; stroke-width: 4; }
.gate-track { stroke: rgba(255, 255, 255, .14); }
.gate-fill { stroke: var(--violet); stroke-linecap: round; stroke-dasharray: 339.3; stroke-dashoffset: calc(339.3 * (1 - var(--gate, 0))); }
.gate-value b { font-weight: 900; font-stretch: 150%; font-size: 40px; font-variant-numeric: tabular-nums; }
.gate-label { position: absolute; bottom: -34px; left: 50%; transform: translateX(-50%); white-space: nowrap; font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.gate-knob:hover .gate-track, .gate-knob:focus-visible .gate-track { stroke: rgba(255, 255, 255, .34); }
.gate-knob:focus-visible { outline: none; }
.gate-skip { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; font-size: 14px; font-weight: 700; color: var(--muted); }
.gate-skip:hover { color: var(--paper); }
.gate-bars { position: absolute; inset: auto 0 0; height: 46vh; display: flex; align-items: flex-end; gap: 6px; padding-inline: 6px; opacity: .55; }
.gate-bars i { flex: 1; height: 100%; background: linear-gradient(to top, var(--violet), transparent); border-radius: 4px 4px 0 0; transform-origin: bottom; transform: scaleY(calc(.04 + var(--gate, 0) * var(--h, .5))); transition: transform .25s var(--ease); }

/* ---------- Pagina privacy ---------- */
.privacy-page { max-width: 820px; padding-block: 60px 120px; display: grid; gap: 18px; }
.privacy-page .link-arrow { justify-self: start; margin-bottom: 30px; }
.privacy-page h1 { font-weight: 900; font-stretch: 150%; text-transform: uppercase; font-size: clamp(40px, 6vw, 84px); line-height: .9; margin-bottom: 20px; }
.privacy-page h2 { font-weight: 800; font-stretch: 125%; font-size: clamp(20px, 2vw, 26px); margin-top: 26px; color: var(--violet-soft); scroll-margin-top: 30px; }
.privacy-page p { color: #d6d1de; }
.privacy-page p a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Comparsa all'ingresso nello schermo ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-split] .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .04em; }
.js [data-split] .w > span { display: inline-block; transform: translateY(105%); transition: transform 1.1s var(--ease); transition-delay: calc(var(--i) * 70ms + 150ms); }
.js .is-ready [data-split] .w > span, .js.is-ready [data-split] .w > span { transform: none; }
.js [data-split-letters] .l { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .04em; }
.js [data-split-letters] .l > span { display: inline-block; transform: translateY(105%); transition: transform 1s var(--ease); transition-delay: calc(var(--i) * 55ms + 380ms); }
.js.is-ready [data-split-letters] .l > span { transform: none; }

/* =========================================================================
   MOVIMENTO RIDOTTO: chi lo chiede nelle impostazioni vede tutto fermo e leggibile
   ========================================================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .hero { height: auto; }
  .hero-sticky { position: relative; min-height: 100vh; }
  .problem { height: auto; }
  .problem-sticky { position: relative; height: auto; min-height: 100vh; padding-block: 120px; background: var(--violet); }
  .problem-title span { opacity: 1; font-stretch: 150%; transform: none; }
  .problem-copy { opacity: 1; transform: none; }
  .js [data-reveal], .js [data-split] .w > span, .js [data-split-letters] .l > span { opacity: 1; transform: none; }
  .case-name { clip-path: none; font-stretch: 150%; }
  .grain { display: none; }
}
