/* Pagina del dipartimento BIOMORF (scienze biomediche, odontoiatriche e delle immagini morfologiche e funzionali): "la lista di lavoro".
   Intro da sala diagnostica (fondo scuro, fetta di TAC con la linea di scansione, scritte agli angoli come in un visualizzatore di immagini,
   scala di grigi in blu sul bordo), indice come lista di lavoro, sezioni come serie (Serie 1...), divisori con la fetta di TAC,
   finale come referto. Si appoggia a mift.css e dipartimento.css. Prefisso bm-. */

/* ---------- intro ---------- */
.mf-hero.bm-hero { position: relative; isolation: isolate; overflow: hidden; margin-bottom: 52px; color: #fff; text-align: left; background: #00263d; }
.mf-hero.bm-hero::before { display: none; }
/* la fetta di TAC: contorni del torace, mirino e linea di scansione */
.bm-tac { position: absolute; z-index: -1; top: -10px; right: -120px; width: 430px; height: auto; pointer-events: none; opacity: .6; }
.bm-tac circle, .bm-tac ellipse, .bm-tac path, .bm-tac line { fill: none; stroke: #8fd0ff; stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.bm-tac .bm-m { stroke-opacity: .5; stroke-dasharray: 3 5; }
.bm-tac .bm-os { stroke-width: 2.5; }
.bm-tac .bm-sc { stroke: #fff; stroke-width: 2; filter: drop-shadow(0 0 6px #8fd0ff); animation: bm-scorri 6s ease-in-out infinite alternate; }
@keyframes bm-scorri { from { transform: translateY(-120px); } to { transform: translateY(120px); } }
/* le scritte agli angoli, come in un visualizzatore di immagini diagnostiche */
.bm-ov { position: absolute; z-index: 1; margin: 0; font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: 11px; font-weight: 700; line-height: 1.5; letter-spacing: .08em; text-transform: uppercase; color: #8fd0ff; opacity: .8; pointer-events: none; }
.bm-ov--a { top: 12px; left: 16px; } .bm-ov--b { top: 12px; right: 16px; text-align: right; display: none; } .bm-ov--c { bottom: 30px; left: 16px; display: none; } .bm-ov--d { bottom: 30px; right: 16px; text-align: right; }
/* scala di grigi in blu, come nei controlli di qualita' delle immagini */
.bm-grigi { position: absolute; left: 0; right: 0; bottom: 0; height: 14px; background: linear-gradient(90deg, #00141f 0 8.33%, #002b45 8.33% 16.66%, #00406a 16.66% 25%, #005687 25% 33.33%, #176ea5 33.33% 41.66%, #3a8bc2 41.66% 50%, #5da7d9 50% 58.33%, #8fd0ff 58.33% 66.66%, #a9dcff 66.66% 75%, #c3e7ff 75% 83.33%, #dcf1ff 83.33% 91.66%, #f2faff 91.66% 100%); }

.bm-in { max-width: 1280px; margin: 0 auto; padding: 82px 16px 84px; display: grid; gap: 34px; }
.bm-testo { align-self: center; }
.bm-pre { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 16px; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #8fd0ff; }
.bm-pre::before { content: ""; width: 22px; height: 3px; background: #8fd0ff; }
.mf-hero.bm-hero .bm-testo h1 { max-width: 13ch; margin: 0; font-size: clamp(36px, 10.6vw, 54px); line-height: 1.03; letter-spacing: -.02em; color: #fff; text-wrap: balance; }
.mf-hero.bm-hero .bm-testo h1 em { color: #8fd0ff; font-style: normal; background: none; }
.mf-hero.bm-hero .dp-lead { max-width: 30rem; margin: 20px 0 0; font-size: 17px; line-height: 1.55; color: #dcecf9; }

/* ---------- la lista di lavoro: l'indice ---------- */
.bm-lista-w { align-self: center; justify-self: center; width: 100%; max-width: 470px; }
.bm-lista { overflow: hidden; border: 2px solid #8fd0ff; border-radius: 12px; background: #f4f9fe; color: #1a1c1e; box-shadow: 0 0 0 6px rgba(143,208,255,.18), 0 24px 48px rgba(0,10,20,.5); }
.bm-l-t { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0; padding: 11px 16px; background: #005687; color: #fff; font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.bm-l-t i { display: inline-flex; align-items: center; gap: 6px; font-style: normal; color: #8fd0ff; }
.bm-l-t i::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #8fd0ff; animation: bm-batte 1.6s ease-in-out infinite; }
@keyframes bm-batte { 50% { opacity: .25; } }
.bm-l-s { margin: 0; padding: 12px 16px 10px; font-family: 'Poppins', sans-serif; font-weight: 800; font-size: 21px; line-height: 1.15; color: #005687; }
.bm-studi { list-style: none; margin: 0; padding: 0; border-top: 1px solid #c9dcee; }
.mf-pagina .bm-studi a, .bm-studi a { display: grid; grid-template-columns: 44px minmax(0, 1fr) 22px; align-items: center; gap: 8px; min-height: 56px; padding: 9px 14px 9px 8px; border-left: 4px solid transparent; color: #1a1c1e; text-decoration: none; transition: background 150ms ease, border-color 150ms ease; }
.bm-studi li + li { border-top: 1px solid #dde8f3; }
.bm-studi a:hover { background: #e3eefa; border-left-color: #005687; }
.bm-studi a:active { background: #cfe2f4; }
.bm-studi a:focus-visible { outline: 3px solid #005687; outline-offset: -3px; }
.bm-sn { text-align: center; font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: 13px; font-weight: 700; color: #1B6FA8; }
.bm-st { display: grid; gap: 1px; min-width: 0; }
.bm-st b { font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 15.5px; line-height: 1.25; color: #005687; }
.bm-st span { font-size: 13.5px; line-height: 1.4; color: #41474f; }
.bm-studi .material-symbols-outlined { font-size: 20px; color: #1B6FA8; transition: transform 150ms ease; }
.bm-studi a:hover .material-symbols-outlined { transform: translateX(3px); }
.bm-l-f { display: flex; justify-content: space-between; gap: 10px; padding: 9px 16px; border-top: 1px solid #c9dcee; background: #e9f1f9; font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #41474f; }

@media (min-width: 640px) { .bm-ov--b, .bm-ov--c { display: block; } }
@media (min-width: 900px) {
  .bm-in { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 56px; padding: 76px 40px 100px; }
  .mf-hero.bm-hero .bm-testo h1 { font-size: 66px; line-height: 1.02; }
  .mf-hero.bm-hero .dp-lead { font-size: 19px; }
  .bm-lista-w { justify-self: end; }
  .bm-tac { top: -30px; right: auto; left: 34%; width: 640px; }
  .bm-ov { font-size: 12px; } .bm-ov--a, .bm-ov--b { top: 16px; } .bm-ov--a, .bm-ov--c { left: 40px; } .bm-ov--b, .bm-ov--d { right: 40px; }
}

/* ---------- sezioni come serie ---------- */
.dp-pagina .mf-sh .bm-kk { gap: 12px; color: #1B6FA8; }
.bm-tag { display: inline-flex; align-items: center; gap: 8px; min-height: 30px; padding: 0 14px 0 12px; border-radius: 9999px; background: #005687; color: #fff; font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-weight: 700; font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; }
.bm-tag::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #8fd0ff; }

/* ---------- divisori: fetta di TAC ---------- */
.dp-div.bm-div { gap: 16px; }
.dp-div.bm-div::before, .dp-div.bm-div::after { height: 0; border-top: 2px dashed #1B6FA8; border-radius: 0; background: none; }
.bm-div span { flex: none; width: 46px; height: 46px; border: 2px solid #005687; border-radius: 50%; background: repeating-radial-gradient(circle, #005687 0 2px, #fff 2px 6px); box-shadow: 0 0 0 5px #e3eefa; }

/* ---------- finale: il referto ---------- */
.mf-cta.bm-cta { max-width: 860px; margin: 56px auto; padding: 0 0 28px; overflow: hidden; border: 2px solid #005687; border-radius: 12px; background: #fff; box-shadow: 0 16px 36px rgba(0,60,100,.16); text-align: center; }
.mf-cta.bm-cta .bm-ref-t { display: flex; max-width: none; justify-content: space-between; gap: 10px; margin: 0 0 30px; padding: 11px 20px; background: #005687; color: #fff; font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.bm-ref-t span:last-child { color: #8fd0ff; }
.mf-cta.bm-cta h2 { max-width: 26ch; margin: 0 auto 12px; padding: 0 20px; font-size: clamp(26px, 6.4vw, 38px); line-height: 1.1; color: #005687; text-wrap: balance; }
.mf-cta.bm-cta p:not(.bm-ref-t) { max-width: 34rem; margin: 0 auto 22px; padding: 0 20px; font-size: 17px; line-height: 1.55; color: #1a1c1e; }
.bm-esito { max-width: 440px; margin: 0 auto 26px; padding: 0 20px; text-align: left; font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: 13.5px; }
.bm-esito div { display: flex; align-items: baseline; gap: 8px; padding: 7px 0; border-bottom: 1px dashed #9ec0de; }
.bm-esito dt { flex: none; margin: 0; color: #5c6670; text-transform: uppercase; letter-spacing: .08em; font-size: 12px; }
.bm-esito dd { margin: 0 0 0 auto; text-align: right; font-weight: 700; color: #005687; }
.mf-cta.bm-cta .mf-az { justify-content: center; padding: 0 20px; }
.mf-pagina .bm-cta .mf-btn-pieno { background: #005687; color: #fff; }
.mf-pagina .bm-cta .mf-btn-pieno:hover { background: #00466f; }
.mf-pagina .bm-cta .mf-btn-vuoto { background: #fff; color: #005687; border-color: #005687; }
.mf-pagina .bm-cta .mf-btn-vuoto:hover { background: #e3eefa; }
@media (max-width: 520px) { .mf-cta.bm-cta .mf-az { flex-direction: column; } .mf-cta.bm-cta .mf-btn { width: 100%; } }

@media (max-width: 420px) {
  .bm-studi a { grid-template-columns: 36px minmax(0, 1fr) 18px; }
  .bm-l-s { font-size: 19px; }
  .bm-l-t { letter-spacing: .08em; }
}
@media (prefers-reduced-motion: reduce) {
  .bm-tac .bm-sc, .bm-l-t i::before { animation: none; }
  .bm-studi a, .bm-studi .material-symbols-outlined { transition: none; }
  .bm-studi a:hover .material-symbols-outlined { transform: none; }
}
