/* Mina Creative — sito vetrina */
:root {
  --blu: #052EFF;
  --nero: #0A0A0A;
  --bianco: #FFFFFF;
  --grigio: #F2F2F0;
  --rosso: #E8202A;
  --font: "Sora", Arial, Helvetica, sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1440px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bianco);
  color: var(--nero);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
strong { font-weight: 700; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--gutter);
  color: var(--bianco);
  transition: background .3s, color .3s, padding .3s;
}
.header.scrolled { background: var(--blu); padding-top: 12px; padding-bottom: 12px; }
.header.solid { background: var(--bianco); color: var(--nero); padding-top: 12px; padding-bottom: 12px; border-bottom: 1px solid #0001; }
.header__logo img { height: 34px; width: auto; transition: filter .3s; }
.header.solid .header__logo img { filter: invert(1); }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { text-decoration: none; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.nav a:hover { text-decoration: underline; text-underline-offset: 5px; }
.lang { display: flex; gap: 6px; font-size: 13px; font-weight: 700; }
.lang a { text-decoration: none; opacity: .45; }
.lang a[aria-current] { opacity: 1; }
.menu-btn { display: none; background: none; border: 0; color: inherit; font: 700 13px var(--font); letter-spacing: .08em; cursor: pointer; }

/* ---------- Hero ---------- */
.hero {
  min-height: 100svh;
  background: var(--blu); color: var(--bianco);
  display: flex; flex-direction: column; justify-content: center;
  padding: 120px var(--gutter) 40px;
  position: relative; overflow: hidden;
}
.hero__logo { width: min(100%, 1280px); margin: 0 auto; }
.hero__logo img { max-height: 46svh; width: auto; margin: 0 auto; }
.hero__tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; margin-top: 28px; font-weight: 700; font-size: clamp(13px, 1.4vw, 17px); letter-spacing: .06em; text-transform: uppercase; }
.hero__bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-top: auto; padding-top: 56px; }
.hero__payoff { font-size: clamp(28px, 5vw, 64px); font-weight: 800; line-height: .95; text-transform: uppercase; letter-spacing: -.01em; }
.hero__intro { max-width: 380px; font-size: 16px; }
.hero__star { position: absolute; width: clamp(140px, 18vw, 260px); top: 14%; right: 6%; pointer-events: none; will-change: transform; }
.hero__logo, .hero__tags { will-change: transform; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Marquee ---------- */
.marquee { background: var(--nero); color: var(--bianco); overflow: hidden; white-space: nowrap; padding: 16px 0; font-weight: 800; font-size: clamp(18px, 2.4vw, 30px); text-transform: uppercase; }
.marquee__track { display: inline-flex; gap: 48px; animation: scroll 30s linear infinite; padding-left: 48px; }
.marquee__track span::before { content: "+"; color: var(--blu); margin-right: 48px; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- Sezioni ---------- */
.section { padding: clamp(72px, 10vw, 140px) 0; }
.label { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 28px; }
.h2 { font-size: clamp(36px, 6.5vw, 96px); font-weight: 800; line-height: .95; text-transform: uppercase; letter-spacing: -.02em; }
.h2 .light { font-weight: 400; }
.lead { font-size: clamp(19px, 2vw, 26px); line-height: 1.35; max-width: 820px; }

/* Manifesto */
.manifesto .h2 { max-width: 1100px; }
.manifesto__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-top: 56px; }
.manifesto__grid p { max-width: 560px; }

/* Work */
.work { background: var(--nero); color: var(--bianco); }
.work__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 56px; flex-wrap: wrap; }
.work__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(24px, 3vw, 40px); }
.case { text-decoration: none; display: block; }
.case__media { aspect-ratio: 4 / 3; background: #1c1c1c; position: relative; overflow: hidden; }
.case__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.case:hover .case__media img { transform: scale(1.04); }
.case__ph { position: absolute; inset: 0; display: grid; place-items: center; font-weight: 700; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; opacity: .5; }
.case__meta { display: flex; justify-content: space-between; gap: 16px; padding-top: 18px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.case__meta span:last-child { opacity: .6; }
.case__title { font-size: clamp(24px, 2.6vw, 36px); font-weight: 800; text-transform: uppercase; line-height: 1.05; margin-top: 8px; }
.case__text { margin-top: 10px; opacity: .75; max-width: 560px; font-size: 16px; }
.case--blue .case__media { background: var(--blu); }
.case--red .case__media { background: var(--rosso); }

/* Services */
.services__list { list-style: none; margin-top: 56px; border-top: 2px solid var(--nero); }
.service { border-bottom: 1px solid #0003; }
.service summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 90px 1fr 40px; align-items: center; gap: 16px; padding: 26px 0; }
.service summary::-webkit-details-marker { display: none; }
.service__num { font-weight: 700; font-size: 14px; }
.service__name { font-size: clamp(24px, 3.6vw, 52px); font-weight: 800; text-transform: uppercase; line-height: 1; transition: color .2s; }
.service summary:hover .service__name { color: var(--blu); }
.service__icon { font-size: 34px; font-weight: 400; justify-self: end; transition: transform .3s; }
.service[open] .service__icon { transform: rotate(45deg); }
.service__body { display: grid; grid-template-columns: 90px 1fr; gap: 16px; padding: 0 0 32px; }
.service__body p { grid-column: 2; max-width: 720px; }
.service__body ul { grid-column: 2; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.service__body li { border: 1px solid var(--nero); border-radius: 99px; padding: 4px 14px; font-size: 13px; font-weight: 600; }

/* Method */
.method { background: var(--grigio); }
.method__steps { display: grid; grid-template-columns: repeat(var(--fasi, 5), 1fr); gap: 24px; margin-top: 64px; counter-reset: step; }
.step { border-top: 2px solid var(--nero); padding-top: 20px; }
.step__num { font-size: 13px; font-weight: 700; }
.step h3 { font-size: clamp(18px, 1.7vw, 24px); font-weight: 800; text-transform: uppercase; margin: 10px 0 10px; }
.step p { font-size: 15px; }

/* About */
.about__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-top: 56px; }
.person { border-top: 2px solid var(--nero); padding-top: 20px; }
.person__photo { aspect-ratio: 1 / 1; background: var(--blu); margin-bottom: 20px; position: relative; overflow: hidden; }
.person__photo img { width: 100%; height: 100%; object-fit: cover; }
.person h3 { font-size: clamp(24px, 2.6vw, 36px); font-weight: 800; text-transform: uppercase; line-height: 1.05; }
.person__role { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--blu); margin: 6px 0 12px; }
.network { margin-top: 72px; display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.network img { width: 100%; max-width: 520px; filter: invert(1); }

/* Contact */
.contact { background: var(--blu); color: var(--bianco); position: relative; overflow: hidden; }
.contact__mail { display: inline-block; font-size: clamp(30px, 7vw, 110px); font-weight: 800; line-height: 1; text-decoration: none; margin-top: 24px; word-break: break-word; letter-spacing: -.02em; }
.contact__mail:hover { text-decoration: underline; text-decoration-thickness: 4px; text-underline-offset: 10px; }
.contact__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 72px; font-size: 16px; }
.contact__grid h3 { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 8px; opacity: .7; }

/* Footer */
.footer { background: var(--nero); color: var(--bianco); padding: 28px 0; font-size: 13px; }
.footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; opacity: .8; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s, transform .8s; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  .hero__star, .marquee__track { animation: none; }
}

