.manage-panel { max-width: 1120px; margin: 0 auto; padding: clamp(22px, 4vw, 44px); border: 1px solid var(--line); border-radius: 30px; background: white; box-shadow: 0 18px 45px rgb(18 60 87 / 9%); }
.manage-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 18px; }
.manage-top h2 { margin: 6px 0 0; color: var(--navy); font-size: clamp(1.6rem, 3.4vw, 2.4rem); letter-spacing: -.04em; }
.manage-actions { display: flex; gap: 8px; }
.manage-actions button { padding: 10px 15px; border: 1px solid var(--line); border-radius: 11px; color: var(--navy); background: #fff; cursor: pointer; font-size: .8rem; font-weight: 800; }
.manage-actions button:disabled { opacity: .5; }
.global-message { min-height: 1.2em; margin: 12px 0 0; color: var(--navy); font-size: .84rem; font-weight: 700; }
.contribution-summary > div.hot { border-color: #f3b35b; background: #fff3e0; }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 18px; padding: 6px; border-radius: 16px; background: #eef4f6; }
.tabs button { flex: 1 1 auto; padding: 11px 14px; border: 0; border-radius: 11px; color: var(--navy); background: transparent; cursor: pointer; font: inherit; font-size: .84rem; font-weight: 800; }
.tabs button[aria-selected="true"] { background: #fff; box-shadow: 0 3px 10px rgb(18 60 87 / 10%); }
.tabs .count:not(:empty) { display: inline-grid; min-width: 22px; height: 22px; margin-left: 6px; padding: 0 6px; place-items: center; border-radius: 99px; color: white; background: #bb0c50; font-size: .72rem; }
.panel-help { margin: 0 0 14px; color: var(--muted); font-size: .86rem; line-height: 1.5; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.filters button { padding: 8px 13px; border: 1px solid var(--line); border-radius: 99px; color: var(--navy); background: #fff; cursor: pointer; font: inherit; font-size: .78rem; font-weight: 800; }
.filters button[aria-pressed="true"] { border-color: var(--navy); color: white; background: var(--navy); }
.review-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.review-card { padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: #fafcfc; overflow-wrap: anywhere; }
.review-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.review-card h4 { margin: 0 0 4px; color: var(--navy); font-size: 1.02rem; }
.review-card small { color: var(--muted); font-size: .72rem; }
.review-card p { margin: 10px 0 0; color: var(--ink); font-size: .84rem; line-height: 1.45; }
.review-card p strong { color: var(--navy); }
.state { flex: 0 0 auto; padding: 4px 9px; border-radius: 99px; font-size: .7rem; font-weight: 900; }
.state-ricevuta, .state-in_valutazione { color: #8a4b00; background: #fff3e0; }
.state-assegnata, .state-approvata { color: #095d33; background: #e4f5e9; }
.state-archiviata { color: #6b7c88; background: #eef1f3; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.chips span { padding: 5px 9px; border-radius: 99px; color: var(--navy); background: #e8f1f4; font-size: .74rem; font-weight: 700; }
.review-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.act { padding: 9px 13px; border: 1px solid transparent; border-radius: 10px; cursor: pointer; font: inherit; font-size: .78rem; font-weight: 850; }
.act.ok { color: white; background: var(--green); }
.act.no { color: #9b1930; border-color: #e6b9c2; background: #fff; }
.act.neutral { color: var(--navy); border-color: var(--line); background: #fff; }
.act:disabled { opacity: .5; cursor: wait; }
.empty { grid-column: 1 / -1; margin: 0; padding: 22px; border: 2px dashed #d3e0e4; border-radius: 14px; color: var(--muted); text-align: center; font-weight: 700; }
.school-board { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.school-card { padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: #f5f7f8; }
.school-card.offered { border-color: #f3c98f; background: #fff7ec; }
.school-card.accepted { border-color: #b9e3c7; background: #eef8f1; }
.school-card.visited { border-color: var(--green); background: #e4f5e9; }
.school-card h4 { margin: 0; color: var(--navy); font-size: .95rem; }
.school-card small { color: var(--muted); font-size: .72rem; }
.school-status { margin: 8px 0 0; color: var(--navy); font-size: .78rem; font-weight: 800; }
.school-card ul { margin: 8px 0 0; padding-left: 18px; color: var(--muted); font-size: .78rem; }
.school-card li.accepted { color: #095d33; font-weight: 800; }
.sub-title { margin: 26px 0 12px; color: var(--navy); font-size: 1rem; }
@media (max-width: 850px) { .review-list { grid-template-columns: 1fr; } .school-board { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 650px) { .manage-top { align-items: stretch; flex-direction: column; } .school-board { grid-template-columns: 1fr; } .tabs button { flex: 1 1 45%; } }
.export-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; padding: 14px 16px; border: 1px solid #b9e3c7; border-radius: 14px; background: #eef8f1; }
.export-bar .panel-help { flex: 1 1 320px; margin: 0; }
.review-card.pending { border-color: #f3c98f; background: #fff7ec; }
.manage-panel .contribution-summary { grid-template-columns: repeat(6, minmax(0, 1fr)); }
@media (max-width: 1000px) { .manage-panel .contribution-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 850px) { .manage-panel .contribution-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 650px) { .manage-panel .contribution-summary { grid-template-columns: 1fr; } }
.appointment-form { margin-top: 16px; }
.appointment-form .appointment-note { grid-column: 1 / -1; }
.appointment-buttons { display: flex; flex-wrap: wrap; gap: 8px; grid-column: 1 / -1; }
.appointment-form .appointment-buttons button { grid-column: auto; }
.appointment-form .appointment-buttons .act.neutral { padding: 11px 18px; border: 1px solid var(--line); border-radius: 11px; color: var(--navy); background: #fff; }
.month-title { margin: 20px 0 10px; color: var(--navy); font-size: .9rem; text-transform: capitalize; }
#appointmentList .month-title:first-child { margin-top: 4px; }
.review-card.appointment h4::first-letter { text-transform: uppercase; }
.type-tag { display: inline-block; margin-top: 8px; padding: 4px 9px; border-radius: 99px; font-size: .72rem; font-weight: 850; }
.type-aule { color: #0d4a6b; background: #dcecf5; }
.type-stand { color: #5a2a82; background: #ece2f6; }
.school-card .school-dates { padding-left: 0; list-style: none; color: var(--navy); }
.school-card .school-dates li { margin-top: 4px; }
.school-nodate { margin: 8px 0 0; color: var(--muted); font-size: .76rem; font-style: italic; }
#activityList { display: block; }
.teacher-title { text-transform: none; }
.school-confirm { display: grid; gap: 8px; margin-top: 12px; }
.school-confirm-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.school-confirm-row strong { flex: 1 1 160px; color: var(--navy); font-size: .82rem; }
.school-confirm-row input { padding: 8px 10px; border: 1px solid #b9cbd1; border-radius: 9px; font: inherit; font-size: .8rem; }
.school-confirm-row small { flex: 1 1 100%; }

/* Gestione: accesso compatto, sezioni riconoscibili e comandi leggibili. */
.gestione-page { --manage-muted: #4b6170; --manage-border: #b8cbd2; background: #f1f5f6; }
.gestione-page .orientation-main { width:min(1440px,calc(100% - 40px)); max-width:1440px; padding-bottom:48px; }
.gestione-page .orientation-hero { min-height: 0; padding: clamp(24px, 4vw, 44px); border-radius: 0 0 26px 26px; background: linear-gradient(115deg, #123c57, #1c545c); }
.gestione-page .orientation-hero h1 { margin: 14px 0 12px; font-size: clamp(2rem, 4.5vw, 3.5rem); line-height: 1.1; letter-spacing: -.04em; }
.gestione-page .orientation-hero > p:not(.eyebrow) { max-width: 780px; margin: 0; color: #edf5f7; font-size: 1rem; line-height: 1.6; }
.gestione-page .orientation-hero .eyebrow { color: #123c57; background: #d7f79a; font-size: .875rem; letter-spacing: 0; text-transform: none; }
.gestione-page:has(#workspacePanel:not([hidden])) .orientation-hero { display: none; }
.manage-hero-topics { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.manage-hero-topics span { padding: 7px 13px; border: 1px solid #6f969e; border-radius: 9px; color: #fff; font-size: .875rem; }
.manage-skip { position: absolute; left: 16px; top: 8px; z-index: 20; padding: 12px 18px; transform: translateY(-160%); color: #fff; background: #123c57; border-radius: 8px; }
.manage-skip:focus { transform: none; }
.gestione-page .protected-shell { padding: 28px clamp(0px, 2vw, 24px) 0; }
.gestione-page .access-panel { max-width: 1060px; display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: center; padding: clamp(24px, 4vw, 40px); text-align: left; border-radius: 22px; border-color: #ccd9de; box-shadow: 0 12px 34px #123c5709; }
.access-copy { min-width: 0; }
.gestione-page .lock-symbol { width: 48px; height: 48px; margin: 0 0 16px; border-radius: 14px; color: #006b63; background: #e3f2ee; }
.lock-symbol svg { width: 27px; height: 27px; }
.gestione-page .access-panel .step, .manage-top .step { font-size: .875rem; letter-spacing: 0; text-transform: none; color: #006b63; }
.gestione-page .access-panel h2 { margin: 8px 0 10px; font-size: clamp(1.5rem, 2.5vw, 2rem); line-height: 1.2; }
.access-copy > p:last-child { margin: 0; color: var(--manage-muted); font-size: 1rem; line-height: 1.6; }
.gestione-page .password-form { width: 100%; max-width: none; margin: 0; padding: 24px; border: 1px solid #d5e2e5; border-radius: 16px; background: #f5f9fa; }
.gestione-page .password-form label { font-size: 1rem; font-weight: 700; }
.gestione-page .password-row { grid-template-columns: minmax(0, 1fr); gap: 12px; }
.gestione-page .password-row input { background: #fff; border-color: #8aa7b4; }
.gestione-page .password-row button { min-height: 50px; font-size: 1rem; border-radius: 11px; }
.gestione-page .access-message { font-size: .875rem; line-height: 1.5; }
.manage-panel { max-width: none; padding: clamp(16px, 3vw, 32px); border-radius: 22px; border-color: #ccd9de; box-shadow: 0 12px 34px #123c5709; }
.manage-top { align-items: center; padding-bottom: 18px; border-bottom: 1px solid #d9e2e6; }
.manage-top h2 { font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.2; letter-spacing: -.025em; }
.manage-actions { margin-top: 0; flex-wrap: wrap; }
.manage-actions button { min-height: 44px; padding: 10px 16px; border: 1px solid var(--manage-border); font-size: .9375rem; font-weight: 700; }
.manage-actions #refreshButton { color: #fff; background: #123c57; border-color: #123c57; }
.manage-actions .logout-button { color: #123c57; background: #fff; }
.manage-tools-link { display:inline-flex; align-items:center; min-height:44px; padding:10px 14px; border:1px solid #a5bdc8; border-radius:10px; color:#123c57; background:#fff; font-size:.9375rem; font-weight:700; text-decoration:none; }
.management-tools { margin-top:32px; padding:22px; border:1px solid #bdcfd7; border-radius:16px; background:#fff; }
.management-tools > summary { min-height:48px; padding:8px 0; color:#123c57; font-size:1.1875rem; font-weight:750; cursor:pointer; }
.management-tools[open] > summary { margin-bottom:18px; }
.global-message { font-size: .9375rem; line-height: 1.5; }
.gestione-page #activityMessage { font-size: .9375rem; }
.global-message:empty { min-height: 0; margin: 0; }
.manage-overview { margin: 18px 0; border: 1px solid #ccd9de; border-radius: 14px; background: #f7fafb; }
.manage-overview > summary { min-height: 52px; padding: 14px 18px; color: #123c57; cursor: pointer; font-size: 1rem; font-weight: 700; }
.manage-overview > summary span { display: inline; margin-left: 12px; color: var(--manage-muted); font-size: .875rem; font-weight: 400; }
.manage-overview .contribution-summary { margin: 0; padding: 0 16px 16px; }
.manage-panel .contribution-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 22px 0; }
.manage-panel .contribution-summary > div { padding: 18px 20px; border-radius: 14px; border-color: #cfdee2; background: #f4f8f9; }
.manage-panel .contribution-summary > div.hot { border-color: #dfb06b; background: #fff7e8; }
.manage-panel .contribution-summary strong { font-size: 2rem; line-height: 1.1; letter-spacing: -.035em; }
.manage-panel .contribution-summary span { font-size: .9375rem; color: var(--manage-muted); line-height: 1.4; }
.tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; padding: 0; margin: 0 0 24px; background: none; border-radius: 0; }
.tabs button { display: flex; align-items: center; gap: 11px; min-width: 0; min-height: 66px; padding: 13px 15px; border: 1px solid var(--manage-border); border-radius: 12px; background: #f4f8f9; text-align: left; font-size: .9375rem; font-weight: 700; line-height: 1.35; }
.tabs button:hover { background: #e7f1f3; border-color: #6a929f; }
.tabs button[aria-selected="true"] { color: #fff; background: #123c57; border-color: #123c57; box-shadow: inset 4px 0 #bce77e; }
.tab-icon { flex: 0 0 23px; width: 23px; height: 23px; }
.tab-label { min-width: 0; overflow-wrap: anywhere; }
.tabs .count:not(:empty) { height: 24px; min-width: 24px; margin-left: 4px; color: #fff; background: #a00a40; font-size: .875rem; }
.tabs button[aria-selected="true"] .count { color: #123c57; background: #d7f79a; }
.tab-panel { scroll-margin-top: 20px; }
.panel-title { margin: 0 0 10px; color: #123c57; font-size: 1.5rem; line-height: 1.25; letter-spacing: -.025em; }
.panel-help { max-width: 85ch; font-size: 1rem; line-height: 1.65; color: var(--manage-muted); margin-bottom: 18px; }
.panel-help b { color: #123c57; }
.filters { gap: 9px; margin: 18px 0; }
.filters button { min-height: 44px; padding: 9px 16px; border-color: var(--manage-border); border-radius: 10px; font-size: .9375rem; font-weight: 700; }
.review-list { gap: 16px; }
.review-card { padding: 22px; border-radius: 16px; background: #fff; border-color: #ccd9de; box-shadow: 0 3px 12px #123c5705; }
.review-head { flex-wrap: wrap; gap: 8px; }
.review-card h4 { font-size: 1.1875rem; line-height: 1.35; }
.review-card small, .school-card small { font-size: .875rem; color: var(--manage-muted); line-height: 1.5; }
.review-card p { font-size: 1rem; line-height: 1.6; }
.state { max-width: 100%; padding: 5px 10px; white-space: normal; font-size: .875rem; font-weight: 750; }
.state-archiviata { color: #4b6170; background: #edf1f3; }
.chips span { font-size: .875rem; }
.review-actions { padding-top: 16px; border-top: 1px solid #e1e9ec; margin-top: 18px; }
.act { min-height: 44px; padding: 10px 15px; font-size: .9375rem; font-weight: 700; }
.act.ok { background: #006733; }
.act.neutral { border-color: var(--manage-border); }
.act.no { border-color: #cd8d9c; color: #94172e; }
.act:hover:not(:disabled), .manage-actions button:hover:not(:disabled) { filter: brightness(.95); }
.empty { padding: 28px 20px; color: var(--manage-muted); border-color: #b8cbd2; background: #f8fafb; font-size: 1rem; }
.school-board { gap: 14px; }
.school-card { padding: 20px; border-color: #c6d5db; background: #f6f9fa; }
.school-card h4 { font-size: 1.1875rem; line-height: 1.3; }
.school-status, .school-card ul { font-size: .9375rem; line-height: 1.6; }
.school-card ul, .school-nodate { color: var(--manage-muted); }
.school-nodate { font-size: .875rem; }
.sub-title, .month-title { font-size: 1.125rem; line-height: 1.4; }
.export-bar { gap: 18px; padding: 20px; border-color: #a9cbb7; background: #f0f8f3; }
.export-bar .act { flex-shrink: 0; }
.gestione-page .activity-form { padding: 22px; gap: 18px; border: 1px solid #ccd9de; border-radius: 16px; background: #f4f8f9; }
.gestione-page .activity-form label { min-width: 0; gap: 8px; font-size: .9375rem; font-weight: 700; }
.gestione-page .activity-form input:not([type="checkbox"]), .gestione-page .activity-form select, .school-confirm-row input { min-width: 0; max-width: 100%; min-height: 46px; padding: 10px 12px; border-color: #8aa7b4; font-size: 1rem; }
.gestione-page .activity-form button { min-height: 46px; font-size: 1rem; background: #006733; }
.gestione-page .activity-form button.act.neutral { color: #123c57; background: #fff; border: 1px solid var(--manage-border); }
.type-tag { font-size: .875rem; }
.school-confirm-row { padding: 14px; gap: 10px; }
.school-confirm-row strong { font-size: .9375rem; }
.gestione-page .site-footer { font-size: .875rem; }
.gestione-page :is(button, input, select, textarea, summary, a):focus-visible { outline: 3px solid #006b63; outline-offset: 3px; }
.tabs button[aria-selected="true"]:focus-visible { outline-color: #a00a40; }
@media (max-width: 1000px) {
  .tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .school-board { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .gestione-page .access-panel { grid-template-columns: 1fr; gap: 24px; }
  .manage-panel .contribution-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tabs button { min-height: 64px; padding: 12px; gap: 8px; }
}
@media (max-width: 650px) {
  .gestione-page .orientation-hero { padding: 24px 20px; }
  .gestione-page .protected-shell { padding-top: 20px; }
  .gestione-page .access-panel { padding: 24px 20px; }
  .gestione-page .password-form { padding: 18px; }
  .manage-hero-topics { gap: 7px; }
  .manage-hero-topics span { padding: 6px 9px; }
  .manage-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .manage-tools-link { grid-column:1/-1; justify-content:center; }
  .gestione-page .orientation-main { width:calc(100% - 24px); }
  .management-tools { padding:16px; }
  .manage-actions button { padding: 10px 12px; }
  .manage-panel .contribution-summary > div { padding: 15px 12px; }
  .manage-panel .contribution-summary span { font-size: .875rem; }
  .manage-overview > summary span { display: block; margin: 5px 0 0 18px; }
  .school-board { grid-template-columns: 1fr; }
  .review-card { padding: 18px; }
  .review-actions .act { flex: 1 1 160px; }
  .gestione-page .activity-form { padding: 18px; }
  .export-bar { padding: 18px; }
  .export-bar > button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .gestione-page * { scroll-behavior: auto !important; }
}
