/* Página Contato: formulário alinhado à identidade visual */
.page-id-7 .contact-form {
  width: 100%;
  max-width: 600px;
}

.page-id-7 .contact-form .grunion-field-wrap input[type="text"],
.page-id-7 .contact-form .grunion-field-wrap input[type="email"],
.page-id-7 .contact-form .grunion-field-wrap textarea {
  display: block;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.page-id-7 .contact-form .grunion-field-wrap textarea {
  min-height: 180px;
}

.page-id-7 .contact-form button.pushbutton-wide {
  width: auto;
  min-width: 160px;
  padding: 10px 24px;
  border: 0;
  border-radius: 9999px;
  background: #32373c;
  color: #fff;
}

.page-id-7 .contact-form button.pushbutton-wide:hover,
.page-id-7 .contact-form button.pushbutton-wide:focus {
  background: #1f2327;
  color: #fff;
}

.page-id-7 .sharedaddy h3.sd-title::before {
  display: none;
}


/* Banner de cookies: acomodar textos em português */
.cmplz-cookiebanner .cmplz-buttons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.cmplz-cookiebanner .cmplz-buttons .cmplz-btn {
  width: 100%;
  min-width: 0;
  white-space: normal;
  line-height: 1.3;
  text-align: center;
}

.cmplz-cookiebanner .cmplz-buttons .cmplz-view-preferences,
.cmplz-cookiebanner .cmplz-buttons .cmplz-save-preferences {
  grid-column: 1 / -1;
}

@media (max-width: 480px) {
  .cmplz-cookiebanner .cmplz-buttons {
    grid-template-columns: 1fr;
  }

  .cmplz-cookiebanner .cmplz-buttons .cmplz-btn {
    grid-column: 1;
  }
}


/* EPT — navegação entre matérias */
.prev-next-nav .vce-prev-next-link::before {
  display: block;
  margin: 0 0 6px;
  color: #cf4d35;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.prev-next-nav .vce-prev-link .vce-prev-next-link::before {
  content: "Próxima leitura";
}

.prev-next-nav .vce-next-link .vce-prev-next-link::before {
  content: "Leia também";
}

/* EPT — manter o submenu Mais dentro da largura da tela */
#menu-item-18055 > .sub-menu {
  right: 0;
  left: auto;
}


/* Newsletter: alinhamento interno do widget Jetpack */
.widget_blog_subscription form {
  padding: 16px;
}

.widget_blog_subscription form p {
  margin: 0 0 10px;
}

.widget_blog_subscription form p:last-child {
  margin-bottom: 0;
}

.widget_blog_subscription input[type="email"],
.widget_blog_subscription button[type="submit"] {
  display: block;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.widget_blog_subscription button[type="submit"] {
  margin: 0;
  text-align: center;
}

.widget_blog_subscription input[type="email"] {
  width: 100% !important;
}


/* EPT — páginas institucionais sem curtidas/compartilhamento (reversível) */
.page-id-8 .sharedaddy, .page-id-8 .meks_ess,
.page-id-7 .sharedaddy, .page-id-7 .meks_ess,
.page-id-18070 .sharedaddy, .page-id-18070 .meks_ess,
.page-id-18090 .sharedaddy, .page-id-18090 .meks_ess,
.page-id-18069 .sharedaddy, .page-id-18069 .meks_ess,
.page-id-18164 .sharedaddy, .page-id-18164 .meks_ess {
  display: none !important;
}

/* EPT — alvo de toque acessível do menu móvel */
@media (max-width: 1023px) {
  a.vce-responsive-nav {
    position: relative;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    line-height: 44px;
  }
  a.vce-responsive-nav::after {
    content: "Abrir menu";
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
}


/* EPT — compartilhamento único ao final das matérias */
.single-post .meks_ess {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid #e5e5e5;
}
.single-post .meks_ess::before {
  content: "Compartilhe esta matéria";
  display: block;
  width: 100%;
  margin-bottom: 12px;
  color: #333;
  font-weight: 700;
  line-height: 1.3;
}


/* EPT — desempenho móvel: 2026-08-27 (reversível) */
@media (max-width: 767px) {
  /* A primeira matéria de Últimos artigos assume o destaque estático. */
  .home .vce-featured-grid {
    display: none !important;
  }

  /* Evita baixar as imagens externas pesadas do Instagram no carregamento inicial. */
  #wpcom_instagram_widget-30 {
    display: none !important;
  }
}

/* Reserva a proporção do logo antes do download e reduz deslocamentos de layout. */
.vce-logo img {
  display: block;
  width: 270px;
  max-width: 100%;
  height: auto;
  aspect-ratio: 27 / 7;
}

/* Mantém o texto visível enquanto as fontes do tema são carregadas. */
@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("https://fonts.wp.com/s/opensans/v44/memSYaGs126MiZpBA-UvWbX2vVnXBbObj2OVZyOOSr4dVJWUgsjZ0B4gaVI.woff2") format("woff2");
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("https://fonts.wp.com/s/poppins/v24/pxiByp8kv8JHgFVrLGT9Z1xlFQ.woff2") format("woff2");
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("https://fonts.wp.com/s/poppins/v24/pxiByp8kv8JHgFVrLEj6Z1xlFQ.woff2") format("woff2");
}


/* EPT — logo proporcional e compartilhamento compacto no celular: 2026-08-27 */
@media (max-width: 767px) {
  /* Preserva a proporção natural 270 × 70 dentro do cabeçalho de 50 px. */
  .vce-logo img {
    width: 140px !important;
    max-width: 140px !important;
    height: auto !important;
    max-height: none !important;
    aspect-ratio: 27 / 7;
    object-fit: contain !important;
  }

  /* Mantém as cinco redes atuais em uma única fileira compacta. */
  .single-post .meks_ess {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 8px !important;
  }
  .single-post .meks_ess::before {
    flex: 0 0 100%;
    margin-bottom: 4px;
    text-align: center;
  }
  .single-post .meks_ess .meks_ess-item {
    float: none !important;
    display: inline-flex !important;
    flex: 0 0 44px !important;
    align-items: center;
    justify-content: center;
    width: 44px !important;
    min-width: 44px !important;
    height: 44px !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 44px !important;
  }
  .single-post .meks_ess .meks_ess-item::before {
    font-size: 16px !important;
    line-height: 1 !important;
  }
}

/* Mobile: alinhamento vertical do menu e do logo */
@media (max-width: 767px) {
  #header .vce-res-nav,
  #sticky_header .vce-res-nav {
    top: 50% !important;
    bottom: auto !important;
    height: 44px !important;
    transform: translateY(-50%) !important;
  }

  #header .vce-res-nav > .vce-responsive-nav,
  #sticky_header .vce-res-nav > .vce-responsive-nav {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
  }

  #header .site-branding {
    transform: translateY(4px) !important;
  }
}