/*
 Theme Name:   GeneratePress Child
 Theme URI:    https://generatepress.com
 Description:  Default GeneratePress child theme
 Author:       Tom Usborne
 Author URI:   https://tomusborne.com
 Template:     generatepress
 Version:      0.1
*/


@media print {
    
    /* --- Seus outros estilos de impressão --- */

    /*
      SOLUÇÃO DEFINITIVA:
      Este seletor é super específico (html > body > p > .classe)
      e usa !important. Ele TEM que ganhar do estilo inline do AdSense.
    */
    html body p > .google-anno-skip,
    html body p > .google-anno-sc {
        display: none !important;
        visibility: hidden !important;
        height: 0 !important;
        width: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        position: absolute !important; /* Garante que saia do fluxo */
        left: -9999px !important;     /* Move para fora da tela */
    }

    /* Bônus: Ocultar banners de anúncio (como o RONDÔNIA da imagem) */
    .adsbygoogle,
    div[aria-label="Publicidade"],
    div[id^="google_ads_"] {
        display: none !important;
        visibility: hidden !important;
    }
    
    /* A. Define as margens da PRÓPRIA PÁGINA de impressão */
  @page {
    margin-top: 2cm;
    margin-bottom: 2cm;
    margin-left: 1cm;
    margin-right: 1cm;
  }

  /* B. Isola e formata o conteúdo a ser impresso */
  body * {
    visibility: hidden;
  }
  .inside-article, .inside-article * {
    visibility: visible;
  }
  
  .inside-article {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    box-shadow: none !important;
  }
    
    .sidebar, .main-navigation, .gb-element-3f6932cc, .comments-area, .lente-nervosa-share-buttons,
    footer.entry-meta{
        display: none !important;
    }
    
    div[class*="code-block"] {
    display: none !important;
  }
  
  div[class*="code-block"] + div {
    display: none !important;
  }

  /* --- AJUSTE FINAL CORRIGIDO --- */
  /* D. Seleciona o PRIMEIRO container de imagem (tag <figure>) dentro do artigo
     e ajusta sua margem superior para remover o espaço em branco. */
  .inside-article img:first-of-type {
    margin-top: -3em !important;
  }
  
  .site-header{
      visibility: visible !important;
      display: block !important;
      background-color: #222222 !important;
      
  }
  
  .site-footer{
      display: block !important;
      visibility: visible !important;
  }
}
/* FIM @media print*/


.code-block-label{font-size:10px;text-align:center;color:#aaa;}
.tag-capa .dynamic-entry-excerpt p{color:#FFFFFF;}

@media (max-width: 768px) {
    #a35769b3{
		height:100px;
	}
}


/*
 * Deixa o último widget da sidebar direita fixo durante o scroll.
 * Funciona apenas em telas de desktop para não prejudicar a experiência mobile.
*/
/* ÚLTIMO WIDGET DO SIDEBAR FIXO */
@media (min-width: 769px) {
    .site-content {
        display: flex;
	}
	.inside-right-sidebar {
		height: 100%;
	}
	.inside-right-sidebar > aside:last-child {
	    position: -webkit-sticky;
		position: sticky;
		top: 70px;
		min-height: 250px;
	}
}

.sticky-top-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    background-color: #ccc;
    padding: 5px;
}

.sticky-top-bar.bar_stuck {
    opacity: 1;
    pointer-events: auto;
}

.sticky-top-bar .grid-container {
    text-align: center;
}

.admin-bar .sticky-top-bar {
    margin-top: 32px;
}






.dynamic-entry-excerpt p {
    /* --- Estilos básicos --- */
    font-size: 13px;  /* Como você já estava usando */
    line-height: 1.6; /* Um bom espaçamento entre as linhas */
    margin-bottom: 0; /* Remove margem extra se houver */

    /* --- Código para limitar em 2 linhas --- */
    display: -webkit-box;
    -webkit-line-clamp: 2; /* <-- AQUI ESTÁ O COMANDO: limitar a 2 linhas */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis; /* Adiciona "..." ao final do texto cortado */
}

.home .inside-article{padding:0 !important;}

.data-custom-shortcode {
    font-size: 13px;
    color: #FFFFFF;
}

/* PARA MOBILE */
@media (max-width: 768px) {
    
}

/* PARA TABLET */
@media (max-width: 1024px) and (min-width: 769px) {
    
}