/* ─────────────────────────────────────────────────────────────
   App Augustinianum — stili condivisi (Fase 0)
   Fedeli al design handoff: fondo blu profondo, Salzburg + Frutiger,
   niente bold, raggi 4px, hairline rgba(255,255,255,.16).
   ───────────────────────────────────────────────────────────── */

* { box-sizing: border-box; }

body.pagina-blu {
  margin: 0;
  background: #032A46;
  color: #fff;
  font-family: "Frutiger LT Std", "Frutiger", "Segoe UI", Arial, sans-serif;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
}

.font-display {
  font-family: "Salzburg", "Times New Roman", serif;
  font-weight: 300;
}

.eyebrow {
  font-size: 10px;
  letter-spacing: 0.28em;
  color: #8FB3C9;
  text-transform: uppercase;
}

.etichetta-campo {
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: #C4D6E2;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.campo {
  display: flex;
  align-items: center;
  height: 52px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 4px;
  padding: 0 14px;
  background: rgba(255,255,255,.06);
}
.campo:focus-within { border-color: rgba(255,255,255,.45); }
.campo input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-family: inherit;
  font-weight: 300;
  font-size: 16px; /* iOS non deve zoomare */
}
.campo input::placeholder { color: #8FB3C9; opacity: 1; }

.btn-primario {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  background: #fff;
  color: #032A46;
  border: none;
  border-radius: 4px;
  font-family: inherit;
  font-weight: 300;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-decoration: none;
  cursor: pointer;
  width: 100%;
  transition: background 150ms cubic-bezier(0.25,0.6,0.3,1);
}
.btn-primario:hover { background: #E3ECF2; }
.btn-primario:active { background: #C4D6E2; }
.btn-primario:disabled { background: rgba(255,255,255,.35); cursor: default; }

.btn-secondario {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 4px;
  font-family: inherit;
  font-weight: 300;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-decoration: none;
  cursor: pointer;
  transition: background 150ms cubic-bezier(0.25,0.6,0.3,1);
}
.btn-secondario:hover { background: rgba(255,255,255,.08); }

.divisore-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}
.divisore-eyebrow::before,
.divisore-eyebrow::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,.2);
}

.link-muted {
  font-size: 13px;
  color: #8FB3C9;
  text-decoration: none;
  border-bottom: 1px solid rgba(143,179,201,.5);
  padding-bottom: 1px;
}
.link-muted:hover { color: #fff; border-bottom-color: rgba(255,255,255,.5); }

.avviso-errore {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: rgba(217,147,138,.1);
  border: 1px solid rgba(217,147,138,.55);
  border-radius: 4px;
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.5;
  color: #D9938A;
}

.avviso-giallo {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: rgba(224,189,108,.1);
  border: 1px solid rgba(224,189,108,.5);
  border-radius: 4px;
  padding: 12px 14px;
  font-size: 12.5px;
  line-height: 1.5;
  color: #E0BD6C;
}

.avviso-verde {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: rgba(127,194,159,.14);
  border: 1px solid rgba(127,194,159,.55);
  border-radius: 4px;
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.5;
  color: #7FC29F;
}

.footer-1933 {
  padding: 22px;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,.12);
}
.footer-1933 span {
  font-size: 9.5px;
  letter-spacing: 0.28em;
  color: #8FB3C9;
}

