/* Scelta del docente e introduzione del percorso. */
.professor-page { margin: 0; color: #183b35; background: #f5f8f6; font: 1rem/1.6 Inter, system-ui, sans-serif; }
.professor-page * { box-sizing: border-box; }
.professor-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; padding: 22px max(24px, calc((100% - 1120px)/2)); border-bottom: 1px solid #dce7e1; background: #fff; }
.professor-header nav { display: flex; flex-wrap: wrap; gap: 20px; }
.professor-page a { color: #006a4b; text-underline-offset: 4px; }
.professor-header a, .professor-back { display: inline-flex; align-items: center; min-height: 44px; }
.professor-main { max-width: 1120px; margin: 0 auto; padding: 48px 24px 80px; }
.professor-eyebrow { margin: 12px 0; font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #526c62; }
.professor-page h1 { font-size: clamp(2.2rem, 6vw, 3.5rem); line-height: 1.15; margin: 12px 0; letter-spacing: -.04em; }
.professor-intro { font-size: 1.15rem; max-width: 65ch; margin-bottom: 32px; }
.professor-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 24px; }
.professor-card, .professor-topics li, .professor-note { border: 1px solid #dce7e1; border-radius: 20px; background: #fff; padding: clamp(20px, 4vw, 32px); }
.professor-card { display: flex; flex-direction: column; align-items: flex-start; }
.professor-card h2 { font-size: 1.8rem; margin: 0; }
.professor-card p { max-width: 55ch; }
.professor-page .professor-button { display: inline-flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 48px; margin-top: auto; padding: 12px 20px; border-radius: 12px; background: #006a4b; color: #fff; text-decoration: none; font-weight: 700; }
.professor-page a:focus-visible, .professor-switch:focus-visible { outline: 3px solid #b77711; outline-offset: 4px; }
.professor-topics { display: grid; gap: 16px; padding: 0; list-style: none; counter-reset: topics; }
.professor-topics li { counter-increment: topics; }
.professor-topics h3 { margin: 0 0 8px; font-size: 1.15rem; }
.professor-topics h3::before { content: counter(topics, decimal-leading-zero) " · "; color: #006a4b; }
.professor-topics p { margin: 0; }
.professor-note { margin-top: 32px; }
.professor-note h2 { margin-top: 0; font-size: 1.15rem; }
.professor-switch { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 0; color: var(--ink, #183b35); }
html[data-theme="dark"] .professor-page { color: #e5eee9; background: #0c1915; }
html[data-theme="dark"] .professor-header, html[data-theme="dark"] .professor-card, html[data-theme="dark"] .professor-topics li, html[data-theme="dark"] .professor-note { background: #15271f; border-color: #344c40; }
html[data-theme="dark"] .professor-page a, html[data-theme="dark"] .professor-eyebrow, html[data-theme="dark"] .professor-topics h3::before { color: #8de2b8; }
html[data-theme="dark"] .professor-page .professor-button { color: #fff; }

/* Il docente resta un controllo del corso, nella grafica esistente. */
.systems-professor { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 12px 0 16px; color: var(--muted, #64748b); font: 500 .9rem/1.5 Inter, system-ui, sans-serif; }
.systems-professor select { min-height: 44px; min-width: 160px; padding: 8px 32px 8px 14px; color: var(--ink, #1e293b); background: var(--surface, #fff); border: 1px solid var(--line, #dce4e0); border-radius: 12px; font: inherit; }
.systems-professor select:focus-visible { outline: 3px solid #00976a; outline-offset: 3px; }
.systems-theory-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 20px; }
.systems-theory-grid .workspace-action { min-width: 0; }
.systems-theory-grid h3 { margin-top: 0; }
.systems-theory-grid li { margin: 10px 0; }
.systems-theory-grid a { color: inherit; text-underline-offset: 3px; }
