/* Farmakologia UMP theme layout, based on audited UMP brand tokens. */
:root { --ump-blue: #30c4f4; --ump-navy: #003854; --ump-text: #404041; --ump-muted: #58595b; --ump-line: #dcddde; --ump-pale: #f4f4f4; --ump-page: #e5e6e7; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ump-text); background: var(--ump-page); font: 16px/1.6 open-sans, Arial, Helvetica, sans-serif; }
img { max-width: 100%; height: auto; }
a { color: var(--ump-navy); }
a:hover, a:focus { color: #007ca6; }
:focus-visible { outline: 3px solid var(--ump-blue); outline-offset: 3px; }
h1, h2, h3, h4 { color: var(--ump-navy); font-family: trajan-pro-3, Georgia, serif; line-height: 1.25; }
.container { width: min(100% - 32px, 1300px); margin-inline: auto; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 1rem; top: -5rem; z-index: 100001; padding: .75rem 1rem; color: #fff; background: var(--ump-navy); }
.skip-link:focus { top: 1rem; color: #fff; }
.s-topbar { height: 78px; padding: 19px 0; background: #fff; }
.s-topbar--inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.s-topbar--left { display: flex; align-items: center; gap: 0; min-width: 0; }
.a11y-toggle { display: grid; width: 38px; height: 38px; place-items: center; border: 0; border-radius: 0; background: var(--ump-blue); color: #fff; cursor: pointer; }
.s-topbar--left .a11y-toggle { flex: 0 0 38px; }
.a11y-toggle .a11y-icon-wheelchair { display: block; color: #fff; font: 28px/1 Arial,Helvetica,sans-serif; }
.a11y-panel { position: absolute; z-index: 1000; top: 58px; left: max(16px,calc((100% - 1300px)/2)); width: min(320px,calc(100vw - 32px)); padding: 16px; border: 1px solid var(--ump-line); background: #fff; box-shadow: 0 8px 24px rgba(0,0,0,.2); }
.a11y-panel[hidden] { display: none; }
.a11y-panel p { margin: 0 0 10px; color: var(--ump-navy); font-weight: 700; }
.a11y-panel button { display: inline-block; margin: 3px; padding: 8px 10px; border: 1px solid var(--ump-navy); background: #fff; color: var(--ump-navy); cursor: pointer; }
.a11y-panel button:focus-visible { outline: 3px solid var(--ump-blue); outline-offset: 2px; }
.s-topbar--language { display: flex; align-items: center; gap: 40px; }
.s-topbar--language a { display: inline-flex; align-items: center; gap: 8px; padding: 4px 0; color: var(--ump-blue); font: 700 20px/1.2 open-sans,Arial,Helvetica,sans-serif; text-decoration: none; text-transform: uppercase; transition: color .2s ease; }
.s-topbar--language--flag { display: block; width: 22px; height: 15px; border: 1px solid rgba(0,0,0,.15); object-fit: cover; }
.s-topbar--language a[aria-current="page"] { color: #007ca6; text-decoration: underline; text-underline-offset: 3px; }
.s-topbar--search { display: flex; align-items: center; gap: 0; padding-left: 40px; border-left: 1px solid #919396; }
.s-topbar--search--input { width: 225px; height: 40px; padding: 6px 10px 6px 19px; border: 0; color: #6d6e70; background: #e5e6e7; font: 700 14px/1.2 open-sans,Arial,Helvetica,sans-serif; text-transform: uppercase; }
.s-topbar--search .btn-blue { display: grid; width: 40px; height: 40px; min-height: 40px; padding: 7px; place-items: center; border: 0; background: var(--ump-blue); cursor: pointer; }
.s-topbar--search .btn-blue svg { display: block; width: 21px; height: 21px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; }
.s-nav { position: relative; z-index: 10; }
.s-nav--blue { min-height: 190px; display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 24px 32px; color: #fff; background: #30c4f4 url("../images/hero.jpg") center / cover no-repeat; }
.s-nav--blue--brand { min-width: 0; }
.s-nav--blue--logo--img { display: block; max-height: 92px; object-fit: contain; }
.s-nav--blue--logo a { display: inline-flex; align-items: center; gap: 14px; color: #fff; text-decoration: none; }
.s-nav--blue--logo--text { display: inline-block; color: #fff; font: 400 27px/1.25 trajan-pro-3,Georgia,serif; letter-spacing: .035em; text-transform: uppercase; }
.s-nav--blue--logo--text small { display: block; margin-top: 4px; font: 400 16px/1.35 trajan-pro-3,Georgia,serif; letter-spacing: .025em; text-transform: uppercase; }
.s-nav--blue--logo--text-en { display: flex; align-items: center; gap: 22px; font-size: 56px; letter-spacing: .04em; }
.s-nav--blue--logo--text-en small { margin: 0; font-size: 28px; line-height: 1.35; }
.s-nav--blue--logo--pums { display: inline-block; }
.s-nav--blue--logo--divider { width: 1px; height: 92px; background: rgba(255,255,255,.9); }
.s-nav--blue--logo--smalltext { font-size: 16px; }
.s-nav--blue--department { margin: 13px 0 0 10px; color: #fff; font: 500 25px/1.25 trajan-pro-3,Georgia,serif; }
.s-nav--blue--department a { color: inherit; text-decoration: none; }
.s-nav--blue--department a:hover, .s-nav--blue--department a:focus-visible { text-decoration: underline; }
.s-nav--blue--department-mark { display: flex; flex: 0 0 144px; width: 144px; height: 144px; align-items: center; justify-content: center; overflow: hidden; border-radius: 50%; background: #fff; }
.s-nav--blue--department-mark img { display: block; width: 91%; height: 91%; object-fit: contain; }
.s-nav--blue--quick { display: grid; justify-items: end; gap: 5px; }
.s-nav--blue--quick a { color: #fff; font-size: 13px; line-height: 1.35; text-decoration: none; text-transform: uppercase; }
.s-nav--blue--quick a:hover, .s-nav--blue--quick a:focus-visible { text-decoration: underline; }
.ump-social-rail { position: fixed; z-index: 40; top: 28%; right: 0; display: grid; width: 42px; box-shadow: 0 2px 8px rgba(0,0,0,.16); }
.ump-social-rail a { display: grid; min-height: 48px; place-items: center; color: #fff; font: 700 21px/1 open-sans,Arial,sans-serif; text-decoration: none; }
.ump-social-rail a:hover, .ump-social-rail a:focus-visible { filter: brightness(.88); }
.ump-social-rail--facebook { background: #4267a9; }
.ump-social-rail--youtube { background: #c4302b; font-size: 17px !important; }
.ump-social-rail--facts { background: #161616; font-family: trajan-pro-3,Georgia,serif !important; }
.ump-social-rail--library { background: #283545; }
.s-nav--white { min-height: 90px; display: flex; align-items: center; justify-content: center; background: #fff; }
.s-nav--white--categories { display: flex; flex-wrap: wrap; align-items: stretch; justify-content: center; gap: 0; margin: 0; padding: 0; list-style: none; }
.s-nav--white--categories--category { position: relative; margin: 0; }
.s-nav--white--categories--category > a { display: block; padding: 28px 22px 21px; border-bottom: 7px solid transparent; font: 600 16px/1.3 trajan-pro-3,Georgia,serif; letter-spacing: .025em; text-decoration: none; text-transform: uppercase; }
.s-nav--white--categories--category > a:hover, .s-nav--white--categories--category > a:focus-visible, .s-nav--white--categories--category.current-menu-item > a, .s-nav--white--categories--category.current_page_item > a { color: var(--ump-muted); border-bottom-color: #174963; background: #fff; }
.s-nav--white .sub-menu { position: absolute; z-index: 300; display: none; width: min(760px,calc(100vw - 32px)); grid-template-columns: repeat(2,minmax(0,1fr)); gap: 4px 28px; margin: 0; padding: 28px 34px; list-style: none; background: rgba(0,56,84,.88); box-shadow: 0 8px 18px rgba(0,0,0,.18); backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px); }
.s-nav--white .sub-menu li { min-width: 0; margin: 0; }
.s-nav--white .menu-item-has-children:hover > .sub-menu, .s-nav--white .menu-item-has-children:focus-within > .sub-menu { display: grid; }
.s-nav--white .sub-menu a { display: block; padding: 10px 8px; color: #fff; font: 500 19px/1.4 trajan-pro-3,Georgia,serif; text-decoration: none; text-transform: uppercase; overflow-wrap: anywhere; }
.s-nav--white .sub-menu a:hover, .s-nav--white .sub-menu a:focus-visible { color: #fff; text-decoration: underline; text-underline-offset: 4px; background: rgba(255,255,255,.08); }
.mobile-nav-toggle { display: none; border: 0; background: var(--ump-navy); color: #fff; padding: 12px 16px; font: 700 16px open-sans,Arial,sans-serif; cursor: pointer; }
.mobile-nav-toggle:hover, .mobile-nav-toggle:focus-visible, .btn-blue:hover, .btn-blue:focus-visible { background: #007ca6; color: #fff; }
.mobile-nav-toggle--icon { display: inline-flex; flex-direction: column; gap: 4px; width: 20px; margin-right: 8px; vertical-align: middle; }
.mobile-nav-toggle--icon span { display: block; height: 2px; background: currentColor; }
.s-content { width: min(calc(100% - 32px),1150px); min-height: 40vh; margin-inline: auto; padding: 30px 34px 50px; background: #fff; }
.p-home { position: relative; }
.home-intro { padding: 28px 0 36px; border-bottom: 1px solid var(--ump-line); }
.home-eyebrow { margin: 0 0 12px; color: var(--ump-blue); font-size: 14px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.home-intro--title { margin: 0 0 10px; font-size: clamp(28px,4vw,44px); }
.home-intro--lead { margin: 0; color: var(--ump-muted); font-size: 18px; }
.home-sections { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 20px; padding: 34px 0; }
.home-card { min-height: 150px; padding: 24px; border-top: 4px solid var(--ump-blue); background: var(--ump-pale); scroll-margin-top: 24px; }
.home-card h2 { margin: 0 0 12px; font-size: 20px; }
.home-card p { margin: 0; color: var(--ump-muted); font-size: 15px; }
.section-heading, .archive-title, .entry-title { color: var(--ump-navy); }
.home-news { padding-top: 16px; border-top: 1px solid var(--ump-line); }
.home-news--grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px; }
.home-news--item, .entry-card, .archive-item { padding: 18px; background: var(--ump-pale); }
.home-news--item h3 { font-size: 20px; }
.home-news--item h3 a, .entry-card h2 a, .archive-item h2 a { color: var(--ump-navy); text-decoration: none; }
.home-news--image img { display: block; width: 100%; }
.home .site-content { display: block; }
.home .s-content { padding-top: 12px; }
.home .entry-content { width: 100%; max-width: 1150px; margin-inline: auto; }
.home .site-content > article { width: 100%; }
.home .entry { max-width: none; }
.home .entry-content > p:first-child img:not([src*="/uploads/joomla-migration/"]) { display: none; }
.home .entry-content > p:first-child { margin-top: 4px; }
.home .entry-content > p:first-child img[src*="/uploads/joomla-migration/"] { display: block; width: 1150px; max-width: 100%; max-height: 500px; margin-inline: auto; object-fit: cover; }
.home .entry-content > ul:first-of-type { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; margin: 28px 0; padding: 0; list-style: none; }
.home .entry-content > ul:first-of-type > li { min-width: 0; padding: 16px; border-top: 4px solid var(--ump-blue); background: var(--ump-pale); }
.home .entry-content > ul:first-of-type > li img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.home .entry-content > ul:first-of-type > li h3 { margin: 14px 0 8px; font-size: 19px; }
.home .entry-content > h1:first-child { display: none; }
.entry-meta { color: #777; font-size: 13px; }
.entry, .archive-header, .not-found { width: 100%; max-width: 900px; margin-inline: auto; }
.breadcrumbs { max-width: 900px; margin: 0 auto 20px; padding: 0 0 10px; border-bottom: 1px solid var(--ump-line); color: var(--ump-muted); font-size: 14px; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0; padding: 0; list-style: none; }
.breadcrumbs li + li::before { content: "/"; margin-right: 10px; color: #8a8b8c; }
.breadcrumbs a { color: var(--ump-navy); }
.breadcrumbs [aria-current="page"] { color: var(--ump-muted); }
.entry-content { overflow-wrap: anywhere; font-size: 16px; line-height: 1.75; }
.entry-content img { max-width: 100%; height: auto; }
.page-child-links { margin: 32px 0; padding: 22px 26px; border-top: 4px solid var(--ump-blue); background: var(--ump-pale); }
.page-child-links h2 { margin: 0 0 12px; font-size: 22px; }
.page-child-links ul { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,280px),1fr)); gap: 8px 24px; margin: 0; padding-left: 22px; }
.page-child-links li { padding: 3px 0; }
.page-child-links a { font-weight: 600; }
.entry-content table { width: 100%; border-collapse: collapse; }
.entry-content th, .entry-content td { padding: 9px 12px; border: 1px solid var(--ump-line); text-align: left; }
.entry-thumbnail img { display: block; }
.entry-more, .btn-dark { display: inline-block; }
.archive-list { display: grid; gap: 18px; }
.site-content { display: block; }
.site-content > * { min-width: 0; }
.widget + .widget { margin-top: 22px; }
.s-footer { padding-inline: 34px; background: var(--ump-navy); color: #fff; }
.s-footer a { color: #fff; }
.s-footer--top { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 48px; padding: 48px 0 36px; }
.s-footer--top--col1, .s-footer--top--col2, .s-footer--top--col3, .s-footer--top--col4 { min-width: 0; margin: 0; padding: 0; }
.s-footer--top--col1 { display: flex; align-items: flex-start; gap: 28px; }
.s-footer--top--col1--logo { display: block; width: 150px; margin: 4px 0 0; }
.s-footer--top--col4 { display: flex; align-items: flex-start; gap: 28px; }
.s-footer--top--department-logo { display: flex; flex: 0 0 150px; width: 150px; height: 150px; align-items: center; justify-content: center; margin-top: 4px; overflow: hidden; border-radius: 50%; background: #fff; }
.s-footer--top--department-logo img { display: block; width: 90%; height: 90%; object-fit: contain; }
.s-footer--top--department-info { min-width: 0; }
.s-footer--top--identity { min-width: 0; }
.s-footer--top--identity .s-footer--top--heading, .s-footer--top--department-info .s-footer--top--heading { display: block; margin: 0 0 30px; font-weight: 700; }
.s-footer--top--text { max-width: 360px; }
.s-footer--top--contact { margin-top: 38px; }
.s-footer--top--heading { color: #fff; }
.footer-menu, .s-footer--top--col2 .menu { margin: 0; padding: 0; list-style: none; }
.footer-menu a { display: block; margin: 0 0 12px; }
.s-footer--top--link { display: block; margin-bottom: 12px; }
.s-footer--bottom { padding: 14px 0; border-top: 1px solid rgba(255,255,255,.25); }
.footer-widgets { display: flex; flex-wrap: wrap; gap: 24px; padding-bottom: 28px; }
.pagination, .nav-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.pagination .page-numbers { padding: 8px 12px; background: var(--ump-pale); }
.comment-list { padding-left: 24px; }
.to-top { position: fixed; right: 20px; bottom: 20px; z-index: 50; width: 48px; height: 48px; border: 0; border-radius: 50%; background: var(--ump-navy); cursor: pointer; }
.to-top img { width: 24px; height: 24px; }
body.a11y-large-text { font-size: 18px; }
body.a11y-large-text .entry-content, body.a11y-large-text .s-topbar, body.a11y-large-text .s-footer { font-size: 18px; }
body.a11y-high-contrast { --ump-text: #000; --ump-muted: #222; --ump-line: #555; --ump-page: #fff; --ump-pale: #fff; }
body.a11y-high-contrast a { color: #001c36; text-decoration: underline; }
body.a11y-high-contrast .s-content, body.a11y-high-contrast .s-nav--white { border: 2px solid #000; }
@media (min-width: 1450px) { .container { max-width: 1300px; } }
@media (min-width: 1300px) and (max-width: 1449px) { .container { max-width: 1100px; } }
@media (min-width: 1024px) and (max-width: 1299px) { .container { max-width: 980px; } }
@media (min-width: 792px) and (max-width: 1023px) { .container { max-width: 760px; } }
@media (min-width: 480px) and (max-width: 791px) { .container { width: calc(100% - 20px); max-width: 460px; } }
@media (max-width: 1023px) {
	.s-topbar { height: auto; min-height: 55px; padding: 7px 0; }
	.s-topbar--inner { flex-wrap: wrap; justify-content: space-between; }
	.s-topbar--language { order: 2; gap: 20px; }
	.s-topbar--language a { font-size: 16px; }
	.s-topbar--search { order: 3; padding-left: 0; border-left: 0; }
	.home-sections { grid-template-columns: repeat(2,minmax(0,1fr)); }
	.s-footer--top { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 790px) {
	.s-footer--top { grid-template-columns: minmax(0,1fr); }
	.s-topbar--inner { display: grid; grid-template-columns: minmax(0,1fr) auto; grid-template-areas: "left language" "search search"; align-items: center; gap: 10px 14px; }
	.s-topbar--left { grid-area: left; }
	.s-topbar--language { grid-area: language; justify-content: flex-end; gap: 14px; }
	.s-topbar--search { grid-area: search; width: 100%; justify-content: flex-end; }
	.s-topbar--search--input { flex: 1; width: auto; min-width: 0; }
	.s-nav--blue { min-height: 150px; flex-direction: column; justify-content: center; gap: 15px; padding: 22px 20px; text-align: center; }
	.s-nav--blue--logo { display: flex; justify-content: center; }
	.s-nav--blue--logo--text { max-width: 280px; font-size: 19px; text-align: left; }
	.s-nav--blue--logo--text small { font-size: 14px; }
	.s-nav--blue--logo--text-en { max-width: none; gap: 10px; font-size: 30px; }
	.s-nav--blue--logo--text-en small { font-size: 14px; }
	.s-nav--blue--logo--divider { height: 54px; }
	.s-nav--blue--logo--smalltext { font-size: 14px; }
	.s-nav--blue--department { margin: 14px 0 0; font-size: 22px; }
	.s-nav--blue--quick { display: flex; flex-wrap: wrap; justify-content: center; justify-items: center; gap: 8px 14px; }
	.s-nav--blue--quick a { font-size: 11px; }
	.s-nav--blue--department-mark { flex-basis: 94px; width: 94px; height: 94px; }
	.ump-social-rail { top: 46%; right: 0; bottom: auto; width: 36px; grid-auto-flow: row; }
	.ump-social-rail a { width: 36px; min-height: 40px; font-size: 18px; }
	.s-nav--white { min-height: 58px; flex-direction: column; align-items: stretch; }
	.mobile-nav-toggle { display: flex; align-items: center; align-self: flex-start; }
	.s-nav--white--categories { display: none; width: 100%; flex-direction: column; align-items: stretch; background: #fff; }
	.s-nav--white--categories.is-open { display: flex; }
	.s-nav--white--categories--category { border-top: 1px solid var(--ump-page); }
	.s-nav--white--categories--category a { padding: 14px 20px; }
	.s-nav--white .sub-menu { position: static; display: none; width: 100%; grid-template-columns: minmax(0,1fr); gap: 0; padding: 8px 12px; box-shadow: none; background: rgba(0,56,84,.92); }
	.s-nav--white .menu-item-has-children:hover > .sub-menu, .s-nav--white .menu-item-has-children:focus-within > .sub-menu { display: grid; }
	.s-nav--white .sub-menu a { padding: 10px; color: #fff; font-size: 16px; }
	.s-content { padding: 22px 20px 36px; }
	.home-news--grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
	.home .entry-content > ul:first-of-type { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 479px) {
	.container { width: calc(100% - 24px); }
	.ump-social-rail { display: none; }
	.home-sections, .home-news--grid, .s-footer--top, .home .entry-content > ul:first-of-type { grid-template-columns: minmax(0,1fr); }
	.s-content { padding-right: 16px; padding-left: 16px; }
	.home-card { min-height: 0; }
	.s-footer { padding-inline: 20px; }
	.s-footer--top { gap: 20px; padding-top: 30px; }
	.s-footer--top--col1, .s-footer--top--col4 { gap: 16px; }
	.s-footer--top--col1--logo { width: 104px; }
	.s-footer--top--department-logo { flex-basis: 104px; width: 104px; height: 104px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
