/* Corsi Barman Bergamo — Quality Academy */

@font-face {
  font-family: "Anton";
  src: url("../fonts/anton-latin-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("../fonts/hanken-grotesk-latin-wght.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #0f100e;
  --ink-2: #1a1c18;
  --ink-3: #262924;
  --ink-deep: #090a08;
  --paper: #f3f4ef;
  --paper-2: #e6e8e0;
  --lime: #81bc26;
  --lime-ink: #10140a;
  --muted-ink: #a9aea3;
  --muted-paper: #4a4e45;
  --muted-lime: #233009;

  --display: "Anton", "Arial Narrow", sans-serif;
  --text: "Hanken Grotesk", system-ui, sans-serif;

  --wrap: 82rem;
  --gutter: clamp(1rem, 4vw, 3rem);
  --section: clamp(4.5rem, 10vw, 8.5rem);
  --top-h: 4.5rem;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--top-h) + .5rem); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.55;
  font-weight: 400;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
address { font-style: normal; }
::selection { background: var(--lime); color: var(--lime-ink); }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; }
.paper :focus-visible, .lime :focus-visible { outline-color: var(--ink); }
html { scrollbar-color: var(--ink-3) var(--ink); }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.i { width: 1.15em; height: 1.15em; flex: none; }

.skip {
  position: fixed; left: 1rem; top: -4rem; z-index: 100;
  background: var(--lime); color: var(--lime-ink); padding: .75rem 1rem; font-weight: 700;
}
.skip:focus { top: 1rem; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }

.paper { background: var(--paper); color: var(--ink); }
.ink { background: var(--ink); color: var(--paper); }
.lime { background: var(--lime); color: var(--lime-ink); }
.paper, .ink, .lime { padding-block: var(--section); }

.h2 {
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(2.75rem, 6.2vw, 5.75rem);
  line-height: .98;
  letter-spacing: -.005em;
  max-width: 15ch;
  margin-bottom: clamp(1.75rem, 3.5vw, 3rem);
  text-wrap: balance;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: .65rem;
  font-family: var(--display); font-weight: 400; text-transform: uppercase;
  font-size: 1.25rem; letter-spacing: .02em; line-height: 1;
  padding: 1rem 1.35rem 1rem 1.4rem;
  text-decoration: none;
  transition: background-color .25s var(--ease), color .25s var(--ease);
}
.btn .i { transition: transform .35s var(--ease); }
.btn:hover .i { transform: translateX(4px); }
.btn--lime { background: var(--lime); color: var(--lime-ink); }
.btn--lime:hover { background: var(--paper); }
.btn--ink { background: var(--ink); color: var(--paper); }
.btn--ink:hover { background: var(--ink-3); color: var(--lime); }
.btn--big { font-size: clamp(1.35rem, 2vw, 1.6rem); padding: 1.2rem 1.5rem 1.2rem 1.65rem; }
.link { font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px; }

/* Header */
.top {
  position: fixed; inset: 0 0 auto; z-index: 50;
  transition: background-color .3s var(--ease), box-shadow .3s var(--ease);
}
.top.is-solid, .top.is-open { background: var(--ink); box-shadow: 0 1px 0 rgba(243, 244, 239, .1); }
.top__bar {
  width: min(100% - 2 * var(--gutter), 90rem); margin-inline: auto;
  height: var(--top-h);
  display: flex; align-items: center; gap: 2rem;
}
.top__logo img { width: 8.5rem; }
.top__nav { margin-left: auto; }
.top__nav ul { display: flex; gap: clamp(1rem, 1.8vw, 1.75rem); }
.top__nav a {
  font-weight: 600; font-size: .95rem; text-decoration: none;
  padding-block: .4rem; background: linear-gradient(var(--lime), var(--lime)) 0 100% / 0 2px no-repeat;
  transition: background-size .3s var(--ease);
}
.top__nav a:hover { background-size: 100% 2px; }
.top__cta {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--display); text-transform: uppercase; font-size: 1.05rem; letter-spacing: .02em;
  background: var(--lime); color: var(--lime-ink); padding: .65rem .9rem; text-decoration: none;
}
.top__cta:hover { background: var(--paper); }
.top__toggle { display: none; width: 2.75rem; height: 2.75rem; place-items: center; }
.top__toggle .i { width: 1.6rem; height: 1.6rem; }
.top__toggle .i--close { display: none; }
.top.is-open .top__toggle .i--open { display: none; }
.top.is-open .top__toggle .i--close { display: block; }

