/* ENNEONE Agency — sito
   Colori e font dal brand ufficiale (brands/n1, approvato 19/10/2026). */

@font-face {
  font-family: "Anton";
  src: url("../fonts/Anton-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Manrope";
  src: url("../fonts/Manrope-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Manrope";
  src: url("../fonts/Manrope-latin-ext.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --red: #E30613;
  --black: #0B0B0B;
  --ivory: #F5EFE4;
  --white: #FFFFFF;
  --steel: #A7A7A5;
  --bordeaux: #360C0D;

  --line: rgba(245, 239, 228, .16);
  --ivory-dim: rgba(245, 239, 228, .68);

  --display: "Anton", "Impact", "Arial Narrow", sans-serif;
  --body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  --skew: -11deg;
  --lead: .92;
  --gutter: clamp(16px, 4.4vw, 72px);
  --frame: clamp(10px, 1.8vw, 28px);

  --ease-cut: cubic-bezier(.76, 0, .24, 1);
  --ease-land: cubic-bezier(.16, 1, .3, 1);

  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  margin: 0;
  background: var(--black);
  color: var(--ivory);
  font-family: var(--body);
  font-size: clamp(1rem, .95rem + .25vw, 1.125rem);
  font-weight: 500;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* bagliore bordeaux ai bordi, come nel set grafico di riferimento */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(60vmax 40vmax at 0% 100%, rgba(54, 12, 13, .55), transparent 70%),
    radial-gradient(50vmax 36vmax at 100% 0%, rgba(54, 12, 13, .35), transparent 70%);
}

img, video { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 4px; }

.skip {
  position: fixed; left: 12px; top: -60px; z-index: 200;
  background: var(--red); color: var(--ivory); padding: .6rem 1rem; font-weight: 700;
}
.skip:focus { top: 12px; }

/* ---------- tipografia ---------- */
.display {
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  line-height: var(--lead);
  letter-spacing: .005em;
  margin: 0;
}
.oblique {
  display: inline-block;
  color: var(--red);
  transform: skewX(var(--skew));
  padding-right: .06em;
}
.h2 { font-size: clamp(3rem, 8.4vw, 8.5rem); }

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

/* ---------- cursore ---------- */
.cursor { display: none; }
@media (hover: hover) and (pointer: fine) {
  html.has-cursor, html.has-cursor a, html.has-cursor button, html.has-cursor [data-cursor] { cursor: none; }
  .cursor {
    display: block; position: fixed; left: 0; top: 0; z-index: 150; pointer-events: none;
  }
  .cursor-cross { position: absolute; width: 22px; height: 22px; margin: -11px 0 0 -11px; transition: transform .35s var(--ease-cut); }
  .cursor-cross::before, .cursor-cross::after { content: ""; position: absolute; background: var(--red); }
  .cursor-cross::before { left: 10px; top: 0; width: 2px; height: 22px; }
  .cursor-cross::after { top: 10px; left: 0; height: 2px; width: 22px; }
  .cursor-frame {
    position: absolute; width: 112px; height: 72px; margin: -36px 0 0 -56px;
    transform: scale(.3); opacity: 0; transition: transform .45s var(--ease-cut), opacity .25s;
  }
  .cursor-frame i { position: absolute; width: 16px; height: 16px; border: 0 solid var(--ivory); }
  .cursor-frame i:nth-child(1) { left: 0; top: 0; border-width: 2px 0 0 2px; }
  .cursor-frame i:nth-child(2) { right: 0; top: 0; border-width: 2px 2px 0 0; }
  .cursor-frame i:nth-child(3) { left: 0; bottom: 0; border-width: 0 0 2px 2px; }
  .cursor-frame i:nth-child(4) { right: 0; bottom: 0; border-width: 0 2px 2px 0; }
  .cursor-label {
    position: absolute; transform: translate(-50%, -50%); white-space: nowrap;
    font-weight: 800; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase;
    opacity: 0; transition: opacity .25s;
  }
  .cursor.is-media .cursor-cross { transform: scale(0) rotate(90deg); }
  .cursor.is-media .cursor-frame { transform: scale(1); opacity: 1; }
  .cursor.is-media .cursor-label { opacity: 1; }
}

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: calc(var(--frame) + 18px) calc(var(--frame) + var(--gutter) * .55);
  transition: background .4s, padding .4s;
}
.nav.is-scrolled {
  background: rgba(11, 11, 11, .82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding-top: 14px; padding-bottom: 14px;
}
.nav-logo img { width: clamp(140px, 13vw, 200px); height: auto; }
.nav-links { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 40px); font-weight: 700; font-size: .95rem; }
.nav-links a { text-decoration: none; position: relative; }
.nav-links a:not(.nav-cta)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; background: var(--red);
  transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease-cut);
}
.nav-links a:not(.nav-cta):hover::after { transform: scaleX(1); transform-origin: left; }
.nav-cta { background: var(--red); padding: .55rem 1rem; }
.nav-cta:hover { background: var(--ivory); color: var(--black); }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; position: relative; }
.nav-toggle span { position: absolute; left: 10px; right: 10px; height: 2px; background: var(--ivory); transition: transform .4s var(--ease-cut); }
.nav-toggle span:first-child { top: 17px; }
.nav-toggle span:last-child { top: 25px; }
.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); }

.menu {
  position: fixed; inset: 0; z-index: 99; background: var(--black);
  display: flex; flex-direction: column; justify-content: center; gap: .2em;
  padding: var(--gutter);
  font-family: var(--display); text-transform: uppercase; font-size: clamp(3rem, 14vw, 6rem); line-height: 1;
}
.menu[hidden] { display: none; }
.menu a { text-decoration: none; }
.menu a:last-child { color: var(--red); }

