/* Presentazione 2.0 e configurazioni pronte: geometrie decorative,
   contenuto e comandi nell'ordine di lettura, nessuna animazione continua. */
.homeboard-20 .hb-occhiello{color:var(--club-symbol-ink)}
.homeboard-20 .hb-dettaglio{border-color:var(--club-symbol-ink)}
.homeboard-20 .hb-artwork{
  position:relative;isolation:isolate;display:flex;align-items:center;justify-content:center;
  width:min(100%,28rem);height:clamp(100px,21vh,180px);margin:0 auto 22px;
  flex-shrink:0;overflow:hidden;border:1px solid #587eae;border-radius:26px;
  background:#183d79;color:#f6fbff;pointer-events:none;
}
.homeboard-20 .hb-artwork::before{
  content:'';position:absolute;width:20rem;height:20rem;right:-8rem;top:-9rem;
  border-radius:50%;background:#246d86;z-index:-1;
}
.homeboard-20 .hb-artwork::after{
  content:'';position:absolute;inset:18px 22px;border:1px solid #8bbbd566;
  border-radius:18px;z-index:-1;
}
.homeboard-20 .hb-artwork-main,.homeboard-20 .hb-artwork-companion{
  display:grid;place-items:center;border:1px solid #a7c7ef;background:#244f8b;
  color:#f7fbff;border-radius:22px;box-shadow:0 6px 0 #102e61;
}
.homeboard-20 .hb-artwork-main{width:88px;height:88px;z-index:1}
.homeboard-20 .hb-artwork-main .ui-symbol{width:46px;height:46px}
.homeboard-20 .hb-artwork-companion{position:absolute;width:54px;height:54px;border-radius:16px;background:#1a637c}
.homeboard-20 .hb-artwork-companion .ui-symbol{width:28px;height:28px}
.homeboard-20 .hb-artwork-companion-first{left:calc(50% - 120px);top:24%}
.homeboard-20 .hb-artwork-companion-last{right:calc(50% - 120px);bottom:18%}
.homeboard-20 .hb-artwork[data-art="games"] .hb-artwork-main{background:#3157a2}
.homeboard-20 .hb-artwork[data-art="listen"] .hb-artwork-main{background:#226379}
.homeboard-20 .hb-artwork[data-art="sonar"] .hb-artwork-main{background:#245e84}
.homeboard-20 .hb-scelte label{min-height:44px}
.homeboard-20 .hb-corpo>.btn.ghost{margin:0 0 12px;width:auto;align-self:flex-start}
.home-presets{padding:0 0 20px;margin-bottom:8px;border-bottom:1px solid var(--line)}
.home-presets h3{margin:0 0 8px;font-size:1.35rem}
.home-preset-list{display:grid;gap:12px;margin-top:16px}
.home-preset{
  display:grid;grid-template-columns:48px minmax(0,1fr);align-items:start;gap:14px;
  width:100%;min-width:0;min-height:80px;padding:16px;
  border:2px solid var(--line);border-radius:18px;background:var(--paper);color:var(--ink);
  text-align:start;font:inherit;line-height:1.4;cursor:pointer;box-shadow:0 3px 0 var(--paper-3);
}
.home-preset>.ui-symbol{width:48px;height:48px;padding:11px;border-radius:14px;background:var(--club-symbol-bg);color:var(--club-symbol-ink)}
.home-preset-copy{display:block;min-width:0;overflow-wrap:anywhere}
.home-preset-title{display:block;font-weight:750;font-size:1.15rem}
.home-preset-description{display:block;color:var(--ink-2);font-size:.95rem;margin-top:4px}
.home-preset-selected{display:inline-block;margin-top:8px;padding:3px 10px;border:1px solid currentColor;border-radius:999px;font-size:.8rem;font-weight:700}
.home-preset-selected[hidden]{display:none}
.home-preset[aria-pressed="true"]{border-color:var(--club-symbol-ink);background:var(--paper-2);box-shadow:0 3px 0 var(--club-symbol-ink)}
.home-preset:focus-visible{outline:3px solid var(--ring);outline-offset:4px}
.home-preset:disabled{opacity:.65;cursor:default}
.home-preset-state{margin:16px 0 10px;font-weight:650;overflow-wrap:anywhere}
.home-manual-details{border:0;padding:0;margin-top:18px;min-width:0}
.home-manual-details>summary{min-height:48px;padding:12px 0;font-size:1.1rem;font-weight:700;cursor:pointer}
.home-manual-details[open]>summary{margin-bottom:12px}
.home-preset-effect{font-weight:650}
/* Piccola i visiva, con area di tocco comoda e senza riquadro. */
button.function-info,.imp-schermata button.function-info{
  display:inline-flex;align-items:center;justify-content:center;vertical-align:middle;
  width:44px;min-width:44px;height:44px;min-height:44px;flex:0 0 44px;
  margin:0;padding:8px;border:0;border-radius:50%;box-shadow:none;
  background:transparent;color:var(--club-symbol-ink);cursor:pointer;
}
button.function-info[hidden]{display:none}
button.function-info .ui-symbol{width:28px;height:28px;flex:none}
button.function-info:hover{background:var(--paper-2)}
button.function-info:focus-visible{outline:3px solid var(--ring);outline-offset:2px}
.game-menu-heading,.information-heading{display:flex;align-items:center;gap:8px;min-width:0}
.game-menu-heading h3,.information-heading h3{flex:1;min-width:0;margin:0;overflow-wrap:anywhere}
.legame-solutions{margin-block:1rem}
body.information-page-open{overflow:hidden}
dialog.information-page{
  position:fixed;inset:0;width:100%;max-width:none;height:100%;height:100dvh;max-height:none;
  box-sizing:border-box;margin:0;padding:0;border:0;border-radius:0;
  overflow:auto;overscroll-behavior:contain;background:var(--paper);color:var(--ink);
  text-align:start;font:inherit;
}
dialog.information-page::backdrop{background:var(--paper)}
.information-toolbar{
  position:sticky;top:0;z-index:1;box-sizing:border-box;max-width:760px;margin:auto;
  padding:calc(12px + env(safe-area-inset-top)) max(20px,env(safe-area-inset-right)) 12px max(20px,env(safe-area-inset-left));
  background:var(--paper);border-bottom:1px solid var(--line);
}
.information-toolbar .information-close{width:100%;min-height:48px;white-space:normal;overflow-wrap:anywhere}
.information-content{box-sizing:border-box;max-width:760px;margin:auto;padding:24px max(20px,env(safe-area-inset-right)) calc(32px + env(safe-area-inset-bottom)) max(20px,env(safe-area-inset-left));overflow-wrap:anywhere}
.information-content h2{margin:0 0 24px;font-size:1.5rem;line-height:1.25}
.information-body{line-height:1.6}
.information-body p{margin:0 0 1rem}
.information-body .hint{font-size:1rem;color:var(--ink)}
@media(prefers-reduced-motion:no-preference){
  dialog.information-page[open]{animation:information-enter .18s ease-out}
  @keyframes information-enter{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
}
@media(min-width:760px){
  .home-preset-list{grid-template-columns:repeat(3,minmax(0,1fr))}
  .home-preset{grid-template-columns:minmax(0,1fr);gap:12px}
}
@media(max-width:340px){
  .home-preset{padding:12px;grid-template-columns:36px minmax(0,1fr);gap:10px}
  .home-preset>.ui-symbol{width:36px;height:36px;padding:7px}
  .homeboard-20 .hb-artwork-companion-first{left:8px}
  .homeboard-20 .hb-artwork-companion-last{right:8px}
}
@media(max-height:640px){
  .homeboard-20 .hb-artwork{height:94px;margin-bottom:14px}
  .homeboard-20 .hb-artwork-main{width:64px;height:64px}
  .homeboard-20 .hb-artwork-main .ui-symbol{width:34px;height:34px}
  .homeboard-20 .hb-artwork-companion{width:42px;height:42px}
}
@media(forced-colors:active){
  button.function-info{color:ButtonText}
  dialog.information-page,.information-toolbar{background:Canvas;color:CanvasText}
  .home-preset[aria-pressed="true"]{border-color:Highlight;outline:1px solid Highlight}
  .home-preset>.ui-symbol,.home-preset-selected{border:1px solid ButtonText}
  .homeboard-20 .hb-artwork{display:none}
}

/* Percorso della versione 2.0: gerarchia leggibile, progresso discreto,
   decorazioni separate dal contenuto, testo grande senza scorrimento laterale. */
.homeboard-20{padding-inline:max(20px,env(safe-area-inset-left));scroll-padding-block:5rem 7rem}
.homeboard-20 .hb-alto{max-width:36rem;width:100%;margin:0 auto 12px;align-items:baseline}
.homeboard-20 .hb-brand{font-size:1rem;font-weight:750;letter-spacing:-.015em}
.homeboard-20 .hb-passo{font-size:.875rem;font-weight:600}
.homeboard-20 .hb-progress{display:flex;gap:6px;width:100%;max-width:36rem;margin:0 auto 24px;flex:none}
.homeboard-20 .hb-progress>span{height:3px;flex:1;min-width:0;border-radius:4px;background:var(--line)}
.homeboard-20 .hb-progress>.is-current,.homeboard-20 .hb-progress>.is-complete{background:var(--club-symbol-ink)}
.homeboard-20 .hb-corpo{max-width:36rem;gap:0;padding-top:0}
.homeboard-20 .hb-artwork{height:clamp(100px,18vh,156px);margin-bottom:24px;background:transparent;border:0;border-radius:0;overflow:visible}
.homeboard-20 .hb-artwork::before{inset:12% 9%;width:auto;height:auto;background:var(--club-symbol-bg);border-radius:999px}
.homeboard-20 .hb-artwork::after{inset:4% 15%;border:1px solid var(--line);border-radius:999px}
.homeboard-20 .hb-artwork-main{width:86px;height:86px;border-radius:24px;background:var(--btn-p-bg)!important;color:var(--btn-p-fg);border-color:var(--btn-p-bg);box-shadow:none;transform:rotate(-7deg)}
.homeboard-20 .hb-artwork-main>.ui-symbol{transform:rotate(7deg)}
.homeboard-20 .hb-artwork-companion{width:54px;height:54px;border-radius:18px;background:var(--paper);color:var(--club-symbol-ink);border:1px solid var(--line-strong);box-shadow:none}
.homeboard-20 .hb-artwork-companion-first{left:calc(50% - 128px);top:12%}
.homeboard-20 .hb-artwork-companion-last{right:calc(50% - 126px);bottom:6%}
.homeboard-20 .hb-occhiello{font-size:.8125rem;letter-spacing:.07em;margin-bottom:9px}
.homeboard-20 .hb-titolo{font-family:var(--font-ui,-apple-system,BlinkMacSystemFont,sans-serif);font-weight:750;font-size:clamp(1.9rem,7vw,2.55rem);line-height:1.12;letter-spacing:-.03em;margin-bottom:20px;overflow-wrap:anywhere}
.homeboard-20 .hb-testo{font-size:1.0625rem;line-height:1.6;margin-bottom:18px}
.homeboard-20 .hb-dettaglio{font-size:.9375rem;line-height:1.6;border:0;padding:0;color:var(--ink-2)}
.homeboard-20 .hb-basso{max-width:36rem;gap:12px;margin-top:26px;border-top:1px solid var(--line);padding-top:14px}
.homeboard-20 .hb-basso .btn,.homeboard-20 .hb-corpo>.btn{min-width:0;max-width:100%;min-height:52px;white-space:normal;overflow-wrap:anywhere;line-height:1.4}
.homeboard-20 .hb-basso .btn{font-size:1rem}
.homeboard-20 .hb-scelte{margin:22px 0 16px}
@media(max-width:340px){.homeboard-20{padding-inline:16px}.homeboard-20 .hb-artwork-companion-first{left:5px}.homeboard-20 .hb-artwork-companion-last{right:5px}}
@media(max-height:640px){.homeboard-20 .hb-artwork{height:92px;margin-bottom:14px}.homeboard-20 .hb-artwork-main{width:64px;height:64px}.homeboard-20 .hb-progress{margin-bottom:14px}}
@media(forced-colors:active){.homeboard-20 .hb-progress>.is-current{background:Highlight}.homeboard-20 .hb-progress>.is-complete{background:CanvasText}}
.homeboard-20 .hb-topics{margin:0 0 22px;min-width:0}
.homeboard-20 .hb-topics label{display:block;margin:0 0 7px;font-size:.9rem;font-weight:650}
.homeboard-20 .hb-topics .scelta-pulsante{display:flex;width:100%;max-width:100%;min-width:0;min-height:48px;box-sizing:border-box;font:inherit;color:var(--ink);background:var(--paper-2);border:1px solid var(--line-strong);border-radius:12px;padding:10px}
.homeboard-20 .hb-topics .scelta-pulsante:focus-visible{outline:3px solid var(--ring);outline-offset:3px}
/* Su telefono il testo ingrandito può rendere le due barre più alte della
   lettura disponibile. Nel flusso normale ogni paragrafo e comando resta
   raggiungibile, senza sovrapposizioni né misure JavaScript. */
@media(max-width:700px),(max-height:700px){
  .homeboard-20 .hb-alto,.homeboard-20 .hb-basso{position:static}
}