@media (max-width: 1099px) {
  .top__toggle { display: grid; }
  .top__cta { margin-left: auto; }
  .top__nav {
    position: absolute; inset: var(--top-h) 0 auto; margin: 0;
    background: var(--ink); border-top: 1px solid rgba(243, 244, 239, .1);
    padding: 1rem var(--gutter) 2rem;
    display: none;
  }
  .top.is-open .top__nav { display: block; }
  .top__nav ul { flex-direction: column; gap: 0; }
  .top__nav a {
    display: block; font-family: var(--display); text-transform: uppercase; font-weight: 400;
    font-size: 2rem; line-height: 1.15; padding-block: .35rem; background: none;
  }
  .top__nav a:hover { color: var(--lime); }
}
@media (max-width: 479px) {
  .top__logo img { width: 7rem; }
  .top__cta { font-size: .95rem; padding: .6rem .7rem; }
  .top__cta .i { display: none; }
}

/* Hero: the front of the flyer */
.hero {
  position: relative; isolation: isolate;
  min-height: max(40rem, 100svh);
  display: grid; grid-template-rows: 1fr auto;
  background: var(--ink);
  overflow: hidden;
}
.hero__photo { position: absolute; inset: 0; z-index: -1; }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 28% 50%; }
.hero__photo::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(15, 16, 14, 0) 26%, rgba(15, 16, 14, .62) 52%, rgba(15, 16, 14, .72) 100%),
    linear-gradient(180deg, rgba(15, 16, 14, .55) 0, rgba(15, 16, 14, 0) 22%);
}
.hero__body {
  position: relative;
  width: min(100% - 2 * var(--gutter), 90rem); margin-inline: auto;
  padding-top: calc(var(--top-h) + clamp(2rem, 6vh, 4rem));
  padding-bottom: clamp(2rem, 5vh, 3.5rem);
  display: grid; grid-template-columns: 1fr minmax(0, 44rem); align-content: center;
}
.hero__body > * { grid-column: 2; }
.hero__title {
  font-family: var(--display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(4.5rem, min(9.8vw, 16.5vh), 11rem); line-height: .96; letter-spacing: -.01em;
  color: var(--lime);
}
.hero__line { display: block; }
.hero__line--city { color: var(--paper); }
.hero__lede { font-size: clamp(1.15rem, 1.6vw, 1.4rem); line-height: 1.4; max-width: 34ch; margin-top: 1.75rem; }
.hero__bill { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; margin-top: 1.75rem; max-width: 44rem; }
.hero__bill li { display: flex; align-items: center; gap: .55rem; white-space: nowrap; }
.hero__bill li::before { content: ""; width: .5rem; height: .5rem; background: var(--lime); flex: none; }
.hero__bill a {
  font-family: var(--display); text-transform: uppercase; letter-spacing: .02em; font-size: clamp(1.2rem, 1.7vw, 1.5rem); line-height: 1.1; text-decoration: none;
}
.hero__bill a:hover { color: var(--lime); }
.sticker {
  position: absolute; right: 0; top: calc(var(--top-h) + 2rem);
  width: 7.5rem; height: 7.5rem; border-radius: 50%;
  background: var(--lime); color: var(--lime-ink);
  display: grid; place-content: center; text-align: center;
  font-family: var(--display); text-transform: uppercase; line-height: .9;
  transform: rotate(-12deg);
}
.sticker span { font-size: 1.1rem; letter-spacing: .08em; }
.sticker b { font-weight: 400; font-size: 2.5rem; }
.hero__foot {
  background: var(--ink);
  border-top: 4px solid var(--lime);
  display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 1.5rem 3rem;
  padding: 1.25rem max(var(--gutter), (100% - 90rem) / 2);
}
.hero__venue { display: flex; gap: .65rem; align-items: center; color: var(--muted-ink); font-size: .95rem; }
.hero__venue .i { color: var(--lime); }
.hero__venue b { color: var(--paper); font-weight: 700; margin-right: .35rem; }
.hero__info { display: flex; align-items: baseline; gap: .4rem 1.1rem; flex-wrap: wrap; }
.hero__info-label { font-weight: 700; text-transform: uppercase; letter-spacing: .1em; font-size: .78rem; color: var(--lime); }
.hero__info a { font-family: var(--display); font-size: 1.6rem; letter-spacing: .02em; text-decoration: none; line-height: 1; }
.hero__info a:hover { color: var(--lime); }

@media (max-width: 899px) {
  .hero { min-height: auto; }
  .hero__photo { position: relative; inset: auto; height: 62vw; min-height: 17rem; max-height: 30rem; }
  .hero__photo::after { background: linear-gradient(180deg, rgba(15, 16, 14, .5) 0, rgba(15, 16, 14, 0) 30%, rgba(15, 16, 14, 0) 55%, var(--ink) 100%); }
  .hero__body { grid-template-columns: 1fr; padding-top: 0; margin-top: -4.5rem; }
  .hero__body > * { grid-column: 1; }
  .hero__title { font-size: clamp(4rem, 21vw, 8rem); }
  .sticker { top: -2.5rem; width: 6rem; height: 6rem; }
  .sticker b { font-size: 2rem; }
  .hero__foot { grid-template-columns: 1fr; gap: 1rem; padding-block: 1.5rem 2rem; }
  .hero__info-label { flex-basis: 100%; }
  .hero__foot .btn { justify-content: space-between; }
}

/* Ticker */
.ticker { background: var(--lime); color: var(--lime-ink); overflow: hidden; padding-block: .85rem; }
.ticker__track { display: flex; width: max-content; animation: ticker 48s linear infinite; }
.ticker span {
  display: flex; align-items: center; white-space: nowrap;
  font-family: var(--display); text-transform: uppercase; font-size: clamp(1.25rem, 2.2vw, 1.75rem); letter-spacing: .02em; line-height: 1;
}
.ticker span::after { content: ""; width: .5rem; height: .5rem; background: var(--lime-ink); margin-inline: 1.5rem; }
@keyframes ticker { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker__track { animation: none; } }

/* La scuola */
.scuola__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.scuola__text p + p { margin-top: 1rem; }
.scuola__text { max-width: 36rem; }
.big { font-size: clamp(1.2rem, 1.7vw, 1.4rem); line-height: 1.45; margin-bottom: 1rem; }
.pull {
  margin-block: 2.25rem;
  font-family: var(--display); text-transform: uppercase; font-size: clamp(1.9rem, 3.4vw, 2.75rem); line-height: 1.22;
}
.pull span { background: linear-gradient(transparent 56%, var(--lime) 56%, var(--lime) 90%, transparent 90%); padding-inline: .08em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.sign { font-family: var(--display); text-transform: uppercase; font-size: 1.5rem; margin-top: 1.25rem !important; }
.dates { margin-top: 2.5rem; border-top: 2px solid var(--ink); }
.dates div { display: grid; grid-template-columns: 5.5rem 1fr; gap: 1rem; align-items: baseline; padding-block: .9rem; border-bottom: 1px solid rgba(15, 16, 14, .2); }
.dates dt { font-family: var(--display); font-size: 2rem; line-height: 1; }
.dates dd { color: var(--muted-paper); }
.scuola__photo { width: 100%; max-width: 30rem; justify-self: end; }
.scuola__photo img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.scuola__photo figcaption { margin-top: .6rem; font-size: .875rem; color: var(--muted-paper); }
@media (max-width: 899px) {
  .scuola__grid { grid-template-columns: 1fr; }
  .scuola__photo { justify-self: start; }
}

/* Corsi */
.route { border-top: 1px solid rgba(243, 244, 239, .2); }
.route li { border-bottom: 1px solid rgba(243, 244, 239, .2); }
.route a {
  display: grid; grid-template-columns: 1fr minmax(0, 22rem) auto; align-items: center; gap: 1.5rem;
  padding: 1rem .5rem; text-decoration: none;
  transition: background-color .25s var(--ease), padding .35s var(--ease);
}
.route__if { font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: var(--muted-ink); }
.route__to { font-family: var(--display); text-transform: uppercase; font-size: clamp(1.6rem, 2.6vw, 2.25rem); line-height: 1; color: var(--lime); }
.route .i { width: 1.5rem; height: 1.5rem; color: var(--lime); transition: transform .35s var(--ease); }
.route a:hover { background: var(--ink-2); padding-inline: 1rem; }
.route a:hover .route__if { color: var(--paper); }
.route a:hover .i { transform: translateX(6px); }
@media (max-width: 699px) {
  .route a { grid-template-columns: 1fr auto; gap: .2rem 1rem; padding-inline: 0; }
  .route__if { grid-column: 1; font-size: .95rem; }
  .route__to { grid-column: 1; grid-row: 2; }
  .route .i { grid-row: 1 / 3; grid-column: 2; }
}

.flyers {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 1.75rem);
  margin-top: clamp(3.5rem, 7vw, 6rem);
}
@media (max-width: 1099px) { .flyers { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 699px) {
  .flyers { grid-template-columns: 1fr; }
  .flyer--headliner { grid-column: auto; }
  .flyer__front, .flyer--headliner .flyer__front, .flyer--wide .flyer__front { min-height: 24rem; }
  .flyer--headliner .flyer__title { font-size: clamp(2.6rem, 12vw, 3.5rem); }
}

.flyer { perspective: 1800px; scroll-margin-top: calc(var(--top-h) + 1rem); }
.flyer__inner { display: grid; height: 100%; transform-style: preserve-3d; transition: transform .8s var(--ease); }
.flyer__face { grid-area: 1 / 1; display: flex; flex-direction: column; -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.flyer__front { position: relative; min-height: 30rem; justify-content: flex-end; background: var(--ink-2); overflow: hidden; }
.flyer__front img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.flyer:hover .flyer__front img { transform: scale(1.03); }
.flyer__band { position: relative; align-self: flex-start; max-width: calc(100% - 1.5rem); background: var(--lime); color: var(--lime-ink); padding: .7rem 1.1rem .55rem 1.5rem; }
.flyer__title { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(2.2rem, 3.2vw, 3rem); line-height: 1; text-wrap: balance; }
.flyer__foot { position: relative; background: var(--ink); padding: 1rem 1.5rem 1.2rem; }
.flyer__hook { font-size: 1rem; line-height: 1.4; }
.flyer__foot .flyer__turn { margin-top: 0; padding-top: .75rem; }
.stamp {
  position: absolute; top: 1rem; right: 1rem; z-index: 1;
  width: 5.5rem; height: 5.5rem; border-radius: 50%;
  display: grid; place-items: center; text-align: center;
  background: var(--ink); color: var(--lime); border: 2px solid var(--lime);
  font-family: var(--display); text-transform: uppercase; font-size: .95rem; letter-spacing: .04em; line-height: 1;
  transform: rotate(10deg);
}
.flyer--headliner { grid-column: span 2; }
.flyer--headliner .flyer__front { min-height: 34rem; }
.flyer--headliner .flyer__title { font-size: clamp(3rem, 5.6vw, 5.5rem); }
.flyer--headliner .flyer__hook { font-size: 1.15rem; }
.flyer--wide { grid-column: 1 / -1; }
.flyer--wide .flyer__front { min-height: 24rem; }
.flyer--wide .flyer__front img { object-position: 50% 35%; }
.flyer__meta--who { margin-top: .9rem; }
@media (max-width: 699px) { .flyer--headliner { grid-column: auto; } }
.flyer__meta b {
  display: block; margin-bottom: .15rem;
  font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--lime);
}
.flyer__turn {
  margin-top: auto; padding-top: 1.35rem;
  display: inline-flex; align-items: center; gap: .55rem; align-self: flex-start;
  font-weight: 700; font-size: .95rem; color: var(--lime);
}
.flyer__turn .i { transition: transform .5s var(--ease); }
.flyer__turn:hover .i { transform: rotate(180deg); }
.flyer__turn:hover { text-decoration: underline; text-underline-offset: .25em; }
.flyer__back { background: var(--paper); color: var(--ink); padding: 1.6rem 1.5rem 1.35rem; transform: rotateY(180deg); }
.flyer__backtitle { font-family: var(--display); text-transform: uppercase; font-size: 1.6rem; line-height: 1; padding-bottom: .85rem; border-bottom: 2px solid var(--ink); }
.flyer__list { margin-top: .5rem; }
.flyer__list li { position: relative; padding: .55rem 0 .55rem 1.25rem; border-bottom: 1px solid rgba(15, 16, 14, .16); font-size: .95rem; line-height: 1.4; }
.flyer__list li::before { content: ""; position: absolute; left: 0; top: 1.05em; width: .45rem; height: .45rem; background: var(--lime); outline: 1px solid var(--ink); outline-offset: -1px; }
.flyer__meta { margin-top: 1rem; font-size: .95rem; color: var(--muted-paper); }
.flyer__meta b { color: var(--ink); }
.flyer__back .flyer__turn { color: var(--ink); padding-top: 0; margin-top: 0; align-self: center; }
.flyer__actions { margin-top: auto; padding-top: 1.35rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.flyer.is-turned .flyer__inner { transform: rotateY(180deg); }
.flyer.is-hl .flyer__face { box-shadow: 0 0 0 3px var(--lime); }

/* Without JS both faces are simply printed one after the other */
html:not(.js) .flyer__inner { display: block; transform: none; }
html:not(.js) .flyer__back { transform: none; }
html:not(.js) .flyer__turn { display: none; }
@media (prefers-reduced-motion: reduce) { .flyer__inner { transition: none; } }

/* Metodo */
.metodo__grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(2.5rem, 5vw, 5rem); align-items: start; }
.rules { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem clamp(1.5rem, 3vw, 3rem); }
.rules li { border-top: 3px solid var(--ink); padding-top: 1.1rem; }
.rules__t { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(1.6rem, 2.3vw, 2rem); line-height: 1; margin-bottom: .75rem; text-wrap: balance; }
.rules p { color: var(--muted-paper); }
.rules__cert { margin-top: 1.25rem; max-width: 22rem; }
.rules__cert img { width: 100%; border: 1px solid rgba(15, 16, 14, .15); box-shadow: 0 .6rem 1.4rem -.6rem rgba(15, 16, 14, .35); transform: rotate(-1.5deg); }
.lavoro { background: var(--ink); color: var(--paper); padding: clamp(1.75rem, 3.5vw, 2.75rem); }
.lavoro__t { font-family: var(--display); font-weight: 400; text-transform: uppercase; color: var(--lime); font-size: clamp(2rem, 3.2vw, 2.6rem); line-height: .98; margin-bottom: 1.1rem; text-wrap: balance; }
.lavoro__note { margin-top: 1rem; font-size: .925rem; color: var(--muted-ink); }
.lavoro .btn { margin-top: 1.75rem; }
@media (max-width: 999px) { .metodo__grid { grid-template-columns: 1fr; } }
@media (max-width: 599px) { .rules { grid-template-columns: 1fr; gap: 2rem; } }

/* Line-up */
.lineup__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 26rem); gap: 1.5rem 3rem; align-items: end; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.lineup__head .h2 { margin-bottom: 0; }
.lineup__head p { font-size: 1.15rem; color: var(--muted-lime); }
.lineup__grid { display: grid; grid-template-columns: minmax(0, 40rem) minmax(0, 1fr); gap: clamp(2rem, 4vw, 4rem); align-items: center; }
.lineup__photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; filter: grayscale(1) contrast(1.08); transition: filter .6s var(--ease); }
.lineup__photo:hover img { filter: none; }
.lineup__list { border-bottom: 2px solid var(--lime-ink); }
.act { border-top: 2px solid var(--lime-ink); padding-block: 1.1rem 1.25rem; }
.act__name { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(2rem, 3vw, 2.75rem); line-height: 1.02; }
.act__role { font-size: 1rem; margin-top: .35rem; font-weight: 600; }
.act__title { margin-top: .35rem; font-size: .925rem; color: var(--muted-lime); }
.act--headliner .act__name { font-size: clamp(2.75rem, 5vw, 4.5rem); }
.lineup__founders { margin-top: clamp(1.5rem, 3vw, 2.25rem); font-size: 1.05rem; font-weight: 600; }
@media (max-width: 799px) { .lineup__head, .lineup__grid { grid-template-columns: 1fr; } }