/* ---------- Mobile ---------- */
@media (max-width: 900px) {
  .menu-btn { display: block; }
  .nav { position: fixed; inset: 0; background: var(--blu); color: var(--bianco); flex-direction: column; justify-content: center; gap: 28px; transform: translateY(-100%); transition: transform .4s; }
  .nav a, .nav .lang { font-size: 28px; }
  .nav.open { transform: none; }
  .header.menu-open { color: var(--bianco); background: transparent; border-color: transparent; }
  .header.menu-open .header__logo img { filter: none; }
  .header__logo, .menu-btn { position: relative; z-index: 2; }
  .manifesto__grid, .work__grid, .about__grid, .network, .contact__grid { grid-template-columns: 1fr; }
  .method__steps { grid-template-columns: 1fr; }
  .hero__bottom { flex-direction: column; align-items: flex-start; }
  .hero__star { width: 150px; top: 50%; right: 10%; }
  .service summary { grid-template-columns: 44px 1fr 32px; }
  .service__body { grid-template-columns: 44px 1fr; }
}

/* ================= GIOCO SULLO SCROLL ================= */

/* Manifesto: le parole si accendono scorrendo */
.fill .w { opacity: .14; transition: opacity .25s; }
.fill .w.on { opacity: 1; }

/* ---------- Fascia clienti ---------- */
.clients { background: var(--bianco); padding: clamp(56px, 8vw, 110px) 0; overflow: hidden; border-top: 1px solid #0002; }
.clients__head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 36px; }
.clients__row { white-space: nowrap; overflow: hidden; padding: 6px 0; }
.clients__track { display: inline-flex; align-items: center; will-change: transform; }
.client {
  font-size: clamp(44px, 9vw, 150px); font-weight: 800; text-transform: uppercase;
  line-height: 1; letter-spacing: -.03em; padding: 0 .35em; cursor: default;
  transition: color .25s, -webkit-text-stroke-color .25s;
}
.clients__row--outline .client { color: transparent; -webkit-text-stroke: 2px var(--nero); }
.client:hover { color: var(--blu); }
.clients__row--outline .client:hover { color: var(--blu); -webkit-text-stroke-color: var(--blu); }
.clients__sep { width: clamp(44px, 6vw, 96px); flex: none; }
.clients__row--outline .clients__sep { filter: grayscale(1) brightness(0); }

