/* ═══════════════════════════════════════════════════
   MPVIDEO — style.css
   Struttura: Reset → Tokens → Layout → Hero Glitch
              → Ticker → Calm Dark → Responsive
═══════════════════════════════════════════════════ */

/* ── RESET & BASE ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --yellow:    #fdc110;
  --green:     #00E5A0;
  --red-rgb:   #ff003c;
  --bg:        #060608;
  --bg2:       #0c0c0f;
  --bg3:       #111116;
  --line:      #1a1a20;
  --text:      #f0f0ee;
  --muted:     #555560;
  --muted2:    #2a2a32;
  --font-main: 'Barlow', sans-serif;
  --font-cond: 'Barlow Condensed', sans-serif;
  --text-dim: rgba(240,240,238,0.80);
}

html { scroll-behavior: smooth; font-size: 16px; overflow-x: hidden; }

body {
  font-family: var(--font-main);
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  width: 100%;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ── UTILITIES ── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 32px; }
.section { padding: 80px 0; border-bottom: 1px solid var(--line); }

.sec-num {
  font-family: var(--font-cond);
  font-weight: 900;
  font-size: 11px;
  color: var(--yellow);
  letter-spacing: 4px;
  display: block;
}
.sec-tag {
  font-size: 10px;
  letter-spacing: 5px;
  color: white;
  display: block;
  margin-top: 6px;
}

.arrow-link {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 3px;
  color: var(--green);
  border-bottom: 1px solid var(--green);
  padding-bottom: 2px;
  margin-top: 24px;
  transition: opacity 0.2s;
}
.arrow-link:hover { opacity: 0.7; }
.arrow-link--muted { color: white; border-color: var(--muted); }


/* ══════════════════════════════════════════════════
   HERO — SHOCK SECTION
══════════════════════════════════════════════════ */

.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  max-height: 900px;
  overflow: hidden;
  background: var(--bg);
}

.hero__photo {
  position: absolute;
  inset: 0;
}
.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  filter: brightness(0.4) contrast(1.1) saturate(0.7);
}

.hero__scene-fallback {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 40% at 50% 45%, rgba(200,80,10,0.3) 0%, transparent 70%),
    radial-gradient(ellipse 80% 60% at 50% 100%, #0a0608 0%, transparent 60%),
    linear-gradient(180deg, #0e0c14 0%, #1a0e08 50%, #070608 100%);
  z-index: 0;
  display: none;
}

.hero__glitch-r,
.hero__glitch-g {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}
.hero__glitch-r {
  background: var(--red-rgb);
  mix-blend-mode: screen;
  opacity: 0;
  animation: glitch-r 3.5s infinite;
}
.hero__glitch-g {
  background: var(--green);
  mix-blend-mode: screen;
  opacity: 0;
  animation: glitch-g 3.5s infinite 0.12s;
}

.hero__slices {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
}
.slice {
  position: absolute;
  left: 0;
  right: 0;
  height: 6px;
  background: var(--bg);
  opacity: 0;
  animation: slice-jump 3.5s infinite;
}
.s1 { top: 15%; animation-delay: 0s;    animation-duration: 3.2s; }
.s2 { top: 31%; animation-delay: 0.35s; animation-duration: 2.8s; }
.s3 { top: 50%; animation-delay: 0.7s;  animation-duration: 3.6s; }
.s4 { top: 67%; animation-delay: 1.1s;  animation-duration: 2.5s; }
.s5 { top: 83%; animation-delay: 0.2s;  animation-duration: 3.9s; }

.hero__rgb {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
}
.rgb {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  opacity: 0;
}
.r1 { top: 22%;   background: var(--red-rgb); animation: rgb-flash 3.2s infinite 0.05s; }
.g1 { top: 22.4%; background: var(--green);   animation: rgb-flash 3.2s infinite 0.12s; }
.r2 { top: 51%;   background: var(--red-rgb); animation: rgb-flash 3.8s infinite 0.6s; }
.g2 { top: 51.4%; background: var(--green);   animation: rgb-flash 3.8s infinite 0.68s; }

.hero__scanlines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    rgba(0,0,0,0.15) 3px,
    rgba(0,0,0,0.15) 4px
  );
  pointer-events: none;
  z-index: 4;
}

.hero__vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 25%, rgba(6,6,8,0.9) 100%);
  pointer-events: none;
  z-index: 4;
}

