/**
Theme Name: Astra Child
Author: All is Singular
Author URI: https://allissingular.com
Description: Astra is the fastest, fully customizable & beautiful theme suitable for blogs, personal portfolios and business websites. It is very lightweight (less than 50KB on frontend) and offers unparalleled speed. Built with SEO in mind, Astra comes with schema.org code integrated so search engines will love your site. Astra offers plenty of sidebar options and widget areas giving you a full control for customizations. Furthermore, we have included special features and templates so feel free to choose any of your favorite page builder plugin to create pages flexibly. Some of the other features: # WooCommerce Ready # Responsive # Compatible with major plugins # Translation Ready # Extendible with premium addons # Regularly updated # Designed, Developed, Maintained & Supported by Brainstorm Force. Looking for a perfect base theme? Look no further. Astra is fast, fully customizable and beautiful theme!
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: astra-child
Template: astra
*/


/* Homepage Post Images Greyscale */
/*
.uagb-post__image img { 
  filter: grayscale(100%);
  transition: filter 0.3s ease-in-out; 
}

.uagb-post__image img:hover {
  filter: grayscale(0%); 
}*/


/* CSS para o Slider de Imagens de Fundo */
.slider-homepage {
/*    position: relative; /* Essencial para o posicionamento do texto e das imagens */
    overflow: hidden; /* Garante que as imagens não "escapem" */
    min-height: 400px; /* Ajuste conforme a altura desejada para o seu container */
    background-size: cover; /* Garante que as imagens de fundo cubram todo o container */
    background-position: center center; /* Centraliza as imagens */
}

.slider-homepage .uagb-container-inner-blocks-wrap {
/*    position: relative; /* Para garantir que o z-index funcione */
    z-index: 2; /* Faz com que o conteúdo (texto) fique por cima das imagens */
    /*display: flex; /* Para centralizar o texto verticalmente, se necessário */
    /*align-items: center; /* Centraliza verticalmente o conteúdo interno */
    /*height: 100%; /* Ocupa a altura total do slider */
}


/* Estilo para as imagens do slider */
.slider-homepage .slide-background {
    position: absolute !important;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
	background-attachment: fixed;
    opacity: 0; /* Começam invisíveis */
    transition: opacity 1s ease-in-out; /* Duração da transição do fade */
    z-index: 1; /* Ficam por baixo do conteúdo */
}

.slider-homepage .slide-background.active {
    opacity: 1; /* Imagem ativa visível */
}





/* Oculta o primeiro h2 de uma classe específica em páginas filhas de "centros-de-saude" (ID 123) */
.parent-pageid-841 .uagb-toc__list li:first-of-type {
    display: none;
}


/*Reduzir o container da imagem lateral azul ao tamanho da imagem */
.wp-block-uagb-container.imagem_lateral.uag-blocks-common-selector.uagb-layout-flex.uagb-block-b022f21c.alignfull.uagb-is-root-container {
    width: 150px;
}

/* Espaçamento no topo do h3 */
details:has(+ :is(p, h1, h2, h3, h4, h5, h6)) {
  margin-bottom: 30px; /* Add some spacing for visibility */
}
ul.wp-block-list, ol.wp-block-list {
    padding-bottom: 20px;
}


/* Espaçamento da meta no topo nas pages*/
.page .entry-header .entry-meta {
    margin-top: 1.5em;
}

/*Formatação de Details Block*/
.wp-block-details summary {
	padding: 6px 0px;
	margin: 0 -14px;
	background: #fff;
	color: var(--ast-global-color-0);
	border-top-width: 0px;
    border-left-width: 0px;
    border-right-width: 0px;
	border-bottom-width: 2px;
    border-color: var(--ast-global-color-7);
    border-style: solid;
}

details.wp-block-details.is-layout-flow.wp-block-details-is-layout-flow{
	/*background: var(--ast-global-color-6);*/
	background: #fbfbfb;
	padding: 0 14px;
}







.slider-homepage .slide-background.active {
    opacity: 1; /* Imagem ativa visível */
}


/*Espaçamento no bloco Details */

:root :where(.is-layout-flow) > :last-child{
	margin-block: 20px;
}

.servicos h3 {
    margin-left: 1.0rem;
	border-left: 0;
    padding-left: 0;
}

/* Alinha titulos à esquerda nos headers */
.ast-advanced-headers-layout-2 {
    text-align: inherit;
}


/* Homepage Imagens dos Destaques a 50% */
.homepage_posts.wp-block-uagb-post-grid .uagb-post__image {
    width: 50% !important;
}


/* Border Left nos H3 */
h3 {
    border-left: 4px solid #007998;
    padding-left: 10px;
}

.footer-widget-area h3 {
	display: inline-block;	
}

.wp-block-uagb-post-grid h3{
	border-left: none;
    padding-left: 0px;
}

.wp-block-file:not(.wp-element-button) {
    font-size: inherit;
}

@media only screen and (max-width: 767px) {
	ul.sub-menu li{
		font-size:0.8em;
	}
	
	/* Passar as tabs para seguindas no mobile */
	.uagb-tabs__wrap.uagb-tabs__stack1-mobile ul.uagb-tabs__panel{
		list-style-type: none;
		flex-direction: row;
	}
	.uagb-tabs__wrap.uagb-tabs__stack1-mobile ul.uagb-tabs__panel .uagb-tab{
		display: inline;
		width: auto;
	}
	
	.uagb-is-root-container {
    	padding-left: 20px !important;
        padding-right: 20px !important;
	}
	.homepage_posts.wp-block-uagb-post-grid .uagb-post__image {
    	width: 100% !important;
	}
	/* Esconde a última coluna (tanto o cabeçalho quanto os dados) */
	.saudep table th:nth-last-child(1),
	.saudep table td:nth-last-child(1) {
		display: none;
	}

	/* Esconde a penúltima coluna (tanto o cabeçalho quanto os dados) */
	.saudep table th:nth-last-child(2),
	.saudep table td:nth-last-child(2) {
		display: none;
	}
}

