/* ==========================================================================
   MODULO 513 — event hub · Lucca
   Layout: griglia modulare a 12 colonne con bande alternate nero brand / calce.
   Il cerchio "513" del logo è il modulo grafico ricorrente: bottoni, separatori,
   cursore, badge. Un solo font (Poppins), contrasto affidato a peso e scala.
   ========================================================================== */

:root {
  /* Colore */
  --ink: #0D0B09;          /* nero del logo */
  --ink-2: #1A1714;        /* superfici rialzate su nero */
  --calce: #ECEAE6;        /* bianco calce */
  --calce-2: #E1DED8;      /* calce in ombra */
  --stone: #A6A199;        /* testo secondario su nero */
  --ash: #69645D;          /* testo secondario su calce */
  --lux: #FFE2B5;          /* luce 4000K, usata solo per i faretti */
  --line-dark: rgba(236, 234, 230, .16);
  --line-light: rgba(13, 11, 9, .16);

  /* Tipografia */
  --font: "Poppins", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --fs-label: .75rem;
  --fs-small: .875rem;
  --fs-body: 1.0625rem;
  --fs-lead: clamp(1.125rem, .92rem + .8vw, 1.5rem);
  --fs-h3: clamp(1.375rem, 1rem + 1.15vw, 2rem);
  --fs-h2: clamp(2.375rem, 1.1rem + 4.7vw, 6rem);
  --fs-display: clamp(3rem, .8rem + 8.6vw, 10.5rem);

  /* Spazi */
  --gut: clamp(16px, 3.6vw, 56px);
  --pad-l: max(var(--gut), env(safe-area-inset-left, 0px));
  --pad-r: max(var(--gut), env(safe-area-inset-right, 0px));
  --col-gap: clamp(12px, 2vw, 32px);
  --section: clamp(96px, 13vw, 200px);
  --header-h: 76px;

  /* Movimento */
  --ease: cubic-bezier(.7, 0, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);

  color-scheme: light;
}

/* Toni di sezione ------------------------------------------------------- */
.t-dark {
  --bg: var(--ink);
  --bg-2: var(--ink-2);
  --fg: var(--calce);
  --muted: var(--stone);
  --line: var(--line-dark);
  background: var(--bg);
  color: var(--fg);
  color-scheme: dark;
}
.t-light {
  --bg: var(--calce);
  --bg-2: var(--calce-2);
  --fg: var(--ink);
  --muted: var(--ash);
  --line: var(--line-light);
  background: var(--bg);
  color: var(--fg);
  color-scheme: light;
}
.t-light.t-shade { --bg: var(--calce-2); --bg-2: var(--calce); }

/* Base -------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-stopped { overflow: clip; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--calce);
  font-family: var(--font);
  font-weight: 300;
  font-size: var(--fs-body);
  line-height: 1.65;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
svg { display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 500; }
ul, ol, dl, dd { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--calce); color: var(--ink); }
.t-light ::selection { background: var(--ink); color: var(--calce); }
:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; border-radius: 2px; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: fixed; top: 12px; left: 12px; z-index: 300; padding: 10px 16px;
  background: var(--calce); color: var(--ink); border-radius: 999px; transform: translateY(-200%);
}
.skip:focus { transform: none; }

.wrap {
  width: 100%;
  max-width: 1760px;
  margin-inline: auto;
  padding-left: var(--pad-l);
  padding-right: var(--pad-r);
}
.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--col-gap);
}
.grid > * { min-width: 0; }

/* Tipi -------------------------------------------------------------------- */
.label {
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  line-height: 1.4;
}
.muted { color: var(--muted); }
.h2 {
  font-size: var(--fs-h2);
  line-height: .98;
  letter-spacing: -.045em;
  text-wrap: balance;
}
.h3 {
  font-size: var(--fs-h3);
  line-height: 1.12;
  letter-spacing: -.03em;
}
.lead {
  font-size: var(--fs-lead);
  line-height: 1.45;
  letter-spacing: -.01em;
  text-wrap: pretty;
}
.body { max-width: 56ch; text-wrap: pretty; }
.sup { font-size: .42em; vertical-align: .95em; letter-spacing: 0; margin-left: .06em; }

/* Parole spezzate per le animazioni */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
.wi { display: inline-block; will-change: transform; }

/* Intestazione di sezione */
.s-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  margin-bottom: clamp(40px, 6vw, 96px);
}
.s-head .muted { text-align: right; }

