/* THE FLOW — linguaggio grafico dal logo: Arial/Archivo Black bianco su antracite, tagli a 45° */
:root {
  --ink: #333333;
  --ink-deep: #1c1c1c;
  --paper: #ffffff;
  --paper-2: #f3f3f1;
  --muted: #6b6b6b;
  --muted-light: #b5b5b5;
  --line: #e2e2e0;
  --display: "Archivo Black", "Arial Black", Arial, sans-serif;
  --body: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
  --cut: .32em; /* profondità del taglio a 45° */
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.55 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, video { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 400; }
p { margin: 0; }
.wrap { width: 100%; max-width: 1320px; margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- elementi base ---------- */
.eyebrow { font: 600 13px/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 20px; display: flex; align-items: center; gap: 12px; }
.eyebrow::before { content: ""; width: 22px; height: 10px; background: currentColor; clip-path: polygon(5px 0, 100% 0, calc(100% - 5px) 100%, 0 100%); }
.eyebrow-light { color: var(--muted-light); }
.hero .eyebrow { color: rgba(255,255,255,.9); text-shadow: 0 1px 12px rgba(0,0,0,.35); }
.h2 { font: 400 clamp(34px, 5.2vw, 72px)/1.02 var(--display); letter-spacing: -.01em; text-transform: uppercase; }
.lead { font-size: clamp(17px, 1.4vw, 20px); color: var(--muted); max-width: 52ch; }

.band { display: inline-block; background: var(--ink); color: var(--paper); padding: .02em .5em .06em; clip-path: polygon(var(--cut) 0, 100% 0, calc(100% - var(--cut)) 100%, 0 100%); }
.band-white { background: var(--paper); color: var(--ink); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 30px; font: 400 14px/1 var(--display); letter-spacing: .06em; text-transform: uppercase; text-decoration: none; border: 0; cursor: pointer; clip-path: polygon(12px 0, 100% 0, calc(100% - 12px) 100%, 0 100%); transition: transform .2s ease, background .2s ease, color .2s ease; }
.btn:hover { transform: translateX(4px); }
.btn-dark { background: var(--ink); color: var(--paper); }
.btn-dark:hover { background: var(--ink-deep); }
.btn-white { background: var(--paper); color: var(--ink); }
.btn-ghost { background: rgba(255,255,255,.14); color: var(--paper); backdrop-filter: blur(6px); }
.btn-ghost:hover { background: rgba(255,255,255,.26); }
.btn-block { width: 100%; }
:focus-visible { outline: 3px solid #7aa7ff; outline-offset: 3px; }

/* ---------- logo ---------- */
.logo { display: inline-block; text-decoration: none; background: var(--ink); color: var(--paper); font: 400 18px/1 var(--display); letter-spacing: .02em; padding: 10px 18px 10px 26px; clip-path: polygon(14px 0, 100% 0, 100% 100%, 0 100%, 0 14px); }
.logo-invert { background: var(--paper); color: var(--ink); }

/* ---------- navigazione ---------- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; display: flex; align-items: center; gap: 32px; padding: 14px var(--gutter); transition: background .3s ease, box-shadow .3s ease; }
.nav.is-solid { background: rgba(255,255,255,.94); backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--line); }
.nav-links { display: flex; gap: 28px; margin-left: auto; }
.nav-links a { text-decoration: none; font-weight: 600; font-size: 15px; color: var(--paper); position: relative; }
.nav.is-solid .nav-links a { color: var(--ink); }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -4px; height: 2px; background: currentColor; transition: right .25s ease; }
.nav-links a:hover::after { right: 0; }
.nav-cta { min-height: 44px; padding: 0 22px; font-size: 13px; }
.nav:not(.is-solid) .nav-cta { background: var(--paper); color: var(--ink); }
.nav-toggle { display: none; margin-left: auto; width: 46px; height: 46px; border: 0; background: var(--ink); cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 6px; }
.nav-toggle span { width: 20px; height: 2px; background: var(--paper); transition: transform .25s ease; }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; color: var(--paper); background: var(--ink-deep); overflow: hidden; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.5) 0%, rgba(0,0,0,.1) 28%, rgba(0,0,0,.3) 55%, rgba(0,0,0,.78) 100%); }
.hero-content { position: relative; width: 100%; max-width: 1320px; margin: 0 auto; padding: 120px var(--gutter) clamp(56px, 9vh, 110px); }
.hero-title { font: 400 clamp(52px, 10.5vw, 168px)/.9 var(--display); text-transform: uppercase; letter-spacing: -.02em; display: flex; flex-direction: column; align-items: flex-start; gap: .06em; margin-bottom: 28px; }
.hero-title .band:nth-child(2) { margin-left: .35em; }
.hero-title .band:nth-child(3) { margin-left: .7em; }
.hero-sub { font-size: clamp(17px, 1.5vw, 21px); max-width: 46ch; color: rgba(255,255,255,.88); margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.scroll-cue { position: absolute; right: var(--gutter); bottom: 36px; writing-mode: vertical-rl; font: 600 12px/1 var(--body); letter-spacing: .2em; text-transform: uppercase; text-decoration: none; color: rgba(255,255,255,.7); padding-bottom: 56px; }
.scroll-cue::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 1px; height: 44px; background: currentColor; animation: cue 1.8s ease-in-out infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* ---------- marquee clienti ---------- */
.marquee { background: var(--ink); color: var(--paper); overflow: hidden; padding: 22px 0; }
.marquee-track { display: flex; width: max-content; animation: slide 40s linear infinite; }
.marquee ul { display: flex; list-style: none; margin: 0; padding: 0; }
.marquee li { font: 400 clamp(20px, 2.4vw, 32px)/1 var(--display); text-transform: uppercase; white-space: nowrap; display: flex; align-items: center; }
.marquee li::after { content: ""; width: 26px; height: 12px; margin: 0 34px; background: var(--muted); clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%); }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- intro ---------- */
.intro { padding-top: clamp(80px, 12vw, 160px); padding-bottom: clamp(80px, 10vw, 140px); }
.statement { font: 400 clamp(28px, 3.8vw, 54px)/1.12 var(--display); letter-spacing: -.01em; max-width: 22ch; }
.statement mark { background: var(--ink); color: var(--paper); padding: 0 .2em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.statement mark.is-split { background: none; color: inherit; padding: 0; }
.statement .hl { background: linear-gradient(var(--ink), var(--ink)) no-repeat 0 0 / 100% 100%; color: var(--paper); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: clamp(56px, 7vw, 96px); border-top: 2px solid var(--ink); }
.stat { padding: 28px 24px 0 0; }
.stat + .stat { padding-left: 24px; border-left: 1px solid var(--line); }
.stat strong { display: block; font: 400 clamp(44px, 5vw, 72px)/1 var(--display); margin-bottom: 8px; }
.stat span { color: var(--muted); font-size: 15px; }

/* ---------- differenza: niente intermediari ---------- */
.direct { padding-bottom: clamp(80px, 10vw, 140px); }
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: clamp(40px, 5vw, 64px); }
.compare-col { padding: clamp(28px, 3.5vw, 48px); }
.compare-col h3 { font: 400 clamp(20px, 2vw, 26px)/1.1 var(--display); text-transform: uppercase; margin-bottom: 28px; }
.compare-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.compare-col li { display: flex; gap: 14px; align-items: baseline; font-size: 17px; }
.compare-them { background: var(--paper-2); color: var(--muted); }
.compare-them li::before { content: "×"; flex: 0 0 18px; font-weight: 600; }
.compare-us { background: var(--ink); color: var(--paper); }
.compare-us .band { background: var(--paper); color: var(--ink); }
.compare-us li { font-weight: 500; }
.compare-us li::before { content: ""; flex: 0 0 18px; height: 8px; background: var(--paper); clip-path: polygon(4px 0, 100% 0, calc(100% - 4px) 100%, 0 100%); transform: translateY(-2px); }

/* ---------- servizi ---------- */
.services { background: var(--ink-deep); color: var(--paper); padding: clamp(80px, 11vw, 150px) 0; position: relative; }
.services::before { content: ""; position: absolute; z-index: 1; top: -1px; left: 0; right: 0; height: clamp(40px, 6vw, 90px); background: var(--paper); clip-path: polygon(0 0, 100% 0, 100% 0, 0 100%); }
.section-lead { color: inherit; opacity: .72; margin-top: 24px; }
.section-head { margin-bottom: clamp(48px, 6vw, 80px); padding-top: clamp(20px, 3vw, 40px); }
.service-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid color-mix(in srgb, currentColor 18%, transparent); }
.service { padding: 36px 32px 44px 0; border-bottom: 1px solid color-mix(in srgb, currentColor 18%, transparent); position: relative; transition: background .3s ease; }
.service:not(:nth-child(3n+1)) { padding-left: 32px; border-left: 1px solid color-mix(in srgb, currentColor 18%, transparent); }
.service .num { font: 400 14px/1 var(--display); color: var(--muted-light); display: block; margin-bottom: 40px; }
.service h3 { font: 400 clamp(22px, 2vw, 28px)/1.1 var(--display); text-transform: uppercase; margin-bottom: 14px; }
.service p a { color: inherit; text-underline-offset: 3px; }
.service p { color: inherit; opacity: .66; font-size: 16px; }
.service::after { content: ""; position: absolute; top: 34px; right: 24px; width: 34px; height: 14px; background: currentColor; clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%); transform: translateX(-10px); opacity: 0; transition: .3s ease; }
.service:hover::after { transform: none; opacity: 1; }

