/* Elementi aggiuntivi del questionario interattivo (si carica dopo stile-questionari-continuita-standard.css) */
.qi-punteggio { position: sticky; top: 0; z-index: 20; background: #f0fdf4; border: 2px solid #009966; border-radius: 10px; padding: 8px 12px; margin: 0 0 18px; display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: space-between; box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.qi-punteggio .qi-tot { font-weight: 700; font-size: 1.1rem; color: #1b5e20; }
.qi-chips { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; font-size: .9rem; }
.qi-chip { display: inline-block; min-width: 2.2em; text-align: center; padding: 2px 6px; border-radius: 12px; background: #fff; border: 1.5px solid #b0bec5; font-weight: 700; color: #607d8b; }
.qi-chip.alto { background: #e8f5e9; border-color: #2e7d32; color: #1b5e20; }
.qi-chip.medio { background: #fff8e1; border-color: #f9a825; color: #8d6e00; }
.qi-chip.basso { background: #ffebee; border-color: #c62828; color: #b71c1c; }
.qi-regole { background: #e8f1fb; border-left: 5px solid #1976d2; border-radius: 6px; padding: 10px 14px; margin: 0 0 20px; font-size: 1rem; }
.qi-regole ul { margin: 6px 0 0; padding-left: 22px; }
.qi-tipo { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; background: #e8f5e9; color: #1b5e20; border-radius: 12px; padding: 2px 10px; margin: 0 0 8px; }
.qi-panel { margin-top: 12px; padding: 12px; background: #fafcfa; border: 1px solid #dbe4dc; border-radius: 8px; }
.qi-panel canvas { width: 100%; max-width: 640px; height: auto; display: block; margin: 0 auto 10px; border: 1px solid #dbe4dc; border-radius: 6px; background: #fff; }
.qi-panel input[type="number"], .qi-panel input[type="text"], .qi-panel select { font-size: 1rem; padding: 6px 8px; border: 1.5px solid #9bb5a3; border-radius: 6px; max-width: 100%; }
.qi-panel input[type="range"] { width: 100%; max-width: 420px; }
.qi-act { background: #00754d; color: #fff; border: 0; border-radius: 6px; padding: 9px 16px; font-size: 1rem; font-weight: 600; cursor: pointer; margin: 6px 6px 0 0; }
.qi-act:hover:not(:disabled) { background: #005c3b; }
.qi-act:disabled { background: #b0bec5; cursor: not-allowed; }
.qi-act.sec { background: #fff; color: #00754d; border: 2px solid #00754d; }
.qi-riga { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; padding: 8px 10px; margin: 6px 0; border: 1.5px solid #dbe4dc; border-radius: 8px; background: #fff; }
.qi-riga > span.qi-dom { flex: 1 1 260px; }
.qi-riga.giusta { border-color: #2e7d32; background: #e8f5e9; }
.qi-riga.sbagliata { border-color: #c62828; background: #ffebee; }
.qi-riga label { margin-right: 8px; white-space: nowrap; }
.qi-feedback { display: none; margin-top: 12px; padding: 10px 14px; border-radius: 8px; font-size: 1.02rem; }
.qi-feedback.ok { background: #e8f5e9; border-left: 5px solid #2e7d32; color: #1b5e20; }
.qi-feedback.ko { background: #fff3e0; border-left: 5px solid #e65100; color: #5d2a00; }
.qi-steps { display: flex; flex-direction: column; gap: 8px; margin: 8px 0; }
.qi-step { text-align: left; font-size: 1rem; padding: 10px 12px; border: 2px solid #9bb5a3; background: #fff; border-radius: 8px; cursor: pointer; color: #2c3e50; font-family: inherit; }
.qi-step:hover:not(:disabled) { border-color: #009966; background: #f0fdf4; }
.qi-step.giusta { border-color: #2e7d32; background: #e8f5e9; }
.qi-step.sbagliata { border-color: #c62828; background: #ffebee; text-decoration: line-through; color: #595959; }
.qi-tab { display: none; border-collapse: collapse; margin: 10px 0; font-size: .95rem; }
.qi-tab th, .qi-tab td { border: 1px solid #b7c9bd; padding: 4px 10px; text-align: center; }
.qi-tab th { background: #e8f5e9; }
.qi-nota-sol { font-size: .9rem; color: #666; margin: 4px 0 0; }
#qi-finale { display: none; background: #f0fdf4; border: 2px solid #009966; border-radius: 10px; padding: 14px 18px; margin: 10px 0 24px; font-size: 1.1rem; }
@media print { .qi-punteggio, .qi-panel, .qi-feedback, #qi-finale { display: none !important; } }
