:root {
  --bg: #0a0a0a;
  --bg-2: #111111;
  --bg-3: #1a1a1a;
  --text: #f3f3ef;
  --muted: #8e8e88;
  --line: rgba(243, 243, 239, .12);
  --line-2: rgba(243, 243, 239, .28);
  --accent: #c8ff2e;
  --accent-ink: #0a0a0a;
  --display: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --sans: "Inter", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --gutter: clamp(16px, 4.5vw, 64px);
  --max: 1440px;
  --header: 72px;
  --radius: 14px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.menu-open { overflow: hidden; }
main { min-height: 60vh; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
input { font: inherit; color: inherit; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.i { width: 1.1em; height: 1.1em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.muted { color: var(--muted); }
.empty { color: var(--muted); padding: 48px 0; }

/* ---------- tipografia ---------- */
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  margin: 0 0 20px;
  font: 500 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
.kicker::before { content: ""; width: 8px; height: 8px; background: var(--accent); border-radius: 2px; }
.mono { font: 400 12px/1.4 var(--mono); letter-spacing: .06em; color: var(--muted); text-transform: uppercase; }
.h-display {
  margin: 0;
  font-family: var(--display); font-weight: 800; font-stretch: 125%;
  font-size: clamp(34px, 5.4vw, 80px); line-height: .95; letter-spacing: -.02em; text-transform: uppercase;
  text-wrap: balance;
}
.lead { font-size: clamp(17px, 1.4vw, 20px); line-height: 1.55; color: #cfcfca; margin: 0; max-width: 56ch; }
.accent { color: var(--accent); }

/* ---------- pulsanti ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 48px; padding: 0 22px;
  border: 1px solid var(--line-2); border-radius: 999px;
  font: 600 14px/1 var(--sans); letter-spacing: .01em;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.btn .i { transition: transform .25s var(--ease); }
.btn:active { transform: scale(.97); }
.btn--accent { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: 13px; }
@media (hover: hover) {
  .btn:hover { border-color: var(--text); }
  .btn:hover .i { transform: translateX(4px); }
  .btn--accent:hover { background: var(--text); border-color: var(--text); }
}
.round {
  width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-2);
  display: grid; place-items: center; transition: background .25s, color .25s, border-color .25s;
}
.round:disabled { opacity: .3; cursor: default; }
@media (hover: hover) { .round:not(:disabled):hover { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); } }

.tag {
  display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px;
  font: 500 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase;
  border: 1px solid var(--line-2); color: var(--text); white-space: nowrap;
}
.tag--motori { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

/* ---------- mirino (angoli del viewfinder) ---------- */
.vf { position: absolute; inset: 0; pointer-events: none; --c: 22px; --w: 2px; --o: 0px; }
.vf i { position: absolute; width: var(--c); height: var(--c); border: 0 solid var(--accent); }
.vf i:nth-child(1) { top: var(--o); left: var(--o); border-top-width: var(--w); border-left-width: var(--w); }
.vf i:nth-child(2) { top: var(--o); right: var(--o); border-top-width: var(--w); border-right-width: var(--w); }
.vf i:nth-child(3) { bottom: var(--o); left: var(--o); border-bottom-width: var(--w); border-left-width: var(--w); }
.vf i:nth-child(4) { bottom: var(--o); right: var(--o); border-bottom-width: var(--w); border-right-width: var(--w); }
.vf--hover i { transition: transform .35s var(--ease), opacity .35s var(--ease); opacity: 0; }
.vf--hover i:nth-child(1) { transform: translate(8px, 8px); }
.vf--hover i:nth-child(2) { transform: translate(-8px, 8px); }
.vf--hover i:nth-child(3) { transform: translate(8px, -8px); }
.vf--hover i:nth-child(4) { transform: translate(-8px, -8px); }
@media (hover: hover) {
  a:hover .vf--hover i, figure:hover .vf--hover i { opacity: 1; transform: none; }
}

/* ---------- intestazione ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header);
  display: flex; align-items: center; gap: 24px; padding-inline: var(--gutter);
  transition: border-color .3s;
  border-bottom: 1px solid transparent; isolation: isolate;
}
.header::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .3s;
  background: rgba(10, 10, 10, .78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.header.is-scrolled { border-bottom-color: var(--line); }
.header.is-scrolled::before { opacity: 1; }
body.menu-open .header { border-bottom-color: transparent; }
body.menu-open .header::before { opacity: 0; }
.brand { display: inline-flex; align-items: center; gap: 12px; z-index: 2; }
.brand__mark {
  width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center;
  background: var(--accent); color: var(--accent-ink);
  font: 800 15px/1 var(--display); font-stretch: 125%; letter-spacing: -.02em;
}
.brand__name { display: flex; flex-direction: column; font: 700 15px/1.1 var(--sans); letter-spacing: -.01em; }
.brand__name small { font: 400 10.5px/1.4 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a {
  position: relative; padding: 10px 14px; border-radius: 999px;
  font-size: 14px; font-weight: 500; color: #cfcfca; transition: color .2s, background .2s;
}
.nav a.is-active { color: var(--text); background: rgba(243, 243, 239, .08); }
.nav a.is-active::after { content: ""; position: absolute; left: 50%; bottom: 3px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--accent); }
@media (hover: hover) { .nav a:hover { color: var(--text); background: rgba(243, 243, 239, .06); } }
.nav__num, .nav__only-m { display: none; }
.header__tools { display: flex; align-items: center; gap: 8px; }
.icon-link { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; color: #cfcfca; transition: color .2s, background .2s; }
.icon-link svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.icon-link .fill { fill: currentColor; stroke: none; }
.icon-link .cut { fill: var(--bg); stroke: none; }
@media (hover: hover) { .icon-link:hover { color: var(--accent-ink); background: var(--accent); } .icon-link:hover .cut { fill: var(--accent); } }
.burger { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); position: relative; z-index: 2; }
.burger span { position: absolute; left: 13px; right: 13px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.burger span:nth-child(1) { top: 16px; }
.burger span:nth-child(2) { top: 21px; }
.burger span:nth-child(3) { top: 26px; }
body.menu-open .burger span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
body.menu-open .burger span:nth-child(2) { opacity: 0; }
body.menu-open .burger span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

@media (max-width: 1080px) {
  .header .header__cta, .header .icon-link { display: none; }
  .burger { display: block; }
  .header__tools { margin-left: auto; }
  .nav {
    position: fixed; inset: 0; z-index: 1; margin: 0;
    flex-direction: column; justify-content: center; gap: 0;
    padding: calc(var(--header) + 16px) var(--gutter) 40px;
    background: var(--bg);
    opacity: 0; visibility: hidden; transition: opacity .3s var(--ease), visibility .3s;
  }
  .nav.is-open { opacity: 1; visibility: visible; }
  .nav a {
    display: flex; align-items: baseline; gap: 16px; padding: 12px 0; border-radius: 0;
    border-bottom: 1px solid var(--line);
    font: 800 clamp(30px, 8vw, 52px)/1 var(--display); font-stretch: 125%; text-transform: uppercase; letter-spacing: -.02em;
    color: var(--text);
    transform: translateY(14px); opacity: 0; transition: transform .45s var(--ease), opacity .45s var(--ease);
  }
  .nav.is-open a { transform: none; opacity: 1; }
  .nav.is-open a:nth-child(2) { transition-delay: .03s; } .nav.is-open a:nth-child(3) { transition-delay: .06s; }
  .nav.is-open a:nth-child(4) { transition-delay: .09s; } .nav.is-open a:nth-child(5) { transition-delay: .12s; }
  .nav.is-open a:nth-child(6) { transition-delay: .15s; } .nav.is-open a:nth-child(7) { transition-delay: .18s; }
  .nav a.is-active { background: none; color: var(--accent); }
  .nav a.is-active::after { display: none; }
  .nav__num { display: inline; font: 500 12px/1 var(--mono); color: var(--muted); letter-spacing: .1em; }
  .nav__only-m { display: flex; }
}

/* ---------- apertura della home ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; isolation: isolate; }
.hero__slides { position: absolute; inset: 0; z-index: -2; background: var(--bg-2); }
.hero__slides img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.08); transition: opacity 1.2s var(--ease), transform 7s linear;
}
.hero__slides img.is-on { opacity: 1; transform: scale(1); }
.hero__shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(10,10,10,.65) 0%, rgba(10,10,10,0) 22%),
    linear-gradient(0deg, rgba(10,10,10,.95) 0%, rgba(10,10,10,.55) 38%, rgba(10,10,10,0) 70%);
}
.hero > .vf { --o: clamp(14px, 2.4vw, 32px); --c: clamp(22px, 3vw, 40px); top: var(--header); }
.hero__focus {
  position: absolute; top: 40%; left: 76%; width: 54px; height: 38px; pointer-events: none;
  border: 1.5px solid rgba(243,243,239,.7); border-radius: 4px;
  animation: focus 5s var(--ease) infinite;
}
.hero__focus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 4px; height: 4px; margin: -2px; border-radius: 50%; background: var(--accent); }
@keyframes focus {
  0%, 12% { transform: scale(1.5); opacity: 0; }
  22% { transform: scale(1); opacity: 1; border-color: rgba(243,243,239,.7); }
  30%, 80% { border-color: var(--accent); opacity: 1; }
  92%, 100% { opacity: 0; }
}
.hud {
  display: flex; align-items: center; gap: 18px;
  font: 500 11.5px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: rgba(243,243,239,.8);
}
.hero__hud { position: absolute; top: calc(var(--header) + clamp(28px, 4vw, 56px)); left: 0; right: 0; justify-content: space-between; padding-inline: calc(var(--gutter) + 16px); }
.rec { display: inline-flex; align-items: center; gap: 8px; }
.rec::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #ff3b30; animation: blink 1.4s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.hero__content { position: relative; padding-top: calc(var(--header) + 120px); padding-bottom: clamp(32px, 5vw, 64px); }
.hero__title {
  margin: 0 0 clamp(24px, 3vw, 40px);
  font-family: var(--display); font-weight: 800; font-stretch: 125%;
  font-size: clamp(44px, 9.2vw, 152px); line-height: .88; letter-spacing: -.035em; text-transform: uppercase;
}
.hero__title span { display: block; }
.hero__title span + span { color: var(--accent); }
.hero__row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: end; }
.hero__text { margin: 0; max-width: 48ch; font-size: clamp(16px, 1.3vw, 19px); line-height: 1.55; color: #d8d8d3; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hero__actions .btn--ghost { background: rgba(10,10,10,.35); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.hero__bars { display: flex; gap: 8px; margin-top: clamp(28px, 4vw, 48px); }
.hero__bars button { flex: 1; height: 24px; position: relative; }
.hero__bars button::before, .hero__bars button::after { content: ""; position: absolute; left: 0; right: 0; top: 11px; height: 2px; border-radius: 2px; background: rgba(243,243,239,.22); }
.hero__bars button::after { right: auto; width: 0; background: var(--accent); }
.hero__bars button.is-done::after { width: 100%; }
.hero__bars button.is-on::after { animation: bar var(--slide, 5s) linear forwards; }
@keyframes bar { to { width: 100%; } }

@media (max-width: 760px) {
  .hero__row { grid-template-columns: 1fr; gap: 24px; }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; }
  .hero__focus { left: 58%; top: 34%; }
  .hero__hud span:last-child { display: none; }
}

/* ---------- nastro eventi ---------- */
.ticker { background: var(--accent); color: var(--accent-ink); overflow: hidden; border-block: 1px solid var(--accent); }
.ticker__track { display: flex; width: max-content; animation: ticker 40s linear infinite; }
.ticker__track > div { display: flex; align-items: center; }
.ticker a { display: inline-flex; align-items: baseline; gap: 12px; padding: 16px 22px; font: 500 12.5px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.ticker b { font: 800 15px/1 var(--display); font-stretch: 125%; letter-spacing: -.01em; }
.ticker__dot { width: 6px; height: 6px; background: var(--accent-ink); border-radius: 50%; flex: none; }
@media (hover: hover) { .ticker:hover .ticker__track { animation-play-state: paused; } .ticker a:hover b { text-decoration: underline; } }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- sezioni ---------- */
.section { padding-block: clamp(72px, 10vw, 140px); }
.section + .section { border-top: 1px solid var(--line); }
.sec-head { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 32px; align-items: end; margin-bottom: clamp(36px, 5vw, 64px); }
.sec-head p.muted { margin: 0; max-width: 46ch; justify-self: end; }
.sec-head__tools { display: flex; gap: 10px; justify-self: end; align-items: center; flex-wrap: wrap; }
@media (max-width: 760px) {
  .sec-head { grid-template-columns: 1fr; gap: 20px; }
  .sec-head p.muted, .sec-head__tools { justify-self: start; }
}

/* ---------- categorie ---------- */
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 24px); }
.tile { display: flex; flex-direction: column; gap: 14px; }
.tile__img { position: relative; margin: 0; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius); background: var(--bg-3); }
.tile__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease), filter .5s; filter: saturate(.9); }
.tile__img .vf { --o: 14px; }
.tile__img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10,10,10,.75), rgba(10,10,10,0) 45%); }
.tile__top { position: absolute; top: 18px; left: 18px; right: 18px; z-index: 1; display: flex; justify-content: space-between; font: 500 12px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.tile__title {
  position: absolute; left: 20px; right: 20px; bottom: 18px; z-index: 1; margin: 0;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  font: 800 clamp(26px, 2.6vw, 40px)/1 var(--display); font-stretch: 125%; text-transform: uppercase; letter-spacing: -.02em;
}
.tile__title .round { width: 44px; height: 44px; flex: none; background: rgba(10,10,10,.4); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.tile p { margin: 0; color: var(--muted); font-size: 15px; max-width: 42ch; }
@media (hover: hover) {
  .tile:hover .tile__img img { transform: scale(1.05); filter: saturate(1.05); }
  .tile:hover .round { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
}
@media (max-width: 900px) {
  .tiles { grid-template-columns: 1fr; }
  .tile__img { aspect-ratio: 16 / 11; }
}

/* ---------- chi sono ---------- */
.about { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.framed { position: relative; margin: 0; }
.framed > img { width: 100%; border-radius: var(--radius); object-fit: cover; }
.framed .vf { --o: -10px; --c: 26px; }
.framed figcaption { margin-top: 18px; }
.about__photo > img { aspect-ratio: 4 / 5; }
.about__body .h-display { margin-bottom: 24px; }
.about__body .lead { margin-bottom: 36px; }
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0 0 36px; border-top: 1px solid var(--line); }
.stats > div { padding: 20px 0; border-bottom: 1px solid var(--line); }
.stats > div:nth-child(odd) { padding-right: 20px; }
.stats > div:nth-child(even) { padding-left: 20px; border-left: 1px solid var(--line); }
.stats dd { margin: 0 0 6px; font: 800 clamp(32px, 3.6vw, 52px)/1 var(--display); font-stretch: 125%; letter-spacing: -.03em; color: var(--accent); }
.stats dt { font: 500 11.5px/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.sheet { display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); gap: clamp(8px, 1vw, 14px); }
.sheet figure { position: relative; margin: 0; }
.sheet img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; filter: grayscale(.25); transition: filter .4s; }
.sheet figcaption { margin-top: 8px; font: 400 11px/1 var(--mono); letter-spacing: .1em; color: var(--muted); }
@media (hover: hover) { .sheet figure:hover img { filter: none; } }
.about .sheet { grid-column: 1 / -1; margin-top: clamp(8px, 2vw, 24px); }
@media (max-width: 900px) {
  .about { grid-template-columns: 1fr; }
  .about__photo > img { aspect-ratio: 4 / 3.6; }
  .sheet { grid-template-columns: repeat(min(var(--n, 4), 2), minmax(0, 1fr)); }
}

/* ---------- eventi in home: tabellone ---------- */
.events { position: relative; }
.board { list-style: none; margin: 0 0 40px; padding: 0; border-top: 1px solid var(--line); }
.board a {
  position: relative;
  display: grid; grid-template-columns: 48px 130px minmax(0, 1fr) auto minmax(0, 220px) 48px; gap: 20px; align-items: center;
  padding: 22px 8px; border-bottom: 1px solid var(--line);
  transition: background .25s, padding .35s var(--ease);
}
.board__n, .board__date, .board__loc { font: 400 12.5px/1.2 var(--mono); letter-spacing: .06em; color: var(--muted); text-transform: uppercase; }
.board__title { font: 800 clamp(20px, 2.2vw, 32px)/1.05 var(--display); font-stretch: 112%; text-transform: uppercase; letter-spacing: -.015em; }
.board__go { justify-self: end; width: 40px; height: 40px; }
.board__thumb { display: none; }
@media (hover: hover) {
  .board a:hover { background: rgba(243,243,239,.04); padding-inline: 18px; }
  .board a:hover .board__title { color: var(--accent); }
  .board a:hover .round { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
}
.board__preview {
  position: absolute; left: 0; top: 0; z-index: 3; width: 300px; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px;
  pointer-events: none; opacity: 0; transition: opacity .25s; box-shadow: 0 30px 60px rgba(0,0,0,.6);
  outline: 2px solid var(--accent); outline-offset: 6px;
}
.board__preview.is-on { opacity: 1; }
@media (hover: none), (max-width: 900px) { .board__preview { display: none; } }
@media (max-width: 900px) {
  .board a { grid-template-columns: 88px minmax(0, 1fr) 40px; grid-template-rows: auto auto auto; gap: 4px 16px; padding: 16px 0; }
  .board__thumb { display: block; grid-row: 1 / 4; width: 88px; height: 88px; object-fit: cover; border-radius: 10px; }
  .board__n { display: none; }
  .board__date { grid-column: 2; }
  .board__title { grid-column: 2; font-size: 19px; }
  .board__loc { grid-column: 2; }
  .board .tag { display: none; }
  .board__go { grid-column: 3; grid-row: 1 / 4; }
}

/* ---------- portfolio in home: rullino orizzontale ---------- */
.rail {
  display: flex; gap: clamp(10px, 1.4vw, 20px); overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 0 var(--gutter) 8px; scroll-padding-inline: var(--gutter); scrollbar-width: none;
  cursor: grab;
}
.rail::-webkit-scrollbar { display: none; }
.rail.is-drag { cursor: grabbing; scroll-snap-type: none; }
.rail.is-drag a { pointer-events: none; }
@media (min-width: 1440px) { .rail { padding-inline: calc((100vw - var(--max)) / 2 + var(--gutter)); scroll-padding-inline: calc((100vw - var(--max)) / 2 + var(--gutter)); } }
.rail figure { position: relative; flex: none; margin: 0; width: clamp(240px, 30vw, 440px); scroll-snap-align: start; }
.rail figure:nth-child(3n + 2) { width: clamp(280px, 42vw, 620px); }
.rail img { width: 100%; height: clamp(320px, 38vw, 560px); object-fit: cover; border-radius: var(--radius); user-select: none; -webkit-user-drag: none; }
.rail figcaption { display: flex; justify-content: space-between; gap: 12px; margin-top: 12px; }
.rail figcaption span:last-child { color: var(--text); text-transform: none; letter-spacing: 0; font-family: var(--sans); font-size: 14px; }
.rail .vf { --o: 12px; bottom: 32px; }

/* ---------- piè di pagina ---------- */
.footer { border-top: 1px solid var(--line); background: var(--bg-2); overflow: hidden; }
.footer__cta { display: grid; gap: clamp(28px, 4vw, 48px); padding-block: clamp(72px, 10vw, 140px) clamp(48px, 6vw, 80px); }
.footer__title { margin: 0; font: 800 clamp(26px, 7.6vw, 124px)/.9 var(--display); font-stretch: 125%; text-transform: uppercase; letter-spacing: -.035em; }
.footer__title span { display: block; color: var(--accent); }
.footer__contact { display: flex; justify-content: space-between; align-items: end; gap: 22px 48px; flex-wrap: wrap; }
.footer__contact .lead { max-width: 48ch; }
.footer__mail {
  display: inline-flex; align-items: center; gap: 14px; max-width: 100%;
  font: 700 clamp(18px, 2vw, 28px)/1.2 var(--sans); letter-spacing: -.01em;
  border-bottom: 2px solid var(--accent); padding-bottom: 6px; overflow-wrap: anywhere;
}
@media (hover: hover) { .footer__mail:hover { color: var(--accent); } .footer__mail:hover .i { transform: translateX(4px); } }
.footer__mail .i { transition: transform .25s var(--ease); }
.footer__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 40px; align-items: start; padding-block: 40px; border-top: 1px solid var(--line); }
.footer__quote { margin: 0; font-size: 18px; line-height: 1.45; color: #cfcfca; max-width: 34ch; }
.footer__quote::before { content: "“"; display: block; font: 800 48px/.6 var(--display); color: var(--accent); margin-bottom: 8px; }
.newsletter label { display: block; margin-bottom: 12px; }
.newsletter__row { display: flex; gap: 8px; }
.newsletter input {
  flex: 1; min-width: 0; height: 48px; padding: 0 18px; border-radius: 999px;
  background: var(--bg); border: 1px solid var(--line-2); font-size: 16px; outline: none; transition: border-color .2s;
}
.newsletter input:focus { border-color: var(--accent); }
.newsletter button { width: 48px; height: 48px; flex: none; }
.newsletter.is-done input::placeholder { color: var(--accent); }
.footer__social { display: flex; gap: 6px; }
.footer__social .icon-link { border: 1px solid var(--line-2); }
.footer__word { display: block; width: 100%; padding-inline: var(--gutter); max-width: var(--max); margin: 0 auto; }
.footer__word text { font-family: var(--display); font-weight: 800; font-stretch: 125%; fill: var(--text); opacity: .07; }
.footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-block: 24px 32px; border-top: 1px solid var(--line); }
.footer__bottom a { transition: color .2s; }
@media (hover: hover) { .footer__bottom a:hover { color: var(--accent); } }
@media (max-width: 900px) {
  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ---------- intestazione delle pagine interne ---------- */
.phero { position: relative; isolation: isolate; overflow: hidden; padding-top: calc(var(--header) + clamp(64px, 9vw, 140px)); padding-bottom: clamp(48px, 6vw, 88px); border-bottom: 1px solid var(--line); }
.phero__bg { position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: center; opacity: .38; transform: scale(1.04); }
.phero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, var(--bg) 6%, rgba(10,10,10,.55) 60%, rgba(10,10,10,.8)); }
.phero__title { margin: 0 0 24px; font: 800 clamp(36px, 10vw, 168px)/.86 var(--display); font-stretch: 125%; text-transform: uppercase; letter-spacing: -.04em; text-wrap: balance; }
.phero__row { display: flex; justify-content: space-between; align-items: end; gap: 24px 48px; flex-wrap: wrap; }
.phero__lead { margin: 0; max-width: 54ch; font-size: clamp(16px, 1.3vw, 19px); color: #d2d2cd; }
.counter { display: flex; gap: 10px; flex-wrap: wrap; margin: 0; }
.counter span { display: inline-flex; align-items: baseline; gap: 8px; padding: 10px 16px; border: 1px solid var(--line-2); border-radius: 999px; font: 500 12px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.counter b { font: 800 18px/1 var(--display); font-stretch: 125%; color: var(--accent); letter-spacing: -.02em; }
.back { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 28px; font: 500 12px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); transition: color .2s; }
.back .i { transform: scaleX(-1); }
@media (hover: hover) { .back:hover { color: var(--accent); } }

/* ---------- elenco album ---------- */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 3vw, 44px) clamp(12px, 1.6vw, 24px); padding-block: clamp(48px, 6vw, 88px) clamp(72px, 9vw, 120px); }
.card { display: flex; flex-direction: column; gap: 14px; }
.card__img { position: relative; margin: 0; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: var(--bg-3); }
.card__img > img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.card__img .vf { --o: 12px; }
.card__count { position: absolute; right: 12px; bottom: 12px; padding: 7px 11px; border-radius: 999px; background: rgba(10,10,10,.7); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); font: 500 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.card__meta { display: flex; gap: 12px; justify-content: space-between; }
.card h2 { margin: 0; font: 800 clamp(20px, 1.9vw, 28px)/1.05 var(--display); font-stretch: 112%; text-transform: uppercase; letter-spacing: -.015em; transition: color .2s; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
@media (hover: hover) { .card:hover .card__img > img { transform: scale(1.05); } .card:hover h2 { color: var(--accent); } }
@media (max-width: 1000px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .cards { grid-template-columns: 1fr; } }

/* ---------- archivio eventi ---------- */
.filters { position: sticky; top: var(--header); z-index: 10; background: rgba(10,10,10,.85); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.filters .wrap { display: flex; gap: 8px; padding-block: 14px; overflow-x: auto; scrollbar-width: none; }
.filters button { min-height: 40px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 14px; font-weight: 500; white-space: nowrap; transition: background .2s, color .2s, border-color .2s; }
.filters button.is-active { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
@media (hover: hover) { .filters button:not(.is-active):hover { border-color: var(--text); } }
.timeline { padding-block: clamp(40px, 5vw, 72px) clamp(72px, 9vw, 120px); }
.year { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 32px; padding-block: 32px; border-top: 1px solid var(--line); }
.year:first-child { border-top: 0; padding-top: 0; }
.year__label { position: sticky; top: calc(var(--header) + 96px); align-self: start; font: 800 clamp(48px, 5vw, 72px)/.9 var(--display); font-stretch: 125%; letter-spacing: -.04em; color: transparent; -webkit-text-stroke: 1.5px var(--accent); }
.year .cards { padding: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card__tags { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.card__desc { font-size: 14.5px; }
@media (max-width: 900px) {
  .year { grid-template-columns: 1fr; gap: 20px; }
  .year__label { position: static; }
}
@media (max-width: 620px) { .year .cards { grid-template-columns: 1fr; } }

/* ---------- album ---------- */
.album-hero { min-height: 72vh; display: flex; align-items: flex-end; }
.album-hero .phero__bg { opacity: .5; }
.masonry { columns: 3 320px; column-gap: clamp(10px, 1.2vw, 16px); padding-block: clamp(32px, 4vw, 56px); }
.masonry figure { position: relative; margin: 0 0 clamp(10px, 1.2vw, 16px); break-inside: avoid; cursor: zoom-in; border-radius: 12px; overflow: hidden; background: var(--bg-3); }
.masonry img { width: 100%; transition: transform .7s var(--ease), opacity .3s; }
.masonry figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; display: flex; gap: 10px; align-items: baseline;
  padding: 36px 14px 12px; background: linear-gradient(0deg, rgba(10,10,10,.85), transparent);
  font-size: 14px; opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .3s var(--ease);
}
.masonry .vf { --o: 10px; }
@media (hover: hover) { .masonry figure:hover img { transform: scale(1.03); } .masonry figure:hover figcaption { opacity: 1; transform: none; } }
@media (hover: none) { .masonry figcaption { opacity: 1; transform: none; } }
.album-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding-bottom: clamp(72px, 9vw, 120px); }
.album-nav a { display: flex; flex-direction: column; gap: 10px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .2s, background .2s; }
.album-nav a.next { text-align: right; align-items: flex-end; }
.album-nav b { font: 800 clamp(18px, 2vw, 28px)/1.05 var(--display); font-stretch: 112%; text-transform: uppercase; letter-spacing: -.015em; }
@media (hover: hover) { .album-nav a:hover { border-color: var(--accent); background: rgba(200,255,46,.04); } }
@media (max-width: 620px) { .album-nav { grid-template-columns: 1fr; } .album-nav a.next { text-align: left; align-items: flex-start; } }

/* ---------- portfolio ---------- */
.best { columns: 3 300px; column-gap: clamp(10px, 1.2vw, 16px); padding-block: clamp(40px, 5vw, 72px) clamp(72px, 9vw, 120px); }
.best figure { position: relative; margin: 0 0 clamp(10px, 1.2vw, 16px); break-inside: avoid; cursor: zoom-in; }
.best img { width: 100%; border-radius: 12px; }
.best figcaption { display: flex; justify-content: space-between; gap: 12px; padding: 10px 2px 8px; font-size: 14px; }
.best .vf { --o: 10px; bottom: 44px; }

/* ---------- biografia ---------- */
.bio-hero { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: end; padding-top: calc(var(--header) + clamp(40px, 6vw, 96px)); padding-bottom: clamp(56px, 7vw, 100px); }
.bio-hero .framed > img { aspect-ratio: 4 / 5; }
.bio-title { margin: 0 0 24px; font: 800 clamp(48px, 8.6vw, 148px)/.86 var(--display); font-stretch: 125%; text-transform: uppercase; letter-spacing: -.04em; }
.bio-sub { margin: 0; font-size: clamp(18px, 1.6vw, 24px); color: var(--accent); }
.bio-body { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 96px); padding-block: clamp(56px, 7vw, 100px); border-top: 1px solid var(--line); }
.bio-text p { margin: 0 0 1.2em; font-size: clamp(17px, 1.35vw, 20px); line-height: 1.7; color: #d6d6d1; }
.bio-text p:first-child { font-size: clamp(20px, 1.8vw, 26px); line-height: 1.45; color: var(--text); }
.bio-body .stats { align-self: start; }
.bio-quote { padding-block: clamp(56px, 7vw, 100px) clamp(72px, 9vw, 120px); border-top: 1px solid var(--line); }
.bio-quote blockquote { margin: clamp(48px, 6vw, 88px) 0 40px; font: 800 clamp(32px, 5.4vw, 88px)/.95 var(--display); font-stretch: 125%; text-transform: uppercase; letter-spacing: -.03em; text-wrap: balance; }
.bio-quote blockquote::before { content: "“"; color: var(--accent); }
.bio-quote blockquote::after { content: "”"; color: var(--accent); }
@media (max-width: 900px) {
  .bio-hero, .bio-body { grid-template-columns: 1fr; }
  .bio-hero .framed > img { aspect-ratio: 4 / 3.6; }
}

/* ---------- lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 200; display: grid; grid-template-rows: auto minmax(0, 1fr) auto;
  background: #060606; opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox__bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px var(--gutter); }
.lightbox__count b { color: var(--accent); font-weight: 500; }
.lightbox__close { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; }
.lightbox__close .i { width: 20px; height: 20px; }
.lightbox__stage { position: relative; display: grid; place-items: center; padding: 0 clamp(16px, 8vw, 120px); min-height: 0; touch-action: pan-y; }
.lightbox__stage img { width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; user-select: none; -webkit-user-drag: none; transition: opacity .25s; }
.lightbox__stage img.is-loading { opacity: .2; }
.lightbox__prev, .lightbox__next { position: absolute; top: 50%; margin-top: -24px; background: rgba(10,10,10,.5); }
.lightbox__prev { left: var(--gutter); }
.lightbox__prev .i { transform: scaleX(-1); }
.lightbox__next { right: var(--gutter); }
.lightbox__cap { padding: 16px var(--gutter) 24px; text-align: center; font-size: 15px; color: #d2d2cd; min-height: 56px; }
.lightbox__cap em { color: var(--muted); font-style: normal; }
@media (max-width: 700px) { .lightbox__prev, .lightbox__next { display: none; } .lightbox__stage { padding: 0; } }

/* ---------- comparsa allo scorrimento ---------- */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease) var(--d, 0ms), transform .8s var(--ease) var(--d, 0ms); }
[data-reveal].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
  .ticker__track { animation: none; }
  .hero__focus { display: none; }
  .hero__slides img { transform: none; }
}