/* ---------- lavori ---------- */
.work { padding: clamp(80px, 11vw, 150px) 0 clamp(60px, 8vw, 110px); overflow: hidden; }
.work-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 44px; }
.work-nav { display: flex; gap: 10px; }
.round { width: 54px; height: 54px; border: 2px solid var(--ink); background: transparent; color: var(--ink); font-size: 20px; cursor: pointer; transition: background .2s, color .2s; }
.round:hover { background: var(--ink); color: var(--paper); }
.reel { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 0 max(var(--gutter), calc((100vw - 1320px) / 2 + var(--gutter))); scroll-padding: 0 max(var(--gutter), calc((100vw - 1320px) / 2 + var(--gutter))); }
.reel::-webkit-scrollbar { display: none; }
/* card: video pulito sopra, etichetta e titolo sotto (molti video hanno già i sottotitoli dentro) */
.clip { position: relative; flex: 0 0 clamp(220px, 22vw, 300px); scroll-snap-align: start; }
.clip video { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; background: var(--paper-2); transition: filter .4s ease; }
.clip:hover video { filter: brightness(1.08); }
.clip-meta { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding-top: 14px; color: var(--ink); }
.clip-meta h3 { font: 400 17px/1.15 var(--display); text-transform: uppercase; }
.tag { display: inline-block; font: 600 11px/1 var(--body); letter-spacing: .12em; text-transform: uppercase; background: var(--ink); color: var(--paper); padding: 6px 12px 6px 14px; margin-bottom: 10px; clip-path: polygon(5px 0, 100% 0, calc(100% - 5px) 100%, 0 100%); }
.clip-meta .tag { margin-bottom: 0; }
.tag-ai { background: var(--line); color: var(--ink); }

