/* ============================================================================
   vrs-app.css — il marchio di famiglia (la porta verso la Suite), il tema a tre posizioni e le Novità
   (VIS-05 / PRD-01, VIS-22, VIS-04)
   ----------------------------------------------------------------------------
   IDENTICO nei due repository: planning/web/src/styles/vrs-app.css e
   cronoservice/web/css/vrs-app.css. Si cambia in uno e si copia nell'altro.

   Usa solo le primitive di vrs-famiglia.css (--vrs-*) e misure in px: le due
   app hanno radici diverse (15 e 16 px) e il selettore deve essere lo stesso
   al pixel da una parte e dall'altra.

   · .vrs-marchio  il marchio in alto (icona e nome dell'app) e la porta verso
                   la Suite: la pastiglia «Suite» a destra e, sotto il mouse,
                   l'icona che si gira nella casetta. Fino al 12/10/2026 apriva
                   «Le app VRS», un menu con tutte le app: ora si sceglie nella Suite;
   · .vrs-app-pop  la finestrella del tema e dei colori (CronoService);
   · .vrs-seg      il controllo del tema a tre posizioni (Auto · Chiaro ·
                   Scuro), lo stesso disegno del Planning;
   · .vrs-nov-*    il tasto «Novità» e la sua finestra (vrs-novita.js), in fondo.
   ========================================================================== */

.vrs-app-btn {
  display: flex; align-items: center; gap: 10px;
  min-width: 0; min-height: 40px; padding: 4px 6px;
  border: 0; border-radius: 10px;
  background: transparent; color: inherit; font: inherit; text-align: left;
  cursor: var(--vrs-cursore-mano, pointer); touch-action: manipulation;
  transition: background-color var(--vrs-t-fast) var(--vrs-ease);
}
.vrs-app-btn:hover,
.vrs-app-btn[aria-expanded='true'] { background: var(--vrs-surface-3); }
.vrs-app-btn:focus-visible { outline: 2px solid var(--vrs-accent); outline-offset: 2px; }

/* ---- Il marchio, porta verso la Suite -------------------------------------
   Un collegamento solo: icona dell'app, nome, pastiglia «Suite». L'icona e la
   casetta stanno una sopra l'altra; sotto il mouse o col fuoco l'icona si
   rimpicciolisce e sparisce, la casetta entra (solo opacity e transform). */
a.vrs-marchio, a.vrs-marchio:hover { color: inherit; text-decoration: none; }
.vrs-marchio-segno { position: relative; display: grid; flex: none; }
.vrs-marchio-segno > * { grid-area: 1 / 1; }
.vrs-marchio-app, .vrs-marchio-casa {
  transition: opacity var(--vrs-t) var(--vrs-ease), transform var(--vrs-t) var(--vrs-ease);
}
.vrs-marchio-casa {
  display: grid; place-items: center; width: 100%; height: 100%;
  border-radius: 8px; background: var(--vrs-accent); color: var(--vrs-on-accent);
  opacity: 0; transform: scale(0.6) rotate(-12deg);
}
.vrs-marchio:hover .vrs-marchio-app,
.vrs-marchio:focus-visible .vrs-marchio-app { opacity: 0; transform: scale(0.6) rotate(12deg); }
.vrs-marchio:hover .vrs-marchio-casa,
.vrs-marchio:focus-visible .vrs-marchio-casa { opacity: 1; transform: none; }

/* La pastiglia «Suite», dove prima c'era la freccina del menu. Il contenuto è
   in linea (non flex): così resta uguale anche dove il guscio la fa blocco. */
.vrs-marchio-suite {
  display: inline-flex; flex: none; margin-left: auto;
  height: 26px; padding: 0 10px; border-radius: 999px; box-sizing: border-box;
  border: 1px solid var(--vrs-border); color: var(--vrs-text-2);
  font-size: 12px; font-weight: 600; line-height: 24px; letter-spacing: 0.01em; white-space: nowrap;
  transition: background-color var(--vrs-t-fast) var(--vrs-ease), color var(--vrs-t-fast) var(--vrs-ease), border-color var(--vrs-t-fast) var(--vrs-ease);
}
.vrs-marchio-suite svg { flex: none; vertical-align: -2px; margin-right: 5px; align-self: center; }
.vrs-marchio:hover .vrs-marchio-suite,
.vrs-marchio:focus-visible .vrs-marchio-suite {
  background: var(--vrs-accent-soft); border-color: transparent; color: var(--vrs-accent);
}

/* La finestrella del tema e dei colori (CronoService) */
.vrs-app-pop {
  position: fixed; z-index: 90;
  width: 300px; max-width: calc(100vw - 24px);
  max-height: calc(100dvh - 24px); overflow-y: auto; overscroll-behavior: contain;
  padding: 8px;
  background: var(--vrs-surface); color: var(--vrs-text);
  border: 1px solid var(--vrs-border); border-radius: 14px;
  box-shadow: var(--vrs-shadow-pop);
  animation: vrs-app-entra var(--vrs-t) var(--vrs-ease) both;
}
/* la variante stretta: il solo controllo del tema, in CronoService */
.vrs-app-pop.stretta { width: auto; min-width: 248px; }
@keyframes vrs-app-entra {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: none; }
}

/* ---- Tema a tre posizioni (VIS-22) ---------------------------------------- */
.vrs-tema { padding: 4px 4px 2px; }
.vrs-tema-et {
  display: block; margin-bottom: 6px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--vrs-muted);
}
/* .vrs-tav-int-seg: l'intensità della luce (16/10/2026 sera), lo stesso segmentato ma coi radio */
.vrs-seg, .vrs-tav-int-seg {
  display: flex; gap: 2px; padding: 2px;
  border: 1px solid var(--vrs-border); border-radius: 10px; background: var(--vrs-surface-3);
}
.vrs-seg button, .vrs-tav-int-seg button {
  flex: 1; min-width: 0; min-height: 32px; padding: 0 10px;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 0; border-radius: 7px; background: transparent; color: var(--vrs-muted);
  font: inherit; font-size: 13px; line-height: 1.2; white-space: nowrap; cursor: var(--vrs-cursore-mano, pointer);
  touch-action: manipulation;
  transition: background-color var(--vrs-t-fast) var(--vrs-ease), color var(--vrs-t-fast) var(--vrs-ease);
}
.vrs-seg button:hover, .vrs-tav-int-seg button:hover { color: var(--vrs-text); }
.vrs-seg button:focus-visible, .vrs-tav-int-seg button:focus-visible { outline: 2px solid var(--vrs-accent); outline-offset: 1px; }
.vrs-seg button[aria-pressed='true'], .vrs-seg button[aria-checked='true'], .vrs-tav-int-seg button[aria-checked='true'] {
  background: var(--vrs-surface); color: var(--vrs-text); font-weight: 600; box-shadow: var(--vrs-shadow-1);
}
.vrs-seg svg, .vrs-tav-int-seg svg { flex: none; }
/* la luce a quattro voci (16/10/2026 sera: Automatico · Chiaro · Tinta · Scuro), più stretta; la riga sotto solo con Automatico */
.vrs-seg-luce button { flex: 1 1 auto; padding: 0 6px; gap: 4px; }
.vrs-tema-nota { margin: 6px 2px 0; font-size: 12px; line-height: 1.4; color: var(--vrs-muted); }
.vrs-tema-nota[hidden] { display: none; }
/* telefoni stretti: l'icona sopra il nome, così le quattro voci (e i quattro gradini) stanno in riga */
@media (max-width: 380px) {
  .vrs-seg-luce button { flex-direction: column; gap: 2px; min-height: 44px; padding: 4px 2px; font-size: 12px; }
  .vrs-tav-int-seg button { padding: 0 2px; font-size: 12px; }
}