/* ---------- media e segnaposto ---------- */
.media { position: relative; overflow: hidden; background: #120d0d; }
.media video { width: 100%; height: 100%; object-fit: cover; }
.media.is-missing {
  background:
    radial-gradient(80% 70% at 30% 40%, rgba(227, 6, 19, .22), transparent 60%),
    radial-gradient(70% 80% at 80% 70%, rgba(54, 12, 13, .9), transparent 70%),
    #120d0d;
  background-size: 160% 160%;
  animation: drift 14s ease-in-out infinite alternate;
}
.media.is-missing video { opacity: 0 !important; }
.media.is-missing::after {
  content: "Clip da caricare: " attr(data-missing);
  position: absolute; right: 14px; top: 14px; z-index: 3;
  font-size: .72rem; font-weight: 700; color: var(--steel);
  background: rgba(11, 11, 11, .7); padding: .3rem .55rem;
}
@keyframes drift { from { background-position: 0% 0%; } to { background-position: 100% 100%; } }

/* ---------- hero: il mirino ---------- */
.hero {
  position: relative;
  height: 100vh; height: 100svh; min-height: 620px;
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; }
.hero-shade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(to top, rgba(11, 11, 11, .92) 0%, rgba(11, 11, 11, .35) 45%, rgba(11, 11, 11, .45) 100%),
    linear-gradient(to right, rgba(11, 11, 11, .55), transparent 60%);
}
.frame { position: absolute; inset: var(--frame); pointer-events: none; }
.rule { position: absolute; background: var(--red); }
.rule-t, .rule-b { left: -18px; right: -18px; height: 1px; }
.rule-t { top: 0; } .rule-b { bottom: 0; }
.rule-l, .rule-r { top: -18px; bottom: -18px; width: 1px; }
.rule-l { left: 0; } .rule-r { right: 0; }

.hud {
  position: absolute; z-index: 2;
  display: flex; align-items: center; gap: .6rem;
  font-size: .8rem; font-weight: 800; letter-spacing: .08em;
  font-variant-numeric: tabular-nums;
}
.hud-tc { right: calc(var(--frame) + 28px); top: calc(var(--frame) - .75em); background: var(--black); padding: 0 .6rem; color: var(--red); }
.hud-tc .tc { color: var(--ivory); }
.rec-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--red); animation: rec 1.2s steps(2) infinite; }
@keyframes rec { 50% { opacity: .15; } }

.hero-copy {
  position: absolute; z-index: 2;
  left: calc(var(--frame) + var(--gutter) * .55);
  right: calc(var(--frame) + var(--gutter) * .55);
  bottom: calc(var(--frame) + clamp(24px, 4vh, 56px));
}
.hero-title { font-size: clamp(3.6rem, 10.6vw, 12rem); max-width: 11ch; }
.hero-title .line { display: block; overflow: hidden; padding-right: .2em; margin-right: -.2em; }
.hero-title .line > span { display: inline-block; }
.hero-foot {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; flex-wrap: wrap;
  margin-top: clamp(20px, 3.4vh, 40px);
}
.lede { max-width: 34ch; margin: 0; color: var(--ivory); font-weight: 600; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: .9rem 1.4rem;
  font-weight: 800; font-size: .98rem; text-decoration: none; border: 0;
  transition: background .3s, color .3s, border-color .3s;
}
.btn-red { background: var(--red); color: var(--ivory); }
.btn-red:hover { background: var(--ivory); color: var(--black); }
.btn-line { border: 1px solid rgba(245, 239, 228, .5); background: rgba(11, 11, 11, .25); }
.btn-line:hover { border-color: var(--ivory); background: var(--ivory); color: var(--black); }

/* ---------- clienti ---------- */
.clients { padding: clamp(56px, 9vw, 120px) 0 clamp(40px, 6vw, 80px); border-bottom: 1px solid var(--line); }
.clients-intro { margin: 0 var(--gutter) 22px; color: var(--steel); font-weight: 700; }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span {
  display: inline-flex; align-items: center;
  font-family: var(--display); text-transform: uppercase; white-space: nowrap;
  font-size: clamp(2.4rem, 6.2vw, 6.4rem); line-height: 1.1;
  color: rgba(245, 239, 228, .28);
  transition: color .3s;
}
.marquee-track span:hover { color: var(--ivory); }
.marquee-track span::after {
  content: ""; width: .16em; height: .16em; background: var(--red); margin: 0 .6em;
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- servizi ---------- */
.services { padding: clamp(80px, 12vw, 180px) var(--gutter) clamp(60px, 8vw, 120px); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(32px, 5vw, 64px); }
.section-sub { margin: 0; max-width: 30ch; color: var(--ivory-dim); }

.panels { display: flex; height: min(78vh, 760px); min-height: 520px; border: 1px solid var(--line); }
.panel {
  position: relative; flex: 1; min-width: 0; overflow: hidden;
  border-right: 1px solid var(--line);
  transition: flex 1s var(--ease-cut);
  outline-offset: -4px;
}
.panel:last-child { border-right: 0; }
.panel.is-active { flex: 2.7; }
.panel-media { position: absolute; inset: 0; }
.panel-media video, .panel-media.is-missing { transition: opacity .8s, transform 1.4s var(--ease-land); }
.panel-media video { opacity: .0; transform: scale(1.08); }
.panel.is-active .panel-media video { opacity: 1; transform: scale(1); }
.panel-media.is-missing { opacity: .25; }
.panel.is-active .panel-media.is-missing { opacity: 1; }
.panel::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(11, 11, 11, .92), rgba(11, 11, 11, .1) 65%);
}
.panel-body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: clamp(20px, 2.4vw, 36px); }
.panel-title { font-size: clamp(3rem, 6.4vw, 7rem); transition: color .5s; }
.panel.is-active .panel-title { color: var(--ivory); }
.panel:not(.is-active) .panel-title { color: rgba(245, 239, 228, .55); }
.panel-more {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 28px;
  max-height: 0; opacity: 0; overflow: hidden;
  transition: max-height .8s var(--ease-cut), opacity .4s, margin .8s var(--ease-cut);
}
.panel.is-active .panel-more { max-height: 260px; opacity: 1; margin-top: 18px; transition-delay: .25s, .45s, .25s; }
.panel-more p { margin: 0; max-width: 38ch; font-weight: 600; }
.panel-more ul { list-style: none; margin: 0; padding: 0; color: var(--ivory-dim); font-weight: 600; }
.panel-more li { padding: .3rem 0; border-top: 1px solid var(--line); }

/* ---------- lavori ---------- */
.work { position: relative; border-top: 1px solid var(--line); }
.work-pin { height: 100vh; height: 100svh; padding-top: 72px; display: flex; flex-direction: column; justify-content: center; gap: clamp(20px, 3vh, 36px); overflow: hidden; }
.work-head { display: flex; align-items: flex-end; justify-content: space-between; padding: 0 var(--gutter); }
.work-count { margin: 0; font-family: var(--display); font-size: clamp(1.4rem, 2.2vw, 2rem); color: var(--steel); font-variant-numeric: tabular-nums; }
.work-count .work-i { color: var(--red); }
.work-track { display: flex; gap: clamp(16px, 2vw, 32px); height: min(62vh, 640px); padding: 0 var(--gutter); width: max-content; }