/* ---------- press: Forbes ---------- */
.press { padding: clamp(40px, 6vw, 80px) 0 clamp(80px, 11vw, 150px); }
.press-grid { display: grid; grid-template-columns: 1fr .75fr 1.35fr; gap: 14px; align-items: end; }
.press-copy { align-self: center; padding-right: clamp(0px, 3vw, 40px); }
.press-mast { font: 700 clamp(56px, 7vw, 104px)/.9 Georgia, "Times New Roman", serif; letter-spacing: -.03em; margin-bottom: 24px; }
.press-mast span { display: block; font: 600 13px/1 var(--body); letter-spacing: .4em; text-transform: uppercase; margin-top: 10px; padding-left: .3em; }
.press-photo { margin: 0; position: relative; overflow: hidden; background: var(--paper-2); }
.press-photo img { width: 100%; height: 100%; object-fit: cover; }
.press-tall { aspect-ratio: 2 / 3; }
.press-wide { aspect-ratio: 4 / 3; }
.press-photo figcaption { position: absolute; left: 12px; bottom: 12px; font: 400 12px/1 var(--display); letter-spacing: .08em; text-transform: uppercase; background: var(--paper); color: var(--ink); padding: 8px 14px 8px 16px; clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%); }

/* ---------- studio ---------- */
.studio { background: var(--paper-2); padding: clamp(80px, 11vw, 150px) 0; }
.studio-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.studio-copy .lead { margin: 24px 0 28px; }
.studio-price { margin: -12px 0 28px; padding: 14px 18px; background: var(--paper); border-left: 4px solid var(--ink); font-size: 16px; }
.studio-where { font-weight: 600; margin: -12px 0 28px; }
.checks { list-style: none; padding: 0; margin: 0 0 36px; display: grid; gap: 12px; }
.checks li { display: flex; gap: 14px; align-items: baseline; font-weight: 500; }
.checks li::before { content: ""; flex: 0 0 18px; height: 8px; background: var(--ink); clip-path: polygon(4px 0, 100% 0, calc(100% - 4px) 100%, 0 100%); transform: translateY(-2px); }
.studio-photos { display: grid; grid-template-columns: 1.1fr 1fr; grid-template-rows: 1fr 1fr; gap: 14px; aspect-ratio: 1 / 1; }
.ph { margin: 0; position: relative; overflow: hidden; background: #fff; border: 1px solid var(--line); }
.ph-tall { grid-row: span 2; }
.ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ph figcaption { position: absolute; left: 12px; bottom: 12px; font: 400 12px/1 var(--display); letter-spacing: .08em; text-transform: uppercase; background: var(--ink); color: var(--paper); padding: 8px 14px 8px 16px; clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%); z-index: 1; }

