/* =================================================================
   Federico Papa — Strategia di Monopolio
   Cinematic · dark · momentum scroll · responsive
   ================================================================= */

/* -------------------------------------------------- Font self-hosted (variabili) */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("assets/fonts/inter.woff2") format("woff2");
}
@font-face {
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("assets/fonts/playfair.woff2") format("woff2");
}
@font-face {
  font-family: "Playfair Display";
  font-style: italic;
  font-weight: 400 900;
  font-display: swap;
  src: url("assets/fonts/playfair-italic.woff2") format("woff2");
}

/* -------------------------------------------------- Tokens */
:root {
  --bg: #08080a;
  --bg-2: #0d0d10;
  --bg-3: #131318;
  --bg-0: #060607;
  --bg-4: #14141a;
  --bg-rgb: 8, 8, 10;
  --ink-rgb: 247, 242, 234;
  --gold-rgb: 205, 168, 106;
  --gold-bright-rgb: 240, 212, 154;
  --on-gold: #1a1206;
  --surface: rgba(var(--ink-rgb), 0.035);
  --surface-2: rgba(var(--ink-rgb), 0.06);
  --ink: #f7f2ea;
  --soft: #b6afa1;
  --muted: #9a917f;
  --gold: #cda86a;
  --gold-bright: #f0d49a;
  --gold-deep: #a07d3e;
  --line: rgba(var(--ink-rgb), 0.09);
  --line-2: rgba(var(--ink-rgb), 0.14);
  --line-gold: rgba(var(--gold-rgb), 0.34);

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: "Playfair Display", Georgia, serif;

  --container: 1240px;
  --gutter: clamp(1.25rem, 5vw, 3.5rem);
  --radius: 20px;
  --radius-sm: 12px;
  --pad-section: clamp(5rem, 12vw, 10rem);
  --header-h: 80px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* -------------------------------------------------- Reset / base */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  background-color: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.nav-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

button {
  font-family: inherit;
}

::selection {
  background: rgba(var(--gold-rgb), 0.32);
  color: var(--ink);
}

:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 3px;
}

/* -------------------------------------------------- Intro */
.intro {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 1.6rem;
  background: var(--bg-0);
  transition: opacity 0.8s var(--ease), visibility 0.8s;
  cursor: pointer;
}

.intro.is-done {
  opacity: 0;
  visibility: hidden;
}

.intro-mark {
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  border: 1px solid var(--line-gold);
  border-radius: 18px;
  color: var(--gold-bright);
  background: linear-gradient(145deg, rgba(var(--gold-rgb), 0.2), rgba(var(--ink-rgb), 0.02));
  font-size: 1.9rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  animation: introMark 1.6s var(--ease);
}

.intro-bar {
  width: 180px;
  height: 2px;
  overflow: hidden;
  background: rgba(var(--ink-rgb), 0.1);
}

.intro-bar span {
  display: block;
  height: 100%;
  width: 100%;
  transform-origin: left;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold-bright));
  animation: introBar 1.5s var(--ease) forwards;
}

.intro-word {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

/* -------------------------------------------------- Atmosfera */
.aurora {
  position: fixed;
  inset: 0;
  z-index: -3;
  overflow: hidden;
  pointer-events: none;
}

.aurora span {
  position: absolute;
  display: block;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.6;
  will-change: transform;
}

.aurora span:nth-child(1) {
  top: -18%;
  left: 4%;
  width: 48vw;
  height: 48vw;
  background: radial-gradient(circle, rgba(var(--gold-rgb), 0.42), transparent 64%);
  animation: drift1 22s var(--ease) infinite alternate;
}

.aurora span:nth-child(2) {
  top: 24%;
  right: -12%;
  width: 42vw;
  height: 42vw;
  background: radial-gradient(circle, rgba(var(--gold-bright-rgb), 0.26), transparent 64%);
  animation: drift2 28s var(--ease) infinite alternate;
}

.aurora span:nth-child(3) {
  bottom: -22%;
  left: 26%;
  width: 52vw;
  height: 52vw;
  background: radial-gradient(circle, rgba(160, 125, 62, 0.24), transparent 64%);
  animation: drift3 32s var(--ease) infinite alternate;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 240 240' xmlns='http://www.w3.org/2000/svg'%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");
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 90;
  height: 3px;
  pointer-events: none;
}

.scroll-progress span {
  display: block;
  height: 100%;
  transform: scaleX(0);
  transform-origin: left;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold-bright));
  box-shadow: 0 0 16px rgba(var(--gold-bright-rgb), 0.5);
}

/* -------------------------------------------------- Tipografia */
h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2,
h3 {
  color: var(--ink);
  font-weight: 800;
  line-height: 1.03;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.6rem, 7vw, 5.4rem);
  font-weight: 900;
}

h2 {
  font-size: clamp(2rem, 4.8vw, 3.7rem);
}

h3 {
  font-size: clamp(1.2rem, 2vw, 1.45rem);
  line-height: 1.18;
  letter-spacing: -0.01em;
}

p {
  text-wrap: pretty;
}

.serif {
  font-family: var(--serif);
  font-weight: 500;
  font-style: italic;
  letter-spacing: -0.01em;
  color: var(--gold-bright);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1.2rem;
  color: var(--gold-bright);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
}

/* Split words */
.word {
  display: inline-flex;
  overflow: hidden;
  vertical-align: top;
}

.word > span {
  display: inline-block;
  transform: translateY(115%);
  transition: transform 0.9s var(--ease);
}

[data-split].in-view .word > span {
  transform: none;
}

/* -------------------------------------------------- Layout */
.section,
.footer-inner {
  width: min(var(--container), 100% - var(--gutter) * 2);
  margin-inline: auto;
}

.section {
  position: relative;
  padding-block: var(--pad-section);
}

.section-bignum {
  position: absolute;
  top: clamp(1rem, 4vw, 2.5rem);
  right: 0;
  z-index: 0;
  color: rgba(var(--gold-rgb), 0.06);
  font-size: clamp(8rem, 22vw, 17rem);
  font-weight: 900;
  line-height: 0.8;
  letter-spacing: -0.04em;
  pointer-events: none;
}

