/* beets! — sito. Il mondo dell'app: bianco e nero puro, Albert Sans.
   Scala tipografica a quarte giuste (×1,333) da 18 px. */

@font-face { font-family: "Albert Sans"; src: url("assets/fonts/AlbertSans-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Albert Sans"; src: url("assets/fonts/AlbertSans-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Albert Sans"; src: url("assets/fonts/AlbertSans-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Albert Sans"; src: url("assets/fonts/AlbertSans-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Albert Sans"; src: url("assets/fonts/AlbertSans-ExtraBold.ttf") format("truetype"); font-weight: 800; font-display: swap; }

:root {
  --black: #000;
  --white: #fff;
  --graphite: #1c1c1e;
  --graphite-up: #2c2c2e;
  --ash: #8e8e93;
  --mist: #c7c7cc;
  --line: #2c2c2e;

  --s1: 18px;   /* testo */
  --s2: 24px;
  --s3: 32px;
  --s4: 43px;
  --s5: 57px;
  --s6: 76px;

  --ease: cubic-bezier(.16, 1, .3, 1);
  --wrap: 1180px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font: 400 var(--s1)/1.55 "Albert Sans", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
h2 { font-size: clamp(var(--s3), 4.2vw, var(--s5)); font-weight: 800; line-height: 1.02; letter-spacing: -0.03em; }
h3 { font-size: var(--s2); font-weight: 700; line-height: 1.2; letter-spacing: -0.015em; }

.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 20; background: var(--white); color: var(--black); padding: 10px 14px; border-radius: 10px; }
:focus-visible { outline: 2px solid var(--white); outline-offset: 3px; border-radius: 6px; }

.wordmark { font-weight: 800; font-size: 26px; letter-spacing: -0.035em; text-decoration: none; }

/* Bottone: quello dell'app, bianco pieno. */
.button {
  display: inline-flex; align-items: center; justify-content: center;
  height: 56px; padding: 0 28px; border: 0; border-radius: 16px;
  background: var(--white); color: var(--black);
  font: 700 var(--s1)/1 "Albert Sans", system-ui, sans-serif; text-decoration: none; cursor: pointer;
  transition: transform .3s var(--ease);
}
.button:active { transform: scale(.97); }
.button--small { height: 40px; padding: 0 16px; border-radius: 12px; font-size: 15px; }
.button--wide { width: 100%; }
.button[disabled] { opacity: .5; cursor: progress; }

/* Barra */
.bar { position: sticky; top: 0; z-index: 10; background: rgba(0, 0, 0, .78); backdrop-filter: blur(16px) saturate(150%); -webkit-backdrop-filter: blur(16px) saturate(150%); }
.bar__inner { display: flex; align-items: center; gap: 28px; height: 64px; }
.bar__links { display: flex; gap: 24px; margin-left: auto; }
.bar__links a { color: var(--mist); text-decoration: none; font-weight: 600; font-size: 15px; }
.bar__links a:hover { color: var(--white); }
/* Selettore di lingua: due voci, quella attiva in bianco pieno. */
.lang { display: flex; gap: 2px; padding: 3px; border-radius: 10px; background: var(--graphite); }
.lang--push { margin-left: auto; }
.lang button {
  border: 0; border-radius: 7px; padding: 6px 9px; cursor: pointer;
  background: transparent; color: var(--ash);
  font: 700 13px/1 "Albert Sans", system-ui, sans-serif; letter-spacing: .02em;
}
.lang button:hover { color: var(--white); }
.lang button[aria-pressed="true"] { background: var(--white); color: var(--black); }
@media (max-width: 760px) { .bar__links { display: none; } .bar .lang { margin-left: auto; } .bar__inner { gap: 12px; } }
@media (max-width: 380px) { .bar .button--small { padding: 0 12px; font-size: 14px; } }

/* ── Apertura ──────────────────────────────────────────────────────────── */
.hero { padding: clamp(40px, 7vw, 96px) 0 clamp(72px, 9vw, 128px); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.hero__title {
  font-size: clamp(46px, 6.2vw, 92px); font-weight: 800; line-height: .95; letter-spacing: -0.045em; text-wrap: balance;
  margin-bottom: 28px;
}
.hero__lead { color: var(--mist); font-size: clamp(var(--s1), 1.6vw, 21px); line-height: 1.5; max-width: 30em; margin-bottom: 32px; }
.hero__note { color: var(--ash); font-size: 15px; margin-top: 16px; }
@media (max-width: 900px) { .hero__grid { grid-template-columns: 1fr; gap: 72px; } }

/* ── Profilo in apertura: un mazzo di persone, quella davanti si può contattare ── */
.deck { position: relative; width: min(420px, 100%); margin: 0 auto; padding: 56px 0 0; }
.face {
  display: inline-grid; place-items: center; flex: none;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--graphite-up); color: var(--white); font-weight: 800; font-size: 15px;
}
.face--light { background: var(--white); color: var(--black); }
.face--lg { width: 72px; height: 72px; font-size: 24px; }
.face--sm { width: 32px; height: 32px; font-size: 12px; }

/* Le altre persone, dietro: si intravedono e basta. */
.peek {
  position: absolute; left: 50%; top: 0; width: 86%;
  display: flex; align-items: center; gap: 12px; padding: 16px 18px 60px;
  border-radius: 26px; background: var(--graphite); box-shadow: inset 0 0 0 1px var(--line);
  translate: -50% 0;
}
.peek--far { width: 76%; top: 0; opacity: .45; rotate: -4deg; }
.peek--near { top: 26px; opacity: .8; rotate: 3deg; }
.peek__name { font-weight: 700; font-size: 15px; line-height: 1.25; }
.peek__name small { display: block; color: var(--ash); font-weight: 500; font-size: 13px; }

.profile {
  position: relative; border-radius: 28px; padding: 24px;
  background: #151517; box-shadow: inset 0 0 0 1px var(--line), 0 40px 90px rgba(0, 0, 0, .75);
}
.profile__head { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.profile__name { font-size: var(--s2); font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
.profile__role { color: var(--mist); font-weight: 600; }
.profile__meta { color: var(--ash); font-size: 15px; }
.profile__common { display: flex; align-items: center; gap: 10px; color: var(--mist); font-size: 15px; padding: 12px 14px; border-radius: 16px; background: var(--graphite); margin-bottom: 18px; }
.pile { display: inline-flex; flex: none; }
.pile span { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 10px; font-weight: 800; background: var(--graphite-up); box-shadow: 0 0 0 2px var(--graphite); }
.pile span + span { margin-left: -8px; }
.pile span:first-child { background: var(--white); color: var(--black); }
.profile__label { color: var(--ash); font-size: 14px; font-weight: 600; margin: 0 0 8px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.tag { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); font-weight: 600; font-size: 14px; }
/* In comune con chi guarda: bordo bianco, come nell'app. */
.tag--match { border-color: var(--white); background: var(--graphite-up); }
.profile__body { display: grid; gap: 4px; }
.profile__body[hidden] { display: none; }
.profile__body .button { margin-top: 8px; }

.proposal { border: 0; padding: 0; margin: 0; }
.proposal__topic { font-weight: 700; margin-bottom: 8px; }
.choice { border: 0; margin: 0 0 10px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.choice legend { color: var(--ash); font-size: 14px; font-weight: 600; padding: 0; margin-bottom: 8px; }
.choice label { position: relative; cursor: pointer; }
.choice input { position: absolute; inset: 0; opacity: 0; margin: 0; }
.choice span { display: inline-block; padding: 9px 14px; border-radius: 12px; background: var(--graphite); font-weight: 700; font-size: 15px; color: var(--mist); transition: background .3s var(--ease), color .3s var(--ease); }
.choice input:checked + span { background: var(--white); color: var(--black); }
.choice input:focus-visible + span { outline: 2px solid var(--white); outline-offset: 2px; }
.proposal__actions { display: grid; gap: 4px; }
.text-button { border: 0; background: none; color: var(--mist); font: 600 15px "Albert Sans", system-ui, sans-serif; padding: 12px; cursor: pointer; border-radius: 10px; }
.text-button:hover { color: var(--white); }

.sent__status { display: flex; align-items: center; gap: 10px; font-size: var(--s2); font-weight: 800; letter-spacing: -0.02em; outline: none; }
.sent__check { width: 30px; height: 30px; border-radius: 50%; background: var(--white); position: relative; flex: none; }
.sent__check::after { content: ""; position: absolute; left: 9px; top: 9px; width: 11px; height: 6px; border-left: 3px solid var(--black); border-bottom: 3px solid var(--black); rotate: -45deg; }
.sent__summary { color: var(--ash); font-size: 15px; margin-bottom: 14px; }
.bubble { display: flex; align-items: flex-end; gap: 10px; }
.bubble p { padding: 12px 16px; border-radius: 18px 18px 18px 6px; background: var(--graphite-up); font-weight: 500; max-width: 26ch; }
.sent .text-button { justify-self: start; padding-left: 0; margin-top: 6px; }

/* ── "Sto arrivando": città in 3D (three.js) con ripiego allo screenshot ── */
.arrive { border-top: 1px solid var(--line); padding: clamp(88px, 10vw, 150px) 0; }
.arrive__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.arrive__copy h2 { margin-bottom: 22px; }
.arrive__copy p { color: var(--mist); font-size: 20px; line-height: 1.5; max-width: 26em; }
.arrive__copy .arrive__aside { color: var(--ash); font-size: var(--s1); margin-top: 16px; }
.arrive__fallback { width: min(290px, 80%); justify-self: center; }
.arrive__canvas { display: none; }
@media (max-width: 900px) { .arrive__grid { grid-template-columns: 1fr; gap: 36px; } }

/* Con il 3D: la sezione è lunga, la scena resta ferma e lo scorrimento fa arrivare le persone. */
.arrive.is-3d { height: 260vh; padding: 0; position: relative; }
.arrive.is-3d .arrive__sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; }
.arrive.is-3d .arrive__canvas { display: block; position: absolute; inset: 0; }
.arrive.is-3d .arrive__canvas canvas { display: block; width: 100%; height: 100%; }
.arrive.is-3d .arrive__fallback { display: none; }
.arrive.is-3d .arrive__grid { position: relative; height: 100%; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); pointer-events: none; }
/* Il testo resta leggibile sopra la città. */
.arrive.is-3d .arrive__sticky::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, rgba(0, 0, 0, .92) 0%, rgba(0, 0, 0, .6) 32%, transparent 55%),
              linear-gradient(180deg, rgba(0, 0, 0, .9) 0%, transparent 18%, transparent 82%, rgba(0, 0, 0, .9) 100%);
}
.arrive.is-3d .arrive__copy { position: relative; z-index: 2; pointer-events: auto; }
/* Sul telefono: il testo in alto, la città sotto. svh: la barra del browser non fa saltare la scena. */
@media (max-width: 900px) {
  .arrive.is-3d .arrive__sticky { height: 100svh; }
  .arrive.is-3d .arrive__grid { grid-template-columns: 1fr; align-content: start; padding-top: 84px; }
  .arrive.is-3d .arrive__copy h2 { margin-bottom: 14px; }
  .arrive.is-3d .arrive__copy p { font-size: 17px; }
  .arrive.is-3d .arrive__copy .arrive__aside { display: none; }
  .arrive.is-3d .arrive__sticky::before {
    background: linear-gradient(180deg, rgba(0, 0, 0, .95) 0%, rgba(0, 0, 0, .85) 30%, transparent 52%, transparent 88%, rgba(0, 0, 0, .9) 100%);
  }
}

/* Etichette sopra la scena: luogo dell'incontro e persone con la distanza. */
.arrive__venue, .arrive__person { position: absolute; left: 0; top: 0; z-index: 1; will-change: transform; pointer-events: none; }
.arrive__venue {
  display: inline-flex; align-items: center; height: 34px; padding: 0 13px; border-radius: 999px;
  background: var(--white); color: var(--black); font-weight: 700; font-size: 14px;
  box-shadow: 0 0 0 3px var(--black), 0 0 0 5px var(--white);
}
.arrive__person { display: grid; justify-items: center; gap: 6px; }
.arrive__face {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  background: var(--graphite-up); color: var(--white); font-weight: 800; font-size: 13px;
  box-shadow: 0 0 0 3px var(--black);
}
.arrive__person--you .arrive__face { background: var(--white); color: var(--black); }
.arrive__distance {
  padding: 4px 10px; border-radius: 999px; background: rgba(28, 28, 30, .92);
  font-weight: 700; font-size: 13px; color: var(--white); white-space: nowrap;
}
.arrive__person.is-here .arrive__distance { background: var(--white); color: var(--black); }
.arrive__credit { position: absolute; right: 16px; bottom: 12px; z-index: 2; margin: 0; color: #6c6c70; font-size: 11px; }

/* Il tavolo da sei: l'altro modo di incontrarsi */
.tables { padding: clamp(88px, 10vw, 150px) 0; border-top: 1px solid var(--line); }
.tables__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 56px; align-items: center; }
.tables__copy h2 { margin-bottom: 18px; }
.tables__copy p { color: var(--mist); font-size: 20px; line-height: 1.5; max-width: 26em; }
@media (max-width: 900px) { .tables__grid { grid-template-columns: 1fr; gap: 24px; } }

/* Il tavolo visto dall'alto: un cerchio, sei posti intorno, ognuno con il suo angolo (--a).
   Le misure seguono la larghezza del tavolo (unità cqw). */
.table {
  container-type: inline-size;
  position: relative; width: min(520px, 100% - 80px); aspect-ratio: 1; margin: 40px auto;
}
.table__top {
  position: absolute; inset: 20%; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #262628, var(--graphite) 70%);
  box-shadow: inset 0 0 0 1px var(--line), 0 30px 80px rgba(0, 0, 0, .8);
  display: grid; place-content: center; justify-items: center; gap: 4cqw; padding: 13cqw;
  text-align: center;
}
.table__idea { font-weight: 700; font-size: clamp(13px, 3.4cqw, 18px); line-height: 1.25; letter-spacing: -0.01em; color: var(--mist); }
/* Il pin degli orari, come sulla mappa dell'app. */
.pin {
  display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border-radius: 999px;
  background: var(--white); color: var(--black); font-weight: 700; font-size: 15px;
  box-shadow: 0 0 0 3px var(--black), 0 0 0 5px var(--white);
}

.seats { list-style: none; margin: 0; padding: 0; }
.seat {
  --face: clamp(48px, 14cqw, 76px);
  position: absolute; left: 50%; top: 50%; width: 0; height: 0;
  translate: calc(cos(var(--a)) * 45cqw) calc(sin(var(--a)) * 45cqw);
}
.seat__face {
  position: absolute; left: 0; top: 0; translate: -50% -50%;
  width: var(--face); height: var(--face); border-radius: 50%;
  display: grid; place-items: center;
  background: var(--graphite-up); color: var(--white); font-weight: 800; font-size: calc(var(--face) * .3);
  box-shadow: 0 0 0 4px var(--black);
  text-decoration: none;
}
.seat__face--light { background: var(--white); color: var(--black); }
.seat__name {
  position: absolute; left: 0; top: 0; translate: -50% calc(var(--face) / 2 + 8px);
  white-space: nowrap; text-align: center; font-weight: 700; font-size: 14px; line-height: 1.25;
}
.seat__name small { display: block; color: var(--ash); font-weight: 500; font-size: 13px; }
/* I posti nella metà alta hanno il nome sopra, fuori dal tavolo. */
.seat--top .seat__name { translate: -50% calc(-100% - var(--face) / 2 - 8px); }
.seat--free .seat__face {
  background: var(--black); color: var(--white);
  outline: 2px dashed var(--ash); outline-offset: -2px;
}
.seat--free .seat__face:hover, .seat--free .seat__face:focus-visible { outline: 2px solid var(--white); }
.seat--free .seat__name small { color: var(--white); }
@media (max-width: 520px) {
  .seat__name { font-size: 12px; }
  .seat__name small { display: none; }
}

/* ── Frase che si accende ───────────────────────────────────────────────── */
.statement { padding: clamp(88px, 10vw, 160px) 0; border-top: 1px solid var(--line); }
.statement__text {
  font-size: clamp(30px, 4.3vw, var(--s5)); font-weight: 800; line-height: 1.1; letter-spacing: -0.03em;
  max-width: 21em;
}
.statement__text .w { color: #3a3a3c; transition: color .4s ease; }
.statement__text .w.lit { color: var(--white); }

/* ── Funzioni: testo che scorre, telefono fermo ─────────────────────────── */
.story { padding-bottom: clamp(56px, 8vw, 120px); }
.story__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; }
.story__step { min-height: 82vh; display: flex; flex-direction: column; justify-content: center; padding: 48px 0; max-width: 30em; }
.story__step h2 { margin-bottom: 22px; }
.story__step p { color: var(--mist); font-size: 20px; line-height: 1.5; }
.story__step .story__aside { color: var(--ash); font-size: var(--s1); margin-top: 16px; }
.story__stage { position: sticky; top: calc(50vh - 330px); height: 660px; display: grid; justify-items: center; align-content: start; gap: 24px; }

.phone { margin: 0; padding: 10px; border-radius: 46px; background: #050505; box-shadow: 0 0 0 1px #262626, 0 50px 100px rgba(0, 0, 0, .7); }
.phone img { border-radius: 36px; width: 100%; }
.phone--stage { position: relative; width: 296px; aspect-ratio: 390 / 844; }
.phone--stage img { position: absolute; inset: 10px; width: calc(100% - 20px); height: calc(100% - 20px); object-fit: cover; opacity: 0; transform: scale(1.03); transition: opacity .6s var(--ease), transform .9s var(--ease); }
.phone--stage[data-active="0"] img[data-screen="0"],
.phone--stage[data-active="1"] img[data-screen="1"],
.phone--stage[data-active="2"] img[data-screen="2"],
.phone--stage[data-active="3"] img[data-screen="3"] { opacity: 1; transform: none; }
.story__progress { list-style: none; padding: 0; margin: 0; display: flex; gap: 8px; }
.story__progress li { width: 8px; height: 8px; border-radius: 4px; background: var(--graphite-up); transition: width .5s var(--ease), background .5s var(--ease); }
.story__progress li.on { width: 28px; background: var(--white); }
.story__phone-inline { display: none; }

@media (min-width: 901px) {
  .js .story__step { opacity: .25; transition: opacity .6s var(--ease); }
  .js .story__step.is-active { opacity: 1; }
}
@media (max-width: 900px) {
  .story__grid { grid-template-columns: 1fr; gap: 0; }
  .story__stage { display: none; }
  .story__step { min-height: 0; padding: 40px 0 56px; }
  .story__phone-inline { display: block; width: min(290px, 80%); margin: 36px auto 0; }
}

/* ── Come funziona: tre passi su una linea ──────────────────────────────── */
.how { padding: clamp(96px, 11vw, 168px) 0; border-top: 1px solid var(--line); }
.how__title { margin-bottom: 56px; }
.how__steps { list-style: none; margin: 0 0 72px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; counter-reset: step; }
.how__steps li { position: relative; padding-top: 72px; counter-increment: step; }
.how__steps li::before {
  content: counter(step); position: absolute; top: 0; left: 0;
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: var(--white); color: var(--black); font-weight: 800;
}
.how__steps li::after { content: ""; position: absolute; top: 22px; left: 60px; right: -16px; height: 1px; background: var(--line); }
.how__steps li:last-child::after { display: none; }
.how__steps h3 { margin-bottom: 10px; }
.how__steps p { color: var(--mist); max-width: 22em; }
.how__who { font-size: clamp(20px, 2.1vw, var(--s2)); line-height: 1.45; color: var(--mist); max-width: 32em; }
@media (max-width: 760px) {
  .how__steps { grid-template-columns: 1fr; gap: 36px; }
  .how__steps li { padding: 0 0 0 64px; min-height: 44px; }
  .how__steps li::after { display: none; }
}

/* ── Iscrizione: un invito di beets!, da accettare con la tua email ─────── */
.beta { padding: clamp(96px, 11vw, 168px) 0; background: var(--white); color: var(--black); overflow: hidden; }
.beta__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(48px, 7vw, 104px); align-items: center; }
@media (max-width: 900px) { .beta__grid { grid-template-columns: 1fr; gap: 48px; } }
.beta__head h2 { margin-bottom: 20px; }
.beta__head p { font-size: 20px; line-height: 1.5; color: #3a3a3c; max-width: 30em; }
.beta :focus-visible { outline-color: var(--black); }

/* Il biglietto: scuro sul bianco, appena storto finché non lo prendi in mano. */
.invite {
  position: relative; display: grid; gap: 26px; padding: clamp(24px, 3vw, 34px); border-radius: 32px;
  background: #151517; color: var(--white); box-shadow: 0 40px 80px rgba(0, 0, 0, .22), 0 2px 0 rgba(255, 255, 255, .06) inset;
  transform: perspective(1200px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) rotate(var(--tilt, -2deg));
  transition: transform .9s var(--ease), box-shadow .9s var(--ease);
}
.invite:hover, .invite:focus-within { --tilt: 0deg; }
@media (max-width: 600px) { .invite { --tilt: -1deg; border-radius: 26px; } }
.invite.is-accepted { --tilt: 0deg; box-shadow: 0 60px 110px rgba(0, 0, 0, .3); }
.invite__head { display: flex; align-items: center; gap: 14px; font-size: 20px; line-height: 1.3; }
.invite__head b { font-weight: 800; }
.invite__head span:not(.face) { color: var(--mist); }
.invite__face { font-weight: 800; letter-spacing: -0.04em; }

.invite__details { display: grid; grid-template-columns: 1fr 1fr; margin: 0; border-top: 1px solid #2c2c2e; }
.invite__details div { padding: 16px 16px 16px 0; border-bottom: 1px solid #2c2c2e; }
.invite__details div:nth-child(odd) { border-right: 1px solid #2c2c2e; }
.invite__details div:nth-child(even) { padding-left: 16px; }
.invite__details dt { color: #8e8e93; font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.invite__details dd { margin: 0; font-size: 19px; font-weight: 700; line-height: 1.3; }
@media (max-width: 460px) {
  .invite__details { grid-template-columns: 1fr; }
  .invite__details div:nth-child(odd) { border-right: 0; }
  .invite__details div:nth-child(even) { padding-left: 0; }
}

.invite__answer { display: grid; gap: 10px; }
.invite__label { color: #8e8e93; font-size: 14px; font-weight: 600; }
.invite__field {
  display: flex; align-items: center; gap: 6px; padding: 6px 6px 6px 20px; border-radius: 999px;
  background: #2c2c2e; box-shadow: 0 0 0 2px transparent; transition: box-shadow .25s ease, background .25s ease;
}
.invite__field:focus-within { background: #3a3a3c; box-shadow: 0 0 0 2px var(--white); }
.invite__field input {
  flex: 1; min-width: 0; height: 48px; border: 0; background: none; color: var(--white);
  font: 500 17px "Albert Sans", system-ui, sans-serif; outline: none;
}
.invite__field input::placeholder { color: #8e8e93; }
.invite__field:has(input[aria-invalid="true"]) { box-shadow: 0 0 0 2px #ff6961; }
.invite__accept {
  flex: none; height: 48px; padding: 0 24px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--white); color: var(--black); font: 800 16px "Albert Sans", system-ui, sans-serif;
  transition: transform .3s var(--ease), opacity .2s ease;
}
.invite__accept:active { transform: scale(.96); }
.invite__accept[disabled] { opacity: .5; cursor: progress; }
.invite .invite__accept:focus-visible { outline: 2px solid var(--white); outline-offset: 3px; }
.invite__note { color: #8e8e93; font-size: 13px; line-height: 1.45; }
.invite__note a { color: var(--mist); text-underline-offset: 2px; }
.invite__status { min-height: 1.4em; margin-top: -14px; font-size: 15px; font-weight: 700; color: var(--mist); }
.invite__status:empty { display: none; }
.invite__status[data-tone="error"] { color: #ff6961; }
.form__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Accettato: il campo lascia il posto alla risposta e arriva il timbro. */
.invite.is-accepted .invite__answer { display: none; }
.invite__done { font-size: 20px; font-weight: 700; line-height: 1.4; outline: none; overflow-wrap: anywhere; animation: invite-rise .7s var(--ease) both; }
.invite__stamp {
  position: absolute; right: clamp(16px, 3vw, 28px); top: clamp(14px, 2.4vw, 24px); z-index: 1; pointer-events: none;
  padding: 10px 18px; border: 3px solid var(--white); border-radius: 14px; color: var(--white);
  font-size: 22px; font-weight: 800; letter-spacing: -0.01em; background: #151517;
  opacity: 0; transform: scale(2.2) rotate(-14deg);
}
.invite.is-accepted .invite__stamp { animation: invite-stamp .55s cubic-bezier(.3, 1.5, .5, 1) .1s both; }
@keyframes invite-stamp {
  0% { opacity: 0; transform: scale(2.2) rotate(-14deg); }
  60% { opacity: 1; }
  100% { opacity: 1; transform: scale(1) rotate(-6deg); }
}
@keyframes invite-rise { from { opacity: 0; transform: translateY(12px); } }
@media (prefers-reduced-motion: reduce) {
  .invite { transform: none; transition: none; }
  .invite.is-accepted .invite__stamp, .invite__done { animation: none; opacity: 1; transform: rotate(-6deg); }
  .invite__done { transform: none; }
}

/* ── Domande ────────────────────────────────────────────────────────────── */
.faq { padding: clamp(96px, 11vw, 168px) 0; }
.faq__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 72px; align-items: start; }
@media (max-width: 900px) { .faq__grid { grid-template-columns: 1fr; gap: 32px; } }
.faq__list details { border-bottom: 1px solid var(--line); }
.faq__list details:first-child { border-top: 1px solid var(--line); }
.faq__list summary { list-style: none; cursor: pointer; padding: 22px 40px 22px 0; font-weight: 700; font-size: 20px; position: relative; }
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary::after { content: "+"; position: absolute; right: 4px; top: 50%; translate: 0 -50%; font-size: 28px; font-weight: 400; color: var(--ash); transition: rotate .3s var(--ease); }
.faq__list summary { transition: color .3s ease; }
.faq__list summary:hover { color: var(--white); }
/* Il "+" ruota appena tocchi, non a fine animazione. */
.faq__list details[open] summary::after, .faq__list details.is-open summary::after { rotate: 45deg; color: var(--white); }
.faq__list details.is-closing summary::after { rotate: 0deg; color: var(--ash); }
.faq__list details p { color: var(--mist); padding: 0 0 24px; max-width: 36em; overflow: hidden; }

/* ── Fondo ──────────────────────────────────────────────────────────────── */
.footer { border-top: 1px solid var(--line); padding: 48px 0 64px; color: var(--ash); }
.footer__inner { display: grid; grid-template-columns: auto 1fr auto; gap: 10px 28px; align-items: center; }
.footer .wordmark { color: var(--white); }
.footer nav { display: flex; gap: 22px; }
.footer nav a { text-decoration: none; font-weight: 600; }
.footer nav a:hover { color: var(--white); }
.footer__copy { grid-column: 1 / -1; font-size: 14px; }
@media (max-width: 640px) { .footer__inner { grid-template-columns: 1fr; } }

/* ── Apertura: il profilo arriva, le altre persone dietro. Il resto risponde ai tocchi. ── */
@media (prefers-reduced-motion: no-preference) {
  .js .hero__title, .js .hero__lead, .js .hero .button, .js .hero__note { animation: arrive .9s var(--ease) both; }
  .js .hero__lead { animation-delay: .1s; }
  .js .hero__copy .button { animation-delay: .18s; }
  .js .hero__note { animation-delay: .24s; }
  .js .profile { animation: cardIn 1.1s var(--ease) .25s both; }
  .js .peek--near { animation: peekIn 1s var(--ease) .55s both; }
  .js .peek--far { animation: peekIn 1s var(--ease) .7s both; }
  .js .profile .button { animation: none; }
  /* Cambio di pannello (proposta, inviata): risponde al tocco. */
  .js .profile__body:not([hidden]) { animation: panel .5s var(--ease) both; }
  .js .bubble { animation: reply .6s var(--ease) .9s both; }
  /* Il tavolo si apparecchia quando arriva a schermo. */
  .js .table:not(.is-in) .table__top, .js .table:not(.is-in) .seat__face, .js .table:not(.is-in) .seat__name { opacity: 0; }
  .js .table.is-in .table__top { animation: tableIn 1.2s var(--ease) both; }
  .js .table.is-in .seat__face, .js .table.is-in .seat__name { animation: sit .7s var(--ease) calc(.4s + var(--n) * .16s) both; }
  .js .table.is-in .seat--free .seat__face { animation: sit .7s var(--ease) calc(.4s + var(--n) * .16s) both, waiting 1.8s ease-in-out 2.2s 3; }
}
@keyframes arrive { from { opacity: 0; transform: translateY(16px); } }
@keyframes cardIn { from { opacity: 0; transform: translateY(48px) scale(.96); } }
@keyframes peekIn { from { opacity: 0; translate: -50% 30px; } }
@keyframes panel { from { opacity: 0; transform: translateY(10px); } }
@keyframes reply { from { opacity: 0; transform: translateY(12px) scale(.96); } }
@keyframes tableIn { from { opacity: 0; transform: scale(.86); } }
@keyframes sit { from { opacity: 0; scale: .6; } }
@keyframes waiting { 50% { box-shadow: 0 0 0 4px var(--black), 0 0 0 12px rgba(255, 255, 255, .14); } }

/* ── Pagina carriere ───────────────────────────────────────────────────── */
.careers { min-height: calc(100vh - 64px); display: grid; align-items: center; padding: 64px 0 96px; }
.careers__kicker { color: var(--ash); font-weight: 700; margin-bottom: 18px; }
.careers__title { font-size: clamp(64px, 13vw, 200px); font-weight: 800; line-height: .9; letter-spacing: -0.05em; margin-bottom: 28px; }
.careers__text { color: var(--mist); font-size: clamp(var(--s1), 1.8vw, 22px); line-height: 1.5; max-width: 30em; margin-bottom: 36px; }
.careers__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.careers .text-button { text-decoration: none; }
@media (prefers-reduced-motion: no-preference) {
  .js .careers__title { animation: arrive 1s var(--ease) both; }
}

/* ── Pagina privacy ─────────────────────────────────────────────────────── */
.legal { padding: 64px 0 96px; max-width: 720px; }
.legal h1 { font-size: clamp(36px, 5vw, var(--s5)); font-weight: 800; letter-spacing: -0.035em; line-height: 1; margin-bottom: 14px; }
.legal h2 { font-size: var(--s2); margin: 40px 0 12px; letter-spacing: -0.015em; }
.legal p, .legal li { color: var(--mist); }
.legal ul { padding-left: 20px; display: grid; gap: 6px; }
.legal .fine { color: var(--ash); font-size: 15px; }
