.title-viaggi .title {
    font-weight: 800;
    font-size: 2.51rem;
    color: rgb(54, 60, 72);
    text-align: center;
    margin: 0 auto;
    width: 70%;
    padding: 0.3rem;
    letter-spacing: 0.01rem;
    text-transform: uppercase;
}

.viaggio {
    line-height: 0;
    position: relative;
    background-color: #F9F9F9;
    box-shadow: 2px 2px 5px 0px rgba(0,0,0,0.2);
    float: left;
    margin-left: 1.3rem;
    margin-bottom: 1.3rem;
}

.viaggio:first-child {
    /*margin-left: 1.5rem;*/
}

.viaggio:last-child {
    /*margin-right: 1.5rem;*/
}

.viaggio .copertina{
    overflow: hidden;
    float: left;
    background-size: cover;
    background-position: center center;
    background-image: url("../images/test_layout_07/cani.png");
    display: block;
    position: relative;
}

.viaggio>a>span {
    font-size: 0.7rem;
    position: relative;
    z-index: 100;
    color: #ffffff;
}

.viaggio .text{
    display: none;
}

.viaggio .text .buttons{
    display: none;
    width: 100%;
    padding: 0.5rem 0.5rem;
    position: absolute;
    bottom: 0rem;
    right: 0rem;
}
.viaggio .text a{
    cursor: pointer;
}

.viaggio .text .buttons a{
    color: #FFFFFF;
    font-size: 0.58rem;
    font-weight: 600;
    padding: 0.3rem 0.9rem;
    border-radius: 0.3rem;
    float: right;
    margin-right: 0.5rem;
}

.viaggio .text .blue-button{
    background-color: #1C7CBF;
}

.viaggio .text .green-button{
    background-color: #95C11F;
}

.viaggio .copertina span {
    color: #FFFFFF;
    /*background-color: #666666;*/
    font-size: 0.55rem;
    font-weight: 800;
    padding: 2.5rem 0rem 0rem 3rem;
    position: relative;
    top: 0;
    left: 0;
    text-align: left;
    height: 3.238rem;
    width: 16.233rem;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    opacity: 0.6;
    margin-top: 13rem;
}

span#span1 {
    position: absolute;
    text-align: left;
    background-color: transparent;
    margin-top: 12rem;
    font-size: 0.7rem;
    border: none;
    z-index: 10000000 !important;
    opacity: 1;
}

.viaggio .text .data{
    display: none;
    font-size: 0.9rem;
    font-weight: 100;
    color: #575756;
    line-height: 0.1rem;
    margin-bottom: 0.7rem;
}

.viaggio .text .valign-wrapper{
    height: 2.8rem;
    align-items: flex-end;
}

.viaggio .text h5{
    color: #1C7CBF;
    font-size: 1.36rem;
    font-weight: 100;
    line-height: 1.4rem;
    margin: 0;
}

.viaggio .text .paese{
    display: none;
    font-size: 0.97rem;
    font-weight: 400;
    color: #575756;
    line-height: 1rem;
    margin: 0;
    margin-bottom: 0.7rem;
}

.viaggio .text hr {
    background-color: #cccccc;
    color: #cccccc;
    height: 1px;
    border: none;
    margin: 0.2rem 0;
}

.viaggio .text .descrizione {
    display: none;
    font-weight: 100;
    color: #757575;
    white-space: normal;
    height: 45%;
    display: block;
    display: -webkit-box;
    margin: 0 auto;
    font-size: 0.84rem;
    line-height: 1.3rem;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.viaggio .text .descrizione>*{
    margin: 0;
    height: 100%;
}

.viaggio .text .descrizione p{
    margin: 0 auto;
}

.viaggio .text .descrizione>p{
    white-space: normal;
    display: block;
    display: -webkit-box;
    font-size: 0.84rem;
    line-height: 1.3rem;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

.viaggio .text .descrizione>ul{
    padding-left: 1rem;
}

.viaggio .text .descrizione>ul>li{
    list-style: disc;
}

.vedi{
    display: none;
    background-color: #00476B;
    color: #FFFFFF;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.9rem;
    float: right;
    width: 10.08rem;
    height: 2.74rem;
    text-align: center;
    vertical-align: middle;
}

.viaggio:last-child{
    margin-bottom: 0;
}

.wrapper-viaggi {
    position: relative;
    margin-top: -1rem;
    background-color: #F4F4F4;
    height: auto;
    margin-bottom:1rem;
}

div#viaggiID {
    position: relative;
    width: 100%;
    height: 100%;
}

span#span2 {
    display: block;
    z-index: 10000000 !important;
    opacity: 1;
}


