:root {
  --paper: #f3eee4;
  --ink: #15120f;
  --muted: #6b645a;
  --pink: #ec1d7f;
  --orange: #ff5a1f;
  --blue: #2a35ff;
  --yellow: #ffc61a;
  --teal: #00a58c;

  --display: "Anybody", system-ui, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --gutter: clamp(16px, 4vw, 56px);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--display);
  font-variation-settings: "wdth" 100;
  font-size: 17px;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* grana di carta */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: .22;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

a { color: inherit; }
::selection { background: var(--pink); color: var(--paper); }

/* ---------- BAR ---------- */
.bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px var(--gutter);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .02em;
  mix-blend-mode: difference;
  color: #fff;
}
.bar a { text-decoration: none; }
.bar__brand { font-variation-settings: "wdth" 130; font-weight: 800; }
.bar__brand span { font-weight: 400; opacity: .7; }
.bar__nav { display: flex; gap: clamp(12px, 2.4vw, 32px); }
.bar__nav a { position: relative; }
.bar__nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -3px;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .35s cubic-bezier(.7, 0, .2, 1);
}
.bar__nav a:hover::after { transform: scaleX(1); transform-origin: left; }

@media (max-width: 640px) {
  .bar__nav a:not(.bar__cta) { display: none; }
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 88px var(--gutter) 28px;
  overflow: hidden;
  isolation: isolate;
  cursor: crosshair;
}

.hero__kicker {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .14em;
}

.ink { position: absolute; inset: 0; z-index: -1; filter: blur(2px); }
.ink__b {
  position: absolute;
  border-radius: 46% 54% 38% 62% / 55% 38% 62% 45%;
  mix-blend-mode: multiply;
  opacity: .85;
  animation: blob 14s ease-in-out infinite alternate;
}
.ink__b--1 { width: 38vmax; height: 34vmax; background: var(--pink);   top: 4vmax;  right: -10vmax; }
.ink__b--2 { width: 26vmax; height: 28vmax; background: var(--yellow); top: 18vh;    right: 18vw; animation-duration: 11s; animation-delay: -4s; }
.ink__b--3 { width: 30vmax; height: 24vmax; background: var(--blue);   bottom: -10vmax; left: -8vmax; animation-duration: 17s; opacity: .7; }
.ink__b--4 { width: 16vmax; height: 16vmax; background: var(--teal);   bottom: 14vh; right: 6vw; animation-duration: 9s; animation-delay: -2s; }

@keyframes blob {
  0%   { transform: translate(0, 0) rotate(0) scale(1); border-radius: 46% 54% 38% 62% / 55% 38% 62% 45%; }
  50%  { border-radius: 62% 38% 56% 44% / 40% 60% 40% 60%; }
  100% { transform: translate(3vw, 4vh) rotate(40deg) scale(1.08); border-radius: 38% 62% 44% 56% / 62% 44% 56% 38%; }
}

.mark {
  align-self: center;
  margin: 0;
  line-height: .78;
  font-weight: 900;
  user-select: none;
}
.mark__row {
  display: block;
  font-size: clamp(96px, 23vw, 420px);
  letter-spacing: -.02em;
  white-space: nowrap;
}
.l {
  display: inline-block;
  font-variation-settings: "wdth" 100, "wght" 900;
  animation: eq 1.6s cubic-bezier(.5, 0, .5, 1) infinite alternate;
  animation-delay: calc(var(--i) * -.37s);
  transform-origin: 50% 100%;
}
.l:nth-child(2), .l:nth-child(4) { font-variation-settings: "wdth" 100, "wght" 300; animation-name: eq-thin; }

@keyframes eq {
  from { font-variation-settings: "wdth" 62, "wght" 900; }
  to   { font-variation-settings: "wdth" 118, "wght" 800; }
}
@keyframes eq-thin {
  from { font-variation-settings: "wdth" 118, "wght" 300; }
  to   { font-variation-settings: "wdth" 66, "wght" 500; }
}

.l.pop { animation: pop .45s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes pop {
  0%   { transform: translateY(0) scaleY(1); }
  30%  { transform: translateY(-.08em) scaleY(1.12); }
  100% { transform: translateY(0) scaleY(1); }
}

.mark__lab {
  display: block;
  margin-top: .1em;
  padding-left: .06em;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(56px, 11vw, 200px);
  line-height: .9;
}

.hero__foot {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  flex-wrap: wrap;
}
.hero__claim {
  margin: 0;
  max-width: 22ch;
  font-size: clamp(20px, 2.4vw, 32px);
  font-weight: 700;
  line-height: 1.1;
  font-variation-settings: "wdth" 80;
  text-transform: uppercase;
}
.hero__claim em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  text-transform: none;
  font-size: 1.15em;
}
.hero__hint {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .12em;
}
.dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--pink);
  animation: beat .8s ease-in-out infinite;
}
@keyframes beat { 50% { transform: scale(1.6); background: var(--orange); } }

