/* William Imola — sito ufficiale
   Concetto: la serata in club. Fondo ultravioletto, un solo laser magenta come colore acceso,
   foto in bicromia come sotto le luci della console. I singoli sono una scaletta da DJ,
   i tour sono pass da backstage. Carattere largo e pieno da flyer. */

:root {
  --uv: #13092b;          /* fondo: sala buia sotto le luci UV */
  --uv-2: #1d1140;        /* superfici */
  --uv-3: #34226a;        /* linee */
  --cromo: #f6f1ff;       /* testo */
  --lilla: #b8a6ff;       /* testo secondario, seconda luce */
  --laser: #ff2d9b;       /* il laser: unico accento */
  --pass: #f6f1ff;        /* plastica del pass */

  --display: "Unbounded", "Arial Black", "Helvetica Neue", Arial, sans-serif;
  --body: "Onest", "Helvetica Neue", Arial, sans-serif;

  --gutter: max(20px, env(safe-area-inset-left, 0px));
  --gutter-r: max(20px, env(safe-area-inset-right, 0px));
  --max: 1320px;
  --header-h: 68px;

  color-scheme: dark;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--uv);
  color: var(--cromo);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
::selection { background: var(--laser); color: var(--uv); }

img { max-width: 100%; display: block; }
main { overflow-x: clip; }
a { color: inherit; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0; }
ul, ol, dl, dd { margin: 0; padding: 0; list-style: none; }

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

.skip { position: absolute; left: -9999px; top: 0; background: var(--laser); color: var(--uv); padding: 10px 16px; font-weight: 700; z-index: 100; }
.skip:focus { left: 16px; top: 16px; }

.wrap { max-width: var(--max); margin-inline: auto; padding-left: var(--gutter); padding-right: var(--gutter-r); }

/* foto in bicromia: ombre ultravioletto, luci magenta-cromo */
.duo { position: relative; overflow: hidden; background: var(--uv-2); isolation: isolate; }
.duo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.15) brightness(1.05); }
.duo::before, .duo::after { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.duo::before { background: var(--laser); mix-blend-mode: multiply; }
.duo::after { background: var(--uv); mix-blend-mode: lighten; }

/* ---------- Header ---------- */

body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--uv); }

.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: color-mix(in srgb, var(--uv) 82%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .3s;
}
.site-header.scrolled { border-bottom-color: var(--uv-3); }
.site-header .wrap { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.wordmark { font-family: var(--display); font-weight: 800; font-size: 1.05rem; letter-spacing: -.02em; text-decoration: none; text-transform: lowercase; }
.wordmark span { color: var(--laser); }

.nav { display: flex; align-items: center; gap: 26px; }
.nav a { font-weight: 500; font-size: .98rem; text-decoration: none; color: var(--lilla); transition: color .2s; }
.nav a:hover, .nav a.active { color: var(--cromo); }
.nav a.nav-cta { color: var(--uv); background: var(--laser); padding: 8px 18px; border-radius: 999px; font-weight: 700; }
.nav a.nav-cta:hover { background: var(--cromo); }

.menu-btn { display: none; background: none; border: 1px solid var(--uv-3); color: var(--cromo); font-family: var(--body); font-weight: 600; font-size: .95rem; padding: 7px 16px; border-radius: 999px; cursor: pointer; }

@media (max-width: 900px) {
  .menu-btn { display: block; }
  .nav {
    position: fixed; inset: calc(var(--header-h) + env(safe-area-inset-top, 0px)) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--uv); border-bottom: 1px solid var(--uv-3);
    padding: 8px var(--gutter-r) 28px var(--gutter);
    opacity: 0; transform: translateY(-8px); pointer-events: none; transition: opacity .2s, transform .2s;
  }
  .nav.open { opacity: 1; transform: none; pointer-events: auto; }
  .nav a { font-family: var(--display); font-weight: 800; font-size: 1.7rem; letter-spacing: -.03em; color: var(--cromo); padding: 10px 0; border-bottom: 1px solid var(--uv-2); }
  .nav a.nav-cta { margin-top: 18px; text-align: center; font-size: 1.1rem; border: 0; padding: 14px; }
}

/* ---------- Hero ---------- */

.hero { position: relative; overflow: hidden; isolation: isolate; }
.lasers { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }

.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: end; min-height: min(90vh, 860px);
  padding-block: clamp(28px, 4vw, 48px) clamp(40px, 6vw, 72px);
}

.hero-photo {
  grid-column: 2; grid-row: 1; align-self: stretch;
  border-radius: 28px; min-height: 480px;
  box-shadow: 0 0 120px -20px color-mix(in srgb, var(--laser) 55%, transparent);
}
.hero-photo img { position: absolute; inset: 0; object-position: 50% 20%; }

.hero-text { grid-column: 1 / -1; grid-row: 1; position: relative; z-index: 2; align-self: end; }

.hero-name {
  font-family: var(--display); font-weight: 900;
  font-size: clamp(3.6rem, 11.5vw, 10.5rem);
  line-height: .86; letter-spacing: -.055em; text-transform: lowercase;
  display: flex; flex-direction: column;
}
.hero-name .l2 { padding-left: .5em; color: transparent; -webkit-text-stroke: 2px var(--cromo); }

.hero-row { margin-top: clamp(24px, 3vw, 36px); display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; }
.hero-role { font-size: 1.15rem; color: var(--lilla); max-width: 22em; }

.btns { display: flex; flex-wrap: wrap; gap: 10px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--body); font-weight: 700; font-size: 1rem; text-decoration: none;
  padding: 13px 22px; border-radius: 999px; border: 1.5px solid var(--cromo);
  background: transparent; color: var(--cromo); cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, box-shadow .2s;
}
.btn:hover { background: var(--cromo); color: var(--uv); }
.btn.hot { background: var(--laser); border-color: var(--laser); color: var(--uv); }
.btn.hot:hover { background: var(--cromo); border-color: var(--cromo); box-shadow: 0 0 40px -6px var(--laser); }
.btn svg { width: 18px; height: 18px; flex: none; }

