/* Banco tecnico della giornata dal vivo (#/corsi/<id>/giornate/<id>/presenta, js/modules/corsi-presentatore.js).
   Pagina scura a tutto schermo: testata con i tempi, a sinistra ciò che vede la sala con i comandi del momento,
   a destra il passo del relatore e i materiali, in fondo i comandi di riserva (gli stessi del gobbo). */
.banco {
  position: fixed; inset: 0; z-index: 150; color: #ececec; outline: none; font-size: 15px;
  display: grid; grid-template-rows: auto 1fr auto;
  background:
    radial-gradient(60% 70% at 8% 0%, rgba(116, 72, 255, .20) 0%, rgba(116, 72, 255, 0) 60%),
    radial-gradient(55% 60% at 100% 100%, rgba(34, 82, 164, .18) 0%, rgba(34, 82, 164, 0) 65%),
    #0E1113;
}
.banco a { color: #b9a3ff; }
.banco .badge-tipo { background: rgba(116, 72, 255, .25); color: #d9ccff; }

/* testata */
.banco-testa { display: flex; align-items: center; gap: 12px; padding: 10px 18px; border-bottom: 1px solid #262b30; flex-wrap: wrap; }
.banco-giornata { font-family: var(--font-titoli); text-transform: uppercase; letter-spacing: .4px; font-size: 14px; color: #a8a8a8; white-space: nowrap; }
.banco-giornata span { color: var(--ambra); margin-right: 6px; }
.banco-dove { font-family: var(--font-titoli); text-transform: uppercase; font-size: 18px; color: #fff; letter-spacing: .3px; min-width: 0; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.banco-dove b { color: var(--viola); margin-right: 8px; font-weight: 500; }
.banco-tempi { display: flex; align-items: baseline; gap: 6px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.banco-tempi small { color: #8a8a8a; font-size: 11px; text-transform: uppercase; letter-spacing: .5px; margin-right: 8px; }
.banco-rimanente { font-family: var(--font-titoli); font-size: 26px; color: #fff; line-height: 1; }
.banco-rimanente.quasi { color: var(--ambra); } .banco-rimanente.fuori { color: #ff6b7d; }
.banco-rimanente.pausa { animation: banco-pulsa 1.6s ease-in-out infinite; }
@keyframes banco-pulsa { 50% { opacity: .35; } }
.banco-passo-tempo { font-family: var(--font-titoli); font-size: 18px; color: #d9d9d9; }
.banco-passo-tempo.fuori { color: #ff6b7d; }
.banco-totale { font-size: 13px; color: #8a8a8a; } .banco-totale b { color: #d9d9d9; }
.banco-chip { font-size: 12.5px; font-weight: 700; padding: 4px 11px; border-radius: 20px; background: #262b30; color: #c4c4c4; white-space: nowrap; }
.banco-chip.ok { background: rgba(27, 175, 122, .18); color: #5fe0a9; }
.banco-chip.warn { background: rgba(245, 183, 59, .18); color: #f5b73b; }
.banco-chip.err { background: rgba(224, 82, 100, .22); color: #ff8b99; }
.banco-collegati { display: flex; gap: 10px; font-size: 12px; color: #8a8a8a; text-transform: uppercase; letter-spacing: .5px; }
.banco-collegati span { display: inline-flex; align-items: center; gap: 5px; }
.banco-collegati .punto { width: 8px; height: 8px; border-radius: 50%; background: #e0555f; display: inline-block; }
.banco-collegati .punto.si { background: #1baf7a; }
.banco-tasto {
  background: #171b1f; border: 1px solid #2c3136; color: #cfcfcf; border-radius: 6px; cursor: pointer;
  padding: 7px 10px; display: inline-flex; align-items: center; gap: 6px; font: inherit; font-size: 13px; white-space: nowrap;
}
.banco-tasto:hover { background: #22272c; color: #fff; }
.banco-tasto svg { width: 17px; height: 17px; }
.banco-tasto.piccolo { padding: 4px 8px; font-size: 12px; }
.banco-tasto.acceso { background: rgba(27, 175, 122, .18); border-color: #1baf7a; color: #5fe0a9; }

/* corpo: sala a sinistra, lato a destra */
.banco-corpo { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(320px, 1fr); min-height: 0; }
.banco-sala { padding: 16px 22px; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; min-height: 0; }
.banco-sala > * { flex: 0 0 auto; }   /* l'anteprima 16:9 non si schiaccia */
.banco-lato { padding: 16px 20px; overflow-y: auto; border-left: 1px solid #262b30; background: rgba(17, 21, 23, .7); display: flex; flex-direction: column; gap: 12px; }
.banco-etichetta { font-family: var(--font-titoli); font-size: 12px; font-weight: 500; letter-spacing: 2.4px; text-transform: uppercase; color: #8a8a8a; margin-bottom: 6px; }
.banco-etichetta b { color: #fff; font-weight: 500; }
.banco-anteprima { position: relative; border-radius: 8px; overflow: hidden; max-width: 960px; }
.banco-anteprima .slide-anteprima { width: 100%; }
.banco-anteprima.nera::after { content: 'SCHERMO NERO'; position: absolute; inset: 0; background: rgba(0, 0, 0, .9); color: #777; display: flex; align-items: center; justify-content: center; font-family: var(--font-titoli); letter-spacing: 3px; font-size: 20px; }
.banco-copertina { aspect-ratio: 16 / 9; container-type: inline-size; background: radial-gradient(60% 70% at 10% 10%, rgba(116, 72, 255, .34) 0%, rgba(116, 72, 255, 0) 60%), #0E1113; border: 1px solid #262b30; border-radius: 8px; padding: 5cqw 6cqw; display: flex; align-items: center; justify-content: space-between; gap: 4cqw; }
.banco-copertina h3 { font-family: var(--font-titoli); font-size: 6cqw; line-height: 1; margin: 1cqw 0 1.5cqw; color: #fff; text-transform: uppercase; font-weight: 500; }
.banco-cop-num { font-family: var(--font-titoli); color: #9B7BFF; font-size: 1.8cqw; letter-spacing: .5cqw; text-transform: uppercase; }
.banco-url { color: #a8a8a8; font-size: 2.2cqw; }
.banco-qr { width: 26cqw; background: #fff; padding: 1.2cqw; border-radius: 1cqw; flex: 0 0 auto; }
.banco-qr svg { width: 100%; height: auto; display: block; }
.banco-regia { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; min-height: 10px; }
.banco-regia-voti { font-size: 14px; color: #c4c4c4; flex: 1; min-width: 200px; }
.banco-demo-form { display: flex; gap: 8px; flex: 1; min-width: 0; flex-wrap: wrap; }
.banco-demo-form input { flex: 1; min-width: 240px; background: #171b1f; border: 1px solid #2c3136; color: #fff; border-radius: 6px; padding: 9px 12px; font: inherit; }
.banco-demo-form .banco-btn.principale { min-width: 0; }
.banco-regia-voti b { color: #fff; }
.banco-scelte { display: flex; flex-wrap: wrap; gap: 6px; }
.banco-chip-btn { background: #171b1f; border: 1px solid #2c3136; color: #cfcfcf; border-radius: 20px; padding: 6px 12px; font: inherit; font-size: 13px; cursor: pointer; white-space: nowrap; max-width: 320px; overflow: hidden; text-overflow: ellipsis; }
.banco-chip-btn:hover { background: #22272c; color: #fff; }
.banco-chip-btn.attivo { border-color: var(--viola); background: rgba(116, 72, 255, .2); color: #fff; }
.banco-gobbo-avviso { display: flex; gap: 14px; align-items: center; background: rgba(116, 72, 255, .14); border: 1px solid rgba(155, 123, 255, .4); border-radius: 8px; padding: 10px 12px; max-width: 960px; }
.banco-gobbo-avviso .piccolo { color: #c4c4c4; margin-top: 2px; }
.banco-gobbo-qr { width: 96px; flex: 0 0 auto; background: #fff; padding: 4px; border-radius: 4px; }
.banco-gobbo-qr svg { width: 100%; height: auto; display: block; }
.banco-gobbo-link { display: flex; gap: 8px; align-items: center; margin-top: 6px; flex-wrap: wrap; }
.banco-gobbo-link code { font-size: 12.5px; color: #ddd; word-break: break-all; }
.banco-gobbo-testo { flex: 1; min-width: 0; }

/* lato: passo corrente, materiali, note */
.banco-box { background: #171b1f; border-radius: 8px; padding: 12px 14px; }
.banco-passo { border-left: 4px solid var(--viola); }
.banco-passo .banco-etichetta { color: #c8b6ff; }
.banco-cosa { color: #a8a8a8; font-size: 13.5px; margin-bottom: 6px; }
.banco-punti { margin: 0; padding-left: 18px; font-size: 15px; line-height: 1.4; color: #fff; }
.banco-punti li { margin: 3px 0; }
.banco-frase { margin: 6px 0; padding-left: 10px; border-left: 3px solid #4a3a8a; color: #d9d9d9; font-size: 14px; line-height: 1.4; }
.banco-segnali { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.banco-segnali span { font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 4px; background: rgba(155, 123, 255, .16); color: #c8b6ff; }
.banco-poi { margin-top: 8px; color: #8f8f8f; font-size: 13px; } .banco-poi b { color: #e6e6e6; font-weight: 600; }
.banco-materiale { display: flex; gap: 10px; align-items: flex-start; padding: 7px 0; border-top: 1px solid #262b30; }
.banco-materiale:first-of-type { border-top: none; }
.banco-materiale .materiale-icona { color: #b9a3ff; margin-top: 2px; }
.banco-materiale .piccolo { color: #a8a8a8; }
.banco-prompt { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; background: #0E1113; border-radius: 6px; padding: 6px 8px; margin-top: 4px; white-space: pre-wrap; max-height: 130px; overflow-y: auto; color: #d9d9d9; }
.banco-chat-bottoni { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.banco-note { margin: 0; padding-left: 18px; font-size: 13.5px; color: #d9d9d9; } .banco-note li { margin: 3px 0; }
.banco-azione { font-size: 13.5px; color: #d9d9d9; line-height: 1.45; }
.banco-messaggio { background: rgba(116, 72, 255, .16); color: #ddd2ff; font-size: 14px; font-weight: 600; }
.banco-messaggio .banco-etichetta { color: var(--ambra); }

/* comandi di riserva in fondo */
.banco-comandi { display: flex; justify-content: center; gap: 8px; padding: 10px 18px 14px; border-top: 1px solid #262b30; flex-wrap: wrap; }
.banco-btn {
  display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-titoli); font-weight: 500; font-size: 14px; letter-spacing: 1.2px; text-transform: uppercase;
  background: #171b1f; color: #ececec; border: 1px solid #2c3136; border-radius: 4px; padding: 10px 16px; cursor: pointer; justify-content: center;
}
.banco-btn:hover:not(:disabled) { background: #22272c; }
.banco-btn:disabled { opacity: .35; cursor: default; }
.banco-btn svg { width: 18px; height: 18px; }
.banco-btn.principale { background: var(--viola); color: #fff; border-color: var(--viola); min-width: 220px; font-size: 16px; }
.banco-btn.principale:hover:not(:disabled) { background: var(--viola-forte); }
.banco-btn.principale small { font-family: var(--font-testo); text-transform: none; letter-spacing: 0; opacity: .8; }
.banco-comandi .banco-btn.principale { order: 0; }

/* foglio in diretta al posto dell'anteprima */
.banco-sala > .foglio-finestra { flex: 1; min-height: 60vh; }
.foglio-barra .banco-tasto.principale { background: #fff; color: #107c41; border-color: #fff; font-weight: 700; }
.foglio-risposta[hidden] { display: none; }
.foglio-risposta { display: flex; flex-direction: column; gap: 6px; padding: 10px 14px; background: #e9f3ec; border-bottom: 1px solid #cfe3d5; }
.foglio-msg { max-width: 80%; padding: 7px 11px; border-radius: 10px; font-size: 14px; line-height: 1.4; white-space: pre-line; }
.foglio-msg.io { align-self: flex-end; background: #dcf8c6; color: #1b3a22; border-bottom-right-radius: 2px; }
.foglio-msg.lui { align-self: flex-start; background: #fff; color: var(--testo); border-bottom-left-radius: 2px; box-shadow: 0 1px 1px rgba(0, 0, 0, .08); }
table.foglio td.cambiata { animation: foglio-cambiata 2.4s ease; }
.foglio-msg.proposta-banco { max-width: 100%; }
.proposta-banco > b { display: block; margin-bottom: 4px; }
.proposta-banco ol { margin: 4px 0 8px; padding-left: 20px; }
.proposta-msg-banco { background: #f3f7f4; border-left: 3px solid #107c41; border-radius: 6px; padding: 6px 10px; margin: 4px 0; font-size: 13.5px; }
.proposta-msg-banco b { display: block; color: #107c41; font-size: 12px; }
.proposta-azioni { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 8px; font-weight: 700; color: #b26a00; }
.proposta-azioni .banco-tasto { color: var(--testo); border-color: var(--bordo); background: #fff; }
@keyframes foglio-cambiata { 0%, 60% { background: #ffe58a; } 100% { background: #fff; } }
.banco-esempi { display: flex; flex-direction: column; gap: 8px; }
.banco-esempi .btn { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; padding: 10px 14px; }
.banco-esempi .btn span { font-weight: 400; font-size: 13px; color: var(--testo-2); }

@media (max-width: 1000px) {
  .banco-corpo { grid-template-columns: 1fr; overflow-y: auto; }
  .banco-sala, .banco-lato { overflow: visible; }
  .banco-giornata, .banco-totale { display: none; }
  .banco-btn span { display: none; }
}
