/*
Theme Name: CONFAF GABRIEL BRITO — V1.6.10 LOCKED
Theme URI: https://confafbrasil.org.br/
Author: Gabriel Brito
Description: Tema institucional replicável para projetos CONFAF.
Version: 1.8.1-universal
Text Domain: confaf-gabriel-brito
*/

:root {
  --confaf-primary: #6f7d4a;
  --confaf-secondary: #8b5e3c;
  --confaf-dark: #2f3326;
  --confaf-light: #f7f3ea;
  --confaf-white: #ffffff;
  --confaf-text: #30332b;
  --confaf-container: 1240px;
  --confaf-radius: 14px;
  --confaf-shadow: 0 12px 35px rgba(0,0,0,.10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--confaf-text);
  background: var(--confaf-white);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }

.confaf-container {
  width: min(calc(100% - 40px), var(--confaf-container));
  margin-inline: auto;
}

/* Header */
.confaf-header {
  position: relative;
  z-index: 100;
  background: var(--confaf-white);
  box-shadow: 0 2px 18px rgba(0,0,0,.06);
}
.confaf-header__inner {
  min-height: 104px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}
.confaf-brand {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  min-width: 220px;
}
.confaf-brand img {
  width: auto;
  max-width: 220px;
  max-height: 86px;
  object-fit: contain;
}
.confaf-brand__fallback {
  font-weight: 800;
  letter-spacing: .02em;
  color: var(--confaf-dark);
}
.confaf-nav { display: flex; align-items: center; }
.confaf-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 4px;
}
.confaf-nav a {
  display: block;
  padding: 11px 13px;
  border-radius: 9px;
  font-weight: 650;
  font-size: .94rem;
}
.confaf-nav a:hover,
.confaf-nav .current-menu-item > a {
  color: var(--confaf-primary);
  background: var(--confaf-light);
}
.confaf-menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  font-size: 1.8rem;
  cursor: pointer;
}

/* Hero */
.confaf-hero {
  position: relative;
  overflow: hidden;
  background: #222;
}
.confaf-hero__track {
  display: flex;
  transition: transform .55s ease;
}
.confaf-hero__slide {
  min-width: 100%;
  min-height: 650px;
  position: relative;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
}
.confaf-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,.66), rgba(0,0,0,.20) 65%, rgba(0,0,0,.08));
}
.confaf-hero__content {
  position: relative;
  z-index: 2;
  color: var(--confaf-white);
  width: min(760px, 100%);
  padding: 90px 0;
}
.confaf-hero__eyebrow {
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .78rem;
  font-weight: 800;
  opacity: .9;
}
.confaf-hero h1 {
  margin: 12px 0 16px;
  font-size: clamp(2.2rem, 5vw, 4.5rem);
  line-height: 1.05;
}
.confaf-hero p {
  margin: 0 0 28px;
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  max-width: 650px;
}
.confaf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 23px;
  border-radius: 999px;
  background: var(--confaf-primary);
  color: var(--confaf-white);
  font-weight: 800;
  border: 0;
}
.confaf-btn:hover { filter: brightness(.93); }
.confaf-hero__controls {
  position: absolute;
  z-index: 5;
  left: 0;
  right: 0;
  bottom: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
}
.confaf-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.55);
  cursor: pointer;
}
.confaf-dot.is-active { background: var(--confaf-white); transform: scale(1.25); }

/* Sections */
.confaf-section { padding: 90px 0; }
.confaf-section--soft { background: var(--confaf-light); }
.confaf-section__head { margin-bottom: 38px; }
.confaf-section__head h2 {
  margin: 0 0 8px;
  color: var(--confaf-dark);
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  line-height: 1.15;
}
.confaf-section__head p { margin: 0; max-width: 760px; }

/* Footer */
.confaf-footer {
  background: var(--confaf-dark);
  color: rgba(255,255,255,.9);
  padding: 60px 0 20px;
}
.confaf-footer__grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 50px;
}
.confaf-footer a:hover { color: var(--confaf-white); }
.confaf-footer__bottom {
  margin-top: 42px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.14);
  font-size: .9rem;
}

/* Generic WordPress */
.wp-caption, .gallery-caption { max-width: 100%; }
.screen-reader-text {
  position: absolute;
  width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

@media (max-width: 980px) {
  .confaf-header__inner { min-height: 88px; }
  .confaf-menu-toggle { display: block; }
  .confaf-nav {
    display: none;
    position: absolute;
    left: 20px; right: 20px; top: calc(100% + 8px);
    background: var(--confaf-white);
    box-shadow: var(--confaf-shadow);
    border-radius: 14px;
    padding: 10px;
  }
  .confaf-nav.is-open { display: block; }
  .confaf-nav ul { display: block; }
  .confaf-nav a { padding: 13px 14px; }
  .confaf-hero__slide { min-height: 570px; }
  .confaf-footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .confaf-container { width: min(calc(100% - 28px), var(--confaf-container)); }
  .confaf-brand img { max-width: 170px; max-height: 70px; }
  .confaf-hero__slide { min-height: 560px; }
  .confaf-hero__content { padding: 70px 0 100px; }
  .confaf-footer__grid { grid-template-columns: 1fr; gap: 28px; }
}

.confaf-header{position:sticky;top:0;z-index:100;backdrop-filter:blur(10px);background:rgba(255,255,255,.97)}
.confaf-header__inner{min-height:112px;padding-block:10px}
.confaf-brand{min-width:260px}.confaf-brand img{max-width:250px;max-height:92px}
.confaf-nav a{transition:.2s}.confaf-nav a:hover{transform:translateY(-1px)}
.confaf-hero__slide{min-height:min(720px,calc(100vh - 112px))}
.confaf-hero__content{padding-block:100px}
.confaf-btn{box-shadow:0 8px 22px rgba(0,0,0,.14);transition:.2s}.confaf-btn:hover{transform:translateY(-2px)}
@media(max-width:980px){.confaf-header__inner{min-height:88px}.confaf-brand img{max-width:190px;max-height:72px}.confaf-hero__slide{min-height:610px}}


/* Hero carousel controls */
.confaf-hero { position:relative; overflow:hidden; }
.confaf-hero__track { display:flex; width:100%; transition:transform .65s ease; will-change:transform; }
.confaf-hero__slide { min-width:100%; position:relative; background-position:center; background-size:cover; }
.confaf-hero__arrow {
  position:absolute; top:50%; transform:translateY(-50%);
  width:46px; height:46px; border:1px solid rgba(255,255,255,.55);
  border-radius:50%; background:rgba(0,0,0,.28); color:#fff;
  font-size:36px; line-height:40px; cursor:pointer; z-index:4;
}
.confaf-hero__arrow:hover { background:rgba(0,0,0,.48); }
.confaf-hero__arrow--prev { left:24px; }
.confaf-hero__arrow--next { right:24px; }
.confaf-dot[aria-current="true"] { transform:scale(1.15); }
@media (max-width: 640px) {
  .confaf-hero__arrow { width:40px; height:40px; font-size:30px; }
  .confaf-hero__arrow--prev { left:12px; }
  .confaf-hero__arrow--next { right:12px; }
}


.confaf-hero__slide--video { background:none !important; }
.confaf-hero__video {
  position:absolute; inset:0; width:100%; height:100%;
  object-fit:cover; z-index:0; pointer-events:none;
}
.confaf-hero__slide--video .confaf-hero__overlay { z-index:1; }
.confaf-hero__slide--video .confaf-container { position:relative; z-index:2; }

/* CONFAF v0.6.0 — fullscreen video hero + large centered circular controls */
.confaf-hero {
  position: relative;
  width: 100%;
  min-height: min(760px, 100vh);
  overflow: hidden;
}
.confaf-hero__track {
  display: flex;
  width: 100%;
  height: 100%;
  min-height: inherit;
  transition: transform .65s cubic-bezier(.22,.61,.36,1);
  will-change: transform;
}
.confaf-hero__slide {
  min-width: 100%;
  min-height: min(760px, 100vh);
  height: min(760px, 100vh);
  position: relative;
  background-position: center center;
  background-size: cover;
  overflow: hidden;
}
.confaf-hero__slide--video {
  background: none !important;
  min-height: 100vh;
  height: 100vh;
}
.confaf-hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-width: 100%;
  min-height: 100%;
  object-fit: cover;
  object-position: center center;
  z-index: 0;
  pointer-events: none;
}
.confaf-hero__slide--video .confaf-hero__overlay {
  z-index: 1;
}
.confaf-hero__slide--video .confaf-container {
  position: relative;
  z-index: 2;
}

/* Big, elegant round navigation buttons centered vertically */
.confaf-hero__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 72px;
  height: 72px;
  min-width: 72px;
  padding: 0;
  border: 2px solid rgba(255,255,255,.78);
  border-radius: 50%;
  background: rgba(18, 25, 18, .36);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: Arial, sans-serif;
  font-size: 54px;
  font-weight: 300;
  line-height: 1;
  cursor: pointer;
  z-index: 10;
  box-shadow: 0 8px 28px rgba(0,0,0,.24), inset 0 0 0 1px rgba(255,255,255,.12);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}
.confaf-hero__arrow:hover {
  transform: translateY(-50%) scale(1.08);
  background: rgba(18, 25, 18, .62);
  box-shadow: 0 12px 34px rgba(0,0,0,.32), inset 0 0 0 1px rgba(255,255,255,.22);
}
.confaf-hero__arrow:active {
  transform: translateY(-50%) scale(.97);
}
.confaf-hero__arrow--prev { left: 32px; }
.confaf-hero__arrow--next { right: 32px; }

/* Keep the dots low and clean */
.confaf-hero__controls {
  position: absolute;
  left: 50%;
  bottom: 30px;
  transform: translateX(-50%);
  z-index: 11;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
}
.confaf-dot {
  width: 11px;
  height: 11px;
  padding: 0;
  border: 1px solid rgba(255,255,255,.85);
  border-radius: 50%;
  background: rgba(255,255,255,.38);
  cursor: pointer;
  transition: transform .2s ease, background .2s ease;
}
.confaf-dot[aria-current="true"],
.confaf-dot.is-active {
  background: #fff;
  transform: scale(1.25);
}

@media (max-width: 768px) {
  .confaf-hero,
  .confaf-hero__slide,
  .confaf-hero__slide--video {
    min-height: 72vh;
    height: 72vh;
  }
  .confaf-hero__arrow {
    width: 58px;
    height: 58px;
    min-width: 58px;
    font-size: 43px;
  }
  .confaf-hero__arrow--prev { left: 14px; }
  .confaf-hero__arrow--next { right: 14px; }
  .confaf-hero__controls { bottom: 20px; }
}