/* bollino "nuovo singolo" che ruota come un vinile */
.sticker {
  position: absolute; z-index: 3;
  right: clamp(12px, 3vw, 40px); top: clamp(12px, 3vw, 40px);
  width: clamp(120px, 12vw, 168px); aspect-ratio: 1; border-radius: 50%;
  background: var(--laser); color: var(--uv);
  display: grid; place-items: center; text-align: center; text-decoration: none;
  box-shadow: 0 10px 40px -10px var(--laser);
}
.sticker svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.sticker text { font-family: var(--display); font-weight: 700; font-size: 8.4px; letter-spacing: .6px; fill: var(--uv); }
.sticker b { font-family: var(--display); font-weight: 900; font-size: clamp(.78rem, 1vw, 1rem); line-height: 1.05; letter-spacing: -.03em; display: block; padding: 0 22%; }
@media (prefers-reduced-motion: no-preference) {
  .sticker svg { animation: spin 14s linear infinite; }
  .hero-name > span { animation: drop .9s cubic-bezier(.2,.8,.1,1) both; }
  .hero-name > span + span { animation-delay: .1s; }
  .hero-photo { animation: flash 1.2s ease-out both; }
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes drop { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes flash { 0% { filter: brightness(3); opacity: 0; } 15% { opacity: 1; } 100% { filter: none; } }

@media (max-width: 900px) {
  .hero-grid { display: block; min-height: 0; padding-top: 16px; }
  .hero-photo { min-height: 0; aspect-ratio: 4 / 5; max-height: 72vh; border-radius: 22px; }
  .hero-text { margin-top: calc(-1 * clamp(2.6rem, 10vw, 4.6rem)); }
  .hero-name { font-size: clamp(3.4rem, 19vw, 7rem); }
  .hero-name .l2 { -webkit-text-stroke-width: 1.5px; }
}

/* ---------- Ticker ---------- */

.ticker { background: var(--laser); color: var(--uv); overflow: hidden; transform: rotate(-1.2deg); margin: -6px -10px 0; position: relative; z-index: 4; }
.ticker-track { display: flex; width: max-content; padding-block: 12px; }
.ticker-track span { font-family: var(--display); font-weight: 800; font-size: clamp(.95rem, 1.6vw, 1.25rem); letter-spacing: -.02em; text-transform: lowercase; white-space: nowrap; padding-right: 2.2em; }
.ticker-track span::after { content: "✦"; margin-left: 2.2em; }
@media (prefers-reduced-motion: no-preference) { .ticker-track { animation: tick 38s linear infinite; } }
@keyframes tick { to { transform: translateX(-50%); } }

/* ---------- Sezioni ---------- */

.section { padding-block: clamp(84px, 11vw, 150px); }

.section-title {
  font-family: var(--display); font-weight: 900; text-transform: lowercase;
  font-size: clamp(2.8rem, 8vw, 7rem); line-height: .9; letter-spacing: -.055em;
}
.section-title .o { color: transparent; -webkit-text-stroke: 1.5px var(--cromo); }

.lede { font-size: clamp(1.15rem, 1.7vw, 1.35rem); line-height: 1.5; max-width: 32em; color: var(--cromo); }
.muted { color: var(--lilla); }

/* ---------- Musica ---------- */

.feature {
  margin-top: clamp(44px, 6vw, 72px);
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(28px, 5vw, 72px); align-items: center;
}
.feature-cover { aspect-ratio: 1; border-radius: 22px; }
.feature-cover img { position: absolute; inset: 0; }
.feature h3 { font-family: var(--display); font-weight: 900; font-size: clamp(2rem, 4.4vw, 3.8rem); line-height: .95; letter-spacing: -.05em; text-transform: lowercase; }
.feature .with { margin-top: 14px; font-weight: 700; color: var(--laser); font-size: 1.1rem; }
.feature p.body { margin-top: 18px; max-width: 32em; color: var(--lilla); }
.feature .btns { margin-top: 26px; }

.stat { margin-top: 26px; display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.stat b { font-family: var(--display); font-weight: 900; font-size: clamp(2.2rem, 4vw, 3.2rem); letter-spacing: -.05em; line-height: 1; color: var(--cromo); }
.stat span { color: var(--lilla); font-size: 1rem; max-width: 18em; line-height: 1.35; }

.set { margin-top: clamp(64px, 9vw, 120px); display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.set-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 16px; }
.set-head h3 { font-family: var(--display); font-weight: 800; font-size: 1.3rem; letter-spacing: -.03em; text-transform: lowercase; }
.set-head p { color: var(--lilla); font-size: .95rem; }

.tracks { border-top: 1px solid var(--uv-3); counter-reset: t; }
.tracks li { counter-increment: t; border-bottom: 1px solid var(--uv-3); }
.tracks a {
  display: grid; grid-template-columns: 2.4rem minmax(0, 1.4fr) minmax(0, 1fr) 2.6rem;
  align-items: center; gap: 16px; padding: 16px 4px; text-decoration: none;
  transition: background .2s;
}
.tracks a::before { content: counter(t, decimal-leading-zero); font-weight: 600; color: var(--lilla); font-variant-numeric: tabular-nums; font-size: .95rem; }
.tracks a:hover { background: var(--uv-2); }
.tracks .t { font-family: var(--display); font-weight: 800; font-size: clamp(1.05rem, 1.9vw, 1.4rem); letter-spacing: -.04em; text-transform: lowercase; line-height: 1.1; min-width: 0; }
.tracks .n { display: block; font-family: var(--body); font-weight: 500; font-size: .92rem; letter-spacing: 0; text-transform: none; color: var(--lilla); margin-top: 3px; }
.tracks .n.f { color: var(--laser); font-weight: 700; }
.wave { display: flex; align-items: center; gap: 2px; height: 34px; min-width: 0; overflow: hidden; }
.wave i { flex: 1 1 0; min-width: 2px; border-radius: 2px; background: var(--uv-3); transition: background .25s; }
.tracks a:hover .wave i { background: var(--lilla); }
.tracks li.new .wave i { background: color-mix(in srgb, var(--laser) 70%, var(--uv)); }
.tracks li.new a:hover .wave i { background: var(--laser); }
.play { width: 2.6rem; height: 2.6rem; border-radius: 50%; border: 1.5px solid var(--uv-3); display: grid; place-items: center; transition: all .2s; }
.play svg { width: 14px; height: 14px; margin-left: 2px; }
.tracks a:hover .play { background: var(--laser); border-color: var(--laser); color: var(--uv); }
.badge { display: inline-block; font-family: var(--body); font-size: .72rem; font-weight: 800; letter-spacing: .04em; background: var(--laser); color: var(--uv); padding: 2px 8px; border-radius: 999px; vertical-align: middle; margin-left: 8px; text-transform: uppercase; }

.player { position: sticky; top: calc(var(--header-h) + 24px); background: var(--uv-2); border-radius: 22px; padding: 24px; }
.player h3 { font-family: var(--display); font-weight: 800; font-size: 1.3rem; letter-spacing: -.03em; text-transform: lowercase; margin-bottom: 8px; }
.player p { font-size: .95rem; color: var(--lilla); }
.player .btns { margin-top: 18px; }
.player iframe { width: 100%; height: 452px; border: 0; border-radius: 14px; display: block; }
.player .links { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.player .links a { font-weight: 600; font-size: .95rem; color: var(--lilla); text-decoration: none; border-bottom: 1px solid var(--uv-3); }
.player .links a:hover { color: var(--cromo); border-color: var(--laser); }

@media (max-width: 900px) {
  .feature, .set { grid-template-columns: 1fr; }
  .player { position: static; }
  .tracks a { grid-template-columns: 2rem minmax(0, 1fr) 2.6rem; }
  .wave { display: none; }
}

/* ---------- Live: i pass ---------- */

.live { background: var(--uv-2); position: relative; overflow: hidden; }
.live-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px 64px; align-items: end; }

.totals { display: flex; flex-wrap: wrap; gap: 20px 48px; }
.totals div { display: flex; flex-direction: column; }
.totals b { font-family: var(--display); font-weight: 900; font-size: clamp(2.6rem, 5vw, 4.4rem); letter-spacing: -.06em; line-height: 1; color: var(--laser); font-variant-numeric: tabular-nums; }
.totals span { color: var(--lilla); font-size: 1rem; margin-top: 6px; }

.passes { margin-top: clamp(56px, 8vw, 96px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 4vw, 56px); align-items: start; }

.pass {
  position: relative; background: var(--pass); color: var(--uv);
  border-radius: 22px; padding: 46px clamp(20px, 3vw, 32px) clamp(24px, 3vw, 32px);
  box-shadow: 0 30px 60px -24px rgba(0,0,0,.7);
}
.pass:nth-child(1) { transform: rotate(-2deg); }
.pass:nth-child(2) { transform: rotate(1.6deg); margin-top: 40px; }
.pass::before { /* foro per il cordino */
  content: ""; position: absolute; top: 16px; left: 50%; translate: -50% 0;
  width: 64px; height: 12px; border-radius: 999px; background: var(--uv-2);
}
.pass-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-weight: 800; font-size: .82rem; letter-spacing: .05em; text-transform: uppercase; }
.pass-top .area { background: var(--uv); color: var(--laser); padding: 4px 10px; border-radius: 6px; }
.pass-photo { margin-top: 16px; aspect-ratio: 16 / 10; border-radius: 12px; }
.pass-photo img { position: absolute; inset: 0; object-position: 50% 30%; }
.pass .year { margin-top: 18px; font-family: var(--display); font-weight: 900; font-size: clamp(3.4rem, 7vw, 5.6rem); line-height: .85; letter-spacing: -.07em; color: var(--laser); }
.pass .tour { font-family: var(--display); font-weight: 900; font-size: clamp(1.4rem, 2.6vw, 2rem); letter-spacing: -.05em; line-height: 1; text-transform: lowercase; margin-top: 6px; }
.pass .meta { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 6px; }
.pass .meta span { font-weight: 700; font-size: .9rem; border: 1.5px solid var(--uv); border-radius: 999px; padding: 3px 12px; }
.pass .bill { margin-top: 20px; padding-top: 16px; border-top: 2px dashed color-mix(in srgb, var(--uv) 30%, transparent); display: grid; gap: 4px; }
.pass .bill dt { font-size: .9rem; color: color-mix(in srgb, var(--uv) 65%, transparent); margin-top: 8px; }
.pass .bill dt:first-child { margin-top: 0; }
.pass .bill dd { font-family: var(--display); font-weight: 800; font-size: clamp(1.05rem, 1.8vw, 1.3rem); letter-spacing: -.04em; line-height: 1.15; }
.pass .barcode { margin-top: 22px; height: 38px; background: repeating-linear-gradient(90deg, var(--uv) 0 2px, transparent 2px 4px, var(--uv) 4px 7px, transparent 7px 9px, var(--uv) 9px 10px, transparent 10px 13px); border-radius: 2px; }

@media (max-width: 860px) {
  .live-head, .passes { grid-template-columns: 1fr; }
  .pass:nth-child(2) { margin-top: 0; }
  .pass:nth-child(1) { transform: rotate(-1deg); }
  .pass:nth-child(2) { transform: rotate(1deg); }
}

/* ---------- Chi sono ---------- */

.about { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(36px, 6vw, 96px); align-items: start; }
.about-photo { aspect-ratio: 4 / 5; border-radius: 22px; }
.about-photo img { position: absolute; inset: 0; object-position: 50% 25%; }
.about-text { display: grid; gap: 1.1em; max-width: 36em; }
.about-text .section-title { margin-bottom: .2em; }
.about-text p { color: var(--lilla); }
.about-text p.lede { color: var(--cromo); }

.facts { margin-top: 12px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.facts div { background: var(--uv-2); border-radius: 16px; padding: 16px; }
.facts dt { font-size: .88rem; color: var(--lilla); }
.facts dd { margin-top: 4px; font-family: var(--display); font-weight: 800; font-size: 1.02rem; letter-spacing: -.03em; line-height: 1.2; }
.facts dd small { display: block; font-family: var(--body); font-weight: 500; letter-spacing: 0; font-size: .85rem; color: var(--lilla); margin-top: 4px; }

.motto { margin-top: clamp(80px, 11vw, 140px); font-family: var(--display); font-weight: 900; font-size: clamp(1.9rem, 5vw, 4.4rem); letter-spacing: -.05em; line-height: 1; text-transform: lowercase; max-width: 15em; }
.motto span { color: var(--laser); }
.motto cite { display: block; margin-top: 18px; font-family: var(--body); font-style: normal; font-weight: 600; font-size: 1rem; letter-spacing: 0; text-transform: none; color: var(--lilla); }

@media (max-width: 900px) {
  .about { grid-template-columns: 1fr; }
  .about-photo { max-width: 460px; }
  .facts { grid-template-columns: 1fr; }
}

/* ---------- Cinema e TV ---------- */

.screen { background: var(--uv-2); }
.screen-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px 64px; align-items: end; }
.screen-head .lede { color: var(--lilla); }

.highlights { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 10px; }
.highlights li { font-family: var(--display); font-weight: 800; font-size: clamp(1rem, 1.8vw, 1.35rem); letter-spacing: -.04em; text-transform: lowercase; background: var(--uv); border-radius: 999px; padding: 10px 20px; }
.highlights li:nth-child(3n+1) { background: var(--laser); color: var(--uv); }

.filters { margin-top: clamp(48px, 7vw, 80px); display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
.filters::-webkit-scrollbar { display: none; }
.filters button { flex: none; font-family: var(--body); font-weight: 600; font-size: .95rem; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--uv-3); background: none; color: var(--lilla); cursor: pointer; transition: all .2s; }
.filters button:hover { color: var(--cromo); border-color: var(--lilla); }
.filters button[aria-pressed="true"] { background: var(--cromo); border-color: var(--cromo); color: var(--uv); }
.filters .c { opacity: .6; margin-left: 4px; font-variant-numeric: tabular-nums; }

.credits { margin-top: 18px; border-top: 1px solid var(--uv-3); }
.credits li { display: grid; grid-template-columns: 4rem minmax(0, 1.2fr) minmax(0, 1fr) 8.5rem; gap: 6px 20px; align-items: baseline; padding: 13px 0; border-bottom: 1px solid var(--uv-3); }
.credits li[hidden] { display: none; }
.credits .y { font-weight: 700; font-variant-numeric: tabular-nums; color: var(--laser); }
.credits .ti { font-family: var(--display); font-weight: 800; font-size: 1.02rem; letter-spacing: -.035em; text-transform: lowercase; line-height: 1.2; }
.credits .d { color: var(--lilla); font-size: .95rem; line-height: 1.4; }
.credits .k { font-size: .88rem; color: var(--lilla); text-align: right; }
.credits .soon { display: inline-block; font-family: var(--body); font-weight: 800; font-size: .7rem; letter-spacing: .04em; text-transform: uppercase; background: var(--laser); color: var(--uv); padding: 2px 8px; border-radius: 999px; vertical-align: middle; margin-left: 6px; }

@media (max-width: 860px) {
  .screen-head { grid-template-columns: 1fr; }
  .credits li { grid-template-columns: 3.4rem minmax(0, 1fr); }
  .credits .d { grid-column: 2; }
  .credits .k { display: none; }
}

/* ---------- Foto ---------- */

.gallery-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px 40px; }
.gallery-head p { color: var(--lilla); }
.masonry { margin-top: clamp(40px, 6vw, 64px); columns: 4 240px; column-gap: 10px; }
.masonry button { display: block; width: 100%; margin: 0 0 10px; padding: 0; border: 0; background: var(--uv-2); cursor: zoom-in; break-inside: avoid; overflow: hidden; border-radius: 14px; }
.masonry img { width: 100%; height: auto; transition: transform .5s cubic-bezier(.2,.7,.1,1); }
.masonry button:hover img { transform: scale(1.04); }

.lightbox {
  position: fixed; inset: 0; z-index: 200; background: rgba(10, 4, 24, .96);
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-rows: auto minmax(0, 1fr); align-items: center;
  padding: max(12px, env(safe-area-inset-top, 0px)) max(12px, env(safe-area-inset-right, 0px)) max(12px, env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-left, 0px));
}
.lightbox[hidden] { display: none; }
.lightbox .bar { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; font-weight: 600; color: var(--lilla); padding: 4px 8px 12px; font-variant-numeric: tabular-nums; }
.lightbox figure { margin: 0; height: 100%; display: flex; align-items: center; justify-content: center; min-width: 0; }
.lightbox figure img { max-height: 100%; max-width: 100%; object-fit: contain; border-radius: 10px; }
.lb-btn { background: none; border: 1px solid var(--uv-3); color: var(--cromo); width: 48px; height: 48px; border-radius: 50%; font-size: 1.2rem; cursor: pointer; display: grid; place-items: center; margin: 0 8px; }
.lb-btn:hover { border-color: var(--laser); color: var(--laser); }
.lb-close { width: auto; height: auto; border-radius: 999px; padding: 6px 16px; font-family: var(--body); font-weight: 600; font-size: .95rem; margin: 0; }
@media (max-width: 600px) {
  .lightbox { grid-template-columns: 1fr 1fr; grid-template-rows: auto minmax(0, 1fr) auto; }
  .lightbox figure { grid-column: 1 / -1; grid-row: 2; }
  .lb-prev { grid-row: 3; justify-self: start; margin-top: 12px; }
  .lb-next { grid-row: 3; justify-self: end; margin-top: 12px; }
}