.section-heading {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section-heading p:not(.eyebrow) {
  margin-top: 1.1rem;
  color: var(--soft);
  font-size: 1.08rem;
  line-height: 1.7;
}

.split-copy p,
.editorial-copy p,
.competitor-copy p,
.about-card p,
.manual-copy p,
.guarantee-copy p,
.letter-body p,
.write-section p,
.no-section > p,
.final-cta p,
.inner-hero-panel p {
  color: var(--soft);
  font-size: 1.08rem;
  line-height: 1.78;
}

.split-copy p + p,
.editorial-copy p + p,
.competitor-copy p + p,
.about-card p + p,
.letter-body p + p,
.guarantee-copy p + p {
  margin-top: 1.1rem;
}

/* -------------------------------------------------- Bottoni & link */
.button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 54px;
  padding: 0 1.9rem;
  border: 1px solid transparent;
  border-radius: 100px;
  color: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
}

.button.primary {
  color: var(--on-gold);
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  box-shadow: 0 12px 34px rgba(var(--gold-rgb), 0.22);
}

.button.primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(var(--ink-rgb), 0.55) 50%, transparent 70%);
  transform: translateX(-130%);
  transition: transform 0.7s var(--ease);
}

.button.primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 48px rgba(var(--gold-rgb), 0.36);
}

.button.primary:hover::after {
  transform: translateX(130%);
}

.button.ghost {
  color: var(--ink);
  border-color: var(--line-2);
  background: rgba(var(--ink-rgb), 0.04);
  backdrop-filter: blur(8px);
}

.button.ghost:hover {
  transform: translateY(-3px);
  border-color: var(--line-gold);
  background: var(--surface-2);
}

.button.large {
  min-height: 60px;
  padding: 0 2.4rem;
  font-size: 0.86rem;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.6rem;
  color: var(--gold-bright);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.text-link::after {
  content: "\2192";
  transition: transform 0.3s var(--ease);
}

.text-link:hover::after {
  transform: translateX(6px);
}

/* -------------------------------------------------- Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 80;
  border-bottom: 1px solid transparent;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(8, 8, 10, 0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(var(--container), 100% - var(--gutter) * 2);
  margin-inline: auto;
  height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line-gold);
  color: var(--gold-bright);
  background: linear-gradient(145deg, rgba(var(--gold-rgb), 0.24), rgba(var(--ink-rgb), 0.02));
  font-weight: 800;
  font-size: 0.95rem;
}

.brand-text strong {
  display: block;
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.brand-text small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 0.2rem;
}

.main-nav a:not(.button) {
  position: relative;
  padding: 0.6rem 1rem;
  color: var(--soft);
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: 100px;
  transition: color 0.25s var(--ease);
}

.main-nav a:not(.button)::after {
  content: "";
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 0.45rem;
  height: 1.5px;
  background: var(--gold);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.main-nav a:not(.button):hover {
  color: var(--ink);
}

.main-nav a.is-active {
  color: var(--ink);
}

.main-nav a.is-active::after,
.main-nav a:not(.button):hover::after {
  transform: scaleX(1);
}

.nav-cta {
  margin-left: 0.8rem;
  min-height: 46px;
  padding: 0 1.3rem;
  font-size: 0.76rem;
}

.nav-head {
  display: none;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: var(--surface);
  cursor: pointer;
}

.nav-toggle span {
  width: 20px;
  height: 2px;
  margin-inline: auto;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.2s 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);
}

/* Sfondo sfumato dietro il popup menu (focus + chiusura toccando fuori) */
.nav-scrim {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(6, 6, 9, 0.55);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s var(--ease), visibility 0.3s;
}

.nav-scrim.is-on {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* -------------------------------------------------- HERO cinematica */
.cine-hero {
  position: relative;
  display: grid;
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: center;
  width: min(var(--container), 100% - var(--gutter) * 2);
  margin-inline: auto;
  padding-top: calc(var(--header-h) + clamp(1.5rem, 4vw, 3rem));
  padding-bottom: clamp(3rem, 6vw, 5rem);
}

@media (min-width: 940px) {
  .cine-hero {
    grid-template-columns: 1fr 1fr;
    min-height: 88svh;
    align-items: stretch;
  }
  .hero-text {
    align-self: center;
  }
  .hero-portrait {
    height: 100%;
  }
  .portrait-frame {
    aspect-ratio: auto;
    height: 100%;
    max-height: none;
  }
}

.kenburns {
  animation: kenburns 24s var(--ease) infinite alternate;
}

.hero-text {
  position: relative;
  z-index: 2;
}

.cine-title {
  max-width: 15ch;
  margin: 0.3rem 0 1.5rem;
  font-size: clamp(2.3rem, 4.8vw, 4rem);
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: -0.03em;
}

.hero-text .hero-lead {
  max-width: 40ch;
}

/* Ritratto */
.hero-portrait {
  position: relative;
  z-index: 1;
}

.portrait-frame {
  position: relative;
  aspect-ratio: 4 / 5;
  max-height: min(82svh, 720px);
  overflow: hidden;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: var(--bg-2);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.55);
}

.portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 26% 22%;
  filter: saturate(0.74) contrast(1.07) brightness(0.92);
}

.portrait-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(155deg, rgba(var(--gold-rgb), 0.16), transparent 40%, rgba(8, 8, 10, 0.5));
}

.portrait-frame::before {
  content: "";
  position: absolute;
  inset: 14px;
  z-index: 2;
  pointer-events: none;
  border: 1px solid rgba(var(--gold-bright-rgb), 0.22);
  border-radius: calc(var(--radius) - 9px);
}

.hero-lead {
  color: var(--ink);
  font-size: clamp(1.1rem, 1.7vw, 1.4rem);
  font-weight: 600;
  line-height: 1.45;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2.2rem;
}