/* CONFAF v0.7.0 — header overlay / diagonal translucent bar */
body.home .confaf-header,
body.front-page .confaf-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
}
.confaf-header--overlay {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}
.confaf-header__bar {
  position: relative;
  width: calc(100% - 70px);
  max-width: 1500px;
  min-height: 88px;
  margin: 0 auto;
  padding: 0 34px 0 245px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  background: rgba(20, 29, 20, .58);
  border: 1px solid rgba(255,255,255,.16);
  border-top: 0;
  box-shadow: 0 12px 32px rgba(0,0,0,.16);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  clip-path: polygon(0 0, 100% 0, 96.5% 100%, 3.5% 100%);
}
.confaf-header__brand {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 300px;
  z-index: 60;
}
.confaf-brand {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
}
.confaf-brand__map-wrap {
  position: absolute;
  left: 18px;
  top: -1px;
  width: 170px;
  height: 112px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  z-index: 3;
  pointer-events: none;
}
.confaf-brand__map {
  display: block;
  max-width: 100%;
  max-height: 112px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 7px 12px rgba(0,0,0,.25));
}
.confaf-brand__text-wrap {
  position: absolute;
  left: 94px;
  top: 22px;
  width: 205px;
  height: 64px;
  display: flex;
  align-items: center;
  z-index: 5;
}
.confaf-brand__text {
  display: block;
  max-width: 100%;
  max-height: 64px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 3px 7px rgba(0,0,0,.35));
}
.confaf-brand__fallback {
  color: #fff;
  font-weight: 800;
  font-size: 22px;
}
.confaf-nav {
  position: relative;
  z-index: 10;
}
.confaf-nav ul {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  margin: 0;
  padding: 0;
}
.confaf-nav a {
  color: #fff !important;
  text-decoration: none !important;
  font-weight: 650;
  font-size: 15px;
  padding: 14px 13px;
  border-radius: 10px;
  transition: background .2s ease, transform .2s ease;
}
.confaf-nav a:hover,
.confaf-nav .current-menu-item > a {
  background: rgba(255,255,255,.14);
  transform: translateY(-1px);
}
.confaf-menu-toggle {
  position: relative;
  z-index: 70;
}
@media (min-width: 769px) {
  body.home .confaf-hero,
  body.front-page .confaf-hero {
    margin-top: 0 !important;
  }
}
@media (max-width: 900px) {
  .confaf-header__bar {
    width: calc(100% - 20px);
    padding-left: 185px;
    min-height: 76px;
  }
  .confaf-header__brand { width: 230px; }
  .confaf-brand__map-wrap { left: 10px; width: 125px; height: 92px; }
  .confaf-brand__map { max-height: 92px; }
  .confaf-brand__text-wrap { left: 72px; top: 18px; width: 165px; height: 54px; }
  .confaf-brand__text { max-height: 54px; }
}
@media (max-width: 768px) {
  body.home .confaf-header,
  body.front-page .confaf-header { position: absolute; }
  .confaf-header__bar {
    width: calc(100% - 12px);
    min-height: 68px;
    padding: 0 12px 0 128px;
    clip-path: polygon(0 0, 100% 0, 97% 100%, 3% 100%);
  }
  .confaf-header__brand { width: 165px; }
  .confaf-brand__map-wrap { left: 5px; width: 86px; height: 76px; }
  .confaf-brand__map { max-height: 76px; }
  .confaf-brand__text-wrap { left: 47px; top: 15px; width: 112px; height: 40px; }
  .confaf-brand__text { max-height: 40px; }
}

/* CONFAF v0.8.0 — reference-style floating header */
body.home .confaf-header,
body.front-page .confaf-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  pointer-events: none;
}
.confaf-header--overlay { background: transparent !important; border: 0 !important; box-shadow: none !important; }
.confaf-header__bar {
  position: relative;
  width: min(1180px, calc(100% - 110px));
  height: 100px;
  margin: 0 auto;
  padding: 0 34px 0 305px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  background: rgba(35, 35, 36, .86);
  border: 1px solid rgba(255,255,255,.16);
  border-top: 0;
  border-radius: 0 0 16px 16px;
  box-shadow: 0 14px 35px rgba(0,0,0,.22);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  clip-path: polygon(1.5% 0, 98.5% 0, 96.8% 100%, 3.2% 100%);
  pointer-events: auto;
}
.confaf-header__brand {
  position: absolute;
  left: 0;
  top: 0;
  width: 365px;
  height: 100%;
  z-index: 60;
}
.confaf-brand {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
}
.confaf-brand__map-wrap {
  position: absolute;
  left: 8px;
  top: 0;
  width: 190px;
  height: 165px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  z-index: 3;
}
.confaf-brand__map {
  display: block;
  max-width: 100%;
  max-height: 165px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 9px 12px rgba(0,0,0,.32));
}
.confaf-brand__text-wrap {
  position: absolute;
  left: 178px;
  top: 18px;
  width: 205px;
  height: 70px;
  display: flex;
  align-items: center;
  z-index: 5;
}
.confaf-brand__text {
  display: block;
  max-width: 100%;
  max-height: 70px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 3px 7px rgba(0,0,0,.4));
}
.confaf-nav { position: relative; z-index: 20; }
.confaf-nav ul {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.confaf-nav a {
  color: #fff !important;
  text-decoration: none !important;
  font-weight: 600;
  font-size: 14px;
  padding: 12px 12px;
  border-radius: 9px;
  transition: background .2s ease, transform .2s ease;
}
.confaf-nav a:hover,
.confaf-nav .current-menu-item > a {
  background: rgba(255,255,255,.12);
  transform: translateY(-1px);
}
.confaf-menu-toggle { position: relative; z-index: 70; }

@media (max-width: 1100px) {
  .confaf-header__bar {
    width: calc(100% - 50px);
    padding-left: 260px;
  }
  .confaf-header__brand { width: 315px; }
  .confaf-brand__map-wrap { width: 160px; height: 145px; }
  .confaf-brand__map { max-height: 145px; }
  .confaf-brand__text-wrap { left: 148px; width: 175px; }
  .confaf-brand__text { max-height: 62px; }
  .confaf-nav a { padding-left: 9px; padding-right: 9px; font-size: 13px; }
}
@media (max-width: 768px) {
  body.home .confaf-header,
  body.front-page .confaf-header { position: absolute; }
  .confaf-header__bar {
    width: calc(100% - 18px);
    height: 76px;
    padding: 0 12px 0 155px;
    clip-path: polygon(2% 0, 98% 0, 96% 100%, 4% 100%);
  }
  .confaf-header__brand { width: 200px; }
  .confaf-brand__map-wrap { left: 2px; width: 105px; height: 105px; }
  .confaf-brand__map { max-height: 105px; }
  .confaf-brand__text-wrap { left: 83px; top: 13px; width: 125px; height: 50px; }
  .confaf-brand__text { max-height: 50px; }
}

/* =========================================================
   CONFAF GABRIEL BRITO v0.9.0
   Header based directly on the supplied CONFAF/BEIJICA references
   ========================================================= */

body.home .confaf-header,
body.front-page .confaf-header {
  position: absolute;
  inset: 0 0 auto 0;
  width: 100%;
  z-index: 100;
  pointer-events: none;
}

.confaf-header--overlay {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

/* Main floating menu bar: compact, translucent, with angled ends. */
.confaf-header__bar {
  position: relative;
  width: min(950px, calc(100% - 150px));
  height: 72px;
  min-height: 72px;
  margin: 28px auto 0;
  padding: 0 20px 0 285px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  background: rgba(48, 50, 47, .78);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 8px 8px 12px 12px;
  box-shadow: 0 8px 22px rgba(0,0,0,.20);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  clip-path: polygon(2.2% 0, 97.8% 0, 94.8% 100%, 5.2% 100%);
  pointer-events: auto;
}

/* Brand area sits outside the normal flow so the map can overlap the bar. */
.confaf-header__brand {
  position: absolute;
  left: 0;
  top: -2px;
  width: 360px;
  height: 150px;
  z-index: 120;
}

.confaf-brand {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
}

/* MAP: intentionally oversized, starts at the top edge and hangs below the bar. */
.confaf-brand__map-wrap {
  position: absolute;
  left: 30px;
  top: -2px;
  width: 112px;
  height: 145px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  z-index: 3;
}

.confaf-brand__map {
  display: block;
  width: auto;
  max-width: 112px;
  height: auto;
  max-height: 145px;
  object-fit: contain;
  filter: drop-shadow(0 7px 8px rgba(0,0,0,.28));
}

/* TEXT LOGO: independent image, entirely inside the menu bar. */
.confaf-brand__text-wrap {
  position: absolute;
  left: 118px;
  top: 8px;
  width: 185px;
  height: 55px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  z-index: 5;
}

.confaf-brand__text {
  display: block;
  width: auto;
  max-width: 185px;
  height: auto;
  max-height: 55px;
  object-fit: contain;
  object-position: left center;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,.30));
}

/* Navigation mirrors the official reference: clean white text, compact spacing. */
.confaf-nav {
  position: relative;
  z-index: 30;
}