/* ---------- TICKER ---------- */
.ticker {
  overflow: hidden;
  background: var(--ink);
  color: var(--paper);
  border-block: 2px solid var(--ink);
  transform: rotate(-1.4deg);
  margin: 0 -2vw;
  position: relative;
  z-index: 2;
}
.ticker--rev { background: var(--yellow); color: var(--ink); transform: rotate(1.2deg); }
.ticker__track {
  display: flex;
  width: max-content;
  animation: slide 22s linear infinite;
}
.ticker--rev .ticker__track { animation-direction: reverse; animation-duration: 28s; }
.ticker span {
  padding: 14px 0;
  font-size: clamp(22px, 4vw, 52px);
  font-weight: 900;
  font-variation-settings: "wdth" 140;
  text-transform: uppercase;
  white-space: nowrap;
}
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- SECTIONS ---------- */
.sec { padding: clamp(80px, 12vw, 160px) var(--gutter); }

.sec__label {
  margin: 0 0 clamp(32px, 5vw, 64px);
  display: flex;
  align-items: baseline;
  gap: 14px;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .14em;
}
.sec__label span {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 44px;
  letter-spacing: 0;
  line-height: 1;
}
.sec__label em { font-style: normal; color: var(--muted); }
.sec__label--inv em { color: inherit; opacity: .6; }

/* about */
.about { display: grid; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) {
  .about { grid-template-columns: 1fr 3fr; gap: 48px; }
}
.about__lead {
  margin: 0 0 .8em;
  font-size: clamp(30px, 4.6vw, 68px);
  font-weight: 800;
  font-variation-settings: "wdth" 76;
  line-height: 1.02;
  letter-spacing: -.01em;
}
.about__text {
  margin: 0;
  max-width: 56ch;
  font-size: clamp(17px, 1.5vw, 21px);
}
.about__sign {
  margin: 2em 0 0;
  font-family: var(--serif);
  font-size: clamp(22px, 2vw, 28px);
}
.about__sign strong { font-style: italic; font-weight: 400; }

.m {
  color: inherit;
  background: linear-gradient(transparent 58%, var(--mc) 58%, var(--mc) 92%, transparent 92%);
  background-size: 0% 100%;
  background-repeat: no-repeat;
  transition: background-size .9s cubic-bezier(.7, 0, .2, 1);
  padding: 0 .06em;
}
.m.in { background-size: 100% 100%; }
.m--pink   { --mc: var(--pink); }
.about__lead .m--pink { --mc: color-mix(in srgb, var(--pink) 55%, transparent); }
.m--yellow { --mc: var(--yellow); }
.m--blue   { --mc: color-mix(in srgb, var(--blue) 35%, transparent); }
.m--orange { --mc: color-mix(in srgb, var(--orange) 55%, transparent); }

/* courses */
.setlist {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 2px solid var(--ink);
}
.track {
  position: relative;
  display: grid;
  grid-template-columns: 3ch 1fr;
  column-gap: 16px;
  align-items: baseline;
  padding: clamp(18px, 2.4vw, 30px) 8px;
  border-bottom: 2px solid var(--ink);
  isolation: isolate;
  overflow: hidden;
}
.track::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--c);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform .45s cubic-bezier(.7, 0, .2, 1);
}
.track__n { font-family: var(--serif); font-style: italic; font-size: 22px; }
.track__t {
  margin: 0;
  font-size: clamp(36px, 7vw, 108px);
  font-weight: 900;
  font-variation-settings: "wdth" 70;
  line-height: .9;
  text-transform: uppercase;
  letter-spacing: -.01em;
  transition: font-variation-settings .5s cubic-bezier(.7, 0, .2, 1), transform .5s cubic-bezier(.7, 0, .2, 1);
}
.track__d {
  grid-column: 2;
  margin: 10px 0 0;
  max-width: 46ch;
  color: var(--muted);
  transition: color .3s;
}
.track__tag {
  grid-column: 2;
  justify-self: start;
  margin-top: 12px;
  padding: 3px 10px;
  border: 1.5px solid currentColor;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
}
@media (min-width: 900px) {
  .track { grid-template-columns: 4ch minmax(0, 1.3fr) minmax(0, 1fr) auto; column-gap: 32px; align-items: center; }
  .track__d, .track__tag { grid-column: auto; margin: 0; }
}
@media (hover: hover) {
  .track:hover::before { transform: scaleY(1); }
  .track:hover .track__t { font-variation-settings: "wdth" 84; transform: translateX(.12em); }
  .track:hover .track__d { color: var(--ink); }
  .track:last-child:hover,
  .track:nth-child(3):hover { color: var(--paper); }
  .track:last-child:hover .track__d,
  .track:nth-child(3):hover .track__d { color: var(--paper); }
}