.cine-hero-card {
  position: absolute;
  left: 1.2rem;
  right: 1.2rem;
  bottom: 1.2rem;
  z-index: 3;
  padding: 1.3rem 1.5rem;
  border: 1px solid var(--line-gold);
  border-radius: var(--radius-sm);
  background: rgba(12, 12, 15, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}

.cine-hero-card span {
  display: block;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.cine-hero-card strong {
  display: block;
  margin-top: 0.5rem;
  color: var(--gold-bright);
  font-size: 1.15rem;
  font-weight: 700;
}

.cine-hero-card p {
  margin-top: 0.55rem;
  color: var(--soft);
  font-size: 0.86rem;
  line-height: 1.55;
}

.cine-hero-side {
  position: absolute;
  top: 50%;
  right: 26px;
  z-index: 2;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  transform: rotate(90deg);
  transform-origin: right center;
  white-space: nowrap;
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 1.6rem;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transform: translateX(-50%);
}

.scroll-cue i {
  width: 1px;
  height: 38px;
  background: linear-gradient(var(--gold-bright), transparent);
  animation: scrollCue 1.8s var(--ease) infinite;
}

/* -------------------------------------------------- Marquee */
.marquee {
  position: relative;
  padding-block: 1.1rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  background: rgba(var(--ink-rgb), 0.01);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.marquee-track {
  display: inline-flex;
  align-items: center;
  gap: 2.5rem;
  white-space: nowrap;
  animation: marquee 30s linear infinite;
}

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-track span {
  color: var(--soft);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.marquee-track span::after {
  content: "\25C6";
  margin-left: 2.5rem;
  color: var(--gold);
  font-size: 0.6rem;
  vertical-align: middle;
}

/* -------------------------------------------------- Manifesto */
.manifesto-lead {
  max-width: 24ch;
  margin-bottom: clamp(2.5rem, 6vw, 4.5rem);
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.8rem, 4.4vw, 3.4rem);
  line-height: 1.18;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.manifesto-lead .serif {
  font-weight: 600;
}

.manifesto-steps {
  display: grid;
  gap: 1.5rem;
}

.manifesto-step {
  position: relative;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

.step-num {
  display: block;
  margin-bottom: 1rem;
  color: var(--gold-bright);
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.manifesto-step h3 {
  margin-bottom: 0.8rem;
}

.manifesto-step p {
  color: var(--soft);
  line-height: 1.7;
}

/* -------------------------------------------------- Split section */
.split-section {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.section-number {
  display: block;
  margin-bottom: 1rem;
  color: var(--gold-bright);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.split-copy h2 {
  margin-bottom: 1.3rem;
}

.dialogue-stack {
  display: grid;
  gap: 0.85rem;
}

.dialogue-card {
  padding: 1.4rem 1.6rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  transition: border-color 0.3s var(--ease);
}

.dialogue-card:hover {
  border-color: var(--line-gold);
}

.dialogue-card.muted {
  margin-left: clamp(0px, 4vw, 2.5rem);
  background: rgba(var(--ink-rgb), 0.015);
}

.dialogue-card span {
  color: var(--gold-bright);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.dialogue-card p {
  margin-top: 0.5rem;
  color: var(--ink);
  font-size: 1.02rem;
  line-height: 1.5;
}

.dialogue-card.muted p {
  color: var(--soft);
}

/* -------------------------------------------------- Statement band */
.statement-band {
  position: relative;
  display: grid;
  place-items: center;
  text-align: center;
  padding-block: clamp(5.5rem, 13vw, 10rem);
  margin-block: clamp(2rem, 5vw, 4rem);
  border-top: 1px solid var(--line-gold);
  border-bottom: 1px solid var(--line-gold);
  background: radial-gradient(55rem 32rem at 50% 50%, rgba(var(--gold-rgb), 0.1), transparent 70%);
}

.statement-label {
  margin-bottom: 1.8rem;
  padding: 0.55rem 1.1rem;
  border: 1px solid var(--line-gold);
  border-radius: 100px;
  color: var(--gold-bright);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.statement-band p {
  max-width: 20ch;
  margin-bottom: 1.6rem;
  font-size: clamp(2.1rem, 6vw, 4.4rem);
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: -0.03em;
}

.statement-band > span:last-child {
  color: var(--gold-bright);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* -------------------------------------------------- Split media */
.editorial,
.manual-section,
.about-section,
.competitor-section,
.guarantee-section {
  display: grid;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.media-frame {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  box-shadow: 0 36px 90px rgba(0, 0, 0, 0.5);
}

.media-frame img {
  width: 100%;
  height: 122%;
  margin-top: -11%;
  object-fit: cover;
  filter: saturate(0.78) contrast(1.06) brightness(0.94);
  will-change: transform;
}

.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(160deg, rgba(var(--gold-rgb), 0.12), transparent 42%, rgba(8, 8, 10, 0.4));
}

.media-frame > * {
  position: relative;
}

.editorial-copy h2,
.competitor-copy h2,
.manual-copy h2 {
  margin-bottom: 1.3rem;
}

/* -------------------------------------------------- Card grids */
.agency-grid,
.case-grid,
.answer-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 1.1rem;
}

.feature-card,
.case-card,
.answer-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease),
    background 0.35s var(--ease);
}

.feature-card::before,
.case-card::before,
.answer-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(26rem 18rem at var(--mx, 50%) -10%, rgba(var(--gold-rgb), 0.12), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  pointer-events: none;
}

.feature-card:hover,
.case-card:hover,
.answer-card:hover {
  transform: translateY(-6px);
  border-color: var(--line-gold);
  background: var(--surface-2);
}

.feature-card:hover::before,
.case-card:hover::before,
.answer-card:hover::before {
  opacity: 1;
}

.feature-card span,
.case-card .case-tag {
  margin-bottom: 0.9rem;
  color: var(--gold-bright);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.feature-card h3,
.case-card h3,
.answer-card h3 {
  margin-bottom: 0.85rem;
}

.feature-card p,
.case-card p,
.answer-card p {
  color: var(--soft);
  font-size: 1rem;
  line-height: 1.65;
}

.feature-card.gold {
  border-color: var(--line-gold);
  background:
    radial-gradient(22rem 14rem at 0% 0%, rgba(var(--gold-rgb), 0.14), transparent 70%),
    var(--surface-2);
}

.case-metric {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  margin-bottom: 0.5rem;
  color: var(--gold-bright);
  font-size: clamp(2.8rem, 5.5vw, 3.6rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.03em;
}

.case-metric .arrow {
  font-style: normal;
  font-size: 0.55em;
  color: var(--gold);
  opacity: 0.7;
}

.case-metric .from {
  color: rgba(var(--gold-rgb), 0.72);
}

.case-label {
  margin-bottom: 1rem !important;
  color: var(--muted) !important;
  font-size: 0.74rem !important;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1.4 !important;
}

/* -------------------------------------------------- Competitor ladder */
.competitor-ladder {
  display: grid;
  gap: 0.9rem;
  align-content: center;
  counter-reset: step;
}

.competitor-ladder span {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  padding: 1.3rem 1.6rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--soft);
  font-size: 1.1rem;
  font-weight: 600;
}

.competitor-ladder span::before {
  content: counter(step, decimal-leading-zero);
  counter-increment: step;
  color: var(--gold-bright);
  font-size: 0.8rem;
  font-weight: 700;
}

.competitor-ladder span:nth-child(2) {
  margin-left: clamp(0px, 3vw, 1.5rem);
}

.competitor-ladder span:last-child {
  margin-left: clamp(0px, 6vw, 3rem);
  border-color: var(--line-gold);
  background:
    radial-gradient(16rem 10rem at 0% 0%, rgba(var(--gold-rgb), 0.18), transparent 70%),
    var(--surface-2);
  color: var(--ink);
  font-weight: 700;
}

/* -------------------------------------------------- About */
.about-card {
  padding: clamp(2rem, 4vw, 3.2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-2);
}

.about-card h2 {
  margin-top: 0.6rem;
}

.about-card strong {
  display: block;
  margin-top: 1.8rem;
  color: var(--gold-bright);
  font-size: 1.3rem;
  font-weight: 700;
}

/* -------------------------------------------------- Final CTA */
.final-cta {
  position: relative;
  width: min(900px, 100% - var(--gutter) * 2);
  margin: var(--pad-section) auto;
  padding: clamp(2.8rem, 6vw, 5rem) clamp(1.6rem, 5vw, 4.5rem);
  text-align: center;
  border: 1px solid var(--line-gold);
  border-radius: var(--radius);
  overflow: hidden;
  background:
    radial-gradient(34rem 22rem at 50% 0%, rgba(var(--gold-rgb), 0.16), transparent 70%),
    var(--bg-2);
  box-shadow: 0 36px 100px rgba(0, 0, 0, 0.45);
}

.final-cta h2 {
  margin-bottom: 1.3rem;
}

.final-cta p {
  max-width: 56ch;
  margin: 0 auto 2rem;
}

.final-cta .button {
  margin-inline: auto;
}

.final-cta small {
  display: block;
  max-width: 60ch;
  margin: 2rem auto 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.final-cta small + small {
  margin-top: 0.8rem;
}

/* -------------------------------------------------- Footer */
.site-footer {
  border-top: 1px solid var(--line);
  margin-top: clamp(2rem, 6vw, 4rem);
}

.footer-inner {
  display: grid;
  gap: 2rem;
  padding-block: clamp(2.5rem, 5vw, 3.5rem);
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2rem;
  justify-content: space-between;
  align-items: flex-start;
}

.footer-brand strong {
  display: block;
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.footer-brand span {
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
}

.footer-nav a {
  color: var(--soft);
  font-size: 0.9rem;
  font-weight: 600;
  transition: color 0.25s var(--ease);
}

.footer-nav a:hover {
  color: var(--gold-bright);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.5rem;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
}

.footer-bottom a {
  color: var(--gold);
}

.footer-legal {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.footer-legal a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 0.5rem;
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  left: 50%;
  bottom: 1rem;
  z-index: 95;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  width: min(640px, calc(100% - 2rem));
  padding: 0.9rem 1.1rem;
  border: 1px solid var(--line-2);
  border-radius: 14px;
  background: var(--bg-4);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
  color: var(--soft);
  font-size: 0.85rem;
  line-height: 1.5;
}

.cookie-banner a {
  color: var(--gold-bright);
  text-decoration: underline;
}

/* a menu/sidebar aperta non mostrare il banner cookie */
body.nav-open .cookie-banner {
  display: none;
}

.cookie-banner .ck-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  flex: none;
}

.cookie-banner button {
  min-height: 48px;
  padding: 0 1.3rem;
  border: 0;
  border-radius: 100px;
  font: 700 0.78rem/1 var(--font);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  cursor: pointer;
  color: var(--on-gold);
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
}

.cookie-banner .ck-link {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 1rem;
  border: 1px solid var(--line-2);
  border-radius: 100px;
  color: var(--gold-bright);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 600;
}

/* Pagine legali */
.legal-page {
  width: min(760px, 100% - var(--gutter) * 2);
  margin-inline: auto;
  padding-top: calc(var(--header-h) + clamp(2rem, 5vw, 3.5rem));
  padding-bottom: var(--pad-section);
}

.legal-page h1 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  margin-bottom: 0.6rem;
}

.legal-page .legal-updated {
  color: var(--muted);
  font-size: 0.85rem;
  margin-bottom: 2.5rem;
}

.legal-page h2 {
  font-size: clamp(1.3rem, 2.4vw, 1.6rem);
  margin: 2.2rem 0 0.8rem;
}

.legal-page p,
.legal-page li {
  color: var(--soft);
  font-size: 1rem;
  line-height: 1.75;
}

.legal-page ul {
  margin: 0.4rem 0 0;
  padding-left: 1.2rem;
}

.legal-page li {
  margin-bottom: 0.4rem;
}

.legal-page a {
  color: var(--gold-bright);
}

.legal-note {
  margin-top: 2.5rem;
  padding: 1.2rem 1.4rem;
  border: 1px solid var(--line-gold);
  border-radius: var(--radius-sm);
  background: rgba(var(--gold-rgb), 0.06);
  color: var(--muted);
  font-size: 0.88rem;
}

@media (max-width: 560px) {
  .cookie-banner {
    left: 0;
    bottom: 0;
    transform: none;
    width: 100%;
    border-radius: 14px 14px 0 0;
    font-size: 0.8rem;
  }
}

/* -------------------------------------------------- Inner hero */
.inner-hero,
.contact-hero {
  position: relative;
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
  width: min(var(--container), 100% - var(--gutter) * 2);
  margin: calc(var(--header-h) + clamp(1rem, 3vw, 2rem)) auto 0;
  padding: clamp(2.5rem, 5vw, 4rem);
  min-height: min(56vh, 500px);
  overflow: hidden;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: var(--bg-2);
  box-shadow: 0 36px 100px rgba(0, 0, 0, 0.5);
}

.inner-hero::before,
.contact-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(38rem 24rem at 12% -15%, rgba(var(--gold-rgb), 0.18), transparent 70%),
    radial-gradient(34rem 22rem at 105% 120%, rgba(var(--ink-rgb), 0.04), transparent 70%);
}

.inner-hero > *,
.contact-hero > * {
  position: relative;
  z-index: 1;
}

.inner-hero h1,
.contact-letter h1 {
  margin-bottom: 1.3rem;
  font-size: clamp(2.3rem, 5vw, 4.2rem);
}

.inner-hero .hero-lead {
  color: var(--soft);
}

.inner-hero-panel,
.quote-panel {
  padding: clamp(1.8rem, 3vw, 2.4rem);
  border: 1px solid var(--line-gold);
  border-radius: var(--radius-sm);
  background: rgba(13, 13, 16, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

/* -------------------------------------------------- Cosa faccio */
.no-section .section-heading {
  margin-bottom: 1.8rem;
}

.no-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-bottom: 1.8rem;
}

.no-grid span {
  padding: 0.9rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: 100px;
  color: var(--ink);
  font-size: 0.94rem;
  font-weight: 600;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}

.no-grid span:hover {
  border-color: var(--line-gold);
  transform: translateY(-2px);
}

.process-grid {
  display: grid;
  gap: clamp(2rem, 5vw, 3rem);
  align-items: start;
}

.process-intro {
  position: sticky;
  top: calc(var(--header-h) + 24px);
}

.process-cards {
  display: grid;
  gap: 1.1rem;
}

.timeline-item {
  display: flex;
  flex-direction: column;
  padding: 2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease);
}

.timeline-item:hover {
  transform: translateY(-4px);
  border-color: var(--line-gold);
}

.timeline-item > span {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  margin-bottom: 1.6rem;
  border: 1px solid var(--line-gold);
  border-radius: 14px;
  color: var(--gold-bright);
  background: linear-gradient(145deg, rgba(var(--gold-rgb), 0.16), rgba(var(--ink-rgb), 0.02));
  font-size: 1.05rem;
  font-weight: 800;
}

.timeline-item small {
  margin-bottom: 0.6rem;
  color: var(--gold-bright);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.timeline-item h3 {
  margin-bottom: 0.85rem;
}

.timeline-item p {
  color: var(--soft);
  line-height: 1.66;
}

.manual-section {
  align-items: stretch;
}

.manual-badge {
  position: absolute;
  left: 1.3rem;
  bottom: 1.3rem;
  z-index: 2;
  padding: 0.75rem 1.1rem;
  border-radius: 100px;
  color: var(--on-gold);
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.manual-copy {
  align-self: center;
}

.handoff-section {
  padding: clamp(2.8rem, 5vw, 4.5rem);
  border: 1px solid var(--line-gold);
  border-radius: var(--radius);
  background:
    radial-gradient(44rem 22rem at 50% 0%, rgba(var(--gold-rgb), 0.09), transparent 70%),
    var(--bg-2);
}

.handoff-section > h2 {
  max-width: 30ch;
  margin-bottom: 2.2rem;
}

.handoff-grid {
  display: grid;
  gap: 1rem;
}

.handoff-grid p {
  margin: 0;
  padding: 1.5rem 1.7rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--ink);
  background: rgba(0, 0, 0, 0.22);
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.5;
}

.guarantee-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 4vw, 3.2rem);
  border: 1px solid var(--line-gold);
  border-radius: var(--radius);
  background: var(--surface-2);
}

.guarantee-panel span {
  color: var(--gold-bright);
  font-size: clamp(3.6rem, 8vw, 5.5rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.04em;
}

.guarantee-panel p {
  margin-top: 1.3rem;
  color: var(--soft);
  line-height: 1.7;
}

.note {
  margin-top: 1.3rem;
  padding: 1.3rem 1.5rem;
  border-left: 2px solid var(--gold);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: rgba(var(--gold-rgb), 0.07);
}

/* -------------------------------------------------- Contatti */
.contact-hero {
  grid-template-columns: 1fr;
}

.quote-panel p {
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.8vw, 2rem);
  line-height: 1.3;
}

.quote-panel span {
  display: block;
  margin-top: 1.1rem;
  color: var(--gold-bright);
  font-weight: 700;
}

.letter-section {
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: start;
}

.letter-body {
  padding: clamp(2rem, 4vw, 3.2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.letter-body h2 {
  margin: 2.2rem 0 1.3rem;
  color: var(--gold-bright);
}

.contact-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-2);
}

.contact-card .media-frame {
  aspect-ratio: 4 / 3;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.contact-card div {
  padding: 1.9rem;
}

.contact-card p {
  color: var(--soft);
  line-height: 1.7;
}

.contact-card strong {
  display: block;
  margin-top: 1rem;
  color: var(--ink);
  font-size: 1.18rem;
  line-height: 1.4;
}

/* Form */
.form-section {
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: start;
}

.form-intro h2 {
  margin-bottom: 1rem;
}

.contact-form {
  display: grid;
  gap: 1.1rem;
  padding: clamp(1.8rem, 4vw, 2.6rem);
  border: 1px solid var(--line-gold);
  border-radius: var(--radius);
  background:
    radial-gradient(34rem 18rem at 0% 0%, rgba(var(--gold-rgb), 0.08), transparent 70%),
    var(--bg-2);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
}

.form-subject {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--line);
}

.form-subject span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.form-subject strong {
  color: var(--gold-bright);
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.field {
  display: grid;
  gap: 0.5rem;
}

.field label {
  color: var(--soft);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.field input,
.field textarea {
  width: 100%;
  padding: 0.9rem 1.1rem;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  color: var(--ink);
  font-family: inherit;
  font-size: 1rem;
  background: rgba(0, 0, 0, 0.25);
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}

.field textarea {
  min-height: 130px;
  resize: vertical;
  line-height: 1.6;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--muted);
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(0, 0, 0, 0.4);
}

.contact-form .button {
  width: 100%;
  margin-top: 0.4rem;
}

.form-status {
  margin: 0;
  padding: 0.9rem 1.1rem;
  border: 1px solid var(--line-gold);
  border-radius: var(--radius-sm);
  background: rgba(var(--gold-rgb), 0.08);
  color: var(--gold-bright);
  font-size: 0.9rem;
  line-height: 1.5;
}

.form-hint {
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.5;
}

/* -------------------------------------------------- Reveal / motion */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.85s var(--ease) var(--reveal-delay, 0s),
    transform 0.85s var(--ease) var(--reveal-delay, 0s);
}

.reveal.in-view {
  opacity: 1;
  transform: none;
}

.reveal[data-reveal="right"] {
  transform: translateX(40px);
}

.reveal[data-reveal="clip"] {
  opacity: 1;
  transform: none;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 1.1s var(--ease) var(--reveal-delay, 0s);
}

.reveal[data-reveal="clip"].in-view {
  clip-path: inset(0 0 0 0);
}

.reveal[data-reveal].in-view {
  transform: none;
}

.delay-1 {
  --reveal-delay: 0.1s;
}
.delay-2 {
  --reveal-delay: 0.2s;
}
.delay-3 {
  --reveal-delay: 0.3s;
}

html:not(.js) .reveal {
  opacity: 1;
  transform: none;
  clip-path: none;
}

/* -------------------------------------------------- Keyframes */
@keyframes kenburns {
  from {
    transform: scale(1.05);
  }
  to {
    transform: scale(1.18) translate(-2%, -1%);
  }
}
@keyframes drift1 {
  to {
    transform: translate3d(8vw, 6vh, 0) scale(1.15);
  }
}
@keyframes drift2 {
  to {
    transform: translate3d(-6vw, 8vh, 0) scale(1.1);
  }
}
@keyframes drift3 {
  to {
    transform: translate3d(5vw, -7vh, 0) scale(1.12);
  }
}
@keyframes float {
  to {
    transform: translateY(-12px);
  }
}
@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}
@keyframes scrollCue {
  0% {
    transform: scaleY(0);
    transform-origin: top;
  }
  45% {
    transform: scaleY(1);
    transform-origin: top;
  }
  55% {
    transform: scaleY(1);
    transform-origin: bottom;
  }
  100% {
    transform: scaleY(0);
    transform-origin: bottom;
  }
}
@keyframes introMark {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.92);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes introBar {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

/* -------------------------------------------------- Breakpoints */
@media (min-width: 720px) {
  .split-section {
    grid-template-columns: 0.92fr 1.08fr;
  }
  .manifesto-steps,
  .agency-grid,
  .case-grid,
  .answer-grid,
  .handoff-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .agency-grid {
    grid-template-columns: 1fr 1.3fr;
  }
  .form-section,
  .letter-section {
    grid-template-columns: 1fr 1.05fr;
  }
  .inner-hero {
    grid-template-columns: 1.1fr 0.9fr;
  }
  .contact-hero {
    grid-template-columns: 0.85fr 1.15fr;
  }
  .footer-top {
    flex-wrap: nowrap;
  }
}

@media (min-width: 980px) {
  .editorial,
  .manual-section,
  .about-section,
  .competitor-section,
  .guarantee-section {
    grid-template-columns: 1fr 1fr;
  }
  .editorial {
    grid-template-columns: 0.9fr 1.1fr;
  }
  .about-section {
    grid-template-columns: 1.1fr 0.9fr;
  }
  .manual-section {
    grid-template-columns: 0.8fr 1.2fr;
  }
  .guarantee-section {
    grid-template-columns: 1.15fr 0.85fr;
  }
  .process-grid {
    grid-template-columns: 0.85fr 1.15fr;
  }
  .manifesto-steps,
  .case-grid,
  .answer-grid,
  .handoff-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* -------------------------------------------------- Nav mobile */
@media (max-width: 880px) {
  .nav-toggle {
    display: flex;
  }
  .header-inner {
    position: relative;
  }
  /* X sopra la sidebar, sempre cliccabile */
  .nav-toggle {
    position: relative;
    z-index: 2;
  }
  /* Su mobile niente backdrop-filter sull'header: eviterebbe il fixed full-height */
  .site-header.is-scrolled {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(8, 8, 10, 0.95);
  }

  /* Menu mobile: SIDEBAR elegante (slide da destra), arieggiata */
  .main-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    width: min(340px, 87vw);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1.5rem 1.7rem 1.9rem;
    border-left: 1px solid rgba(var(--ink-rgb), 0.1);
    border-radius: 0;
    background: linear-gradient(165deg, rgba(23, 22, 26, 0.99), rgba(12, 12, 15, 0.99));
    box-shadow: -34px 0 80px rgba(0, 0, 0, 0.55);
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 0.42s var(--ease), visibility 0.42s;
  }
  .main-nav.is-open {
    transform: translateX(0);
    visibility: visible;
  }
  /* logo in cima alla sidebar */
  .nav-head {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-bottom: 1.4rem;
    margin-bottom: 0.4rem;
    border-bottom: 1px solid rgba(var(--ink-rgb), 0.1);
  }
  .nav-head .nav-mark {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    flex: none;
    border: 1px solid var(--line-gold);
    border-radius: 11px;
    color: var(--gold-bright);
    background: linear-gradient(145deg, rgba(var(--gold-rgb), 0.2), rgba(var(--ink-rgb), 0.02));
    font-weight: 800;
    font-size: 0.95rem;
  }
  .nav-head strong { display: block; font-size: 0.95rem; font-weight: 700; }
  .nav-head small { display: block; margin-top: 2px; color: var(--muted); font-size: 0.7rem; letter-spacing: 0.04em; }
  /* entrata a cascata */
  .nav-head,
  .main-nav a {
    opacity: 0;
    transform: translateX(18px);
    transition: opacity 0.45s var(--ease), transform 0.45s var(--ease), color 0.2s var(--ease);
  }
  .main-nav.is-open .nav-head,
  .main-nav.is-open a { opacity: 1; transform: none; }
  .main-nav.is-open .nav-head { transition-delay: 0.06s; }
  .main-nav.is-open a:nth-of-type(1) { transition-delay: 0.13s; }
  .main-nav.is-open a:nth-of-type(2) { transition-delay: 0.19s; }
  .main-nav.is-open a:nth-of-type(3) { transition-delay: 0.25s; }
  .main-nav.is-open a:nth-of-type(4) { transition-delay: 0.33s; }
  /* voci con divisori dritti tra una e l'altra */
  .main-nav a:not(.button) {
    display: flex;
    align-items: center;
    padding: 0.95rem 0.2rem;
    font-size: 1.18rem;
    font-weight: 600;
    color: var(--soft);
  }
  .main-nav a:not(.button)::after { display: none; }
  .main-nav a:not(.button):hover { color: var(--ink); }
  .main-nav a.is-active { color: var(--gold-bright); }
  /* CTA in fondo → sidebar ariosa */
  .nav-cta { margin-top: auto; }
  /* logo header del sito nascosto mentre la sidebar è aperta (niente doppione) */
  body.nav-open .brand { opacity: 0; pointer-events: none; transition: opacity 0.2s var(--ease); }
  .nav-cta {
    margin-left: 0;
    margin-top: 0.45rem;
    min-height: 48px;
    font-size: 0.8rem;
  }
  /* card "Manuale" come blocco statico sotto la foto */
  .cine-hero-card {
    position: static;
    margin: 0.9rem 0 0;
    width: auto;
  }
  .cine-hero-side {
    display: none;
  }
}

/* =================================================================
   RESTYLING MOBILE — override del solo mobile (non tocca il desktop)
   ================================================================= */

/* -------- Rifinitura menu mobile / card statica (dopo il blocco 880px base) -------- */
@media (max-width: 880px) {
  .nav-cta {
    margin-left: 0;
    margin-top: auto;
    min-height: 52px;
    padding: 0 1.2rem;
    font-size: 0.82rem;
    letter-spacing: 0.04em;
  }
  .cine-hero-card {
    padding: 1.1rem 1.2rem;
    margin: 0.75rem 0 0;
  }
}

/* -------- Mobile principale (~390px) -------- */
@media (max-width: 600px) {
  :root {
    --pad-section: clamp(3rem, 11vw, 3.75rem);
    --radius: 14px;
    --radius-sm: 10px;
  }

  /* Tipografia */
  h1 {
    font-size: 2.1rem;
    line-height: 1.08;
    letter-spacing: -0.02em;
  }
  h2 {
    font-size: 1.7rem;
    line-height: 1.12;
    letter-spacing: -0.02em;
  }
  h3 {
    font-size: 1.12rem;
    line-height: 1.22;
  }
  .eyebrow {
    font-size: 0.66rem;
    letter-spacing: 0.16em;
    margin-bottom: 0.9rem;
  }
  .eyebrow::before {
    width: 20px;
  }
  .section-number {
    font-size: 0.66rem;
    letter-spacing: 0.14em;
  }
  .section-heading p:not(.eyebrow) {
    font-size: 0.96rem;
    line-height: 1.6;
    margin-top: 0.85rem;
  }
  .split-copy p,
  .editorial-copy p,
  .competitor-copy p,
  .about-card p,
  .manual-copy p,
  .guarantee-copy p,
  .letter-body p,
  .write-section p,
  .no-section > p,
  .final-cta p,
  .inner-hero-panel p {
    font-size: 0.96rem;
    line-height: 1.62;
  }
  .feature-card p,
  .case-card p,
  .answer-card p {
    font-size: 0.94rem;
    line-height: 1.6;
  }
  .dialogue-card p {
    font-size: 0.95rem;
    line-height: 1.5;
  }
  .handoff-grid p {
    font-size: 0.96rem;
    line-height: 1.5;
  }
  .manifesto-step p,
  .timeline-item p {
    line-height: 1.6;
  }
  .section-bignum {
    font-size: 4.2rem;
    top: 0.2rem;
    color: rgba(var(--gold-rgb), 0.05);
  }
  .case-metric {
    font-size: 2.4rem;
  }
  .guarantee-panel span {
    font-size: 3rem;
  }
  .statement-label {
    margin-bottom: 1.1rem;
    padding: 0.45rem 0.95rem;
    font-size: 0.66rem;
    letter-spacing: 0.12em;
  }
  .statement-band p {
    font-size: 2rem;
    line-height: 1.12;
    letter-spacing: -0.02em;
    max-width: 16ch;
    margin-bottom: 1.2rem;
  }
  .statement-band > span:last-child {
    font-size: 0.78rem;
  }
  .cine-title {
    font-size: 2rem;
    line-height: 1.1;
    letter-spacing: -0.02em;
    max-width: 16ch;
    margin-bottom: 1rem;
  }
  .hero-lead {
    font-size: 1.06rem;
    line-height: 1.5;
  }
  .manifesto-lead {
    font-size: 1.55rem;
    line-height: 1.28;
    max-width: 22ch;
    margin-bottom: 2.2rem;
  }
  .inner-hero h1,
  .contact-letter h1 {
    font-size: 2rem;
    line-height: 1.08;
    margin-bottom: 1rem;
  }
  .quote-panel p {
    font-size: 1.25rem;
    line-height: 1.38;
  }
  .competitor-ladder span {
    font-size: 0.95rem;
  }
  .no-grid span {
    font-size: 0.85rem;
  }
  .case-label {
    font-size: 0.66rem !important;
    line-height: 1.35 !important;
    margin-bottom: 0.8rem !important;
  }
  .marquee-track {
    gap: 1.6rem;
  }
  .marquee-track span {
    font-size: 0.78rem;
  }
  .marquee-track span::after {
    margin-left: 1.6rem;
  }
  .footer-brand strong {
    font-size: 1.15rem;
  }
  .about-card strong {
    font-size: 1.1rem;
    margin-top: 1.3rem;
  }
  .cine-hero-card strong {
    font-size: 1.05rem;
  }
  .form-subject strong {
    font-size: 1.1rem;
  }
  .contact-card strong {
    font-size: 1.05rem;
  }

  /* Bottoni / tap target */
  .button {
    min-height: 48px;
    padding: 0 1.4rem;
    gap: 0.45rem;
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    white-space: nowrap;
  }
  .button.large {
    min-height: 50px;
    padding: 0 1.5rem;
    font-size: 0.8rem;
    white-space: nowrap;
  }
  .button.primary {
    box-shadow: 0 7px 20px rgba(var(--gold-rgb), 0.2);
  }
  .nav-cta {
    min-height: 46px;
    padding: 0 1.2rem;
    font-size: 0.78rem;
  }
  .text-link {
    font-size: 0.76rem;
    letter-spacing: 0.04em;
    margin-top: 1.2rem;
  }
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0.7rem;
    margin-top: 1.5rem;
  }
  .hero-actions .button {
    width: 100%;
  }

  /* Spaziature / ritmo */
  .cine-hero {
    gap: 1.6rem;
    padding-top: calc(var(--header-h) + 1.1rem);
    padding-bottom: 2.25rem;
  }
  .section-heading {
    margin-bottom: 1.75rem;
  }
  .agency-grid,
  .case-grid,
  .answer-grid,
  .process-cards {
    gap: 0.85rem;
  }
  .manifesto-steps {
    gap: 1rem;
  }
  .manifesto-step {
    padding-top: 1.4rem;
  }
  .feature-card,
  .case-card,
  .answer-card,
  .timeline-item {
    padding: 1.35rem 1.3rem;
  }
  .dialogue-card {
    padding: 1.1rem 1.2rem;
  }
  .dialogue-stack {
    gap: 0.7rem;
  }
  .dialogue-card.muted {
    margin-left: 0;
  }
  .competitor-ladder {
    gap: 0.7rem;
  }
  .competitor-ladder span {
    padding: 1.05rem 1.2rem;
  }
  .competitor-ladder span:nth-child(2),
  .competitor-ladder span:last-child {
    margin-left: 0;
  }
  .editorial,
  .manual-section,
  .about-section,
  .competitor-section,
  .guarantee-section,
  .split-section {
    gap: 1.5rem;
  }
  .process-grid,
  .letter-section,
  .form-section {
    gap: 1.5rem;
  }
  .statement-band {
    margin-block: 0;
    padding-block: clamp(3rem, 12vw, 4rem);
  }
  .final-cta {
    padding: 2.1rem 1.3rem;
    margin-block: var(--pad-section);
  }
  .final-cta p {
    margin-bottom: 1.5rem;
  }
  .final-cta small {
    font-size: 0.82rem;
    line-height: 1.55;
    margin-top: 1.5rem;
  }
  .inner-hero,
  .contact-hero {
    margin-top: calc(var(--header-h) + 0.75rem);
    padding: 1.8rem 1.3rem;
    min-height: auto;
    gap: 1.5rem;
  }
  .inner-hero-panel,
  .quote-panel {
    padding: 1.4rem 1.3rem;
  }
  .handoff-section {
    padding: 1.8rem 1.4rem;
  }
  .handoff-section > h2 {
    margin-bottom: 1.5rem;
  }
  .handoff-grid {
    gap: 0.7rem;
  }
  .handoff-grid p {
    padding: 1.2rem 1.3rem;
  }
  .about-card {
    padding: 1.5rem 1.35rem;
  }
  .guarantee-panel {
    padding: 1.6rem 1.35rem;
  }
  .letter-body {
    padding: 1.6rem 1.35rem;
  }
  .contact-card div {
    padding: 1.5rem 1.35rem;
  }
  .no-grid {
    gap: 0.5rem;
    margin-bottom: 1.4rem;
  }
  .no-grid span {
    padding: 0.7rem 1rem;
  }
  .contact-form {
    padding: 1.5rem 1.3rem;
    gap: 0.9rem;
  }
  .field input,
  .field textarea {
    font-size: 16px;
    padding: 0.85rem 1rem;
  }
  .field textarea {
    min-height: 110px;
  }
  .contact-form .button {
    white-space: nowrap;
  }
  .footer-inner {
    gap: 1.4rem;
    padding-block: 2rem;
  }
  .footer-nav {
    gap: 0.4rem 1.2rem;
  }
  .footer-nav a {
    padding: 0.5rem 0;
    font-size: 0.92rem;
  }
}

/* -------- Telefoni piccoli (<=380px) -------- */
@media (max-width: 380px) {
  .cine-title {
    font-size: 1.85rem;
  }
  h1 {
    font-size: 1.95rem;
  }
  h2 {
    font-size: 1.6rem;
  }
  .statement-band p {
    font-size: 1.85rem;
  }
  .guarantee-panel span {
    font-size: 2.7rem;
  }
  .case-metric {
    font-size: 2.2rem;
  }
  .manifesto-lead {
    font-size: 1.45rem;
  }
  .button,
  .button.large {
    padding: 0 1.2rem;
    font-size: 0.76rem;
  }
}

/* -------------------------------------------------- Mobile: prestazioni + no offset laterale */
@media (max-width: 880px) {
  /* effetti pesanti spenti su mobile (blur animato = scatti) */
  .aurora { display: none; }
  .grain { display: none; }
  .kenburns { animation: none; }
  .inner-hero-panel,
  .quote-panel,
  .cine-hero-card {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(15, 15, 19, 0.96);
  }
  /* niente traslazioni orizzontali nei reveal → niente sbandamento laterale */
  .reveal[data-reveal="right"],
  .reveal[data-reveal="left"] {
    transform: translateY(26px);
  }
  /* leggero bagliore statico al posto dell'aurora animata */
  body {
    background-image: radial-gradient(40rem 28rem at 50% -6%, rgba(var(--gold-rgb), 0.1), transparent 70%);
    background-repeat: no-repeat;
  }
}

/* -------------------------------------------------- Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal,
  [data-split] .word > span {
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
  }
  .intro {
    display: none;
  }
}

/* -------------------------------------------------- Visibilità per dispositivo (gestita dal pannello) */
@media (max-width: 880px) {
  html:not(.fp-edit) .fp-hide-mobile {
    display: none !important;
  }
}

@media (min-width: 881px) {
  html:not(.fp-edit) .fp-hide-desktop {
    display: none !important;
  }
}