/* ── Nav ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  padding: 24px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 20;
  transition: background 0.3s ease;
}
.nav__logo {
  font-family: var(--font-cond);
  font-weight: 900;
  font-size: 18px;
  letter-spacing: 6px;
  color: var(--yellow);
  animation: logo-flicker 5s infinite;
}
.nav__menu {
  display: flex;
  gap: 32px;
  align-items: center;
}
.nav__link {
  font-size: 11px;
  letter-spacing: 3px;
  color: rgba(240,240,238,0.7);
  text-transform: uppercase;
  transition: color 0.2s;
}
.nav__link:hover { color: var(--text); }
.nav__link--cta {
  color: var(--yellow);
  border: 1px solid rgba(237,234,0,0.35);
  padding: 8px 18px;
  transition: background 0.25s, color 0.25s;
}
.nav__link--cta:hover {
  background: var(--yellow);
  color: var(--bg);
}

/* Hamburger mobile */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 110;
}
.nav__toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.3s, opacity 0.3s;
}

/* ── Counter ── */
.hero__counter {
  position: absolute;
  top: 28px;
  right: 32px;
  text-align: right;
  z-index: 20;
  display: none;
}
.hero__counter-num {
  font-family: var(--font-cond);
  font-weight: 900;
  font-size: 12px;
  color: var(--yellow);
  letter-spacing: 3px;
  display: block;
  animation: counter-glitch 4s infinite;
}
.hero__counter-label {
  font-size: 9px;
  color: var(--muted2);
  letter-spacing: 4px;
  display: block;
  margin-top: 3px;
}

/* ── TAG videomaker ── */
.hero__tag {
  position: absolute;
  top: 90px;
  left: 32px;
  font-size: 10px;
  letter-spacing: 6px;
  color: rgba(240,240,238,0.7);
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 12;
  animation: tag-flicker 4s infinite;
}
.hero__dot {
  width: 6px; height: 6px;
  background: var(--yellow);
  border-radius: 50%;
  display: inline-block;
  animation: dot-pulse 2s infinite;
}

/* ── Outline ── */
.hero__outline {
  position: absolute;
  top: 115px;
  left: 0;
  right: 0;
  text-align: center;
  font-family: var(--font-cond);
  font-weight: 900;
  font-size: clamp(54px, 9vw, 102px);
  letter-spacing: -2px;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(240,240,238,0.45);
  text-transform: uppercase;
  z-index: 5;
  white-space: nowrap;
  animation: outline-flicker 5s infinite 1.2s;
}

/* ── FERMO ── */
.hero__fermo {
  position: absolute;
  bottom: 80px;
  left: 28px;
  z-index: 6;
  font-family: var(--font-cond);
  font-weight: 900;
  font-size: clamp(110px, 17vw, 160px);
  line-height: 1;
  letter-spacing: -4px;
  color: var(--text);
  text-transform: uppercase;
  white-space: nowrap;
  pointer-events: none;
}
.hero__fermo-ghost-r {
  position: absolute;
  bottom: 80px;
  left: 28px;
  z-index: 5;
  font-family: var(--font-cond);
  font-weight: 900;
  font-size: clamp(110px, 17vw, 160px);
  line-height: 1;
  letter-spacing: -4px;
  color: var(--red-rgb);
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  animation: ghost-r 3.5s infinite 0.08s;
}
.hero__fermo-ghost-g {
  position: absolute;
  bottom: 80px;
  left: 28px;
  z-index: 5;
  font-family: var(--font-cond);
  font-weight: 900;
  font-size: clamp(110px, 17vw, 160px);
  line-height: 1;
  letter-spacing: -4px;
  color: var(--green);
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  animation: ghost-g 3.5s infinite 0.16s;
}
.hero__unframe {
  position: absolute;
  bottom: 16px;
  left: 28px;
  z-index: 9;
  font-family: var(--font-cond);
  font-weight: 900;
  font-size: clamp(110px, 17vw, 160px);
  line-height: 1;
  letter-spacing: -4px;
  color: var(--yellow);
  text-transform: uppercase;
  white-space: nowrap;
  pointer-events: none;
}

/* ── Descrizione ── */
.hero__content {
  position: absolute;
  bottom: 44px;
  right: 32px;
  z-index: 10;
  text-align: right;
  max-width: 280px;
}
.hero__desc {
  font-size: 12px;
  color: rgba(240,240,238,0.7);
  letter-spacing: 1px;
  line-height: 1.65;
}

.hero__scroll {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  letter-spacing: 5px;
  color: var(--muted2);
  z-index: 10;
  animation: scroll-fade 3s infinite;
}


/* ══════════════════════════════════════════════════
   TICKER — FLUIDO, SENZA SCATTI
══════════════════════════════════════════════════ */

.ticker {
  background: var(--yellow);
  height: 40px;
  overflow: hidden;
  display: flex;
  align-items: center;
  position: relative;
}

.ticker__track {
  display: flex;
  align-items: center;
  white-space: nowrap;
  /* Animazione calcolata su JS in base alla larghezza reale */
  will-change: transform;
}

/* JS gestisce l'animazione per loop perfetto */