/* ---- Colori: la tavolozza (VIS-30), sotto il tema in CronoService ---------
   Un pallino per tavolozza, metà il fondo che dà alle caselle e metà il suo colore
   (12/11/2026), nel tema di adesso; la spunta dice qual è la scelta (non il solo
   colore). I colori arrivano in linea (--dot-c, --dot-s, --dot-fondo-c, --dot-fondo-s)
   da js/famiglia.js e dalla Suite (suite/colori.ts). */
.vrs-tav-sez { margin-top: 6px; padding-top: 10px; border-top: 1px solid var(--vrs-border); }
.vrs-tav { display: flex; flex-wrap: wrap; gap: 2px; }
.vrs-tav-dot {
  display: grid; place-items: center; width: 32px; height: 32px; padding: 0;
  border: 2px solid transparent; border-radius: 999px; background: transparent;
  cursor: var(--vrs-cursore-mano, pointer); touch-action: manipulation;
  transition: border-color var(--vrs-t-fast) var(--vrs-ease);
}
.vrs-tav-dot::before {
  content: ''; grid-area: 1 / 1; width: 22px; height: 22px; border-radius: 999px;
  background: linear-gradient(90deg, var(--dot-fondo-c, #fff) 50%, var(--dot-c) 50%);
  box-shadow: inset 0 0 0 1px rgb(0 0 0 / 0.12);
}
:root[data-theme='dark'] .vrs-tav-dot::before { background: linear-gradient(90deg, var(--dot-fondo-s, #17212b) 50%, var(--dot-s, var(--dot-c)) 50%); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .vrs-tav-dot::before { background: linear-gradient(90deg, var(--dot-fondo-s, #17212b) 50%, var(--dot-s, var(--dot-c)) 50%); }
}
.vrs-tav-dot svg { grid-area: 1 / 1; position: relative; color: #fff; filter: drop-shadow(0 0 1px rgb(0 0 0 / 0.7)); }
.vrs-tav-dot:hover { border-color: var(--vrs-border-strong); }
.vrs-tav-dot[aria-checked='true'] { border-color: var(--vrs-text-2); }
.vrs-tav-dot:focus-visible { outline: 2px solid var(--vrs-accent); outline-offset: 1px; }
/* I due gruppi (16/10/2026 sera): Atmosfere e Classici, ognuno con la sua piccola intestazione,
   minuscola sorella di .vrs-tema-et */
.vrs-tav-gruppo + .vrs-tav-gruppo { margin-top: 6px; }
.vrs-tav-gruppo-et {
  display: block; margin: 0 0 2px 2px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.04em; color: var(--vrs-muted);
}
/* Le luci: l'interruttore (checkbox nativa col ruolo switch) e la sua riga di spiegazione */
.vrs-tav-luci { margin-top: 8px; }
.vrs-tav-luci[hidden] { display: none; }
.vrs-tav-luci-et {
  display: flex; align-items: center; gap: 8px; min-height: 32px;
  font-size: 13px; color: var(--vrs-text-2); cursor: var(--vrs-cursore-mano, pointer); touch-action: manipulation;
}
.vrs-tav-luci-et input { flex: none; width: 16px; height: 16px; margin: 0; accent-color: var(--vrs-accent); cursor: inherit; }
.vrs-tav-luci-et input:focus-visible { outline: 2px solid var(--vrs-accent); outline-offset: 2px; }
.vrs-tav-luci-spiega { margin: 0 0 0 24px; max-width: 32ch; font-size: 12px; line-height: 1.4; color: var(--vrs-muted); }
/* L'intensità della luce: quattro gradini, lo stesso segmentato del tema (qui radio, con la spunta) */
.vrs-tav-int, .vrs-tav-buio { margin-top: 8px; }
.vrs-tav-buio[hidden] { display: none; }
.vrs-tav-int-seg button { flex: 1 1 auto; padding: 0 6px; gap: 4px; }
.vrs-tav-altro { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 10px; margin-top: 8px; }
.vrs-tav-pers {
  display: inline-flex; align-items: center; gap: 8px; min-height: 32px; padding: 0 10px 0 4px;
  border: 1px solid var(--vrs-border); border-radius: 999px; font-size: 13px; color: var(--vrs-text-2); cursor: var(--vrs-cursore-mano, pointer);
}
.vrs-tav-pers:focus-within { outline: 2px solid var(--vrs-accent); outline-offset: 2px; }
.vrs-tav-pers input { width: 24px; height: 24px; padding: 0; border: 0; border-radius: 999px; background: none; cursor: var(--vrs-cursore-mano, pointer); }
.vrs-tav-pers input:focus-visible { outline: none; }
.vrs-tav-pers input::-webkit-color-swatch-wrapper { padding: 0; }
.vrs-tav-pers input::-webkit-color-swatch { border: 1px solid rgb(0 0 0 / 0.15); border-radius: 999px; }
.vrs-tav-pers input::-moz-color-swatch { border: 1px solid rgb(0 0 0 / 0.15); border-radius: 999px; }
/* «Personalizza i colori…»: un tasto che si legge come un collegamento (apre la finestra di vrs-colori.js) */
.vrs-tav-link { padding: 0; border: 0; background: none; font: inherit; font-size: 13px; color: var(--vrs-accent); text-decoration: none; cursor: var(--vrs-cursore-mano, pointer); }
.vrs-tav-link:hover { text-decoration: underline; }
.vrs-tav-link:focus-visible { outline: 2px solid var(--vrs-accent); outline-offset: 2px; border-radius: 4px; }
.vrs-tav-nota { margin: 6px 0 0; font-size: 12px; line-height: 1.4; color: var(--vrs-muted); }
.vrs-tav-nota:empty { display: none; }
/* I miei temi (28-29/09/2026): colori o tavolozza e tema chiaro/scuro salvati, con la X per toglierli */
.vrs-tav-miei-et { display: block; margin-top: 10px; }
.vrs-tav-miei-et[hidden], .vrs-tav-miei[hidden], .vrs-tav-salva[hidden] { display: none; }
.vrs-tav-miei { display: flex; flex-wrap: wrap; gap: 2px; margin: 0; padding: 0; list-style: none; }
.vrs-tav-mio { position: relative; }
.vrs-tav-dot[aria-pressed='true'] { border-color: var(--vrs-text-2); }
.vrs-tav-mio .vrs-tav-dot { position: relative; }
/* il tema chiaro/scuro/automatico del tema salvato: bollino nell'angolo in basso */
.vrs-tav-modo {
  position: absolute; right: -3px; bottom: -3px; display: grid; place-items: center;
  width: 15px; height: 15px; border-radius: 999px; pointer-events: none;
  background: var(--vrs-surface, #fff); color: var(--vrs-text-2); box-shadow: 0 0 0 1px var(--vrs-border-strong);
}
.vrs-tav-modo.modo-dark { background: #15181c; color: #ecedee; }
.vrs-tav-modo.modo-light { background: #ffffff; color: #8f5a00; }
.vrs-tav-togli {
  position: absolute; top: -6px; right: -6px; display: grid; place-items: center;
  width: 24px; height: 24px; padding: 0; border: 0; background: none; color: var(--vrs-text-2); cursor: var(--vrs-cursore-mano, pointer);
}
.vrs-tav-togli::before { content: ''; position: absolute; inset: 5px; border-radius: 999px; background: var(--vrs-surface, #fff); box-shadow: 0 0 0 1px var(--vrs-border-strong); }
.vrs-tav-togli svg { position: relative; }
.vrs-tav-togli:focus-visible { outline: 2px solid var(--vrs-accent); outline-offset: 0; border-radius: 999px; }
.vrs-tav-salva {
  display: inline-flex; align-items: center; min-height: 32px; margin-top: 8px; padding: 0 12px;
  border: 1px solid var(--vrs-border); border-radius: 999px; background: none;
  font: inherit; font-size: 13px; color: var(--vrs-text-2); cursor: var(--vrs-cursore-mano, pointer);
}
.vrs-tav-salva:hover { border-color: var(--vrs-border-strong); color: var(--vrs-text); }
.vrs-tav-salva:focus-visible { outline: 2px solid var(--vrs-accent); outline-offset: 2px; }
.vrs-tav-salva:disabled { opacity: 0.55; cursor: var(--vrs-cursore-vietato, not-allowed); }
@media (pointer: coarse) {
  .vrs-tav-dot { width: 44px; height: 44px; }
  .vrs-tav-pers, .vrs-tav-luci-et { min-height: 44px; }
  .vrs-tav-salva { min-height: 44px; }
}

/* Sul tocco: bersagli da 44 px */
@media (pointer: coarse) {
  .vrs-app-btn { min-height: 44px; }
  .vrs-seg button { min-height: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  .vrs-app-pop { animation: none; }
  .vrs-app-btn, .vrs-marchio-app, .vrs-marchio-casa, .vrs-marchio-suite, .vrs-seg button { transition: none; }
}

/* ============================================================================
   Novità (js: vrs-novita.js, identico nei due repository come questo foglio)
   ----------------------------------------------------------------------------
   · .vrs-nov-btn  il tasto della testata, con il pallino quando c'è qualcosa
                   da vedere (data-nuove="si": una forma, non solo un colore);
   · .vrs-nov      la finestra: il RIASSUNTO con la scena, le 3–5 novità e i due
                   comandi; il DETTAGLIO con le sezioni pieghevoli e lo storico.
                   Sul telefono è un foglio dal basso, comandi sotto il pollice.
   Movimento solo su transform e opacity, una volta sola (niente cicli); con
   «riduci il movimento» non si muove niente.
   ========================================================================== */

.vrs-nov-posto { display: contents; }
.vrs-nov-btn {
  position: relative; flex: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-width: 40px; min-height: 40px; padding: 0 10px;
  border: 0; border-radius: 10px;
  background: transparent; color: var(--vrs-text-2);
  font: inherit; font-size: 13px; font-weight: 600; line-height: 1; white-space: nowrap;
  cursor: var(--vrs-cursore-mano, pointer); touch-action: manipulation; -webkit-tap-highlight-color: transparent;
  transition: background-color var(--vrs-t-fast) var(--vrs-ease), color var(--vrs-t-fast) var(--vrs-ease);
}
.vrs-nov-btn[hidden] { display: none; }
.vrs-nov-btn:hover,
.vrs-nov-btn[aria-expanded='true'] { background: var(--vrs-surface-3); color: var(--vrs-text); }
.vrs-nov-btn:focus-visible { outline: 2px solid var(--vrs-accent); outline-offset: 2px; }
.vrs-nov-btn-ico { display: grid; place-items: center; }
.vrs-nov-btn[data-nuove='si'] .vrs-nov-btn-ico { color: var(--vrs-accent); }
/* l'etichetta solo dove c'è posto; sotto resta l'icona, con il nome accessibile */
.vrs-nov-et { display: none; }
@media (min-width: 1100px) { .vrs-nov-et { display: inline; } }
.vrs-nov-pallino {
  position: absolute; top: 6px; left: 22px;
  width: 9px; height: 9px; border-radius: 50%;
  background: #e5484d; box-shadow: 0 0 0 2px var(--vrs-surface);
  opacity: 0; transform: scale(0.4);
  transition: opacity var(--vrs-t) var(--vrs-ease), transform var(--vrs-t) var(--vrs-ease);
}
.vrs-nov-btn[data-nuove='si'] .vrs-nov-pallino { opacity: 1; transform: none; }
/* due onde attorno al pallino, quando compare, e poi ferme */
.vrs-nov-btn[data-nuove='si'] .vrs-nov-pallino::after {
  content: ''; position: absolute; inset: -4px; border-radius: 50%;
  border: 2px solid #e5484d; opacity: 0;
  animation: vrs-nov-onda 1.4s var(--vrs-ease) 0.6s 2;
}
@keyframes vrs-nov-onda { from { opacity: 0.7; transform: scale(0.6); } to { opacity: 0; transform: scale(1.8); } }

/* ---- la finestra ---- */
html.vrs-nov-aperta { overflow: hidden; }
.vrs-nov-velo {
  position: fixed; inset: 0; z-index: 1000;
  display: grid; place-items: center;
  padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  background: var(--vrs-overlay);
  overscroll-behavior: contain;
  animation: vrs-nov-velo var(--vrs-t-slow) var(--vrs-ease) both;
}
@keyframes vrs-nov-velo { from { opacity: 0; } to { opacity: 1; } }
.vrs-nov {
  position: relative;
  width: min(560px, 100%); max-height: min(760px, calc(100dvh - 32px));
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--vrs-surface); color: var(--vrs-text);
  border: 1px solid var(--vrs-border); border-radius: 20px;
  box-shadow: 0 2px 6px rgb(0 0 0 / 0.08), 0 24px 64px rgb(4 20 34 / 0.32);
  font-feature-settings: var(--vrs-font-feat);
  text-align: left;
  animation: vrs-nov-entra 420ms var(--vrs-ease) both;
}
.vrs-nov:focus { outline: none; }
@keyframes vrs-nov-entra {
  from { opacity: 0; transform: translateY(18px) scale(0.97); }
  to { opacity: 1; transform: none; }
}
.vrs-nov-pag { display: flex; flex-direction: column; min-height: 0; flex: 1; }
.vrs-nov-corpo {
  flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain;
  padding: 16px 20px 8px;
}

/* ---- la scena del riassunto: un palco scuro in tutti e due i temi ---- */
.vrs-nov-scena {
  position: relative; overflow: hidden; isolation: isolate; flex: none;
  padding: 28px 56px 22px 24px;
  color: #f4fbff;
  background:
    radial-gradient(120% 130% at 0% 0%, #0f6a97 0%, transparent 58%),
    radial-gradient(90% 120% at 100% 0%, rgb(0 174 239 / 0.35) 0%, transparent 62%),
    linear-gradient(160deg, #071826 0%, #0b2a3f 55%, #0c3a56 100%);
}
.vrs-nov-bolla {
  position: absolute; z-index: -1; border-radius: 50%; pointer-events: none;
  filter: blur(26px); opacity: 0.75;
  animation: vrs-nov-deriva 4.2s var(--vrs-ease) both;
}
.vrs-nov-bolla.b1 { width: 180px; height: 180px; right: -40px; top: -60px; background: #00aeef; }
.vrs-nov-bolla.b2 { width: 140px; height: 140px; left: 30%; bottom: -90px; background: #3b5bdb; opacity: 0.55; animation-delay: 80ms; }
.vrs-nov-bolla.b3 { width: 90px; height: 90px; left: -30px; top: 20px; background: #12b886; opacity: 0.4; animation-delay: 160ms; }
@keyframes vrs-nov-deriva {
  from { transform: translate3d(0, 24px, 0) scale(0.6); opacity: 0; }
}
.vrs-nov-luci { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.vrs-nov-luce {
  position: absolute; width: 6px; height: 6px; border-radius: 50%;
  background: #fff; box-shadow: 0 0 10px 2px rgb(160 230 255 / 0.9);
  opacity: 0.55; animation: vrs-nov-brilla 1.8s var(--vrs-ease) both;
  animation-delay: calc(var(--i) * 90ms + 150ms);
}
.vrs-nov-luce:nth-child(1) { top: 18%; right: 14%; }
.vrs-nov-luce:nth-child(2) { top: 62%; right: 8%; width: 4px; height: 4px; }
.vrs-nov-luce:nth-child(3) { top: 30%; right: 32%; width: 3px; height: 3px; }
.vrs-nov-luce:nth-child(4) { top: 76%; right: 38%; width: 4px; height: 4px; }
.vrs-nov-luce:nth-child(5) { top: 12%; left: 44%; width: 3px; height: 3px; }
.vrs-nov-luce:nth-child(6) { top: 48%; right: 22%; }
.vrs-nov-luce:nth-child(7) { top: 86%; right: 18%; width: 3px; height: 3px; }
@keyframes vrs-nov-brilla {
  0% { opacity: 0; transform: scale(0.2) translateY(10px); }
  45% { opacity: 1; transform: scale(1.4); }
  100% { opacity: 0.55; transform: none; }
}
.vrs-nov-stemma {
  display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 14px;
  border-radius: 16px; color: #fff;
  background: linear-gradient(145deg, rgb(255 255 255 / 0.22), rgb(255 255 255 / 0.06));
  border: 1px solid rgb(255 255 255 / 0.28);
  box-shadow: 0 8px 24px rgb(0 174 239 / 0.35), inset 0 1px 0 rgb(255 255 255 / 0.25);
  animation: vrs-nov-stemma 700ms cubic-bezier(0.34, 1.56, 0.64, 1) 120ms both;
}
@keyframes vrs-nov-stemma {
  from { opacity: 0; transform: scale(0.4) rotate(-25deg); }
  to { opacity: 1; transform: none; }
}
.vrs-nov-sopra {
  margin: 0 0 4px; font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: #9bdcf7;
  animation: vrs-nov-sale 480ms var(--vrs-ease) 180ms both;
}
.vrs-nov-tit {
  margin: 0; font-size: 26px; line-height: 1.15; font-weight: 700; letter-spacing: -0.015em;
  color: inherit; text-wrap: balance; overflow-wrap: anywhere;
  animation: vrs-nov-sale 520ms var(--vrs-ease) 240ms both;
}
.vrs-nov-quando {
  margin: 8px 0 0; font-size: 13px; color: #c3e6f5; font-variant-numeric: tabular-nums;
  animation: vrs-nov-sale 520ms var(--vrs-ease) 300ms both;
}
@keyframes vrs-nov-sale { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.vrs-nov-x {
  position: absolute; top: 12px; right: 12px;
  display: grid; place-items: center; width: 40px; height: 40px; padding: 0;
  border: 0; border-radius: 12px; background: transparent; color: var(--vrs-text-2); cursor: var(--vrs-cursore-mano, pointer);
  touch-action: manipulation; -webkit-tap-highlight-color: transparent;
  transition: background-color var(--vrs-t-fast) var(--vrs-ease);
}
.vrs-nov-x:hover { background: var(--vrs-surface-3); color: var(--vrs-text); }
.vrs-nov-x:focus-visible { outline: 2px solid var(--vrs-accent); outline-offset: 0; }
.vrs-nov-scena .vrs-nov-x { color: #e6f6fd; }
.vrs-nov-scena .vrs-nov-x:hover { background: rgb(255 255 255 / 0.16); color: #fff; }
.vrs-nov-scena .vrs-nov-x:focus-visible { outline-color: #9bdcf7; }

/* ---- le novità del riassunto ---- */
.vrs-nov-voci { list-style: none; margin: 0; padding: 0; display: grid; }
.vrs-nov-voce {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 12px 4px;
  animation: vrs-nov-sale 460ms var(--vrs-ease) both;
  animation-delay: calc(360ms + var(--i) * 80ms);
}
.vrs-nov-voce + .vrs-nov-voce { border-top: 1px solid var(--vrs-border); }
.vrs-nov-voce-ico {
  flex: none; display: grid; place-items: center; width: 40px; height: 40px;
  border-radius: 12px; background: var(--vrs-accent-soft); color: var(--vrs-accent);
}
.vrs-nov-voce-testi { min-width: 0; display: flex; flex-direction: column; gap: 3px; padding-top: 1px; }
.vrs-nov-voce-tit { font-size: 15px; font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.vrs-nov-voce-riga { font-size: 14px; line-height: 1.45; color: var(--vrs-text-2); overflow-wrap: anywhere; }
/* «Vedi le 96 correzioni…»: dalla voce del riassunto alla sua sezione del dettaglio */
.vrs-nov-vai {
  align-self: flex-start; display: inline-flex; align-items: center; min-height: 32px; margin: 2px 0 0 -8px; padding: 0 8px;
  border: 0; border-radius: 8px; background: transparent; color: var(--vrs-accent);
  font: inherit; font-size: 13px; font-weight: 600; line-height: 1.2; cursor: var(--vrs-cursore-mano, pointer);
  touch-action: manipulation; -webkit-tap-highlight-color: transparent;
  transition: background-color var(--vrs-t-fast) var(--vrs-ease);
}
.vrs-nov-vai:hover { background: var(--vrs-accent-soft); }
.vrs-nov-vai:focus-visible { outline: 2px solid var(--vrs-accent); outline-offset: 0; }
.vrs-nov-vuoto { margin: 8px 0; color: var(--vrs-muted); font-size: 14px; line-height: 1.5; }

/* ---- i comandi in fondo ---- */
.vrs-nov-piede {
  flex: none; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 20px 16px; border-top: 1px solid var(--vrs-border);
  background: var(--vrs-surface);
}
.vrs-nov-piede > :only-child { margin-left: auto; }
.vrs-nov-ok, .vrs-nov-link {
  min-height: 40px; padding: 0 18px; border: 0; border-radius: 10px;
  font: inherit; font-size: 14px; font-weight: 600; line-height: 1.2; cursor: var(--vrs-cursore-mano, pointer);
  touch-action: manipulation; -webkit-tap-highlight-color: transparent;
  transition: background-color var(--vrs-t-fast) var(--vrs-ease), color var(--vrs-t-fast) var(--vrs-ease);
}
.vrs-nov-ok { background: var(--vrs-accent); color: var(--vrs-on-accent); }
.vrs-nov-ok:hover { background: var(--vrs-accent-hover); }
.vrs-nov-link { background: transparent; color: var(--vrs-accent); padding: 0 10px; margin-left: -10px; }
.vrs-nov-link:hover { background: var(--vrs-accent-soft); }
.vrs-nov-ok:focus-visible, .vrs-nov-link:focus-visible { outline: 2px solid var(--vrs-accent); outline-offset: 2px; }

/* ---- il dettaglio ---- */
.vrs-nov-testa {
  position: relative; flex: none; display: flex; align-items: center; gap: 8px;
  min-height: 60px; padding: 10px 60px 10px 10px; border-bottom: 1px solid var(--vrs-border);
}
.vrs-nov-testa .vrs-nov-x { top: 10px; right: 10px; }
.vrs-nov-indietro {
  flex: none; display: inline-flex; align-items: center; gap: 4px; min-height: 40px; padding: 0 10px 0 6px;
  border: 0; border-radius: 10px; background: transparent; color: var(--vrs-accent);
  font: inherit; font-size: 14px; font-weight: 600; cursor: var(--vrs-cursore-mano, pointer); touch-action: manipulation;
  transition: background-color var(--vrs-t-fast) var(--vrs-ease);
}
.vrs-nov-indietro:hover { background: var(--vrs-accent-soft); }
.vrs-nov-indietro:focus-visible { outline: 2px solid var(--vrs-accent); outline-offset: 0; }
.vrs-nov-testa-tit { margin: 0 auto 0 4px; min-width: 0; font-size: 16px; font-weight: 700; line-height: 1.25; color: inherit; }

.vrs-nov-sfoglia {
  display: flex; align-items: center; gap: 8px; margin-bottom: 14px;
  padding: 8px; border-radius: 14px; background: var(--vrs-surface-3);
}
.vrs-nov-freccia {
  flex: none; display: grid; place-items: center; width: 40px; height: 40px; padding: 0;
  border: 1px solid var(--vrs-border); border-radius: 10px;
  background: var(--vrs-surface); color: var(--vrs-text); cursor: var(--vrs-cursore-mano, pointer); touch-action: manipulation;
  transition: background-color var(--vrs-t-fast) var(--vrs-ease), border-color var(--vrs-t-fast) var(--vrs-ease);
}
.vrs-nov-freccia:hover:not(:disabled) { border-color: var(--vrs-border-strong); background: var(--vrs-surface-2); }
.vrs-nov-freccia:disabled { opacity: 0.4; cursor: var(--vrs-cursore-freccia, default); }
.vrs-nov-freccia:focus-visible { outline: 2px solid var(--vrs-accent); outline-offset: 1px; }
.vrs-nov-sfoglia-testi { flex: 1; min-width: 0; text-align: center; display: flex; flex-direction: column; gap: 2px; }
.vrs-nov-sfoglia-data { font-size: 12px; font-weight: 600; letter-spacing: 0.02em; color: var(--vrs-accent); font-variant-numeric: tabular-nums; }
.vrs-nov-sfoglia-tit { font-size: 15px; line-height: 1.3; overflow-wrap: anywhere; text-wrap: balance; }
.vrs-nov-sfoglia-n { font-size: 12px; color: var(--vrs-muted); font-variant-numeric: tabular-nums; }

.vrs-nov-sez, .vrs-nov-storico { border: 1px solid var(--vrs-border); border-radius: 14px; margin-bottom: 10px; background: var(--vrs-surface); }
.vrs-nov-sez > summary, .vrs-nov-storico > summary {
  display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 6px 14px;
  list-style: none; cursor: var(--vrs-cursore-mano, pointer); border-radius: 13px; touch-action: manipulation;
  font-size: 14px; font-weight: 600;
  transition: background-color var(--vrs-t-fast) var(--vrs-ease);
}
.vrs-nov-sez > summary::-webkit-details-marker, .vrs-nov-storico > summary::-webkit-details-marker { display: none; }
.vrs-nov-sez > summary:hover, .vrs-nov-storico > summary:hover { background: var(--vrs-surface-2); }
.vrs-nov-sez > summary:focus-visible, .vrs-nov-storico > summary:focus-visible { outline: 2px solid var(--vrs-accent); outline-offset: -2px; }
.vrs-nov-sez-ico { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; flex: none; }
.vrs-nov-sez[data-sez='novita'] .vrs-nov-sez-ico { background: var(--vrs-accent-soft); color: var(--vrs-accent); }
.vrs-nov-sez[data-sez='miglioramenti'] .vrs-nov-sez-ico { background: rgb(18 184 134 / 0.14); color: #0c7a58; }
.vrs-nov-sez[data-sez='correzioni'] .vrs-nov-sez-ico { background: rgb(245 159 0 / 0.16); color: #955300; }
:root[data-theme='dark'] .vrs-nov-sez[data-sez='miglioramenti'] .vrs-nov-sez-ico { color: #38d9a9; }
:root[data-theme='dark'] .vrs-nov-sez[data-sez='correzioni'] .vrs-nov-sez-ico { color: #ffc34d; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .vrs-nov-sez[data-sez='miglioramenti'] .vrs-nov-sez-ico { color: #38d9a9; }
  :root:not([data-theme='light']) .vrs-nov-sez[data-sez='correzioni'] .vrs-nov-sez-ico { color: #ffc34d; }
}
.vrs-nov-sez-nome { flex: 1; min-width: 0; }
.vrs-nov-sez-n {
  min-width: 24px; height: 22px; padding: 0 7px; border-radius: 11px; display: grid; place-items: center;
  background: var(--vrs-surface-3); color: var(--vrs-text-2); font-size: 12px; font-variant-numeric: tabular-nums;
}
.vrs-nov-sez-giu { display: grid; place-items: center; color: var(--vrs-muted); transition: transform var(--vrs-t) var(--vrs-ease); }
details[open] > summary .vrs-nov-sez-giu { transform: rotate(180deg); }
.vrs-nov-sez-corpo { padding: 2px 16px 14px 34px; }
.vrs-nov-sez ul { margin: 0; padding: 0 0 0 18px; display: grid; gap: 8px; }
.vrs-nov-sez ul + .vrs-nov-gruppo { margin-top: 16px; }
/* i gruppi di un elenco lungo (Sul telefono, Documenti…): un'etichetta sopra le sue righe */
.vrs-nov-gruppo {
  margin: 4px 0 8px; font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--vrs-muted); line-height: 1.3;
}
.vrs-nov-sez li { font-size: 14px; line-height: 1.5; color: var(--vrs-text-2); overflow-wrap: anywhere; }
.vrs-nov-sez li::marker { color: var(--vrs-muted); }
/* «Altre modifiche minori» (09/10/2026): un tasto vero in fondo al dettaglio, stesso aspetto
   delle sezioni; apre le correzioni che chi usa l'app non vede */
.vrs-nov-interni { background: var(--vrs-surface-3); }
.vrs-nov-interni-btn {
  width: 100%; display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 6px 14px;
  border: 0; border-radius: 13px; background: transparent; color: inherit; text-align: left;
  font: inherit; font-size: 14px; font-weight: 600; cursor: var(--vrs-cursore-mano, pointer);
  touch-action: manipulation; -webkit-tap-highlight-color: transparent;
  transition: background-color var(--vrs-t-fast) var(--vrs-ease);
}
.vrs-nov-interni-btn:hover { background: var(--vrs-surface-2); }
.vrs-nov-interni-btn:focus-visible { outline: 2px solid var(--vrs-accent); outline-offset: -2px; }
.vrs-nov-interni .vrs-nov-sez-ico,
.vrs-nov-interni .vrs-nov-sez-n { background: var(--vrs-surface); color: var(--vrs-text-2); }
.vrs-nov-interni-btn[aria-expanded='true'] .vrs-nov-sez-giu { transform: rotate(180deg); }
.vrs-nov-interni-nota { margin: 0 0 12px; font-size: 13px; line-height: 1.5; color: var(--vrs-muted); }
.vrs-nov-interni-data {
  display: flex; flex-wrap: wrap; gap: 2px 10px; margin: 14px 0 6px; font-size: 13px; line-height: 1.35;
  font-weight: 600; color: var(--vrs-text); font-variant-numeric: tabular-nums;
}
.vrs-nov-interni-data:first-of-type { margin-top: 0; }
.vrs-nov-interni-tit { font-weight: 500; color: var(--vrs-text-2); min-width: 0; overflow-wrap: anywhere; }
.vrs-nov-storico ol { list-style: none; margin: 0; padding: 0 6px 8px; display: grid; gap: 2px; }
.vrs-nov-storia {
  width: 100%; display: flex; align-items: baseline; gap: 12px; min-height: 44px; padding: 8px 10px;
  border: 0; border-radius: 10px; background: transparent; color: var(--vrs-text);
  font: inherit; font-size: 14px; line-height: 1.35; text-align: left; cursor: var(--vrs-cursore-mano, pointer); touch-action: manipulation;
  transition: background-color var(--vrs-t-fast) var(--vrs-ease);
}
.vrs-nov-storia:hover { background: var(--vrs-surface-3); }
.vrs-nov-storia:focus-visible { outline: 2px solid var(--vrs-accent); outline-offset: -2px; }
.vrs-nov-storia[aria-current='true'] { background: var(--vrs-accent-soft); }
.vrs-nov-storia-data { flex: none; width: 58px; color: var(--vrs-muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.vrs-nov-storia[aria-current='true'] .vrs-nov-storia-data { color: var(--vrs-accent); font-weight: 600; }
.vrs-nov-storia-tit { min-width: 0; overflow-wrap: anywhere; }

/* ---- il video di un rilascio (27/10/2026): in cima, grande; la finestra si allarga ----
   Obbligatorio: i comandi sono nostri (niente barra per andare avanti), sotto l'avviso coi secondi;
   X, «Ho capito» e «Chiudi» restano raggiungibili ma spenti (aria-disabled) finché non finisce. */
.vrs-nov[data-video='si'] { width: min(760px, 100%); max-height: min(900px, calc(100dvh - 32px)); }
.vrs-nov-video-fig { margin: 0 0 14px; display: grid; gap: 8px; }
.vrs-nov-video-fig[hidden] { display: none; }
.vrs-nov-video-schermo {
  position: relative; overflow: hidden; border-radius: 14px;
  background: #071826; box-shadow: 0 0 0 1px var(--vrs-border), 0 10px 30px rgb(4 20 34 / 0.22);
}
.vrs-nov-video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: contain; background: #071826; }
.vrs-nov-video-fig[data-obbligo='si'] .vrs-nov-video { cursor: var(--vrs-cursore-mano, pointer); }
/* il grande Riproduci sopra il video, solo quando è fermo */
.vrs-nov-video-via {
  position: absolute; inset: 0; margin: auto; width: 72px; height: 72px; padding: 0 0 0 4px;
  display: none; place-items: center; border: 0; border-radius: 50%;
  background: rgb(7 24 38 / 0.72); color: #fff; box-shadow: 0 0 0 2px rgb(255 255 255 / 0.5);
  cursor: var(--vrs-cursore-mano, pointer); touch-action: manipulation;
  transition: transform var(--vrs-t-fast) var(--vrs-ease), background-color var(--vrs-t-fast) var(--vrs-ease);
}
.vrs-nov-video-fig[data-obbligo='si'][data-stato='fermo'] .vrs-nov-video-via { display: grid; }
.vrs-nov-video-via:hover { background: rgb(0 120 170 / 0.85); transform: scale(1.06); }
.vrs-nov-video-comandi { display: flex; align-items: center; gap: 10px; }
.vrs-nov-video-tasto {
  flex: none; display: grid; place-items: center; width: 40px; height: 40px; padding: 0;
  border: 1px solid var(--vrs-border); border-radius: 10px; background: var(--vrs-surface); color: var(--vrs-text);
  cursor: var(--vrs-cursore-mano, pointer); touch-action: manipulation;
  transition: background-color var(--vrs-t-fast) var(--vrs-ease);
}
.vrs-nov-video-tasto:hover { background: var(--vrs-surface-2); }
.vrs-nov-video-tasto:focus-visible { outline: 2px solid var(--vrs-accent); outline-offset: 2px; }
/* la barra si guarda e basta: non si trascina */
.vrs-nov-video-barra { flex: 1; height: 6px; border-radius: 3px; overflow: hidden; background: var(--vrs-surface-3); }
.vrs-nov-video-pieno { display: block; height: 100%; background: var(--vrs-accent); transform: scaleX(0); transform-origin: left center; }
.vrs-nov-video-tempo { flex: none; min-width: 74px; text-align: right; font-size: 12px; color: var(--vrs-muted); font-variant-numeric: tabular-nums; }
.vrs-nov-video-tit { font-size: 14px; font-weight: 600; line-height: 1.35; color: var(--vrs-text); overflow-wrap: anywhere; }
.vrs-nov-video-avviso {
  margin: 0; padding: 8px 12px; border-radius: 10px;
  background: var(--vrs-accent-soft); color: var(--vrs-text); font-size: 13px; font-weight: 600; line-height: 1.4;
  font-variant-numeric: tabular-nums;
}
.vrs-nov-video-avviso:empty { display: none; }
.vrs-nov-video-avviso[data-ok='si'] { background: rgb(18 184 134 / 0.14); }
.vrs-nov-video-fig[data-richiamo='si'] .vrs-nov-video-avviso { animation: vrs-nov-richiamo 520ms var(--vrs-ease) both; }
@keyframes vrs-nov-richiamo { 0%, 100% { transform: none; } 25% { transform: translateX(-6px); } 50% { transform: translateX(5px); } 75% { transform: translateX(-3px); } }
/* chiusure spente finché il video obbligatorio non arriva alla fine */
.vrs-nov[data-bloccata='si'] :is(.vrs-nov-x, .vrs-nov-ok)[aria-disabled='true'] { opacity: 0.45; cursor: var(--vrs-cursore-freccia, not-allowed); }
.vrs-nov[data-bloccata='si'] .vrs-nov-ok[aria-disabled='true']:hover { background: var(--vrs-accent); }
/* per il lettore di schermo soltanto */
.vrs-nov-sr {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap; border: 0;
}

/* ---- sul telefono: un foglio dal basso, i comandi sotto il pollice ---- */
@keyframes vrs-nov-foglio { from { opacity: 0; transform: translateY(48px); } to { opacity: 1; transform: none; } }
@media (max-width: 639px) {
  .vrs-nov-velo { place-items: end stretch; padding: max(12px, env(safe-area-inset-top)) 0 0; }
  .vrs-nov {
    width: 100%; max-height: calc(100dvh - max(12px, env(safe-area-inset-top)));
    border-radius: 22px 22px 0 0; border-bottom: 0;
    animation-name: vrs-nov-foglio;
  }
  .vrs-nov[data-video='si'] { max-height: calc(100dvh - max(12px, env(safe-area-inset-top))); }
  .vrs-nov-video-schermo { border-radius: 12px; }
  .vrs-nov-scena { padding: 22px 56px 18px 20px; }
  .vrs-nov-stemma { width: 46px; height: 46px; margin-bottom: 12px; }
  .vrs-nov-tit { font-size: 23px; }
  .vrs-nov-corpo { padding: 8px 16px 8px; }
  .vrs-nov-piede {
    flex-direction: column-reverse; align-items: stretch; gap: 6px;
    padding: 10px 16px max(14px, env(safe-area-inset-bottom));
  }
  .vrs-nov-ok, .vrs-nov-link { min-height: 48px; width: 100%; margin: 0; }
  .vrs-nov-x, .vrs-nov-freccia { width: 44px; height: 44px; }
  .vrs-nov-indietro { min-height: 44px; }
  .vrs-nov-sez-corpo { padding-left: 28px; }
}

/* Sul tocco: bersagli da 44 px */
@media (pointer: coarse) {
  .vrs-nov-btn { min-width: 44px; min-height: 44px; }
  .vrs-nov-pallino { top: 8px; left: 24px; }
  .vrs-nov-x, .vrs-nov-freccia { width: 44px; height: 44px; }
  .vrs-nov-indietro, .vrs-nov-ok, .vrs-nov-link { min-height: 48px; }
  .vrs-nov-sez > summary, .vrs-nov-storico > summary, .vrs-nov-interni-btn { min-height: 52px; }
  .vrs-nov-storia { min-height: 48px; }
  .vrs-nov-vai { min-height: 44px; }
  .vrs-nov-video-tasto { width: 44px; height: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  .vrs-nov-velo, .vrs-nov, .vrs-nov-bolla, .vrs-nov-luce, .vrs-nov-stemma, .vrs-nov-sopra,
  .vrs-nov-tit, .vrs-nov-quando, .vrs-nov-voce, .vrs-nov-btn[data-nuove='si'] .vrs-nov-pallino::after,
  .vrs-nov-video-fig[data-richiamo='si'] .vrs-nov-video-avviso { animation: none; }
  .vrs-nov-btn, .vrs-nov-pallino, .vrs-nov-x, .vrs-nov-ok, .vrs-nov-link, .vrs-nov-indietro,
  .vrs-nov-freccia, .vrs-nov-sez > summary, .vrs-nov-storico > summary, .vrs-nov-sez-giu, .vrs-nov-storia, .vrs-nov-vai, .vrs-nov-interni-btn,
  .vrs-nov-video-via, .vrs-nov-video-tasto { transition: none; }
}

/* ============================================================================
   Vetro (13/10/2026, docs/design-system.md §8 «Vetro in tutte le app»)
   ----------------------------------------------------------------------------
   Si accende da solo nelle app che caricano la base del vetro
   (vrs-vetro-base.css, identica nei due repository): ogni effetto passa da una
   variabile --vetro-* col ripiego di prima, e gli aloni da --vetro-neon con
   ripiego 0% (trasparenti). Un'app senza la base resta com'era al pixel.
   Lastre col riflesso in alto, ombre a strati, primario luminoso, aloni solo
   sui segnali (le novità da vedere, la scelta, il fuoco). Sfocatura solo sul
   velo delle finestre e sulla finestrella del tema (su uno pseudo-elemento).
   ========================================================================== */

/* il marchio: la casetta della Suite è una goccia di luce, la pastiglia si accende */
.vrs-marchio-casa {
  background-image: linear-gradient(160deg, color-mix(in oklab, #fff calc(var(--vetro-neon, 0%) * 0.6), transparent), transparent 60%);
  box-shadow: 0 4px 14px -4px color-mix(in oklab, var(--vrs-accent) var(--vetro-neon, 0%), transparent);
}
.vrs-marchio:hover .vrs-marchio-suite,
.vrs-marchio:focus-visible .vrs-marchio-suite {
  box-shadow: inset 0 1px 0 var(--vetro-luce, transparent), 0 0 14px -4px color-mix(in oklab, var(--vrs-accent) var(--vetro-neon, 0%), transparent);
}

/* la finestrella del tema e dei colori (CronoService): vetro quasi pieno, sfocatura dietro */
.vrs-app-pop {
  isolation: isolate;
  background: var(--vetro-velo, none), var(--vetro-float, var(--vrs-surface));
  border-color: var(--vetro-bordo, var(--vrs-border));
  box-shadow: var(--vetro-spessore, 0 0 transparent), var(--vetro-ombra-pop, var(--vrs-shadow-pop));
  transform-origin: top right;
  /* a ingresso finito non resta «in animazione»: sennò la sfocatura qui sotto non vede la pagina */
  animation-fill-mode: backwards;
}
.vrs-app-pop::before {
  content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  -webkit-backdrop-filter: var(--vetro-blur, none); backdrop-filter: var(--vetro-blur, none);
}

/* il tema a tre posizioni: il tasto scelto è una lastrina sollevata */
.vrs-seg, .vrs-tav-int-seg { box-shadow: inset 0 1px 0 var(--vetro-luce, transparent); }
.vrs-seg button[aria-pressed='true'], .vrs-seg button[aria-checked='true'], .vrs-tav-int-seg button[aria-checked='true'] {
  background-image: var(--vetro-velo, none);
  box-shadow: inset 0 1px 0 var(--vetro-luce, transparent), var(--vrs-shadow-1), 0 4px 14px -6px color-mix(in oklab, var(--vrs-accent) var(--vetro-neon, 0%), transparent);
}
/* la tavolozza scelta brilla del suo colore */
.vrs-tav-dot[aria-checked='true']::before, .vrs-tav-dot[aria-pressed='true']::before {
  box-shadow: inset 0 0 0 1px rgb(0 0 0 / 0.12), 0 0 12px -2px color-mix(in oklab, var(--dot-c) var(--vetro-neon, 0%), transparent);
}

/* Novità: il tasto con qualcosa da vedere ha la stellina e il pallino accesi */
.vrs-nov-btn[data-nuove='si'] .vrs-nov-btn-ico { filter: drop-shadow(0 0 6px color-mix(in oklab, var(--vrs-accent) var(--vetro-neon, 0%), transparent)); }
.vrs-nov-btn[data-nuove='si'] .vrs-nov-pallino { box-shadow: 0 0 0 2px var(--vrs-surface), 0 0 10px 1px color-mix(in oklab, #e5484d var(--vetro-neon, 0%), transparent); }

/* la finestra: il velo sfoca la pagina, la finestra ha riflesso, orlo e ombra a strati */
.vrs-nov-velo { -webkit-backdrop-filter: var(--vetro-blur-velo, none); backdrop-filter: var(--vetro-blur-velo, none); }
.vrs-nov {
  background-image: var(--vetro-velo, none);
  border-color: var(--vetro-bordo, var(--vrs-border));
  box-shadow: var(--vetro-spessore, 0 0 transparent), var(--vetro-ombra-pop, 0 2px 6px rgb(0 0 0 / 0.08), 0 24px 64px rgb(4 20 34 / 0.32));
}
.vrs-nov-scena { box-shadow: inset 0 -1px 0 color-mix(in oklab, #9bdcf7 calc(var(--vetro-neon, 0%) * 0.5), transparent); }
/* La scena del riassunto è un'aurora del tema scelto (16/10/2026, Biagio: «il blu delle novità dovrebbe essere
   un'aurora del tema selezionato»): le tre tinte dell'aurora della base (quelle del tema, o la luce dell'app con
   Vetro), a luminosità fissa, così il titolo bianco si legge con ogni tema, anche chiaro. Senza la base o senza i
   colori relativi resta il palco blu di prima. Una tinta grigia (Grafite) resta grigia: il croma si scala, non si forza. */
@supports (color: oklch(from red l c h)) {
  .vrs-nov-scena {
    --nov-a: var(--vetro-aur-src-1, #0f6a97);
    --nov-b: var(--vetro-aur-src-2, #00aeef);
    --nov-c: var(--vetro-aur-src-3, #12b886);
    background:
      radial-gradient(120% 130% at 0% 0%, oklch(from var(--nov-a) 0.4 min(calc(c * 1.2), 0.16) h) 0%, transparent 58%),
      radial-gradient(90% 120% at 100% 0%, oklch(from var(--nov-b) 0.55 min(calc(c * 1.2), 0.17) h / 0.4) 0%, transparent 62%),
      linear-gradient(160deg, oklch(from var(--nov-a) 0.17 min(c, 0.05) h) 0%, oklch(from var(--nov-a) 0.23 min(c, 0.07) h) 55%, oklch(from var(--nov-b) 0.29 min(c, 0.09) h) 100%);
  }
  .vrs-nov-bolla.b1 { background: oklch(from var(--nov-b) 0.62 min(calc(c * 1.2), 0.17) h); }
  .vrs-nov-bolla.b2 { background: oklch(from var(--nov-a) 0.5 min(calc(c * 1.2), 0.17) h); }
  .vrs-nov-bolla.b3 { background: oklch(from var(--nov-c) 0.56 min(calc(c * 1.2), 0.15) h); }
  .vrs-nov-luce { box-shadow: 0 0 10px 2px oklch(from var(--nov-b) 0.86 min(c, 0.1) h / 0.9); }
  .vrs-nov-stemma { box-shadow: 0 8px 24px oklch(from var(--nov-b) 0.6 min(c, 0.15) h / 0.35), inset 0 1px 0 rgb(255 255 255 / 0.25); }
  .vrs-nov-sopra { color: oklch(from var(--nov-b) 0.86 min(c, 0.09) h); }
  .vrs-nov-quando { color: oklch(from var(--nov-b) 0.9 min(c, 0.05) h); }
  .vrs-nov-scena .vrs-nov-x:focus-visible { outline-color: oklch(from var(--nov-b) 0.86 min(c, 0.09) h); }
  .vrs-nov-scena { box-shadow: inset 0 -1px 0 color-mix(in oklab, oklch(from var(--nov-b) 0.86 min(c, 0.09) h) calc(var(--vetro-neon, 0%) * 0.5), transparent); }
}
.vrs-nov-voce-ico, .vrs-nov-sez[data-sez='novita'] .vrs-nov-sez-ico {
  background-image: linear-gradient(160deg, color-mix(in oklab, #fff calc(var(--vetro-neon, 0%) * 0.5), transparent), transparent 70%);
  box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--vrs-accent) calc(var(--vetro-neon, 0%) * 0.4), transparent), 0 6px 16px -8px color-mix(in oklab, var(--vrs-accent) var(--vetro-neon, 0%), transparent);
}
.vrs-nov-sez, .vrs-nov-storico {
  border-color: var(--vetro-bordo, var(--vrs-border));
  background-image: var(--vetro-velo, none);
  box-shadow: var(--vetro-spessore, 0 0 transparent);
}
.vrs-nov-sfoglia { box-shadow: inset 0 1px 0 var(--vetro-luce, transparent), inset 0 0 0 1px var(--vetro-bordo, transparent); }
.vrs-nov-freccia { background-image: var(--vetro-velo, none); }
.vrs-nov-storia[aria-current='true'] { box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--vrs-accent) calc(var(--vetro-neon, 0%) * 0.5), transparent); }

/* «Ho capito»: il primario luminoso (colore della persona che gira appena verso la tinta sorella) */
.vrs-nov-ok, .vrs-nov-ok:hover {
  background-image:
    linear-gradient(180deg, color-mix(in oklab, #fff calc(var(--vetro-neon, 0%) * 0.4), transparent), transparent 52%),
    linear-gradient(115deg, var(--vrs-accent) 35%, color-mix(in oklab, var(--vrs-accent) 72%, var(--vetro-b, var(--vrs-accent))));
  box-shadow: inset 0 1px 0 color-mix(in oklab, #fff calc(var(--vetro-neon, 0%) * 0.7), transparent), 0 10px 24px -8px color-mix(in oklab, var(--vrs-accent) var(--vetro-neon, 0%), transparent);
  transition: background-color var(--vrs-t-fast) var(--vrs-ease), box-shadow var(--vrs-t) var(--vrs-ease), transform var(--vrs-t-fast) var(--vrs-ease);
}
.vrs-nov-ok:hover {
  background-image:
    linear-gradient(180deg, color-mix(in oklab, #fff calc(var(--vetro-neon, 0%) * 0.5), transparent), transparent 52%),
    linear-gradient(115deg, var(--vrs-accent-hover) 35%, color-mix(in oklab, var(--vrs-accent-hover) 68%, var(--vetro-b, var(--vrs-accent-hover))));
  box-shadow: inset 0 1px 0 color-mix(in oklab, #fff calc(var(--vetro-neon, 0%) * 0.8), transparent), 0 14px 34px -8px color-mix(in oklab, var(--vrs-accent) var(--vetro-neon, 0%), transparent);
}
.vrs-nov-ok:active { transform: translateY(1px); }

/* il fuoco da tastiera: l'anello di sempre più l'alone dell'accento */
:is(.vrs-app-btn, .vrs-seg button, .vrs-tav-dot, .vrs-nov-btn, .vrs-nov-x, .vrs-nov-link, .vrs-nov-vai,
    .vrs-nov-indietro, .vrs-nov-freccia, .vrs-nov-storia):focus-visible { box-shadow: var(--vetro-fuoco, none); }
.vrs-nov-ok:focus-visible { box-shadow: var(--vetro-fuoco-forte, none); }

@media (prefers-reduced-motion: reduce) {
  .vrs-nov-ok { transition: none; }
  .vrs-nov-ok:active { transform: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .vrs-app-pop::before { display: none; }
  .vrs-nov-velo { -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media (forced-colors: active) {
  .vrs-marchio-casa, .vrs-app-pop, .vrs-seg, .vrs-seg button, .vrs-nov, .vrs-nov-ok, .vrs-nov-sez, .vrs-nov-storico,
  .vrs-nov-voce-ico, .vrs-nov-sez-ico { background-image: none; box-shadow: none; }
}
