/* Background */

.background {
    width: 100%;
    min-height: auto;
    position: relative;
    overflow: hidden;
    padding-top: 40px; 
    padding-bottom: 60px; 
    background: url('../img/bg1.png') center / cover no-repeat;
    background-attachment: fixed;
}

.divisoria {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%); 
    width: 100%;    
    z-index: 10;        
}

.divisoria hr {
    width: 100%;
    border: none;
    border-top: 2px solid #C0C0C0;
    margin: 0;
}

.box {
    position: relative;
    display: block;
    padding: 0 16px;
}

.box-img {
    position: relative;
    max-width: 1280px; 
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 400px));

    justify-content: center;
    align-content: start; 
    gap: 40px; /* espaçamento entre cards */
    padding: 40px 0;
    margin: 0 auto;
    background: none !important
}

/* Card */

.hero {
    display: inline-block;
    position: relative;
    width: 400px;
    min-width: 280px;
    height: 400px;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 5px 5px 30px rgba(0, 0, 0, 0.3);
    margin: 0;
}

.hero-profile-img {
    width: 100%;
    height: 70%;
    background-size: cover;
    object-fit: cover;
    display: block;
}

.hero-description-bk {
    background-image: linear-gradient(0deg, #000000, #ffffff);
    border-radius: 30px;
    position: absolute;
    top: 55%;
    left: -5px;
    height: 65%;
    width: 108%;
    transform: skew(19deg, -9deg);
}


.first .hero-description-bk {
    background-image: linear-gradient(0deg, #d3891b, #9e001a)
}

.second .hero-description-bk {
    background-image: linear-gradient(0deg, #d3891b, #005281);
}

.third .hero-description-bk {
    background-image: linear-gradient(0deg, #d3891b, #008145);
}

.fourth .hero-description-bk {
    background-image: linear-gradient(0deg, #d3891b, #a15600)
}

.fifth .hero-description-bk {
    background-image: linear-gradient(0deg, #d3891b, #4b00a1)
}

.sixth .hero-description-bk {
    background-image: linear-gradient(0deg, #d3891b, #1b8800)
}

.hero-logo {
    height: 80px;
    width: 80px;
    border-radius: 20px;
    background-color: #fff;
    position: absolute;
    bottom: 30%;
    left: 30px;
    overflow: hidden;
    box-shadow: 5px 5px 30px rgba(0, 0, 0, 0.7);
}

.hero-logo img {
    height: 100%;
}

.hero-description {
    position: absolute;
    color: #fff;
    font-weight: 900;
    left: 200px;
    bottom: 26%;
}

.hero-date {
    position: absolute;
    color: #fff;
    left: 30px;
    bottom: 10%;
}

.hero-date h1 {
    font-size: 18px;
}

.hero-btn {
    position: absolute;
    color: #fff;
    right: 30px;
    bottom: 10%;
    padding: 10px 20px;
    border: 1px solid #fff;
}

.hero-btn a {
    color: #fff;
}

/* Resolucao */

@media (max-width: 768px) {

    .box-img {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
        gap: 24px;
        padding: 24px 0;
    }    

    .hero {
        width: 100%;
        max-width: 400px;
        height: 400px;
        margin: 0 auto;
    }

}