.ticker__track span {
  font-family: var(--font-cond);
  font-weight: 900;
  font-size: 13px;
  letter-spacing: 4px;
  color: var(--bg);
  padding: 0 20px;
  text-transform: uppercase;
  flex-shrink: 0;
}
.ticker__dot {
  color: var(--bg) !important;
  opacity: 0.4;
  padding: 0 4px !important;
  flex-shrink: 0;
}


/* ══════════════════════════════════════════════════
   CHI SONO — CARD
══════════════════════════════════════════════════ */

.bio__section-title {
  font-family: var(--font-cond);
  font-weight: 900;
  font-size: clamp(28px, 4vw, 42px);
  color: var(--yellow);
  letter-spacing: -1px;
  line-height: 1.05;
  margin-top: 8px;
  text-transform: uppercase;
}

.chisono-card {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 32px;
  align-items: start;
  background: var(--bg2);
  border: 1px solid var(--line);
  padding: 32px;
  position: relative;
  overflow: hidden;
}

.chisono-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px;
  height: 100%;
  background: var(--yellow);
}

.chisono-card__photo {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3/4;
  flex-shrink: 0;
}

.chisono-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: brightness(0.75) grayscale(0.3);
  transition: filter 0.5s ease, transform 0.5s ease;
  display: block;
}

.chisono-card:hover .chisono-card__img {
  filter: brightness(0.9) grayscale(0);
  transform: scale(1.03);
}

.chisono-card__photo-glitch-r,
.chisono-card__photo-glitch-g {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  mix-blend-mode: screen;
}
.chisono-card__photo-glitch-r { background: var(--red-rgb); }
.chisono-card__photo-glitch-g { background: var(--green); }

.chisono-card:hover .chisono-card__photo-glitch-r {
  animation: scard-glitch-r 0.5s ease forwards;
}
.chisono-card:hover .chisono-card__photo-glitch-g {
  animation: scard-glitch-g 0.5s ease forwards 0.05s;
}

.chisono-card__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}


/* ══════════════════════════════════════════════════
   BIO
══════════════════════════════════════════════════ */

.bio__grid {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 48px;
  align-items: start;
}
.bio__label { padding-top: 6px; }
.bio__h2 {
  font-family: var(--font-cond);
  font-weight: 900;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.05;
  letter-spacing: -1px;
  color: var(--text);
  margin-bottom: 20px;
}
.bio__p {
  font-size: 15px;
  color: rgba(240,240,238,0.65);
  line-height: 1.85;
  max-width: 560px;
}

/* ── STATS ── */
.stats {
  border-bottom: 1px solid var(--line);
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}
.stats__item {
  padding: 40px 32px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.stats__item:last-child { border-right: none; }
.stats__n {
  font-family: var(--font-cond);
  font-weight: 900;
  font-size: 56px;
  color: var(--yellow);
  letter-spacing: -2px;
  line-height: 1;
}
.stats__n span {
  font-size: 32px;
  color: rgba(237,234,0,0.5);
}
.stats__l {
  font-size: 10px;
  letter-spacing: 4px;
  color: white;
  text-transform: uppercase;
}


/* ══════════════════════════════════════════════════
   SUL SET — MOSAICO CINEMATOGRAFICO
══════════════════════════════════════════════════ */

.sulset__header {
  display: flex;
  align-items: baseline;
  gap: 20px;
  margin-bottom: 48px;
}
.sulset__h2 {
  font-family: var(--font-cond);
  font-weight: 900;
  font-size: 32px;
  color: var(--text);
  letter-spacing: -1px;
}

/* DESKTOP */
.sulset__mosaic {
  display: grid;
  grid-template-columns: 3fr 2fr 2fr;
  gap: 6px;
  padding: 0 6px;
  align-items: start;
}

.scard {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.scard.is-visible { opacity: 1; transform: translateY(0); }
.scard:nth-child(1).is-visible { transition-delay: 0s; }
.scard:nth-child(2).is-visible { transition-delay: 0.1s; }
.scard:nth-child(3).is-visible { transition-delay: 0.2s; }
.scard:nth-child(4).is-visible { transition-delay: 0.3s; }
.scard:nth-child(5).is-visible { transition-delay: 0.4s; }
.scard:nth-child(6).is-visible { transition-delay: 0.5s; }

.scard:nth-child(1) { grid-column: 1; grid-row: 1 / 3; aspect-ratio: 2/3; }
.scard:nth-child(2) { grid-column: 2; grid-row: 1;     aspect-ratio: 3/4; margin-top: 40px; }
.scard:nth-child(3) { grid-column: 3; grid-row: 1;     aspect-ratio: 3/4; margin-top: -20px; }
.scard:nth-child(4) { grid-column: 2 / 4; grid-row: 2; aspect-ratio: 16/9; margin-top: -30px; }
.scard:nth-child(5) { grid-column: 1;     grid-row: 3; aspect-ratio: 3/4; margin-top: -40px; }
.scard:nth-child(6) { grid-column: 2 / 4; grid-row: 3; aspect-ratio: 4/3; margin-top: 20px; }

.scard__inner {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.scard__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.65) grayscale(0.8);
  transition: filter 0.5s ease, transform 0.6s ease;
  transform: scale(1);
  display: block;
}

.scard__glitch-r,
.scard__glitch-g {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  mix-blend-mode: screen;
}
.scard__glitch-r { background: var(--red-rgb); }
.scard__glitch-g { background: var(--green); }

.scard__num {
  position: absolute;
  bottom: 10px;
  left: 12px;
  font-family: var(--font-cond);
  font-weight: 900;
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--yellow);
  opacity: 0.7;
  z-index: 4;
  transition: opacity 0.3s;
}

