/* BG Legno Control System — pagine del nucleo */
:root {
  --fondo: #f3f6f5; --carta: #fff; --carta2: #f8faf9;
  --ink: #10272d; --ink2: #3e5359; --muto: #74878c; --linea: #e2e8e7; --linea2: #edf1f0;
  --teal9: #00313d; --teal8: #004252; --teal7: #0b5a6b; --teal6: #1a7184; --teal1: #e2eff1; --teal0: #f0f7f8;
  --verde: #5f8f1c; --verde1: #edf5e1; --verdeL: #8cc63f;
  --rosso: #c0392b; --rosso1: #fbe9e6; --arancio: #c96a0c; --arancio1: #fdf0e0;
  --giallo: #a77b00; --giallo1: #fbf3d9; --azzurro: #2a6d8e; --azzurro1: #e4f0f6; --grigio1: #eef1f1;
  --m-mezzi: #2a6d8e; --m-cert: #9a6b12; --m-form: #4f7a17; --m-pers: #6b4fa0;
  --r: 14px; --r-s: 9px;
  --ombra: 0 1px 2px rgba(16,39,45,.05), 0 6px 22px rgba(16,39,45,.05);
  --ombra2: 0 2px 6px rgba(16,39,45,.07), 0 18px 40px rgba(16,39,45,.09);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--fondo); color: var(--ink);
  font: 400 14.5px/1.5 "Inter BG", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  -webkit-font-smoothing: antialiased; font-feature-settings: "cv11", "ss01"; }