/* backstage nello studio */
.backstage { display: grid; grid-template-columns: minmax(0, 380px) 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; margin-top: clamp(64px, 8vw, 120px); }
.backstage-media { position: relative; aspect-ratio: 9 / 16; width: 100%; max-width: 420px; background: var(--ink-deep); overflow: hidden; }
.backstage-media video { width: 100%; height: 100%; object-fit: cover; }
.sound { position: absolute; right: 12px; bottom: 12px; border: 0; cursor: pointer; font: 400 12px/1 var(--display); letter-spacing: .08em; text-transform: uppercase; background: var(--paper); color: var(--ink); padding: 10px 16px 10px 18px; clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%); }
.sound[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.backstage-title { font: 400 clamp(30px, 4vw, 56px)/1.02 var(--display); text-transform: uppercase; margin-bottom: 24px; }
.backstage-copy .lead { margin-bottom: 20px; }
.credits { font-size: 14px; font-weight: 600; color: var(--muted); }

/* ---------- AI ---------- */
.ai { background: var(--ink-deep); color: var(--paper); padding: clamp(80px, 11vw, 150px) 0; }
.ai-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.ai-media { position: relative; aspect-ratio: 9 / 16; max-height: 78vh; overflow: hidden; background: #000; }
.ai-media video { width: 100%; height: 100%; object-fit: cover; }
.ai-badge { position: absolute; top: 18px; left: 0; background: var(--paper); color: var(--ink); font: 400 15px/1 var(--display); padding: 12px 22px 12px 18px; clip-path: polygon(0 0, 100% 0, calc(100% - 10px) 100%, 0 100%); }
.ai-copy .lead { color: inherit; opacity: .72; margin: 24px 0 40px; }
.ai-points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; border-top: 1px solid color-mix(in srgb, currentColor 18%, transparent); padding-top: 28px; }
.ai-points strong { display: block; font: 400 17px/1.15 var(--display); text-transform: uppercase; margin-bottom: 8px; }
.ai-points span { color: inherit; opacity: .62; font-size: 15px; }

/* ---------- metodo ---------- */
.method { padding-top: clamp(80px, 11vw, 150px); padding-bottom: clamp(80px, 11vw, 150px); }
.steps { list-style: none; margin: clamp(40px, 5vw, 64px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.steps li { background: var(--paper-2); padding: 30px 26px 36px; position: relative; }
.steps li:nth-child(even) { transform: translateY(28px); }
.steps span { display: inline-block; font: 400 15px/1 var(--display); background: var(--ink); color: var(--paper); padding: 8px 16px; margin-bottom: 44px; clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%); }
.steps h3 { font: 400 24px/1.1 var(--display); text-transform: uppercase; margin-bottom: 10px; }
.steps p { color: var(--muted); font-size: 16px; }

/* ---------- team ---------- */
.team { background: var(--ink); color: var(--paper); padding: clamp(80px, 11vw, 150px) 0; }
.roles { list-style: none; padding: 0; margin: clamp(40px, 5vw, 64px) 0 40px; display: flex; flex-wrap: wrap; gap: 12px; }
.roles li { font: 400 clamp(18px, 2.2vw, 30px)/1 var(--display); text-transform: uppercase; background: color-mix(in srgb, currentColor 10%, transparent); padding: 18px 30px; clip-path: polygon(14px 0, 100% 0, calc(100% - 14px) 100%, 0 100%); transition: background .25s, color .25s; }
.roles li:hover { background: var(--paper); color: var(--ink); }
.team-note { color: inherit; opacity: .72; max-width: 52ch; font-size: 18px; }

/* ---------- contatti ---------- */
.contact { padding: clamp(80px, 11vw, 150px) 0; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.contact-title { font: 400 clamp(34px, 4.6vw, 64px)/1.08 var(--display); text-transform: uppercase; margin-bottom: 48px; }
.contact-info { margin: 0; display: grid; gap: 22px; }
.contact-info div { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.contact-info dt { font: 600 12px/1.8 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.contact-info dd { margin: 0; font-weight: 600; font-size: 18px; }
.contact-info a { text-decoration: none; overflow-wrap: anywhere; }
.contact-info small { display: block; margin-top: 4px; font-weight: 400; font-size: 14px; color: var(--muted); }
.contact-info a:hover { text-decoration: underline; }
.form { display: grid; gap: 20px; background: var(--paper-2); padding: clamp(24px, 3.5vw, 44px); }
.form label { display: grid; gap: 8px; font-weight: 600; font-size: 14px; }
.form input:not([type="checkbox"]):not([type="radio"]), .form textarea { width: 100%; font: 400 17px/1.4 var(--body); color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-bottom: 2px solid var(--ink); padding: 14px 14px; border-radius: 0; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--ink); }
.form textarea { resize: vertical; }
.form fieldset { border: 0; padding: 0; margin: 0; }
.form legend { font-weight: 600; font-size: 14px; margin-bottom: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { display: block; cursor: pointer; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span { display: inline-block; padding: 10px 18px; background: var(--paper); border: 1px solid var(--line); font-weight: 500; font-size: 14px; transition: .2s; }
.chips input:checked + span { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chips input:focus-visible + span { outline: 3px solid #7aa7ff; outline-offset: 2px; }
.form .privacy { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 14px; color: var(--muted); }
.form .privacy input { margin-top: 3px; accent-color: var(--ink); }
.form-msg { font-weight: 600; min-height: 1.4em; }

/* ---------- footer ---------- */
.footer { background: var(--ink-deep); color: rgba(255,255,255,.7); padding: 40px 0; font-size: 14px; }
.footer-row p { max-width: 100%; }
.footer-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--paper); }

/* ---------- animazioni in entrata ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-in { opacity: 1; transform: none; }
.steps li.reveal.is-in:nth-child(even) { transform: translateY(28px); }

/* ---------- animazioni dei testi (solo punti scelti) ---------- */
/* fasce che si aprono con taglio a 45°, come il wipe dello showreel */
.wipe .band { animation: band-in .8s cubic-bezier(.7, 0, .2, 1) both; }
.wipe .band:nth-of-type(1) { animation-delay: .25s; }
.wipe .band:nth-of-type(2) { animation-delay: .4s; }
.wipe .band:nth-of-type(3) { animation-delay: .55s; }
.wipe-on-view .band { animation-play-state: paused; }
.wipe-on-view.is-in .band { animation-play-state: running; }
@keyframes band-in {
  from { clip-path: polygon(var(--cut) 0, var(--cut) 0, 0 100%, 0 100%); }
  to { clip-path: polygon(var(--cut) 0, 100% 0, calc(100% - var(--cut)) 100%, 0 100%); }
}
.hero-sub, .hero-actions { animation: rise .8s ease both; }
.hero-sub { animation-delay: .8s; }
.hero-actions { animation-delay: .95s; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }

/* evidenziatore che scorre sotto la frase chiave */
.anim .statement .hl { background-size: 0% 100%; color: var(--ink); transition: background-size .26s linear, color .12s linear; }
.anim .statement.is-lit .hl { background-size: 100% 100%; color: var(--paper); }

/* titolo che sale riga per riga */
.lines .line { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.lines .line > span { display: inline-block; }
.anim .lines .line > span { transform: translateY(110%); transition: transform .9s cubic-bezier(.2, .7, .2, 1); }
.anim .lines .line + .line > span { transition-delay: .18s; }
.anim .lines.is-lit .line > span { transform: none; }

/* elementi che compaiono uno dopo l'altro (--d impostato da main.js) */
.anim .steps li { clip-path: inset(0 100% 0 0); transition: clip-path .8s cubic-bezier(.7, 0, .2, 1) var(--d, 0s); }
.anim .steps.is-lit li { clip-path: inset(0 0 0 0); }
.anim .roles li { clip-path: polygon(14px 0, 14px 0, 0 100%, 0 100%); transition: clip-path .6s cubic-bezier(.7, 0, .2, 1) var(--d, 0s), background .25s, color .25s; }
.anim .roles.is-lit li { clip-path: polygon(14px 0, 100% 0, calc(100% - 14px) 100%, 0 100%); }

/* puntino REC che lampeggia */
.rec { white-space: nowrap; }
.rec::before { content: ""; display: inline-block; width: .42em; height: .42em; margin: 0 .14em .1em 0; border-radius: 50%; background: #e5322d; vertical-align: middle; animation: blink 1.2s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* sezioni che entrano bianche e si "spengono": fascia antracite a 45° che attraversa la sezione.
   Senza JS (o con movimento ridotto) restano scure come sempre. --h = altezza sezione, impostata da main.js */
.flip { --flip-bg: var(--ink-deep); position: relative; isolation: isolate; }
.team.flip { --flip-bg: var(--ink); }
.flip > .wrap { position: relative; z-index: 1; }
.flip-armed { background: var(--paper); color: var(--ink); transition: color .6s ease .35s; }
.flip-armed.is-dark { color: var(--paper); }
.flip-armed::after { content: ""; position: absolute; inset: 0; z-index: 0; background: var(--flip-bg); pointer-events: none;
  clip-path: polygon(0 0, 0 0, calc(0px - var(--h, 100vh)) 100%, calc(0px - var(--h, 100vh)) 100%);
  transition: clip-path 1.1s cubic-bezier(.7, 0, .2, 1); }
.flip-armed.is-dark::after { clip-path: polygon(0 0, calc(100% + var(--h, 100vh)) 0, 100% 100%, calc(0px - var(--h, 100vh)) 100%); }

/* ---------- pagina affitto studio ---------- */
.rent-hero { min-height: 88svh; }
.rent-prices { padding-top: clamp(80px, 11vw, 150px); }
.prices { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; margin-top: clamp(40px, 5vw, 64px); }
.price { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: clamp(26px, 3vw, 40px); background: var(--paper-2); }
.price-name { font: 600 13px/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.price-value { font: 400 clamp(56px, 6vw, 84px)/1 var(--display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.price-note { color: var(--muted); font-size: 16px; flex: 1; margin-bottom: 12px; }
.price-main { background: var(--ink); color: var(--paper); }
.price-main .price-name, .price-main .price-note { color: rgba(255,255,255,.7); }
.price-included { background: transparent; border: 2px solid var(--ink); }
.price-included .checks { margin: 8px 0 0; }
.anim .prices .price { clip-path: inset(0 100% 0 0); transition: clip-path .8s cubic-bezier(.7, 0, .2, 1) var(--d, 0s); }
.anim .prices.is-lit .price { clip-path: inset(0 0 0 0); }
.rent-who { padding-top: clamp(80px, 11vw, 150px); padding-bottom: clamp(80px, 10vw, 130px); }
.rent-uses { list-style: none; margin: clamp(40px, 5vw, 64px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.rent-uses li { background: var(--paper-2); padding: 28px 24px 32px; }
.rent-uses h3 { font: 400 21px/1.1 var(--display); text-transform: uppercase; margin-bottom: 10px; }
.rent-uses p { color: var(--muted); font-size: 16px; }
.anim .rent-uses li { clip-path: inset(0 100% 0 0); transition: clip-path .8s cubic-bezier(.7, 0, .2, 1) var(--d, 0s); }
.anim .rent-uses.is-lit li { clip-path: inset(0 0 0 0); }
.rent-crew { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; margin-top: 14px; padding: clamp(24px, 3vw, 36px); border: 2px solid var(--ink); }
.rent-crew p { max-width: 60ch; font-size: 18px; }
.rent-where { background: var(--ink-deep); color: var(--paper); padding: clamp(80px, 10vw, 130px) 0; }
.rent-where-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: end; }
.rent-address p { color: rgba(255,255,255,.72); margin-bottom: 24px; max-width: 46ch; }
.rent-address .rent-street { font: 400 clamp(22px, 2.4vw, 30px)/1.25 var(--display); color: var(--paper); text-transform: uppercase; }
.rent-faq { padding-top: clamp(80px, 10vw, 130px); }
.faq { margin-top: clamp(32px, 4vw, 52px); border-top: 2px solid var(--ink); max-width: 900px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 24px 0; font: 400 clamp(18px, 1.8vw, 22px)/1.25 var(--display); text-transform: uppercase; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 28px; line-height: 1; transition: transform .25s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 24px; max-width: 65ch; }

/* ---------- pagine dei singoli servizi ---------- */
/* apertura scura senza video: la forma del logo a 45° fa da sfondo */
.svc-hero { min-height: auto; background: var(--ink-deep); }
.svc-hero::before { content: ""; position: absolute; top: 0; bottom: 0; right: -10%; width: 55%; background: var(--ink); clip-path: polygon(40% 0, 100% 0, 100% 100%, 0 100%); }
.svc-hero .hero-content { padding-top: clamp(130px, 16vw, 190px); padding-bottom: clamp(64px, 8vw, 110px); }
.svc-hero .hero-title { font-size: clamp(44px, 8vw, 120px); }
.crumbs { font-size: 13px; color: rgba(255,255,255,.6); margin-bottom: 18px; }
.crumbs a { color: inherit; text-decoration: none; }
.crumbs a:hover { color: var(--paper); text-decoration: underline; }
.svc-intro { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); padding-top: clamp(80px, 10vw, 140px); padding-bottom: clamp(64px, 8vw, 110px); }
.svc-intro-copy { display: grid; gap: 20px; align-content: start; padding-top: 6px; }
.svc-intro-copy .lead { color: #4a4a4a; }
.svc-points-wrap { background: var(--paper-2); padding: clamp(64px, 8vw, 110px) 0; }
.svc-points { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.svc-points li { background: var(--paper); padding: 28px 26px 32px; }
.svc-points h3 { font: 400 20px/1.15 var(--display); text-transform: uppercase; margin-bottom: 10px; }
.svc-points p { color: var(--muted); font-size: 16px; }
.anim .svc-points li { clip-path: inset(0 100% 0 0); transition: clip-path .7s cubic-bezier(.7, 0, .2, 1) var(--d, 0s); }
.anim .svc-points.is-lit li { clip-path: inset(0 0 0 0); }
.svc-work { padding-bottom: clamp(40px, 6vw, 80px); }
.svc-why { background: var(--ink); color: var(--paper); padding: clamp(72px, 9vw, 120px) 0; }
.svc-why-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: end; }
.svc-why .lead { color: rgba(255,255,255,.75); margin-bottom: 20px; }
.svc-why-stats { color: rgba(255,255,255,.75); }
.svc-why-stats strong { font: 400 22px/1 var(--display); color: var(--paper); }
.svc-other { padding-top: clamp(64px, 8vw, 110px); }
.svc-other-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.svc-other-list a { display: inline-block; text-decoration: none; font: 400 clamp(16px, 1.8vw, 22px)/1 var(--display); text-transform: uppercase; background: var(--paper-2); padding: 16px 28px; clip-path: polygon(12px 0, 100% 0, calc(100% - 12px) 100%, 0 100%); transition: background .2s, color .2s; }
.svc-other-list a:hover { background: var(--ink); color: var(--paper); }
/* link "scopri il servizio" nelle schede della home */
.service-more { display: inline-block; margin-top: 18px; font: 400 13px/1 var(--display); letter-spacing: .06em; text-transform: uppercase; color: inherit; text-decoration: none; border-bottom: 2px solid currentColor; padding-bottom: 4px; }
.service-more + .service-more { margin-left: 18px; }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .service-list { grid-template-columns: 1fr 1fr; }
  .service:not(:nth-child(3n+1)) { padding-left: 0; border-left: 0; }
  .service:nth-child(even) { padding-left: 28px; border-left: 1px solid color-mix(in srgb, currentColor 18%, transparent); }
  .studio-grid, .ai-grid, .contact-grid, .compare { grid-template-columns: 1fr; }
  .press-grid { grid-template-columns: .75fr 1.35fr; }
  .press-copy { grid-column: 1 / -1; padding-right: 0; margin-bottom: 24px; }
  .ai-media { max-width: 420px; max-height: none; }
  .steps { grid-template-columns: 1fr 1fr; }
  .rent-uses { grid-template-columns: 1fr 1fr; }
  .prices { grid-template-columns: 1fr 1fr; }
  .svc-points { grid-template-columns: 1fr 1fr; }
  .price-included { grid-column: 1 / -1; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { padding-left: 0; border-left: 0; }
  .stat:nth-child(n+3) { padding-top: 32px; }
}
@media (max-width: 820px) {
  .nav-links { position: fixed; inset: 74px 0 auto 0; flex-direction: column; gap: 0; background: var(--paper); padding: 8px var(--gutter) 24px; box-shadow: 0 20px 40px rgba(0,0,0,.12); transform: translateY(-12px); opacity: 0; pointer-events: none; transition: .25s ease; }
  .nav-links.is-open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-links a, .nav.is-solid .nav-links a { color: var(--ink); font: 400 24px/1 var(--display); text-transform: uppercase; padding: 16px 0; border-bottom: 1px solid var(--line); }
  .nav-links a::after { display: none; }
  .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .scroll-cue { display: none; }
  .hero-title .band:nth-child(2) { margin-left: .2em; }
  .hero-title .band:nth-child(3) { margin-left: .4em; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .service-list { grid-template-columns: 1fr; }
  .service:nth-child(even) { padding-left: 0; border-left: 0; }
  .service { padding-right: 0; }
  .steps { grid-template-columns: 1fr; }
  .steps li:nth-child(even), .steps li.reveal.is-in:nth-child(even) { transform: none; }
  .ai-points { grid-template-columns: 1fr; }
  .press-grid, .backstage, .rent-where-grid, .svc-intro, .svc-why-grid { grid-template-columns: 1fr; }
  .svc-points { grid-template-columns: 1fr; }
  .svc-hero::before { width: 70%; opacity: .6; }
  .rent-uses { grid-template-columns: 1fr; }
  .prices { grid-template-columns: 1fr; }
  .work-nav { display: none; }
  .clip { flex-basis: 68vw; }
  .contact-info div { grid-template-columns: 1fr; gap: 4px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .roles li { padding: 14px 22px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track, .scroll-cue::after, .wipe .band, .hero-sub, .hero-actions, .rec::before { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-video { display: none; }
  .hero { background: var(--ink-deep) url("assets/img/hero-reel-poster.jpg") center / cover; }
}