/* Bottoni ----------------------------------------------------------------- */
.btn {
  --b-bg: var(--fg);
  --b-fg: var(--bg);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 16px;
  height: 58px;
  padding: 0 8px 0 26px;
  border-radius: 999px;
  border: 1px solid var(--b-bg);
  background: var(--b-bg);
  color: var(--b-fg);
  font-size: .9375rem;
  font-weight: 500;
  letter-spacing: -.01em;
  line-height: 1;
  white-space: nowrap;
  transition: color .5s var(--ease-out), border-color .5s var(--ease-out);
}
.btn::before {
  content: "";
  position: absolute;
  z-index: -1;
  right: 8px;
  top: 50%;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--b-fg);
  transform: translateY(-50%) scale(0);
  transition: transform .7s var(--ease-out);
}
.btn__dot {
  flex: none;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--b-fg);
  color: var(--b-bg);
  transition: background .5s var(--ease-out), color .5s var(--ease-out), transform .6s var(--ease-out);
}
.btn__dot svg { width: 14px; height: 14px; }
.btn--ghost {
  --b-bg: transparent;
  --b-fg: var(--fg);
  border-color: var(--line);
  color: var(--fg);
}
.btn--ghost .btn__dot { background: var(--fg); color: var(--bg); }
.btn--ghost::before { background: var(--fg); }
@media (hover: hover) {
  .btn:hover { color: var(--b-bg); }
  .btn:hover::before { transform: translateY(-50%) scale(9); }
  .btn:hover .btn__dot { background: var(--b-bg); color: var(--b-fg); transform: rotate(-45deg); }
  .btn--ghost:hover { color: var(--bg); border-color: var(--fg); }
  .btn--ghost:hover .btn__dot { background: var(--bg); color: var(--fg); }
}
.btn--sm { height: 46px; padding-left: 20px; gap: 12px; font-size: .875rem; }
.btn--sm .btn__dot, .btn--sm::before { width: 32px; height: 32px; }
.btn--sm .btn__dot svg { width: 12px; height: 12px; }
.btn--sm::before { right: 6px; }
.btn--sm { padding-right: 6px; }

.link-u { position: relative; }
.link-u::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -3px; height: 1px;
  background: currentColor;
  transform: scaleX(0); transform-origin: right;
  transition: transform .6s var(--ease-out);
}
@media (hover: hover) { .link-u:hover::after { transform: scaleX(1); transform-origin: left; } }

/* Loader ------------------------------------------------------------------ */
.loader { display: none; }
.js .loader {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: calc(env(safe-area-inset-top, 0px) + 24px) var(--pad-r) calc(env(safe-area-inset-bottom, 0px) + 24px) var(--pad-l);
  background: var(--ink);
  color: var(--calce);
}
.js.is-loaded .loader { display: none; }
.loader__row { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; color: var(--stone); }
.loader__mark { width: min(64vw, 560px); margin: 0 auto; color: var(--calce); }
.loader__mark svg { width: 100%; height: auto; }
.loader__count {
  font-size: clamp(3.5rem, 2rem + 7vw, 9rem);
  font-weight: 500;
  letter-spacing: -.06em;
  line-height: .8;
  color: var(--calce);
  font-variant-numeric: tabular-nums;
}

/* Header ------------------------------------------------------------------ */
.header {
  --h-fg: var(--calce);
  --h-bg: rgba(13, 11, 9, .78);
  --h-line: var(--line-dark);
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 60;
  padding-top: env(safe-area-inset-top, 0px);
  color: var(--h-fg);
  transition: transform .7s var(--ease), color .4s ease, background-color .4s ease;
}
.header[data-tone="light"] {
  --h-fg: var(--ink);
  --h-bg: rgba(236, 234, 230, .84);
  --h-line: var(--line-light);
}
.header.is-scrolled {
  background: var(--h-bg);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  backdrop-filter: blur(14px) saturate(1.1);
}
.header.is-hidden { transform: translateY(-110%); }
.header__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--header-h);
}
.header__logo { display: block; color: var(--h-fg); }
.header__logo svg { display: block; height: clamp(26px, 2.1vw, 30px); width: auto; aspect-ratio: 279.5 / 41; }
.nav ul { display: flex; gap: clamp(18px, 2vw, 32px); }
.nav a { font-size: .875rem; font-weight: 400; letter-spacing: -.005em; }
.header__cta { --fg: var(--h-fg); --bg: var(--ink); }
.header[data-tone="light"] .header__cta { --bg: var(--calce); }
.header__right { display: flex; align-items: center; gap: 12px; }
.menu-btn {
  display: none;
  align-items: center;
  gap: 10px;
  height: 46px;
  padding: 0 18px;
  border: 1px solid var(--h-line);
  border-radius: 999px;
  font-size: .875rem;
  font-weight: 500;
}
.menu-btn__icon { position: relative; width: 16px; height: 8px; }
.menu-btn__icon::before, .menu-btn__icon::after {
  content: ""; position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor;
  transition: transform .5s var(--ease-out), top .5s var(--ease-out);
}
.menu-btn__icon::before { top: 0; }
.menu-btn__icon::after { top: 6.5px; }
.menu-open .menu-btn__icon::before { top: 3.25px; transform: rotate(45deg); }
.menu-open .menu-btn__icon::after { top: 3.25px; transform: rotate(-45deg); }

