/* Il Cervello dell'impresa, la demo che la pagina /cervello-edile mostra in un iframe (12/11/2026).
   Lo stile è quello degli esempi del 12/11 (stile.css e shell.css): le parti che servono alla demo, coi caratteri del
   sito (public/fonts, le stesse regole di src/app/fonts.css per l'alfabeto latino) invece di quelli di Google.
   Dentro l'iframe vw e larghezze sono quelle dell'iframe, non della finestra: il palco usa 61vw invece di 56vw, così
   sugli schermi larghi resta alto 700 px come nell'esempio. Il fondo è trasparente: si vede quello della sezione. */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("/fonts/inter-latin-ext.woff2") format("woff2"); unicode-range: U+100-2BA, U+2BD-2C5, U+2C7-2CC, U+2CE-2D7, U+2DD-2FF, U+304, U+308, U+329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("/fonts/inter-latin.woff2") format("woff2"); unicode-range: U+??, U+131, U+152-153, U+2BB-2BC, U+2C6, U+2DA, U+2DC, U+304, U+308, U+329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/poppins-600-latin-ext.woff2") format("woff2"); unicode-range: U+100-2BA, U+2BD-2C5, U+2C7-2CC, U+2CE-2D7, U+2DD-2FF, U+304, U+308, U+329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/poppins-600-latin.woff2") format("woff2"); unicode-range: U+??, U+131, U+152-153, U+2BB-2BC, U+2C6, U+2DA, U+2DC, U+304, U+308, U+329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/poppins-700-latin-ext.woff2") format("woff2"); unicode-range: U+100-2BA, U+2BD-2C5, U+2C7-2CC, U+2CE-2D7, U+2DD-2FF, U+304, U+308, U+329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/poppins-700-latin.woff2") format("woff2"); unicode-range: U+??, U+131, U+152-153, U+2BB-2BC, U+2C6, U+2DA, U+2DC, U+304, U+308, U+329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 800; font-display: swap; src: url("/fonts/poppins-800-latin-ext.woff2") format("woff2"); unicode-range: U+100-2BA, U+2BD-2C5, U+2C7-2CC, U+2CE-2D7, U+2DD-2FF, U+304, U+308, U+329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 800; font-display: swap; src: url("/fonts/poppins-800-latin.woff2") format("woff2"); unicode-range: U+??, U+131, U+152-153, U+2BB-2BC, U+2C6, U+2DA, U+2DC, U+304, U+308, U+329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --navy-950: #020617; --navy-900: #0f172a; --navy-800: #1e293b; --navy-700: #334155; --navy-600: #475569;
  --navy-500: #64748b; --navy-400: #94a3b8; --navy-300: #cbd5e1; --navy-200: #e2e8f0; --navy-100: #f1f5f9; --navy-50: #f8fafc;
  --orange-900: #7c2d12; --orange-800: #9a3412; --orange-700: #c2410c; --orange-600: #ea580c; --orange-500: #f97316;
  --orange-400: #fb923c; --orange-300: #fdba74; --orange-200: #fed7aa; --orange-100: #ffedd5; --orange-50: #fff7ed;
  --verde: #047857;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ombra: 0 10px 15px rgba(15, 23, 42, 0.07), 0 4px 6px rgba(15, 23, 42, 0.04);
  --ombra-forte: 0 25px 50px rgba(15, 23, 42, 0.12);
  --ombra-riquadro: 0 1px 2px rgba(194, 65, 12, 0.16), 0 24px 48px -18px rgba(249, 115, 22, 0.6);
  --fuoco: 0 0 0 3px rgba(249, 115, 22, 0.35);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; overflow: hidden; }
body {
  margin: 0; background: transparent; color: var(--navy-800);
  font-family: "Inter", system-ui, sans-serif; font-size: 17px; line-height: 1.65;
}
@media (min-width: 768px) { body { font-size: 18px; } }
h1, h2, h3, h4 {
  margin: 0; font-family: "Poppins", system-ui, sans-serif; color: var(--navy-900);
  line-height: 1.15; letter-spacing: -0.015em; text-wrap: balance;
}
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--orange-500); outline-offset: 3px; border-radius: 6px; }
img { max-width: 100%; display: block; }

