/* HERO */
.hero {
    height: 135vh;
    background-image: url("../../images/pages/home/ceo_gaya.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    color: white;
    display: flex;
    justify-content: center;
    padding: 0 20px;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.45);
}

.hero * {
    position: relative;
    z-index: 1;
}

.hero-text {
    position: absolute;
    bottom: 30px;
    left: 30px;
    top: 300px;
    text-align: left;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 6px;
}

.hero p {
    font-size: 20px;
    max-width: 600px;
}

.hero-text h1 {
    margin: 0 0 3px 0;
}

/* SECTION SOBRE */
.sobre {
    display: flex;               
    justify-content: space-between;
    align-items: center;
    background: #CF0730;
    color: white;
    width: 100%;
    padding: 0px 20px;
    box-sizing: border-box;
}

.sobre-content {
    max-width: 700px;
}

.sobre-content p {
    font-size: 20px;
    line-height: 1.2;
    margin-bottom: 40px;
    max-width: 350px; 
    text-align: left;
}

.btn-sobre {
    display: inline-block;
    padding: 18px 60px;
    border: 2px solid #2C2C2C;
    color: #2C2C2C;
    font-size: 18px;
    text-decoration: none;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.btn-sobre:hover {
    background: #2C2C2C;
    color: white;
}

.sobre-img img {
    width: 380px;                
    height: auto;
    object-fit: cover;
    border-radius: 10px;         
}

/* SECTION PROJETOS */
#projeto {
    padding: 0px 20px;  
    width: 100%;
    box-sizing: border-box;
}

.cards {
    display: flex;
    flex-wrap: wrap;
    gap: 0px;            
    width: 100%;
    justify-content: flex-start; 
}

.card-institutional {
    position: relative;
    flex: 1 1 calc(50% - 10px);
    height: 330px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 0px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.card-institutional:hover {
    transform: translateY(-5px);
}

.card-institutional::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.25);
    transition: background 0.3s ease;
}

.card-institutional:hover::before {
    background: rgba(20,20,20,0.85);
}

.card-institutional h3 {
    position: absolute;
    bottom: 55px;
    left: 20px;
    margin: 0;
    font-size: 22px;
    color: #CF0730;
    z-index: 2;
    max-width: 220px;
    line-height: 1.2;
}

.card-institutional p {
    position: absolute;
    bottom: 25px;
    left: 20px;
    margin: 0;
    font-size: 15px;
    color: white;
    opacity: 0.9;
    z-index: 2;
}

.card-link {
    text-decoration: none; 
    color: inherit;       
    display: block;      
}

/* SECTION PARCEIROS */
#parceiros {
  width: 100%;
  padding: 40px 20px;
  box-sizing: border-box;
}

.container-parceiros {
  width: 100%;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.parceiros-logos {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  justify-items: center;
  align-items: center;
}

.parceiros-logos img {
  max-width: 150px;
  height: auto;
  object-fit: contain;
}

/* SECTION PRÃƒâ€°-CONTATO */
.pre-contato {
    display: flex;
    flex-direction: row-reverse;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0px 20px;
    background: #333;
    color: white;
    box-sizing: border-box;
}

.pre-contato-content {
    max-width: 700px;
}

.pre-contato-content p {
    font-size: 20px;
    line-height: 1.2;
    margin-bottom: 40px;
    max-width: 350px; 
    text-align: left;
}

.btn-pre-contato {
    display: inline-block;
    padding: 18px 60px;
    border: 2px solid #CF0730;
    color: #CF0730;
    font-size: 18px;
    text-decoration: none;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.btn-pre-contato:hover {
    background: #2C2C2C;
    color: white;
}

.pre-contato-img img {
    width: 380px;                
    height: auto;
    object-fit: cover;
    border-radius: 10px;         
}

/* SECTION LOCALIZÃƒâ€¡ÃƒÆ’O */
.localizacao {
    display: flex;
    padding: 40px 20px;
    width: 100%;
    box-sizing: border-box;
}

/* RESPONSIVO */
@media(max-width: 880px){
    nav {
        display: none;
        flex-direction: column;
        background: #333;
        position: absolute;
        top: 60px;
        right: 0;
        width: 200px;
        padding: 10px;
        border-radius: 4px;
    }

    nav a {
        margin: 10px 0;
    }

    .hamburger {
        display: block;
    }

    nav.active {
        display: flex;
    }

    /* HERO */
    .hero {
        height: 70vh;
        background-position: top center;
        background-position: 50% 10%;
        background-repeat: no-repeat;
    }

    .hero-text {
        top: unset;
        bottom: 100px;
        left: 20px;
    }

    .hero h1 {
        font-size: 28px;
    }

    .hero p {
        font-size: 15px;
        max-width: 90%;
    }

    /* SOBRE */
    .sobre {
        flex-direction: column;
        text-align: center;
    }
    .sobre-content, .sobre-img {
        flex: 1 1 100%;
    }

    /* PROJETOS */
    .card-institutional {
        flex: 1 1 100%;
    }

    /* PRÃƒâ€°-CONTATO */
    .pre-contato {
        flex-direction: column;
        text-align: center;
    }
    .pre-contato-content {
        margin-bottom: 20px;
        text-align: center;
    }

    .pre-contato-img img {
        max-width: 100%;
        margin-top: -20px;
        margin-bottom: -10px;
    }

    /* PARCEIROS */
    .parceiros-logos {
        grid-template-columns: repeat(auto-fit, minmax(100px, 2fr));
        gap: 38px;
    }
}