.menu {
  position: fixed;
  inset: 0;
  z-index: 55;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 40px;
  padding: calc(env(safe-area-inset-top, 0px) + var(--header-h) + 24px) var(--pad-r) calc(env(safe-area-inset-bottom, 0px) + 28px) var(--pad-l);
  background: var(--ink);
  color: var(--calce);
  clip-path: inset(0 0 100% 0);
  visibility: hidden;
  transition: clip-path .9s var(--ease), visibility 0s linear .9s;
}
.menu-open .menu { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .9s var(--ease), visibility 0s; }
.menu__list a {
  display: block;
  padding-block: 6px;
  font-size: clamp(2.25rem, 1.4rem + 5vw, 4rem);
  font-weight: 500;
  letter-spacing: -.045em;
  line-height: 1.05;
}
.menu__foot { display: flex; flex-direction: column; gap: 20px; color: var(--stone); }

/* Hero -------------------------------------------------------------------- */
.hero { padding-top: calc(env(safe-area-inset-top, 0px) + var(--header-h) + clamp(20px, 4vw, 56px)); position: relative; }
.hero__top { display: flex; justify-content: space-between; gap: 16px; margin-bottom: clamp(14px, 2vw, 28px); color: var(--muted); }
.wordmark { width: 100%; height: auto; color: var(--fg); overflow: hidden; }
/* Sotto il logo grande il payoff "event hub"; titolo, testo e bottone nella colonna destra. */
.hero__intro { margin-top: clamp(16px, 2.8vw, 48px); align-items: start; row-gap: 0; }
.payoff { display: block; height: auto; }
.hero__payoff { grid-column: 1 / -1; grid-row: 1; color: var(--fg); }
.hero__payoff .payoff { width: max(25%, 180px); margin-left: .54%; }
.hero__aside { grid-column: 8 / span 5; grid-row: 1; }
.hero__title {
  font-size: clamp(1.375rem, 1.05rem + 1vw, 2rem);
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: -.015em;
  text-wrap: balance;
  color: var(--fg);
}
.hero__aside .lead { color: var(--muted); max-width: 40ch; margin-top: 14px; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero__media { margin-top: clamp(40px, 4.5vw, 72px); position: relative; }
.hero__reveal { position: relative; }
.hero__frame {
  position: relative;
  height: min(56.25vw, 92svh);
  min-height: 420px;
  overflow: hidden;
  background: var(--bg-2);
}
.hero__scene { position: absolute; inset: 0; transform-origin: 50% 55%; }
.hero__poster, .hero__canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
.hero__canvas { opacity: 0; transition: opacity .3s ease; }
.hero__canvas.is-ready { opacity: 1; }
.hero__meta {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  padding: 140px var(--pad-r) clamp(18px, 2.6vw, 40px) var(--pad-l);
  color: var(--calce);
  background: linear-gradient(to bottom, rgba(13, 11, 9, 0), rgba(13, 11, 9, .62));
  pointer-events: none;
}
.hero__mq {
  font-size: clamp(3.25rem, 1.6rem + 7vw, 9.5rem);
  font-weight: 500;
  letter-spacing: -.055em;
  line-height: .82;
  font-variant-numeric: tabular-nums;
}
.hero__coords { text-align: right; display: grid; gap: 6px; }

/* Marquee ----------------------------------------------------------------- */
.marquee {
  overflow: hidden;
  padding-block: clamp(28px, 4vw, 60px);
  border-bottom: 1px solid var(--line);
}
.marquee__track { display: flex; width: max-content; will-change: transform; }
.marquee__group {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 48px);
  padding-right: clamp(20px, 3vw, 48px);
  font-size: clamp(2.25rem, 1.1rem + 4.8vw, 6.5rem);
  font-weight: 500;
  letter-spacing: -.05em;
  line-height: 1.05;
  white-space: nowrap;
}
.marquee__group span:nth-child(4n+3) { color: var(--muted); }
.marquee__sep { flex: none; width: .42em; height: .42em; border-radius: 50%; background: currentColor; }

/* Chi siamo --------------------------------------------------------------- */
.about { padding-block: var(--section); }
.about__title { grid-column: 1 / span 10; }
.about__body { margin-top: clamp(56px, 8vw, 128px); row-gap: 72px; align-items: start; }
.about__media { grid-column: 1 / span 5; position: relative; padding-bottom: 12%; }
.about__text { grid-column: 7 / span 6; display: grid; gap: clamp(32px, 4vw, 56px); }

.fig { margin: 0; }
.fig__box { position: relative; overflow: hidden; background: var(--bg-2); }
.fig__box img { width: 100%; height: 100%; object-fit: cover; }
.fig--bw img { filter: grayscale(1) contrast(1.06); }
.fig figcaption { margin-top: 12px; color: var(--muted); }
.fig-tall .fig__box { aspect-ratio: 4 / 5; }
.fig-par img { height: 116%; margin-top: -8%; }

