/* 
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 2.0.0
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/* Add your custom styles here */

.d-none {
    display: none !important;
}

@media (min-width: 768px) {
    .d-lg-block {
        display: block !important;
    }

    .d-lg-none {
        display: none !important;
    }
}

/* ================================================
   CUSTOMIZAÇÃO ABAS ELEMENTOR - NESTED TABS
   Layout: 4 abas + separador + 2 abas
   ================================================ */

/* ETAPA 1: Estrutura Flexbox para quebra de linha */
.e-n-tabs-heading {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 20px;
}

/* ETAPA 2 & 3: Estilização base das abas */
.e-n-tab-title {
    font-size: 22px !important;
    font-weight: 700 !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    position: relative;
}

.e-n-tab-title a,
.e-n-tab-title-text {
    background-color: transparent !important;
    color: #fff !important;
    border: none !important;
    padding: 0 !important;
    height: 100% !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

.e-n-tab-title[aria-selected="true"] {
    background-color: transparent !important;
    border-color: transparent !important;
}

/* LINHA 1: Primeiras 4 abas (25% cada) */
.e-n-tab-title:nth-child(1),
.e-n-tab-title:nth-child(2),
.e-n-tab-title:nth-child(3),
.e-n-tab-title:nth-child(4) {
    flex: 0 0 calc(25% - 15px);
    min-height: 200px;
}

/* LINHA 2: 5ª aba - Separador/Título "TREINOS VIRTUAIS" (100%) */
.e-n-tab-title:nth-child(5) {
    flex: 0 0 100%;
    pointer-events: none;
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    padding: 30px 0 !important;
    background-color: transparent !important;
    background-image: none !important;
    border: none !important;
}

/* LINHA 3: 6ª e 7ª abas (50% cada) */
.e-n-tab-title:nth-child(6),
.e-n-tab-title:nth-child(7) {
    flex: 0 0 calc(25% - 10px);
    min-height: 200px;
}

/* ETAPA 4: Imagens de fundo específicas */

/* Aba 1: CORRIDA / TRAIL */
.e-n-tab-title:nth-child(1) {
    background-image: url(http://teoesportes.com.br/wp-content/uploads/2023/04/imagens-corrida-v02.jpg) !important;
}

/* Aba 2: NATAÇÃO */
.e-n-tab-title:nth-child(2) {
    background-image: url(http://teoesportes.com.br/wp-content/uploads/2023/04/imagens-natacao-v03.jpg) !important;
}

/* Aba 3: TRIATHLON */
.e-n-tab-title:nth-child(3) {
    background-image: url(http://teoesportes.com.br/wp-content/uploads/2023/04/imagens-multi-esportes-online.jpg) !important;
}

/* Aba 4: TREINO DE FORÇA */
.e-n-tab-title:nth-child(4) {
    background-image: url(http://teoesportes.com.br/wp-content/uploads/2023/04/treino-de-forca-categoria-v02.jpg) !important;
}

/* Aba 6: UMA MODALIDADE */
.e-n-tab-title:nth-child(6) {
    background-image: url(http://teoesportes.com.br/wp-content/uploads/2023/04/imagens-multi-esportes-categoria.jpg) !important;
}

/* Aba 7: TRIATHLON OU DUAS MODALIDADES */
.e-n-tab-title:nth-child(7) {
    background-image: url(http://teoesportes.com.br/wp-content/uploads/2023/04/imagens-multi-esportes-categoria-online-v02.jpg) !important;
}

/* ETAPA 5: Overlay de escurecimento para melhorar legibilidade */
.e-n-tab-title:not(:nth-child(5))::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.3);
    z-index: 0;
}

.e-n-tab-title-text {
    position: relative;
    z-index: 1;
}

/* ETAPA 6: Responsividade para mobile */
@media (max-width: 768px) {
    .e-n-tab-title:nth-child(1),
    .e-n-tab-title:nth-child(2),
    .e-n-tab-title:nth-child(3),
    .e-n-tab-title:nth-child(4),
    .e-n-tab-title:nth-child(6),
    .e-n-tab-title:nth-child(7) {
        flex: 0 0 100%;
    }
}

/* Linhas decorativas entre as abas (desktop) */
@media (min-width: 1000px) {

    /* Linhas horizontais antes e depois do separador "TREINOS VIRTUAIS" */
    .e-n-tab-title:nth-child(5)::before,
    .e-n-tab-title:nth-child(5)::after {
        content: '';
        display: block;
        width: 100px;
        height: 2px;
        background: #fff;
        position: absolute;
        top: 50%;
        left: 18%;
        transform: translateY(-50%);
        z-index: 1;
    }

    .e-n-tab-title:nth-child(5)::after {
        left: auto;
        right: 18%;
    }

    /* Linhas verticais antes da 6ª aba e depois da 7ª aba */
    .e-n-tab-title:nth-child(6)::before,
    .e-n-tab-title:nth-child(7)::after {
        content: "";
        width: 2px;
        height: 120%;
        background: #fff;
        position: absolute;
        top: -53px;
        z-index: 1;
    }

    .e-n-tab-title:nth-child(6)::before {
        left: -30%;
    }

    .e-n-tab-title:nth-child(7)::after {
        left: auto;
        right: -140px;
    }

}

#lista-tags-top .elementor-post-info__terms-list a{
    border: solid 2px black!important;
    border-radius: 25px!important;
    padding: 5px 10px!important;
}

#lista-tags-bottom .elementor-post-info__terms-list-item{
    background-color: #fff7f3;
    color: #f7931e !important;
    font-size: 14px;
    padding: 12px 16px!important;
    border-radius: 25px!important;
    margin: 0 8px;
}

#lista-tags-bottom .elementor-post-info__terms-list-item:first-child {
    margin-left: 0;
}