/* ── Login ──────────────────────────────────────────────── */
.login-vista { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.login-pannello-foto { display: none; }
.login-colonna {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 28px;
  gap: 26px;
  width: 100%;
}
.login-blocco-logo { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.login-blocco-logo img { width: 250px; max-width: 80%; }
.login-form { display: flex; flex-direction: column; gap: 14px; }
.login-sotto { display: flex; justify-content: center; margin-top: 2px; }

@media (min-width: 900px) {
  .login-vista { flex-direction: row; }
  .login-pannello-foto {
    flex: 1.2;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background: #043B61;
    border-right: 1px solid rgba(255,255,255,.16);
  }
  .login-foto-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 10px;
    color: #8FB3C9;
  }
  .login-citazione {
    position: relative;
    padding: 36px 40px;
    background: rgba(4,76,126,.55);
  }
  .login-colonna-esterna {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .login-colonna { padding: 0 110px; flex: none; }
  .login-blocco-logo { align-items: flex-start; }
  .login-blocco-logo img { width: 290px; }
  .login-sotto { justify-content: space-between; }
  .footer-login-desktop { border-top: none; }
}

/* ── Attivazione account (onboarding passo 1) ───────────── */
.attivazione-vista {
  min-height: 100vh; min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
.attivazione-corpo {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 24px 16px;
}
.attivazione-colonna { width: 100%; max-width: 560px; display: flex; flex-direction: column; gap: 22px; }
.attivazione-colonna > img { width: 280px; max-width: 75%; align-self: center; }

.stepper { display: flex; gap: 6px; }
.stepper span { flex: 1; height: 3px; border-radius: 2px; background: rgba(255,255,255,.18); }
.stepper span.fatto { background: #7FC29F; }
.stepper span.corrente { background: #fff; }

.robustezza { display: flex; gap: 6px; margin-top: 8px; align-items: center; }
.robustezza span { width: 60px; height: 3px; border-radius: 2px; background: rgba(255,255,255,.18); }
.robustezza span.attivo-debole { background: #D9938A; }
.robustezza span.attivo-media  { background: #E0BD6C; }
.robustezza span.attivo-forte  { background: #7FC29F; }
.robustezza .robustezza-testo { font-size: 11px; margin-left: 6px; color: #8FB3C9; width: auto; height: auto; background: none; }

/* ── Pagine interne segnaposto (shell Fase 0) ───────────── */
.pagina-interna {
  min-height: 100vh; min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
.testata-interna {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255,255,255,.16);
}
.testata-interna img { height: 34px; }
.testata-interna .spazio { flex: 1; }
.testata-interna .utente { font-size: 11px; letter-spacing: 0.12em; color: #C4D6E2; text-transform: uppercase; }
.contenuto-interno { flex: 1; width: 100%; max-width: 1140px; margin: 0 auto; padding: 28px 16px 48px; }

.card-blu {
  background: #043B61;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 4px;
  padding: 20px;
}

.tabella-scura { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tabella-scura th {
  text-align: left;
  font-weight: 300;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8FB3C9;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255,255,255,.16);
}
.tabella-scura td {
  padding: 12px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  color: #C4D6E2;
  vertical-align: top;
}
.tabella-scura tr:hover td { background: rgba(255,255,255,.05); }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.35);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  color: #fff;
  text-transform: uppercase;
  white-space: nowrap;
}
.pill.verde  { border-color: #7FC29F; color: #7FC29F; background: rgba(127,194,159,.14); }
.pill.gialla { border-color: #E0BD6C; color: #E0BD6C; background: rgba(224,189,108,.12); }
.pill.rossa  { border-color: #D9938A; color: #D9938A; background: rgba(217,147,138,.12); }
.pill.muted  { border-color: rgba(255,255,255,.22); color: #8FB3C9; }

.bottone-riga {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  padding: 0 14px;
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 4px;
  font-family: inherit;
  font-weight: 300;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
}
.bottone-riga:hover { background: rgba(255,255,255,.08); }

/* ── Modal «Nuovo collegiale» (bottom-sheet mobile / dialog desktop) ── */
.overlay-modal {
  position: fixed; inset: 0;
  background: rgba(3,42,70,.7);
  display: flex; align-items: flex-end; justify-content: center;
  z-index: 50;
}
.overlay-modal[hidden] { display: none; }
.modal-scuro {
  background: #043B61;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 8px 8px 0 0;
  width: 100%; max-width: 640px;
  max-height: 92vh; max-height: 92dvh;
  display: flex; flex-direction: column;
  overflow: hidden;
}
.modal-testata { padding: 20px 20px 0; }
.modal-corpo {
  padding: 18px 20px 8px;
  overflow-y: auto;
  display: flex; flex-direction: column; gap: 14px;
}
.modal-azioni {
  display: flex; gap: 10px;
  padding: 14px 20px calc(18px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(255,255,255,.16);
}
.riga-2 { display: grid; grid-template-columns: 1fr; gap: 14px; }
.check-riga {
  display: flex; align-items: flex-start; gap: 12px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 4px; padding: 14px; cursor: pointer;
}
.check-riga input { position: absolute; opacity: 0; pointer-events: none; }
.check-riga .casella {
  flex: none; width: 22px; height: 22px;
  border: 1px solid rgba(255,255,255,.4); border-radius: 2px;
  display: flex; align-items: center; justify-content: center;
  margin-top: 1px; background: transparent;
}
.check-riga .casella svg { visibility: hidden; }
.check-riga input:checked + .casella { background: #fff; border-color: #fff; }
.check-riga input:checked + .casella svg { visibility: visible; }
.check-riga input:focus-visible + .casella { outline: 2px solid #8FB3C9; outline-offset: 2px; }
@media (min-width: 700px) {
  .overlay-modal { align-items: center; padding: 24px; }
  .modal-scuro { border-radius: 4px; }
  .riga-2 { grid-template-columns: 1fr 1fr; }
}

/* ═════ Fase 1 · anagrafica, drawer, onboarding, foto, profilo ═════ */

/* ── Nav sezioni sotto la testata ── */
.nav-sezioni {
  display: flex; gap: 2px;
  padding: 0 10px;
  border-bottom: 1px solid rgba(255,255,255,.16);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.nav-voce {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 12px 12px;
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: #8FB3C9; text-decoration: none;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.nav-voce:hover { color: #fff; }
.nav-voce.attiva { color: #fff; border-bottom-color: #fff; }
.nav-badge {
  font-size: 10px; color: #032A46; background: #E0BD6C;
  border-radius: 999px; padding: 1px 7px;
}

/* ── Avatar ── */
.avatar-cerchio {
  border-radius: 50%;
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  flex: none;
  border: 1px solid rgba(255,255,255,.35);
  overflow: hidden;
  font-family: inherit;
}

/* ── Drawer scheda collegiale ── */
.overlay-drawer {
  position: fixed; inset: 0;
  background: rgba(3,42,70,.7);
  display: flex; justify-content: flex-end;
  z-index: 100;
}
.drawer-scheda {
  width: 100%; max-width: 620px;
  height: 100%;
  background: #032A46;
  border-left: 1px solid rgba(255,255,255,.16);
  display: flex; flex-direction: column;
  box-shadow: 0 2px 10px rgba(3,42,70,.25);
}
.drawer-testata {
  flex: none;
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255,255,255,.16);
}
.drawer-chiudi {
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; margin: -8px;
  color: #fff; text-decoration: none;
}
.drawer-corpo {
  flex: 1; overflow-y: auto;
  padding: 18px 16px 28px;
  display: flex; flex-direction: column; gap: 14px;
}
.drawer-azioni {
  flex: none; display: flex; gap: 10px;
  padding: 14px 16px calc(18px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(255,255,255,.16);
}
.card-scheda {
  background: #043B61;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 4px;
  padding: 14px;
}
.titolo-card { font-size: 10px; letter-spacing: 0.2em; color: #C4D6E2; text-transform: uppercase; }

/* ── Tab interne alla scheda studente (CSS-only, radio+label · stile underline sticky) ── */
.tab-scheda { display: flex; flex-direction: column; }
.tab-scheda-radio { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.tab-scheda-nav {
  position: sticky; top: 0; z-index: 5;
  display: flex; gap: 2px;
  margin: 0 -16px 2px; padding: 0 16px;
  background: #032A46;
  border-bottom: 1px solid rgba(255,255,255,.14);
}
.tab-scheda-nav label {
  flex: 1; text-align: center; white-space: nowrap; position: relative;
  padding: 13px 4px 15px;
  font-size: 11.5px; letter-spacing: 0.09em; text-transform: uppercase; color: #8FB3C9;
  cursor: pointer; user-select: none;
  transition: color .15s;
}
.tab-scheda-nav label:hover { color: #C4D6E2; }
.tab-scheda-pannelli { padding-top: 16px; }
.tab-scheda-pannello { display: none; flex-direction: column; gap: 14px; }
#tab-scheda-anag:checked ~ .tab-scheda-pannelli #pan-scheda-anag,
#tab-scheda-cfc:checked  ~ .tab-scheda-pannelli #pan-scheda-cfc,
#tab-scheda-sanz:checked ~ .tab-scheda-pannelli #pan-scheda-sanz,
#tab-scheda-gest:checked ~ .tab-scheda-pannelli #pan-scheda-gest { display: flex; }
#tab-scheda-anag:checked ~ .tab-scheda-nav label[for="tab-scheda-anag"],
#tab-scheda-cfc:checked  ~ .tab-scheda-nav label[for="tab-scheda-cfc"],
#tab-scheda-sanz:checked ~ .tab-scheda-nav label[for="tab-scheda-sanz"],
#tab-scheda-gest:checked ~ .tab-scheda-nav label[for="tab-scheda-gest"] { color: #fff; }
#tab-scheda-anag:checked ~ .tab-scheda-nav label[for="tab-scheda-anag"]::after,
#tab-scheda-cfc:checked  ~ .tab-scheda-nav label[for="tab-scheda-cfc"]::after,
#tab-scheda-sanz:checked ~ .tab-scheda-nav label[for="tab-scheda-sanz"]::after,
#tab-scheda-gest:checked ~ .tab-scheda-nav label[for="tab-scheda-gest"]::after {
  content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px;
  height: 2.5px; background: #7FC29F; border-radius: 3px;
}
@media (max-width: 380px) {
  .tab-scheda-nav label { font-size: 10.5px; letter-spacing: 0.03em; padding: 12px 2px 14px; }
}
.griglia-dati { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; margin-top: 10px; }
.dato-etichetta { font-size: 10px; letter-spacing: 0.12em; color: #8FB3C9; text-transform: uppercase; }
.dato-valore { font-size: 13px; color: #fff; line-height: 1.4; margin-top: 2px; overflow-wrap: anywhere; }
.riga-storico {
  display: flex; justify-content: space-between; gap: 10px;
  padding: 9px 0; font-size: 13px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.riga-storico:last-of-type { border-bottom: none; }
.pill-piccola {
  font-size: 10px; letter-spacing: 0.1em; color: #fff;
  border: 1px solid rgba(255,255,255,.35); border-radius: 999px;
  padding: 5px 10px; text-transform: uppercase; white-space: nowrap;
}
.pill-piccola.verde  { color: #7FC29F; border-color: #7FC29F; }
.pill-piccola.gialla { color: #E0BD6C; border-color: #E0BD6C; }
.pill-piccola.rossa  { color: #D9938A; border-color: #D9938A; }
.pill-piccola.muted  { color: #8FB3C9; border-color: rgba(255,255,255,.22); }
.griglia-campi { display: grid; grid-template-columns: 1fr; gap: 14px; margin-top: 12px; }
@media (min-width: 700px) {
  .griglia-campi { grid-template-columns: 1fr 1fr; }
  .campo-intero { grid-column: 1 / -1; }
}

/* ── Elenco studenti ── */
.barra-filtri { display: flex; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.campo-ricerca {
  display: flex; align-items: center; gap: 10px;
  height: 46px; flex: 1 1 260px; max-width: 380px;
  border: 1px solid rgba(255,255,255,.22); border-radius: 4px;
  padding: 0 14px; background: rgba(255,255,255,.06);
}
.campo-ricerca input {
  flex: 1; min-width: 0; background: transparent; border: none; outline: none;
  color: #fff; font-family: inherit; font-weight: 300; font-size: 16px;
}
.campo-ricerca input::placeholder { color: #8FB3C9; opacity: 1; }
.select-filtro {
  height: 46px;
  border: 1px solid rgba(255,255,255,.22); border-radius: 4px;
  background: rgba(255,255,255,.06); color: #fff;
  font-family: inherit; font-weight: 300; font-size: 13px;
  padding: 0 12px;
}
.select-filtro option { background: #043B61; color: #fff; }
.riga-studente {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 16px; min-height: 52px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  text-decoration: none;
}
.riga-studente:hover { background: rgba(255,255,255,.05); }
.riga-studente .nome-riga {
  font-size: 13px; letter-spacing: 0.05em; color: #fff; text-transform: uppercase;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.riga-studente .nome-riga .proprio { text-transform: none; color: #C4D6E2; }
.riga-studente .sotto-riga {
  font-size: 11px; color: #8FB3C9;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.colonne-studenti { display: none; }
@media (min-width: 900px) {
  .riga-studente, .colonne-studenti {
    display: grid;
    grid-template-columns: 2.1fr 0.8fr 0.6fr 1.8fr 1fr 0.6fr 1.1fr;
    gap: 12px; align-items: center;
  }
  .colonne-studenti {
    padding: 11px 18px;
    border-bottom: 1px solid rgba(255,255,255,.16);
  }
  .colonne-studenti span { font-size: 10px; letter-spacing: 0.16em; color: #8FB3C9; text-transform: uppercase; }
  .riga-studente { padding: 10px 18px; }
  .solo-mobile-riga { display: none !important; }
}
@media (max-width: 899.98px) {
  .solo-desktop-riga { display: none !important; }
}

/* ── Onboarding (passi 2–4) ── */
.onboarding-vista {
  min-height: 100vh; min-height: 100dvh;
  display: flex; flex-direction: column;
}
.onboarding-testata { flex: none; padding: 16px; border-bottom: 1px solid rgba(255,255,255,.16); }
.onboarding-testata img { height: 26px; }
.onboarding-intro { flex: none; padding: 18px 16px 0; width: 100%; max-width: 640px; margin: 0 auto; }
.onboarding-corpo {
  flex: 1; width: 100%; max-width: 640px; margin: 0 auto;
  padding: 16px; display: flex; flex-direction: column; gap: 12px;
}
.onboarding-azioni {
  flex: none; display: flex; gap: 10px;
  padding: 14px 16px calc(20px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(255,255,255,.16);
}
@media (min-width: 700px) {
  .onboarding-azioni { justify-content: center; }
  .onboarding-azioni > * { max-width: 300px; }
}
.dropzone-foto {
  width: 180px; height: 220px;
  border: 1px dashed rgba(255,255,255,.35); border-radius: 4px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  color: #8FB3C9; background: rgba(255,255,255,.04);
  cursor: pointer; align-self: center;
  padding: 0; font-family: inherit;
}
.dropzone-foto img { width: 100%; height: 100%; object-fit: cover; border-radius: 4px; }
.testo-informativa {
  border: 1px solid rgba(255,255,255,.22); border-radius: 4px;
  padding: 16px; background: rgba(255,255,255,.04);
  font-size: 13px; line-height: 1.65; color: #C4D6E2;
  max-height: 320px; overflow-y: auto;
}
.check-consenso {
  display: flex; align-items: flex-start; gap: 12px;
  border: 1px solid rgba(255,255,255,.22); border-radius: 4px;
  padding: 14px; cursor: pointer;
}
.check-consenso input { position: absolute; opacity: 0; pointer-events: none; }
.check-consenso .casella {
  flex: none; width: 22px; height: 22px;
  border: 1px solid rgba(255,255,255,.4); border-radius: 2px;
  display: flex; align-items: center; justify-content: center;
  margin-top: 1px;
}
.check-consenso .casella svg { visibility: hidden; }
.check-consenso input:checked ~ .casella { background: #fff; border-color: #fff; }
.check-consenso input:checked ~ .casella svg { visibility: visible; }
.check-consenso input:focus-visible ~ .casella { outline: 2px solid #8FB3C9; outline-offset: 2px; }
.check-consenso:has(input:checked) { border-color: #fff; background: rgba(255,255,255,.06); }

/* ── Coda approvazione foto ── */
.griglia-foto { display: grid; grid-template-columns: 1fr; gap: 16px; align-items: start; }
@media (min-width: 700px)  { .griglia-foto { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .griglia-foto { grid-template-columns: repeat(4, 1fr); } }
.foto-proposta {
  height: 220px; border-radius: 4px; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background: #1B618F; color: #C4D6E2;
}
.foto-proposta img { width: 100%; height: 100%; object-fit: cover; }
.btn-approva {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 44px; background: #2E6B4F; color: #fff;
  border: none; border-radius: 4px; cursor: pointer;
  font-family: inherit; font-weight: 300; font-size: 10.5px; letter-spacing: 0.1em;
}
.btn-approva:hover { background: #38805F; }
.btn-rifiuta {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 44px; background: transparent; color: #E0BD6C;
  border: 1px solid #E0BD6C; border-radius: 4px; cursor: pointer;
  font-family: inherit; font-weight: 300; font-size: 10.5px; letter-spacing: 0.1em;
}
.btn-rifiuta:hover { background: rgba(224,189,108,.12); }

/* Bottom-sheet rifiuto foto */
.overlay-sheet {
  position: fixed; inset: 0;
  background: rgba(3,42,70,.7);
  display: flex; flex-direction: column; justify-content: flex-end;
  z-index: 70;
}
.overlay-sheet[hidden] { display: none; }
.sheet-scuro {
  background: #043B61;
  border-top: 1px solid rgba(255,255,255,.2);
  border-radius: 6px 6px 0 0;
  padding: 20px 16px calc(24px + env(safe-area-inset-bottom));
  width: 100%; max-width: 640px; margin: 0 auto;
  max-height: 92vh; max-height: 92dvh; overflow-y: auto;
}
@media (min-width: 700px) {
  .overlay-sheet { justify-content: center; align-items: center; padding: 24px; }
  .sheet-scuro { border-radius: 4px; border: 1px solid rgba(255,255,255,.2); }
}
.radio-motivo {
  display: flex; align-items: center; gap: 10px;
  min-height: 46px; border: 1px solid rgba(255,255,255,.22); border-radius: 4px;
  padding: 8px 14px; cursor: pointer;
}
.radio-motivo input { position: absolute; opacity: 0; pointer-events: none; }
.radio-motivo .pallino {
  width: 16px; height: 16px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.4);
  display: flex; align-items: center; justify-content: center; flex: none;
}
.radio-motivo .pallino::after {
  content: ""; width: 8px; height: 8px; border-radius: 50%; background: transparent;
}
.radio-motivo span.testo { font-size: 15px; color: #C4D6E2; }
.radio-motivo:has(input:checked) { border-color: #fff; background: rgba(255,255,255,.06); }
.radio-motivo:has(input:checked) .pallino { border-color: #fff; }
.radio-motivo:has(input:checked) .pallino::after { background: #fff; }
.radio-motivo:has(input:checked) span.testo { color: #fff; }
.radio-motivo input:focus-visible ~ .pallino { outline: 2px solid #8FB3C9; outline-offset: 2px; }

/* ── Profilo studente ── */
.badge-attesa {
  position: absolute; bottom: -4px; right: -4px;
  width: 26px; height: 26px; border-radius: 50%;
  background: #E0BD6C;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid #032A46;
}

/* ═════ Fase 2 · eventi, appello, CFC ═════ */

/* ── Form evento: segmented peso CFC ── */
.segmented-peso { display: flex; gap: 6px; }
.segmented-peso label { flex: 1; position: relative; }
.segmented-peso label.larga { flex: 1.6; }
.segmented-peso input { position: absolute; opacity: 0; pointer-events: none; }
.segmented-peso .opzione {
  display: flex; align-items: center; justify-content: center; text-align: center;
  height: 46px; border: 1px solid rgba(255,255,255,.22); border-radius: 4px;
  color: #C4D6E2; font-size: 14px; cursor: pointer;
  transition: background 150ms cubic-bezier(0.25,0.6,0.3,1);
}
.segmented-peso .opzione.testo { font-size: 11px; letter-spacing: 0.06em; line-height: 1.2; }
.segmented-peso input:checked + .opzione { background: #fff; border-color: #fff; color: #032A46; }
.segmented-peso input:focus-visible + .opzione { outline: 2px solid #8FB3C9; outline-offset: 2px; }

/* ── Radio-card pubblico (riusa .radio-motivo) e toggle ── */
.toggle-verde { position: relative; display: inline-flex; }
.toggle-verde input { position: absolute; opacity: 0; pointer-events: none; }
.toggle-verde .binario {
  width: 44px; height: 26px; border-radius: 999px;
  background: rgba(255,255,255,.2);
  display: flex; align-items: center; padding: 0 3px; box-sizing: border-box;
  transition: background 200ms ease-out; cursor: pointer;
}
.toggle-verde .binario::after {
  content: ""; width: 20px; height: 20px; border-radius: 50%; background: #fff;
  transition: transform 200ms ease-out;
}
.toggle-verde input:checked + .binario { background: #7FC29F; }
.toggle-verde input:checked + .binario::after { transform: translateX(18px); }
.toggle-verde input:focus-visible + .binario { outline: 2px solid #8FB3C9; outline-offset: 2px; }

/* ── Agenda eventi (righe mobile e elenco) ── */
.riga-evento {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 12px; min-height: 44px;
  background: #043B61; border: 1px solid rgba(255,255,255,.14); border-radius: 4px;
  text-decoration: none;
}
.riga-evento.passato { opacity: .6; border-color: rgba(255,255,255,.10); }
.riga-evento.oggi { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.45); }
.riga-evento.bozza { border-style: dashed; }
.riga-evento .data-blocco { flex: none; width: 40px; text-align: center; }
.riga-evento .data-blocco .num { font-family: "Salzburg", serif; font-weight: 300; font-size: 19px; color: #fff; line-height: 1; }
.riga-evento .data-blocco .dow { font-size: 9px; letter-spacing: 0.14em; color: #8FB3C9; margin-top: 2px; }
.riga-evento .titolo-evento { font-size: 12.5px; letter-spacing: 0.04em; color: #fff; text-transform: uppercase; line-height: 1.3; }
.riga-evento .meta-evento { font-size: 11px; color: #8FB3C9; margin-top: 2px; display: flex; align-items: center; gap: 5px; }
.separatore-mese { display: flex; align-items: center; gap: 10px; padding: 10px 0 4px; }
.separatore-mese span:first-child { font-size: 10px; letter-spacing: 0.2em; color: #8FB3C9; }
.separatore-mese span:last-child { flex: 1; height: 1px; background: rgba(255,255,255,.16); }

/* ── Calendario mensile (desktop) ── */
.cal-mese { display: none; }
@media (min-width: 900px) {
  .agenda-eventi.con-calendario { display: none; }
  .cal-mese { display: block; }
}
.cal-intestazioni { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; padding-bottom: 6px; }
.cal-intestazioni span { font-size: 10px; letter-spacing: 0.2em; color: #8FB3C9; padding-left: 10px; }
.cal-griglia { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.cal-cella {
  min-width: 0; min-height: 96px; overflow: hidden; box-sizing: border-box;
  border-radius: 4px; padding: 6px 8px 8px;
  background: #043B61; border: 1px solid rgba(255,255,255,.10);
}
.cal-cella.fuori-mese { background: transparent; }
.cal-cella.oggi { border-color: rgba(255,255,255,.55); }
.cal-numero { display: flex; justify-content: flex-end; }
.cal-numero span {
  font-size: 11.5px; color: #C4D6E2;
  width: 22px; height: 22px; display: flex; align-items: center; justify-content: center; border-radius: 50%;
}
.cal-cella.fuori-mese .cal-numero span { color: rgba(255,255,255,.3); }
.cal-cella.oggi .cal-numero span { background: #fff; color: #032A46; }
.cal-chip {
  display: block; text-decoration: none; border-radius: 3px;
  padding: 5px 8px 6px; margin-top: 4px; min-width: 0;
  background: rgba(255,255,255,.06); border-left: 2px solid rgba(255,255,255,.45);
}
.cal-chip .t { font-size: 10.5px; letter-spacing: 0.04em; text-transform: uppercase; color: #fff; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-chip .m { display: flex; align-items: center; gap: 4px; font-size: 9.5px; color: #8FB3C9; margin-top: 2px; white-space: nowrap; overflow: hidden; }
.cal-chip .p { font-size: 8.5px; letter-spacing: 0.08em; color: #fff; margin-top: 3px; }
.cal-chip .p.muted { color: #8FB3C9; }

/* ── Griglia appello ── */
.appello-griglia { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (min-width: 700px)  { .appello-griglia { grid-template-columns: repeat(4, 1fr); gap: 12px; } }
@media (min-width: 1100px) { .appello-griglia { grid-template-columns: repeat(6, 1fr); } }
.card-appello {
  position: relative;
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  border-radius: 4px; box-sizing: border-box; text-align: center;
  padding: 16px 6px 13px; min-height: 130px;
  background: #043B61; border: 2px solid rgba(255,255,255,.16);
  cursor: pointer; user-select: none; -webkit-tap-highlight-color: transparent;
  font-family: inherit; color: inherit;
  transition: background 150ms cubic-bezier(0.25,0.6,0.3,1), border-color 150ms cubic-bezier(0.25,0.6,0.3,1);
}
.card-appello .cognome { font-size: 12.5px; letter-spacing: 0.06em; text-transform: uppercase; color: #fff; line-height: 1.25; overflow-wrap: anywhere; padding: 0 2px; }
.card-appello .nome { font-size: 12px; color: #8FB3C9; line-height: 1.1; }
.card-appello .badge-stato {
  position: absolute; top: -8px; right: -8px;
  width: 22px; height: 22px; border-radius: 50%;
  display: none; align-items: center; justify-content: center;
  border: 2px solid #032A46; box-sizing: border-box;
}
.card-appello[data-stato="presente"] { border-color: #7FC29F; background: rgba(127,194,159,.14); }
.card-appello[data-stato="presente"] .badge-stato.presente { display: flex; background: #2E6B4F; }
.card-appello[data-stato="giustificato"] { border-color: #E0BD6C; background: rgba(224,189,108,.12); }
.card-appello[data-stato="giustificato"] .badge-stato.giustificato { display: flex; background: #8A6D2F; }
.card-appello[data-stato="assente"] { border-color: #D9938A; background: rgba(217,147,138,.10); }
.card-appello[data-stato="assente"] .badge-stato.assente { display: flex; background: #8C3B34; }
.card-appello[disabled], .card-appello.bloccata { cursor: default; }
.riga-esente {
  opacity: .5; display: flex; align-items: center; gap: 10px;
  border: 1px dashed rgba(255,255,255,.3); border-radius: 4px; padding: 9px 12px;
}
.appello-barra {
  position: sticky; bottom: 0;
  border-top: 1px solid rgba(255,255,255,.16); background: #032A46;
  margin: 14px -16px 0;
}
.appello-barra .progress { height: 3px; background: rgba(255,255,255,.12); }
.appello-barra .progress div { height: 3px; background: #7FC29F; transition: width 200ms ease-out; }
.appello-barra .contatori { display: flex; align-items: center; gap: 12px; padding: 14px 16px calc(14px + env(safe-area-inset-bottom)); min-height: 64px; }

/* ── Riepilogo annuale ── */
.riepilogo-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.riepilogo-testata, .riepilogo-riga { display: flex; align-items: center; }
.riepilogo-testata { border-bottom: 1px solid rgba(255,255,255,.16); padding-bottom: 8px; align-items: flex-end; }
.riepilogo-riga { border-bottom: 1px solid rgba(255,255,255,.08); min-height: 47px; }
.riep-col-studente { flex: none; width: 148px; min-width: 0; }
@media (min-width: 900px) { .riep-col-studente { width: 250px; display: flex; align-items: center; gap: 10px; } }
.riep-col-cfc { flex: none; width: 66px; text-align: right; padding-right: 10px; }
.riep-col-pct { flex: none; width: 70px; text-align: right; padding-right: 16px; }
.riep-col-evento { flex: none; width: 52px; text-align: center; }
@media (min-width: 900px) { .riep-col-evento { width: 72px; } }
.cella-stato { display: flex; align-items: center; justify-content: center; }
.q-stato {
  width: 26px; height: 26px; border-radius: 3px;
  display: flex; align-items: center; justify-content: center;
}
.q-stato.presente { background: #2E6B4F; }
.q-stato.assente { background: #8C3B34; }
.q-stato.giustificato { background: #8A6D2F; }
.q-stato.esente { border: 1px dashed rgba(255,255,255,.35); box-sizing: border-box; opacity: .6; }
.q-stato.vuoto { border: 1px solid rgba(255,255,255,.3); box-sizing: border-box; }

/* ── Chip filtro (TUTTI · n / DA SEGNARE · n) ── */
.chip-filtro {
  display: inline-flex; align-items: center; gap: 6px;
  height: 46px; padding: 0 16px;
  border: 1px solid rgba(255,255,255,.16); border-radius: 4px;
  background: transparent; color: #8FB3C9;
  font-family: inherit; font-weight: 300; font-size: 12px; letter-spacing: 0.1em;
  cursor: pointer; white-space: nowrap;
}
.chip-filtro.attiva { border-color: rgba(255,255,255,.35); color: #fff; }

/* ── Toggle viste (CALENDARIO/ELENCO, PER EVENTO/RIEPILOGO) ── */
.toggle-viste { display: inline-flex; border: 1px solid rgba(255,255,255,.35); border-radius: 4px; overflow: hidden; }
.toggle-viste a, .toggle-viste span {
  display: inline-flex; align-items: center; height: 42px; padding: 0 16px;
  color: #C4D6E2; font-size: 11px; letter-spacing: 0.12em; text-decoration: none;
}
.toggle-viste .attiva { background: #fff; color: #032A46; }

/* Correzioni form evento e chip calendario */
.riga-form-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.riga-form-2 > div { min-width: 0; }
.riga-form-2.spezzabile { grid-template-columns: 1fr; }
@media (min-width: 480px) { .riga-form-2.spezzabile { grid-template-columns: 1fr 1fr; } }
.cal-chip .m > span, .riga-evento .meta-evento > span {
  min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* L'agenda è il layout base; con il calendario attivo sparisce su desktop */
.agenda-eventi { display: flex; flex-direction: column; gap: 8px; }
@media (min-width: 900px) { .agenda-eventi.con-calendario { display: none; } }

/* ═════════════════════════════════════════════════════════════
   FASE 3 · comunicazioni Direzione, bacheca studente, tab bar
   ═════════════════════════════════════════════════════════════ */

.eyebrow-mini {
  font-size: 10px; letter-spacing: 0.2em; color: #C4D6E2; text-transform: uppercase;
}

/* ── Shell studente: top bar (desktop) + tab bar (mobile) ───── */
.shell-studente .topbar-studente { display: none; }
.contenuto-studente { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
.footer-studente { display: none; }

.tabbar-studente {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: flex;
  background: #032A46;
  border-top: 1px solid rgba(255,255,255,.16);
  padding: 6px 4px calc(10px + env(safe-area-inset-bottom));
}
.tabvoce {
  position: relative;
  flex: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  min-height: 46px;
  color: #8FB3C9; text-decoration: none;
}
.tabvoce span { font-size: 9px; letter-spacing: 0.1em; }
.tabvoce.attiva { color: #fff; }
.tabvoce .tab-dot {
  position: absolute; top: 3px; left: calc(50% + 7px);
  width: 8px; height: 8px; border-radius: 50%; background: #E0BD6C;
  border: 1.5px solid #032A46;
}

@media (min-width: 900px) {
  .shell-studente .topbar-studente {
    display: flex; align-items: center; gap: 20px;
    height: 72px; padding: 0 40px;
    border-bottom: 1px solid rgba(255,255,255,.16);
  }
  .topbar-logo { display: inline-flex; align-items: center; }
  .topbar-logo img { height: 34px; }
  .topbar-nav { margin-left: auto; display: flex; align-items: stretch; gap: 26px; height: 72px; }
  .topvoce {
    position: relative;
    display: inline-flex; align-items: center; height: 72px;
    color: #8FB3C9; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
    text-decoration: none; border-bottom: 2px solid transparent;
  }
  .topvoce:hover { color: #fff; text-decoration: none; }
  .topvoce.attiva { color: #fff; border-bottom-color: #fff; }
  .topvoce .tab-dot {
    width: 7px; height: 7px; border-radius: 50%; background: #E0BD6C;
    margin-left: 7px; display: inline-block;
  }
  .topbar-esci { margin-left: 8px; }
  .contenuto-studente { padding-bottom: 48px; }
  .tabbar-studente { display: none; }
  .footer-studente { display: flex; }
}

.profilo-logout { margin-top: 22px; }
.profilo-logout .btn-secondario { max-width: 320px; }
@media (min-width: 900px) { .profilo-logout { display: none; } }

/* ── Bacheca studente ──────────────────────────────────────── */
.bacheca-frame { display: block; }
.bch-lista, .bch-lettura { min-width: 0; }
.bacheca-frame .bch-lettura { display: none; }
.bacheca-frame.dettaglio .bch-lista { display: none; }
.bacheca-frame.dettaglio .bch-lettura { display: block; }

.bch-lista-testata {
  display: flex; align-items: baseline; gap: 10px;
  padding: 4px 2px 14px; border-bottom: 1px solid rgba(255,255,255,.16);
}
.bch-contatore { margin-left: auto; font-size: 11px; color: #8FB3C9; }
.bch-item {
  display: block; padding: 14px 4px; text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,.1);
  border-left: 2px solid transparent;
}
.bch-item:hover { background: rgba(255,255,255,.04); text-decoration: none; }
.bch-item.attiva { background: rgba(255,255,255,.06); border-left-color: #fff; padding-left: 12px; }
.bch-item-riga { display: flex; align-items: center; gap: 8px; }
.bch-pallino { width: 7px; height: 7px; border-radius: 50%; background: #E0BD6C; flex: none; }
.bch-pallino.vuoto { background: transparent; border: 1px solid rgba(255,255,255,.22); }
.bch-oggetto { font-size: 14px; color: #C4D6E2; line-height: 1.4; min-width: 0; }
.bch-oggetto.forte { color: #fff; }
.bch-item-meta { font-size: 11px; color: #8FB3C9; margin-top: 5px; padding-left: 15px; }
.bch-vuoto { padding: 26px 12px; text-align: center; color: #8FB3C9; font-size: 13px; }

.bch-indietro {
  display: inline-flex; align-items: center; gap: 8px; color: #C4D6E2;
  font-size: 10.5px; letter-spacing: 0.16em; text-decoration: none; margin-bottom: 16px;
}
.bch-indietro:hover { color: #fff; text-decoration: none; }
.bch-articolo { max-width: 680px; }
.bch-eyebrow { font-size: 10px; letter-spacing: 0.2em; color: #8FB3C9; text-transform: uppercase; line-height: 1.5; }
.bch-titolo { font-size: 22px; color: #fff; margin: 10px 0 0; line-height: 1.4; letter-spacing: 0.03em; }
.bch-filetto { height: 2px; width: 56px; background: rgba(255,255,255,.4); margin: 16px 0; }
.bch-corpo { font-size: 15px; line-height: 1.7; color: #C4D6E2; }
.bch-cta {
  display: inline-flex; align-items: center; height: 48px; padding: 0 22px; margin-top: 22px;
  background: #fff; color: #032A46; border-radius: 4px;
  font-size: 12px; letter-spacing: 0.12em; text-decoration: none;
}
.bch-cta:hover { color: #032A46; text-decoration: none; }
.bch-cta.statica { background: rgba(255,255,255,.12); color: #C4D6E2; cursor: default; }

@media (min-width: 900px) {
  .bacheca-frame, .bacheca-frame.dettaglio { display: flex; gap: 0; align-items: stretch; }
  .bacheca-frame .bch-lista, .bacheca-frame.dettaglio .bch-lista { display: block; flex: none; width: 430px; padding-right: 26px; border-right: 1px solid rgba(255,255,255,.16); }
  .bacheca-frame .bch-lettura, .bacheca-frame.dettaglio .bch-lettura { display: block; flex: 1; padding-left: 40px; }
  .bch-indietro { display: none; }
  .bch-titolo { font-size: 27px; }
  .bch-articolo { max-width: 680px; }
}

/* ── Compositore comunicazioni (Direzione) ─────────────────── */
.com-tabs { display: flex; border: 1px solid rgba(255,255,255,.22); border-radius: 4px; overflow: hidden; margin-bottom: 16px; }
.com-tab { flex: 1; text-align: center; padding: 12px 8px; color: #8FB3C9; font-size: 11px; letter-spacing: 0.12em; text-decoration: none; }
.com-tab.attiva { background: #fff; color: #032A46; }
.com-cols { display: block; }
.com-frame .com-editor { display: block; }
.com-frame .com-lista { display: none; }
.com-frame.mob-lista .com-lista { display: block; }
.com-frame.mob-lista .com-editor { display: none; }

.com-lista-testata { display: flex; align-items: center; gap: 10px; padding: 0 2px 14px; border-bottom: 1px solid rgba(255,255,255,.16); }
.com-sez { font-size: 10px; letter-spacing: 0.18em; color: #8FB3C9; text-transform: uppercase; padding: 16px 2px 6px; }
.com-item { display: block; padding: 13px 4px; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.1); border-left: 2px solid transparent; }
.com-item:hover { background: rgba(255,255,255,.04); text-decoration: none; }
.com-item.attiva { background: rgba(255,255,255,.06); border-left-color: #fff; padding-left: 12px; }
.com-item-ogg { font-size: 13px; color: #fff; line-height: 1.4; }
.com-item-meta { font-size: 11px; color: #8FB3C9; margin-top: 5px; }

.com-editor-form { display: flex; flex-direction: column; }
.com-campo { margin-top: 16px; }
.com-campo:first-child { margin-top: 0; }
.com-label { font-size: 10.5px; letter-spacing: 0.14em; color: #C4D6E2; text-transform: uppercase; margin-bottom: 6px; }
.com-label.chiaro { color: #8FB3C9; }
.com-input, .com-textarea {
  width: 100%; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.22);
  border-radius: 4px; padding: 12px 14px; color: #fff; font-family: inherit; font-size: 15px; line-height: 1.5;
}
.com-input:focus, .com-textarea:focus { outline: none; border-color: rgba(255,255,255,.5); }
.com-textarea { min-height: 200px; resize: vertical; }
select.com-input { height: 48px; padding: 0 14px; }

.com-chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.com-chip {
  display: inline-flex; align-items: center; height: 40px; padding: 0 14px;
  background: transparent; color: #C4D6E2; border: 1px solid rgba(255,255,255,.22);
  border-radius: 4px; font-family: inherit; font-size: 12.5px; letter-spacing: 0.04em; cursor: pointer;
}
.com-chip.attiva { background: #fff; color: #032A46; border-color: #fff; }
.com-chip.sm { height: 34px; font-size: 12px; }
.com-chip-group { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 4px 8px; border: 1px dashed rgba(255,255,255,.18); border-radius: 4px; }
.com-chip-label { font-size: 10px; letter-spacing: 0.12em; color: #8FB3C9; text-transform: uppercase; }

.com-doppia { display: flex; flex-direction: column; gap: 14px; margin-top: 16px; }
.com-anteprima-col { display: none; }
.com-anteprima { background: #fff; border-radius: 4px; padding: 20px; color: #35444F; }
.com-ant-logo { font-size: 12px; letter-spacing: 0.14em; color: #044C7E; font-weight: 600; }
.com-ant-filetto { height: 2px; background: #044C7E; margin: 12px 0; }
.com-ant-titolo { font-size: 17px; color: #044C7E; line-height: 1.4; letter-spacing: 0.03em; }
.com-ant-corpo { font-size: 13px; line-height: 1.65; color: #35444F; margin-top: 12px; white-space: normal; word-break: break-word; }
.com-ant-footer { font-size: 9.5px; letter-spacing: 0.22em; color: #5A6B76; margin-top: 16px; }

.com-azioni { display: flex; gap: 10px; justify-content: flex-end; margin-top: 20px; flex-wrap: wrap; }
.com-btn-bozza, .com-btn-invia { width: auto; padding: 0 22px; height: 50px; }

.com-detail-testata { display: flex; align-items: center; gap: 10px; }
.com-detail-testata .eyebrow-mini { flex: 1; }
.com-stat { display: flex; gap: 26px; flex-wrap: wrap; margin-top: 24px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.14); }
.com-stat-num { font-family: 'Salzburg', serif; font-size: 30px; color: #fff; display: block; line-height: 1; }
.com-stat-lab { font-size: 10px; letter-spacing: 0.16em; color: #8FB3C9; text-transform: uppercase; display: block; margin-top: 6px; }
.com-stat-autore { font-size: 15px; color: #fff; display: block; margin-top: 6px; }
.com-nota { font-size: 12px; color: #8FB3C9; line-height: 1.6; margin-top: 14px; border: 1px dashed rgba(255,255,255,.2); border-radius: 4px; padding: 12px 14px; }
.com-dettaglio-dest { margin-top: 18px; }
.com-dettaglio-dest summary { font-size: 11px; letter-spacing: 0.12em; color: #8FB3C9; cursor: pointer; list-style: none; user-select: none; padding: 8px 0; }
.com-dest-lista { display: flex; flex-direction: column; gap: 2px; }
.com-dest-riga { display: flex; align-items: center; gap: 10px; padding: 8px 2px; border-bottom: 1px solid rgba(255,255,255,.08); }
.com-dest-nome { flex: 1; min-width: 0; font-size: 13px; color: #fff; }

@media (min-width: 900px) {
  .com-tabs { display: none; }
  .com-cols { display: flex; align-items: flex-start; gap: 0; }
  .com-frame .com-lista, .com-frame.mob-lista .com-lista { display: block; flex: none; width: 340px; padding-right: 24px; border-right: 1px solid rgba(255,255,255,.16); }
  .com-frame .com-editor, .com-frame.mob-lista .com-editor { display: block; flex: 1; min-width: 0; padding-left: 30px; }
  .com-doppia { flex-direction: row; align-items: stretch; }
  .com-doppia > .com-campo { flex: 1; min-width: 0; }
  .com-anteprima-col { display: flex; flex-direction: column; }
  .com-anteprima { flex: 1; }
}

/* ═════════════════════════════════════════════════════════════
   Rifinitura desktop (2026-07-16): layout più ampio, testo e
   logo più grandi su monitor grandi. Additivo e reversibile.
   ═════════════════════════════════════════════════════════════ */
@media (min-width: 900px) {
  /* Logo header più grande e visibile (Direzione + Studente) */
  .testata-interna { padding-top: 18px; padding-bottom: 18px; }
  .testata-interna img { height: 46px; }
  .topbar-logo img { height: 44px; }
}
@media (min-width: 1200px) {
  /* Niente zoom (creava overflow su Safari): layout responsivo reale, contenitore
     più largo su monitor grandi. Le schede si adattano da sole via i loro media query. */
  .contenuto-interno { max-width: 1600px; padding-left: 32px; padding-right: 32px; }
}
@media (min-width: 1700px) { .contenuto-interno { max-width: 1850px; } }

/* ═════════════════════════════════════════════════════════════
   Menu Direzione ridotto su mobile (2026-07-16): sotto i 900px la
   barra mostra solo CRUSCOTTO · STUDENTI · EVENTI · PRESENZE ·
   COMUNICAZIONI. Le voci soloDesktop restano su desktop; le pagine
   restano raggiungibili via link diretto.
   ═════════════════════════════════════════════════════════════ */
@media (max-width: 899.98px) {
  .nav-voce.solo-desktop-nav { display: none; }
}

/* ═════════════════════════════════════════════════════════════
   Modulo «Eventi 2» (2026-07-16): drawer evento, locandina,
   pannello partecipazione, conferma presenza studente, modal
   «non ci sarò», multi-selezione membri commissione.
   ═════════════════════════════════════════════════════════════ */
/* Drawer modifica evento (Direzione) */
.ev-drawer-back { position: fixed; inset: 0; z-index: 1000; display: flex; justify-content: flex-end; }
.ev-drawer-scrim { position: absolute; inset: 0; background: rgba(2,20,34,.55); border: none; }
.ev-drawer { position: relative; width: 620px; max-width: 94vw; height: 100vh; overflow-y: auto;
  background: #032A46; border-left: 1px solid rgba(255,255,255,.14); box-shadow: -24px 0 60px rgba(0,0,0,.4);
  padding: 20px 24px 48px; -webkit-overflow-scrolling: touch; }
.ev-drawer-head { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.ev-drawer-head .eyebrow { flex: 1; }
.ev-drawer-x { font-size: 26px; line-height: 1; color: #8FB3C9; text-decoration: none; padding: 0 4px; }
.ev-drawer .ev-drawer-head + a { display: none; }           /* nasconde il «← EVENTI» ridondante */
.ev-drawer .colonna-anteprima { display: none; }            /* niente anteprima nel drawer */
.ev-drawer .griglia-evento { grid-template-columns: 1fr !important; }
.ev-drawer-sez { margin-top: 20px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.12); }
.ev-part-hint { font-size: 12.5px; color: #8FB3C9; }
@media (max-width: 640px) { .ev-drawer { width: 100%; max-width: 100%; padding: 18px 16px 44px; } }

/* Locandina PDF */
.loc-file { display: flex; align-items: center; gap: 10px; background: #043B61; border: 1px dashed rgba(255,255,255,.3);
  border-radius: 4px; padding: 12px 14px; }
.loc-file-txt { flex: 1; min-width: 0; }
.loc-file-txt a { color: #fff; font-size: 13px; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.3); }
.loc-file-txt span { display: block; color: #8FB3C9; font-size: 11px; margin-top: 2px; }
.loc-azione { background: none; border: none; color: #8FB3C9; font-size: 11px; letter-spacing: .06em; cursor: pointer; padding: 2px 4px; }
.loc-azione.loc-rimuovi { color: #D9938A; }
.loc-drop { display: flex; align-items: center; gap: 10px; width: 100%; background: #043B61;
  border: 1px dashed rgba(255,255,255,.3); border-radius: 4px; padding: 14px; color: #C4D6E2; font-size: 13px; cursor: pointer; }

/* Pannello partecipazione (drawer) */
.ev-pill { flex: none; font-size: 10px; letter-spacing: .06em; color: #fff; border: 1px solid rgba(255,255,255,.3); border-radius: 999px; padding: 4px 9px; white-space: nowrap; }
.ev-stats { display: flex; gap: 10px; }
.ev-stat { flex: 1; text-align: center; padding: 12px 6px; border-radius: 6px; background: rgba(255,255,255,.05); }
.ev-stat b { display: block; font-family: 'Frutiger LT Std','Segoe UI',Arial,sans-serif; font-size: 26px; }
.ev-stat span { font-size: 10px; letter-spacing: .08em; color: #8FB3C9; }
.ev-req-lab { font-size: 10.5px; letter-spacing: .14em; color: #8FB3C9; margin: 16px 0 4px; }
.ev-req { display: flex; align-items: flex-start; gap: 10px; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.09); }
.ev-av { width: 34px; height: 34px; border-radius: 50%; background: #1B618F; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 12px; flex: none; }
.ev-req-txt { flex: 1; min-width: 0; }
.ev-req-nome { color: #fff; font-size: 13px; }
.ev-req-mot { color: #C4D6E2; font-size: 12px; line-height: 1.4; margin-top: 2px; }
.ev-req-azioni { display: flex; flex-direction: column; gap: 6px; flex: none; }
.ev-btn { height: 34px; padding: 0 14px; border-radius: 4px; font-size: 11px; letter-spacing: .08em; border: 1px solid; background: none; cursor: pointer; }
.ev-ok { color: #7FC29F; border-color: rgba(127,194,159,.6); }
.ev-no { color: #D9938A; border-color: rgba(217,147,138,.6); }
.ev-badge { flex: none; align-self: center; font-size: 10px; letter-spacing: .06em; border: 1px solid; border-radius: 999px; padding: 4px 9px; white-space: nowrap; }

/* Conferma presenza studente */
.part-btns { display: flex; gap: 10px; }
.part-yes, .part-no { flex: 1; height: 52px; border-radius: 6px; font-size: 13px; letter-spacing: .1em; font-weight: 600;
  display: flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; width: 100%; }
.part-yes { background: #fff; color: #032A46; border: none; }
.part-no { background: none; border: 1px solid rgba(217,147,138,.7); color: #D9938A; }
.part-yes.on { box-shadow: 0 0 0 2px #7FC29F inset; }
.part-no.on { background: rgba(224,189,108,.12); border-color: #E0BD6C; color: #E0BD6C; }
.part-nota { text-align: center; font-size: 11.5px; color: #8FB3C9; }
.part-stato { font-size: 13px; padding: 10px 12px; border-radius: 6px; background: rgba(255,255,255,.05); color: #C4D6E2; }
.part-stato.ok { color: #7FC29F; } .part-stato.attesa { color: #E0BD6C; } .part-stato.no { color: #D9938A; }

/* Modal «non ci sarò» (bottom sheet mobile) */
.assenza-over { position: fixed; inset: 0; z-index: 1100; background: rgba(2,20,34,.75); display: flex; align-items: flex-end; }
.assenza-over[hidden] { display: none; }
.assenza-sheet { background: #06304F; border-top-left-radius: 18px; border-top-right-radius: 18px; width: 100%;
  padding: 22px 18px calc(22px + env(safe-area-inset-bottom)); border-top: 1px solid rgba(255,255,255,.16); }
.assenza-grab { width: 44px; height: 4px; background: rgba(255,255,255,.25); border-radius: 3px; margin: 0 auto 16px; }
.assenza-ta { width: 100%; min-height: 120px; background: #043B61; border: 1px solid rgba(255,255,255,.2); border-radius: 8px;
  color: #fff; padding: 12px; font-size: 15px; box-sizing: border-box; resize: none; font-family: inherit; }
.assenza-azioni { display: flex; gap: 10px; margin-top: 16px; }
@media (min-width: 640px) { .assenza-over { align-items: center; justify-content: center; }
  .assenza-sheet { max-width: 460px; border-radius: 14px; } }

/* Multi-selezione membri commissione */
.mm-search-wrap { position: relative; display: flex; align-items: center; }
.mm-search-wrap svg { position: absolute; left: 13px; pointer-events: none; }
.mm-search { width: 100%; height: 44px; background: #032A46; border: 1px solid rgba(255,255,255,.2); border-radius: 6px;
  color: #fff; padding: 0 12px 0 38px; font-size: 14px; box-sizing: border-box; }
.mm-list { margin-top: 12px; max-height: 320px; overflow-y: auto; border: 1px solid rgba(255,255,255,.12); border-radius: 6px; }
.mm-item { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid rgba(255,255,255,.07); cursor: pointer; }
.mm-item input { position: absolute; opacity: 0; width: 0; height: 0; }
.mm-chk { width: 22px; height: 22px; border-radius: 5px; border: 1.5px solid rgba(255,255,255,.4); flex: none; display: flex; align-items: center; justify-content: center; }
.mm-item input:checked ~ .mm-chk { background: #7FC29F; border-color: #7FC29F; }
.mm-item input:checked ~ .mm-chk::after { content: ''; width: 6px; height: 11px; border: solid #032A46; border-width: 0 3px 3px 0; transform: rotate(45deg); margin-top: -2px; }
.mm-item input:checked ~ .mm-nome, .mm-item:has(input:checked) { color: #fff; }
.mm-av { width: 32px; height: 32px; border-radius: 50%; background: #1B618F; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 12px; flex: none; }
.mm-nome { flex: 1; color: #fff; font-size: 14px; }

/* Tab bar Direzione in basso su mobile (icone) — sincronia con lo studente.
   Su desktop resta la barra in alto (.nav-sezioni); su mobile va in basso. */
.tabbar-dir { display: none; }
@media (max-width: 899.98px) {
  .nav-sezioni { display: none; }
  .pagina-interna .contenuto-interno { padding-bottom: 84px; }
  .tabbar-dir {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
    background: #04243C; border-top: 1px solid rgba(255,255,255,.14);
    padding: 6px 2px calc(6px + env(safe-area-inset-bottom));
  }
  .tabbar-dir > a, .tabbar-dir > span {
    flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 3px;
    color: #8FB3C9; text-decoration: none; font-size: 9px; letter-spacing: 0.04em; padding: 4px 2px;
  }
  .tabbar-dir > a > span, .tabbar-dir > span > span {
    max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  .tabbar-dir > .attiva { color: #fff; }
  .tabbar-dir svg { flex: none; }
}

/* Campanella notifiche (testata Direzione) */
.campanella { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; color: #C4D6E2; text-decoration: none; margin-left: 4px; flex: none; }
.campanella:hover { color: #fff; }
.campanella-badge { position: absolute; top: 1px; right: 0; min-width: 16px; height: 16px; padding: 0 4px; box-sizing: border-box; border-radius: 999px; background: #E0BD6C; color: #032A46; font-size: 10px; font-weight: 700; line-height: 16px; text-align: center; }

/* ── Richiami / Sanzioni (drawer scheda + profilo studente) ── */
.richiamo-riga { padding: 13px 0; border-top: 1px solid rgba(255,255,255,.08); }
.richiamo-capo { display: flex; align-items: center; gap: 10px; }
.richiamo-data { font-size: 11.5px; color: #8FB3C9; }
.richiamo-motivo { font-size: 13px; color: #fff; line-height: 1.55; margin-top: 7px; white-space: pre-wrap; }
.richiamo-pdf { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: #8FB3C9; text-decoration: none; margin-top: 9px; }
.richiamo-pdf:hover { color: #C4D6E2; }
.richiamo-select, .richiamo-motiv-input {
  width: 100%; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.22);
  border-radius: 4px; color: #fff; font-family: inherit; font-weight: 300; font-size: 14px;
}
.richiamo-select {
  height: 52px; padding: 0 14px; -webkit-appearance: none; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none' stroke='%238FB3C9' stroke-width='1.6'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
.richiamo-select option { background: #043B61; color: #fff; }
.richiamo-select:focus, .richiamo-motiv-input:focus { outline: none; border-color: rgba(255,255,255,.5); }
.richiamo-motiv-input { min-height: 92px; padding: 11px 13px; resize: vertical; line-height: 1.5; }
.richiamo-motiv-input::placeholder { color: #8FB3C9; opacity: 1; }
.richiamo-file-nome { font-size: 12px; color: #8FB3C9; }
.richiamo-vuoto { font-size: 13px; color: #8FB3C9; margin-top: 10px; line-height: 1.6; }

/* ── Polish responsive (2026-07-16): mobile scheda + tab bar ── */
@media (max-width: 899.98px) {
  /* Drawer scheda ora sopra la tab bar (z-index 100) → il fondo non si taglia più */
  .drawer-corpo { padding-bottom: calc(28px + env(safe-area-inset-bottom)); }
  /* Su mobile non servono «Scheda annuale»/«Modifica dati» nella testata scheda */
  .azioni-scheda-desktop { display: none; }
  /* Icone ed etichette della tab bar Direzione leggermente più grandi */
  .tabbar-dir > a, .tabbar-dir > span { font-size: 9.5px; padding-top: 6px; }
  .tabbar-dir svg { width: 23px; height: 23px; }
}

/* ── Banner "Attiva notifiche" (push) — iniettato da SCRIPT_PUSH su mobile ── */
.push-banner {
  display: flex; align-items: center; gap: 10px;
  margin: 14px 16px 0; padding: 11px 12px 11px 14px;
  background: #043B61; border: 1px solid rgba(255,255,255,.20); border-radius: 6px;
  color: #C4D6E2; font-size: 12.5px; line-height: 1.4;
}
.push-banner > svg { flex: none; color: #8FB3C9; }
.push-banner > span { flex: 1; min-width: 0; }
.push-banner .push-banner-si {
  flex: none; background: #fff; color: #032A46; border: none; border-radius: 4px;
  padding: 9px 14px; font-size: 11px; letter-spacing: .1em; cursor: pointer; white-space: nowrap;
}
.push-banner .push-banner-no {
  flex: none; background: none; border: none; color: #8FB3C9; font-size: 15px; line-height: 1;
  cursor: pointer; padding: 4px 6px;
}