/* Corsisti */
.corsisti__lede { max-width: 44rem; font-size: clamp(1.1rem, 1.5vw, 1.25rem); color: var(--muted-ink); margin-top: -1rem; }
.strip {
  display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  padding: clamp(2rem, 4vw, 3rem) max(var(--gutter), (100% - var(--wrap)) / 2);
  scroll-padding-inline: max(var(--gutter), (100% - var(--wrap)) / 2);
  scrollbar-width: thin; scrollbar-color: var(--lime) var(--ink-2);
}
.strip li { flex: none; width: clamp(16rem, 34vw, 30rem); scroll-snap-align: start; }
.strip img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.strip::-webkit-scrollbar { height: 6px; }
.strip::-webkit-scrollbar-track { background: var(--ink-2); }
.strip::-webkit-scrollbar-thumb { background: var(--lime); }
.quotes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(2rem, 4vw, 3.5rem); margin-top: 1rem; }
.quote { display: flex; flex-direction: column; }
.quote blockquote { margin: 0; font-size: 1.075rem; line-height: 1.55; }
.quote blockquote::before { content: "“"; display: block; font-family: var(--display); font-size: 5rem; line-height: .7; color: var(--lime); height: 2.6rem; }
.quote figcaption { margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid rgba(243, 244, 239, .2); color: var(--muted-ink); font-size: .925rem; }
.quote figcaption b { display: block; font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: 1.6rem; line-height: 1; color: var(--paper); margin-bottom: .3rem; }
@media (max-width: 899px) { .quotes { grid-template-columns: 1fr; } }

