/* R1A — componentes comuns. Recursos gráficos originais do site existente.
   Implementação independente: sem CSS/JavaScript executável do Joomla.
   A página central continua a ser o diagnóstico R0b. */
:root { color-scheme: light; font-family: Helvetica, Arial, sans-serif; }
* { box-sizing: border-box; }
body { margin: 0; background: #fff url('../images/r1a/bg.png') repeat-x 0 0; color: #000; font-size: 12px; line-height: 1.35; }
a { color: #e08900; text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible { outline: 2px solid #ab0900; outline-offset: 3px; }
.site-shell { width: 990px; max-width: 100%; margin: 0 auto; }
.skip-link { position: absolute; left: 12px; top: 8px; z-index: 5; padding: 10px; background: #fff; transform: translateY(-160%); }
.skip-link:focus { transform: none; }
.site-masthead { height: 125px; background: url('../images/r1a/masthead-bg.png') repeat-x; }
.site-brand { display: block; width: 435px; max-width: 100%; }
.site-brand img { display: block; width: 435px; max-width: 100%; height: auto; }
.site-header-gap { height: 36px; }
.site-hero-inner { position: relative; height: 158px; }
.site-banner { height: 158px; margin-left: 255px; margin-right: 30px; background: url('../images/r1a/header-bg.jpg') no-repeat 0 -10px; }
/* O menu principal é vertical; os restantes módulos da sidebar são outro bloco. */
.site-navigation { position: absolute; z-index: 1; top: 28px; left: 10px; width: 245px; background: #fff url('../images/r1a/col-top-right.png') no-repeat right top; }
.navigation-frame { padding: 6px 18px 0; background: url('../images/r1a/col-top-left.png') no-repeat left top; }
.navigation-links { list-style: none; padding: 0; margin: 0; }
.navigation-links li { padding: 0; margin: 0; }
.navigation-links a { display: block; height: 37px; padding-left: 37px; color: #ab0900; line-height: 37px; font-family: 'Arial Narrow', Helvetica, sans-serif; font-size: 15.6px; background: url('../images/r1a/vert-menu-bg.png') no-repeat 0 0; }
.navigation-links a:hover { color: #000; text-decoration: none; background-position: 0 -37px; }
.navigation-links a[aria-current='page'] { color: #000; background-position: 0 -74px; }
.navigation-toggle { width: 100%; padding: 10px 14px; border: 1px solid #ddd; background: #f1f1f1; color: #ab0900; font: inherit; font-size: 16px; cursor: pointer; text-align: left; }
.navigation-toggle::after { content: '+'; float: right; }
.navigation-toggle[aria-expanded='true']::after { content: '−'; }
[hidden] { display: none !important; }
/* Apenas diagnóstico: reserva o espaço do menu sem construir homepage/sidebar. */
.container { width: 990px; max-width: 100%; min-height: 350px; margin: 0 auto; padding: 50px 30px 25px 265px; }
.container h1 { margin-top: 0; font-size: 24px; }
.container dt { margin-top: .8rem; font-weight: bold; }
.container dd { margin-left: 0; }
.footer-divider { padding: 20px 0; }
.footer-divider > div { height: 20px; border-top: 1px solid #e6e6e6; background: #efefef; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; column-gap: 20px; row-gap: 18px; padding: 0 0 30px; }
.footer-navigation { order: 2; }
.footer-navigation ul { display: flex; flex-wrap: wrap; gap: 12px 40px; margin: 0; padding: 0 10px 0 0; list-style: none; }
.footer-navigation a { color: #ab0900; }
.site-copyright { order: 1; margin: 0; }
@media (max-width: 989px) {
    .site-shell { width: calc(100% - 32px); }
    .container { width: calc(100% - 32px); }
    .site-banner { margin-right: 0; }
    .footer-inner { padding-bottom: 30px; }
}
@media (max-width: 767px) {
    body { background: #fff; }
    .site-header { background: #efefef; }
    .site-masthead { height: auto; min-height: 96px; }
    .site-brand { width: min(435px, 100%); }
    .site-header-gap { height: 16px; }
    .site-hero { background-color: #791d1b; }
    .site-hero-inner { height: auto; padding-bottom: 12px; }
    .site-banner { height: clamp(95px, 24vw, 156px); margin: 0; background-position: center center; background-size: cover; }
    .site-navigation { position: relative; top: auto; left: auto; width: 100%; margin-top: 12px; background: none; }
    .navigation-frame { padding: 0; background: none; }
    .navigation-links { background: #f5f5f5; }
    .navigation-links a { height: auto; min-height: 44px; padding-right: 12px; line-height: 44px; border-bottom: 1px solid #ddd; background-image: none; }
    .navigation-links a:hover, .navigation-links a[aria-current='page'] { background: #e8e8e8; }
    .container { min-height: 240px; padding: 30px 0; }
    .footer-inner { flex-direction: column; align-items: stretch; }
    .footer-navigation { order: 1; }
    .footer-navigation ul { gap: 8px 22px; padding: 0; }
    .footer-navigation a { display: inline-block; padding: 10px 0; }
    .site-copyright { order: 2; overflow-wrap: anywhere; }
}

/* R4 — contorno discreto do menu desktop, sem alterar dimensões. */
@media (min-width: 768px) {
    .navigation-links { outline: 1px solid #d4d4d4; }
}