@media only screen and (min-width: 1020px){
    .viaggio .copertina:before {
        position: absolute;
        margin-left: 1rem;
        margin-top: 14rem;
        content: url("images/position_h30.png");
        z-index: 10000000 !important;
    }
    .viaggio a:before {
        position: absolute;
        margin-top: 13.5rem;
        content: "";
        z-index: 10000000 !important;
        background-color: #666666;
        height: 2.74rem;
        width: 100%;
        opacity: 0.75;
     }
}


/* Mobile style to overwrite the desktop style */
@media only screen and (max-width: 1037px) and (min-width: 1020px) {
    .viaggio:first-child {
        margin-left: 0rem;
    }

    .viaggio:last-child {
        margin-right: 0rem;
    }
}

@media only screen and (max-width: 400px) and (min-width: 0px) {
    .title-viaggi .title{
        font-size: 0.4rem;
    }
}

@media only screen and (max-width: 1019px) and (min-width: 0px) {
    .wrapper-viaggi{
        margin-bottom: 0;
        background-color: #FFFFFf;
    }
    .title-viaggi{
        background-color: #FFFFFf;
    }
    .title-viaggi .title{
        border: none;
        width: 100%;
        margin: 0;
        padding-bottom: 0.5rem;
        font-weight: 800;
        font-size: 2.2rem;
    }
    .viaggio{
        width: 100%;
        height: auto;
        margin: 0;
        margin-bottom: 0;
        padding-bottom: 1.5rem;
    }
    .viaggio .copertina{
        width: 100%;
        float: none;
        height: 14rem;
    }
    .viaggio .text{
        display: block;
        float: none;
        width: 100%;
        padding-right: 0.7rem;
    }
    .viaggio .text .data{
        width: 100%;
    }
    .viaggio .text .valign-wrapper{
        height: auto;
        padding-top: 0.5rem;
    }
    .viaggio .text hr{
        display: none;
        height: 2px;
        margin-left: 0.2rem;
        width: 70%;
        background-color: #1C7CBF;
    }
    .viaggio .text .buttons{
        padding-top: 0.2rem;
        padding-bottom: 0.8rem;
    }
    .viaggio .text .buttons a{
        float: left;
        border-radius: 0;
    }
    .viaggio-viaggi .viaggio:nth-child(n+6){
        display: none;
    }
    .viaggio:first-child, .viaggio:last-child {
        margin-left: 0rem;
    }
    span#span2 {
        display: none;
    }
    .viaggio .text .descrizione>ul {
        display: none;
    }
    .viaggio .text .descrizione>p {
        display: none;
    }
    .viaggio .text h5 {
        line-height: 1.7rem;
        font-weight: bold;
        font-size: 0.84rem;
        text-align: left;
        margin: 0 0 0.4rem 0;
        width: 100%;
        padding: 0.4rem 0;
        letter-spacing: 0.01rem;
        color: black;
        position: relative;
        margin-left: 1rem;
    }
    span#span3 {
        color: #96979b;
        font-size: 0.60rem;
        padding-top: 0.3rem;
        text-align: left;
        font-weight: 400;
        position: absolute;
        margin: 0;
        top: 0;
        left: 0;
        margin-top: 17rem;
        margin-left: 1.1rem;
    }
    .valign-wrapper a.hiddenL {
        display: block !important;
    }
}

@media only screen and (max-width: 358px) and (min-width: 0px) {
    .title-viaggi .title{
        font-size: 1rem;
    }
}

@media only screen and (max-width: 320px)  {
        .viaggio .text h5 {
            line-height: 1rem;
        }
}