.scard:hover .scard__img { filter: brightness(0.9) grayscale(0); transform: scale(1.04); }
.scard:hover .scard__num { opacity: 1; }
.scard:hover .scard__glitch-r { animation: scard-glitch-r 0.5s ease forwards; }
.scard:hover .scard__glitch-g { animation: scard-glitch-g 0.5s ease forwards 0.05s; }
.sulset__mosaic:has(.scard:hover) .scard:not(:hover) .scard__img { filter: brightness(0.35) grayscale(1); }


/* ══════════════════════════════════════════════════
   ATTREZZATURA — CARD ORIZZONTALE
══════════════════════════════════════════════════ */

.attrezzatura { background: var(--bg2); }

.attr-card {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 48px;
  align-items: start;
  background: var(--bg3);
  border: 1px solid var(--line);
  border-left: 3px solid var(--green);
  padding: 40px;
  position: relative;
}

.attr-card__title {
  font-family: var(--font-cond);
  font-weight: 900;
  font-size: clamp(28px, 3.5vw, 40px);
  color: #fdc110;
  letter-spacing: -1px;
  text-transform: uppercase;
  line-height: 1;
  margin-top: 8px;
  margin-bottom: 12px;
}

.attr-card__sub {
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--muted);
  text-transform: uppercase;
}

.attr-card__p {
  font-size: 14px;
  color: rgba(240,240,238,0.65);
  line-height: 1.85;
  margin-bottom: 28px;
}

.attr-gear {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 32px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}

.attr-gear__item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.attr-gear__cat {
  font-family: var(--font-cond);
  font-weight: 900;
  font-size: 10px;
  letter-spacing: 4px;
  color: var(--yellow);
  text-transform: uppercase;
}

.attr-gear__name {
  font-size: 13px;
  color: var(--text-dim);
  letter-spacing: 0.5px;
}


/* ══════════════════════════════════════════════════
   PORTFOLIO LIST
══════════════════════════════════════════════════ */

.port__item { border-bottom: 1px solid var(--line); }
.port__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  transition: background 0.2s;
}
.port__link:hover { background: rgba(255,255,255,0.02); }
.port__link:hover .port__arrow { color: var(--yellow); transform: translateX(4px); }
.port__link:hover .port__num { color: var(--yellow); }

.port__left {
  display: flex;
  align-items: center;
  gap: 20px;
}
.port__num {
  font-family: var(--font-cond);
  font-weight: 900;
  font-size: 13px;
  color: var(--muted2);
  letter-spacing: 2px;
  min-width: 28px;
  transition: color 0.2s;
}
.port__thumb {
  width: 80px;
  height: 52px;
  background: var(--bg3);
  border: 1px solid var(--line);
  overflow: hidden;
  flex-shrink: 0;
}
.port__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.7) grayscale(0.3);
  transition: filter 0.3s;
}
.port__link:hover .port__thumb img {
  filter: brightness(0.9) grayscale(0);
}
.port__info { display: flex; flex-direction: column; gap: 4px; }
.port__name {
  font-size: 15px;
  color: var(--text);
  font-weight: 400;
}
.port__year {
  font-size: 11px;
  color: rgba(240,240,238,0.65);
  letter-spacing: 2px;
}
.port__right {
  display: flex;
  align-items: center;
  gap: 20px;
}
.port__cat {
  font-size: 10px;
  letter-spacing: 3px;
  color: rgba(240,240,238,0.80);
}
.port__arrow {
  font-size: 16px;
  color: var(--muted2);
  transition: color 0.2s, transform 0.2s;
}


/* ── SERVIZI ── */
.services__header {
  display: flex;
  align-items: baseline;
  gap: 20px;
  margin-bottom: 40px;
}
.services__h2 {
  font-family: var(--font-cond);
  font-weight: 900;
  font-size: 32px;
  color: var(--text);
  letter-spacing: -1px;
}
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}
.srv-card {
  background: var(--bg2);
  padding: 32px 28px;
  border: 1px solid var(--line);
  transition: border-color 0.25s;
}
.srv-card:hover { border-color: rgba(237,234,0,0.5); }
.srv-card__title {
  font-family: var(--font-cond);
  font-weight: 900;
  font-size: 22px;
  color: var(--yellow);
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}
.srv-card__p {
  font-size: 14px;
  color: rgba(240,240,238,0.65);
  line-height: 1.8;
}