/* ---------- Contatti ---------- */

.contact { position: relative; overflow: hidden; isolation: isolate; text-align: center; }
.contact .lasers { opacity: .7; }
.contact .lede { margin: 22px auto 0; color: var(--lilla); }
.mail {
  margin-top: clamp(28px, 4vw, 48px); display: inline-block;
  font-family: var(--display); font-weight: 900; font-size: clamp(1.4rem, 5.6vw, 4.6rem); letter-spacing: -.055em; line-height: 1;
  text-decoration: none; overflow-wrap: anywhere;
  background: var(--laser); color: var(--uv); padding: .32em .55em; border-radius: 999px;
  transition: background .2s, box-shadow .2s;
}
.mail:hover { background: var(--cromo); box-shadow: 0 0 60px -10px var(--laser); }
.copy { display: block; margin: 16px auto 0; background: none; border: 0; color: var(--lilla); font-family: var(--body); font-weight: 600; font-size: .95rem; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }
.copy:hover { color: var(--cromo); }

.socials { margin-top: clamp(48px, 7vw, 80px); display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.socials a { text-decoration: none; font-weight: 700; font-size: 1rem; padding: 11px 20px; border-radius: 999px; border: 1.5px solid var(--uv-3); background: color-mix(in srgb, var(--uv) 70%, transparent); transition: all .2s; }
.socials a:hover { border-color: var(--laser); color: var(--laser); }

/* ---------- Footer ---------- */

.site-footer { border-top: 1px solid var(--uv-3); padding-block: 28px max(28px, env(safe-area-inset-bottom, 0px)); color: var(--lilla); font-size: .92rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--cromo); }