.card { position: relative; height: 100%; flex: none; display: block; text-decoration: none; background: none; border: 0; padding: 0; text-align: left; }
.card--orizzontale { aspect-ratio: 16 / 9; }
.card--verticale { aspect-ratio: 9 / 16; }
.card .media { position: absolute; inset: 0; }
.card .media video { transition: transform 1.2s var(--ease-land); }
.card:hover .media video { transform: scale(1.04); }
.card::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(11, 11, 11, .85), transparent 50%);
}
.card-corners i { position: absolute; z-index: 2; width: 18px; height: 18px; border: 0 solid var(--red); opacity: 0; transition: opacity .3s, transform .5s var(--ease-cut); }
.card-corners i:nth-child(1) { left: 12px; top: 12px; border-width: 2px 0 0 2px; transform: translate(10px, 10px); }
.card-corners i:nth-child(2) { right: 12px; top: 12px; border-width: 2px 2px 0 0; transform: translate(-10px, 10px); }
.card-corners i:nth-child(3) { left: 12px; bottom: 12px; border-width: 0 0 2px 2px; transform: translate(10px, -10px); }
.card-corners i:nth-child(4) { right: 12px; bottom: 12px; border-width: 0 2px 2px 0; transform: translate(-10px, -10px); }
.card:hover .card-corners i, .card:focus-visible .card-corners i { opacity: 1; transform: none; }
.card-info { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; padding: clamp(16px, 1.8vw, 28px); }
.card-client { display: block; font-family: var(--display); text-transform: uppercase; line-height: var(--lead); font-size: clamp(1.8rem, 2.8vw, 3rem); }
.card--verticale .card-client { font-size: clamp(1.5rem, 2vw, 2.2rem); }
.card-meta { display: block; margin-top: 8px; font-weight: 700; font-size: .9rem; color: var(--ivory-dim); }

/* ---------- manifesto ---------- */
.manifesto { padding: clamp(100px, 16vw, 240px) var(--gutter); }
.manifesto-text { font-size: clamp(2.6rem, 7vw, 7.6rem); max-width: 15ch; line-height: .95; }
.manifesto-text .w { display: inline-block; }

/* ---------- metodo ---------- */
.method { padding: 0 var(--gutter) clamp(100px, 14vw, 200px); }
.steps { list-style: none; margin: clamp(32px, 5vw, 64px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 48px); }
.steps li { border-top: 1px solid var(--red); padding-top: 22px; }
.step-n { font-family: var(--display); font-size: 1.6rem; color: var(--red); font-variant-numeric: tabular-nums; }
.steps h3 { margin: 14px 0 10px; font-size: clamp(1.4rem, 2vw, 1.9rem); font-weight: 800; line-height: 1.15; }
.steps p { margin: 0; max-width: 34ch; color: var(--ivory-dim); }

/* ---------- contatti ---------- */
.contact { padding: clamp(80px, 12vw, 180px) var(--gutter); border-top: 1px solid var(--line); }
.contact-title { font-size: clamp(3.4rem, 11vw, 12rem); }
.dash { display: block; width: clamp(80px, 9vw, 140px); height: 8px; background: var(--red); margin: clamp(28px, 4vw, 48px) 0; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px 48px; align-items: end; }
.contact-big {
  font-weight: 800; font-size: clamp(1.4rem, 4.2vw, 4rem); line-height: 1.1; text-decoration: none;
  background: linear-gradient(var(--red), var(--red)) left bottom / 0 3px no-repeat;
  transition: background-size .6s var(--ease-cut);
  overflow-wrap: anywhere;
}
.contact-big:hover { background-size: 100% 3px; }
.contact-links { display: flex; flex-direction: column; gap: 6px; font-weight: 700; }
.contact-links a { text-decoration: none; }
.contact-links a:hover { color: var(--red); }
.contact-area { margin: 0; color: var(--steel); font-weight: 600; grid-column: 1 / -1; }

/* ---------- footer ---------- */
.footer {
  display: flex; align-items: center; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap;
  padding: 28px var(--gutter) 36px; border-top: 1px solid var(--line);
  font-size: .82rem; color: var(--steel);
}
.footer img { width: 140px; height: auto; }
.footer p { margin: 0; }

