/* Acessibilidade e correções de usabilidade (WCAG 2.2 AA) */

/* Texto só para leitores de tela */
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* Link para pular ao conteúdo */
.skip-link {
  position: absolute; left: 8px; top: -60px; z-index: 100000;
  background: #43577B; color: #fff; padding: 12px 18px; border-radius: 4px; font-weight: 700;
  transition: top .15s;
}
.skip-link:focus { top: 8px; color: #fff; outline: 3px solid #fff; outline-offset: 2px; }

/* Foco visível */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible,
[role="button"]:focus-visible, select:focus-visible {
  outline: 3px solid #43577B; outline-offset: 2px;
}
.footer a:focus-visible { outline-color: #fff; }
main:focus { outline: none; }

/* Títulos: H1/H2 com a aparência dos antigos H2/H6 */
.breadcrumb__text h1 { color: #000; margin: 0 0 5px; font-size: 36px; font-weight: 400; }
.breadcrumb__text h1 span { color: #5d6b3a; }
.sidebar__item__title h2,
.humberger__menu__title h2 {
  display: inline-block; font-size: 32px; color: #43577B; text-transform: uppercase; position: relative; z-index: 1;
}

/* Contraste dos títulos do rodapé (antes 3,8:1) */
.footer .footer__links h3 { color: #DDE4C6; }

/* Áreas de toque mínimas (>= 24px) */
.header__menu ul li a { min-height: 24px; }
.mobile-menu a, .humberger__menu__nav a { display: inline-block; min-height: 24px; padding-top: 4px; padding-bottom: 4px; }
.footer__links p a { display: inline-block; min-height: 24px; padding: 3px 0; }
.footer__social a, .header__social a { display: inline-block; min-width: 24px; min-height: 24px; }
.footer__copyright a { display: inline-block; min-height: 24px; }

/* Controles que eram ícones sem teclado */
.humberger__open, .search-switch, .search-close-switch { cursor: pointer; }

/* Aviso contra golpes (pop-up acessível) */
.aviso-overlay {
  position: fixed; top: 0; right: 0; bottom: 0; left: 0; background: rgba(0,0,0,.65); z-index: 99998;
  display: none; align-items: center; justify-content: center; padding: 16px;
}
.aviso-overlay.is-open { display: flex; }
.aviso-box {
  position: relative; background: #fff; color: #222; width: 100%; max-width: 560px; max-height: calc(100vh - 32px);
  overflow-y: auto; border-radius: 6px; border-top: 8px solid #43577B; padding: 32px 28px 28px;
  box-shadow: 0 10px 40px rgba(0,0,0,.4);
}
.aviso-box h2 { font-size: 1.6rem; color: #43577B; margin: 0 0 14px; padding-right: 36px; }
.aviso-box p { font-size: 1.05rem; line-height: 1.55; margin-bottom: 12px; }
.aviso-box ul { padding-left: 1.2rem; margin-bottom: 16px; }
.aviso-box li { margin-bottom: 6px; line-height: 1.5; }
.aviso-close {
  position: absolute; top: 8px; right: 8px; width: 44px; height: 44px; border: 0; background: transparent;
  font-size: 30px; line-height: 1; color: #43577B; cursor: pointer; border-radius: 50%;
}
.aviso-close:hover { background: #eef0f5; }
.aviso-ok { display: inline-block; border: 0; cursor: pointer; }

/* Banner de cookies */
.cookie-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 99997; background: #1f2a40; color: #fff;
  padding: 16px; display: none; box-shadow: 0 -4px 18px rgba(0,0,0,.3);
}
.cookie-bar.is-open { display: block; }
.cookie-bar__in { max-width: 1140px; margin: 0 auto; display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.cookie-bar p { margin: 0; flex: 1 1 320px; font-size: 14px; line-height: 1.5; color: #fff; }
.cookie-bar a { color: #DDE4C6; text-decoration: underline; }
.cookie-bar button { border: 2px solid #fff; background: transparent; color: #fff; padding: 10px 18px; font-weight: 700; cursor: pointer; border-radius: 3px; min-height: 44px; }
.cookie-bar button.is-primary { background: #fff; color: #1f2a40; }

/* Consentimento no formulário e honeypot */
.form-consent { display: block; font-size: 14px; margin: 6px 0 16px; line-height: 1.5; }
.form-consent input { width: auto; height: auto; margin-right: 6px; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Páginas de texto (privacidade, 404) */
.prose h2 { font-size: 1.5rem; margin: 28px 0 10px; }
.prose p, .prose li { line-height: 1.7; }

/* Texto de destaque (antes marcado como H3 sem ser título) */
p.lead-text { font-size: 22px; line-height: 1.3; color: #111; font-family: inherit; font-weight: 400; margin-bottom: 3rem; }
.home-areas ul { list-style: none; padding: 0; margin: 0 0 16px; }
.home-areas li { padding: 6px 0; font-size: 16px; }
.home-areas h2 { font-size: 28px; margin-bottom: 12px; color: #43577B; }
.about__right__text h2 { font-size: 22px; }

/* Equivalentes dos estilos que eram presos ao nome da tag (h3/h5) quando o título passou a H2/H3 */
.categories__post__item__text h2 { font-size: 22px; margin-bottom: 5px; }
.categories__post__item__text h2 a { color: #43577B; line-height: 29px; letter-spacing: 0.5px; font-size: 22px; display: block; }
.categories__post__item__text h2 a:hover { text-decoration: underline; }
.sidebar__feature__item__list__single .post__text h3 { margin-top: 5px; font-size: 18px; }
.sidebar__feature__item__list__single .post__text h3 a { color: #111; line-height: 23px; font-weight: 700; letter-spacing: 0.5px; }
.single-post__top__text h2, .single-post__top__text h3 { margin: 20px 0 10px; }
.categories__post__item__text h2.h3 { font-weight: 400; }