/* Pulsanti: arancio del marchio col testo navy (il bianco sull'arancio non si legge, DESIGN.md) */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 999px; border: 2px solid transparent;
  font-family: "Inter", sans-serif; font-size: 16px; font-weight: 700; line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease), background-color 0.18s, color 0.18s;
}
.btn-funnel { background: var(--orange-500); color: var(--navy-900); }
.btn-funnel:hover { transform: translateY(-1px); box-shadow: 0 12px 28px rgba(249, 115, 22, 0.35), 0 4px 8px rgba(249, 115, 22, 0.2); }
.btn-chiaro { border-color: rgba(255, 255, 255, 0.45); color: #fff; background: transparent; }
.btn-chiaro:hover { border-color: #fff; background: rgba(255, 255, 255, 0.06); }
.btn-scuro { border-color: var(--navy-900); color: var(--navy-900); background: transparent; }
.btn-scuro:hover { background: var(--navy-900); color: #fff; }
.btn-piccolo { min-height: 44px; padding: 0 18px; font-size: 15px; }
.btn .freccia { transition: transform 0.18s var(--ease); }
.btn:hover .freccia { transform: translateX(3px); }

.nota { font-size: 14px; line-height: 1.5; color: var(--navy-600); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Il guscio comune ai tre Cervelli animati: palco, etichette, fumetto, risposta e comandi. */
.demo { padding-top: clamp(36px, 5vw, 64px); }
.idee { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.idee span { font-size: 15px; color: var(--navy-600); align-self: center; margin-right: 4px; }
.idee a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px;
  border: 1.5px solid var(--navy-200); font-size: 15px; font-weight: 600; text-decoration: none; color: var(--navy-700);
  transition: border-color 0.18s, background-color 0.18s, color 0.18s;
}
.idee a:hover { border-color: var(--navy-900); color: var(--navy-900); }
.idee a[aria-current="page"] { background: var(--navy-900); border-color: var(--navy-900); color: #fff; }

.demo-corpo { position: relative; margin-top: 28px; }
.palco {
  position: relative; height: clamp(540px, 61vw, 700px); border-radius: 22px; overflow: hidden;
  background: #fff; border: 1px solid var(--navy-200); box-shadow: var(--ombra);
  touch-action: pan-y; user-select: none; -webkit-user-select: none;
}
.palco canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.etichette { position: absolute; inset: 0; pointer-events: none; }

.cartello {
  position: absolute; left: 18px; top: 16px; z-index: 3; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px;
  padding: 10px 16px; border-radius: 14px; background: var(--navy-900); color: #fff; box-shadow: var(--ombra);
  max-width: calc(100% - 36px);
}
.cartello b { font-family: "Poppins", sans-serif; font-size: 16px; font-weight: 700; line-height: 1.2; }
.suggerimento {
  position: absolute; right: 16px; bottom: 14px; z-index: 3; pointer-events: none; padding: 7px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.92); border: 1px solid var(--navy-200); font: 600 14px/1.2 "Inter", system-ui, sans-serif;
  color: var(--navy-700); box-shadow: 0 3px 10px rgba(15, 23, 42, 0.08); transition: opacity 0.5s;
}
.cartello .badge {
  display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--orange-200);
}
.cartello .badge i { width: 8px; height: 8px; border-radius: 2px; background: var(--orange-500); transform: rotate(45deg); }
/* sul telefono il nome dell'impresa è già nel titolo: in alto resta solo la tappa, e il palco è più alto */
@media (max-width: 640px) {
  .palco { height: 600px; }
  .cartello { padding: 7px 12px; border-radius: 999px; }
  .cartello b { display: none; }
}

/* Le etichette sopra gli omini */
.etichetta {
  position: absolute; left: 0; top: 0; pointer-events: auto; z-index: 2;
  display: inline-flex; align-items: center; gap: 7px; padding: 6px 11px 6px 9px; min-height: 30px;
  font: 600 14px/1.1 "Inter", system-ui, sans-serif; color: var(--navy-900); white-space: nowrap;
  background: #fff; border: 1px solid var(--navy-200); border-radius: 999px; cursor: pointer;
  box-shadow: 0 3px 8px rgba(15, 23, 42, 0.12); will-change: transform;
  transition: background-color 0.18s, color 0.18s, border-color 0.18s, opacity 0.3s;
}
.etichetta::before { content: ""; position: absolute; inset: -8px -4px; }
.etichetta::after {
  content: ""; position: absolute; left: 50%; top: 100%; width: 2px; margin-left: -1px;
  height: var(--gamba, 7px); background: var(--navy-300);
}
.etichetta .pallino { width: 9px; height: 9px; border-radius: 50%; background: var(--c); flex: none; }
.etichetta:hover { border-color: var(--navy-900); }
.etichetta.chiede { background: var(--navy-900); color: #fff; border-color: var(--navy-900); z-index: 3; } /* sopra gli altri nomi e le loro linee; sotto il fumetto, la risposta e il cartello */
.etichetta.chiede::after { background: var(--navy-900); }
.etichetta .nota { margin-left: 3px; padding: 3px 8px; border-radius: 999px; background: var(--orange-500); color: var(--navy-900); font-size: 14px; font-weight: 600; }
.etichetta[hidden] { display: none !important; }
/* Dal 16/11/2026: finché il riquadro dice «premi il nome sopra una persona», i nomi pulsano piano (shell.js, «invito»). */
.palco.invito .etichetta:not(.chiede) { animation: invito 2.2s var(--ease) infinite; }
@keyframes invito {
  0% { box-shadow: 0 3px 8px rgba(15, 23, 42, 0.12), 0 0 0 0 rgba(249, 115, 22, 0.6); }
  70%, 100% { box-shadow: 0 3px 8px rgba(15, 23, 42, 0.12), 0 0 0 10px rgba(249, 115, 22, 0); }
}

.cass {
  position: absolute; left: 0; top: 0; pointer-events: auto; z-index: 1; max-width: 168px;
  padding: 6px 11px; border-radius: 10px; font: 600 14px/1.25 "Inter", system-ui, sans-serif; text-align: center;
  color: var(--navy-800); background: rgba(255, 255, 255, 0.94); border: 1px solid var(--navy-200); cursor: pointer;
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.1); will-change: transform; transition: background-color 0.2s, color 0.2s, border-color 0.2s, opacity 0.35s;
}
.cass.progetto { background: rgba(255, 255, 255, 0.75); border-style: dashed; border-color: var(--navy-400); color: var(--navy-700); box-shadow: none; }
.cass .nc { display: none; }
/* col Cervello fatto i cassetti diventano targhette corte, per lasciar vedere il Cervello; quello acceso torna intero */
.cass:not(.progetto) { padding: 4px 10px; border-radius: 999px; max-width: none; white-space: nowrap; background: rgba(255, 255, 255, 0.88); border-color: rgba(15, 23, 42, 0.16); box-shadow: 0 2px 8px rgba(15, 23, 42, 0.1); }
.cass:not(.progetto) .nl { display: none; }
.cass:not(.progetto) .nc { display: inline; }
.cass:hover, .cass.sopra { border-color: var(--navy-900); background: #fff; color: var(--navy-900); }
.cass.acceso { background: var(--orange-500); border-color: var(--orange-600); color: var(--navy-900); }
.cass.acceso .nl { display: inline; }
.cass.acceso .nc { display: none; }
@media (max-width: 640px) { .cass { max-width: 130px; } .cass .nl, .cass.acceso .nl { display: none; } .cass .nc, .cass.acceso .nc { display: inline; } }

.fumetto {
  position: absolute; left: 0; top: 0; z-index: 4; max-width: 250px; pointer-events: none;
  padding: 10px 14px; border-radius: 14px; background: #fff; border: 2px solid var(--orange-500);
  font: 600 15px/1.35 "Inter", system-ui, sans-serif; color: var(--navy-900);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.16); transition: opacity 0.25s;
}
.fumetto::after {
  content: ""; position: absolute; left: var(--coda, 50%); bottom: -9px; width: 14px; height: 14px; margin-left: -7px;
  background: #fff; border-right: 2px solid var(--orange-500); border-bottom: 2px solid var(--orange-500); transform: rotate(45deg);
}

/* La risposta: sopra il palco a sinistra sugli schermi larghi, sotto il palco sugli altri */
.risposta {
  margin-top: 16px; padding: 20px 22px; border-radius: 18px; background: #fff; border: 1px solid var(--navy-200);
  box-shadow: var(--ombra); font-size: 16px; line-height: 1.55; min-height: 150px;
}
@media (min-width: 960px) {
  .risposta { position: absolute; z-index: 3; left: 18px; top: 84px; width: 344px; margin: 0; max-height: calc(100% - 104px); overflow: auto; }
}
.risposta .chi { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--navy-600); }
.risposta .chi .pallino { width: 9px; height: 9px; border-radius: 50%; background: var(--c, var(--orange-500)); }
.risposta .dom { margin-top: 6px; font-family: "Poppins", sans-serif; font-size: 19px; font-weight: 700; line-height: 1.3; color: var(--navy-900); }
.risposta .ris { margin-top: 14px; padding: 14px 16px; border-radius: 14px; background: var(--navy-50); border: 1px solid var(--navy-100); }
.risposta .ris.senza { background: #fff; border: 1.5px dashed var(--navy-300); }
.risposta .testa { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-size: 14px; font-weight: 700; color: var(--navy-900); margin-bottom: 6px; }
.risposta .testa .c { font-weight: 600; padding: 2px 9px; border-radius: 999px; background: var(--orange-100); color: var(--orange-900); }
.risposta .fonte { margin-top: 10px; font-size: 14px; color: var(--navy-600); }
.risposta .fonte b { color: var(--navy-800); }
.risposta .extra { margin-top: 12px; font-size: 15px; display: flex; gap: 10px; align-items: flex-start; }
.risposta .extra i { flex: none; width: 10px; height: 10px; margin-top: 7px; background: var(--orange-500); transform: rotate(45deg); border-radius: 2px; }
.risposta .extra b { color: var(--navy-900); }
.risposta .cerca { margin-top: 14px; display: flex; align-items: center; gap: 10px; color: var(--navy-600); font-size: 15px; }
.risposta .cerca span { display: inline-flex; gap: 4px; }
.risposta .cerca span i { width: 7px; height: 7px; border-radius: 50%; background: var(--orange-500); animation: punto 1s infinite; }
.risposta .cerca span i:nth-child(2) { animation-delay: 0.15s; } .risposta .cerca span i:nth-child(3) { animation-delay: 0.3s; }
@keyframes punto { 0%, 80%, 100% { opacity: 0.25; } 40% { opacity: 1; } }
.risposta .azioni { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 10px; }
.risposta .dentro { margin-top: 10px; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.risposta .dentro li { font-size: 14px; padding: 4px 10px; border-radius: 999px; background: var(--navy-50); border: 1px solid var(--navy-200); color: var(--navy-700); }
.risposta p + p { margin-top: 8px; }
.risposta .vuota p { color: var(--navy-700); }
.link-prova {
  margin-top: 12px; padding: 10px 14px; min-height: 44px; border-radius: 12px; border: 1.5px solid var(--orange-500);
  background: var(--orange-50); color: var(--navy-900); font-weight: 600; font-size: 15px; text-align: left; cursor: pointer; width: 100%;
}
.link-prova:hover { background: var(--orange-100); }

/* I comandi sotto il palco */
.comandi { margin-top: 22px; display: grid; gap: 18px; }
@media (min-width: 960px) { .comandi { grid-template-columns: 1.35fr 1fr; align-items: start; } }
.blocco { padding: 20px 22px; border-radius: 18px; background: var(--navy-50); border: 1px solid var(--navy-100); }
.blocco h3 { font-size: 18px; font-weight: 700; }
.blocco .sotto { margin-top: 4px; font-size: 15px; color: var(--navy-600); }
.cursore { margin-top: 14px; }
.cursore input[type="range"] { width: 100%; height: 30px; accent-color: var(--orange-500); cursor: pointer; }
.tappe { margin-top: 4px; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
.tappe button {
  min-height: 52px; padding: 6px 4px; border-radius: 12px; border: 1px solid var(--navy-200); background: #fff; cursor: pointer;
  display: grid; justify-items: center; gap: 1px; font-size: 14px; line-height: 1.15; color: var(--navy-700);
  transition: background-color 0.18s, color 0.18s, border-color 0.18s;
}
.tappe button b { font-family: "Poppins", sans-serif; font-size: 16px; color: var(--navy-900); }
.tappe button:hover { border-color: var(--navy-900); }
.tappe button[aria-pressed="true"] { background: var(--navy-900); border-color: var(--navy-900); color: var(--orange-200); }
.tappe button[aria-pressed="true"] b { color: #fff; }
.tappe button span { overflow-wrap: anywhere; }
/* sul telefono sei pulsanti in fila non ci stanno: due righe da tre, coi nomi interi */
@media (max-width: 560px) { .tappe { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.didascalia { margin-top: 14px; font-size: 16px; color: var(--navy-800); min-height: 3.2em; }
.didascalia b { color: var(--navy-900); }
.riga-pulsanti { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 10px; }
.chips { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.chips button {
  min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--navy-300); background: #fff; color: var(--navy-600);
  font-size: 15px; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 8px;
  transition: background-color 0.18s, color 0.18s, border-color 0.18s;
}
.chips button i { width: 9px; height: 9px; border-radius: 50%; background: var(--c); opacity: 0.45; }
.chips button[aria-pressed="true"] { background: var(--navy-900); border-color: var(--navy-900); color: #fff; }
.chips button[aria-pressed="true"] i { opacity: 1; }
.nome-campo { margin-top: 16px; display: grid; gap: 6px; font-size: 15px; font-weight: 600; color: var(--navy-800); }
.nome-campo input {
  min-height: 46px; padding: 0 14px; border-radius: 12px; border: 1.5px solid var(--navy-300); font: 500 16px "Inter", sans-serif; color: var(--navy-900); background: #fff;
}
.nome-campo input:focus-visible { border-color: var(--orange-500); outline: none; box-shadow: var(--fuoco); }
.idee-nota { margin-top: 28px; }

/* Il Cervello a puntini collegati: il palco scuro, i tasti per avvicinarsi e i sei cassetti */
.palco.scuro { background: radial-gradient(ellipse 70% 62% at 58% 40%, #1e293b 0%, #0f172a 58%, #0b1222 100%); border-color: var(--navy-800); }
.palco.scuro .cartello { border: 1px solid var(--navy-700); }
.palco.scuro .etichetta.chiede { background: var(--orange-500); border-color: var(--orange-500); color: var(--navy-900); }
.palco.scuro .etichetta.chiede::after { background: var(--orange-500); }
.palco.scuro .cass.progetto { background: rgba(15, 23, 42, 0.78); border-color: var(--navy-400); color: var(--navy-100); }
.grafo-zoom { position: absolute; top: 14px; right: 14px; z-index: 3; display: flex; gap: 6px; opacity: 0; visibility: hidden; transition: opacity 0.4s, visibility 0.4s; }
.grafo-zoom.su, .grafo-gruppi.su { opacity: 1; visibility: visible; }
.grafo-zoom button { width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--navy-600); background: rgba(15, 23, 42, 0.86); color: #fff; font: 600 22px/1 "Inter", system-ui, sans-serif; cursor: pointer; transition: background-color 0.18s, border-color 0.18s; }
.grafo-zoom button:hover { border-color: var(--orange-400); }
.grafo-zoom button:focus-visible, .grafo-gruppi button:focus-visible { outline: 2px solid var(--orange-400); outline-offset: 2px; }
.grafo-gruppi { position: absolute; top: 68px; right: 14px; z-index: 3; list-style: none; margin: 0; padding: 6px; border-radius: 14px; background: rgba(15, 23, 42, 0.72); border: 1px solid var(--navy-700); opacity: 0; visibility: hidden; transition: opacity 0.4s, visibility 0.4s; }
.grafo-gruppi button { display: flex; align-items: center; gap: 9px; width: 100%; min-height: 44px; padding: 0 12px; border: 0; border-radius: 10px; background: none; color: var(--navy-100); font: 600 14px/1.2 "Inter", system-ui, sans-serif; text-align: left; cursor: pointer; white-space: nowrap; }
.grafo-gruppi button:hover { background: rgba(148, 163, 184, 0.14); color: #fff; }
.grafo-gruppi button[aria-pressed="true"] { background: var(--orange-500); color: var(--navy-900); }
.grafo-gruppi i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); flex: none; }
.grafo-gruppi button[aria-pressed="true"] i { background: var(--navy-900); }
.grafo-sugg { top: 16px; right: auto; bottom: auto; transform: translateX(-50%); white-space: nowrap; background: rgba(15, 23, 42, 0.9); border-color: var(--navy-600); color: #fff; }
@media (max-width: 640px) { .grafo-gruppi { display: none; } }
@media (min-width: 641px) and (max-width: 959px) { .grafo-gruppi { display: grid; grid-template-columns: repeat(2, auto); column-gap: 2px; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  /* senza movimento i nomi da premere hanno un anello fermo */
  .palco.invito .etichetta:not(.chiede) { animation: none !important; box-shadow: 0 3px 8px rgba(15, 23, 42, 0.12), 0 0 0 3px rgba(249, 115, 22, 0.65); }
}

/* Nell'iframe: niente margine sopra (lo spazio lo dà la pagina) e 12 px ai lati e sotto, perché le ombre di palco e
   risposta non restino tagliate dal bordo dell'iframe. La pagina allarga l'iframe di 12 px per lato (DemoCervello.tsx). */
body { padding: 0 12px 12px; }
.demo-corpo { margin-top: 0; }