/* Sede */
.sede { padding-bottom: calc(var(--section) / 2); }
.sede__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 1.5rem); }
.sede__text { grid-column: 1 / 6; grid-row: 1 / 3; align-self: start; padding-right: 1rem; }
.sede__text p { color: var(--muted-paper); max-width: 30rem; }
.sede__addr { font-family: var(--display); text-transform: uppercase; font-size: clamp(1.6rem, 2.4vw, 2.1rem); line-height: 1.05; margin-bottom: 1.25rem; }
.sede__addr span { display: block; }
.sede__street { font-size: 1.45em; }
.sede__text .btn { margin-top: 1.75rem; }
.sede__main { grid-column: 6 / 13; grid-row: 1; }
.sede__side { grid-row: 2; }
.sede__side:nth-of-type(2) { grid-column: 6 / 9; }
.sede__side:nth-of-type(3) { grid-column: 9 / 13; }
.sede figure img { width: 100%; height: 100%; object-fit: cover; }
.sede__main img { aspect-ratio: 3 / 2; }
.sede__side img { aspect-ratio: auto; height: clamp(10rem, 16vw, 15rem); }
@media (max-width: 899px) {
  .sede__text, .sede__main { grid-column: 1 / -1; grid-row: auto; }
  .sede__text { margin-bottom: 1rem; }
  .sede__side:nth-of-type(2) { grid-column: 1 / 7; }
  .sede__side:nth-of-type(3) { grid-column: 7 / 13; }
  .sede__side { grid-row: auto; }
}