/* ── CONTATTO ── */
.contact {
  background: var(--yellow);
  padding: 72px 0;
}
.contact__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 48px;
}
.contact__h2 {
  font-family: var(--font-cond);
  font-weight: 900;
  font-size: clamp(36px, 5vw, 56px);
  color: var(--bg);
  line-height: 1;
  letter-spacing: -1px;
}
.contact__sub {
  font-size: 13px;
  color: rgba(6,6,8,0.75);
  letter-spacing: 1px;
  margin-top: 12px;
  line-height: 1.6;
}
.contact__email {
  display: block;
  font-family: var(--font-cond);
  font-weight: 900;
  font-size: clamp(16px, 2vw, 22px);
  color: var(--bg);
  letter-spacing: -0.5px;
  margin-top: 20px;
  margin-bottom: 20px;
  border-bottom: 1.5px solid rgba(6,6,8,0.2);
  padding-bottom: 4px;
  transition: border-color 0.2s;
  display: inline-block;
}
.contact__email:hover { border-color: var(--bg); }
.contact__socials { display: flex; gap: 20px; margin-top: 4px; }
.contact__soc {
  font-size: 11px;
  letter-spacing: 3px;
  color: rgba(6,6,8,0.75);
  text-transform: uppercase;
  transition: color 0.2s;
}
.contact__soc:hover { color: var(--bg); }

/* Form */
.contact__form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.cf-field input,
.cf-field select,
.cf-field textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(6,6,8,0.25);
  color: var(--bg);
  font-family: 'Barlow', sans-serif;
  font-size: 0.95rem;
  font-weight: 400;
  padding: 10px 0;
  outline: none;
  transition: border-color 0.3s;
  box-sizing: border-box;
}

.cf-field select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23060608' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 4px center;
  background-color: transparent;
  padding-right: 24px;
}

.cf-field select option {
  background: #f5f200;
  color: var(--bg);
}

.cf-field input::placeholder,
.cf-field textarea::placeholder {
  color: rgba(6,6,8,0.4);
  font-weight: 300;
}

.cf-field input:focus,
.cf-field select:focus,
.cf-field textarea:focus {
  border-bottom-color: var(--bg);
}

.cf-field textarea { resize: none; }

.cf-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  background: var(--bg);
  border: 1px solid var(--bg);
  color: var(--yellow);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 12px 24px;
  cursor: pointer;
  transition: background 0.3s, color 0.3s;
  align-self: flex-start;
}

.cf-btn:hover {
  background: transparent;
  color: var(--bg);
}

.cf-btn__arrow { transition: transform 0.3s; }
.cf-btn:hover .cf-btn__arrow { transform: translateX(4px); }

.cf-note {
  font-family: 'Barlow', sans-serif;
  font-size: 0.75rem;
  color: rgba(6,6,8,0.6);
  margin: 0;
}


/* ── FOOTER ── */
.footer {
  background: #030304;
  border-top: 1px solid var(--line);
  padding: 28px 0;
}
.footer__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.footer__logo-wrap { display: flex; align-items: center; }
.footer__copy {
  font-size: 11px;
  color: rgba(240,240,238,0.45);
  letter-spacing: 1px;
}
.footer__links { display: flex; gap: 24px; }
.footer__link {
  font-size: 11px;
  color: rgba(240,240,238,0.45);
  letter-spacing: 1px;
  transition: color 0.2s;
}
.footer__link:hover { color: rgba(240,240,238,0.85); }


/* ══════════════════════════════════════════════════
   KEYFRAME ANIMATIONS — GLITCH ENGINE
══════════════════════════════════════════════════ */

@keyframes glitch-r {
  0%, 88%, 100% { opacity: 0; transform: translate(0, 0); }
  89%  { opacity: 0.15; transform: translate(-5px, 1px); }
  91%  { opacity: 0.08; transform: translate(6px, -2px); }
  93%  { opacity: 0; }
  95%  { opacity: 0.1; transform: translate(-3px, 0); }
  97%  { opacity: 0; }
}
@keyframes glitch-g {
  0%, 88%, 100% { opacity: 0; transform: translate(0, 0); }
  89%  { opacity: 0.1; transform: translate(5px, -1px); }
  91%  { opacity: 0.06; transform: translate(-4px, 2px); }
  93%  { opacity: 0; }
  95%  { opacity: 0.08; transform: translate(3px, -1px); }
  97%  { opacity: 0; }
}

