/*
 * Suite — base comune delle pagine (suite, blind, blind-speaker).
 * Immagine coordinata REP (28/10/2026): petrolio e cedro misurati sul logo
 * Real Eyes People, crema per i fondi, Montserrat. Prima era una palette
 * terracotta provvisoria. L'aspetto resta morbido: gli strumenti servono ad
 * avvicinare le persone, devono accogliere, non dare ordini.
 * Layout del telefono dal wireframe: tre card sovrapposte, intestazione,
 * scena centrale, azioni.
 */
@font-face { font-family: 'Montserrat'; src: url(/fonts/montserrat-vf.woff2) format('woff2'); font-weight: 100 900; font-display: swap; }
:root {
  --petrolio: #07394C;
  --cedro: #C6D548;
  --cedro-scuro: #AEBE2E;
  --azzurro: #009FE3;
  --crema: #FAF6EE;
  --crema-scura: #EEF0D5;
  --carta: #FFFFFF;
  --inchiostro: #07394C;
  --tenue: #5E7480;
  /* nomi storici: le pagine li usano per «colore d'accento» */
  --terracotta: var(--cedro);
  --terracotta-scura: var(--cedro-scuro);
  --salvia: var(--cedro);
  --sabbia: var(--cedro);
  --ombra: 0 10px 30px rgba(7, 57, 76, .10), 0 2px 6px rgba(7, 57, 76, .06);
  --ombra-forte: 0 18px 50px rgba(7, 57, 76, .2), 0 4px 12px rgba(7, 57, 76, .08);
  --raggio: 24px;
  --morbido: cubic-bezier(.22, .9, .3, 1);
  --rimbalzo: cubic-bezier(.34, 1.4, .5, 1);
  --testo: 'Montserrat', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --titolo: 'Montserrat', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; }
body {
  margin: 0; background: var(--crema); color: var(--inchiostro);
  font: 17px/1.45 var(--testo);
  padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom) !important;
}
[hidden] { display: none !important; }
button, input { font: inherit; color: inherit; }

.card {
  background: var(--carta); border-radius: var(--raggio); box-shadow: var(--ombra);
  padding: 18px 20px;
}

.tasto {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 12px 22px; border-radius: 999px; border: 0;
  background: var(--cedro); color: var(--petrolio); font-weight: 700; cursor: pointer;
  box-shadow: 0 6px 18px rgba(174, 190, 46, .4);
  transition: transform .2s var(--morbido), background .2s;
}
.tasto:active { transform: scale(.97); background: var(--terracotta-scura); }
.tasto:disabled { opacity: .55; cursor: default; box-shadow: none; }
.tasto.chiaro { background: var(--crema-scura); color: var(--inchiostro); box-shadow: none; }
.tasto.pieno { width: 100%; }

.lingue { display: inline-flex; border-radius: 999px; background: var(--crema-scura); padding: 3px; }
.lingue button { border: 0; background: transparent; padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; color: var(--tenue); cursor: pointer; }
.lingue button[aria-pressed="true"] { background: var(--carta); color: var(--inchiostro); box-shadow: 0 1px 4px rgba(61, 64, 91, .12); }

.velo {
  position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 24px;
  background: rgba(61, 64, 91, .32); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  animation: appari .35s var(--morbido) both;
}
.velo .card { max-width: 420px; width: 100%; text-align: center; padding: 28px 24px; box-shadow: var(--ombra-forte); animation: sboccia .5s var(--rimbalzo) both; }
.velo h2 { margin: 0 0 10px; font: 400 26px/1.2 var(--titolo); }
.velo p { margin: 0 0 20px; color: var(--inchiostro); opacity: .85; }
.velo .azioni { display: flex; flex-direction: column; gap: 10px; }
@keyframes appari { from { opacity: 0; } to { opacity: 1; } }
@keyframes sboccia { from { opacity: 0; transform: translateY(18px) scale(.94); } to { opacity: 1; transform: none; } }

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