#myitem {
    width: 100%;
    height: 513px;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.6);
}

#myitem a {
    color: white;
}

#myitem img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain !important; 
}

.legenda {
    display: flex;
    justify-content: center;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    position: absolute;
    text-align: center !important;
}

.txt {
    width: 95%;
    margin: 10px 0px 10px 0px;
    font-size: 18px;
    text-align: center;
}

.item-dest {
    background-color: aquamarine;
    border: 1px solid #c2c3c3;
    text-align: center;
}

.owl-nav {
    width: 100%;
    padding: 0px !important;
    margin: 0px !important;
    font-size: 3em;
    text-align: center;
}

.owl-nav button {
    margin: 0px !important;
    padding: 0px !important;
}

#carousel1 .owl-nav,
#carousel4 .owl-nav {
    width: 100%;
    padding: 0;
    text-align: left;
    color: white;
    font-weight: 100;
    position: absolute;
    bottom: 50%;
    margin: 0;
    font-size: 60px;
}

#carousel1 .owl-prev,
#carousel4 .owl-prev {
    float: left;
    margin-left: 15px !important;
}

#carousel1 .owl-next,
#carousel4 .owl-next {
    float: right;
    margin-right: 15px !important;
}

#carousel5 .owl-nav {
    margin-bottom: 15px !important;

}

@media(max-width:993px) {
    .txt {
        font-size: 14px;
    }

    .legenda {
        text-align: center;
        background-color: #000;
        z-index: 2;
    }

    #myitem {
        background-color: var(--body-background-color) !important;
        flex-direction: row !important;
        align-items: flex-end;
        height: 220px !important;
    }

    #myitem img {
        z-index: 1;
    }

}