:root {
  --nero: #050505;
  --testo: #f0eded;
  --tenue: #9b9696;   /* contrasto 6.9:1 su --nero */
  --rosso: #ff2634;
}

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

html {
  background: var(--nero);
  color: var(--testo);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  /* l'alone del logo sborda dai lati: senza questo il telefono rimpicciolisce la pagina */
  overflow-x: hidden;
  overflow-x: clip;
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .9rem;
  padding: calc(clamp(2rem, 12svh, 7rem) + env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) 0 max(16px, env(safe-area-inset-left));
  text-align: center;
}

/* ---------- logo neon ---------- */
.insegna { margin: 0 0 1rem; width: 100%; display: flex; justify-content: center; }
.logo {
  display: block;
  width: min(100vw, 800px, 120svh);   /* a tutta larghezza sul telefono */
  height: auto;
  margin-inline: calc((min(100vw, 800px, 120svh) - 100%) / -2);
  overflow: visible;
}
.tube.ly .k-s { stroke-width: 8.85; }   /* 7.7 × 1.15 */
.tube.ly .k-v { stroke-width: 20.24; }  /* 4.4 × 1.15, in scala .25 */
.tube.ly .k-u { stroke-width: 13.23; }  /* 2.9 × 1.15, in scala .25 */
.core.ly .k-s { stroke-width: 3.23; }   /* 7.7 × .42 */
.core.ly .k-v { stroke-width: 7.39; }
.core.ly .k-u { stroke-width: 4.87; }

.accendi .logo .g, .accendi .codice .g { opacity: 0; }
.accendi .logo .g-o { stroke-dasharray: 1; stroke-dashoffset: 1; }

/* ---------- testi ---------- */
.frase {
  margin: 0;
  font-size: clamp(1.75rem, 7vw, 2.75rem);
  font-weight: 600;
  letter-spacing: -.01em;
}
.quando {
  margin: 0;
  color: var(--tenue);
  font-size: 1rem;
  font-variant-numeric: tabular-nums;
  display: flex;
  flex-direction: column;
  gap: .25rem;
}

.sala { margin: 1.5rem 0 0; width: min(100%, 720px); }
.sala img { display: block; width: 100%; height: auto; filter: grayscale(1) contrast(1.05) brightness(.8); }

.ig {
  margin-top: 1.25rem;
  color: var(--testo);
  font-size: 1.05rem;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  min-height: 44px;          /* area di tocco comoda col pollice */
  display: inline-flex;
  align-items: flex-end;
  padding: 0 .5rem .15rem;
}
.ig:hover, .ig:focus-visible { color: var(--rosso); }
:focus-visible { outline: 2px solid var(--rosso); outline-offset: 4px; }

footer {
  padding: 1rem 16px calc(1rem + env(safe-area-inset-bottom));
  text-align: center;
  color: var(--tenue);
  font-size: .85rem;
}
/* 00053 a metà tra instagram e 23+ */
.firma {
  flex: 1;
  display: flex;
  align-items: center;
  min-height: 4.5rem;
  margin: 0;
}
.codice {
  --w: min(48vw, 270px);        /* su telefono: stessa scala delle lettere del logo */
  display: block;
  width: var(--w);
  height: auto;
  margin-block: calc(var(--w) * -.14);   /* l'alone non occupa spazio */
  overflow: visible;
  transform: rotate(-5deg);
}
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* telefono in orizzontale: logo più contenuto, il resto scorre con calma */
@media (orientation: landscape) and (max-height: 520px) {
  main { padding-top: max(1.25rem, env(safe-area-inset-top)); gap: .6rem; }
  .logo { width: min(100vw, 120svh); margin-block: -4svh; margin-inline: calc((min(100vw, 120svh) - 100%) / -2); }
  .codice { --w: min(36vw, 220px); }
  .firma { min-height: 7rem; }
}
