/* Il percorso Lippiello usa struttura, componenti e colori del sito. */
.systems-course [hidden] { display: none !important; }
.systems-source-grid, .systems-formula-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,300px),1fr)); gap: 20px; }
.systems-originals { margin-top: 40px; }
.systems-originals h3, .systems-lesson h3 { margin-top: 26px; }
.systems-originals .workspace-action h3 { margin-top: 0; }
.systems-sources { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0; }
.systems-sources a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 13px; border: 1px solid var(--line,#dce4e0); border-radius: 12px; font: 500 .83rem/1.5 Inter,system-ui,sans-serif; color: inherit; text-decoration: none; }
.systems-muted { color: var(--muted,#64748b); font: .88rem/1.65 Inter,system-ui,sans-serif; }
.systems-lesson { padding: clamp(20px,4vw,42px); margin: 24px 0; border: 1px solid var(--line,#dce4e0); border-radius: 20px; background: var(--surface,#fff); }
.systems-theory-card > summary { cursor: pointer; min-height: 60px; padding: 16px; }
.systems-theory-card > summary h2 { display: inline; margin: 0; font-size: 1.15rem; }
.systems-theory-card .system-lesson-content { padding: 0 20px 20px; }
.systems-videos { margin: 24px 0; padding: 0; border: 1px solid var(--line,#dce4e0); border-radius: 16px; overflow: hidden; }
.systems-videos > summary { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; min-height: 52px; padding: 16px 20px; font: 650 .94rem/1.5 Inter,system-ui,sans-serif; cursor: pointer; }
.systems-videos > summary::before { content: '▶'; margin-right: 6px; font-size: .75rem; }
.systems-videos > summary span { margin-left: auto; color: var(--muted,#64748b); font-size: .8rem; }
.systems-video-list { display: grid; gap: 28px; padding: 20px; border-top: 1px solid var(--line,#dce4e0); }
.systems-video h4 { margin: 0 0 8px; font: 650 1.05rem/1.5 Inter,system-ui,sans-serif; }
.systems-video video { display: block; width: 100%; max-width: 960px; aspect-ratio: 4/3; margin: 14px auto; border-radius: 10px; background: #fff; }
.systems-player-controls { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; font: .85rem/1.5 Inter,system-ui,sans-serif; }
.systems-player-controls button, .systems-player-controls select { min-height: 44px; border: 1px solid var(--line,#dce4e0); border-radius: 10px; padding: 8px 12px; color: inherit; background: var(--surface,#fff); font: inherit; }
.systems-player-controls a { min-height: 44px; display: inline-flex; align-items: center; color: inherit; }
.systems-oral-map { padding-left: 0; list-style: none; }
.systems-oral-map .chapter-link { display: flex; align-items: center; gap: 16px; height: 100%; }
.systems-oral-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; margin: 24px 0 0; }
.systems-oral-actions label { display: flex; align-items: center; gap: 10px; min-height: 44px; font: .9rem/1.5 Inter,system-ui,sans-serif; }
.systems-field { display: grid; gap: 8px; margin: 18px 0; font: 600 .9rem/1.5 Inter,system-ui,sans-serif; }
.systems-field input, .systems-field select { width: 100%; min-width: 0; min-height: 48px; padding: 10px 14px; border: 1px solid var(--line,#dce4e0); border-radius: 12px; font: inherit; color: inherit; background: var(--surface,#fff); }
.systems-exercise-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 20px 0; }
.systems-options { display: grid; gap: 10px; padding: 0; border: 0; }
.systems-options legend { margin-bottom: 12px; }
.systems-options label { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 12px 16px; border: 1px solid var(--line,#dce4e0); border-radius: 12px; cursor: pointer; }
#exercise-work { display: block; margin: 24px 0; }
#exercise-explanation { padding: 16px 20px; border-left: 3px solid #00976a; background: rgba(0,151,106,.05); border-radius: 8px; }
.systems-exam-year { display: block; margin: 16px 0; padding: 20px; }
.systems-exam-year > summary { display: flex; justify-content: space-between; gap: 20px; align-items: center; min-height: 44px; cursor: pointer; }
.systems-exam-year li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin: 14px 0; }
.systems-exam-year li span { color: var(--muted,#64748b); font-size: .85rem; }
.systems-exam-year a, .systems-source-grid a { min-height: 44px; display: inline-flex; align-items: center; }
.systems-formula { overflow-x: auto; max-width: 100%; }
#theory-selection h2 { margin: 22px 0; }
#systems-plan-calendar li { padding: 10px 0; }
.systems-course[data-professor="lippiello"] .workspace-content { min-width: 0; }
.systems-course[data-professor="lippiello"] .workspace-content a { overflow-wrap: anywhere; }
@media (max-width: 640px) { .systems-video-list { padding: 12px; } .systems-exam-year ul { padding-left: 16px; } .systems-professor { width: 100%; } }
@media print { .systems-videos, .systems-professor, #exercise-work, .systems-oral-actions { display: none !important; } }
.systems-course[data-professor="lippiello"] .systems-theory-card > summary { display: block !important; padding: 20px 24px; }
.systems-course[data-professor="lippiello"] .systems-theory-card > summary h2 { display: block; width: auto; max-width: none; margin: 0; line-height: 1.5; overflow-wrap: normal; }
.systems-course[data-professor="lippiello"] .study-secondary { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 9px 16px; border: 1px solid var(--line,#dce4e0); border-radius: 12px; color: var(--ink,#1e293b); background: var(--surface,#fff); text-decoration: none; font: 600 .88rem/1.5 Inter,system-ui,sans-serif; cursor: pointer; }
.systems-course[data-professor="lippiello"] .systems-theory-card > summary { display: flex !important; align-items: center; gap: 16px; }
.systems-course[data-professor="lippiello"] .systems-theory-card > summary h2 { flex: 1; min-width: 0; }
.systems-theory-card > summary::after { content: '＋'; flex: 0 0 auto; font-size: 1.2rem; }
.systems-theory-card[open] > summary::after { content: '−'; }