/* Slideshow Chi siamo */
.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 1.2s var(--ease), transform 6s linear;
}
.slide.is-active { opacity: 1; z-index: 1; transform: scale(1); }
.slide img { position: absolute; left: 0; top: 0; }
.slides__next { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; cursor: pointer; }
.slides__next:focus-visible { outline: 2px solid var(--calce); outline-offset: -6px; }
.slides__bar { position: absolute; left: 16px; right: 16px; bottom: 16px; z-index: 3; display: flex; gap: 6px; pointer-events: none; }
.slides__bar span { position: relative; flex: 1; height: 2px; overflow: hidden; background: rgba(236, 234, 230, .35); }
.slides__bar span::after { content: ""; position: absolute; inset: 0; background: var(--calce); transform: scaleX(0); transform-origin: left; }
.slides__bar span.is-done::after { transform: scaleX(1); }
.slides__bar span.is-active::after { animation: slide-fill var(--slide-dur, 4.5s) linear forwards; }
@keyframes slide-fill { to { transform: scaleX(1); } }
.fig-small { position: absolute; right: -16%; bottom: 0; width: 54%; }
.fig-small .fig__box { aspect-ratio: 1 / 1; }
.fig-small--old .fig__box { aspect-ratio: 3 / 4; }
.fig-small--old img { filter: sepia(.08) contrast(1.02); }

.fill-text + .fill-text { margin-top: calc(.55em - clamp(32px, 4vw, 56px)); }
.fill-text {
  font-size: clamp(1.375rem, .95rem + 1.35vw, 2.25rem);
  line-height: 1.28;
  font-weight: 400;
  letter-spacing: -.025em;
  text-wrap: pretty;
}
.formats { border-bottom: 1px solid var(--line); }
.formats li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-block: clamp(14px, 1.6vw, 22px);
  border-top: 1px solid var(--line);
  font-size: var(--fs-h3);
  font-weight: 500;
  letter-spacing: -.035em;
  line-height: 1.1;
  transition: padding .6s var(--ease-out), color .4s;
}
.formats li::after {
  content: "";
  flex: none;
  width: 14px; height: 14px;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  transition: background .4s, transform .6s var(--ease-out);
}
@media (hover: hover) {
  .formats li:hover { padding-left: 14px; }
  .formats li:hover::after { background: currentColor; transform: scale(1.5); }
}

.timeline { margin-top: clamp(96px, 11vw, 176px); position: relative; }
.timeline__track { position: relative; height: 1px; background: var(--line); margin-bottom: 28px; }
.timeline__fill { position: absolute; inset: 0; background: var(--fg); transform-origin: left; }
.timeline__steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--col-gap); }
.timeline__step { position: relative; display: grid; gap: 12px; padding-right: 8%; }
.timeline__step::before {
  content: "";
  position: absolute; top: -34px; left: 0;
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--fg);
}
.timeline__step p { color: var(--muted); max-width: 36ch; }

/* Spazio e capienze ------------------------------------------------------- */
.space { padding-block: var(--section); }
.space__title { grid-column: 1 / span 11; }
.space__intro { grid-column: 7 / span 6; margin-top: clamp(28px, 3vw, 48px); color: var(--muted); }

.config {
  margin-top: clamp(64px, 8vw, 128px);
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(28px, 4vw, 80px);
  align-items: center;
}
.config__side { display: grid; gap: clamp(28px, 3vw, 48px); max-width: 560px; }
.config__count { display: grid; gap: 6px; }
.config__num {
  font-size: clamp(6rem, 2.5rem + 9.5vw, 13rem);
  font-weight: 500;
  letter-spacing: -.07em;
  line-height: .78;
  font-variant-numeric: tabular-nums;
  margin-left: -.04em;
}
.tabs { border-bottom: 1px solid var(--line); }
.tab {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 20px;
  width: 100%;
  padding-block: 18px;
  border-top: 1px solid var(--line);
  text-align: left;
  color: var(--muted);
  transition: color .4s;
}
.tab { position: relative; }
.tab__text { display: grid; gap: 4px; min-width: 0; }
.tab__fill { display: none; }
.tab[aria-selected="true"] { color: var(--fg); }
.tab__name { font-size: 1.25rem; font-weight: 500; letter-spacing: -.025em; line-height: 1.25; }
.tab__uses { font-size: var(--fs-small); }
.tab__go {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--fg);
  transition: background .45s var(--ease-out), color .45s var(--ease-out), border-color .45s var(--ease-out), transform .6s var(--ease-out);
}
.tab__go svg { width: 14px; height: 14px; }
.tab[aria-selected="true"] .tab__go { background: var(--fg); border-color: var(--fg); color: var(--bg); }
@media (hover: hover) {
  .tab:hover { color: var(--fg); }
  .tab:hover .tab__go { border-color: var(--fg); }
}

