/* ==========================================================================
   Nixsa Care · demo Ospedale (Casa di cura San Luca)
   Solo classi con prefisso osp-. Usa i colori e i componenti di sito.css e demo.css.
   ========================================================================== */

/* Elementi comuni */
.osp-nota { margin-top: 10px; font-size: 12.5px; line-height: 1.5; color: var(--muted); }
.osp-nota .ico { width: 15px; height: 15px; display: inline-block; vertical-align: -3px; margin-right: 4px; }
.osp-cod { display: inline-block; padding: 1px 7px; border-radius: 6px; background: var(--tint); color: var(--navy); font-family: var(--mono); font-size: 12px; font-weight: 700; white-space: nowrap; }
.osp-h3 { margin: 20px 0 10px; font-size: 15px; font-weight: 600; letter-spacing: -.01em; color: var(--ink); }
.osp-banner { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 14px; margin-bottom: 14px; border-radius: 14px; background: var(--tint); color: var(--navy); font-size: 14px; }
.osp-banner > .ico { color: var(--blue); }
.osp-banner span { flex: 1; min-width: 180px; }
.osp-banner--ok { background: var(--ok-s); color: #1F5A40; }
.osp-banner--ok > .ico { color: var(--ok); }
.osp-legenda { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12.5px; color: var(--muted); }
.osp-legenda span { display: inline-flex; align-items: center; gap: 6px; }
.osp-legenda i { display: inline-block; width: 12px; height: 12px; border-radius: 4px; }
.osp-ol { display: grid; gap: 8px; padding-left: 20px; list-style: decimal; font-size: 14px; color: var(--ink-2); }
.osp-elenco { display: grid; gap: 10px; font-size: 14.5px; }
.osp-elenco li { display: flex; gap: 10px; line-height: 1.45; }
.osp-elenco .ico { width: 18px; height: 18px; margin-top: 2px; color: var(--ok); }
.osp-elenco li:last-child .ico { color: var(--blue); }

/* Cruscotto: occupazione per reparto */
.osp-occupazione { display: grid; gap: 14px; }
.osp-occ-riga__t { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; font-size: 13.5px; }
.osp-occ-riga__t > b { color: var(--ink); font-weight: 600; }
.osp-occ-riga__t span { color: var(--muted); }
.osp-occ-riga__t span b { color: var(--navy); }
.osp-occ { display: flex; height: 14px; border-radius: 7px; overflow: hidden; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); }
.osp-occ i { display: block; height: 100%; transition: width .6s var(--ease); }
.osp-occ i.occ { background: #8FB0D9; }
.osp-occ i.dim { background: var(--gold-l); }
.osp-occ i.sanif { background: #E7B65C; }
.osp-occ i.blocc { background: #C9CED6; }

/* Posti letto */
.osp-letti { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 16px; align-items: start; }
.osp-lato { position: sticky; top: 126px; }
.osp-rep + .osp-rep { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.osp-rep__t { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.osp-rep__t h3 { font-size: 16px; font-weight: 600; letter-spacing: -.015em; color: var(--ink); }
.osp-rep__t h3 small { font-size: 13px; font-weight: 500; color: var(--muted); }
.osp-rep__t > span { display: flex; gap: 6px; flex-wrap: wrap; }
.osp-camere { display: grid; grid-template-columns: repeat(auto-fill, minmax(172px, 1fr)); gap: 10px; }
.osp-camera { padding: 8px; border: 1px solid var(--line); border-radius: 14px; background: #FBFBFC; min-width: 0; }
.osp-camera__t { display: flex; justify-content: space-between; gap: 6px; padding: 0 3px 6px; font-size: 11.5px; font-weight: 600; color: var(--muted); }
.osp-camera__letti { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.osp-letto { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 1px; min-width: 0; min-height: 70px; padding: 7px 8px; border: 1px solid transparent; border-radius: 10px; text-align: left; font-size: 12px; line-height: 1.25; transition: transform .15s var(--ease), box-shadow .15s; }
.osp-letto:hover { transform: translateY(-1px); box-shadow: 0 6px 14px -8px rgba(14,26,43,.35); }
.osp-letto b { font-size: 11px; font-weight: 700; opacity: .75; }
.osp-letto span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12.5px; font-weight: 600; }
.osp-letto small { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; opacity: .8; }
.osp-letto--occ { background: #DDE6F2; color: var(--navy); }
.osp-letto--dim { background: var(--gold-s); color: #7A5719; }
.osp-letto--libero { background: #fff; border: 1.5px dashed #8CC0A3; color: var(--ok); }
.osp-letto--sanif { background: var(--warn-s); color: #8E5C14; }
.osp-letto--bloccato { background: repeating-linear-gradient(135deg, #EEF0F3 0 6px, #E4E7EC 6px 12px); color: var(--muted); }
.osp-letto--meta { border: 2px solid var(--ok); background: var(--ok-s); box-shadow: 0 0 0 3px rgba(47,125,91,.18); animation: osp-pulsa 1.6s ease-in-out infinite; }
.osp-letto--sel { box-shadow: 0 0 0 3px var(--navy); }
@keyframes osp-pulsa { 50% { box-shadow: 0 0 0 6px rgba(47,125,91,.08); } }
.osp-punto { position: absolute; top: 7px; right: 7px; width: 9px; height: 9px; border-radius: 50%; background: var(--warn); box-shadow: 0 0 0 2px #fff; }
.osp-punto--ko { background: var(--ko); }
.osp-punto--iso { background: #7A55B3; right: 20px; }
.osp-legenda .osp-punto { box-shadow: none; }
.osp-attesa { display: grid; gap: 3px; width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 14px; background: #fff; text-align: left; font-size: 13px; color: var(--ink-2); transition: border-color .2s, background .2s, box-shadow .2s; }
.osp-attesa:hover:not(:disabled) { border-color: var(--line-2); }
.osp-attesa:disabled { cursor: default; }
.osp-attesa[aria-pressed="true"] { border-color: var(--navy); background: var(--tint); box-shadow: 0 0 0 3px rgba(20,36,59,.1); }
.osp-attesa__t { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.osp-attesa__t b { font-size: 14.5px; font-weight: 600; color: var(--ink); }
.osp-attesa small { font-size: 12.5px; color: var(--muted); }
.osp-attesa small b { color: var(--navy); }
.osp-azioni { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.osp-dettaglio .dati { grid-template-columns: 96px 1fr; font-size: 13.5px; }

/* Nuovo ricovero */
.osp-campi { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.osp-campi label, .osp-lab { display: grid; gap: 5px; font-size: 12.5px; font-weight: 600; color: var(--ink-2); min-width: 0; }
.osp-campi .campo-d { width: 100%; min-width: 0; }
.osp-campi__largo { grid-column: span 2; }
.osp-riga2 { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 24px; margin-top: 16px; align-items: start; }
.osp-etichetta { display: block; margin-bottom: 6px; font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.osp-lab textarea { min-height: 120px; }

/* Scheda: NEWS2 */
.osp-news-mini { border-left: 4px solid var(--ok); }
.osp-news-mini b { display: block; font-size: 44px; font-weight: 600; letter-spacing: -.04em; line-height: 1; color: var(--navy); }
.osp-news-mini span { display: block; margin-top: 4px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.osp-news-mini p { margin-top: 8px; font-size: 13px; color: var(--muted); }
.osp-liv--warn { border-left-color: var(--warn); }
.osp-liv--ko { border-left-color: var(--ko); }
.osp-news { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.osp-param { display: grid; gap: 4px; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: #FBFBFC; font-size: 12.5px; font-weight: 600; color: var(--ink-2); min-width: 0; }
.osp-param small { font-size: 11.5px; font-weight: 500; color: var(--muted); }
.osp-param__in { display: flex; align-items: center; gap: 8px; }
.osp-param__in .campo-d { flex: 1; min-width: 0; width: 100%; height: 38px; font-weight: 600; }
.osp-pt { display: inline-grid; place-items: center; flex-shrink: 0; width: 28px; height: 28px; border-radius: 8px; background: var(--bg-2); color: var(--muted); font-style: normal; font-size: 13px; font-weight: 700; }
.osp-pt--1 { background: #FFF2C6; color: #85621A; }
.osp-pt--2 { background: #FBDCB4; color: #8F5310; }
.osp-pt--3 { background: var(--ko-s); color: var(--ko); }
.osp-scala2 { display: flex; gap: 8px; align-items: flex-start; margin-top: 10px; font-size: 12.5px; color: var(--ink-2); }
.osp-scala2 input { margin-top: 2px; accent-color: var(--blue); flex-shrink: 0; }
.osp-esito { display: flex; gap: 14px; align-items: flex-start; margin-top: 12px; padding: 14px; border-radius: 14px; border-left: 4px solid var(--ok); background: var(--ok-s); }
.osp-esito > b { font-size: 46px; font-weight: 600; line-height: .95; letter-spacing: -.04em; color: var(--navy); min-width: 44px; }
.osp-esito strong { display: block; font-size: 14px; color: var(--ink); }
.osp-esito p { margin-top: 3px; font-size: 13px; color: var(--ink-2); line-height: 1.45; }
.osp-esito.osp-liv--warn { background: var(--warn-s); border-left-color: var(--warn); }
.osp-esito.osp-liv--ko { background: var(--ko-s); border-left-color: var(--ko); }
.osp-c1 { background: #FFF6D8; }
.osp-c2 { background: #FDE7CC; }
.osp-c3 { background: var(--ko-s); color: var(--ko); font-weight: 700; }
.osp-soglie { display: grid; gap: 6px; font-size: 13px; }
.osp-soglie div { display: grid; grid-template-columns: 128px 1fr; gap: 10px; align-items: center; color: var(--ink-2); }
.osp-soglie .chip { justify-self: start; }

/* Consegne */
.osp-turno { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 12px 16px; font-size: 13.5px; }
.osp-turno > b { color: var(--ink); font-weight: 600; margin-right: 4px; }
.osp-sbar-lista { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.osp-sbar { position: relative; display: flex; flex-direction: column; padding: 14px 16px; background: #fff; border: 1px solid var(--line); border-radius: 16px; min-width: 0; }
.osp-sbar--alto { border-color: #EBC487; box-shadow: inset 4px 0 0 var(--warn); }
.osp-sbar__t { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.osp-sbar dl { display: grid; grid-template-columns: 22px 1fr; gap: 6px 8px; font-size: 13px; line-height: 1.45; flex: 1; }
.osp-sbar dt { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; background: var(--tint); color: var(--blue); font-size: 11.5px; font-weight: 700; }
.osp-sbar dd { margin: 0; color: var(--ink-2); min-width: 0; }
.osp-compiti { display: grid; gap: 4px; }
.osp-compiti label { display: flex; gap: 8px; align-items: flex-start; cursor: pointer; }
.osp-compiti input { margin-top: 2px; width: 16px; height: 16px; accent-color: var(--ok); flex-shrink: 0; }
.osp-compiti input:checked + span { color: var(--muted); text-decoration: line-through; }
.osp-sbar__link { align-self: flex-end; margin-top: 8px; font-size: 13px; font-weight: 600; color: var(--blue); }
.osp-cons-lato { position: sticky; top: 126px; }
.osp-cons-lato textarea { min-height: 80px; }

/* Sale operatorie: Gantt */
.osp-gantt { min-width: 780px; }
.osp-gantt__riga { display: grid; grid-template-columns: 150px minmax(0, 1fr); align-items: stretch; border-top: 1px solid var(--line); }
.osp-gantt__scala { border-top: 0; }
.osp-gantt__scala .osp-pista { height: 26px; background: none; }
.osp-gantt__scala .osp-pista span { position: absolute; top: 4px; transform: translateX(-50%); font-size: 11.5px; color: var(--muted); font-family: var(--mono); }
.osp-gantt__sala { display: flex; flex-direction: column; justify-content: center; padding: 10px 12px 10px 0; }
.osp-gantt__sala b { font-size: 14px; font-weight: 600; color: var(--ink); }
.osp-gantt__sala small { font-size: 11.5px; color: var(--muted); }
.osp-pista { position: relative; height: 76px; }
.osp-griglia { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--line); }
.osp-seduta { position: absolute; top: 6px; bottom: 6px; border-radius: 10px; background: var(--tint); }
.osp-int { position: absolute; top: 10px; bottom: 10px; display: flex; flex-direction: column; justify-content: center; gap: 1px; min-width: 0; padding: 5px 8px; overflow: hidden; border: 1px solid var(--line-2); border-radius: 10px; background: #fff; text-align: left; color: var(--navy); line-height: 1.2; transition: transform .15s var(--ease), box-shadow .15s; }
.osp-int:hover { transform: translateY(-1px); box-shadow: 0 6px 14px -8px rgba(14,26,43,.4); z-index: 2; }
.osp-int b { font-size: 12.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.osp-int small { font-size: 11px; opacity: .8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.osp-int--sala { background: var(--blue); border-color: var(--blue); color: #fff; }
.osp-int--risveglio { background: var(--gold-l); border-color: var(--gold-l); color: var(--ink); }
.osp-int--concluso { background: #DCEEE3; border-color: #BFDCCB; color: #1F5A40; }
.osp-int--sel { box-shadow: 0 0 0 3px rgba(20,36,59,.35); z-index: 3; }
.osp-ora { position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: var(--ko); z-index: 4; pointer-events: none; }
.osp-ora__et { position: absolute; top: 3px; transform: translateX(-50%); padding: 1px 6px; border-radius: 6px; background: var(--ko); color: #fff; font-style: normal; font-size: 11px; font-weight: 700; font-family: var(--mono); z-index: 5; }
.osp-int-testa { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.osp-int-dati { margin-top: 14px; grid-template-columns: 100px 1fr; }

/* Checklist OMS */
.osp-check { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.osp-fase { display: flex; flex-direction: column; padding: 14px; border: 1px solid var(--line); border-radius: 16px; background: #fff; opacity: .62; min-width: 0; }
.osp-fase--attiva { opacity: 1; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(43,72,112,.1); }
.osp-fase--fatta { opacity: 1; background: #F3FAF6; border-color: #BFDCCB; }
.osp-fase__t { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.osp-fase__t b { font-size: 16px; font-weight: 700; color: var(--navy); }
.osp-fase > small { margin-top: 2px; font-size: 12.5px; color: var(--muted); }
.osp-voci { margin-top: 8px; flex: 1; }
.osp-voce { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; border-top: 1px solid var(--line); font-size: 13px; line-height: 1.4; color: var(--ink-2); cursor: pointer; }
.osp-voce input { width: 18px; height: 18px; margin-top: 0; flex-shrink: 0; accent-color: var(--ok); }
.osp-fase--fatta .osp-voce { color: var(--ink-2); }

/* Dimissione e SDO */
.osp-dim { grid-template-columns: 300px minmax(0, 1fr); align-items: start; }
.osp-dim-testa { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.osp-passi { margin-bottom: 18px; }
.osp-passi .passo-r { text-align: left; width: 100%; cursor: pointer; }
.osp-passo--on { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(20,36,59,.08); }
.osp-passo--on i { background: var(--navy); color: #fff; }
.osp-drg { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 16px 20px; border-radius: 18px; background: var(--navy); color: #fff; }
.osp-drg__n small, .osp-drg__v small { display: block; font-size: 12px; color: rgba(255,255,255,.65); }
.osp-drg__n b { display: block; font-size: 40px; font-weight: 600; line-height: 1; letter-spacing: -.04em; color: var(--gold-l); font-variant-numeric: tabular-nums; }
.osp-drg__d b { display: block; font-size: 15px; font-weight: 600; line-height: 1.35; }
.osp-drg__d span { display: block; margin-top: 3px; font-size: 12.5px; color: rgba(255,255,255,.7); }
.osp-drg__d em { display: flex; gap: 6px; align-items: flex-start; margin-top: 6px; font-style: normal; font-size: 12.5px; color: #F6C9A0; }
.osp-drg__d em .ico { width: 15px; height: 15px; margin-top: 1px; }
.osp-drg__v { text-align: right; }
.osp-drg__v b { display: block; font-size: 24px; font-weight: 600; letter-spacing: -.03em; white-space: nowrap; }
.osp-codici { display: grid; gap: 6px; }
.osp-codice { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 10px; border: 1px solid var(--line); border-radius: 12px; background: #fff; font-size: 13.5px; min-width: 0; }
.osp-codice code { flex-shrink: 0; padding: 2px 7px; border-radius: 6px; background: var(--tint); color: var(--navy); font-family: var(--mono); font-size: 12.5px; font-weight: 700; }
.osp-codice > span { flex: 1; min-width: 0; color: var(--ink-2); line-height: 1.35; }
.osp-codice > span small { display: block; font-size: 11.5px; color: var(--muted); }
.osp-codice button { flex-shrink: 0; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; color: var(--muted); }
.osp-codice button:hover { background: var(--ko-s); color: var(--ko); }
.osp-codice button .ico { width: 15px; height: 15px; }
.osp-aggiungi { display: flex; gap: 6px; margin-top: 8px; }
.osp-aggiungi .campo-d { flex: 1; min-width: 0; width: 100%; height: 36px; font-size: 13px; }
.osp-mod { display: grid; gap: 6px; }
.osp-mod button { padding: 10px 14px; font-size: 14px; }
.osp-avanti { display: flex; justify-content: space-between; gap: 10px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.osp-lettera-az { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 14px; }
.osp-lettera { max-width: 820px; padding: 30px 34px; background: #fff; border: 1px solid var(--line); border-radius: 6px; box-shadow: var(--shadow); font-size: 13.5px; line-height: 1.6; color: var(--ink); }
.osp-lettera__testa { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-bottom: 14px; border-bottom: 2px solid var(--navy); }
.osp-lettera__testa b { display: block; font-size: 15px; color: var(--navy); }
.osp-lettera__testa small { display: block; font-size: 11.5px; color: var(--muted); }
.osp-lettera h3 { margin: 18px 0 4px; font-size: 20px; font-weight: 600; letter-spacing: -.02em; color: var(--navy); }
.osp-lettera__meta { color: var(--ink-2); }
.osp-lettera h4 { margin: 14px 0 3px; font-size: 13px; font-weight: 700; color: var(--blue); }
.osp-lettera ul { display: grid; gap: 2px; padding-left: 18px; list-style: disc; }
.osp-lettera__firma { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-top: 22px; padding-top: 14px; border-top: 1px solid var(--line); }
.osp-lettera__firma small { color: var(--muted); }
.osp-timbro { display: flex; gap: 10px; align-items: center; padding: 10px 14px; border: 1.5px dashed var(--line-2); border-radius: 12px; font-size: 12.5px; color: var(--muted); }
.osp-timbro--ok { border: 1.5px solid #9FCDB3; background: var(--ok-s); color: #1F5A40; }
.osp-timbro .ico { color: var(--ok); }

/* App paziente */
.osp-tl { display: grid; gap: 0; }
.osp-tl li { position: relative; display: grid; grid-template-columns: 16px 1fr; gap: 10px; padding: 0 0 12px; }
.osp-tl li:last-child { padding-bottom: 0; }
.osp-tl li::before { content: ""; position: absolute; left: 7px; top: 14px; bottom: 0; width: 2px; background: var(--line); }
.osp-tl li:last-child::before { display: none; }
.osp-tl i { width: 16px; height: 16px; margin-top: 2px; border-radius: 50%; border: 2px solid var(--line-2); background: #fff; position: relative; z-index: 1; }
.osp-tl li.fatto i { border-color: var(--ok); background: var(--ok); box-shadow: inset 0 0 0 3px #fff; }
.osp-tl li.fatto::before { background: #BFDCCB; }
.osp-tl li.ora i { border-color: var(--gold); background: var(--gold-l); }
.osp-tl b { display: block; font-size: 13.5px; color: var(--navy); line-height: 1.3; }
.osp-tl small { font-size: 12px; color: var(--muted); }
.osp-doc { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.osp-doc:last-child { border-bottom: 0; }
.osp-doc .btn { min-height: 30px; padding: 0 12px; font-size: 12.5px; }
.osp-lettera-mini { margin: 6px 0 8px; padding: 10px 12px; border-radius: 10px; background: var(--paper); border: 1px solid var(--line); font-size: 12.5px; line-height: 1.45; }
.osp-lettera-mini b { color: var(--navy); }
.osp-lettera-mini small { display: block; margin-bottom: 6px; color: var(--muted); font-size: 11.5px; }
.osp-lettera-mini p { margin-top: 4px; }

/* Responsivo */
@media (max-width: 1280px) {
  .osp-letti { grid-template-columns: minmax(0, 1fr) 300px; }
  .osp-sbar-lista { grid-template-columns: 1fr; }
  .osp-campi { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1180px) {
  .osp-dim { grid-template-columns: 1fr; }
  .osp-check { grid-template-columns: 1fr; }
}
@media (max-width: 1020px) {
  .osp-letti { grid-template-columns: 1fr; }
  .osp-lato { position: static; order: -1; }
  .osp-cons-lato { position: static; }
  .osp-riga2 { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .osp-camere { grid-template-columns: 1fr 1fr; gap: 8px; }
  .osp-camera { padding: 6px; }
  .osp-camera__letti { grid-template-columns: 1fr; }
  .osp-campi { grid-template-columns: 1fr; }
  .osp-campi__largo { grid-column: auto; }
  .osp-news { grid-template-columns: 1fr; }
  .osp-drg { grid-template-columns: 1fr; gap: 10px; }
  .osp-drg__v { text-align: left; }
  .osp-lettera { padding: 20px 18px; }
  .osp-soglie div { grid-template-columns: 1fr; gap: 2px; }
  .osp-dettaglio .dati, .osp-int-dati { grid-template-columns: 1fr; gap: 2px 0; }
  .osp-dettaglio .dati dd, .osp-int-dati dd { margin-bottom: 6px; }
  .osp-aggiungi { flex-wrap: wrap; }
}
.osp-par > *, .osp-riga2 > * { min-width: 0; }
.osp-modulo .multi { max-height: none; }
.osp-modulo .multi label { max-width: 100%; }
@media (max-width: 1020px) { .osp-riga2 { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 720px) {
  .osp-par { grid-template-columns: minmax(0, 1fr); }
  .osp-news { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .osp-param { padding: 8px; }
  .osp-param__in { gap: 6px; }
  .osp-param__in .osp-pt { width: 24px; height: 24px; }
}
.osp-par .d-griglia { grid-template-columns: minmax(0, 1fr); }
.osp-modulo > .btn { white-space: normal; text-align: center; max-width: 100%; height: auto; padding-block: 10px; }
@media (max-width: 720px) {
  .osp-passi { grid-template-columns: 1fr 1fr; gap: 8px; }
  .osp-passi .passo-r { padding: 10px; gap: 8px; }
  .osp-passi .passo-r small { display: none; }
  .osp-dim .osp-attesa small:last-child { display: none; }
  .osp-lato > .blocco:last-child:not(.osp-dettaglio) { display: none; }
}
.osp-tab-larga { min-width: 560px; }