/* FAQ */
.faq { padding-top: calc(var(--section) / 2); }
.faq__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 2rem clamp(2rem, 5vw, 5rem); border-top: 3px solid var(--ink); padding-top: clamp(2.5rem, 5vw, 4rem); }
.faq__grid .h2 { position: sticky; top: calc(var(--top-h) + 1.5rem); align-self: start; }
.faq__list details { border-bottom: 1px solid rgba(15, 16, 14, .22); }
.faq__list details:first-child { border-top: 1px solid rgba(15, 16, 14, .22); }
.faq__list summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 1.5rem;
  padding-block: 1.2rem; font-weight: 700; font-size: clamp(1.05rem, 1.5vw, 1.2rem); line-height: 1.35;
}
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary .i { width: 1.4rem; height: 1.4rem; transition: transform .35s var(--ease); }
.faq__list details[open] summary .i { transform: rotate(45deg); }
.faq__list summary:hover { text-decoration: underline; text-decoration-color: var(--lime); text-decoration-thickness: 3px; text-underline-offset: .3em; }
.faq__list details p { padding-bottom: 1.4rem; max-width: 62ch; color: var(--muted-paper); }
.faq__list a { font-weight: 600; }
@media (max-width: 899px) {
  .faq__grid { grid-template-columns: 1fr; }
  .faq__grid .h2 { position: static; }
}