/* ---------- Note legali ---------- */

.legal { padding-block: clamp(56px, 8vw, 110px); }
.legal-body { margin-top: 44px; max-width: 40em; display: grid; gap: 1.1em; color: var(--lilla); }
.legal-body h2 { font-family: var(--display); font-weight: 800; font-size: 1.4rem; letter-spacing: -.04em; text-transform: lowercase; color: var(--cromo); margin-top: 1.4em; }
.legal-body a { color: var(--laser); }

/* foto non disponibile: niente icona rotta */
img.noimg { visibility: hidden; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* =========================================================
   ANIMAZIONI
   Le animazioni partono solo quando JS aggiunge .anim a <html>,
   così senza JS (o con "riduci movimento") la pagina resta completa e ferma.
   ========================================================= */

@media (prefers-reduced-motion: no-preference) {

  /* entrata allo scroll */
  .anim [data-reveal] { opacity: 0; transform: translateY(42px); transition: opacity .9s cubic-bezier(.2,.8,.1,1), transform .9s cubic-bezier(.2,.8,.1,1); transition-delay: var(--d, 0s); }
  .anim [data-reveal="left"] { transform: translateX(-60px); }
  .anim [data-reveal="right"] { transform: translateX(60px); }
  .anim [data-reveal="zoom"] { transform: scale(.9); }
  .anim [data-reveal].in { opacity: 1; transform: none; }

  /* titoli: le lettere si accendono una a una, come un'insegna al neon */
  .anim .section-title .ch { display: inline-block; opacity: 0; transform: translateY(.35em) rotate(4deg); }
  .anim .section-title.in .ch { animation: neonOn .7s cubic-bezier(.2,.8,.1,1) forwards; animation-delay: calc(var(--i) * 45ms); }
  @keyframes neonOn {
    0% { opacity: 0; transform: translateY(.35em) rotate(4deg); }
    40% { opacity: 1; text-shadow: 0 0 30px var(--laser); }
    55% { opacity: .35; }
    70% { opacity: 1; }
    100% { opacity: 1; transform: none; text-shadow: none; }
  }

  /* foto: da bicromia a colori al passaggio del mouse */
  .duo img { transition: filter .6s, transform 1.2s cubic-bezier(.2,.8,.1,1); }
  .duo::before, .duo::after { transition: opacity .6s; }
  .duo:hover::before, .duo:hover::after { opacity: 0; }
  .duo:hover img { filter: none; transform: scale(1.04); }

  /* foto dell'hero: pulsa a 124 bpm, il tempo di una pista house */
  .hero-photo { animation: flash 1.2s ease-out both, beat .484s ease-out 1.4s infinite; }
  @keyframes beat {
    0% { box-shadow: 0 0 140px -10px color-mix(in srgb, var(--laser) 75%, transparent); }
    100% { box-shadow: 0 0 100px -30px color-mix(in srgb, var(--laser) 35%, transparent); }
  }

  /* lampo stroboscopico all'apertura */
  .strobe { position: fixed; inset: 0; z-index: 300; background: var(--cromo); pointer-events: none; animation: strobe .7s steps(1) forwards; }
  @keyframes strobe { 0% { opacity: .9; } 14% { opacity: 0; } 28% { opacity: .6; } 42% { opacity: 0; } 56% { opacity: .25; } 70%, 100% { opacity: 0; visibility: hidden; } }

  /* scaletta: le barre ballano come un equalizzatore */
  .tracks a:hover .wave i, .tracks li.playing .wave i { animation: eq .5s ease-in-out infinite alternate; animation-delay: calc(var(--k) * -37ms); transform-origin: center; }
  @keyframes eq { from { transform: scaleY(.35); } to { transform: scaleY(1.1); } }
  .tracks li.playing .wave i { background: var(--laser); }
  .tracks a { position: relative; }
  .tracks a::after { content: ""; position: absolute; left: 0; bottom: -1px; height: 2px; width: 0; background: var(--laser); transition: width .6s cubic-bezier(.2,.8,.1,1); }
  .tracks a:hover::after { width: 100%; }
  .tracks a:hover .t { transform: translateX(6px); }
  .tracks .t { transition: transform .3s; }

  /* pass: appesi al cordino, oscillano */
  .pass { transform-origin: 50% -40px; transition: transform .6s cubic-bezier(.3,1.6,.5,1), box-shadow .3s; }
  .anim .pass[data-reveal] { transform: translateY(-120px) rotate(-14deg); }
  .anim .pass.in:nth-child(1) { animation: swing1 2.6s cubic-bezier(.3,1.4,.5,1) both; }
  .anim .pass.in:nth-child(2) { animation: swing2 2.6s .2s cubic-bezier(.3,1.4,.5,1) both; }
  @keyframes swing1 { 0% { transform: translateY(-120px) rotate(-14deg); opacity: 0; } 30% { opacity: 1; } 55% { transform: rotate(4deg); } 75% { transform: rotate(-3.5deg); } 100% { transform: rotate(-2deg); opacity: 1; } }
  @keyframes swing2 { 0% { transform: translateY(-120px) rotate(14deg); opacity: 0; } 30% { opacity: 1; } 55% { transform: rotate(-3deg); } 75% { transform: rotate(3deg); } 100% { transform: rotate(1.6deg); opacity: 1; } }
  .anim .pass.settled { animation: none; }
  .anim .pass.settled:nth-child(1) { transform: rotate(-2deg); }
  .anim .pass.settled:nth-child(2) { transform: rotate(1.6deg); }
  .anim .passes .pass.settled:hover, .passes .pass:hover { animation: none; transform: rotate(0deg) translateY(-8px) scale(1.02); box-shadow: 0 40px 80px -24px rgba(0,0,0,.8), 0 0 60px -20px var(--laser); }
  .pass .pass-top .area { animation: blink 1.6s steps(1) infinite; }
  @keyframes blink { 50% { background: var(--laser); color: var(--uv); } }

  /* chip dei lavori principali */
  .highlights li { transition: transform .3s cubic-bezier(.3,1.6,.5,1), background .2s, color .2s; }
  .highlights li:hover { transform: rotate(-3deg) scale(1.08); background: var(--cromo); color: var(--uv); }

  /* galleria */
  .masonry button { transition: transform .4s cubic-bezier(.3,1.4,.5,1), box-shadow .3s; }
  .masonry button:hover { transform: translateY(-4px) rotate(-.6deg); box-shadow: 0 0 0 2px var(--laser), 0 20px 50px -20px var(--laser); }

  /* bottoni */
  .btn { transition: background .2s, color .2s, border-color .2s, box-shadow .2s, transform .2s cubic-bezier(.3,1.6,.5,1); }
  .btn:hover { transform: translateY(-2px); }
  .btn:active { transform: scale(.96); }

  /* email: luce che scorre */
  .mail { background-image: linear-gradient(110deg, transparent 35%, rgba(255,255,255,.55) 50%, transparent 65%); background-size: 250% 100%; background-repeat: no-repeat; background-position: 150% 0; animation: shine 3.5s ease-in-out infinite; }
  @keyframes shine { 0%, 55% { background-position: 150% 0; } 100% { background-position: -60% 0; } }

  /* bollino: si ferma e si ingrandisce sotto il mouse */
  .sticker { transition: transform .35s cubic-bezier(.3,1.6,.5,1); }
  .sticker:hover { transform: scale(1.12) rotate(-8deg); }

  /* motto: una parola alla volta */
  .anim .motto .w { display: inline-block; opacity: .12; transition: opacity .4s, color .4s; transition-delay: calc(var(--i) * 90ms); }
  .anim .motto.in .w { opacity: 1; }

  /* ticker: rallenta sotto il mouse */
  .ticker:hover .ticker-track { animation-play-state: paused; }
}

/* scritta gigante che scorre con lo scroll */
.bigline { overflow: hidden; padding-block: clamp(20px, 4vw, 48px); }
.bigline-track { display: flex; gap: .5em; width: max-content; will-change: transform; }
.bigline span { font-family: var(--display); font-weight: 900; font-size: clamp(3.5rem, 13vw, 12rem); letter-spacing: -.06em; line-height: 1; text-transform: lowercase; white-space: nowrap; }
.bigline span.o { color: transparent; -webkit-text-stroke: 2px var(--laser); }
