body.rpc-page-layout { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
.rpc-page-layout > .navbar,
.rpc-page-layout > .imatge-full-width-top { flex-shrink: 0; }
.rpc-page-layout > .rpc-page-content { flex: 1 0 auto; min-width: 0; }
footer.rpc-site-footer { flex: 0 0 auto; background: #f5f7f6; color: #35434a; border-top: 1px solid #d9e2dd; letter-spacing: 0; }
.rpc-site-footer .rpc-footer-main { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; gap: 28px 40px; padding-top: 32px; padding-bottom: 32px; }
.rpc-site-footer p { margin: 8px 0 0; font-size: 14px; line-height: 22px; overflow-wrap: anywhere; }
.rpc-site-footer a { color: #35434a; }
.rpc-site-footer a:hover { color: #216f68; text-decoration: underline; }
.rpc-site-footer .rpc-footer-brand { display: flex; gap: 14px; align-items: center; margin-bottom: 16px; font-size: 14px; line-height: 22px; }
.rpc-site-footer .rpc-footer-brand img { flex: 0 0 64px; width: 64px; height: 64px; object-fit: contain; }
.rpc-site-footer .rpc-footer-brand strong { display: block; font-size: 17px; font-weight: 600; overflow-wrap: anywhere; }
.rpc-site-footer .rpc-footer-nav { justify-self: center; align-self: center; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; font-size: 14px; line-height: 24px; }
.rpc-site-footer h2 { margin: 0 0 12px; font-size: 15px; line-height: 22px; font-weight: 600; }
.rpc-site-footer .rpc-footer-institution { width: 100%; }
.rpc-site-footer .rpc-footer-institution img { display: block; width: auto; height: auto; max-width: 100%; max-height: 110px; object-fit: contain; }
.rpc-site-footer .rpc-footer-activity { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; padding-top: 20px; border-top: 1px solid #d9e2dd; }
.rpc-site-footer .rpc-footer-activity span { display: block; font-size: 13px; color: #576961; }
.rpc-site-footer .rpc-footer-bottom { background: #237d73; color: #fff; }
.rpc-site-footer .rpc-footer-legal { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-top: 14px; padding-bottom: 14px; font-size: 13px; line-height: 22px; }
.rpc-site-footer .rpc-footer-legal nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.rpc-site-footer .rpc-footer-legal a { color: #fff; }
.rpc-site-footer a:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
@media (max-width: 767px) {
    .rpc-site-footer .rpc-footer-main { grid-template-columns: minmax(0, 1fr); gap: 24px; padding: 24px 20px; }
    .rpc-site-footer .rpc-footer-nav { justify-self: stretch; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .rpc-site-footer .rpc-footer-institution img { max-width: 330px; width: 100%; }
    .rpc-site-footer .rpc-footer-activity { grid-template-columns: minmax(0, 1fr); }
    .rpc-site-footer .rpc-footer-legal { padding: 16px 20px; }
}

.rpc-page-layout > .navbar:first-of-type .navbar-nav { margin: 0; }
.rpc-page-layout > .navbar:first-of-type .nav-item { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
@media (max-width: 767px) {
    .rpc-page-layout > .navbar-light .container > .row { margin: 0; }
    .rpc-page-layout > .navbar-light .navbar-brand { display: flex; float: none; align-items: center; gap: 12px; height: auto; max-width: 100%; margin: 0; padding: 0; white-space: normal; }
    .rpc-page-layout > .navbar-light .navbar-brand img { flex: 0 0 64px; width: 64px; height: 64px; object-fit: contain; }
    .rpc-page-layout > .navbar-light .titol { width: auto; max-width: none; min-width: 0; margin: 0 !important; }
    .rpc-page-layout > .navbar-light .columna-titol-dreta { padding-top: 12px; }
}

.rpc-site-footer .rpc-footer-main::before,
.rpc-site-footer .rpc-footer-main::after,
.rpc-site-footer .rpc-footer-legal::before,
.rpc-site-footer .rpc-footer-legal::after { content: none; }
