/*  1. QUEM SOMOS */
.about-section {
    padding: 20px 5% 100px 5%;
    display: flex;
    justify-content: center;
    width: 100%;
}

.about-container {
    max-width: 1100px; 
    width: 100%;
}

.about-text {
    margin-bottom: 60px;
}

.about-text h2 {
    font-family: 'Poppins', sans-serif;
    color: #f5f5f5;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 30px;
}

.about-text p {
    font-family: 'Poppins', sans-serif;
    color: #f5f5f5; 
    font-size: 1.05rem;
    line-height: 1.8; 
    margin-bottom: 25px;
    text-align: left;
}

.about-text p strong {
    color: #ffffff; 
    font-weight: 700;
}

/*  2. GALERIA */
.about-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr); 
    gap: 20px; 
}

.gallery-item {
    border-radius: 12px;
    border: 2px solid #fc4c02; 
    overflow: hidden;
    aspect-ratio: 1 / 1; 
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    transition: transform 0.4s ease; 
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/*  3. PILARES */
.pilares-section {
    background-color: #fc4c02; 
    padding: 80px 5%;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.pilares-header {
    margin-bottom: 50px;
}

.pilares-header h2 {
    font-family: 'Poppins', sans-serif;
    color: #f5f5f5;
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0;
}

.pilares-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    gap: 40px;
    width: 100%;
    max-width: 1100px;
}

.pilar-item {
    display: flex;
    flex-direction: column;
    gap: 20px; 
}

.pilar-card {
    border-radius: 12px;
    overflow: hidden;
    background-color: #0a0a0a;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.pilar-card:hover {
    transform: translateY(-8px); 
}

.pilar-card img {
    width: 100%;
    aspect-ratio: 4 / 5; 
    object-fit: cover;
    object-position: center top;
}

.pilar-title {
    background-color: #1c1c1c;
    padding: 20px;
    text-align: center;
}

.pilar-title h3 {
    font-family: 'Poppins', sans-serif;
    color: #f5f5f5;
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0;
}

.pilar-text p {
    font-family: 'Poppins', sans-serif;
    color: #ffffff;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
    text-align: left;
}

/*  4. LEGADO */
.history-section {
    position: relative;
    background-color: #000000;
    padding: 100px 5%;
    display: flex;
    justify-content: center;
    overflow: hidden; 
}

.history-section::before {
    content: "";
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0; 
    background-image: url('../img/sobre/fundo.png'); 
    background-size: cover;
    background-position: center;
    opacity: 0.2; 
    z-index: 0; 
}

.history-container {
    position: relative;
    z-index: 1; 
    display: flex;
    gap: 60px;
    max-width: 1200px;
    width: 100%;
}

.history-text {
    flex: 1.2; 
    color: #f5f5f5;
    font-family: 'Poppins', sans-serif;
}

.history-text h2 {
    color: #f5f5f5;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 30px;
}

.history-text p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 25px;
    text-align: left;
}

.history-text strong {
    color: #ffffff;
    font-weight: 700;
}

.history-text ul {
    margin-bottom: 25px;
    padding-left: 20px;
    list-style-type: disc; 
}

.history-text li {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

.history-text li strong {
    color: #fc4c02; 
}

.history-gallery {
    flex: 1; 
    display: flex;
    flex-direction: column;
    gap: 20px; 
}

.history-gallery img {
    width: 100%;
    border-radius: 12px;
    border: 2px solid #fc4c02;
    object-fit: cover;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease; 
}

.history-gallery img:hover {
    transform: scale(1.05); 
    box-shadow: 0 10px 25px rgba(252, 76, 2, 0.3); 
    z-index: 2;
}

/*  RESPONSIVIDADE GERAL */

/*  1. NOTEBOOKS E TABLETS */
@media (max-width: 1200px) {
    /* GERAL */
    .about-section, .pilares-section, .history-section {
        padding-left: 5%;
        padding-right: 5%;
    }

    /* HISTÓRIA*/
    .history-container {
        gap: 30px;
    }
}

/*  2. TABLETS NA VERTICAL */
@media (max-width: 900px) {
    /* QUEM SOMOS */
    .about-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
    .about-text h2 { font-size: 2.2rem; }

    /* PILARES */
    .pilares-grid {
        gap: 20px;
    }
    .pilar-title h3 { font-size: 1.2rem; } 
    .pilar-text p { font-size: 0.9rem; }

    /* HISTÓRIA */
    .history-container {
        flex-direction: column; 
        gap: 50px;
    }
    
    .history-gallery {
        display: grid;
        grid-template-columns: repeat(2, 1fr); 
        gap: 15px;
    }
    
    .history-text h2 { font-size: 2.2rem; }
}

/*  3. CELULARES */
@media (max-width: 600px) {
    /* GERAL */
    .about-section, .pilares-section, .history-section {
        padding-top: 50px;
        padding-bottom: 50px;
    }

    /* QUEM SOMOS */
    .about-text h2 { 
        font-size: 1.8rem; 
        text-align: center; 
    }
    .about-text p { 
        font-size: 0.95rem;
        text-align: left; 
    }
    
    .about-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px; 
    }

    /* PILARES*/
    .pilares-header h2 { 
        font-size: 1.8rem; 
        text-align: center;
    }
    
    .pilares-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .pilar-item {
        max-width: 350px; 
        margin: 0 auto;
        text-align: center; 
    }
    .pilar-text p { text-align: center; }

    /* HISTÓRIA */
    .history-text h2 { 
        font-size: 1.8rem; 
        text-align: center;
    }
    
    .history-gallery {
        grid-template-columns: 1fr;
    }
}