@import "constants.css";

#pillars {
    position: relative;
    padding: 150px 200px;
    color: white;
    text-align: center;
    min-height: 600px;
    justify-content: center;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.555);
}

#pillars::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
                url('../brinquedos/background.jpeg');
    background-size: cover;
    background-position: center top 62%;
    z-index: -1;
    filter: blur(4px);
}

#pillars .overlay {
    padding: 60px 20px;
}

#pillars h2 {
    font-size: 2.5em;
    margin-bottom: 40px;
}

.pillars-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.pillar {
    background-color: rgba(255, 255, 255, 0.2);
    padding: 20px;
    border-radius: 10px;
}

.pillar h3 {
    font-size: 1.8em;
    margin-bottom: 15px;
}

.pillar p {
    font-size: 1.1em;
}

.pillar img {
    max-width: 100%;
    max-height: 100px;
    min-width: 100px;
}

@media (min-width: 1025px) {
    .pillars-container {
        flex-direction: row; /* Coloca os pilares lado a lado no desktop */
        justify-content: space-between;
    }

    .pillar {
        width: 30%; /* Define a largura de cada pilar */
    }
}

.pillar {
    background-color: rgba(255, 255, 255, 0.2);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
}

.pillar h3 {
    font-size: 1.5em; /* Redução da fonte para telas menores */
    margin-bottom: 15px;
}

.pillar p {
    font-size: 1em; /* Ajuste da fonte para responsividade */
}

.pillar img {
    max-width: 100%;
    max-height: 100px;
    min-width: 100px;
}

/* Responsividade para tablets (768px a 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
    #pillars {
        padding: 60px 40px; /* Reduz o padding para tablets */
    }

    #pillars h2 {
        font-size: 2em;
    }

    .pillars-container {
        flex-direction: row;
        justify-content: space-between; /* Mais espaço entre os pilares */
        gap: 20px; /* Maior espaçamento entre os pilares */
    }

    .pillar {
        width: 48%; /* Ajuste a largura dos pilares para ocupar melhor o espaço */
    }
}

@media (max-width: 767px) {
    #pillars {
        padding: 60px 20px; /* Reduz o padding para telas menores */
    }

    #pillars h2 {
        font-size: 1.8em;
    }

    .pillars-container {
        flex-direction: column;
        gap: 15px; /* Menor espaçamento para dispositivos móveis */
    }

    .pillar {
        width: 100%; /* Pilares ocupam a largura completa no mobile */
    }

    .pillar h3 {
        font-size: 1.3em;
    }

    .pillar p {
        font-size: 0.95em;
    }
}