.image-card {
    position: relative;
    overflow: hidden;
}

.image-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%;
    background-color: rgba(115, 203, 204, 0.9);
    transform: translateY(100%);
    transition: transform 0.3s ease;
    z-index: 1;
}

.overlay-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80%;
    padding: 20px 10px 10px 10px;
    color: white;
    z-index: 2;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    font-family: "Montserrat";
    font-size: 1rem;
    font-weight: bold;
    line-height: 1.2;
}

.image-card:hover::after,
.image-card:hover .overlay-content {
    transform: translateY(0);
}

.image-card img {
    transition: transform 0.3s ease;
}

.image-card:hover img {
    transform: scale(1.05);
}

/* Aplicar também na imagem maior dos destaques */
.dest-top {
    position: relative;
    overflow: hidden;
}

.dest-top::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 35%;
    background-color: rgba(115, 203, 204, 0.9);
    transform: translateY(100%);
    transition: transform 0.3s ease;
    z-index: 1;
}

.dest-top .overlay-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80%;
    padding: 20px;
    color: white;
    z-index: 2;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    font-family: "Montserrat";
    font-size: 1.5em;
    line-height: 1.2;
}

.dest-top:hover::after,
.dest-top:hover .overlay-content {
    transform: translateY(0);
}

.dest-top img {
    transition: transform 0.3s ease;
}

.dest-top:hover img {
    transform: scale(1.05);
}

/* Cores específicas para cada seção */
/* Destaques */
.destaques .image-card::after,
.destaques .dest-top::after {
    background-color: rgba(115, 203, 204, 0.9);
    /* #73cbcc */
}

/* O que fazer em campos */
.oqfc .image-card::after {
    background-color: rgba(153, 110, 175, 0.9);
    /* #996eaf */
}

/* Gastronomia */
.gastronomia .image-card::after {
    background-color: rgba(242, 112, 36, 0.9);
    /* #f27024 */
}

/* Crianças */
.kids .image-card::after {
    background-color: rgba(237, 16, 119, 0.9);
    /* #ed1077 */
}

/* -------------------MEDIA------------------------ */

@media(max-width:870px) {

    .dest-top::after {
        height: 33%;
        transform: none;
        transition: none;
    }

    .dest-top .overlay-content {
        font-size: 1.1rem;
        transform: none;
        transition: none;
    }

    .image-card::after {
        height: 50%;
        transform: none;
        transition: none;
    }


    .overlay-content {
        font-size: 0.9rem;
        transform: none;
        transition: none;
    }
}