/* ---------- Posters ---------- */
.posters { background: var(--nero); color: var(--bianco); position: relative; }
.posters__sticky { position: sticky; top: 0; height: 100svh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; padding-top: 60px; }
.posters__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; padding: 0 var(--gutter); margin-bottom: clamp(24px, 4vh, 48px); }
.posters__count { font-weight: 700; font-size: 14px; letter-spacing: .08em; font-variant-numeric: tabular-nums; }
.posters__track { display: flex; gap: clamp(24px, 3vw, 48px); padding: 0 var(--gutter); will-change: transform; }
.poster {
  flex: none; width: clamp(220px, 24vw, 360px); aspect-ratio: 2 / 3;
  position: relative; overflow: hidden; border-radius: 4px;
  transform-origin: 50% 100%; will-change: transform;
  box-shadow: 0 30px 60px -20px #0009;
}
.poster__inner { position: absolute; inset: -6% 0; display: flex; flex-direction: column; justify-content: space-between; padding: 18% 8%; will-change: transform; }
.poster img.poster__art { width: 100%; height: auto; margin: auto 0; }
.poster img.poster__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.poster__tag { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; display: flex; justify-content: space-between; }
.poster__title { font-size: clamp(18px, 1.8vw, 26px); font-weight: 800; text-transform: uppercase; line-height: 1; }
.poster--blu { background: var(--blu); }
.poster--rosso { background: var(--rosso); }
.poster--bianco { background: var(--bianco); color: var(--nero); }
.poster--bianco img.poster__art { filter: invert(1); }
.poster--grigio { background: #2a2a2a; }
.poster:hover { z-index: 2; }
.posters__hint { padding: 0 var(--gutter); margin-top: clamp(24px, 4vh, 40px); font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; opacity: .5; }

@media (max-width: 900px) {
  .posters { height: auto !important; }
  .posters__sticky { position: static; height: auto; padding: 72px 0; }
  .posters__track { overflow-x: auto; scroll-snap-type: x mandatory; transform: none !important; padding-bottom: 24px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .posters__track::-webkit-scrollbar { display: none; }
  .poster { width: 68vw; scroll-snap-align: center; }
  .clients__head { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  .fill .w { opacity: 1; }
  .posters { height: auto !important; }
  .posters__sticky { position: static; height: auto; padding: 72px 0; }
  .posters__track { overflow-x: auto; transform: none !important; }
}

/* Loghi clienti nella fascia */
.client--logo { display: inline-flex; align-items: center; padding: 0 clamp(24px, 4vw, 64px); }
.client--logo img { height: clamp(48px, 7vw, 110px); width: auto; max-width: clamp(160px, 26vw, 420px); object-fit: contain; filter: brightness(0); transition: filter .3s, transform .3s; }
.client--logo:hover img { filter: none; transform: scale(1.06); }
.client--logo .client__name { display: none; }
.client--logo.nologo img { display: none; }
.client--logo.nologo .client__name { display: inline; }
.client--logo .client__name { font-size: clamp(32px, 5vw, 80px); line-height: 1; }

/* Contenuti dal pannello: video nei progetti e locandine fotografiche */
.case__video { position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); border: 0; pointer-events: none; }
.case__media .case__video { transform: scale(1.35); }
.poster--foto { background: #111; }
.poster--foto .poster__inner { padding: 0; }