.plan { margin: 0; border: 1px solid var(--line); background: var(--bg); width: fit-content; max-width: 100%; justify-self: center; }
.plan__head, .plan__foot {
  display: flex; justify-content: space-between; align-items: center; gap: 12px 18px; flex-wrap: wrap;
  padding: 14px 18px;
  color: var(--muted);
}
.plan__head { border-bottom: 1px solid var(--line); }
.plan__foot { border-top: 1px solid var(--line); }
.plan__legend { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.lg { display: inline-block; vertical-align: -1px; margin-right: 7px; width: 9px; height: 9px; }
.lg--dot { border-radius: 50%; background: var(--fg); }
.lg--ring { width: 11px; height: 11px; border-radius: 50%; border: 1.5px solid var(--fg); }
.lg--hatch { width: 12px; border: 1px solid var(--fg); background: repeating-linear-gradient(45deg, transparent 0 2px, var(--fg) 2px 3px); opacity: .7; }
/* Frecce ai lati della pianta: rendono evidente che la disposizione si può cambiare */
.plan__stage { position: relative; }
.plan__box { padding: 10px 14px; touch-action: pan-y; }
.plan__nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-top: -24px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--fg);
  transition: background .35s, color .35s, border-color .35s, opacity .35s;
}
.plan__nav svg { width: 14px; height: 14px; }
.plan__nav--prev { right: calc(100% + 18px); }
.plan__nav--prev svg { transform: rotate(180deg); }
.plan__nav--next { left: calc(100% + 18px); background: var(--fg); border-color: var(--fg); color: var(--bg); }
.plan__nav[aria-disabled="true"] { opacity: .28; cursor: default; }
@media (hover: hover) {
  .plan__nav:not([aria-disabled="true"]):hover { background: var(--fg); border-color: var(--fg); color: var(--bg); }
}
.plan__svg { display: block; height: min(70svh, 760px); width: auto; aspect-ratio: 720 / 1150; max-width: 100%; color: var(--fg); overflow: visible; }
.plan__outer { fill: none; stroke: currentColor; stroke-width: 7; stroke-linejoin: miter; }
.plan__walls path { fill: none; stroke: currentColor; stroke-width: 3.5; stroke-linecap: square; }
.plan__walls .plan__thin, .plan__thin { fill: none; stroke: currentColor; stroke-width: 1.6; }
.plan__counter { fill: none; stroke: currentColor; stroke-width: 7; stroke-linecap: square; }
.plan__hatch { stroke: currentColor; stroke-width: 1.2; opacity: .35; }
.plan__fix { fill: url(#hatch); stroke: currentColor; stroke-width: 1.5; }
.plan__buffet { fill: url(#hatch); stroke: currentColor; stroke-width: 1.8; }
.plan__solid { fill: currentColor; }
.plan__door { fill: var(--bg); }
.plan__arrow { fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.plan__svg text {
  font-family: var(--font);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: .12em;
  fill: var(--muted);
  paint-order: stroke;
  stroke: var(--bg);
  stroke-width: 6px;
  stroke-linejoin: round;
}
.plan__table { fill: none; stroke: currentColor; stroke-width: 1.8; }
.plan__dot { fill: currentColor; }
.plan__uses { display: none; }
.plan__hint--scroll { display: none; align-items: center; }
.config.is-pinned .plan__hint--scroll { display: inline-flex; }
.mouse { position: relative; flex: none; width: 12px; height: 18px; margin-right: 10px; border: 1.5px solid currentColor; border-radius: 7px; }
.mouse::after { content: ""; position: absolute; left: 50%; top: 3px; width: 2px; height: 4px; margin-left: -1px; border-radius: 1px; background: currentColor; animation: wheel 1.6s ease-in-out infinite; }
@keyframes wheel { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(6px); opacity: 0; } 100% { opacity: 0; } }
.plan__prog { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.plan__segs { display: flex; gap: 4px; width: clamp(96px, 10vw, 168px); }
.plan__segs i { flex: 1; height: 2px; background: var(--line); position: relative; overflow: hidden; }
.plan__segs i::after { content: ""; position: absolute; inset: 0; background: var(--fg); transform: scaleX(var(--p, 0)); transform-origin: left; }
.plan__step { font-variant-numeric: tabular-nums; }
.plan__step b { color: var(--fg); font-weight: 500; }
@keyframes tab-fill { to { transform: scaleX(1); } }

.facts { margin-top: clamp(96px, 12vw, 180px); }
/* Numeri e parole (Photobooth, Backstage) hanno tutti la stessa misura, calcolata sulla
   larghezza della colonna perché la parola più lunga stia su una riga. */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 1px solid var(--line); container-type: inline-size; --stat-fit: calc((25cqi - 48px) / 5.5); }
.stat { display: grid; align-content: start; gap: 14px; padding: 22px 24px 34px; border-top: 1px solid var(--line); }
.stat:nth-child(4n+1) { padding-left: 0; }
.stat:not(:nth-child(4n+1)) { border-left: 1px solid var(--line); }
.stat__num {
  font-size: min(clamp(3rem, 1.8rem + 4.2vw, 6.75rem), var(--stat-fit));
  font-weight: 500;
  letter-spacing: -.06em;
  line-height: .86;
  font-variant-numeric: tabular-nums;
}
.stat__num--word { letter-spacing: -.055em; }
.stat__num .unit { font-size: .4em; letter-spacing: -.02em; margin-left: .08em; }
.stat p:not(.stat__num) { color: var(--muted); font-size: var(--fs-small); max-width: 32ch; }
.stat h3 { font-size: 1.125rem; letter-spacing: -.02em; }

/* Dotazioni --------------------------------------------------------------- */
.equip { padding-block: var(--section); position: relative; }
.equip__head { align-items: end; row-gap: 32px; }
.equip__title { grid-column: 1 / span 9; }
.equip__badge { grid-column: 11 / span 2; justify-self: end; width: clamp(110px, 10vw, 150px); }
.equip__badge svg { width: 100%; height: auto; overflow: visible; }
.equip__badge text { font-family: var(--font); font-size: 10.5px; font-weight: 500; fill: var(--fg); }
.equip__intro { grid-column: 7 / span 6; margin-top: clamp(28px, 3vw, 48px); color: var(--muted); }

.lighting { margin-top: clamp(64px, 8vw, 128px); }
.lighting > .spec { border-top: 1px solid var(--line); }
.rig { margin-top: clamp(20px, 2.4vw, 40px); }
.rig__truss {
  height: 12px;
  border-block: 1px solid var(--line);
  background: repeating-linear-gradient(60deg, transparent 0 9px, var(--line) 9px 10px);
}
.rig__lamps { display: grid; grid-template-columns: repeat(30, minmax(0, 1fr)); overflow: hidden; }
.lamp { position: relative; height: clamp(150px, 17vw, 260px); }
.lamp__body {
  position: absolute; top: 0; left: 50%;
  width: 9px; height: 16px; margin-left: -4.5px;
  border-radius: 0 0 5px 5px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-top: 0;
}
.lamp__bulb {
  position: absolute; top: 15px; left: 50%;
  width: 7px; height: 7px; margin-left: -3.5px;
  border-radius: 50%;
  background: #3a352f;
  transition: background .25s, box-shadow .4s;
}
.lamp__cone {
  position: absolute; top: 19px; left: 50%;
  width: 300%; height: calc(100% - 19px);
  transform: translateX(-50%);
  clip-path: polygon(47% 0, 53% 0, 100% 100%, 0 100%);
  background: linear-gradient(to bottom, rgba(255, 226, 181, .55), rgba(255, 226, 181, 0) 92%);
  mix-blend-mode: screen;
  opacity: 0;
  transition: opacity .5s ease;
  pointer-events: none;
}
.lamp.on .lamp__bulb, .no-motion .lamp__bulb, html:not(.js) .lamp__bulb {
  background: var(--lux);
  box-shadow: 0 0 10px 3px rgba(255, 226, 181, .8), 0 0 34px 10px rgba(255, 226, 181, .25);
}
.lamp.on .lamp__cone, .no-motion .lamp__cone, html:not(.js) .lamp__cone { opacity: .55; }
.lamp.on .lamp__bulb { animation: flick .5s steps(1) 1; }
@keyframes flick { 0% { opacity: .3; } 20% { opacity: 1; } 35% { opacity: .45; } 55%, 100% { opacity: 1; } }
.rig__meta { display: flex; justify-content: flex-end; align-items: baseline; gap: 16px; margin-top: 18px; color: var(--muted); }
.rig__count { font-variant-numeric: tabular-nums; color: var(--fg); }

.specs { margin-top: clamp(72px, 9vw, 140px); border-bottom: 1px solid var(--line); }
.spec {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 4fr) minmax(0, 5fr);
  gap: 12px var(--col-gap);
  align-items: baseline;
  padding-block: clamp(22px, 2.6vw, 40px);
  border-top: 1px solid var(--line);
}
.spec > * { min-width: 0; }
.spec__key {
  font-size: clamp(2.125rem, 1.2rem + 2.8vw, 4.25rem);
  font-weight: 500;
  letter-spacing: -.05em;
  line-height: .95;
  font-variant-numeric: tabular-nums;
  transition: color .5s;
}
.nw { white-space: nowrap; }
.spec__key small { font-size: .42em; letter-spacing: -.01em; margin-left: .1em; font-weight: 500; }
.spec__txt { color: var(--muted); max-width: 52ch; }
@media (hover: hover) { .spec:hover .spec__key { color: var(--lux); } }

/* Servizi ----------------------------------------------------------------- */
.services { padding-top: var(--section); overflow: hidden; }
.services__title { grid-column: 1 / span 9; }
.services__intro { grid-column: 7 / span 6; margin-top: clamp(28px, 3vw, 48px); color: var(--muted); }
.services__pin { padding-block: clamp(56px, 7vw, 112px) var(--section); }
.services__track {
  display: flex;
  gap: clamp(16px, 2vw, 32px);
  width: max-content;
  padding-left: var(--pad-l);
  padding-right: var(--pad-r);
}
.svc { flex: none; width: clamp(280px, 27vw, 460px); display: grid; align-content: start; gap: 18px; }
.svc__fig { margin: 0; aspect-ratio: 4 / 5; overflow: hidden; background: var(--bg-2); }
.svc__fig img { width: 120%; max-width: none; height: 100%; object-fit: cover; margin-left: -10%; }
.svc--fit .svc__fig { background: #F9F9FB; }
.svc--fit .svc__fig img { width: 100%; margin-left: 0; }
.svc__tag { color: var(--muted); }
.svc h3 { font-size: var(--fs-h3); letter-spacing: -.035em; line-height: 1.1; }
.svc p { color: var(--muted); max-width: 40ch; }
.svc--cta {
  align-content: space-between;
  padding: clamp(24px, 2.4vw, 40px);
  background: var(--ink);
  color: var(--calce);
  --fg: var(--calce);
  --bg: var(--ink);
  --line: var(--line-dark);
  aspect-ratio: 4 / 5;
  align-self: start;
}
.svc--cta .svc__tag { color: var(--stone); }
.svc--cta .h3 { color: var(--calce); font-size: clamp(1.75rem, 1rem + 2vw, 2.75rem); line-height: 1.04; letter-spacing: -.045em; }
.services__bar { display: flex; align-items: center; gap: 18px; margin-top: clamp(28px, 3vw, 48px); color: var(--muted); }
.services__bar-track { position: relative; flex: 1; height: 1px; background: var(--line); }
.services__bar-fill { position: absolute; inset: 0; background: var(--fg); transform: scaleX(0); transform-origin: left; }

/* Contatti ---------------------------------------------------------------- */
.contact { position: relative; padding-top: var(--section); overflow: hidden; }
.contact__bg { position: absolute; inset: 0 0 auto 0; height: min(100vh, 900px); opacity: .26; pointer-events: none; }
.contact__bg img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.1); }
.contact__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(13, 11, 9, .2), var(--ink) 92%); }
.contact > .wrap { position: relative; }
.contact__title {
  grid-column: 1 / span 11;
  font-size: var(--fs-display);
  line-height: .92;
  letter-spacing: -.06em;
  text-wrap: balance;
}
.contact__sub { grid-column: 1 / span 6; margin-top: clamp(28px, 3vw, 48px); color: var(--muted); }
.contact__grid { margin-top: clamp(72px, 9vw, 150px); row-gap: 64px; align-items: start; }
.contact__info { grid-column: 1 / span 5; border-bottom: 1px solid var(--line); }
.contact__info > div { display: grid; gap: 6px; padding-block: 20px; border-top: 1px solid var(--line); }
.contact__info dt { color: var(--muted); }
.contact__info dd { font-size: clamp(1.125rem, .95rem + .6vw, 1.5rem); font-weight: 400; letter-spacing: -.02em; line-height: 1.3; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; }
.dd-note { font-size: var(--fs-small); color: var(--muted); letter-spacing: 0; }
.footer__bottom p a:hover { color: var(--fg); }
.ph { color: var(--muted); border-bottom: 1px dashed var(--muted); }