/* stage */
.stage { overflow: hidden; }
.board {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 40px;
}
@media (min-width: 820px) {
  .board { grid-template-columns: 1.2fr 1fr; grid-template-rows: auto auto; gap: 48px 40px; }
  .poster--a { grid-row: span 2; }
}
@media (min-width: 1200px) {
  .board { grid-template-columns: 1.3fr 1fr 1fr; grid-template-rows: auto; align-items: start; }
  .poster--a { grid-row: auto; }
  .poster--c { margin-top: 120px; }
  .poster--b { margin-top: 40px; }
}

.poster {
  position: relative;
  padding: clamp(24px, 3vw, 40px);
  min-height: 340px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  box-shadow: 6px 6px 0 var(--ink);
  border: 2px solid var(--ink);
  transition: transform .5s cubic-bezier(.2, 1.4, .4, 1);
}
.poster--a { background: var(--pink); color: var(--paper); transform: rotate(-2deg); min-height: 480px; }
.poster--b { background: var(--yellow); transform: rotate(1.6deg); }
.poster--c { background: var(--blue); color: var(--paper); transform: rotate(-1deg); }
.poster:hover { transform: rotate(0) scale(1.02); }

/* nastro adesivo */
.poster::before {
  content: "";
  position: absolute;
  top: -14px; left: 50%;
  width: 110px; height: 28px;
  background: rgba(243, 238, 228, .75);
  transform: translateX(-50%) rotate(-3deg);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .15);
}

.poster__meta {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .14em;
}
.poster__t {
  margin: 0 0 16px;
  font-size: clamp(34px, 4.2vw, 64px);
  font-weight: 900;
  font-variation-settings: "wdth" 60;
  line-height: .9;
  text-transform: uppercase;
}
.poster--a .poster__t { font-size: clamp(44px, 6vw, 96px); }
.poster__p { margin: 0; max-width: 38ch; }
.poster__big {
  margin-bottom: auto;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(64px, 12vw, 180px);
  line-height: .8;
  margin-top: 56px;
  letter-spacing: -.03em;
}

.poster__stamp {
  position: absolute;
  top: 28px; right: 24px;
  padding: 10px 14px;
  border: 2px solid currentColor;
  border-radius: 50%;
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  line-height: 1;
  transform: rotate(12deg);
}
.poster__stamp--alt { border-radius: 4px; transform: rotate(-8deg); }

/* contact */
.contact {
  position: relative;
  padding: clamp(100px, 14vw, 200px) var(--gutter) clamp(60px, 8vw, 100px);
  margin-top: -2vw;
  background: var(--ink);
  color: var(--paper);
}
.contact__t {
  margin: 0 0 clamp(48px, 7vw, 96px);
  font-size: clamp(64px, 15vw, 260px);
  font-weight: 900;
  font-variation-settings: "wdth" 60;
  line-height: .82;
  text-transform: uppercase;
  letter-spacing: -.02em;
}
.contact__swap {
  display: inline-block;
  color: var(--yellow);
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  text-transform: none;
  letter-spacing: -.01em;
  transition: color .3s;
}
.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
  border-top: 1px solid rgba(243, 238, 228, .3);
  padding-top: 28px;
}
@media (min-width: 900px) {
  .contact__grid { grid-template-columns: 1fr 1fr auto; gap: 40px; }
}
.contact small {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .14em;
  opacity: .6;
}
.contact__big {
  font-size: clamp(26px, 3.4vw, 48px);
  font-weight: 800;
  font-variation-settings: "wdth" 90;
  line-height: 1.05;
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: color .25s;
}
.contact__big:hover { color: var(--pink); }
.contact__small p { margin: 0 0 18px; font-size: 18px; }
.contact__small a { text-decoration-thickness: 1px; text-underline-offset: 4px; }
.contact__small a:hover { color: var(--yellow); }

.foot {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 20px var(--gutter) 28px;
  background: var(--ink);
  color: rgba(243, 238, 228, .55);
  font-size: 13px;
}
.foot a { text-decoration: none; }
.foot a:hover { color: var(--paper); }

/* ---------- FX: esplosioni al click ---------- */
.fx { position: fixed; inset: 0; pointer-events: none; z-index: 90; overflow: hidden; }
.bit {
  position: absolute;
  left: 0; top: 0;
  will-change: transform, opacity;
  font-family: var(--serif);
  line-height: 1;
}

/* reveal */
.rv { opacity: 0; transform: translateY(40px); transition: opacity .8s, transform .9s cubic-bezier(.2, .8, .2, 1); }
.rv.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .rv { opacity: 1; transform: none; }
  .m { background-size: 100% 100%; }
}