@keyframes ghost-r {
  0%, 87%, 100% { opacity: 0; transform: translate(0, 0); }
  88%  { opacity: 0.55; transform: translate(-6px, 2px); }
  90%  { opacity: 0.3;  transform: translate(7px, -1px); }
  92%  { opacity: 0; }
  94%  { opacity: 0.2;  transform: translate(-3px, 1px); }
  96%  { opacity: 0; }
}
@keyframes ghost-g {
  0%, 87%, 100% { opacity: 0; transform: translate(0, 0); }
  88%  { opacity: 0.45; transform: translate(6px, -2px); }
  90%  { opacity: 0.25; transform: translate(-5px, 1px); }
  92%  { opacity: 0; }
  95%  { opacity: 0.15; transform: translate(3px, -1px); }
  97%  { opacity: 0; }
}

@keyframes slice-jump {
  0%, 84%, 100% { opacity: 0; transform: translateX(0); height: 6px; }
  85%  { opacity: 1; transform: translateX(-14px); height: 8px; }
  87%  { opacity: 0.8; transform: translateX(20px); height: 4px; }
  89%  { opacity: 1; transform: translateX(-9px); height: 10px; }
  91%  { opacity: 0; transform: translateX(0); }
}

@keyframes rgb-flash {
  0%, 86%, 100% { opacity: 0; }
  87%  { opacity: 0.8; }
  89%  { opacity: 0.4; }
  91%  { opacity: 0.9; }
  93%  { opacity: 0; }
}

@keyframes logo-flicker {
  0%, 94%, 100% { opacity: 1; }
  95%  { opacity: 0.2; }
  96%  { opacity: 1; }
  97%  { opacity: 0.5; }
  98%  { opacity: 1; }
}
@keyframes tag-flicker {
  0%, 92%, 100% { opacity: 1; }
  93%  { opacity: 0.3; }
  94%  { opacity: 1; }
  96%  { opacity: 0.6; }
}
@keyframes outline-flicker {
  0%, 89%, 100% { opacity: 1; }
  90%  { opacity: 0.1; }
  91%  { opacity: 0.7; }
  92%  { opacity: 0.2; }
  93%  { opacity: 1; }
}
@keyframes counter-glitch {
  0%, 91%, 100% { transform: translate(0); color: var(--yellow); }
  92%  { transform: translate(-2px, 1px); color: var(--red-rgb); }
  93%  { transform: translate(2px, -1px); color: var(--green); }
  94%  { transform: translate(0); color: var(--yellow); }
}
@keyframes dot-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%  { transform: scale(1.4); opacity: 0.6; }
}
@keyframes scroll-fade {
  0%, 100% { opacity: 0.3; }
  50%  { opacity: 0.7; }
}

@keyframes scard-glitch-r {
  0%   { opacity: 0;    transform: translate(0, 0); }
  15%  { opacity: 0.18; transform: translate(-5px, 1px); }
  30%  { opacity: 0;    transform: translate(4px, -1px); }
  50%  { opacity: 0.12; transform: translate(-3px, 0); }
  100% { opacity: 0;    transform: translate(0, 0); }
}
@keyframes scard-glitch-g {
  0%   { opacity: 0;    transform: translate(0, 0); }
  15%  { opacity: 0.14; transform: translate(5px, -1px); }
  30%  { opacity: 0;    transform: translate(-3px, 1px); }
  50%  { opacity: 0.1;  transform: translate(2px, 0); }
  100% { opacity: 0;    transform: translate(0, 0); }
}


/* ══════════════════════════════════════════════════
   PAGINE INTERNE — header comune
══════════════════════════════════════════════════ */

.page-header {
  padding: 120px 0 60px;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}

.page-header__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
}

.page-header__num {
  font-family: var(--font-cond);
  font-weight: 900;
  font-size: 11px;
  color: var(--yellow);
  letter-spacing: 6px;
  text-transform: uppercase;
  display: block;
  margin-bottom: 16px;
}

.page-header__h1 {
  font-family: var(--font-cond);
  font-weight: 900;
  font-size: clamp(48px, 8vw, 96px);
  color: var(--text);
  letter-spacing: -2px;
  line-height: 0.95;
  text-transform: uppercase;
}

.page-header__h1 em {
  color: var(--yellow);
  font-style: normal;
}

.page-header__sub {
  font-size: 13px;
  color: rgba(240,240,238,0.5);
  letter-spacing: 2px;
  margin-top: 20px;
  text-transform: uppercase;
}


/* ══════════════════════════════════════════════════
   LAVORI PAGE — video grid
══════════════════════════════════════════════════ */

.lavori-section {
  padding: 64px 0 80px;
}

.lavori-filter {
  display: flex;
  gap: 4px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.lavori-filter__btn {
  font-family: var(--font-cond);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  padding: 8px 16px;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s;
}

.lavori-filter__btn:hover,
.lavori-filter__btn.is-active {
  border-color: var(--yellow);
  color: var(--yellow);
}

.lavori-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
}