.form { grid-column: 7 / span 6; display: grid; gap: 28px; }
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px var(--col-gap); }
.field { display: grid; gap: 6px; min-width: 0; }
.field label { color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%;
  min-width: 0;
  padding: 10px 0 12px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--fg);
  font: 400 1.125rem/1.4 var(--font);
  letter-spacing: -.01em;
  transition: border-color .3s;
  -webkit-appearance: none;
  appearance: none;
}
.field textarea { resize: vertical; min-height: 120px; }
.field select {
  padding-right: 28px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23A6A199' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 4px center;
}
.field select option { background: var(--ink); color: var(--calce); }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); opacity: .7; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--fg); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { box-shadow: 0 1px 0 0 var(--fg); }
.field input[type="date"] { min-height: 49px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: var(--fs-small); color: var(--muted); }
.check input { flex: none; width: 18px; height: 18px; margin-top: 2px; accent-color: var(--calce); }
.check a { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.form__status { font-size: var(--fs-small); color: var(--fg); min-height: 1.4em; }
.form__status[data-state="error"] { color: #F3B7A6; }

main, .footer { overflow-x: clip; }

/* Footer ------------------------------------------------------------------ */
.footer { padding-top: clamp(96px, 12vw, 200px); padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 28px); }
.footer__mark { color: var(--fg); }
.payoff--foot { width: 30.2%; margin: 3.55% auto 0; }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px 32px;
  margin-top: clamp(24px, 3vw, 44px);
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: var(--fs-small);
}
.footer__bottom ul { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer__bottom a:hover { color: var(--fg); }

/* Cursore e grana ---------------------------------------------------------- */
.cursor { position: fixed; top: 0; left: 0; z-index: 120; pointer-events: none; mix-blend-mode: difference; display: none; }
.has-cursor .cursor { display: block; }
.cursor__dot {
  width: 12px; height: 12px; margin: -6px 0 0 -6px;
  border-radius: 50%;
  background: #fff;
  transition: transform .45s var(--ease-out);
}
.cursor.is-link .cursor__dot { transform: scale(3.6); }
.cursor.is-hidden .cursor__dot { transform: scale(0); }

.grain {
  position: fixed;
  inset: 0;
  z-index: 110;
  pointer-events: none;
  opacity: .06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' 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 1.1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Responsive -------------------------------------------------------------- */
@media (max-width: 1180px) {
  .nav { display: none; }
  .menu-btn { display: inline-flex; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); --stat-fit: calc((50cqi - 48px) / 5.5); }
  .stat:nth-child(n) { padding-left: 24px; border-left: 1px solid var(--line); }
  .stat:nth-child(2n+1) { padding-left: 0; border-left: 0; }
}
@media (max-width: 1023px) {
  .hero__aside { grid-column: 1 / -1; grid-row: 2; margin-top: clamp(56px, 12vw, 88px); }
  .about__title, .space__title, .equip__title, .services__title, .contact__title { grid-column: 1 / -1; }
  .space__intro, .equip__intro, .services__intro, .contact__sub { grid-column: 1 / -1; max-width: 60ch; }
  .about__media { grid-column: 1 / span 9; }
  .about__text { grid-column: 1 / -1; }
  .config { grid-template-columns: minmax(0, 1fr); }
  .config__side { max-width: none; }
  .plan { width: 100%; justify-self: stretch; }
  .plan__box { display: flex; justify-content: center; }
  .plan__svg { width: min(100%, 560px); height: auto; }
  /* Su tablet e telefono le disposizioni diventano tre pulsanti sopra la pianta,
     con le frecce sulla pianta e il cambio automatico finché non si tocca nulla. */
  .config__side { gap: 28px; }
  .tabs { display: flex; gap: 6px; border-bottom: 0; }
  .tab {
    flex: 1 1 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 48px;
    padding: 0 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
    overflow: hidden;
    color: var(--fg);
    text-align: center;
  }
  .tab__text { display: block; }
  .tab__uses, .tab__go, .tab__more { display: none; }
  .tab__name { font-size: .9375rem; white-space: nowrap; }
  .tab[aria-selected="true"] { background: var(--fg); border-color: var(--fg); color: var(--bg); }
  .tab__fill { display: block; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: currentColor; opacity: .5; transform: scaleX(0); transform-origin: left; }
  .config.is-auto .tab[aria-selected="true"] .tab__fill { animation: tab-fill var(--auto-dur, 4200ms) linear forwards; }
  /* le frecce scendono nel piede della pianta, accanto alla descrizione, per non coprire il disegno */
  .plan { position: relative; }
  .plan__stage { position: static; }
  .plan__nav { top: auto; bottom: 10px; margin-top: 0; width: 44px; height: 44px; }
  .plan__nav--prev { left: auto; right: 62px; }
  .plan__nav--next { left: auto; right: 12px; }
  .plan__foot { min-height: 64px; padding-right: 124px; }
  .plan__uses { display: inline; }
  .plan__prog { display: none; }
  .equip__badge { grid-column: 1 / -1; justify-self: start; }
  .spec { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); }
  .spec__txt { grid-column: 2; }
  .services__pin { padding-bottom: var(--section); }
  .services__track {
    overflow-x: auto;
    width: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-left: var(--pad-l);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .services__track::-webkit-scrollbar { display: none; }
  .svc { width: min(78vw, 400px); scroll-snap-align: start; }
  .contact__info, .form { grid-column: 1 / -1; }
}
@media (max-width: 767px) {
  :root { --header-h: 64px; }
  .hero__top .label:last-child { display: none; }
  .hero__aside .lead { margin-top: 8px; }
  .hero__frame { height: auto; aspect-ratio: 16 / 9; min-height: 0; max-height: none; }
  .hero__meta { padding-top: 36px; padding-bottom: 12px; align-items: flex-end; }
  .hero__mq { font-size: 2.5rem; }
  .hero__coords .label { font-size: .625rem; letter-spacing: .06em; white-space: nowrap; }
  .hero__coords .label:first-child { display: none; }
  .header__cta { display: none; }
  .about__media { grid-column: 1 / -1; padding-bottom: 0; }
  .fig-small { position: relative; right: auto; width: 62%; margin: 32px 0 0 auto; }
  .timeline__steps { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .timeline__track { display: none; }
  .timeline__step { padding-left: 28px; padding-right: 0; }
  .timeline__step::before { top: 8px; }
  .lamp { height: 120px; }
  .lamp__body { width: 7px; height: 12px; margin-left: -3.5px; }
  .lamp__bulb { top: 11px; width: 5px; height: 5px; margin-left: -2.5px; }
  .lamp__cone { top: 14px; height: calc(100% - 14px); width: 420%; }
  .rig__meta { flex-direction: column; gap: 6px; }
  .stat:nth-child(n) { padding: 18px 14px 26px; }
  .stat:nth-child(2n+1) { padding-left: 0; }
  .stats { --stat-fit: calc((50cqi - 28px) / 5.5); }
  .stat__num { font-size: min(clamp(2.5rem, 1.6rem + 4vw, 3.25rem), var(--stat-fit)); }
  .tab__go { width: 42px; height: 42px; }
  .spec { grid-template-columns: minmax(0, 1fr); }
  .spec__txt { grid-column: auto; }
  .form__row { grid-template-columns: minmax(0, 1fr); }
  .s-head { flex-direction: column; gap: 4px; }
  .s-head .muted { text-align: left; }
  .btn { height: 54px; }
  .ctas .btn { flex: 1 1 auto; justify-content: space-between; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
