.home article:first-of-type,
.home .post:first-of-type {
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}
.home article:first-of-type img,
.home .post:first-of-type img {
  width: 100%;
  height: auto;
  display: block;
}
/* Header mobile sempre acima do conteúdo */
.ast-mobile-header-wrap,
.ast-mobile-header-content,
.ast-builder-header-mobile,
.ast-header-break-point .main-header-bar,
.ast-header-break-point .site-header,
.ast-header-break-point .main-header-menu-toggle,
.ast-header-break-point .ast-builder-menu-mobile .main-header-menu-toggle {
  position: relative;
  z-index: 100000 !important;
}
/* Botão do menu clicável */
.ast-header-break-point .main-header-menu-toggle,
.ast-header-break-point .menu-toggle,
.ast-header-break-point .ast-mobile-menu-trigger-minimal {
  pointer-events: auto !important;
  z-index: 100001 !important;
}
/* Conteúdo sempre abaixo do header */
.home .site-content,
.home .entry-content,
.home .wp-site-blocks,
.home .wp-block-group,
.home .wp-block-columns,
.home .n2-section-smartslider,
.home .n2-ss-slider,
.page .site-content,
.page .entry-content,
.page .wp-site-blocks,
.page .wp-block-group,
.page .wp-block-columns,
.single .site-content,
.single .entry-content,
.single .wp-site-blocks,
.single .wp-block-group,
.single .wp-block-columns {
  position: relative;
  z-index: 1 !important;
}
@media (max-width: 767px) {
  .wp-block-gallery.wp-block-gallery-is-layout-flex {
    flex-wrap: wrap !important;
  }
  .wp-block-gallery.wp-block-gallery-is-layout-flex .wp-block-image {
    width: 100% !important;
    flex-basis: 100% !important;
  }
}
/* Container da imagem */
.wp-block-gallery figure {
  position: relative;
  overflow: hidden;
}

/* Overlay com a caption */
.wp-block-gallery figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.55);
  color: #fff0e6;
  font-family: 'Work Sans', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-align: center;
  padding: 10px 8px;
  opacity: 0;
  transition: opacity 0.3s ease;
  margin: 0;
}

/* Aparece no hover */
.wp-block-gallery figure:hover figcaption {
  opacity: 1;
}
/* Esconde a caption por defeito */
.wp-block-gallery.has-nested-images figure.wp-block-image figcaption {
  opacity: 0 !important;
  transition: opacity 0.3s ease !important;
  background: rgba(0, 0, 0, 0.55) !important;
  color: #fff0e6 !important;
  font-family: 'Work Sans', sans-serif !important;
  font-size: 0.85rem !important;
  letter-spacing: 0.05em !important;
  text-align: center !important;
  max-height: 100% !important;
}

/* Aparece no hover */
.wp-block-gallery.has-nested-images figure.wp-block-image:hover figcaption {
  opacity: 1 !important;
}

/* Logo no Off-Canvas mobile */
#ast-mobile-popup-wrapper .ast-mobile-popup-inner::before {
  content: '';
  display: block;
  background-image: url('https://lessaismore.com/wp-content/uploads/2026/05/Logotipo-LiM-AGENCIA-vertical-COR-1-500x189.png');
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  width: 100%;
  height: 100px;
  margin: 25px 0;
}
@media (max-width: 767px) {
  .wp-block-gallery.has-nested-images figure.wp-block-image figcaption {
    opacity: 1 !important;
  }
}
/* Botão "mais notícias" homepage */
.wp-block-button__link.has-ast-global-color-5-color {
  background-color: #fff5ee !important;
  color: #1e1e64 !important;
  border: 2px solid #1e1e64 !important;
  border-radius: 0 !important;
  font-family: 'Work Sans', sans-serif !important;
  font-size: 0.85rem !important;
  letter-spacing: 0.05em !important;
  width: auto !important;
  min-width: 200px !important;
  max-width: 300px !important;
  white-space: nowrap !important;
}

.wp-block-button__link.has-ast-global-color-5-color:hover {
  background-color: #1e1e64 !important;
  color: #fff5ee !important;
}

/* Mobile */
@media (max-width: 767px) {
  .wp-block-button__link.has-ast-global-color-5-color {
    min-width: 160px !important;
    max-width: 260px !important;
  }
}

/* Centrar o botão */
.wp-block-buttons.is-content-justification-center {
  justify-content: center !important;
}
.wp-block-buttons.is-content-justification-center.wp-container-core-buttons-is-layout-1036ba7b {
  justify-content: center !important;
  display: flex !important;
  width: 100% !important;
}

.wp-container-core-buttons-is-layout-1036ba7b .wp-block-button {
  margin: 0 auto !important;
}
/* Substituir Next/Previous por Próximo/Anterior */
.nav-next a::before {
  content: "Próximo Artigo ";
}

.nav-previous a::before {
  content: "Artigo Anterior ";
}

/* Esconder o texto original */
.nav-next a,
.nav-previous a {
  font-size: 0 !important;
}

.nav-next a::before,
.nav-previous a::before {
  font-size: 1rem !important;
  font-family: 'Work Sans', sans-serif !important;
  color: #1e1e64 !important;
}

.mc4wp-form .mc4wp-privacy-notice {
    font-family: 'Work Sans', sans-serif;
    font-size: 12px;
    color: #3c5050;
    margin-top: 10px;
    line-height: 1.5;
}