/* Quality Events */
.qe { padding-block: clamp(3.5rem, 7vw, 5.5rem); }
.qe__grid { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 2rem clamp(2rem, 4vw, 4rem); align-items: center; }
.qe__logo { width: clamp(6rem, 10vw, 8.5rem); mix-blend-mode: multiply; }
.qe .h2 { margin-bottom: .75rem; font-size: clamp(2.25rem, 4vw, 3.5rem); }
.qe p { max-width: 40rem; font-size: 1.1rem; }
.qe__links { display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; }
@media (max-width: 899px) { .qe__grid { grid-template-columns: 1fr; } }

/* Contatti: the back of the flyer */
.contatti__grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(2.5rem, 5vw, 5rem); align-items: end; }
.contatti__t { font-family: var(--display); font-weight: 400; text-transform: uppercase; color: var(--lime); font-size: clamp(3.5rem, 9vw, 8.5rem); line-height: .98; letter-spacing: -.01em; }
.contatti__lede { margin-block: 1.5rem 2rem; font-size: 1.15rem; max-width: 34rem; color: var(--muted-ink); }
.contatti__list li {
  display: grid; grid-template-columns: 1.5rem 7rem 1fr; gap: 1rem; align-items: baseline;
  padding-block: 1rem; border-bottom: 1px solid rgba(243, 244, 239, .2);
}
.contatti__list li:first-child { border-top: 1px solid rgba(243, 244, 239, .2); }
.contatti__list .i { color: var(--lime); align-self: center; }
.contatti__label { font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-ink); }
.contatti__list a { text-decoration: none; font-weight: 600; overflow-wrap: anywhere; }
.contatti__list a:hover { color: var(--lime); }
.contatti__big { font-family: var(--display); font-weight: 400 !important; font-size: clamp(1.75rem, 3vw, 2.5rem); line-height: 1; letter-spacing: .02em; }
@media (max-width: 899px) { .contatti__grid { grid-template-columns: 1fr; } }
@media (max-width: 479px) {
  .contatti__list li { grid-template-columns: 1.5rem 1fr; }
  .contatti__list li > :last-child { grid-column: 2; }
}

