/* Palette ricavata dal logo: fondo #F0F2EC, inchiostro #111719, ciano #05BDDF.
   Il PNG del logo ha il fondo incorporato: lo sfondo della pagina DEVE restare identico. */
:root {
  --bg: #F0F2EC;
  --ink: #111719;
  --ink-soft: #3d4749;
  --cyan: #05BDDF;
  color-scheme: light;
}

* { box-sizing: border-box; }

html { background: var(--bg); }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background: var(--bg);
  color: var(--ink);
  font-family: "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

[hidden] { display: none !important; }

/* ---- lingua ---------------------------------------------------------- */
.top { display: flex; justify-content: flex-end; padding: 20px max(20px, 4vw) 0; }

.lang {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  color: var(--ink-soft);
}
.lang button {
  font: inherit;
  letter-spacing: inherit;
  color: var(--ink-soft);
  background: none;
  border: 0;
  padding: 8px 6px;
  min-width: 36px;
  min-height: 36px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
}
.lang button[aria-pressed="true"] { color: var(--ink); font-weight: 700; border-bottom-color: var(--cyan); }
.lang button:hover { color: var(--ink); }
.lang button:focus-visible, .foot a:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 2px; }

/* ---- scena ------------------------------------------------------------ */
.stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 3.2vh, 30px);
  padding: 24px 20px 48px;
  text-align: center;
}

.logo { width: min(86vw, 640px); height: auto; display: block; }

h1 {
  margin: clamp(6px, 2vh, 18px) 0 0;
  font-size: clamp(1.7rem, 4.6vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

/* ---- tre valori ------------------------------------------------------- */
.values { margin: 0; font-size: clamp(1rem, 2.3vw, 1.3rem); color: var(--ink-soft); }
.values > span { display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.5em 0.9em; }
.values b { font-weight: 500; letter-spacing: 0.04em; }
.values i { width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); flex: none; }

/* ---- soon… ------------------------------------------------------------ */
.soon {
  margin: clamp(10px, 3vh, 26px) 0 0;
  font-size: 0.95rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink);
}
.dots u { text-decoration: none; display: inline-block; animation: blink 1.6s infinite both; }
.dots u:nth-child(2) { animation-delay: 0.25s; }
.dots u:nth-child(3) { animation-delay: 0.5s; }
.dots { color: var(--cyan); letter-spacing: 0.1em; margin-left: 0.15em; font-weight: 800; }
@keyframes blink { 0%, 20% { opacity: 0.15; } 50% { opacity: 1; } 100% { opacity: 0.15; } }

/* ---- footer ----------------------------------------------------------- */
.foot { padding: 0 20px 28px; text-align: center; font-size: 0.82rem; letter-spacing: 0.06em; }
.foot a { color: var(--ink-soft); text-decoration: none; border-bottom: 1px solid transparent; }
.foot a:hover { color: var(--ink); border-bottom-color: var(--cyan); }

/* ingresso morbido (solo se l'utente non ha chiesto meno animazioni) */
@media (prefers-reduced-motion: no-preference) {
  .stage > * { animation: rise 0.9s cubic-bezier(.2,.7,.2,1) both; }
  .stage > :nth-child(2) { animation-delay: 0.12s; }
  .stage > :nth-child(3) { animation-delay: 0.24s; }
  .stage > :nth-child(4) { animation-delay: 0.4s; }
  @keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) { .dots u { animation: none; opacity: 1; } }
