
:root{
  --gltheme6-blue:#063b82;
  --gltheme6-blue-dark:#03285c;
  --gltheme6-blue-deep:#021f49;
  --gltheme6-yellow:#fcc509;
  --gltheme6-ink:#102f52;
  --gltheme6-bg:#f4f8fc;
  --gltheme6-line:#dce7f2;
  --gltheme6-white:#ffffff;
  --gltheme6-shadow:0 18px 55px rgba(4,48,101,.10);
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  color:var(--gltheme6-ink);
  background:#fff;
  font-family:inherit;
}
a{text-decoration:none}
img{max-width:100%;height:auto}
.screen-reader-text{
  position:absolute!important;
  width:1px;height:1px;
  padding:0;margin:-1px;
  overflow:hidden;clip:rect(0,0,0,0);
  white-space:nowrap;border:0;
}

/* CABEÇALHO */
.gltheme6-header{
  position:sticky;
  top:0;
  z-index:999;
  border-bottom:1px solid rgba(255,255,255,.10);
  background:linear-gradient(90deg,var(--gltheme6-blue-dark),var(--gltheme6-blue));
  box-shadow:0 8px 28px rgba(2,31,73,.12);
}
.gltheme6-header-inner{
  width:min(1320px,calc(100% - 36px));
  min-height:74px;
  margin:auto;
  display:grid;
  grid-template-columns:190px 1fr auto;
  gap:24px;
  align-items:center;
}
.gltheme6-brand img,
.gltheme6-brand .custom-logo{
  width:160px;
  max-height:52px;
  object-fit:contain;
}
.gltheme6-primary{min-width:0}
.gltheme6-menu{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:24px;
  margin:0;
  padding:0;
  list-style:none;
}
.gltheme6-menu li{margin:0}
.gltheme6-menu a{
  position:relative;
  display:inline-flex;
  align-items:center;
  min-height:44px;
  color:#fff;
  font-size:12px;
  font-weight:650;
  opacity:.96;
}
.gltheme6-menu a:after{
  content:"";
  position:absolute;
  left:0;right:0;bottom:4px;
  height:3px;
  border-radius:10px;
  background:var(--gltheme6-yellow);
  transform:scaleX(0);
  transition:.22s ease;
}
.gltheme6-menu a:hover:after,
.gltheme6-menu .current-menu-item>a:after,
.gltheme6-menu .current_page_item>a:after{transform:scaleX(1)}
.gltheme6-header-actions{
  display:flex;
  align-items:center;
  gap:10px;
}
.gltheme6-search{
  width:38px;height:38px;
  display:grid;place-items:center;
  border-radius:50%;
  color:#fff;
  border:1px solid rgba(255,255,255,.16);
}
.gltheme6-client{
  min-height:40px;
  display:inline-flex;
  align-items:center;
  padding:0 18px;
  border-radius:999px;
  color:#0b3269;
  background:var(--gltheme6-yellow);
  font-size:11px;
  font-weight:850;
  box-shadow:0 8px 18px rgba(0,0,0,.10);
}
.gltheme6-menu-toggle{
  display:none;
  width:42px;height:42px;
  padding:9px;
  border:0;
  border-radius:9px;
  background:rgba(255,255,255,.08);
}
.gltheme6-menu-toggle>span:not(.screen-reader-text){
  display:block;
  height:2px;
  margin:5px 0;
  background:#fff;
}

/* CONTEÚDO */
.gltheme6-content{min-height:65vh}
.gltheme6-page{margin:0}
.gltheme6-entry{width:100%}
.gltheme6-entry-header{
  width:min(1180px,calc(100% - 40px));
  margin:52px auto 18px;
}
.gltheme6-entry-header h1{
  margin:0;
  color:var(--gltheme6-blue);
  font-size:clamp(34px,4vw,52px);
  line-height:1.06;
}
.gltheme6-entry-content{width:100%}
.gltheme6-entry-content>p,
.gltheme6-entry-content>h2,
.gltheme6-entry-content>h3,
.gltheme6-entry-content>ul,
.gltheme6-entry-content>ol,
.gltheme6-entry-content>.wp-block-group:not(.alignfull):not(.alignwide){
  width:min(1180px,calc(100% - 40px));
  margin-left:auto;
  margin-right:auto;
}