/* Footer */
.foot { background: var(--ink-deep); color: var(--muted-ink); font-size: .925rem; padding-block: 3.5rem 2rem; }
.foot__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) auto; gap: 2rem 3rem; align-items: start; }
.foot__brand img { width: 9rem; margin-bottom: .75rem; }
.foot__legal p + p { margin-top: .2rem; }
.foot__legal b { color: var(--paper); }
.social { display: flex; gap: .5rem; }
.social a {
  display: grid; place-items: center; width: 2.75rem; height: 2.75rem;
  border: 1px solid rgba(243, 244, 239, .22); color: var(--paper);
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.social a:hover { background: var(--lime); color: var(--lime-ink); border-color: var(--lime); }
.social .i { width: 1.15rem; height: 1.15rem; }
.foot__bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(243, 244, 239, .12); }
.foot__bottom a { color: var(--paper); }
.foot__bottom a:hover { color: var(--lime); }
@media (max-width: 899px) { .foot__grid { grid-template-columns: 1fr; } }

/* Load sequence for the front of the flyer */
@media (prefers-reduced-motion: no-preference) {
  .js .hero__line, .js .hero__lede, .js .hero__bill, .js .sticker { animation: rise .9s var(--ease) both; }
  .js .hero__line:nth-child(2) { animation-delay: .08s; }
  .js .hero__line:nth-child(3) { animation-delay: .16s; }
  .js .hero__lede { animation-delay: .28s; }
  .js .hero__bill { animation-delay: .36s; }
  .js .sticker { animation: stamp .5s var(--ease) .6s both; }
  @keyframes rise { from { transform: translateY(.18em); } to { transform: none; } }
  @keyframes stamp { from { transform: rotate(-28deg) scale(1.35); } to { transform: rotate(-12deg) scale(1); } }
}