.confaf-nav > ul,
.confaf-nav ul {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.confaf-nav li {
  margin: 0;
  padding: 0;
  list-style: none;
}

.confaf-nav a {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  color: #fff !important;
  text-decoration: none !important;
  font-size: 14px;
  font-weight: 650;
  line-height: 1;
  padding: 11px 10px;
  border-radius: 7px;
  transition: background .18s ease, transform .18s ease;
}

.confaf-nav a:hover,
.confaf-nav .current-menu-item > a,
.confaf-nav .current_page_item > a {
  background: rgba(255,255,255,.12);
  transform: translateY(-1px);
}

/* Mobile keeps the same visual concept but collapses the navigation. */
@media (max-width: 1050px) {
  .confaf-header__bar {
    width: calc(100% - 80px);
    padding-left: 245px;
  }
  .confaf-header__brand {
    width: 315px;
  }
  .confaf-brand__map-wrap {
    left: 22px;
    width: 98px;
    height: 132px;
  }
  .confaf-brand__map {
    max-width: 98px;
    max-height: 132px;
  }
  .confaf-brand__text-wrap {
    left: 104px;
    width: 165px;
  }
  .confaf-brand__text {
    max-width: 165px;
  }
  .confaf-nav a {
    font-size: 13px;
    padding-left: 7px;
    padding-right: 7px;
  }
}

@media (max-width: 768px) {
  .confaf-header__bar {
    width: calc(100% - 20px);
    height: 64px;
    min-height: 64px;
    margin-top: 12px;
    padding: 0 10px 0 145px;
    clip-path: polygon(2.5% 0, 97.5% 0, 94.5% 100%, 5.5% 100%);
  }

  .confaf-header__brand {
    width: 195px;
    height: 115px;
  }

  .confaf-brand__map-wrap {
    left: 8px;
    top: -1px;
    width: 72px;
    height: 105px;
  }

  .confaf-brand__map {
    max-width: 72px;
    max-height: 105px;
  }

  .confaf-brand__text-wrap {
    left: 67px;
    top: 7px;
    width: 118px;
    height: 48px;
  }

  .confaf-brand__text {
    max-width: 118px;
    max-height: 48px;
  }
}

/* =========================================================
   CONFAF GABRIEL BRITO 1.0.0 — DEFINITIVE HEADER OVERRIDE
   ========================================================= */

/* The homepage hero owns the top of the viewport. */
body.home,
body.front-page { overflow-x: hidden; }

body.home .confaf-header,
body.front-page .confaf-header {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  height: 0 !important;
  min-height: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
  z-index: 1000 !important;
  pointer-events: none !important;
}

body.home .confaf-header__bar,
body.front-page .confaf-header__bar {
  position: relative !important;
  top: 24px !important;
  width: min(1120px, calc(100% - 120px)) !important;
  height: 76px !important;
  min-height: 76px !important;
  margin: 0 auto !important;
  padding: 0 28px 0 285px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  background: rgba(37, 41, 38, .72) !important;
  border: 1px solid rgba(255,255,255,.22) !important;
  border-radius: 6px !important;
  box-shadow: 0 10px 30px rgba(0,0,0,.22) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  clip-path: polygon(1.7% 0, 98.3% 0, 96.4% 100%, 3.6% 100%) !important;
  pointer-events: auto !important;
}

body.home .confaf-header__brand,
body.front-page .confaf-header__brand {
  position: absolute !important;
  left: 0 !important;
  top: 0 !important;
  width: 365px !important;
  height: 160px !important;
  z-index: 1100 !important;
  pointer-events: none !important;
}

body.home .confaf-brand__map-wrap,
body.front-page .confaf-brand__map-wrap {
  position: absolute !important;
  left: 26px !important;
  top: -3px !important;
  width: 112px !important;
  height: 145px !important;
  z-index: 3 !important;
  display: flex !important;
  align-items: flex-start !important;
  justify-content: center !important;
}

body.home .confaf-brand__map,
body.front-page .confaf-brand__map {
  width: auto !important;
  max-width: 112px !important;
  max-height: 145px !important;
  height: auto !important;
  object-fit: contain !important;
  filter: drop-shadow(0 7px 9px rgba(0,0,0,.30)) !important;
}

body.home .confaf-brand__text-wrap,
body.front-page .confaf-brand__text-wrap {
  position: absolute !important;
  left: 126px !important;
  top: 8px !important;
  width: 188px !important;
  height: 58px !important;
  z-index: 5 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
}

body.home .confaf-brand__text,
body.front-page .confaf-brand__text {
  width: auto !important;
  max-width: 188px !important;
  max-height: 58px !important;
  height: auto !important;
  object-fit: contain !important;
  object-position: left center !important;
}

body.home .confaf-nav,
body.front-page .confaf-nav {
  position: relative !important;
  z-index: 1200 !important;
  margin-left: auto !important;
}

body.home .confaf-nav > ul,
body.home .confaf-nav ul,
body.front-page .confaf-nav > ul,
body.front-page .confaf-nav ul {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 1px !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.home .confaf-nav a,
body.front-page .confaf-nav a {
  color: #fff !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  white-space: nowrap !important;
  padding: 12px 11px !important;
  border-radius: 7px !important;
  text-decoration: none !important;
}

body.home .confaf-nav a:hover,
body.home .confaf-nav .current-menu-item > a,
body.front-page .confaf-nav a:hover,
body.front-page .confaf-nav .current-menu-item > a {
  background: rgba(255,255,255,.13) !important;
  color: #fff !important;
}

/* Force the hero to touch the top of the page behind the header. */
body.home .confaf-hero,
body.front-page .confaf-hero {
  position: relative !important;
  margin-top: 0 !important;
  padding-top: 0 !important;
  min-height: 100vh !important;
}

body.home .confaf-hero__slide,
body.front-page .confaf-hero__slide {
  min-height: 100vh !important;
  height: 100vh !important;
}

/* Mobile */
@media (max-width: 900px) {
  body.home .confaf-header__bar,
  body.front-page .confaf-header__bar {
    width: calc(100% - 30px) !important;
    height: 68px !important;
    min-height: 68px !important;
    top: 12px !important;
    padding-left: 215px !important;
  }
  body.home .confaf-header__brand,
  body.front-page .confaf-header__brand { width: 280px !important; }
  body.home .confaf-brand__map-wrap,
  body.front-page .confaf-brand__map-wrap { left: 16px !important; width: 90px !important; height: 125px !important; }
  body.home .confaf-brand__map,
  body.front-page .confaf-brand__map { max-width: 90px !important; max-height: 125px !important; }
  body.home .confaf-brand__text-wrap,
  body.front-page .confaf-brand__text-wrap { left: 98px !important; width: 155px !important; height: 54px !important; }
  body.home .confaf-brand__text,
  body.front-page .confaf-brand__text { max-width: 155px !important; max-height: 54px !important; }
  body.home .confaf-nav a,
  body.front-page .confaf-nav a { font-size: 12px !important; padding: 9px 6px !important; }
}

@media (max-width: 680px) {
  body.home .confaf-header__bar,
  body.front-page .confaf-header__bar {
    width: calc(100% - 14px) !important;
    height: 62px !important;
    min-height: 62px !important;
    padding: 0 8px 0 120px !important;
  }
  body.home .confaf-header__brand,
  body.front-page .confaf-header__brand { width: 170px !important; height: 110px !important; }
  body.home .confaf-brand__map-wrap,
  body.front-page .confaf-brand__map-wrap { left: 5px !important; width: 62px !important; height: 98px !important; }
  body.home .confaf-brand__map,
  body.front-page .confaf-brand__map { max-width: 62px !important; max-height: 98px !important; }
  body.home .confaf-brand__text-wrap,
  body.front-page .confaf-brand__text-wrap { left: 56px !important; top: 7px !important; width: 105px !important; height: 46px !important; }
  body.home .confaf-brand__text,
  body.front-page .confaf-brand__text { max-width: 105px !important; max-height: 46px !important; }
}

/* =========================================================
   CONFAF GABRIEL BRITO v1.1.0
   HEADER BAR — based on supplied CONFAF BRASIL screenshot
   Stage 1: bar geometry/appearance only. Logo placement next.
   ========================================================= */

/* Keep the hero at the very top on the front page. */
body.home .confaf-header,
body.front-page .confaf-header {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 100 !important;
  pointer-events: none;
}

.confaf-header--overlay {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

/*
 * Screenshot geometry:
 * browser/admin bar ends at ~40px;
 * menu bar starts there, centered, broad and relatively shallow.
 * The reference uses a dark translucent gray slab with angled lower
 * corners/ends, not a small pill.
 */
.confaf-header__bar {
  position: relative !important;
  box-sizing: border-box !important;
  width: min(1585px, calc(100% - 160px)) !important;
  height: 125px !important;
  min-height: 125px !important;
  margin: 40px auto 0 !important;
  padding: 0 38px 0 360px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;

  background: rgba(48, 48, 51, 0.94) !important;
  border: 2px solid rgba(255,255,255,.16) !important;
  border-top: 1px solid rgba(255,255,255,.10) !important;
  border-radius: 15px !important;
  box-shadow: 0 7px 20px rgba(0,0,0,.24) !important;

  /* Broad top, angled lower corners like the reference. */
  clip-path: polygon(
    0 0,
    100% 0,
    98.0% 100%,
    2.0% 100%
  ) !important;

  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  pointer-events: auto !important;
}

/* Navigation proportions from the reference screenshot. */
.confaf-nav {
  position: relative !important;
  z-index: 30 !important;
}

.confaf-nav > ul,
.confaf-nav ul {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 4px !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.confaf-nav li {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.confaf-nav a {
  display: inline-flex !important;
  align-items: center !important;
  white-space: nowrap !important;
  color: #fff !important;
  text-decoration: none !important;
  font-family: Arial, Helvetica, sans-serif !important;
  font-size: 21px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  padding: 15px 12px !important;
  border-radius: 8px !important;
  transition: background .18s ease, transform .18s ease !important;
}

.confaf-nav a:hover,
.confaf-nav .current-menu-item > a,
.confaf-nav .current_page_item > a {
  background: rgba(255,255,255,.10) !important;
  transform: none !important;
}

/* Keep the logo block present, but do not change its internal positioning
   in this version: logo positioning is the next stage. */
.confaf-header__brand {
  z-index: 120 !important;
}

/* Desktop/tablet scaling while preserving the same bar silhouette. */
@media (max-width: 1200px) {
  .confaf-header__bar {
    width: calc(100% - 70px) !important;
    padding-left: 300px !important;
  }
  .confaf-nav a {
    font-size: 18px !important;
    padding-left: 9px !important;
    padding-right: 9px !important;
  }
}

@media (max-width: 900px) {
  .confaf-header__bar {
    width: calc(100% - 30px) !important;
    height: 100px !important;
    min-height: 100px !important;
    margin-top: 12px !important;
    padding-left: 235px !important;
    padding-right: 24px !important;
  }
  .confaf-nav a {
    font-size: 15px !important;
    padding: 10px 7px !important;
  }
}

@media (max-width: 768px) {
  .confaf-header__bar {
    width: calc(100% - 16px) !important;
    height: 76px !important;
    min-height: 76px !important;
    margin-top: 8px !important;
    padding: 0 12px 0 145px !important;
    border-radius: 10px !important;
    clip-path: polygon(1.5% 0, 98.5% 0, 96% 100%, 4% 100%) !important;
  }
}

/* CONFAF GABRIEL BRITO v1.2.0
   FINAL BAR OVERRIDE — logo positioning intentionally untouched. */

body.home .confaf-header.confaf-header--overlay,
body.front-page .confaf-header.confaf-header--overlay {
    position:absolute !important;
    top:0 !important;
    left:0 !important;
    right:0 !important;
    width:100% !important;
    height:auto !important;
    z-index:99999 !important;
}

body.home .confaf-header__bar,
body.front-page .confaf-header__bar {
    box-sizing:border-box !important;
    width:calc(100% - 120px) !important;
    max-width:1580px !important;
    height:92px !important;
    min-height:92px !important;
    margin:40px auto 0 !important;
    padding:0 32px 0 350px !important;
    background:rgba(55,56,54,.88) !important;
    border:0 !important;
    border-radius:0 !important;
    box-shadow:0 7px 20px rgba(0,0,0,.20) !important;
    clip-path:polygon(0 0,100% 0,97.7% 100%,2.3% 100%) !important;
    display:flex !important;
    align-items:center !important;
    justify-content:flex-end !important;
    backdrop-filter:none !important;
    -webkit-backdrop-filter:none !important;
}

body.home .confaf-nav,
body.front-page .confaf-nav {
    display:block !important;
    position:relative !important;
    z-index:100000 !important;
}

body.home .confaf-nav ul,
body.front-page .confaf-nav ul {
    display:flex !important;
    align-items:center !important;
    justify-content:flex-end !important;
    gap:0 !important;
    margin:0 !important;
    padding:0 !important;
    list-style:none !important;
}

body.home .confaf-nav a,
body.front-page .confaf-nav a {
    color:#fff !important;
    font-family:Arial,Helvetica,sans-serif !important;
    font-size:16px !important;
    font-weight:700 !important;
    line-height:1 !important;
    padding:14px 15px !important;
    margin:0 !important;
    border-radius:0 !important;
    background:transparent !important;
    transform:none !important;
    text-decoration:none !important;
}

body.home .confaf-nav a:hover,
body.front-page .confaf-nav a:hover {
    background:rgba(255,255,255,.10) !important;
}

@media(max-width:1000px){
    body.home .confaf-header__bar,
    body.front-page .confaf-header__bar{
        width:calc(100% - 30px) !important;
        padding-left:250px !important;
    }
    body.home .confaf-nav a,
    body.front-page .confaf-nav a{
        font-size:14px !important;
        padding-left:8px !important;
        padding-right:8px !important;
    }
}

@media(max-width:768px){
    body.home .confaf-header__bar,
    body.front-page .confaf-header__bar{
        width:calc(100% - 12px) !important;
        height:70px !important;
        min-height:70px !important;
        margin-top:8px !important;
        padding:0 8px 0 140px !important;
        clip-path:polygon(1.5% 0,98.5% 0,95.5% 100%,4.5% 100%) !important;
    }
}

/* =========================================================
   CONFAF GABRIEL BRITO v1.3.0
   POLISHED HEADER + WORDPRESS ADMIN BAR FIX
   ========================================================= */

/* Never let the public header cover WordPress' own admin toolbar. */
#wpadminbar {
  z-index: 1000000 !important;
}
body.admin-bar .confaf-header {
  top: 32px !important;
}
@media screen and (max-width: 782px) {
  body.admin-bar .confaf-header {
    top: 46px !important;
  }
}

/* The header is an overlay; the hero remains behind it. */
body.home .confaf-header.confaf-header--overlay,
body.front-page .confaf-header.confaf-header--overlay {
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  z-index: 99990 !important;
  pointer-events: none !important;
}

body.home .confaf-header__bar,
body.front-page .confaf-header__bar {
  position: relative !important;
  box-sizing: border-box !important;
  width: min(1240px, calc(100% - 70px)) !important;
  height: 86px !important;
  min-height: 86px !important;
  margin: 18px auto 0 !important;
  padding: 0 30px 0 315px !important;

  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;

  /* Premium translucent dark panel */
  background: linear-gradient(
    180deg,
    rgba(38, 42, 39, .90) 0%,
    rgba(28, 31, 29, .84) 100%
  ) !important;
  border: 1px solid rgba(255,255,255,.16) !important;
  border-top-color: rgba(255,255,255,.22) !important;
  border-radius: 11px !important;
  box-shadow:
    0 16px 34px rgba(0,0,0,.22),
    inset 0 1px 0 rgba(255,255,255,.07) !important;
  backdrop-filter: blur(12px) saturate(115%) !important;
  -webkit-backdrop-filter: blur(12px) saturate(115%) !important;

  /* Diagonal tips */
  clip-path: polygon(
    1.25% 0,
    98.75% 0,
    96.65% 100%,
    3.35% 100%
  ) !important;

  pointer-events: auto !important;
}

/* A very subtle light edge reinforces the diagonal silhouette. */
body.home .confaf-header__bar::after,
body.front-page .confaf-header__bar::after {
  content: "" !important;
  position: absolute !important;
  left: 4.2% !important;
  right: 4.2% !important;
  bottom: 0 !important;
  height: 1px !important;
  background: rgba(255,255,255,.12) !important;
  pointer-events: none !important;
}

/* Navigation: airy and modern, but still institutional. */
body.home .confaf-nav,
body.front-page .confaf-nav {
  position: relative !important;
  z-index: 25 !important;
}

body.home .confaf-nav > ul,
body.front-page .confaf-nav > ul,
body.home .confaf-nav ul,
body.front-page .confaf-nav ul {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 3px !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

body.home .confaf-nav li,
body.front-page .confaf-nav li {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

body.home .confaf-nav a,
body.front-page .confaf-nav a {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 42px !important;
  box-sizing: border-box !important;
  padding: 11px 13px !important;

  color: #fff !important;
  font-family: Arial, Helvetica, sans-serif !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  letter-spacing: .1px !important;
  white-space: nowrap !important;
  text-decoration: none !important;

  background: transparent !important;
  border: 1px solid transparent !important;
  border-radius: 8px !important;
  transform: none !important;
  transition:
    background .2s ease,
    border-color .2s ease,
    transform .2s ease !important;
}

body.home .confaf-nav a:hover,
body.front-page .confaf-nav a:hover,
body.home .confaf-nav .current-menu-item > a,
body.front-page .confaf-nav .current-menu-item > a,
body.home .confaf-nav .current_page_item > a,
body.front-page .confaf-nav .current_page_item > a {
  background: rgba(255,255,255,.105) !important;
  border-color: rgba(255,255,255,.10) !important;
  transform: translateY(-1px) !important;
}

/* Dropdowns remain usable and inherit the visual language. */
body.home .confaf-nav .sub-menu,
body.front-page .confaf-nav .sub-menu {
  background: rgba(28,31,29,.97) !important;
  border: 1px solid rgba(255,255,255,.13) !important;
  border-radius: 9px !important;
  box-shadow: 0 14px 28px rgba(0,0,0,.25) !important;
  padding: 7px !important;
}
body.home .confaf-nav .sub-menu a,
body.front-page .confaf-nav .sub-menu a {
  min-height: 36px !important;
  padding: 9px 12px !important;
  width: 100% !important;
}

/* Desktop: give the bar enough breathing room for a long institutional menu. */
@media (min-width: 1300px) {
  body.home .confaf-header__bar,
  body.front-page .confaf-header__bar {
    width: min(1380px, calc(100% - 100px)) !important;
    padding-left: 350px !important;
  }
}

/* Tablet */
@media (max-width: 1100px) {
  body.home .confaf-header__bar,
  body.front-page .confaf-header__bar {
    width: calc(100% - 36px) !important;
    height: 80px !important;
    min-height: 80px !important;
    padding-left: 255px !important;
    padding-right: 24px !important;
  }
  body.home .confaf-nav a,
  body.front-page .confaf-nav a {
    font-size: 12px !important;
    padding-left: 7px !important;
    padding-right: 7px !important;
  }
}

/* Mobile: retain the floating-bar idea without covering the hero. */
@media (max-width: 768px) {
  body.home .confaf-header.confaf-header--overlay,
  body.front-page .confaf-header.confaf-header--overlay {
    position: absolute !important;
  }

  body.home .confaf-header__bar,
  body.front-page .confaf-header__bar {
    width: calc(100% - 12px) !important;
    height: 68px !important;
    min-height: 68px !important;
    margin-top: 8px !important;
    padding: 0 8px 0 132px !important;
    clip-path: polygon(1.5% 0, 98.5% 0, 95.5% 100%, 4.5% 100%) !important;
  }

  body.home .confaf-nav,
  body.front-page .confaf-nav {
    display: none;
  }

  body.home .confaf-nav.is-open,
  body.front-page .confaf-nav.is-open {
    display: block !important;
    position: absolute !important;
    top: 76px !important;
    right: 7px !important;
    width: min(310px, calc(100vw - 28px)) !important;
    padding: 8px !important;
    background: rgba(28,31,29,.97) !important;
    border: 1px solid rgba(255,255,255,.14) !important;
    border-radius: 10px !important;
    box-shadow: 0 16px 32px rgba(0,0,0,.30) !important;
  }

  body.home .confaf-nav.is-open > ul,
  body.front-page .confaf-nav.is-open > ul {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
  }

  body.home .confaf-nav.is-open a,
  body.front-page .confaf-nav.is-open a {
    justify-content: flex-start !important;
    width: 100% !important;
    font-size: 14px !important;
  }
}

/* =========================================================
   CONFAF GABRIEL BRITO v1.4.0
   HEADER VISUAL POLISH — keep position, improve presence
   ========================================================= */

/* Keep WordPress admin bar visible and preserve a deliberate gap. */
body.admin-bar.home .confaf-header,
body.admin-bar.front-page .confaf-header {
    top: 0 !important;
}

/* Larger, taller, softer menu panel — same location. */
body.home .confaf-header__bar,
body.front-page .confaf-header__bar {
    height: 112px !important;
    min-height: 112px !important;
    margin-top: 54px !important;
    border-radius: 20px !important;
    background: linear-gradient(
        135deg,
        rgba(32,35,34,.92) 0%,
        rgba(53,56,54,.88) 52%,
        rgba(30,33,32,.91) 100%
    ) !important;
    border: 1px solid rgba(255,255,255,.17) !important;
    box-shadow:
        0 12px 28px rgba(0,0,0,.22),
        0 2px 5px rgba(0,0,0,.12),
        inset 0 1px 0 rgba(255,255,255,.09) !important;
    clip-path: none !important;
    overflow: visible !important;
}

/* Subtle inner highlight makes the translucent bar feel premium. */
body.home .confaf-header__bar::before,
body.front-page .confaf-header__bar::before {
    content: "" !important;
    position: absolute !important;
    inset: 1px !important;
    border-radius: 19px !important;
    pointer-events: none !important;
    background: linear-gradient(
        180deg,
        rgba(255,255,255,.055),
        rgba(255,255,255,0) 42%
    ) !important;
}

/* Give the navigation more breathing room in the taller bar. */
body.home .confaf-nav a,
body.front-page .confaf-nav a {
    padding-top: 17px !important;
    padding-bottom: 17px !important;
    border-radius: 10px !important;
}

/* Preserve the same proportions on smaller screens. */
@media (max-width: 1000px) {
    body.home .confaf-header__bar,
    body.front-page .confaf-header__bar {
        height: 100px !important;
        min-height: 100px !important;
        margin-top: 48px !important;
        border-radius: 17px !important;
    }
}

@media (max-width: 768px) {
    body.home .confaf-header__bar,
    body.front-page .confaf-header__bar {
        height: 82px !important;
        min-height: 82px !important;
        margin-top: 20px !important;
        border-radius: 14px !important;
    }
}

/* =========================================================
   CONFAF GABRIEL BRITO v1.5.0
   HEADER COLOR / FINISH
   ========================================================= */

:root {
    --confaf-header-accent: #704020;
}

body.home .confaf-header__bar,
body.front-page .confaf-header__bar {
    background: rgba(255,255,255,.97) !important;
    border: 2px solid var(--confaf-header-accent) !important;
    border-radius: 20px !important;
    box-shadow:
        0 14px 30px rgba(0,0,0,.22),
        0 5px 12px rgba(112,64,32,.18),
        inset 0 1px 0 rgba(255,255,255,.95) !important;
}

/* Keep the subtle premium highlight, now almost invisible on white. */
body.home .confaf-header__bar::before,
body.front-page .confaf-header__bar::before {
    background: linear-gradient(
        180deg,
        rgba(255,255,255,.75),
        rgba(255,255,255,0) 55%
    ) !important;
}

/* Dark warm menu text so it reads naturally on the white bar. */
body.home .confaf-nav a,
body.front-page .confaf-nav a {
    color: var(--confaf-header-accent) !important;
    font-weight: 700 !important;
}

body.home .confaf-nav a:hover,
body.front-page .confaf-nav a:hover,
body.home .confaf-nav .current-menu-item > a,
body.front-page .confaf-nav .current-menu-item > a,
body.home .confaf-nav .current_page_item > a,
body.front-page .confaf-nav .current_page_item > a {
    color: #fff !important;
    background: var(--confaf-header-accent) !important;
}

/* =========================================================
   CONFAF GABRIEL BRITO v1.5.1
   ONLY CHANGE: more header transparency
   ========================================================= */

body.home .confaf-header__bar,
body.front-page .confaf-header__bar {
    background: linear-gradient(
        135deg,
        rgba(255,255,255,.72) 0%,
        rgba(255,255,255,.60) 50%,
        rgba(255,255,255,.68) 100%
    ) !important;

    backdrop-filter: blur(5px) saturate(115%) !important;
    -webkit-backdrop-filter: blur(5px) saturate(115%) !important;
}

/* =========================================================
   CONFAF GABRIEL BRITO v1.5.2
   ONLY CHANGE: light-gray translucent header
   ========================================================= */

body.home .confaf-header__bar,
body.front-page .confaf-header__bar {
    background: linear-gradient(
        135deg,
        rgba(232,234,235,.72) 0%,
        rgba(224,227,229,.60) 50%,
        rgba(230,232,233,.68) 100%
    ) !important;
}

/* =========================================================
   CONFAF GABRIEL BRITO v1.5.3
   HEADER VISUAL — inspired by CONFAF Brasil
   ========================================================= */

body.home .confaf-header__bar,
body.front-page .confaf-header__bar {
    /* Dark graphite/purple glass, similar to the CONFAF reference. */
    background: linear-gradient(
        135deg,
        rgba(45,42,51,.78) 0%,
        rgba(58,54,65,.68) 52%,
        rgba(43,40,49,.76) 100%
    ) !important;

    border: 1px solid rgba(255,255,255,.22) !important;
    border-top: 1px solid rgba(255,255,255,.28) !important;

    border-radius: 20px !important;

    box-shadow:
        0 12px 30px rgba(0,0,0,.26),
        0 3px 8px rgba(0,0,0,.16),
        inset 0 1px 0 rgba(255,255,255,.12) !important;

    backdrop-filter: blur(10px) saturate(115%) !important;
    -webkit-backdrop-filter: blur(10px) saturate(115%) !important;
}

/* A soft glass highlight instead of a flat white overlay. */
body.home .confaf-header__bar::before,
body.front-page .confaf-header__bar::before {
    background: linear-gradient(
        180deg,
        rgba(255,255,255,.10) 0%,
        rgba(255,255,255,.025) 45%,
        rgba(0,0,0,.04) 100%
    ) !important;
}

/* White navigation, matching the CONFAF reference. */
body.home .confaf-nav a,
body.front-page .confaf-nav a {
    color: #fff !important;
    text-shadow: 0 1px 2px rgba(0,0,0,.22) !important;
}

body.home .confaf-nav a:hover,
body.front-page .confaf-nav a:hover,
body.home .confaf-nav .current-menu-item > a,
body.front-page .confaf-nav .current-menu-item > a {
    color: #fff !important;
    background: rgba(255,255,255,.13) !important;
}

/* =========================================================
   CONFAF GABRIEL BRITO v1.5.4
   ONLY CHANGE: BEIJICA brown border
   ========================================================= */

body.home .confaf-header__bar,
body.front-page .confaf-header__bar {
    border: 2px solid #704020 !important;
    border-top-color: #704020 !important;
}

/* =========================================================
   CONFAF GABRIEL BRITO v1.5.5
   ONLY CHANGES:
   1) slightly more transparent header
   2) smaller gap below WordPress admin bar
   ========================================================= */

body.home .confaf-header__bar,
body.front-page .confaf-header__bar {
    background: linear-gradient(
        135deg,
        rgba(45,42,51,.68) 0%,
        rgba(58,54,65,.57) 52%,
        rgba(43,40,49,.65) 100%
    ) !important;
}

/* Bring the site header a little closer to WP admin bar. */
body.home .confaf-header__bar,
body.front-page .confaf-header__bar {
    margin-top: 40px !important;
}

/* =========================================================
   CONFAF GABRIEL BRITO v1.5.6
   ONLY CHANGE: lighter / whiter translucent header
   ========================================================= */

body.home .confaf-header__bar,
body.front-page .confaf-header__bar {
    background: linear-gradient(
        135deg,
        rgba(218,220,222,.72) 0%,
        rgba(236,237,238,.64) 52%,
        rgba(224,226,228,.69) 100%
    ) !important;
}

/* =========================================================
   CONFAF GABRIEL BRITO v1.5.7
   ONLY CHANGE: slightly more, softer graphite
   ========================================================= */

body.home .confaf-header__bar,
body.front-page .confaf-header__bar {
    background: linear-gradient(
        135deg,
        rgba(192,194,197,.74) 0%,
        rgba(213,215,218,.66) 52%,
        rgba(199,201,204,.71) 100%
    ) !important;
}

/* =========================================================
   CONFAF GABRIEL BRITO v1.5.8
   ONLY CHANGES: a little more graphite + a little more transparency
   ========================================================= */

body.home .confaf-header__bar,
body.front-page .confaf-header__bar {
    background: linear-gradient(
        135deg,
        rgba(178,181,185,.67) 0%,
        rgba(198,201,204,.59) 52%,
        rgba(185,188,192,.64) 100%
    ) !important;
}

/* =========================================================
   CONFAF GABRIEL BRITO v1.5.9
   ONLY CHANGE: +10% graphite + +10% transparency
   ========================================================= */

body.home .confaf-header__bar,
body.front-page .confaf-header__bar {
    background: linear-gradient(
        135deg,
        rgba(160,163,168,.60) 0%,
        rgba(182,185,190,.52) 52%,
        rgba(168,171,176,.57) 100%
    ) !important;
}


/* =========================================================
   CONFAF GABRIEL BRITO v1.6.0 — LOGO TEST
   Map is responsive to the theme-defined visual box.
   Upper part sits inside the bar; lower part intentionally hangs out.
   Text logo remains an independent image inside the bar.
   ========================================================= */

body.home .confaf-header__brand,
body.front-page .confaf-header__brand {
    width: clamp(250px, 30vw, 360px) !important;
    height: 150px !important;
    top: -2px !important;
    left: 0 !important;
    overflow: visible !important;
    z-index: 120 !important;
}

body.home .confaf-brand__map-wrap,
body.front-page .confaf-brand__map-wrap {
    left: clamp(20px, 2.5vw, 30px) !important;
    top: 0 !important;
    width: clamp(82px, 9vw, 112px) !important;
    height: 150px !important;
    display: flex !important;
    align-items: flex-start !important;
    justify-content: center !important;
    overflow: visible !important;
    z-index: 3 !important;
}

body.home .confaf-brand__map,
body.front-page .confaf-brand__map {
    display: block !important;
    width: auto !important;
    height: auto !important;
    max-width: 100% !important;
    max-height: 150px !important;
    object-fit: contain !important;
    object-position: top center !important;
    flex: 0 1 auto !important;
    filter: drop-shadow(0 7px 8px rgba(0,0,0,.28)) !important;
}

body.home .confaf-brand__text-wrap,
body.front-page .confaf-brand__text-wrap {
    left: clamp(95px, 10vw, 118px) !important;
    top: 8px !important;
    width: clamp(150px, 16vw, 185px) !important;
    height: 55px !important;
    z-index: 5 !important;
}

body.home .confaf-brand__text,
body.front-page .confaf-brand__text {
    max-width: 100% !important;
    max-height: 55px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    object-position: left center !important;
}

@media (max-width: 980px) {
    body.home .confaf-header__brand,
    body.front-page .confaf-header__brand {
        width: 220px !important;
    }
    body.home .confaf-brand__map-wrap,
    body.front-page .confaf-brand__map-wrap {
        left: 12px !important;
        width: 78px !important;
        height: 128px !important;
    }
    body.home .confaf-brand__map,
    body.front-page .confaf-brand__map {
        max-height: 128px !important;
    }
    body.home .confaf-brand__text-wrap,
    body.front-page .confaf-brand__text-wrap {
        left: 82px !important;
        width: 125px !important;
        max-width: 125px !important;
    }
}

/* =========================================================
   CONFAF GABRIEL BRITO v1.6.1 — MAP 2X TEST
   ONLY CHANGE: map visual size doubled.
   Text logo and header remain untouched.
   ========================================================= */

body.home .confaf-brand__map-wrap,
body.front-page .confaf-brand__map-wrap {
    width: clamp(164px, 18vw, 224px) !important;
    height: 300px !important;
}

body.home .confaf-brand__map,
body.front-page .confaf-brand__map {
    max-width: 100% !important;
    max-height: 300px !important;
}

@media (max-width: 980px) {
    body.home .confaf-brand__map-wrap,
    body.front-page .confaf-brand__map-wrap {
        width: 156px !important;
        height: 256px !important;
    }

    body.home .confaf-brand__map,
    body.front-page .confaf-brand__map {
        max-height: 256px !important;
    }
}

/* =========================================================
   CONFAF GABRIEL BRITO v1.6.2
   LOGO POSITION + TEXT AREA + THICKER BROWN BORDER
   ========================================================= */

/* Move the map slightly up and left. */
body.home .confaf-brand__map-wrap,
body.front-page .confaf-brand__map-wrap {
    left: -18px !important;
    top: -18px !important;
}

/* Move the text-logo area to the right so it doesn't overlap the map. */
body.home .confaf-brand__text,
body.front-page .confaf-brand__text {
    margin-left: 105px !important;
    transform: translateX(24px) !important;
}

/* Slightly thicker Beijica-brown border. */
body.home .confaf-header__bar,
body.front-page .confaf-header__bar {
    border-width: 3px !important;
    border-color: #704020 !important;
    border-top-color: #704020 !important;
}

/* =========================================================
   CONFAF GABRIEL BRITO v1.6.3
   MAP + LIGHTER GLASS + LARGER/CENTERED TEXT LOGO
   ========================================================= */

/* Map: +50% from the previous approved size, preserving
   its proportional scaling and the current up/left position. */
body.home .confaf-brand__map-wrap,
body.front-page .confaf-brand__map-wrap {
    width: clamp(246px, 27vw, 336px) !important;
    height: 450px !important;
}

body.home .confaf-brand__map,
body.front-page .confaf-brand__map {
    max-width: 100% !important;
    max-height: 450px !important;
}

/* Replace part of the graphite with white: lighter glass,
   while keeping the same transparency character. */
body.home .confaf-header__bar,
body.front-page .confaf-header__bar {
    background: linear-gradient(
        135deg,
        rgba(174,177,181,.56) 0%,
        rgba(205,207,210,.50) 52%,
        rgba(187,190,194,.54) 100%
    ) !important;
}

/* Text logo: larger and centered in its available area,
   while staying to the right of the map. */
body.home .confaf-brand__text,
body.front-page .confaf-brand__text {
    margin-left: 105px !important;
    transform: translateX(38px) !important;
    width: min(320px, 30vw) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

body.home .confaf-brand__text img,
body.front-page .confaf-brand__text img {
    width: 100% !important;
    max-width: 320px !important;
    height: auto !important;
}

@media (max-width: 980px) {
    body.home .confaf-brand__map-wrap,
    body.front-page .confaf-brand__map-wrap {
        width: 234px !important;
        height: 384px !important;
    }

    body.home .confaf-brand__map,
    body.front-page .confaf-brand__map {
        max-height: 384px !important;
    }

    body.home .confaf-brand__text,
    body.front-page .confaf-brand__text {
        width: 250px !important;
        transform: translateX(28px) !important;
    }

    body.home .confaf-brand__text img,
    body.front-page .confaf-brand__text img {
        max-width: 250px !important;
    }
}

/* =========================================================
   CONFAF GABRIEL BRITO v1.6.4
   MAP -50% + TEXT LOGO POSITION REFINEMENT
   ========================================================= */

/* Reduce the current v1.6.3 map by 50%, preserving its
   proportional behavior and current general alignment. */
body.home .confaf-brand__map-wrap,
body.front-page .confaf-brand__map-wrap {
    width: clamp(123px, 13.5vw, 168px) !important;
    height: 225px !important;
}

body.home .confaf-brand__map,
body.front-page .confaf-brand__map {
    max-width: 100% !important;
    max-height: 225px !important;
}

/* Rebalance the text-logo area after reducing the map:
   keep it to the right, but center it cleanly in the
   remaining header space. */
body.home .confaf-brand__text,
body.front-page .confaf-brand__text {
    margin-left: 82px !important;
    transform: translateX(12px) !important;
    width: min(300px, 28vw) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

body.home .confaf-brand__text img,
body.front-page .confaf-brand__text img {
    width: 100% !important;
    max-width: 300px !important;
    height: auto !important;
}

@media (max-width: 980px) {
    body.home .confaf-brand__map-wrap,
    body.front-page .confaf-brand__map-wrap {
        width: 117px !important;
        height: 192px !important;
    }

    body.home .confaf-brand__map,
    body.front-page .confaf-brand__map {
        max-height: 192px !important;
    }

    body.home .confaf-brand__text,
    body.front-page .confaf-brand__text {
        margin-left: 66px !important;
        transform: translateX(8px) !important;
        width: 235px !important;
    }

    body.home .confaf-brand__text img,
    body.front-page .confaf-brand__text img {
        max-width: 235px !important;
    }
}

/* =========================================================
   CONFAF GABRIEL BRITO v1.6.5
   LOGO +25% / TEXT LOGO AREA LARGER + VERTICALLY CENTERED
   ========================================================= */

/* Increase the complete map/logo visual by 25%. */
body.home .confaf-brand__map-wrap,
body.front-page .confaf-brand__map-wrap {
    width: clamp(154px, 16.875vw, 210px) !important;
    height: 281px !important;
}

body.home .confaf-brand__map,
body.front-page .confaf-brand__map {
    max-width: 100% !important;
    max-height: 281px !important;
}

/* Expand the text-logo area and center it vertically inside
   the header, independently from the map. */
body.home .confaf-brand__text,
body.front-page .confaf-brand__text {
    margin-left: 92px !important;
    transform: translateX(16px) !important;
    width: min(350px, 33vw) !important;
    min-height: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    align-self: center !important;
}

body.home .confaf-brand__text img,
body.front-page .confaf-brand__text img {
    width: 100% !important;
    max-width: 350px !important;
    height: auto !important;
    object-fit: contain !important;
    object-position: center center !important;
}

@media (max-width: 980px) {
    body.home .confaf-brand__map-wrap,
    body.front-page .confaf-brand__map-wrap {
        width: 146px !important;
        height: 240px !important;
    }

    body.home .confaf-brand__map,
    body.front-page .confaf-brand__map {
        max-height: 240px !important;
    }

    body.home .confaf-brand__text,
    body.front-page .confaf-brand__text {
        margin-left: 72px !important;
        transform: translateX(10px) !important;
        width: 294px !important;
        min-height: 100% !important;
        align-items: center !important;
    }

    body.home .confaf-brand__text img,
    body.front-page .confaf-brand__text img {
        max-width: 294px !important;
    }
}

/* =========================================================
   CONFAF GABRIEL BRITO v1.6.6
   TEXT LOGO — LARGER, USING MORE OF THE HEADER HEIGHT
   ========================================================= */

/* Enlarge the BEIJICA text/logo while keeping it vertically
   centered and proportional inside the existing header area. */
body.home .confaf-brand__text,
body.front-page .confaf-brand__text {
    width: min(410px, 38vw) !important;
    min-height: 100% !important;
    align-items: center !important;
    justify-content: center !important;
}

body.home .confaf-brand__text img,
body.front-page .confaf-brand__text img {
    width: auto !important;
    max-width: 410px !important;
    max-height: 82px !important;
    height: auto !important;
    object-fit: contain !important;
    object-position: center center !important;
}

@media (max-width: 980px) {
    body.home .confaf-brand__text,
    body.front-page .confaf-brand__text {
        width: 340px !important;
    }

    body.home .confaf-brand__text img,
    body.front-page .confaf-brand__text img {
        max-width: 340px !important;
        max-height: 70px !important;
    }
}

/* =========================================================
   CONFAF GABRIEL BRITO v1.6.7
   FIX: ACTUALLY ENLARGE THE BEIJICA TEXT LOGO
   ========================================================= */

/* The previous rule enlarged the image, but its parent
   wrapper was still limiting it. Expand the real wrapper. */
body.home .confaf-brand__text-wrap,
body.front-page .confaf-brand__text-wrap {
    left: 92px !important;
    top: 3px !important;
    width: min(410px, 38vw) !important;
    height: 82px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 5 !important;
    overflow: visible !important;
}

/* The text logo itself is the .confaf-brand__text element.
   Let it use almost the full 88px header height. */
body.home .confaf-brand__text,
body.front-page .confaf-brand__text {
    display: block !important;
    width: auto !important;
    max-width: 410px !important;
    max-height: 78px !important;
    height: auto !important;
    object-fit: contain !important;
    object-position: center center !important;
    margin: 0 !important;
    transform: none !important;
}

@media (max-width: 980px) {
    body.home .confaf-brand__text-wrap,
    body.front-page .confaf-brand__text-wrap {
        left: 72px !important;
        top: 4px !important;
        width: 340px !important;
        height: 70px !important;
    }

    body.home .confaf-brand__text,
    body.front-page .confaf-brand__text {
        max-width: 340px !important;
        max-height: 66px !important;
    }
}

/* =========================================================
   CONFAF GABRIEL BRITO v1.6.8
   BEIJICA TEXT LOGO — LARGER, USING MORE HEIGHT
   ========================================================= */

body.home .confaf-brand__text-wrap,
body.front-page .confaf-brand__text-wrap {
    height: 92px !important;
    width: min(460px, 42vw) !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: visible !important;
}

body.home .confaf-brand__text,
body.front-page .confaf-brand__text {
    max-width: 460px !important;
    max-height: 88px !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    transform: none !important;
    object-fit: contain !important;
    object-position: center center !important;
}

@media (max-width: 980px) {
    body.home .confaf-brand__text-wrap,
    body.front-page .confaf-brand__text-wrap {
        height: 78px !important;
        width: 390px !important;
    }

    body.home .confaf-brand__text,
    body.front-page .confaf-brand__text {
        max-width: 390px !important;
        max-height: 74px !important;
    }
}

/* =========================================================
   CONFAF GABRIEL BRITO v1.6.9
   BEIJICA TEXT LOGO — LARGER + FURTHER LEFT
   ========================================================= */

body.home .confaf-brand__text-wrap,
body.front-page .confaf-brand__text-wrap {
    width: min(500px, 45vw) !important;
    left: 55px !important;
    height: 96px !important;
}

body.home .confaf-brand__text,
body.front-page .confaf-brand__text {
    max-width: 500px !important;
    max-height: 92px !important;
}

@media (max-width: 980px) {
    body.home .confaf-brand__text-wrap,
    body.front-page .confaf-brand__text-wrap {
        width: 420px !important;
        left: 45px !important;
        height: 82px !important;
    }

    body.home .confaf-brand__text,
    body.front-page .confaf-brand__text {
        max-width: 420px !important;
        max-height: 78px !important;
    }
}

/* =========================================================
   CONFAF GABRIEL BRITO v1.6.10
   BEIJICA — LARGER + CLOSER TO MAP
   ========================================================= */

body.home .confaf-brand__text-wrap,
body.front-page .confaf-brand__text-wrap {
    width: min(540px, 48vw) !important;
    left: 15px !important;
    height: 100px !important;
}

body.home .confaf-brand__text,
body.front-page .confaf-brand__text {
    max-width: 540px !important;
    max-height: 96px !important;
}

@media (max-width: 980px) {
    body.home .confaf-brand__text-wrap,
    body.front-page .confaf-brand__text-wrap {
        width: 450px !important;
        left: 25px !important;
        height: 86px !important;
    }

    body.home .confaf-brand__text,
    body.front-page .confaf-brand__text {
        max-width: 450px !important;
        max-height: 82px !important;
    }
}


/* =========================================================
   CONFAF GABRIEL BRITO v1.6.12
   MAIN HEADER NAV — SINGLE LINE
   Only fixes the main navigation layout.
   ========================================================= */

body.home .confaf-nav,
body.front-page .confaf-nav {
    white-space: nowrap !important;
}

body.home .confaf-nav > ul,
body.home .confaf-nav ul,
body.front-page .confaf-nav > ul,
body.front-page .confaf-nav ul {
    display: flex !important;
    flex-wrap: nowrap !important;
    white-space: nowrap !important;
    align-items: center !important;
    justify-content: flex-end !important;
}

body.home .confaf-nav li,
body.front-page .confaf-nav li {
    flex: 0 0 auto !important;
    white-space: nowrap !important;
}

body.home .confaf-nav a,
body.front-page .confaf-nav a {
    white-space: nowrap !important;
}

/* Submenus stay vertical; only the top-level menu is forced to one line. */
body.home .confaf-nav .sub-menu,
body.front-page .confaf-nav .sub-menu {
    white-space: normal !important;
}

/* On smaller screens the existing theme mobile menu behavior remains:
   the desktop single-line nav is hidden and the toggle opens the menu. */
@media (max-width: 900px) {
    body.home .confaf-nav > ul,
    body.home .confaf-nav ul,
    body.front-page .confaf-nav > ul,
    body.front-page .confaf-nav ul {
        flex-wrap: nowrap !important;
    }
}

/* =========================================================
   CONFAF GABRIEL BRITO v1.6.13
   MAIN MENU — CLEAN ALIGNMENT + CORRECT DROPDOWN FLOW
   ========================================================= */

/* Keep every top-level item on the same baseline. */
body.home .confaf-nav,
body.front-page .confaf-nav {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    height: 100% !important;
    min-width: 0 !important;
}

body.home .confaf-nav > ul,
body.front-page .confaf-nav > ul {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 4px !important;
    width: auto !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.home .confaf-nav > ul > li,
body.front-page .confaf-nav > ul > li {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    height: 100% !important;
    flex: 0 0 auto !important;
}

/* Identical button box for every main item. */
body.home .confaf-nav > ul > li > a,
body.front-page .confaf-nav > ul > li > a {
    min-height: 44px !important;
    height: 44px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 14px !important;
    line-height: 1 !important;
    margin: 0 !important;
}

/* Dropdown must leave the normal flow so it cannot push a menu item
   up/down or make the top-level row look disorganized. */
body.home .confaf-nav > ul > li > .sub-menu,
body.front-page .confaf-nav > ul > li > .sub-menu {
    position: absolute !important;
    top: calc(100% + 8px) !important;
    left: 0 !important;
    min-width: 220px !important;
    margin: 0 !important;
    display: none !important;
    z-index: 5000 !important;
}

body.home .confaf-nav > ul > li:hover > .sub-menu,
body.front-page .confaf-nav > ul > li:hover > .sub-menu,
body.home .confaf-nav > ul > li:focus-within > .sub-menu,
body.front-page .confaf-nav > ul > li:focus-within > .sub-menu {
    display: block !important;
}

/* Keep second-level items vertical and consistent. */
body.home .confaf-nav > ul > li > .sub-menu > li,
body.front-page .confaf-nav > ul > li > .sub-menu > li {
    display: block !important;
    width: 100% !important;
}

body.home .confaf-nav > ul > li > .sub-menu a,
body.front-page .confaf-nav > ul > li > .sub-menu a {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    min-height: 38px !important;
    height: auto !important;
    width: 100% !important;
    padding: 9px 13px !important;
    line-height: 1.2 !important;
}

/* A small spacing improvement without making the menu oversized. */
body.home .confaf-nav > ul > li + li > a,
body.front-page .confaf-nav > ul > li + li > a {
    margin-left: 1px !important;
}

/* Preserve the approved mobile menu behavior. */
@media (max-width: 900px) {
    body.home .confaf-nav,
    body.front-page .confaf-nav {
        height: auto !important;
    }

    body.home .confaf-nav > ul,
    body.front-page .confaf-nav > ul {
        height: auto !important;
    }

    body.home .confaf-nav > ul > li,
    body.front-page .confaf-nav > ul > li {
        display: block !important;
        height: auto !important;
    }

    body.home .confaf-nav > ul > li > a,
    body.front-page .confaf-nav > ul > li > a {
        height: auto !important;
        min-height: 42px !important;
    }

    body.home .confaf-nav > ul > li > .sub-menu,
    body.front-page .confaf-nav > ul > li > .sub-menu {
        position: static !important;
        min-width: 0 !important;
        display: none !important;
        margin-top: 4px !important;
    }

    body.home .confaf-nav > ul > li:hover > .sub-menu,
    body.front-page .confaf-nav > ul > li:hover > .sub-menu,
    body.home .confaf-nav > ul > li:focus-within > .sub-menu,
    body.front-page .confaf-nav > ul > li:focus-within > .sub-menu {
        display: block !important;
    }
}

/* =========================================================
   CONFAF GABRIEL BRITO v1.6.14
   DASHBOARD MENU EDITOR
   ========================================================= */

.confaf-menu-admin {
  max-width: 1200px;
}

.confaf-menu-toolbar {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 18px 0 14px;
}

#confaf-menu-editor {
  max-width: 1100px;
}

#confaf-menu-sortable,
.confaf-menu-empty {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.confaf-menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  background: #fff;
  border: 1px solid #dcdcdc;
  border-radius: 12px;
  box-shadow: 0 3px 12px rgba(0,0,0,.05);
}

.confaf-menu-drag {
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #f1f1f1;
  color: #555;
  cursor: grab;
  font-size: 20px;
  line-height: 1;
  user-select: none;
}

.confaf-menu-drag:active {
  cursor: grabbing;
}

.confaf-menu-fields {
  flex: 1 1 auto;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(160px, 1fr) minmax(260px, 1.5fr) minmax(180px, .9fr);
  gap: 12px;
}

.confaf-menu-fields label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-weight: 600;
  color: #2c3338;
}

.confaf-menu-fields input,
.confaf-menu-fields select {
  width: 100%;
  min-height: 38px;
}

.confaf-menu-remove {
  flex: 0 0 auto;
  color: #b32d2e !important;
}

.confaf-menu-placeholder {
  height: 82px;
  border: 2px dashed #c8c8c8;
  border-radius: 12px;
  background: #fafafa;
}

.confaf-menu-empty {
  padding: 30px;
  border: 1px dashed #ccc;
  border-radius: 12px;
  background: #fff;
  color: #5a5a5a;
}

.confaf-admin-menu-card {
  grid-column: auto;
}

@media (max-width: 900px) {
  .confaf-menu-fields {
    grid-template-columns: 1fr;
  }

  .confaf-menu-item {
    align-items: flex-start;
  }

  .confaf-menu-drag {
    margin-top: 5px;
  }
}

/* =========================================================
   CONFAF GABRIEL BRITO v1.6.15
   MAIN MENU POLISH + BEIJICA SUBMENU
   ========================================================= */

/* Cleaner main navigation buttons. */
body.home .confaf-nav > ul > li > a,
body.front-page .confaf-nav > ul > li > a {
  position: relative !important;
  border-radius: 10px !important;
  padding: 13px 15px !important;
  transition:
    background-color .18s ease,
    color .18s ease,
    transform .18s ease,
    box-shadow .18s ease !important;
}

body.home .confaf-nav > ul > li > a:hover,
body.front-page .confaf-nav > ul > li > a:hover,
body.home .confaf-nav > ul > li.current-menu-item > a,
body.front-page .confaf-nav > ul > li.current-menu-item > a,
body.home .confaf-nav > ul > li.current-menu-ancestor > a,
body.front-page .confaf-nav > ul > li.current-menu-ancestor > a {
  transform: translateY(-1px) !important;
  background: rgba(112,64,32,.10) !important;
  box-shadow: 0 5px 14px rgba(112,64,32,.10) !important;
}

/* Give the submenu a tiny visual bridge, so the cursor can travel
   from the main item into the dropdown without losing :hover. */
body.home .confaf-nav > ul > li,
body.front-page .confaf-nav > ul > li {
  position: relative !important;
}

body.home .confaf-nav > ul > li.menu-item-has-children::after,
body.front-page .confaf-nav > ul > li.menu-item-has-children::after {
  content: "" !important;
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  top: 100% !important;
  height: 10px !important;
  background: transparent !important;
  pointer-events: auto !important;
}

/* Submenu: Beijica brown, closer to its parent and more polished. */
body.home .confaf-nav > ul > li > .sub-menu,
body.front-page .confaf-nav > ul > li > .sub-menu {
  top: calc(100% + 2px) !important;
  left: 0 !important;
  min-width: 230px !important;
  padding: 8px !important;
  margin: 0 !important;
  border: 1px solid rgba(112,64,32,.95) !important;
  border-radius: 12px !important;
  background: #704020 !important;
  box-shadow:
    0 12px 28px rgba(0,0,0,.22),
    0 3px 8px rgba(112,64,32,.18) !important;
  overflow: visible !important;
}

/* A tiny rounded connector behind the dropdown removes any visual gap. */
body.home .confaf-nav > ul > li > .sub-menu::before,
body.front-page .confaf-nav > ul > li > .sub-menu::before {
  content: "" !important;
  position: absolute !important;
  left: 18px !important;
  top: -7px !important;
  width: 14px !important;
  height: 14px !important;
  background: #704020 !important;
  border-left: 1px solid rgba(112,64,32,.95) !important;
  border-top: 1px solid rgba(112,64,32,.95) !important;
  transform: rotate(45deg) !important;
  border-radius: 3px 0 0 0 !important;
  z-index: -1 !important;
}

/* Brown dropdown links with white text. */
body.home .confaf-nav > ul > li > .sub-menu a,
body.front-page .confaf-nav > ul > li > .sub-menu a {
  color: #fff !important;
  min-height: 38px !important;
  padding: 10px 13px !important;
  border-radius: 8px !important;
  background: transparent !important;
  box-shadow: none !important;
  transform: none !important;
  font-weight: 650 !important;
  line-height: 1.2 !important;
}

body.home .confaf-nav > ul > li > .sub-menu a:hover,
body.front-page .confaf-nav > ul > li > .sub-menu a:hover {
  background: rgba(255,255,255,.14) !important;
}

/* Keep submenus visibly attached to their parent on hover/focus. */
body.home .confaf-nav > ul > li:hover > .sub-menu,
body.front-page .confaf-nav > ul > li:hover > .sub-menu,
body.home .confaf-nav > ul > li:focus-within > .sub-menu,
body.front-page .confaf-nav > ul > li:focus-within > .sub-menu {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

/* Nested dropdowns remain brown and flow to the right. */
body.home .confaf-nav .sub-menu .sub-menu,
body.front-page .confaf-nav .sub-menu .sub-menu {
  top: -9px !important;
  left: calc(100% + 6px) !important;
}

/* Mobile retains the theme's existing menu model. */
@media (max-width: 900px) {
  body.home .confaf-nav > ul > li.menu-item-has-children::after,
  body.front-page .confaf-nav > ul > li.menu-item-has-children::after {
    display: none !important;
  }

  body.home .confaf-nav > ul > li > .sub-menu,
  body.front-page .confaf-nav > ul > li > .sub-menu {
    top: auto !important;
    left: auto !important;
    min-width: 0 !important;
    padding: 6px !important;
    margin-top: 2px !important;
    background: #704020 !important;
    border-radius: 10px !important;
  }

  body.home .confaf-nav .sub-menu .sub-menu,
  body.front-page .confaf-nav .sub-menu .sub-menu {
    top: auto !important;
    left: auto !important;
  }
}

/* =========================================================
   CONFAF GABRIEL BRITO v1.7.1 — CONSOLIDATED HEADER
   Source of truth: the already-approved v1.6.15 visual header.
   Applies the same header/menu component to ALL templates.
   ========================================================= */

/* Global header shell. */
body:not(.home):not(.front-page) .confaf-header {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  height: 0 !important;
  min-height: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  z-index: 1000 !important;
}

/* Same consolidated homepage bar. */
body:not(.home):not(.front-page) .confaf-header__bar {
  position: relative !important;
  top: 24px !important;
  width: min(1120px, calc(100% - 120px)) !important;
  height: 76px !important;
  min-height: 76px !important;
  margin: 0 auto !important;
  padding: 0 28px 0 285px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  box-sizing: border-box !important;
  background: rgba(37,41,38,.72) !important;
  border: 1px solid rgba(255,255,255,.22) !important;
  border-radius: 6px !important;
  box-shadow: 0 10px 30px rgba(0,0,0,.22) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  clip-path: polygon(1.7% 0,98.3% 0,96.4% 100%,3.6% 100%) !important;
  pointer-events: auto !important;
}

/* Same approved logo area. */
body:not(.home):not(.front-page) .confaf-header__brand {
  position: absolute !important;
  left: 0 !important;
  top: 0 !important;
  width: 365px !important;
  height: 160px !important;
  z-index: 1100 !important;
  pointer-events: auto !important;
}

body:not(.home):not(.front-page) .confaf-brand {
  position: relative !important;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
}

body:not(.home):not(.front-page) .confaf-brand__map-wrap {
  position: absolute !important;
  left: 26px !important;
  top: -3px !important;
  width: 112px !important;
  height: 145px !important;
  z-index: 3 !important;
  display: flex !important;
  align-items: flex-start !important;
  justify-content: center !important;
}

body:not(.home):not(.front-page) .confaf-brand__map {
  width: auto !important;
  max-width: 112px !important;
  max-height: 145px !important;
  height: auto !important;
  object-fit: contain !important;
}

body:not(.home):not(.front-page) .confaf-brand__text-wrap {
  position: absolute !important;
  left: 126px !important;
  top: 8px !important;
  width: 188px !important;
  height: 58px !important;
  z-index: 5 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
}

body:not(.home):not(.front-page) .confaf-brand__text {
  width: auto !important;
  max-width: 188px !important;
  max-height: 58px !important;
  height: auto !important;
  object-fit: contain !important;
  object-position: left center !important;
}

/* Same consolidated one-line primary menu. */
body:not(.home):not(.front-page) .confaf-nav {
  position: relative !important;
  z-index: 1200 !important;
  margin-left: auto !important;
  display: flex !important;
  align-items: center !important;
  white-space: nowrap !important;
}

body:not(.home):not(.front-page) .confaf-nav > ul,
body:not(.home):not(.front-page) .confaf-nav ul {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 4px !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
  white-space: nowrap !important;
}

body:not(.home):not(.front-page) .confaf-nav > ul > li {
  position: relative !important;
  flex: 0 0 auto !important;
  display: flex !important;
  align-items: center !important;
  white-space: nowrap !important;
}

body:not(.home):not(.front-page) .confaf-nav > ul > li > a {
  min-height: 44px !important;
  height: 44px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 14px !important;
  margin: 0 !important;
  color: #fff !important;
  white-space: nowrap !important;
  line-height: 1 !important;
  border-radius: 10px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
}

/* Same brown dropdown and hover bridge. */
body:not(.home):not(.front-page) .confaf-nav > ul > li.menu-item-has-children::after {
  content: "" !important;
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  top: 100% !important;
  height: 10px !important;
  background: transparent !important;
  pointer-events: auto !important;
}

body:not(.home):not(.front-page) .confaf-nav > ul > li > .sub-menu {
  position: absolute !important;
  top: calc(100% + 2px) !important;
  left: 0 !important;
  min-width: 230px !important;
  margin: 0 !important;
  padding: 8px !important;
  background: #704020 !important;
  border: 1px solid rgba(112,64,32,.95) !important;
  border-radius: 12px !important;
  box-shadow: 0 12px 28px rgba(0,0,0,.22) !important;
  z-index: 5000 !important;
  display: none !important;
  white-space: normal !important;
}

body:not(.home):not(.front-page) .confaf-nav > ul > li:hover > .sub-menu,
body:not(.home):not(.front-page) .confaf-nav > ul > li:focus-within > .sub-menu {
  display: block !important;
}

/* Same menu card/hover styling on inner pages. */
body:not(.home):not(.front-page) .confaf-nav > ul > li > a:hover,
body:not(.home):not(.front-page) .confaf-nav > ul > li.current-menu-item > a,
body:not(.home):not(.front-page) .confaf-nav > ul > li.current-menu-ancestor > a {
  background: rgba(255,255,255,.10) !important;
  transform: translateY(-1px) !important;
}

body:not(.home):not(.front-page) .confaf-nav > ul > li > .sub-menu a {
  color: #fff !important;
  display: flex !important;
  align-items: center !important;
  width: 100% !important;
  min-height: 38px !important;
  padding: 10px 13px !important;
  border-radius: 8px !important;
  background: transparent !important;
}

body:not(.home):not(.front-page) .confaf-nav > ul > li > .sub-menu a:hover {
  background: rgba(255,255,255,.14) !important;
}

/* Inner-page content starts below the fixed visual header. */
body:not(.home):not(.front-page) {
  padding-top: 108px !important;
}

@media (max-width: 900px) {
  body:not(.home):not(.front-page) .confaf-header {
    position: relative !important;
    height: auto !important;
  }

  body:not(.home):not(.front-page) .confaf-header__bar {
    top: 0 !important;
    width: calc(100% - 20px) !important;
    height: 76px !important;
    min-height: 76px !important;
    margin: 12px auto 14px !important;
    padding-left: 185px !important;
  }

  body:not(.home):not(.front-page) .confaf-header__brand {
    width: 230px !important;
    height: 125px !important;
  }

  body:not(.home):not(.front-page) .confaf-brand__map-wrap {
    left: 10px !important;
    width: 125px !important;
    height: 92px !important;
  }

  body:not(.home):not(.front-page) .confaf-brand__map {
    max-width: 92px !important;
    max-height: 92px !important;
  }

  body:not(.home):not(.front-page) .confaf-brand__text-wrap {
    left: 72px !important;
    top: 18px !important;
    width: 165px !important;
    height: 54px !important;
  }

  body:not(.home):not(.front-page) .confaf-brand__text {
    max-width: 165px !important;
    max-height: 54px !important;
  }

  body:not(.home):not(.front-page) {
    padding-top: 0 !important;
  }
}

/* =========================================================
   CONFAF GABRIEL BRITO v1.7.2
   UNIVERSAL MENU STYLE
   The approved "beautiful menu" is now the only visual
   treatment for the primary navigation on every page.
   Logos remain untouched.
   ========================================================= */

.confaf-header .confaf-nav {
  display: flex !important;
  align-items: center !important;
  height: 100% !important;
  white-space: nowrap !important;
}

.confaf-header .confaf-nav > ul,
.confaf-header .confaf-nav ul {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 4px !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  white-space: nowrap !important;
}

.confaf-header .confaf-nav > ul > li {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  flex: 0 0 auto !important;
  height: 100% !important;
  white-space: nowrap !important;
}

.confaf-header .confaf-nav > ul > li > a {
  min-height: 44px !important;
  height: 44px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 14px !important;
  margin: 0 !important;
  color: #fff !important;
  white-space: nowrap !important;
  line-height: 1 !important;
  border-radius: 10px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  transition: background-color .18s ease, transform .18s ease, box-shadow .18s ease !important;
}

.confaf-header .confaf-nav > ul > li > a:hover,
.confaf-header .confaf-nav > ul > li.current-menu-item > a,
.confaf-header .confaf-nav > ul > li.current-menu-ancestor > a,
.confaf-header .confaf-nav > ul > li.current_page_item > a {
  transform: translateY(-1px) !important;
  background: rgba(255,255,255,.10) !important;
  box-shadow: 0 5px 14px rgba(0,0,0,.10) !important;
}

/* Transparent hover bridge prevents the dropdown from disappearing
   while the pointer moves from the parent item to the submenu. */
.confaf-header .confaf-nav > ul > li.menu-item-has-children::after {
  content: "" !important;
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  top: 100% !important;
  height: 10px !important;
  background: transparent !important;
  pointer-events: auto !important;
}

/* Brown Beijica dropdown, visually attached to the parent item. */
.confaf-header .confaf-nav > ul > li > .sub-menu {
  position: absolute !important;
  top: calc(100% + 2px) !important;
  left: 0 !important;
  min-width: 230px !important;
  margin: 0 !important;
  padding: 8px !important;
  background: #704020 !important;
  border: 1px solid rgba(112,64,32,.95) !important;
  border-radius: 12px !important;
  box-shadow: 0 12px 28px rgba(0,0,0,.22) !important;
  z-index: 5000 !important;
  display: none !important;
  white-space: normal !important;
}

.confaf-header .confaf-nav > ul > li:hover > .sub-menu,
.confaf-header .confaf-nav > ul > li:focus-within > .sub-menu {
  display: block !important;
}

.confaf-header .confaf-nav > ul > li > .sub-menu::before {
  content: "" !important;
  position: absolute !important;
  left: 18px !important;
  top: -7px !important;
  width: 14px !important;
  height: 14px !important;
  background: #704020 !important;
  border-left: 1px solid rgba(112,64,32,.95) !important;
  border-top: 1px solid rgba(112,64,32,.95) !important;
  transform: rotate(45deg) !important;
  border-radius: 3px 0 0 0 !important;
  z-index: -1 !important;
}

.confaf-header .confaf-nav > ul > li > .sub-menu a {
  display: flex !important;
  align-items: center !important;
  width: 100% !important;
  min-height: 38px !important;
  height: auto !important;
  padding: 10px 13px !important;
  margin: 0 !important;
  color: #fff !important;
  background: transparent !important;
  border-radius: 8px !important;
  line-height: 1.2 !important;
}

.confaf-header .confaf-nav > ul > li > .sub-menu a:hover {
  background: rgba(255,255,255,.14) !important;
}

/* Nested submenus remain attached to their parent. */
.confaf-header .confaf-nav .sub-menu .sub-menu {
  top: -9px !important;
  left: calc(100% + 6px) !important;
}

/* The entire existing brand link is the home button.
   This changes interaction only, never its geometry. */
.confaf-header .confaf-brand {
  cursor: pointer !important;
}

/* Mobile: same styling when the menu is opened. */
@media (max-width: 900px) {
  .confaf-header .confaf-nav {
    height: auto !important;
  }

  .confaf-header .confaf-nav > ul {
    flex-wrap: nowrap !important;
  }

  .confaf-header .confaf-nav > ul > li {
    height: auto !important;
  }

  .confaf-header .confaf-nav > ul > li > a {
    height: auto !important;
    min-height: 42px !important;
  }

  .confaf-header .confaf-nav > ul > li.menu-item-has-children::after {
    display: none !important;
  }

  .confaf-header .confaf-nav > ul > li > .sub-menu {
    position: static !important;
    margin-top: 2px !important;
    min-width: 0 !important;
  }

  .confaf-header .confaf-nav .sub-menu .sub-menu {
    top: auto !important;
    left: auto !important;
  }
}

/* =========================================================
   CONFAF GABRIEL BRITO v1.7.3
   FINAL INTERACTION UNIFICATION
   - Same beautiful main menu on every page
   - Map + project-name are the Home button everywhere
   - No logo geometry changes
   ========================================================= */

/* 1) Universal primary navigation: use the consolidated visual treatment
      regardless of which WordPress template/body class is active. */
.confaf-header .confaf-nav {
  position: relative !important;
  z-index: 1200 !important;
  display: flex !important;
  align-items: center !important;
  height: 100% !important;
  margin-left: auto !important;
  white-space: nowrap !important;
}

.confaf-header .confaf-nav > ul,
.confaf-header .confaf-nav ul {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 4px !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
  white-space: nowrap !important;
}

.confaf-header .confaf-nav > ul > li {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  flex: 0 0 auto !important;
  height: 100% !important;
  white-space: nowrap !important;
}

.confaf-header .confaf-nav > ul > li > a {
  min-height: 44px !important;
  height: 44px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 14px !important;
  margin: 0 !important;
  color: #fff !important;
  white-space: nowrap !important;
  line-height: 1 !important;
  border-radius: 10px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  transition: background-color .18s ease, transform .18s ease, box-shadow .18s ease !important;
}

.confaf-header .confaf-nav > ul > li > a:hover,
.confaf-header .confaf-nav > ul > li.current-menu-item > a,
.confaf-header .confaf-nav > ul > li.current-menu-ancestor > a,
.confaf-header .confaf-nav > ul > li.current_page_item > a {
  background: rgba(255,255,255,.10) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 5px 14px rgba(0,0,0,.10) !important;
}

/* Dropdown remains the approved BEIJICA-brown menu. */
.confaf-header .confaf-nav > ul > li.menu-item-has-children {
  position: relative !important;
}

.confaf-header .confaf-nav > ul > li.menu-item-has-children::after {
  content: "" !important;
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  top: 100% !important;
  height: 10px !important;
  background: transparent !important;
  pointer-events: auto !important;
}

.confaf-header .confaf-nav > ul > li > .sub-menu {
  position: absolute !important;
  top: calc(100% + 2px) !important;
  left: 0 !important;
  min-width: 230px !important;
  margin: 0 !important;
  padding: 8px !important;
  background: #704020 !important;
  border: 1px solid rgba(112,64,32,.95) !important;
  border-radius: 12px !important;
  box-shadow: 0 12px 28px rgba(0,0,0,.22) !important;
  z-index: 5000 !important;
  display: none !important;
  white-space: normal !important;
}

.confaf-header .confaf-nav > ul > li:hover > .sub-menu,
.confaf-header .confaf-nav > ul > li:focus-within > .sub-menu {
  display: block !important;
}

.confaf-header .confaf-nav > ul > li > .sub-menu a {
  display: flex !important;
  align-items: center !important;
  width: 100% !important;
  min-height: 38px !important;
  height: auto !important;
  padding: 10px 13px !important;
  margin: 0 !important;
  color: #fff !important;
  background: transparent !important;
  border-radius: 8px !important;
  line-height: 1.2 !important;
}

.confaf-header .confaf-nav > ul > li > .sub-menu a:hover {
  background: rgba(255,255,255,.14) !important;
}

/* 2) Universal Home button on map + project-name.
      No dimensions, offsets, transforms or image sizes are touched. */
.confaf-header__brand {
  pointer-events: auto !important;
}

.confaf-brand--home-button {
  pointer-events: auto !important;
  cursor: pointer !important;
  text-decoration: none !important;
}

.confaf-brand--home-button:focus-visible {
  outline: 3px solid rgba(112,64,32,.60) !important;
  outline-offset: 3px !important;
}

/* Explicitly keep both existing logo wrappers non-click-blocking so
   clicks reach the existing .confaf-brand link. */
.confaf-brand__map-wrap,
.confaf-brand__text-wrap {
  pointer-events: none !important;
}

.confaf-brand__map,
.confaf-brand__text {
  pointer-events: none !important;
}

/* 3) Same global shell for all standard pages. */
body:not(.home):not(.front-page) .confaf-header {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  height: 0 !important;
  min-height: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  z-index: 1000 !important;
}

body:not(.home):not(.front-page) .confaf-header__bar {
  position: relative !important;
  top: 24px !important;
  width: min(1120px, calc(100% - 120px)) !important;
  height: 76px !important;
  min-height: 76px !important;
  margin: 0 auto !important;
  padding: 0 28px 0 285px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  pointer-events: auto !important;
}

/* Keep the mobile menu from being affected by desktop wrapping rules. */
@media (max-width: 900px) {
  .confaf-header .confaf-nav > ul {
    flex-wrap: nowrap !important;
  }

  .confaf-header .confaf-nav > ul > li > a {
    min-height: 42px !important;
    height: auto !important;
  }
}

/* =========================================================
   CORREÇÃO: MENU UNIVERSAL — mesmo estilo em todas as páginas
   ========================================================= */

/* 1) Força o header a ser absolute em TODAS as páginas */
.confaf-header,
body:not(.home):not(.front-page) .confaf-header,
body.home .confaf-header,
body.front-page .confaf-header {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  height: 0 !important;
  min-height: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  z-index: 1000 !important;
  pointer-events: none !important;
}

/* 2) Força a barra escura flutuante igual em TODAS as páginas */
.confaf-header__bar,
body:not(.home):not(.front-page) .confaf-header__bar,
body.home .confaf-header__bar,
body.front-page .confaf-header__bar {
  position: relative !important;
  top: 24px !important;
  width: min(1120px, calc(100% - 120px)) !important;
  height: 76px !important;
  min-height: 76px !important;
  margin: 0 auto !important;
  padding: 0 28px 0 285px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  pointer-events: auto !important;
  background: rgba(48, 50, 47, 0.78) !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  border-radius: 14px !important;
  box-sizing: border-box !important;
}

/* 3) Força o logo igual em TODAS as páginas */
.confaf-header__brand,
body:not(.home):not(.front-page) .confaf-header__brand,
body.home .confaf-header__brand,
body.front-page .confaf-header__brand {
  position: absolute !important;
  left: 0 !important;
  top: 0 !important;
  width: 365px !important;
  height: 160px !important;
  z-index: 1100 !important;
  pointer-events: auto !important;
}

/* 4) Garante que o menu continue branco e bonito */
.confaf-nav > ul > li > a,
body:not(.home):not(.front-page) .confaf-nav > ul > li > a,
body.home .confaf-nav > ul > li > a {
  color: #fff !important;
}

/* 5) Ajuste responsivo universal */
@media (max-width: 900px) {
  .confaf-header,
  body:not(.home):not(.front-page) .confaf-header,
  body.home .confaf-header {
    position: relative !important;
    height: auto !important;
  }

  .confaf-header__bar,
  body:not(.home):not(.front-page) .confaf-header__bar,
  body.home .confaf-header__bar {
    top: 0 !important;
    width: calc(100% - 20px) !important;
    height: 76px !important;
    min-height: 76px !important;
    margin: 12px auto 14px !important;
    padding-left: 185px !important;
  }

  .confaf-header__brand,
  body:not(.home):not(.front-page) .confaf-header__brand,
  body.home .confaf-header__brand {
    width: 230px !important;
    height: 125px !important;
  }
}

@media (max-width: 600px) {
  .confaf-header__bar,
  body:not(.home):not(.front-page) .confaf-header__bar,
  body.home .confaf-header__bar {
    width: calc(100% - 14px) !important;
    height: 68px !important;
    min-height: 68px !important;
    padding: 0 12px 0 128px !important;
  }

  .confaf-header__brand,
  body:not(.home):not(.front-page) .confaf-header__brand,
  body.home .confaf-header__brand {
    width: 165px !important;
    height: 100px !important;
  }
}