/* ---------- lettore ---------- */
.player {
  position: fixed; inset: 0; z-index: 160;
  display: grid; place-items: center;
  background: rgba(11, 11, 11, .96);
}
.player[hidden] { display: none; }
.player-stage { width: min(92vw, 1600px); max-height: 86vh; display: grid; place-items: center; }
.player-stage video { max-height: 86vh; width: auto; max-width: 100%; background: #000; }
.player-missing { margin: 0; padding: 2rem; border: 1px solid var(--red); font-weight: 700; text-align: center; max-width: 46ch; }
.player-close {
  position: absolute; top: 18px; right: 18px;
  background: none; border: 1px solid rgba(245, 239, 228, .5); padding: .6rem 1rem; font-weight: 800;
}
.player-close:hover { background: var(--ivory); color: var(--black); }

/* ---------- hero: montaggio automatico ---------- */
.reel { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; }
.reel.is-on { opacity: 1; }
.wipe { position: absolute; inset: 0; z-index: 2; background: var(--red); transform: scaleX(0); transform-origin: left; }
.lock { position: absolute; left: 50%; top: 42%; width: min(30vw, 360px); aspect-ratio: 16 / 10; transform: translate(-50%, -50%); opacity: 0; }
.lock i { position: absolute; width: 22px; height: 22px; border: 0 solid var(--ivory); }
.lock i:nth-child(1) { left: 0; top: 0; border-width: 2px 0 0 2px; }
.lock i:nth-child(2) { right: 0; top: 0; border-width: 2px 2px 0 0; }
.lock i:nth-child(3) { left: 0; bottom: 0; border-width: 0 0 2px 2px; }
.lock i:nth-child(4) { right: 0; bottom: 0; border-width: 0 2px 2px 0; }
.hud-clip { left: calc(var(--frame) + 28px); top: calc(var(--frame) - .75em); background: var(--black); padding: 0 .6rem; }
.hud-clip .clip-n { color: var(--red); }
.timeline {
  position: absolute; z-index: 2; display: flex; gap: 3px;
  right: calc(var(--frame) + 28px); bottom: calc(var(--frame) - 3px);
  width: clamp(140px, 18vw, 280px); height: 6px; background: var(--black); padding: 0 4px;
}
.timeline i { flex: 1; background: rgba(245, 239, 228, .2); position: relative; overflow: hidden; }
.timeline i.done { background: rgba(245, 239, 228, .7); }
.timeline i b { position: absolute; inset: 0; background: var(--red); transform: scaleX(0); transform-origin: left; }

/* ---------- in evidenza ---------- */
.work-bar { margin: 0 var(--gutter); height: 2px; background: var(--line); }
.work-bar span { display: block; height: 100%; background: var(--red); transform: scaleX(0); transform-origin: left; }

/* ---------- archivio ---------- */
.archive { padding: clamp(80px, 11vw, 160px) var(--gutter) clamp(60px, 8vw, 120px); border-top: 1px solid var(--line); }
.archive-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; flex-wrap: wrap; margin-bottom: clamp(28px, 4vw, 52px); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border: 1px solid rgba(245, 239, 228, .3); background: none; padding: .55rem .95rem;
  font-weight: 700; font-size: .92rem; display: inline-flex; gap: .45rem; align-items: baseline;
  transition: background .3s, color .3s, border-color .3s;
}
.chip sup { font-size: .7rem; color: var(--red); font-variant-numeric: tabular-nums; top: 0; }
.chip:hover { border-color: var(--ivory); }
.chip[aria-pressed="true"] { background: var(--ivory); color: var(--black); border-color: var(--ivory); }
.grid { columns: 4 240px; column-gap: 14px; }
.tile {
  display: block; width: 100%; margin: 0 0 14px; padding: 0; border: 0; background: #141010;
  position: relative; overflow: hidden; break-inside: avoid; text-align: left;
}
.tile[hidden] { display: none; }
.tile img, .tile video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-land), opacity .4s; }
.tile video { opacity: 0; }
.tile.is-playing video { opacity: 1; }
.tile:hover img, .tile:hover video { transform: scale(1.04); }
.tile .veil { position: absolute; inset: 0; z-index: 2; background: var(--red); transform-origin: right; pointer-events: none; }
.tile.is-in .veil { transform: scaleX(0); transition: transform .9s var(--ease-cut); }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(11, 11, 11, .7), transparent 40%); opacity: 0; transition: opacity .4s; pointer-events: none; }
.tile:hover::after, .tile:focus-visible::after { opacity: 1; }
.tile-badge {
  position: absolute; z-index: 3; left: 10px; bottom: 10px; display: flex; gap: .5rem; align-items: center;
  font-size: .75rem; font-weight: 800; font-variant-numeric: tabular-nums;
  background: rgba(11, 11, 11, .72); padding: .25rem .5rem;
}
.tile-badge .dur { color: var(--red); }
.tile .card-corners i { border-color: var(--ivory); }
.tile:hover .card-corners i, .tile:focus-visible .card-corners i { opacity: 1; transform: none; }
.grid-empty { color: var(--steel); }

/* ---------- curva ---------- */
.curve-wrap { height: clamp(140px, 24vw, 360px); margin: clamp(-40px, -3vw, -20px) 0; pointer-events: none; overflow: visible; }
.curve { width: 100%; height: 100%; overflow: visible; }
.curve path { fill: none; stroke: var(--red); stroke-width: 3; vector-effect: non-scaling-stroke; stroke-linecap: square; }

/* ---------- servizi: slideshow foto ---------- */
.slideshow img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.08); transition: opacity 1.1s, transform 6s linear; }
.slideshow img.is-on { opacity: 1; transform: scale(1); }
.panel .slideshow { opacity: .3; transition: opacity .8s; }
.panel.is-active .slideshow { opacity: 1; }