a { color: var(--teal7); text-decoration: none; }
a:hover { color: var(--teal8); text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3 { margin: 0; color: var(--ink); letter-spacing: -.012em; }
h1 { font-size: 26px; font-weight: 700; line-height: 1.2; }
h2 { font-size: 17px; font-weight: 700; }
h3 { font-size: 14.5px; font-weight: 600; }
p { margin: 0 0 .8em; }
svg.ic { width: 18px; height: 18px; flex: none; vertical-align: -3px; }
.num, .tnum { font-variant-numeric: tabular-nums; }
.muto { color: var(--muto); }
.piccolo { font-size: 12.5px; }
.nowrap { white-space: nowrap; }

/* struttura */
.pagina { max-width: 1280px; margin: 0 auto; padding: 26px 24px 60px; }
.pagina.stretta { max-width: 880px; }
.testa { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.testa .sopra { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--teal6); margin-bottom: 6px; }
.testa p { margin: 6px 0 0; color: var(--ink2); }
.griglia { display: grid; gap: 18px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g-21 { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
@media (max-width: 1000px) { .g3, .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g-21 { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } .pagina { padding: 18px 14px 50px; } h1 { font-size: 22px; } }

.carta { background: var(--carta); border-radius: var(--r); box-shadow: var(--ombra); border: 1px solid var(--linea2); }
.carta > .c-testa { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px 12px; }
.carta > .c-testa h2 { display: flex; align-items: center; gap: 10px; }
.carta > .c-corpo { padding: 4px 20px 20px; }
.carta > .c-piede { padding: 12px 20px; border-top: 1px solid var(--linea2); background: var(--carta2); border-radius: 0 0 var(--r) var(--r); }
.carta + .carta { margin-top: 18px; }
.sez { margin-top: 26px; }
.sez > h2 { margin-bottom: 12px; display: flex; align-items: center; gap: 10px; }

/* bottoni */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 16px; border-radius: 10px;
  border: 1px solid transparent; background: var(--teal8); color: #fff; font: 600 14px/1.2 inherit; font-family: inherit;
  cursor: pointer; text-decoration: none !important; transition: background .15s, box-shadow .15s, transform .05s; white-space: nowrap; }
.btn:hover { background: var(--teal7); color: #fff; box-shadow: 0 4px 14px rgba(0,66,82,.25); }
.btn:active { transform: translateY(1px); }
.btn.sec { background: #fff; color: var(--teal8); border-color: #cfdcdc; }
.btn.sec:hover { background: var(--teal0); border-color: #b5cccd; box-shadow: none; }
.btn.verde { background: var(--verde); }
.btn.verde:hover { background: #4f7a14; box-shadow: 0 4px 14px rgba(79,122,20,.28); }
.btn.rosso { background: #fff; color: var(--rosso); border-color: #f0c8c1; }
.btn.rosso:hover { background: var(--rosso1); box-shadow: none; }
.btn.piccolo { padding: 6px 11px; font-size: 13px; border-radius: 8px; }
.btn.grande { padding: 13px 22px; font-size: 15px; border-radius: 12px; }
.btn.largo { width: 100%; }
.btn svg.ic { width: 17px; height: 17px; }

/* moduli (form) */
.campi { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px 18px; }
.campo { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.campo.largo { grid-column: 1 / -1; }
label, .etichetta { font-size: 12.5px; font-weight: 600; color: var(--ink2); }
input[type=text], input[type=email], input[type=password], input[type=date], input[type=number], input[type=search], input[type=tel],
input[type=url], select, textarea {
  width: 100%; padding: 10px 12px; border: 1px solid #d3dddd; border-radius: var(--r-s); background: #fff; color: var(--ink);
  font: 400 14.5px/1.35 inherit; font-family: inherit; transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--teal6); box-shadow: 0 0 0 3px rgba(26,113,132,.16); }
textarea { min-height: 84px; resize: vertical; }
.aiuto { font-size: 12px; color: var(--muto); font-weight: 400; }
.spunta { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; font-weight: 500; color: var(--ink); cursor: pointer; }
.spunta input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--teal8); flex: none; }
.azioni { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 18px; }
fieldset { border: 0; padding: 0; margin: 0; }

/* scelta a pillole (ruoli) */
.pillole { display: flex; flex-wrap: wrap; gap: 6px; }
.pillole label { position: relative; cursor: pointer; }
.pillole input { position: absolute; opacity: 0; pointer-events: none; }
.pillole span { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; border: 1px solid #d3dddd;
  background: #fff; font-size: 13px; font-weight: 600; color: var(--ink2); transition: all .12s; }
.pillole input:checked + span { background: var(--teal8); border-color: var(--teal8); color: #fff; box-shadow: 0 3px 10px rgba(0,66,82,.22); }
.pillole input:focus-visible + span { box-shadow: 0 0 0 3px rgba(26,113,132,.25); }
.pillole label.nessuno input:checked + span { background: #fff; color: var(--muto); border-style: dashed; border-color: #b9c6c6; box-shadow: none; }

/* avvisi */
.avviso { display: flex; gap: 12px; align-items: flex-start; padding: 12px 16px; border-radius: 12px; margin-bottom: 14px;
  background: var(--teal0); color: var(--teal8); border: 1px solid var(--teal1); font-weight: 500; }
.avviso svg.ic { margin-top: 1px; }
.avviso.ok { background: var(--verde1); color: #3f6510; border-color: #dbe9c6; }
.avviso.errore { background: var(--rosso1); color: #9d2c1f; border-color: #f4cfc8; }
.avviso.attenzione { background: var(--giallo1); color: #7a5a00; border-color: #f1e2ae; }

/* etichette di stato */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; background: var(--grigio1); color: var(--ink2); line-height: 1.5; }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .85; }
.pill.semplice::before { display: none; }
.pill.rosso { background: var(--rosso1); color: var(--rosso); }
.pill.arancio { background: var(--arancio1); color: var(--arancio); }
.pill.giallo { background: var(--giallo1); color: var(--giallo); }
.pill.verde { background: var(--verde1); color: var(--verde); }
.pill.azzurro { background: var(--azzurro1); color: var(--azzurro); }
.pill.grigio { background: var(--grigio1); color: #66787c; }
.az { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 6px; font-size: 11.5px; font-weight: 700; letter-spacing: .04em; }
.az.BG { background: #e0edf0; color: #004252; }
.az.OLLA { background: #ebf4dd; color: #4d7a12; }
.modulo-tag { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--muto); }
.modulo-tag i { width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; color: #fff; }
.modulo-tag i svg.ic { width: 13px; height: 13px; }
.mt-mezzi i { background: var(--m-mezzi); } .mt-certificazioni i { background: var(--m-cert); }
.mt-formazione i { background: var(--m-form); } .mt-persone i { background: var(--m-pers); }
.mt-bandi i { background: #8a5a00; } .mt-personali i { background: #6b4fa0; }

/* tabelle */
.tabella { width: 100%; border-collapse: separate; border-spacing: 0; }
.tabella th { text-align: left; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muto);
  padding: 10px 14px; border-bottom: 1px solid var(--linea); background: var(--carta2); white-space: nowrap; }
.tabella th:first-child { border-top-left-radius: 10px; } .tabella th:last-child { border-top-right-radius: 10px; }
.tabella td { padding: 12px 14px; border-bottom: 1px solid var(--linea2); vertical-align: middle; }
.tabella tr:last-child td { border-bottom: 0; }
.tabella tbody tr:hover td { background: #fafcfb; }
.tabella .destra { text-align: right; }
.tab-scorri { overflow-x: auto; }

/* filtri */
.filtri { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; margin-bottom: 16px; }
.filtri .campo { min-width: 170px; }
.filtri .cerca { flex: 1; min-width: 220px; }
.chip-filtri { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 7px 13px; border-radius: 999px; background: #fff; border: 1px solid var(--linea);
  color: var(--ink2); font-weight: 600; font-size: 13px; text-decoration: none !important; }
.chip b { font-variant-numeric: tabular-nums; color: var(--ink); }
.chip:hover { border-color: #bccaca; color: var(--ink); }
.chip.on { background: var(--teal8); color: #fff; border-color: var(--teal8); }
.chip.on b { color: #fff; }
.chip .punto { width: 8px; height: 8px; border-radius: 50%; }

/* persona / avatar */
.avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 13px;
  color: #fff; flex: none; background: linear-gradient(135deg, #1a7184, #004252); }
.avatar.OLLA { background: linear-gradient(135deg, #8cc63f, #4f7a14); }
.avatar.grande { width: 72px; height: 72px; font-size: 24px; box-shadow: 0 0 0 4px #fff, 0 6px 20px rgba(0,49,61,.25); }
.chi { display: flex; align-items: center; gap: 12px; min-width: 0; }
.chi b { display: block; font-weight: 600; }
.chi small { display: block; color: var(--muto); font-size: 12.5px; }

/* elenco voci (scadenze) */
.voci { list-style: none; margin: 0; padding: 0; }
.voce { display: grid; grid-template-columns: 58px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 20px;
  border-top: 1px solid var(--linea2); }
.voce:first-child { border-top: 0; }
.voce:hover { background: #fafcfb; }
.data-blocco { width: 58px; height: 58px; border-radius: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: var(--grigio1); color: var(--ink2); line-height: 1; }
.data-blocco b { font-size: 21px; font-weight: 700; letter-spacing: -.02em; }
.data-blocco small { font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; margin-top: 4px; }
.data-blocco.scaduta, .data-blocco.mancante { background: var(--rosso1); color: var(--rosso); }
.data-blocco.urgente { background: var(--arancio1); color: var(--arancio); }
.data-blocco.vicina { background: var(--giallo1); color: var(--giallo); }
.data-blocco.prossima { background: var(--azzurro1); color: var(--azzurro); }
.voce .cosa { min-width: 0; }
.voce .cosa .riga1 { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.voce .cosa b { font-weight: 600; }
.voce .cosa .riga2 { color: var(--ink2); font-size: 13.5px; margin-top: 3px; overflow: hidden; text-overflow: ellipsis; }
.voce .cosa .riga3 { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 6px; }
.voce .vai { color: var(--muto); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; }
.voce:hover .vai { background: var(--teal0); color: var(--teal8); }
.gruppo-titolo { padding: 14px 20px 8px; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muto);
  background: var(--carta2); border-top: 1px solid var(--linea2); display: flex; align-items: center; gap: 8px; }
.gruppo-titolo:first-child { border-top: 0; border-radius: var(--r) var(--r) 0 0; }
.gruppo-titolo .punto { width: 9px; height: 9px; border-radius: 50%; }
.vuoto { padding: 34px 20px; text-align: center; color: var(--muto); }
.vuoto svg.ic { width: 34px; height: 34px; color: #a8c4a0; display: block; margin: 0 auto 10px; }

/* pagina Oggi */
.benvenuto { position: relative; overflow: hidden; border-radius: 20px; padding: 28px 30px; color: #e8f2f3; margin-bottom: 22px;
  background: radial-gradient(1200px 300px at 100% 0%, rgba(140,198,63,.18), transparent 60%),
              linear-gradient(120deg, #00313d 0%, #004252 55%, #0b5a6b 100%);
  box-shadow: 0 16px 40px rgba(0,49,61,.25); }
.benvenuto::after { content: ""; position: absolute; right: -30px; bottom: -40px; width: 260px; height: 200px; opacity: .09;
  background: url("/static/marchio-bianco.png") no-repeat center / contain; }
.benvenuto .sopra { color: #9fd06a; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.benvenuto h1 { color: #fff; font-size: 30px; margin-top: 6px; }
.benvenuto p { margin: 8px 0 0; color: #bcd6da; max-width: 640px; }
.benvenuto .conteggi { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; position: relative; z-index: 1; }
.benvenuto .conteggi a { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 12px; color: #fff; text-decoration: none;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); backdrop-filter: blur(4px); }
.benvenuto .conteggi a:hover { background: rgba(255,255,255,.14); }
.benvenuto .conteggi b { font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; }
.benvenuto .conteggi span { font-size: 12.5px; line-height: 1.2; color: #cfe2e5; }
.benvenuto .conteggi .punto { width: 10px; height: 10px; border-radius: 50%; }

.tessera { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 20px; border-radius: 18px; background: #fff;
  box-shadow: var(--ombra); border: 1px solid var(--linea2); color: var(--ink); text-decoration: none !important; transition: box-shadow .2s, transform .2s;
  overflow: hidden; }
.tessera:hover { box-shadow: var(--ombra2); transform: translateY(-2px); color: var(--ink); }
.tessera::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--col, var(--teal8)); }
.tessera .t-testa { display: flex; align-items: center; gap: 12px; }
.tessera .t-icona { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; color: #fff; background: var(--col, var(--teal8));
  box-shadow: 0 6px 16px color-mix(in srgb, var(--col, #004252) 35%, transparent); }
.tessera .t-icona svg.ic { width: 22px; height: 22px; }
.tessera .t-testa b { font-size: 17px; font-weight: 700; display: block; }
.tessera .t-testa small { color: var(--muto); font-size: 12.5px; }
.tessera .numeri { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.tessera .numeri div { background: var(--carta2); border: 1px solid var(--linea2); border-radius: 11px; padding: 10px 12px; }
.tessera .numeri b { display: block; font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.tessera .numeri span { font-size: 11.5px; color: var(--muto); font-weight: 600; }
.tessera .numeri .rosso b { color: var(--rosso); } .tessera .numeri .giallo b { color: var(--giallo); } .tessera .numeri .verde b { color: var(--verde); }
.tessera .t-piede { display: flex; align-items: center; justify-content: space-between; font-size: 13px; font-weight: 600; color: var(--teal7); }
.tessera .t-piede svg.ic { transition: transform .2s; }
.tessera:hover .t-piede svg.ic { transform: translateX(3px); }
.col-mezzi { --col: var(--m-mezzi); } .col-certificazioni { --col: var(--m-cert); } .col-formazione { --col: var(--m-form); } .col-persone { --col: var(--m-pers); }

.mio { display: flex; gap: 12px; align-items: center; padding: 12px 20px; border-top: 1px solid var(--linea2); }
.mio:first-child { border-top: 0; }
.mio .ico { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--teal0); color: var(--teal8); flex: none; }
.mio .ico.ok { background: var(--verde1); color: var(--verde); } .mio .ico.no { background: var(--rosso1); color: var(--rosso); }
.mio .ico.att { background: var(--giallo1); color: var(--giallo); }
.mio div { min-width: 0; } .mio b { display: block; font-weight: 600; font-size: 14px; } .mio small { color: var(--muto); font-size: 12.5px; }

/* scheda persona */
.scheda-testa { display: flex; gap: 20px; align-items: center; padding: 22px 24px; border-radius: 18px; margin-bottom: 20px; background: #fff;
  box-shadow: var(--ombra); border: 1px solid var(--linea2); flex-wrap: wrap; }
.scheda-testa .info { flex: 1; min-width: 220px; }
.scheda-testa h1 { font-size: 24px; }
.scheda-testa .dettagli { display: flex; gap: 8px 16px; flex-wrap: wrap; margin-top: 8px; color: var(--ink2); font-size: 13.5px; }
.scheda-testa .dettagli span { display: inline-flex; align-items: center; gap: 6px; }
.scheda-testa .dettagli svg.ic { width: 15px; height: 15px; color: var(--muto); }
.dati { display: grid; grid-template-columns: 160px 1fr; gap: 10px 16px; margin: 0; }
.dati dt { color: var(--muto); font-size: 13px; font-weight: 500; }
.dati dd { margin: 0; font-weight: 500; }
.barra-stato { display: flex; height: 8px; border-radius: 99px; overflow: hidden; background: var(--grigio1); margin: 6px 0 4px; }
.barra-stato i { display: block; height: 100%; }

/* accesso */
.accesso { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); background: #fff; }
.accesso .lato { position: relative; overflow: hidden; color: #fff; padding: 48px 56px; display: flex; flex-direction: column; justify-content: space-between;
  background: radial-gradient(900px 500px at 0% 100%, rgba(140,198,63,.22), transparent 60%),
              radial-gradient(700px 400px at 100% 0%, rgba(26,113,132,.5), transparent 60%),
              linear-gradient(150deg, #00262f 0%, #004252 60%, #0b5a6b 100%); }
.accesso .lato::after { content: ""; position: absolute; right: -80px; bottom: -60px; width: 520px; height: 420px; opacity: .07;
  background: url("/static/marchio-bianco.png") no-repeat center / contain; }
.accesso .lato .marchio { display: flex; align-items: center; gap: 14px; }
.accesso .lato .marchio img { height: 52px; }
.accesso .lato .marchio b { font-size: 20px; font-weight: 800; display: block; line-height: 1.1; }
.accesso .lato .marchio small { color: #9fd06a; font-size: 11.5px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
.accesso .lato h1 { color: #fff; font-size: 40px; line-height: 1.12; letter-spacing: -.025em; max-width: 520px; }
.accesso .lato h1 em { font-style: normal; color: #a9d86e; }
.accesso .lato .moduli-lista { display: flex; flex-direction: column; gap: 12px; margin-top: 30px; max-width: 460px; }
.accesso .lato .moduli-lista div { display: flex; gap: 14px; align-items: center; padding: 12px 14px; border-radius: 14px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); }
.accesso .lato .moduli-lista i { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: rgba(255,255,255,.12); }
.accesso .lato .moduli-lista b { display: block; font-size: 14.5px; }
.accesso .lato .moduli-lista span { font-size: 12.5px; color: #b4cfd3; }
.accesso .lato .loghi { display: flex; gap: 26px; align-items: center; position: relative; z-index: 1; }
.accesso .lato .loghi img { height: 46px; opacity: .92; }
.accesso .modulo { display: flex; align-items: center; justify-content: center; padding: 40px 24px; background: var(--fondo); }
.accesso form { width: 100%; max-width: 400px; background: #fff; padding: 34px 32px; border-radius: 20px; box-shadow: var(--ombra2); border: 1px solid var(--linea2); }
.accesso form h2 { font-size: 22px; margin-bottom: 4px; }
.accesso form .sotto { color: var(--muto); margin-bottom: 22px; }
.accesso form .campo { margin-bottom: 14px; }
.accesso .codice { letter-spacing: .5em; text-align: center; font-size: 22px !important; font-weight: 700; }
@media (max-width: 900px) {
  .accesso { grid-template-columns: 1fr; }
  .accesso .lato { padding: 28px 24px; } .accesso .lato h1 { font-size: 28px; margin-top: 18px; }
  .accesso .lato .moduli-lista, .accesso .lato .loghi { display: none; }
}

/* varie */
.passi { counter-reset: p; list-style: none; padding: 0; margin: 0; }
.passi li { position: relative; padding: 0 0 14px 40px; }
.passi li::before { counter-increment: p; content: counter(p); position: absolute; left: 0; top: -2px; width: 26px; height: 26px; border-radius: 50%;
  background: var(--teal1); color: var(--teal8); font-weight: 700; font-size: 13px; display: grid; place-items: center; }
code, .mono { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 13px; }
.qr svg { width: 200px; height: 200px; display: block; }
.segreto { font-family: ui-monospace, Consolas, monospace; font-size: 15px; letter-spacing: .12em; padding: 10px 14px; border-radius: 10px;
  background: var(--carta2); border: 1px dashed #c6d3d3; word-break: break-all; }
.piede-pagina { text-align: center; color: var(--muto); font-size: 12px; padding: 20px; }
.piede-pagina img { height: 18px; vertical-align: -4px; margin: 0 6px; opacity: .8; }
@media print { body { background: #fff; } .carta { box-shadow: none; } .no-stampa { display: none !important; } }

@media (max-width: 1000px) { .oggi-sotto > aside { order: -1; } }

/* ---- cornice dei programmi collegati ---- */
body.con-cornice { height: 100vh; height: 100dvh; overflow: hidden; display: flex; flex-direction: column; }
body.con-cornice .bgcs-barra { position: relative; flex: none; }
.cornice { position: relative; flex: 1; min-height: 0; background: #fff; }
.cornice iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; background: #fff; }
.cornice-carica { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; background: var(--fondo); transition: opacity .35s ease; }
.cornice-carica.via { opacity: 0; pointer-events: none; }
.cc-icona { width: 66px; height: 66px; border-radius: 19px; background: var(--mc, var(--teal8)); color: #fff; display: grid; place-items: center;
  box-shadow: 0 14px 34px rgba(16,39,45,.2); margin-bottom: 6px; }
.cc-icona svg.ic { width: 32px; height: 32px; }
.cornice-carica b { font-size: 18px; font-weight: 700; }
.cornice-carica span { color: var(--muto); font-size: 13.5px; }
.cc-barra { width: 180px; height: 4px; border-radius: 4px; background: var(--linea); overflow: hidden; margin-top: 8px; }
.cc-barra i { display: block; width: 40%; height: 100%; background: var(--mc, var(--teal8)); border-radius: 4px; animation: cc-scorri 1.1s ease-in-out infinite; }
@keyframes cc-scorri { 0% { transform: translateX(-100%); } 100% { transform: translateX(260%); } }
.cornice-noscript { padding: 30px; text-align: center; }
/* avviso quando un programma collegato non risponde */
body.ospite-avviso { min-height: 100vh; display: grid; place-items: center; background: var(--fondo); }
.avviso-ospite { max-width: 540px; text-align: center; padding: 32px 24px; }
.avviso-ospite .ico { width: 58px; height: 58px; border-radius: 50%; background: var(--arancio1); color: var(--arancio); font-weight: 800; font-size: 26px;
  display: grid; place-items: center; margin: 0 auto 16px; }
.avviso-ospite h1 { font-size: 21px; margin-bottom: 8px; }
.avviso-ospite p { color: var(--ink2); }
.avviso-ospite .azioni { display: flex; gap: 10px; justify-content: center; margin-top: 18px; flex-wrap: wrap; }

/* ---- Oggi: programmi per area ---- */
.area-testa { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin: 26px 2px 12px; }
.area-testa h2 { font-size: 13px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; color: var(--teal7); }
.area-testa span { font-size: 13px; color: var(--muto); }
.tessere { display: grid; grid-template-columns: repeat(auto-fill, minmax(282px, 1fr)); gap: 16px; }
.tessera .t-nome { min-width: 0; flex: 1; }
.tessera .t-nome a { color: inherit; text-decoration: none; }
.tessera a.copri::after { content: ""; position: absolute; inset: 0; z-index: 0; }
.tessera .t-stato { width: 10px; height: 10px; border-radius: 50%; flex: none; align-self: flex-start; margin-top: 6px; }
.tessera .t-stato.ok { background: #49b05a; box-shadow: 0 0 0 4px rgba(73,176,90,.16); }
.tessera .t-stato.no { background: #e0533d; box-shadow: 0 0 0 4px rgba(224,83,61,.16); }
.tessera .t-descr { margin: 0; color: var(--ink2); font-size: 13.5px; line-height: 1.45; min-height: 40px; }
.tessera .numeri.n2 { grid-template-columns: repeat(2, 1fr); }
.tessera .numeri.n1 { grid-template-columns: 1fr; }
.tessera .numeri b { font-size: 21px; }
.tessera .numeri span { display: block; line-height: 1.25; }
.tessera .t-piede { margin-top: auto; gap: 10px; }
.tessera .t-piede > span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muto); font-weight: 600; }
.tessera .t-piede b.rosso { color: var(--rosso); }
.tessera .t-vai { display: inline-flex; align-items: center; gap: 6px; color: var(--teal7); flex: none; }
.chip-mini { position: relative; z-index: 1; display: inline-flex; padding: 3px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 600;
  background: var(--teal0); color: var(--teal7); border: 1px solid var(--teal1); text-decoration: none !important; }
.chip-mini:hover { background: var(--teal1); color: var(--teal8); }

/* ---- segnalazioni dai programmi ---- */
.segnalazioni { list-style: none; margin: 0; padding: 0 0 6px; }
.segnalazioni li a { display: flex; align-items: center; gap: 12px; padding: 11px 20px; border-top: 1px solid var(--linea2); color: var(--ink);
  text-decoration: none; }
.segnalazioni li:first-child a { border-top: 0; }
.segnalazioni li a:hover { background: var(--carta2); }
.segnalazioni .s-mod { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; color: #fff; flex: none; }
.segnalazioni .s-mod svg.ic { width: 17px; height: 17px; }
.segnalazioni .s-testo { flex: 1; min-width: 0; }
.segnalazioni .s-testo b { display: block; font-weight: 600; font-size: 14px; }
.segnalazioni .s-testo small { display: block; color: var(--muto); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---- utenti: programmi e ruoli ---- */
.sel-piccola { padding: 6px 10px; border-radius: 9px; border: 1px solid #d3dddd; background: #fff; font: inherit; font-size: 13px; }
.ruoli-chip { display: flex; flex-wrap: wrap; gap: 5px; max-width: 560px; }
.ruoli-chip .rc { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px 3px 3px; border-radius: 999px; background: var(--carta2);
  border: 1px solid var(--linea2); font-size: 12px; font-weight: 600; white-space: nowrap; }
.ruoli-chip .rc i { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; color: #fff; }
.ruoli-chip .rc i svg.ic { width: 12px; height: 12px; }
.ruoli-chip .rc small { color: var(--muto); font-weight: 500; }
.area-ruoli { margin-top: 10px; }
.area-ruoli + .area-ruoli { margin-top: 18px; }
.area-ruoli h3 { font-size: 11.5px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; color: var(--teal6); margin: 0 0 4px; }
.riga-ruolo { display: flex; gap: 16px; align-items: center; padding: 11px 0; border-top: 1px solid var(--linea2); flex-wrap: wrap; }
.area-ruoli h3 + .riga-ruolo { border-top: 0; }
.riga-ruolo .chi { width: 240px; }
.riga-ruolo .chi small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 180px; display: block; }
.riga-prog { padding: 14px 0; border-top: 1px solid var(--linea2); }
.riga-prog .chi { margin-bottom: 10px; }
.riga-prog .campi { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 760px) { .riga-prog .campi { grid-template-columns: 1fr 1fr; } }
.log-breve { white-space: pre-wrap; background: var(--carta2); border: 1px solid var(--linea2); border-radius: 8px; padding: 6px 8px; margin: 6px 0 0;
  max-width: 420px; max-height: 120px; overflow: auto; font-size: 11px; }
.tessere .tessera .numeri { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tessere .tessera .numeri.n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tessere .tessera .numeri div { padding: 9px 10px; min-width: 0; }
.tessere .tessera .numeri b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
