/* Pagina del dipartimento di Patologia Umana: stile "clinico" (fondo chiaro, linea del battito cardiaco, monitor). Usa anche gli stili condivisi di mift.css. Prefisso pu-. */
.pu-hero { position: relative; isolation: isolate; overflow: hidden; background: radial-gradient(800px 420px at 85% 10%, rgba(27,111,168,.14), transparent 60%), linear-gradient(180deg, #f1f6fc 0%, #e3eefa 100%); color: #1a1c1e; }
.pu-ecg-bg { position: absolute; left: 0; right: 0; bottom: 8%; width: 100%; height: 38%; z-index: -1; opacity: .5; }
.pu-ecg-bg path { fill: none; stroke: #1B6FA8; stroke-width: 1.6; stroke-opacity: .35; vector-effect: non-scaling-stroke; }
.pu-hero-in { max-width: 1280px; margin: 0 auto; padding: 36px 16px 44px; display: grid; gap: 28px; }
.pu-hero .mf-k { color: #1B6FA8; }
.pu-hero h1 { margin: 0 0 14px; font-family: 'Poppins', sans-serif; font-weight: 800; font-size: 34px; line-height: 1.1; letter-spacing: -.01em; color: #005687; text-wrap: balance; }
.pu-hero h1 em { font-style: normal; color: #1B6FA8; background: linear-gradient(transparent 62%, rgba(27,111,168,.18) 62%); }
.pu-lead { margin: 0 0 22px; max-width: 36rem; font-size: 17px; line-height: 1.55; color: #1a1c1e; }
.pu-pagina .pu-b1 { background: #005687; color: #fff; box-shadow: 0 8px 20px rgba(0,86,135,.28); }
.pu-pagina .pu-b1:hover { background: #00466f; }
.pu-b2 { background: #fff; color: #005687; border-color: #005687; }
.pu-pagina .pu-b2 { color: #005687; }
.pu-b2:hover { background: #e3eefa; transform: translateY(-2px); }
.pu-hero .mf-btn:focus-visible { outline: 3px solid #005687; outline-offset: 3px; }
@media (max-width: 520px) { .pu-hero .mf-az { flex-direction: column; } .pu-hero .mf-btn { width: 100%; } }

/* monitor */
.pu-monitor { align-self: center; padding: 14px 16px 16px; border-radius: 22px; color: #fff; background: radial-gradient(260px 120px at 90% 0%, rgba(143,208,255,.25), transparent 70%), linear-gradient(135deg, #00263d, #00466f); box-shadow: 0 18px 44px rgba(0,40,80,.28); }
.pu-mon-top { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #cfe8ff; }
.pu-mon-top .material-symbols-outlined { color: #ff8a8a; font-variation-settings: 'FILL' 1; animation: pu-beat 1.1s ease-in-out infinite; }
.pu-mon-live { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12px; color: #8fd0ff; }
.pu-mon-live i { width: 8px; height: 8px; border-radius: 50%; background: #5fe3a1; box-shadow: 0 0 0 3px rgba(95,227,161,.25); }
.pu-ecg { display: block; width: 100%; height: 110px; margin: 10px 0 6px; }
.pu-ecg path { fill: none; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.pu-ecg-base { stroke: rgba(143,208,255,.22); stroke-width: 2; }
.pu-ecg-t { stroke: #8fd0ff; stroke-width: 3; stroke-dasharray: .22 .78; stroke-dashoffset: 1; animation: pu-scorri 2.6s linear infinite; filter: drop-shadow(0 0 6px rgba(143,208,255,.8)); }
.pu-mon-bpm { display: flex; align-items: baseline; gap: 12px; }
.pu-mon-bpm b { font-family: ui-monospace, Menlo, Consolas, monospace; font-weight: 700; font-size: 48px; line-height: 1; color: #fff; }
.pu-mon-bpm span { font-size: 13px; line-height: 1.35; color: #cfe8ff; }
@keyframes pu-scorri { to { stroke-dashoffset: 0; } }
@keyframes pu-beat { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.25); } 30% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .pu-ecg-t { animation: none; stroke-dasharray: none; stroke-dashoffset: 0; } .pu-mon-top .material-symbols-outlined { animation: none; } }
@media (min-width: 900px) {
  .pu-hero-in { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 48px; align-items: center; padding: 64px 40px 72px; }
  .pu-hero h1 { font-size: 52px; }
  .pu-lead { font-size: 19px; }
  .pu-monitor { padding: 18px 22px 22px; border-radius: 28px; }
  .pu-ecg { height: 150px; }
  .pu-mon-bpm b { font-size: 64px; }
}

/* sezione dove siamo: colonna dei recapiti */
.pu-righe { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 12px; }
.pu-righe li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 10px; align-items: start; font-size: 15px; line-height: 1.45; color: #1a1c1e; overflow-wrap: anywhere; }
.pu-righe a { color: #005687; font-weight: 700; text-decoration: none; }
.pu-righe a:hover { text-decoration: underline; }
@media (min-width: 1000px) { .mf-utili.pu-8 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* rappresentanti */
.pu-reps { display: grid; gap: 10px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .pu-reps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; } }
@media (min-width: 1000px) { .pu-reps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
.pu-rep { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 18px; background: #fff; border: 1px solid #d6dbe2; box-shadow: 0 2px 8px rgba(0,40,80,.06); }
.pu-rep img, .pu-ini { flex: none; width: 76px; height: 76px; border-radius: 50%; object-fit: cover; background: #e3eefa; box-shadow: 0 0 0 3px #fff, 0 0 0 5px #1B6FA8; }
.pu-ini { display: flex; align-items: center; justify-content: center; font-family: 'Lexend', sans-serif; font-weight: 800; font-size: 26px; color: #005687; }
.pu-rep h3 { margin: 0 0 3px; font-family: 'Lexend', sans-serif; font-weight: 700; font-size: 17px; line-height: 1.2; color: #1a1c1e; }
.pu-rep p { margin: 0; font-size: 13.5px; line-height: 1.4; color: #41474f; }
.pu-pres { display: inline-block; margin: 0 0 4px; padding: 2px 9px; border-radius: 9999px; background: #005687; color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }

/* allineamento alla pagina MIFT */
.pu-hero { background: none; }
.pu-hero h1 { font-size: clamp(36px, 10.4vw, 46px); line-height: 1.06; letter-spacing: -.02em; }
.pu-hero .mf-az { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; max-width: 540px; margin-top: 20px; }
.pu-hero .mf-az .mf-hbox { margin: 0; }
@media (min-width: 900px) { .pu-hero h1 { font-size: 58px; } }
@media (max-width: 520px) { .pu-hero .mf-az { flex-direction: row; } }
.pu-rep { border: 2px solid #c9dcee; border-radius: 22px; box-shadow: 0 6px 20px rgba(0,60,100,.1); }
.pu-rep img, .pu-ini { box-shadow: 0 0 0 3px #fff, 0 0 0 5px #1B6FA8; }
.pu-ini { background: #e3eefa; }
.pu-righe .mf-r-i { width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 10px; background: #005687; color: #fff; font-size: 20px; }
.pu-righe a[href^="tel:"], .pu-righe a[href^="mailto:"] { display: block; padding: 9px 0; line-height: 1.25; }

/* il monitor occupa tutta l'altezza della colonna del testo */
@media (min-width: 900px) {
  .pu-hero-in { align-items: stretch; }
  .pu-monitor { display: flex; flex-direction: column; align-self: stretch; }
  .pu-ecg { flex: 1 1 auto; height: auto; min-height: 140px; }
  .pu-mon-bpm { margin-top: auto; }
}

/* sfondo dell'intro: onde che partono dal monitor, come il battito che si propaga, e qualche croce */
.pu-hero { overflow-x: clip; }
.pu-bg { --cx: 50%; --cy: 92%; position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; background: radial-gradient(560px 380px at var(--cx) var(--cy), rgba(27,111,168,.16), transparent 70%); }
.pu-bg i { position: absolute; left: var(--cx); top: var(--cy); width: 900px; height: 900px; margin: -450px 0 0 -450px; border: 3px solid rgba(27,111,168,.3); border-radius: 50%; opacity: 0; transform: scale(.2); animation: pu-onda 6s ease-out infinite; }
.pu-bg i:nth-child(2) { animation-delay: 1.2s; }
.pu-bg i:nth-child(3) { animation-delay: 2.4s; }
.pu-bg i:nth-child(4) { animation-delay: 3.6s; }
.pu-bg i:nth-child(5) { animation-delay: 4.8s; }
.pu-bg b { position: absolute; width: 22px; height: 22px; opacity: .22; }
.pu-bg b::before, .pu-bg b::after { content: ""; position: absolute; border-radius: 2px; background: #1B6FA8; }
.pu-bg b::before { left: 0; right: 0; top: 8px; height: 6px; }
.pu-bg b::after { top: 0; bottom: 0; left: 8px; width: 6px; }
@keyframes pu-onda { 0% { transform: scale(.2); opacity: 0; } 12% { opacity: 1; } 100% { transform: scale(1); opacity: 0; } }
@media (min-width: 900px) { .pu-bg { --cx: 77%; --cy: 50%; } }
@media (prefers-reduced-motion: reduce) {
  .pu-bg i { animation: none; opacity: .6; }
  .pu-bg i:nth-child(1) { transform: scale(.3); } .pu-bg i:nth-child(2) { transform: scale(.45); } .pu-bg i:nth-child(3) { transform: scale(.6); } .pu-bg i:nth-child(4) { transform: scale(.78); } .pu-bg i:nth-child(5) { transform: scale(.96); }
}

/* titolo su due righe fisse: nome del dipartimento, poi la frase */
.pu-r { display: inline-block; white-space: nowrap; }
.pu-hero h1 { font-size: min(calc((100vw - 32px) / 9.2), 46px); }
@media (min-width: 900px) { .pu-hero h1 { font-size: 58px; } }


/* intro: solo testo centrato, come nel MIFT */
.pu-hero-in { display: block; max-width: 880px; text-align: center; }
.pu-hero-t { align-self: auto; }
.pu-lead { margin-left: auto; margin-right: auto; }
.pu-hero .mf-az { margin-left: auto; margin-right: auto; }
.pu-bg, .pu-bg { --cx: 50%; --cy: 55%; }
@media (min-width: 900px) {
  .pu-bg { --cx: 50%; --cy: 55%; }
  .pu-hero-in { align-items: initial; padding: 64px 40px 56px; }
}

/* riferimenti al mondo sanitario: icone nello sfondo dell'intro, nelle etichette, linea del battito, finale */
.pu-bg em { position: absolute; font-style: normal; color: #1B6FA8; opacity: .15; animation: pu-fluttua 8s ease-in-out infinite alternate; }
@keyframes pu-fluttua { from { transform: translateY(-7px) rotate(-6deg); } to { transform: translateY(7px) rotate(6deg); } }
.pu-pagina .pu-kk::before { display: none; }
.pu-ki { font-size: 20px; width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; background: #e3eefa; color: #005687; }
.pu-pagina .mf-sh .pu-kk { gap: 10px; }
.pu-ecg-div { display: flex; align-items: center; margin: 0 0 22px; }
.pu-ecg-div::before, .pu-ecg-div::after { content: ""; flex: 1 1 0; height: 2px; background: linear-gradient(90deg, rgba(27,111,168,0), rgba(27,111,168,.45)); }
.pu-ecg-div::after { background: linear-gradient(90deg, rgba(27,111,168,.45), rgba(27,111,168,0)); }
.pu-ecg-div svg { flex: 0 0 auto; width: 120px; height: 34px; margin: 0 4px; overflow: visible; }
.pu-ecg-div path { fill: none; stroke: #1B6FA8; stroke-width: 2.4; stroke-linejoin: round; stroke-linecap: round; stroke-dasharray: 260; stroke-dashoffset: 260; animation: pu-traccia 3.6s ease-in-out infinite; }
@keyframes pu-traccia { 0% { stroke-dashoffset: 260; } 45%, 80% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: -260; } }
.pu-cta-i { display: inline-flex; align-items: center; justify-content: center; width: 54px; height: 54px; margin-bottom: 10px; border-radius: 16px; background: #fff; color: #005687; }
@media (min-width: 900px) { .pu-ecg-div svg { width: 150px; height: 40px; } .pu-ecg-div { margin-bottom: 30px; } }
@media (prefers-reduced-motion: reduce) { .pu-bg em { animation: none; } .pu-ecg-div path { animation: none; stroke-dashoffset: 0; } }

/* badge a croce sulle foto dei rappresentanti */
.pu-pagina .dp-rep::after { content: ""; position: absolute; left: 94px; top: 94px; width: 30px; height: 30px; z-index: 1; border: 2px solid #fff; border-radius: 50%; background: #005687 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M10 5h4v5h5v4h-5v5h-4v-5H5v-4h5z'/%3E%3C/svg%3E") center / 14px no-repeat; }
@media (min-width: 640px) { .pu-pagina .dp-rep::after { left: auto; right: 20px; top: 20px; } }


/* glossario */
.pu-gls { display: grid; gap: 10px; align-items: start; }
.pu-gl { border: 2px solid #c9dcee; border-radius: 18px; background: #fff; box-shadow: 0 4px 14px rgba(0,60,100,.08); }
.pu-gl summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; padding: 10px 16px; font-family: 'Lexend', sans-serif; font-weight: 700; font-size: 16px; color: #005687; cursor: pointer; list-style: none; }
.pu-gl summary::-webkit-details-marker { display: none; }
.pu-gl summary::after { content: "+"; flex: none; width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: #e3eefa; color: #005687; font-size: 22px; line-height: 1; transition: transform .2s; }
.pu-gl[open] summary::after { transform: rotate(45deg); }
.pu-gl summary:focus-visible { outline: 3px solid #005687; outline-offset: -3px; border-radius: 16px; }
.pu-gl p { margin: 0; padding: 0 16px 16px; font-size: 15px; line-height: 1.55; color: #41474f; }
@media (min-width: 900px) { .pu-gls { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 20px; } }
@media (prefers-reduced-motion: reduce) { .pu-gl summary::after { transition: none; } }

/* dettagli grafici: il battito nelle cose che ci sono gia' */
/* schede dei corsi: passando sopra, un tracciato scorre sul fondo */
.pu-pagina .mf-cc-a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 5px; height: 10px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 14'%3E%3Cpath fill='none' stroke='%231B6FA8' stroke-width='2' stroke-linejoin='round' stroke-linecap='round' d='M0 8 H62 L66 6 L70 8 H76 L79 11 L83 1 L87 13 L90 5 L93 8 H100 L104 6 L108 8 H160'/%3E%3C/svg%3E") 0 50% / 120px 10px repeat-x; opacity: .5; transition: opacity .25s; pointer-events: none; }
.pu-pagina .mf-cc-a::after { animation: pu-scorri-bg 4s linear infinite; }
.pu-pagina .mf-cc-a:hover::after, .pu-pagina .mf-cc-a:focus-visible::after { opacity: .9; }
@keyframes pu-scorri-bg { to { background-position-x: -120px; } }
/* finale: un tracciato bianco corre lungo il bordo del riquadro blu */
.pu-pagina .mf-cta { position: relative; overflow: hidden; padding-bottom: 46px; }
.pu-pagina .mf-cta::after { content: ""; position: absolute; left: 0; right: 0; bottom: 12px; height: 18px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 14'%3E%3Cpath fill='none' stroke='%23ffffff' stroke-width='2' stroke-linejoin='round' stroke-linecap='round' d='M0 8 H62 L66 6 L70 8 H76 L79 11 L83 1 L87 13 L90 5 L93 8 H100 L104 6 L108 8 H160'/%3E%3C/svg%3E") 0 50% / 220px 18px repeat-x; opacity: .3; animation: pu-scorri-bg2 7s linear infinite; pointer-events: none; }
@keyframes pu-scorri-bg2 { to { background-position-x: -220px; } }
@media (prefers-reduced-motion: reduce) { .pu-pagina .mf-cc-a:hover::after, .pu-pagina .mf-cc-a:focus-visible::after, .pu-pagina .mf-cta::after { animation: none; } }

/* i simboli matematici dietro i titoli sono della pagina MIFT: qui non servono */
.pu-pagina .mf-sh::after { content: none !important; }