/* Gutenberg / botões */
.wp-block-button__link,
.wp-element-button,
button,
input[type="submit"]{
  border-radius:10px;
  font-family:inherit;
  font-weight:800;
}
.wp-block-button__link,
.wp-element-button,
input[type="submit"]{
  background:var(--gltheme6-yellow);
  color:#092f67;
}
.wp-block-button.is-style-outline .wp-block-button__link{
  border-color:rgba(6,59,130,.40);
  color:var(--gltheme6-blue);
  background:transparent;
}
.wp-block-button__link:hover,
.wp-element-button:hover,
input[type="submit"]:hover{
  transform:translateY(-1px);
  box-shadow:0 10px 25px rgba(4,48,101,.12);
}

/* Páginas e posts comuns */
.gltheme6-archive-wrap{
  width:min(1180px,calc(100% - 40px));
  margin:58px auto;
}
.gltheme6-card-post{
  padding:26px;
  margin-bottom:18px;
  border:1px solid var(--gltheme6-line);
  border-radius:18px;
  background:#fff;
  box-shadow:0 10px 30px rgba(4,48,101,.055);
}
.gltheme6-card-post h2{margin:0 0 10px}
.gltheme6-card-post h2 a{color:var(--gltheme6-blue)}
.gltheme6-excerpt{color:#607288;line-height:1.7}

/* RODAPÉ */
.gltheme6-footer{
  position:relative;
  width:100%;
  max-width:100%;
  overflow:hidden;
  border-top:4px solid var(--gltheme6-yellow);
  border-bottom:0;
  color:#fff;
  background:linear-gradient(100deg,var(--gltheme6-blue-deep),var(--gltheme6-blue));
}
.gltheme6-footer-inner{
  position:relative;
  z-index:2;
  width:min(1320px,calc(100% - 36px));
  min-height:86px;
  margin:auto;
  padding:12px 0;
  display:grid;
  grid-template-columns:180px 1fr 180px;
  gap:24px;
  align-items:center;
}
.gltheme6-footer-brand img,
.gltheme6-footer-brand .custom-logo{
  width:120px;
  max-height:48px;
  object-fit:contain;
}
.gltheme6-footer-center{text-align:center}
.gltheme6-footer-center strong{display:block;font-size:14px}
.gltheme6-footer-center span{display:block;margin-top:4px;color:#d7e4f0;font-size:10px}
.gltheme6-footer-links{
  display:flex;
  justify-content:flex-end;
  gap:14px;
  margin:0;
  padding:0;
  list-style:none;
}
.gltheme6-footer-links a{color:#fff;font-size:10px}

/* Compatibilidade com o plugin de Integridade */
body.gl15-page-active .gltheme6-entry-header{display:none}
body.gl15-page-active .gltheme6-entry-content{
  margin:0;
  padding:0;
}
body.gl15-page-active .gltheme6-content{overflow:visible}

/* Responsivo */
@media(max-width:1100px){
  .gltheme6-header-inner{grid-template-columns:170px auto auto}
  .gltheme6-menu-toggle{display:block;justify-self:end}
  .gltheme6-primary{
    display:none;
    position:absolute;
    left:0;right:0;top:74px;
    padding:14px 18px 20px;
    background:linear-gradient(180deg,var(--gltheme6-blue),var(--gltheme6-blue-dark));
    box-shadow:0 18px 34px rgba(2,31,73,.18);
  }
  .gltheme6-primary.is-open{display:block}
  .gltheme6-menu{
    flex-direction:column;
    align-items:flex-start;
    gap:2px;
  }
  .gltheme6-menu a{width:100%}
}
@media(max-width:760px){
  .gltheme6-header-inner{
    width:min(100% - 24px,1320px);
    grid-template-columns:1fr auto;
    min-height:68px;
  }
  .gltheme6-brand img,
  .gltheme6-brand .custom-logo{width:138px}
  .gltheme6-header-actions{display:none}
  .gltheme6-primary{top:68px}
  .gltheme6-entry-header,
  .gltheme6-entry-content>p,
  .gltheme6-entry-content>h2,
  .gltheme6-entry-content>h3,
  .gltheme6-entry-content>ul,
  .gltheme6-entry-content>ol,
  .gltheme6-entry-content>.wp-block-group:not(.alignfull):not(.alignwide),
  .gltheme6-archive-wrap{width:min(100% - 28px,1180px)}
  .gltheme6-footer-inner{
    width:min(100% - 28px,1320px);
    grid-template-columns:1fr;
    padding:24px 0 32px;
    text-align:center;
  }
  .gltheme6-footer-brand{display:flex;justify-content:center}
  .gltheme6-footer-links{justify-content:center;flex-wrap:wrap}
}
@media(prefers-reduced-motion:reduce){
  *{scroll-behavior:auto!important;transition:none!important}
}


/* =========================================================
   INTEGRIDADE / SUBSITE — CORREÇÕES V6.3
   ========================================================= */

/* A primeira barra azul do tema não aparece no Portal.
   Permanece apenas o menu branco interno da página. */
body.gliportal-active .gltheme6-header,
body.glisub-active .gltheme6-header{
  display:none!important;
}

/* Remove qualquer espaço residual do cabeçalho oculto. */
body.gliportal-active .gltheme6-content,
body.glisub-active .gltheme6-content{
  margin-top:0!important;
  padding-top:0!important;
  min-height:0;
  overflow:visible;
}

/* Footer exclusivo do Portal:
   logo à esquerda + mensagem central + espaço livre à direita
   para o WhatsApp flutuante. */
body.gliportal-active .gltheme6-footer,
body.glisub-active .gltheme6-footer{
  width:100%;
  max-width:100%;
  margin:0;
  overflow:hidden!important;
  border-top:4px solid var(--gltheme6-yellow);
  border-bottom:0;
  box-shadow:none;
}

body.gliportal-active .gltheme6-footer::before,
body.gliportal-active .gltheme6-footer::after,
body.glisub-active .gltheme6-footer::before,
body.glisub-active .gltheme6-footer::after{
  content:none!important;
  display:none!important;
}

body.gliportal-active .gltheme6-footer-inner,
body.glisub-active .gltheme6-footer-inner{
  width:min(1320px,calc(100% - 40px));
  min-height:86px;
  padding:12px 0;
  display:grid;
  grid-template-columns:180px 1fr 180px;
  gap:20px;
  align-items:center;
}

body.gliportal-active .gltheme6-footer-inner::after,
body.glisub-active .gltheme6-footer-inner::after{
  content:"";
  display:block;
  width:100%;
  min-height:1px;
}

body.gliportal-active .gltheme6-footer-menu,
body.glisub-active .gltheme6-footer-menu{
  display:none!important;
}

body.gliportal-active .gltheme6-footer-brand,
body.glisub-active .gltheme6-footer-brand{
  display:flex;
  align-items:center;
  justify-content:flex-start;
}

body.gliportal-active .gltheme6-footer-brand img,
body.gliportal-active .gltheme6-footer-brand .custom-logo,
body.glisub-active .gltheme6-footer-brand img,
body.glisub-active .gltheme6-footer-brand .custom-logo{
  width:118px;
  max-width:118px;
  max-height:46px;
  object-fit:contain;
}

body.gliportal-active .gltheme6-footer-center,
body.glisub-active .gltheme6-footer-center{
  align-self:center;
  text-align:center;
}

body.gliportal-active .gltheme6-footer-center strong,
body.glisub-active .gltheme6-footer-center strong{
  display:block;
  margin:0;
  color:#fff;
  font-size:14px;
  line-height:1.35;
  font-weight:800;
}

body.gliportal-active .gltheme6-footer-center span,
body.glisub-active .gltheme6-footer-center span{
  display:block;
  margin-top:4px;
  color:#dce9f6;
  font-size:10px;
}

/* Impede barra horizontal provocada por elementos full-width. */
body.gliportal-active,
body.glisub-active{
  overflow-x:hidden!important;
}

@media(max-width:760px){
  body.gliportal-active .gltheme6-footer-inner,
  body.glisub-active .gltheme6-footer-inner{
    width:min(100% - 28px,1320px);
    min-height:auto;
    grid-template-columns:1fr;
    gap:8px;
    padding:20px 0 24px;
    text-align:center;
  }

  body.gliportal-active .gltheme6-footer-inner::after,
  body.glisub-active .gltheme6-footer-inner::after{
    display:none;
  }

  body.gliportal-active .gltheme6-footer-brand,
  body.glisub-active .gltheme6-footer-brand{
    justify-content:center;
  }
}


/* =========================================================
   V6.4 — PORTAL DE INTEGRIDADE SEM RODAPÉ DO TEMA
   O rodapé do tema é removido completamente do Portal.
   ========================================================= */
body.gliportal-active .gltheme6-footer,
body.glisub-active .gltheme6-footer,
body.gliportal-active footer.site-footer,
body.glisub-active footer.site-footer,
body.gliportal-active #colophon,
body.glisub-active #colophon,
body.gliportal-active footer.wp-block-template-part,
body.glisub-active footer.wp-block-template-part{
  display:none!important;
  height:0!important;
  min-height:0!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  overflow:hidden!important;
}

body.gliportal-active .gltheme6-content,
body.glisub-active .gltheme6-content{
  padding-bottom:0!important;
  margin-bottom:0!important;
}


/* =========================================================
   V6.5 — COMPATIBILIDADE COM GOVERNANÇA V7.5
   Mantém o tema neutro diante dos blocos específicos do Portal.
   ========================================================= */
body.gliportal-active .lip-section-governance,
body.glisub-active .lip-section-governance{
  width:100%;
  max-width:100%;
  margin-left:0;
  margin-right:0;
}

body.gliportal-active .lip-gov-table-wrap,
body.glisub-active .lip-gov-table-wrap{
  max-width:100%;
}


/* =========================================================
   V6.6 — COMPATIBILIDADE VISUAL DA GOVERNANÇA
   Mantém o tema neutro e evita interferência em largura e contraste.
   ========================================================= */
body.gliportal-active .lip-gov-overview article,
body.glisub-active .lip-gov-overview article,
body.gliportal-active .lip-gov-support-v2 article,
body.glisub-active .lip-gov-support-v2 article,
body.gliportal-active .lip-gov-routine-card,
body.glisub-active .lip-gov-routine-card{
  max-width:100%;
}

body.gliportal-active .lip-gov-consult,
body.glisub-active .lip-gov-consult{
  max-width:100%;
}


/* =========================================================
   V6.7 — COMPATIBILIDADE DE ALINHAMENTO DOS CARDS
   ========================================================= */
body.gliportal-active .lip-cards-3 > .wp-block-column,
body.glisub-active .lip-cards-3 > .wp-block-column{
  min-width:0;
}
body.gliportal-active .lip-company-grid article,
body.gliportal-active .lip-feature-grid article,
body.glisub-active .lip-company-grid article,
body.glisub-active .lip-feature-grid article{
  min-width:0;
}


/* =========================================================
   V6.8 — COMPATIBILIDADE DOS QUADROS DE GOVERNANÇA
   ========================================================= */
body.gliportal-active .lip-gov-level,
body.glisub-active .lip-gov-level,
body.gliportal-active .lip-gov-overview article,
body.glisub-active .lip-gov-overview article,
body.gliportal-active .lip-gov-support-v2 article,
body.glisub-active .lip-gov-support-v2 article{
  overflow:visible;
}


/* =========================================================
   V6.9 — COMPATIBILIDADE DE LEGIBILIDADE
   Impede que estilos globais escureçam o texto da Governança.
   ========================================================= */
body.gliportal-active .lip-section-governance p,
body.gliportal-active .lip-section-governance li,
body.glisub-active .lip-section-governance p,
body.glisub-active .lip-section-governance li{
  opacity:1;
  mix-blend-mode:normal;
  filter:none;
}


/* =========================================================
   V6.10 — NEUTRALIZAÇÃO DE COR NA GOVERNANÇA
   O tema não aplica cor escura sobre os painéis azuis do Portal.
   ========================================================= */
body.gliportal-active #governanca .lip-gov-overview p,
body.gliportal-active #governanca .lip-gov-level p,
body.gliportal-active #governanca .lip-gov-support-v2 p,
body.gliportal-active #governanca .lip-gov-main p,
body.gliportal-active #governanca .lip-gov-main span,
body.glisub-active #governanca .lip-gov-overview p,
body.glisub-active #governanca .lip-gov-level p,
body.glisub-active #governanca .lip-gov-support-v2 p,
body.glisub-active #governanca .lip-gov-main p,
body.glisub-active #governanca .lip-gov-main span{
  color:#f1f6ff !important;
  -webkit-text-fill-color:#f1f6ff !important;
  opacity:1 !important;
}