/* Privacy page */
.legal { padding-top: calc(var(--top-h) + clamp(3rem, 7vw, 5rem)); }
.legal .h2 { max-width: 18ch; }
.legal__body { max-width: 46rem; }
.legal__body h2 { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(1.6rem, 2.5vw, 2rem); line-height: 1; margin: 2.75rem 0 .9rem; }
.legal__body p, .legal__body ul { margin-bottom: 1rem; color: var(--muted-paper); }
.legal__body ul { list-style: square; padding-left: 1.25rem; }
.legal__body li + li { margin-top: .35rem; }
.legal__body strong { color: var(--ink); }
.legal__updated { font-weight: 600; color: var(--muted-paper); margin-bottom: 2rem; }
.top--plain { background: var(--ink); }
.top--plain .top__cta { margin-left: auto; }
.foot--plain { padding-block: 2rem; }
.foot--plain .foot__bottom { margin-top: 0; padding-top: 0; border-top: 0; }

/* 404 */
.lost { min-height: 100svh; display: grid; align-content: center; padding-top: var(--top-h); }
.lost__t { font-family: var(--display); font-weight: 400; text-transform: uppercase; color: var(--lime); font-size: clamp(4rem, 14vw, 10rem); line-height: .98; }
.lost p { margin-block: 1.5rem 2rem; font-size: 1.2rem; max-width: 34rem; color: var(--muted-ink); }

/* Safari draws transformed children through the hidden face: drop the stamp once the flyer is turned */
.flyer .stamp, .flyer__front img { -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.flyer .stamp { transition: opacity .2s linear .15s, visibility 0s linear .35s; }
.flyer.is-turned .stamp { opacity: 0; visibility: hidden; transition: opacity .15s linear, visibility 0s linear .15s; }

/* Swap faces at the half-turn: Safari keeps painting the front photo while it rotates away */
.js .flyer__front { transition: visibility 0s linear .4s; }
.js .flyer__back { visibility: hidden; transition: visibility 0s linear .4s; }
.js .flyer.is-turned .flyer__front { visibility: hidden; }
.js .flyer.is-turned .flyer__back { visibility: visible; }
@media (hover: none) { .flyer:hover .flyer__front img { transform: none; } }
@media (prefers-reduced-motion: reduce) { .js .flyer__front, .js .flyer__back { transition: none; } }

/* Flip, final: symmetric ease so the card is edge-on exactly at .4s, when the faces swap.
   The previous ease-out passed 90deg after ~0.1s, so the front was seen mirrored until the swap.
   Every layer inside a face also hides its own back (Firefox/Safari do not inherit it). */
.flyer__inner { transition: transform .8s cubic-bezier(.45, 0, .55, 1); }
.flyer__face, .flyer__face * { -webkit-backface-visibility: hidden; backface-visibility: hidden; }
@media (prefers-reduced-motion: reduce) { .flyer__inner { transition: none; } }
