/*
Theme Name: Astra Child
Description: Tema filho do Astra para o site Mamborê Conecta
Template: astra
Version: 1.1.0
Text Domain: astra-child
*/
/* =====================================================
   Correção: Imagens PNG com fundo transparente
   O tema Astra adiciona background-color branco nas
   imagens. Este CSS remove esse comportamento.
   ===================================================== */

img,
.wp-post-image,
.attachment-post-thumbnail,
.attachment-full,
.wp-block-image img,
.elementor-image img,
.elementor-widget-image img,
.elementor-image-box-img img,
.elementor-widget-image-box img,
.elementor-icon-box-icon img,
.elementor-widget-icon-box img,
.elementor img,
.astra-img-icon img,
figure img,
.post-thumbnail img,
.entry-thumbnail img,
.logo-element img,
.custom-logo,
.site-logo img,
.ast-site-identity img {
    background-color: transparent !important;
    background: transparent !important;
}

/* Corrige especificamente imagens dentro de widgets e cards */
.widget img,
.card img,
.thumbnail img,
.wp-block-cover img,
.wp-block-media-text img {
    background-color: transparent !important;
    background: transparent !important;
}

/* =====================================================
   Correção: Fundo branco do container Astra (ast-separate-container)
   O tema Astra define background-color branco para os artigos
   individuais. Para páginas de empresa com template Elementor,
   precisamos que o fundo seja transparente.
   ===================================================== */

/* Corrige o container principal que o Astra deixa com fundo branco */
.ast-separate-container .ast-article-single:not(.ast-related-post) {
    background-color: transparent !important;
    background: transparent !important;
}

/* Corrige especificamente o wrapper do Elementor dentro de post-type empresa */
.ast-separate-container .ast-article-single.elementor-page:not(.ast-related-post),
.elementor-location-single,
.elementor-3343 {
    background-color: transparent !important;
    background: transparent !important;
}

/* =====================================================
Correção: box-shadow nas imagens PNG (Astra theme)
O tema Astra aplica box-shadow nas imagens dentro de
.ast-article-single, o que causa aparência de fundo
branco em imagens PNG com fundo transparente.
===================================================== */

/* Remove o box-shadow do Astra que cria "fundo branco" em PNGs transparentes */
.ast-article-single figure img,
.ast-article-single img:not(figure img),
.ast-article-single img {
    box-shadow: none !important;
}
