/*
Theme Name: Somos
Theme URI: 
Author: Somos
Author URI: 
GitHub Theme URI: 
Description: 
Version: 1.0.1
License: 
License URI: 
Text Domain: Somos
Tags: Dev
*/

/* ==========================================================================
   WMDX-206: Ajustes de Margens e Layout de Posts (Respiro Superior & Fallback)
   ========================================================================== */
.post-single__highlight {
  margin-top: 40px !important;
  margin-bottom: 80px !important;
  position: relative !important;
  min-height: 500px !important;
}

.post-single__highlight-description {
  bottom: -35px !important;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.18) !important;
  z-index: 2 !important;
}

.post-single__highlight-image {
  border-radius: 4px !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08) !important;
}

/* Fallback quando o post não possui imagem de destaque */
.post-single__highlight--no-image,
.post-single__highlight:not(:has(.post-single__highlight-image)) {
  min-height: auto !important;
  margin-bottom: 40px !important;
}

.post-single__highlight--no-image .post-single__highlight-description,
.post-single__highlight:not(:has(.post-single__highlight-image)) .post-single__highlight-description {
  position: relative !important;
  width: 100% !important;
  bottom: 0 !important;
  border-radius: 6px !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12) !important;
}

@media (max-width: 991.98px) {
  .post-single__highlight {
    margin-top: 130px !important;
    margin-bottom: 25px !important;
    min-height: auto !important;
  }
  .post-single__highlight-description {
    bottom: 0 !important;
    padding: 25px 20px !important;
  }
}
/* ==========================================================================
   Correção de Duplo Scrollbar & Vazamento de Espaço no Rodapé
   ========================================================================== */
html {
  overflow-x: hidden !important;
  overflow-y: auto !important;
}

body {
  overflow-x: hidden !important;
  overflow-y: visible !important;
  min-height: 100vh;
}

#body {
  overflow-x: hidden !important;
}

/* Evita que elementos decorativos (:after e :before) da newsletter estiquem a página abaixo do rodapé */
.sidebar-newsletter {
  overflow: hidden !important;
  position: relative !important;
}

.sidebar-newsletter:after {
  display: none !important;
}
