/* Grid Xadrez Component Styles */

.grid-xadrez {
    background-color: var(--primarias-principal-150);
    color: var(--branco);
    width: 100vw;
    margin-left: calc(50% - 50vw);
    padding-top: 96px;
    padding-bottom: 88px;
}
.product__page-top-wrapper + .grid-xadrez {
    margin-top: 64px;
}

.grid-xadrez .container {
    max-width: 1284px;
}


.grid-xadrez .titulo-secao {
    color: var(--branco);
    margin-top: 0;
    margin-bottom: 88px;
}

.grid-xadrez h3 {
    margin-top: 0;
    margin-bottom: 16px;
    font-weight: 500;
    font-size: 2rem;
    line-height: 1.1;
    color: var(--secundarias-secundaria-100);
}
.grid-xadrez__descricao p,
.grid-xadrez__texto-descricao p,
.grid-xadrez__descricao ul,
.grid-xadrez__texto-descricao ul {
    font-weight: 300;
    font-size: var(--fonte-base);
    line-height: 1.4;
    color: var(--primarias-principal-00);
}


/* Área de xadrez (imagem + texto) */
.grid-xadrez__items {
    display: flex;
    flex-direction: column;
    gap: 88px;
    margin-bottom: 48px;
}

.grid-xadrez__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.grid-xadrez__item p:last-child,
.grid-xadrez__item ul:last-child {
    margin-bottom: 0;
}

.grid-xadrez__item:nth-child(odd) {
    flex-direction: row-reverse;
}

.grid-xadrez__imagem {
    display: flex;
    border-radius: var(--radius-g);
    overflow: hidden;
    justify-content: center;
    align-items: center;
}
.grid-xadrez__item:nth-child(odd) .grid-xadrez__imagem {
    width: 57%;
}
.grid-xadrez__item:nth-child(even) .grid-xadrez__imagem {
    width: 51%;
}

.grid-xadrez__imagem img {
    display: block;
    object-fit: cover;
    min-width: 100%;
    min-height: 100%;
}

.grid-xadrez__item:nth-child(odd) .grid-xadrez__conteudo {
    width: 34%;
}
.grid-xadrez__item:nth-child(even) .grid-xadrez__conteudo {
    width: 41%;
}

.grid-xadrez__titulo {
    margin-bottom: 32px !important;
}

/* Área de textos */
.grid-xadrez__textos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-left: -30px;
    margin-right: -30px;
    margin-bottom: 48px;
}

.grid-xadrez__texto {
    width: 33.33%;
    padding-left: 30px;
    padding-right: 30px;
    margin-top: 44px;
}


/* Botão */
.grid-xadrez .btn {
    margin-left: auto;
    margin-right: auto;
    display: flex;
}

/* Responsivo */
@media (max-width: 1023px) {
    .grid-xadrez__imagem {
        width: calc( 50% - 50px );
        height: 305px;
    }
    .grid-xadrez__conteudo {
        width: calc( 50% - 50px );
    }
}

@media (max-width: 991px) {
    .grid-xadrez {
        padding-top: 32px;
        padding-bottom: 48px;
    }
    .grid-xadrez__texto {
        width: 50%;
    }
}

@media (max-width: 767px) {
    .grid-xadrez .titulo-secao {
        margin-bottom: 32px;
    }
    .grid-xadrez__textos {
        margin-bottom: 30px;
    }
    .grid-xadrez__texto {
        width: 100%;
        margin-top: 32px;
    }
    .grid-xadrez h3 {
        font-size: 1.5rem;
        margin-bottom: 16px !important;
    }
    .grid-xadrez__descricao p,
    .grid-xadrez__texto-descricao p,
    .grid-xadrez__descricao ul,
    .grid-xadrez__texto-descricao ul {
        font-size: 1rem !important;
    }
    .grid-xadrez__items {
        gap: 32px;
        margin-bottom: 21px;
    }
    .grid-xadrez__item:nth-child(odd),
    .grid-xadrez__item:nth-child(even) {
        flex-direction: column;
    }
    .grid-xadrez__item:nth-child(odd) .grid-xadrez__imagem,
    .grid-xadrez__item:nth-child(even) .grid-xadrez__imagem {
        width: 100%;
        height: auto;
        margin-bottom: 24px;
        border-radius: var(--radius-m);
    }
    .grid-xadrez__item:nth-child(odd) .grid-xadrez__conteudo,
    .grid-xadrez__item:nth-child(even) .grid-xadrez__conteudo {
        width: 100%;
    }
} 