/* ---------- visualizzatore ---------- */
.viewer { position: fixed; inset: 0; z-index: 160; background: rgba(11, 11, 11, .97); display: grid; grid-template-rows: auto 1fr; }
.viewer[hidden] { display: none; }
.viewer-top { display: flex; justify-content: space-between; align-items: center; padding: 16px clamp(16px, 3vw, 32px); }
.viewer-meta { margin: 0; display: flex; gap: .8rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.viewer-n { color: var(--red); }
.viewer-close { background: none; border: 1px solid rgba(245, 239, 228, .5); padding: .6rem 1rem; font-weight: 800; }
.viewer-close:hover { background: var(--ivory); color: var(--black); }
.viewer-stage { display: grid; place-items: center; padding: 0 clamp(56px, 8vw, 120px) clamp(16px, 3vh, 32px); min-height: 0; }
.viewer-stage video, .viewer-stage img { max-width: 100%; max-height: calc(100vh - 110px); max-height: calc(100svh - 110px); width: auto; height: auto; background: #000; }
.viewer-nav {
  position: absolute; top: 50%; transform: translateY(-50%); background: none; border: 0;
  font-family: var(--display); font-size: clamp(3rem, 6vw, 5rem); line-height: 1; padding: 10px 16px; color: var(--ivory);
}
.viewer-nav:hover { color: var(--red); }
.viewer-prev { left: 4px; } .viewer-next { right: 4px; }

.magnetic { will-change: transform; }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }

  .panels { flex-direction: column; height: auto; min-height: 0; border: 0; gap: 16px; }
  .panel { flex: none; border: 1px solid var(--line); min-height: 0; }
  .panel-media { position: relative; aspect-ratio: 4 / 5; }
  .panel-media video, .panel-media.is-missing { opacity: 1 !important; transform: none !important; }
  .panel::after { display: none; }
  .panel-body { position: relative; }
  .panel-title { color: var(--ivory) !important; }
  .panel-more { max-height: none !important; opacity: 1 !important; margin-top: 14px !important; grid-template-columns: 1fr; gap: 16px; }

  .work-pin { height: auto; padding: clamp(80px, 14vw, 120px) 0; }
  .work-bar { display: none; }
  .grid { columns: 2; column-gap: 8px; }
  .tile { margin-bottom: 8px; }
  .viewer-stage { padding: 0 0 12px; }
  .viewer-nav { top: auto; bottom: 6px; transform: none; font-size: 2.6rem; }
  .lock { width: 56vw; aspect-ratio: 9 / 13; }
  .timeline { width: 34vw; }
  .work-track {
    width: auto; height: 68vh; max-height: 560px;
    overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    padding-bottom: 4px;
  }
  .work-track::-webkit-scrollbar { display: none; }
  .card { scroll-snap-align: center; }
  .card--orizzontale { aspect-ratio: auto; width: 84vw; }

  .steps { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .hero-actions { width: 100%; }
  .hero-actions .btn { flex: 1 1 100%; }
  .hud-tc { font-size: .7rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .grain { display: none; }
}

/* =====================================================================
   LIQUID GLASS, INTRO E MOVIMENTO
   ===================================================================== */

/* ---------- vetro ---------- */
.glass {
  position: relative;
  isolation: isolate;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .04) 42%, rgba(255, 255, 255, .08));
  -webkit-backdrop-filter: blur(16px) saturate(190%) brightness(1.06);
  backdrop-filter: blur(16px) saturate(190%) brightness(1.06);
  border: 1px solid rgba(255, 255, 255, .2);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .45),
    inset 0 -1px 1px rgba(255, 255, 255, .12),
    inset 0 0 22px rgba(255, 255, 255, .07),
    0 12px 32px rgba(0, 0, 0, .35);
  border-radius: 999px;
}
/* riflesso speculare che segue il mouse (variabili --gx/--gy aggiornate in JS) */
.glass::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: -1;
  background: radial-gradient(120px 80px at var(--gx, 30%) var(--gy, 0%), rgba(255, 255, 255, .28), transparent 70%);
  mix-blend-mode: screen;
}
html.lg-refract .glass {
  -webkit-backdrop-filter: url(#lg-refract) blur(10px) saturate(190%) brightness(1.06);
  backdrop-filter: url(#lg-refract) blur(10px) saturate(190%) brightness(1.06);
}

/* ---------- intro ---------- */
.intro {
  position: fixed; inset: 0; z-index: 300; background: var(--black);
  display: grid; place-items: center;
  -webkit-mask-image: radial-gradient(circle at var(--ix, 50%) var(--iy, 50%), transparent var(--ir, 0px), #000 calc(var(--ir, 0px) + 1px));
  mask-image: radial-gradient(circle at var(--ix, 50%) var(--iy, 50%), transparent var(--ir, 0px), #000 calc(var(--ir, 0px) + 1px));
}
.intro-red { position: absolute; inset: 0; background: var(--red); clip-path: circle(0 at var(--ix, 50%) var(--iy, 50%)); }
.intro-logo { width: min(72vw, 820px); color: var(--ivory); position: relative; }
.intro-logo svg { width: 100%; height: auto; overflow: visible; display: block; }
.intro-count {
  position: absolute; right: var(--gutter); bottom: var(--gutter); margin: 0;
  font-family: var(--display); font-size: clamp(3rem, 9vw, 8rem); line-height: 1; color: rgba(245, 239, 228, .12);
  font-variant-numeric: tabular-nums; overflow: hidden;
}
html.intro-done .intro, html.no-intro .intro { display: none; }
html.intro-on, html.intro-on body { overflow: hidden; }

/* ---------- menu a pillola ---------- */
.nav { padding: calc(var(--frame) + 12px) calc(var(--frame) + var(--gutter) * .55); display: flex; justify-content: center; pointer-events: none; }
.nav.is-scrolled { background: none; backdrop-filter: none; -webkit-backdrop-filter: none; padding-top: 12px; padding-bottom: 0; }
.nav-pill {
  pointer-events: auto; position: relative;
  width: 100%; max-width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 6px 6px 6px 4px;
  border-radius: 999px; border: 1px solid transparent;
  transition: max-width .9s var(--ease-cut), padding .6s var(--ease-cut), background .5s, border-color .5s, box-shadow .5s;
}
.nav.is-scrolled .nav-pill {
  max-width: 820px; padding: 6px 6px 6px 22px;
  background: linear-gradient(135deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .04) 42%, rgba(255, 255, 255, .08));
  -webkit-backdrop-filter: blur(16px) saturate(190%) brightness(1.06);
  backdrop-filter: blur(16px) saturate(190%) brightness(1.06);
  border-color: rgba(255, 255, 255, .2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), inset 0 -1px 1px rgba(255, 255, 255, .12), 0 12px 32px rgba(0, 0, 0, .35);
}
html.lg-refract .nav.is-scrolled .nav-pill {
  -webkit-backdrop-filter: url(#lg-refract) blur(10px) saturate(190%) brightness(1.06);
  backdrop-filter: url(#lg-refract) blur(10px) saturate(190%) brightness(1.06);
}
.nav-logo { display: block; color: var(--ivory); }
.nav-logo svg { display: block; width: clamp(150px, 13vw, 200px); height: auto; transition: width .9s var(--ease-cut); }
.nav.is-scrolled .nav-logo svg { width: 132px; }
.nav-logo:hover .lg-dot { animation: rec 1s steps(2) infinite; }
.nav-cta { border-radius: 999px; padding: .65rem 1.15rem; }
.nav-progress {
  position: absolute; left: 22px; right: 22px; bottom: -1px; height: 2px; border-radius: 2px;
  background: var(--red); transform: scaleX(0); transform-origin: left; opacity: 0; transition: opacity .4s;
}
.nav.is-scrolled .nav-progress { opacity: 1; }
/* testo che rotola al passaggio del mouse */
.roll { overflow: hidden; display: inline-block; vertical-align: bottom; }
.roll span { display: inline-block; position: relative; transition: transform .55s var(--ease-cut); }
.roll span::after { content: attr(data-t); position: absolute; left: 0; top: 100%; color: var(--red); }
.roll:hover span { transform: translateY(-100%); }
.nav-links a.roll::after { display: none; }

/* ---------- cursore: lente di vetro ---------- */
@media (hover: hover) and (pointer: fine) {
  .cursor-lens {
    position: absolute; width: 104px; height: 104px; margin: -52px 0 0 -52px;
    transform: scale(.2); opacity: 0; transition: transform .5s var(--ease-cut), opacity .3s;
  }
  .cursor.is-media .cursor-lens { transform: scale(1); opacity: 1; }
  .cursor-label { z-index: 2; text-shadow: 0 1px 8px rgba(0, 0, 0, .5); }
}

/* ---------- pulsanti, pillole, HUD in vetro ---------- */
.btn { border-radius: 999px; }
.btn-line.glass { border: 1px solid rgba(255, 255, 255, .22); background: linear-gradient(135deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .04) 42%, rgba(255, 255, 255, .08)); }
.btn-line.glass:hover { background: var(--ivory); color: var(--black); }
.hud.glass { background: linear-gradient(135deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .04)); padding: .35rem .8rem; top: calc(var(--frame) - 1.1em); }
.timeline { border-radius: 6px; }
.filters.glass { padding: 6px; gap: 4px; }
.filters .chip { border: 0; border-radius: 999px; }
.filters .chip[aria-pressed="true"] { background: var(--ivory); color: var(--black); box-shadow: 0 4px 14px rgba(0, 0, 0, .3); }
.contact-links { flex-direction: row; flex-wrap: wrap; gap: 8px; }
.pill { padding: .7rem 1.2rem; text-decoration: none; font-weight: 700; display: inline-block; }
.contact-links a.pill:hover { color: var(--ivory); background: rgba(227, 6, 19, .55); }

/* ---------- visualizzatore in vetro ---------- */
.viewer { background: rgba(11, 11, 11, .88); -webkit-backdrop-filter: blur(24px) saturate(140%); backdrop-filter: blur(24px) saturate(140%); }
.viewer-meta.glass { padding: .55rem 1rem; }
.viewer-close.glass { border: 1px solid rgba(255, 255, 255, .22); }
.viewer-nav.glass { width: 64px; height: 64px; padding: 0; display: grid; place-items: center; font-size: 2.6rem; }
.viewer-stage video, .viewer-stage img { border-radius: 14px; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); }

/* ---------- titoli che entrano lettera per lettera ---------- */
.split .word { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .02em .04em; margin: 0 -.02em -.04em; }
.split .ch { display: inline-block; will-change: transform; }

/* ---------- scia di foto nel manifesto ---------- */
.manifesto { position: relative; overflow: hidden; }
.manifesto-text { position: relative; z-index: 2; pointer-events: none; }
.trail { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.trail img { position: absolute; width: clamp(140px, 14vw, 220px); aspect-ratio: 4 / 5; object-fit: cover; left: 0; top: 0; border-radius: 10px; box-shadow: 0 20px 50px rgba(0, 0, 0, .5); }
@media (hover: hover) and (pointer: fine) { .manifesto { cursor: none; } }

/* ---------- metodo: passa al sistema chiaro scorrendo ---------- */
.method { position: relative; padding-top: clamp(100px, 12vw, 180px); --mbg: var(--black); --mfg: var(--ivory); background: var(--mbg); color: var(--mfg); }
.method .steps p { color: inherit; opacity: .72; }

/* ---------- footer: logo gigante ---------- */
.footer-mark { padding: clamp(60px, 10vw, 140px) var(--gutter) 0; color: var(--ivory); overflow: hidden; }
.footer-mark svg { width: 100%; height: auto; display: block; overflow: visible; }
.footer { border-top: 0; }

/* ---------- parallasse hero ---------- */
.hero-media { inset: -24px; }

@media (max-width: 860px) {
  .nav.is-scrolled .nav-pill { padding: 6px 6px 6px 18px; }
  .nav-pill { gap: 12px; }
  .nav-toggle { border-radius: 999px; }
  .viewer-nav.glass { width: 52px; height: 52px; font-size: 2rem; bottom: 10px; }
  .viewer-prev { left: 12px; } .viewer-next { right: 12px; }
  .contact-links { gap: 6px; }
  .hud.glass { padding: .25rem .6rem; }
}
@media (prefers-reduced-motion: reduce) {
  .intro { display: none; }
}
@media (max-width: 860px) {
  .hud.glass { top: calc(var(--frame) + 74px); }
  .hud-tc { right: calc(var(--frame) + 10px); }
  .hud-clip { left: calc(var(--frame) + 10px); }
}
.hud.glass, .viewer-nav.glass, .cursor-lens.glass { position: absolute; }

/* ---------- HUD sulla linea in basso della cornice, lontano dal menu ---------- */
.hud-tc, .hud-clip { top: auto; bottom: calc(var(--frame) - .75em); background: var(--black); padding: 0 .6rem; }
.hud-tc { left: calc(var(--frame) + 28px); right: auto; }
.hud-clip { right: calc(var(--frame) + 28px + clamp(140px, 18vw, 280px) + 16px); left: auto; }
.hero-copy { bottom: calc(var(--frame) + clamp(36px, 5vh, 64px)); }
@media (max-width: 860px) {
  .hud-tc { top: auto; left: calc(var(--frame) + 14px); right: auto; }
  .hud-clip { display: none; }
  .timeline { right: calc(var(--frame) + 14px); }
}

/* ---------- archivio: vetro satinato rosso che si dissolve ---------- */
.tile .veil {
  transform: none;
  background: linear-gradient(125deg, rgba(227, 6, 19, .62), rgba(54, 12, 13, .5));
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-mask-image: linear-gradient(100deg, transparent 0%, transparent 33.3%, #000 66.6%, #000 100%);
  mask-image: linear-gradient(100deg, transparent 0%, transparent 33.3%, #000 66.6%, #000 100%);
  -webkit-mask-size: 300% 100%;
  mask-size: 300% 100%;
  -webkit-mask-position: 100% 0;
  mask-position: 100% 0;
}
.tile.is-in .veil {
  transform: none;
  -webkit-mask-position: 0% 0;
  mask-position: 0% 0;
  visibility: hidden;
  transition: -webkit-mask-position 1.5s var(--ease-cut), mask-position 1.5s var(--ease-cut), visibility 0s 1.6s;
}
.tile img { filter: blur(14px) saturate(1.2); transform: scale(1.06); transition: transform 1.6s var(--ease-land), filter 1.3s ease-out, opacity .4s; }
.tile.is-in img { filter: none; transform: scale(1); }
.tile.is-in:hover img { transform: scale(1.04); }
@media (prefers-reduced-motion: reduce) {
  .tile img { filter: none; transform: none; }
  .tile .veil { display: none; }
}
svg.defs { position: absolute; width: 0; height: 0; overflow: hidden; pointer-events: none; }

/* ---------- archivio compatto, si apre con "Vedi tutto" ---------- */
.grid-wrap { position: relative; max-height: clamp(560px, 105vh, 1050px); overflow: hidden; }
.grid-wrap.is-open, .grid-wrap.is-short { max-height: none; }
.grid-wrap::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 42%; pointer-events: none;
  background: linear-gradient(to bottom, rgba(11, 11, 11, 0), var(--black) 92%);
  transition: opacity .6s;
}
.grid-wrap.is-open::after, .grid-wrap.is-short::after { opacity: 0; }
.grid-more { display: flex; justify-content: center; margin-top: -48px; position: relative; z-index: 2; }
.grid-wrap.is-open + .grid-more { margin-top: 28px; }
.more-n { color: var(--red); margin-left: .25rem; font-variant-numeric: tabular-nums; }
.manifesto { cursor: auto !important; }
@media (max-width: 860px) { .grid-wrap { max-height: 900px; } }

/* ---------- sala regia: muro di monitor in 3D ---------- */
.wall-sec { padding: clamp(90px, 12vw, 170px) var(--gutter) clamp(70px, 9vw, 130px); border-top: 1px solid var(--line); overflow: hidden; }
.wall-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(36px, 5vw, 70px); }
.wall-stage { perspective: 1500px; perspective-origin: 50% 30%; }
.wall-tilt { transform-style: preserve-3d; }
.wall {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(10px, 1.2vw, 18px);
  transform-style: preserve-3d; will-change: transform;
}
.mon {
  position: relative; display: block; padding: 6px 6px 0; border: 0; text-align: left;
  border-radius: 14px;
  background: linear-gradient(160deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .03) 45%, rgba(255, 255, 255, .07));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), inset 0 0 0 1px rgba(255, 255, 255, .1), 0 18px 40px rgba(0, 0, 0, .5);
  transform: translateZ(0);
  transition: transform .7s var(--ease-land), opacity .5s, filter .5s, box-shadow .5s;
}
.mon-screen { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 9px; background: #050505; }
.mon-screen video, .mon-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* clip verticali: il fondo è la stessa clip sfocata, come nelle dirette */
.mon--v .mon-bg { filter: blur(18px) brightness(.55) saturate(1.3); transform: scale(1.2); }
.mon--v .mon-screen video { object-fit: contain; }
.mon:not(.mon--v) .mon-bg { display: none; }
/* righe di scansione e riflesso del vetro */
.mon-screen::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, .12), transparent 32%),
    repeating-linear-gradient(to bottom, rgba(0, 0, 0, .16) 0 1px, transparent 1px 3px);
  mix-blend-mode: overlay;
}
.mon-live {
  position: absolute; z-index: 2; left: 10px; top: 10px; padding: .2rem .55rem; border-radius: 4px;
  background: var(--red); color: var(--ivory); font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  opacity: 0; transform: translateY(-6px); transition: opacity .3s, transform .4s var(--ease-land);
}
.mon-bar { display: flex; align-items: center; gap: .55rem; padding: .55rem .35rem .6rem; font-size: .76rem; font-weight: 700; color: var(--ivory-dim); font-variant-numeric: tabular-nums; min-width: 0; }
.tally { width: 7px; height: 7px; border-radius: 50%; background: rgba(245, 239, 228, .25); flex: none; transition: background .3s, box-shadow .3s; }
.mon-cam { color: var(--steel); flex: none; }
.mon-title { color: var(--ivory); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; min-width: 0; }
.mon-dur { flex: none; }
.wall.has-live .mon:not(.is-live) { opacity: .4; filter: saturate(.3) brightness(.8); }
.mon.is-live { transform: translateZ(70px) scale(1.04); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), inset 0 0 0 1px rgba(227, 6, 19, .7), 0 0 0 1px rgba(227, 6, 19, .5), 0 30px 70px rgba(227, 6, 19, .25), 0 30px 60px rgba(0, 0, 0, .6); z-index: 2; }
.mon.is-live .tally { background: var(--red); box-shadow: 0 0 10px 2px rgba(227, 6, 19, .8); }
.mon.is-live .mon-live { opacity: 1; transform: none; }
html.lg-refract .mon { -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }

@media (max-width: 1100px) { .wall { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 860px) {
  .wall { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .mon { padding: 4px 4px 0; border-radius: 10px; }
  .mon-cam { display: none; }
  .mon-bar { font-size: .7rem; padding: .45rem .25rem .5rem; }
}
.hud-clock { color: var(--steel); margin-left: .4rem; padding-left: .7rem; border-left: 1px solid rgba(245, 239, 228, .25); }
@media (max-width: 520px) { .hud-clock { display: none; } }

/* ---------- monogramma 3D nel manifesto ---------- */
.mark3d { position: absolute; z-index: 1; right: -4vw; top: 50%; width: min(62vw, 820px); aspect-ratio: 1; transform: translateY(-50%); pointer-events: none; opacity: 0; transition: opacity 1.4s; }
.mark3d.is-ready { opacity: 1; }
.mark3d canvas { width: 100%; height: 100%; display: block; }
.manifesto { min-height: min(100vh, 900px); display: flex; align-items: center; }
@media (max-width: 860px) {
  .mark3d { right: 50%; transform: translate(50%, -50%); width: 120vw; opacity: 0; }
  .mark3d.is-ready { opacity: .55; }
}

/* ---------- modulo rapido ---------- */
.contact-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: start; gap: clamp(28px, 5vw, 80px); }
.quote {
  position: relative; padding: clamp(20px, 3vw, 36px); border-radius: 26px;
  background: linear-gradient(150deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .02) 45%, rgba(255, 255, 255, .05));
  -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), inset 0 0 0 1px rgba(255, 255, 255, .12), 0 30px 80px rgba(0, 0, 0, .45);
  transform-style: preserve-3d; will-change: transform;
}
.q-mode { display: inline-flex; padding: 5px; gap: 4px; margin-bottom: 26px; flex-wrap: wrap; border-radius: 999px; }
.q-mode label { position: relative; cursor: pointer; }
.q-mode input, .q-chip input { position: absolute; opacity: 0; pointer-events: none; }
.q-mode span { display: block; padding: .6rem 1.05rem; border-radius: 999px; font-weight: 700; font-size: .92rem; transition: background .3s, color .3s; }
.q-mode input:checked + span { background: var(--ivory); color: var(--black); }
.q-mode input:focus-visible + span, .q-chip input:focus-visible + span { outline: 2px solid var(--red); outline-offset: 2px; }
.q-services { border: 0; margin: 0 0 22px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.q-services legend { font-weight: 800; margin-bottom: 12px; padding: 0; }
.q-services legend span, .q-field i { color: var(--steel); font-weight: 600; font-style: normal; font-size: .85rem; margin-left: .35rem; }
.q-chip span {
  display: inline-block; padding: .6rem 1rem; border-radius: 999px; cursor: pointer; font-weight: 700; font-size: .92rem;
  border: 1px solid rgba(245, 239, 228, .28); transition: background .25s, border-color .25s, transform .25s var(--ease-land);
}
.q-chip span:hover { border-color: var(--ivory); }
.q-chip input:checked + span { background: var(--red); border-color: var(--red); transform: translateY(-2px); }
.q-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.q-field { display: grid; gap: 8px; margin-bottom: 16px; font-weight: 800; font-size: .95rem; }
.q-field input, .q-field textarea {
  font: inherit; font-weight: 600; color: var(--ivory); width: 100%;
  background: rgba(11, 11, 11, .45); border: 1px solid rgba(245, 239, 228, .2); border-radius: 14px; padding: .85rem 1rem;
  transition: border-color .25s, box-shadow .25s, background .25s;
}
.q-field textarea { resize: vertical; min-height: 92px; }
.q-field input:focus, .q-field textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 4px rgba(227, 6, 19, .2); background: rgba(11, 11, 11, .7); }
.q-field.is-bad input { border-color: var(--red); }
.q-err { color: #ff6b6b; font-style: normal; font-weight: 700; font-size: .82rem; }
.q-hp { position: absolute; left: -9999px; }
.q-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 6px; }
.q-send[disabled] { opacity: .6; pointer-events: none; }
.q-wa { font-weight: 700; color: var(--ivory-dim); text-underline-offset: 4px; }
.q-wa:hover { color: var(--ivory); }
.q-note { margin: 18px 0 0; font-size: .82rem; color: var(--steel); }
.q-status { margin: 8px 0 0; font-weight: 700; font-size: .9rem; min-height: 1em; }
.q-status.is-bad { color: #ff6b6b; }
.q-done { position: absolute; inset: 0; border-radius: inherit; display: grid; place-content: center; justify-items: center; text-align: center; gap: 10px; padding: 32px; background: rgba(11, 11, 11, .86); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.q-done svg { width: 76px; height: 76px; fill: none; stroke: var(--red); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.q-done .display { font-size: clamp(2.6rem, 6vw, 4.4rem); }
.q-done p { margin: 0; max-width: 34ch; }
.contact-side { display: grid; gap: 22px; padding-top: 8px; }
.contact-side .contact-big { font-size: clamp(1.3rem, 2.6vw, 2.4rem); }
@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; }
  .q-row { grid-template-columns: 1fr; gap: 0; }
  .q-mode { display: flex; }
  .q-mode label { flex: 1; text-align: center; }
  .q-mode span { padding: .6rem .7rem; font-size: .86rem; }
}
.mark3d canvas { -webkit-mask-image: radial-gradient(closest-side, #000 62%, transparent 100%); mask-image: radial-gradient(closest-side, #000 62%, transparent 100%); }
@media (max-width: 860px) {
  .mark3d { width: 100vw; top: 50%; }
  .mark3d.is-ready { opacity: .38; }
}

/* ---------- pagine dei servizi ---------- */
.sv-hero { padding: clamp(140px, 18vw, 220px) var(--gutter) clamp(50px, 6vw, 80px); }
.sv-crumbs { display: flex; gap: .6rem; font-size: .85rem; font-weight: 700; color: var(--steel); margin-bottom: 22px; }
.sv-crumbs a { text-decoration: none; } .sv-crumbs a:hover { color: var(--ivory); }
.sv-title { font-size: clamp(3.4rem, 11vw, 11rem); max-width: 12ch; }
.sv-lede { max-width: 46ch; font-size: clamp(1.05rem, 1.4vw, 1.3rem); font-weight: 600; margin: 26px 0 30px; }
.sv-work { padding: 0 var(--gutter) clamp(40px, 6vw, 80px); }
.sv-more { margin: 18px 0 0; font-weight: 700; }
.sv-more a { text-underline-offset: 4px; }
.sv-block { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: clamp(20px, 5vw, 80px); padding: clamp(50px, 7vw, 100px) var(--gutter); border-top: 1px solid var(--line); }
.sv-h2 { font-size: clamp(2.4rem, 5vw, 4.6rem); }
.sv-body p { margin: 0 0 20px; max-width: 60ch; font-size: 1.08rem; }
.sv-list { list-style: none; margin: 0; padding: 0; }
.sv-list li { padding: .7rem 0; border-top: 1px solid var(--line); font-weight: 700; display: flex; gap: .8rem; align-items: center; }
.sv-list li::before { content: ""; width: .5em; height: .5em; background: var(--red); flex: none; }
.sv-faq { border-radius: 18px; margin-bottom: 10px; padding: 0 1.2rem; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); }
.sv-faq summary { cursor: pointer; padding: 1.1rem 0; font-weight: 800; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.sv-faq summary::-webkit-details-marker { display: none; }
.sv-faq summary::after { content: "+"; color: var(--red); font-size: 1.4rem; line-height: 1; transition: transform .4s var(--ease-cut); }
.sv-faq[open] summary::after { transform: rotate(45deg); }
.sv-faq p { margin: 0 0 1.1rem; color: var(--ivory-dim); }
.sv-cta { padding: clamp(80px, 10vw, 150px) var(--gutter); border-top: 1px solid var(--line); }
.sv-cta .hero-actions { margin-top: 36px; }
.sv-others { margin-top: 56px; }
.sv-others p { color: var(--steel); font-weight: 700; margin: 0 0 12px; }
.footer-services { display: flex; flex-wrap: wrap; gap: 6px 18px; width: 100%; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.footer-services a { text-decoration: none; font-weight: 700; color: var(--ivory-dim); }
.footer-services a:hover, .footer-services a[aria-current] { color: var(--ivory); }
.panel-link { display: inline-block; margin-top: 14px; font-weight: 800; color: var(--ivory); text-underline-offset: 4px; }
.panel-link:hover { color: var(--red); }
@media (max-width: 860px) { .sv-block { grid-template-columns: 1fr; } }
.panel-links { margin: 12px 0 0; color: var(--steel); }
.panel-links .panel-link { margin-top: 0; }
.panel-more { max-height: 0; }
.panel.is-active .panel-more { max-height: 340px; }
.panel-links { grid-column: 1 / -1; display: flex; gap: 18px; flex-wrap: wrap; }

/* ---------- showreel: inquadratura piena o schermo diviso in tre ---------- */
.reel { display: flex; gap: 4px; background: var(--black); }
.reel video { position: static; flex: 1 1 0; min-width: 0; height: 100%; object-fit: cover; display: none; }
.reel[data-n="1"] video:first-child { display: block; }
.reel[data-n="3"] video { display: block; }
@media (max-width: 860px) {
  .q-mode { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
  .q-mode label { display: flex; }
  .q-mode span {
    flex: 1; display: flex; align-items: center; justify-content: center; text-align: center;
    min-height: 52px; padding: .5rem .6rem; font-size: .88rem; line-height: 1.25;
  }
}