.video-card {
  position: relative;
  background: var(--bg2);
  border: 1px solid var(--line);
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.25s;
}

.video-card:hover { border-color: rgba(237,234,0,0.4); }

.video-card--featured {
  grid-column: 1 / -1;
}

.video-card__thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--bg3);
}

.video-card--featured .video-card__thumb {
  aspect-ratio: 21/9;
}

.video-card__thumb iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  pointer-events: none;
}

.video-card__overlay {
  position: absolute;
  inset: 0;
  background: rgba(6,6,8,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 0.3s;
}

.video-card.is-playing .video-card__overlay { opacity: 0; pointer-events: none; }

.video-card__play {
  width: 56px;
  height: 56px;
  border: 1.5px solid rgba(237,234,0,0.7);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s;
  background: rgba(6,6,8,0.5);
}

.video-card__play svg {
  width: 20px;
  height: 20px;
  fill: var(--yellow);
  margin-left: 3px;
}

.video-card:hover .video-card__play {
  background: var(--yellow);
  transform: scale(1.08);
}

.video-card:hover .video-card__play svg { fill: var(--bg); }

.video-card__info {
  padding: 20px 24px 24px;
}

.video-card__cat {
  font-family: var(--font-cond);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 4px;
  color: var(--yellow);
  text-transform: uppercase;
  display: block;
  margin-bottom: 6px;
}

.video-card__title {
  font-family: var(--font-cond);
  font-weight: 900;
  font-size: 22px;
  color: var(--text);
  letter-spacing: -0.5px;
  line-height: 1.1;
  margin-bottom: 8px;
}

.video-card__desc {
  font-size: 13px;
  color: rgba(240,240,238,0.55);
  line-height: 1.65;
}

.video-card__year {
  font-family: var(--font-cond);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 2px;
  margin-top: 12px;
  display: block;
}

/* Placeholder per video mancanti */
.video-card__placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--bg3);
  color: var(--muted2);
}

.video-card__placeholder-icon {
  font-size: 32px;
  opacity: 0.4;
}

.video-card__placeholder-text {
  font-family: var(--font-cond);
  font-size: 11px;
  letter-spacing: 4px;
  text-transform: uppercase;
  opacity: 0.4;
}


/* ══════════════════════════════════════════════════
   PRIVACY PAGE
══════════════════════════════════════════════════ */

.privacy-content {
  padding: 64px 0 100px;
}

.privacy-content__inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 32px;
}

.privacy-content h2 {
  font-family: var(--font-cond);
  font-weight: 900;
  font-size: 22px;
  color: var(--yellow);
  letter-spacing: -0.5px;
  text-transform: uppercase;
  margin-top: 48px;
  margin-bottom: 16px;
}

.privacy-content h2:first-child { margin-top: 0; }

.privacy-content p,
.privacy-content li {
  font-size: 14px;
  color: rgba(240,240,238,0.65);
  line-height: 1.85;
  margin-bottom: 12px;
}

.privacy-content ul {
  list-style: none;
  padding-left: 16px;
}

.privacy-content ul li::before {
  content: '—';
  color: var(--yellow);
  margin-right: 8px;
  font-family: var(--font-cond);
}

.privacy-content a {
  color: var(--green);
  border-bottom: 1px solid rgba(0,229,160,0.3);
  transition: border-color 0.2s;
}

.privacy-content a:hover { border-color: var(--green); }

.privacy-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-cond);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 48px;
  transition: color 0.2s;
}

.privacy-back:hover { color: var(--text); }


/* ══════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════ */

/* ── Tablet 768px ── */
@media (max-width: 768px) {
  .container { padding: 0 20px; }
  .section { padding: 56px 0; }

  /* Nav mobile */
  .nav { padding: 20px; }
  .nav__menu {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(6,6,8,0.97);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 40px;
    z-index: 100;
  }
  .nav__menu.is-open { display: flex; }
  .nav__link { font-size: 14px; letter-spacing: 4px; }
  .nav__toggle { display: flex; }
  .nav__toggle.is-open span:nth-child(1) { transform: rotate(45deg) translate(4.5px, 4.5px); }
  .nav__toggle.is-open span:nth-child(2) { opacity: 0; }
  .nav__toggle.is-open span:nth-child(3) { transform: rotate(-45deg) translate(4.5px, -4.5px); }

  .hero { max-height: 700px; }
  .hero__outline { font-size: 30px; top: 100px; }
  .hero__fermo         { font-size: clamp(80px, 14vw, 110px); bottom: 60px; letter-spacing: -2px; }
  .hero__fermo-ghost-r { font-size: clamp(80px, 14vw, 110px); bottom: 60px; letter-spacing: -2px; }
  .hero__fermo-ghost-g { font-size: clamp(80px, 14vw, 110px); bottom: 60px; letter-spacing: -2px; }
  .hero__unframe       { font-size: clamp(80px, 14vw, 110px); bottom: 0px;  letter-spacing: -2px; }
  .hero__content { right: 20px; bottom: 36px; }
  .hero__desc { font-size: 12px; }

  /* Bio */
  .bio__grid { grid-template-columns: 1fr; gap: 24px; }

  /* Chi sono card */
  .chisono-card {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .chisono-card__photo {
    aspect-ratio: 16/9;
    max-height: 260px;
  }
  .chisono-card__img {
    object-position: center 20%;
  }

  /* Attrezzatura */
  .attr-card {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 28px 24px;
  }
  .attr-gear { grid-template-columns: 1fr; gap: 12px; }

  /* Sul set mobile */
  .sulset__mosaic {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 0 8px;
  }
  .scard {
    width: 100% !important;
    aspect-ratio: 16/9 !important;
    margin-top: 0 !important;
    grid-column: auto !important;
    grid-row: auto !important;
  }

  /* Stats */
  .stats__grid { grid-template-columns: 1fr 1fr; }
  .stats__item:nth-child(3) { grid-column: 1 / -1; border-right: none; }

  /* Servizi */
  .services__grid { grid-template-columns: 1fr; }

  /* Contatto */
  .contact__inner { flex-direction: column; align-items: flex-start; gap: 32px; }
  .contact__right { width: 100%; }

  /* Portfolio */
  .port__left { gap: 12px; }
  .port__thumb { width: 60px; height: 40px; }
  .port__name { font-size: 14px; }

  /* Footer */
  .footer__inner { flex-wrap: wrap; gap: 12px; }
  .footer__copy { order: 3; width: 100%; }

  /* Lavori grid */
  .lavori-grid { grid-template-columns: 1fr; }
  .video-card--featured .video-card__thumb { aspect-ratio: 16/9; }

  /* Privacy */
  .privacy-content__inner { padding: 0 20px; }

  /* Page header */
  .page-header { padding: 100px 0 48px; }
  .page-header__inner { padding: 0 20px; }
}

/* ── Mobile 480px ── */
@media (max-width: 480px) {
  .hero {
    min-height: 88svh;
    max-height: 88svh;
  }

  .hero__outline {
    font-size: 36px;
    top: 130px;
    letter-spacing: 0px;
    white-space: normal;
    text-align: center;
    padding: 0 16px;
  }

  .hero__tag { top: 80px; left: 20px; font-size: 9px; letter-spacing: 4px; }

  .hero__fermo         { font-size: clamp(80px, 21vw, 115px); bottom: 64px; letter-spacing: -3px; left: 20px; }
  .hero__fermo-ghost-r { font-size: clamp(80px, 21vw, 115px); bottom: 64px; letter-spacing: -3px; left: 20px; }
  .hero__fermo-ghost-g { font-size: clamp(80px, 21vw, 115px); bottom: 64px; letter-spacing: -3px; left: 20px; }
  .hero__unframe       { font-size: clamp(80px, 21vw, 115px); bottom: 20px; letter-spacing: -3px; left: 20px; }

  .hero__content { display: none; }
  .hero__scroll { display: none; }

  /* Chi sono foto su mobile piccolo */
  .chisono-card { padding: 20px 16px; }
  .chisono-card__photo { aspect-ratio: 16/9; max-height: 220px; }

  /* Stats */
  .stats__grid { grid-template-columns: 1fr; }
  .stats__item { border-right: none; border-bottom: 1px solid var(--line); }
  .stats__item:last-child { border-bottom: none; }

  .port__thumb { display: none; }
  .port__left { gap: 16px; }
  .port__name { font-size: 13px; }

  .contact__inner { padding: 0 20px; }
  .contact__socials { flex-wrap: wrap; gap: 16px; }
  .cf-btn { width: 100%; justify-content: center; }

  .footer__inner { flex-direction: column; align-items: flex-start; gap: 10px; }

  /* Lavori grid */
  .lavori-filter__btn { font-size: 10px; padding: 6px 12px; }
  .video-card__info { padding: 14px 16px 18px; }
  .video-card__title { font-size: 18px; }
}


/* ══════════════════════════════════════════════════
   GLITCH INTENSE
══════════════════════════════════════════════════ */
.hero--glitch-intense .slice          { animation-duration: 0.6s !important; }
.hero--glitch-intense .rgb            { animation-duration: 0.7s !important; }
.hero--glitch-intense .hero__glitch-r { animation-duration: 0.9s !important; }
.hero--glitch-intense .hero__glitch-g { animation-duration: 0.9s !important; }

.nav__logo-img {
  height: 38px;
  width: auto;
  display: block;
  object-fit: contain;
}

.stats__emoji {
  font-size: 40px;
  filter: grayscale(1) sepia(1) saturate(5) hue-rotate(5deg) brightness(1.1);
  display: inline-block;
  vertical-align: middle;
}
