.card{
    padding-bottom: 2em;
}
.card:hover{
    cursor: pointer;
}
.card a, .card a:hover{
    text-decoration: none;
}
.title-text-p.card-text{
    margin-bottom:2em;
}
.card-text h3{
    text-align: center;
    font-weight: 200;
    font-size: 1.5em;
    line-height: 1.5em;
    color:#aaa;
    font-family: Avenir-Light;
    margin:2em 0 3em;
}
.card .imageCard{
    background-image: url("../img/default.png");
    width:100%;
    height:15em;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
    background-position: center;
}
.card .imageCard .contrastCard{
    width:100%;
    height: 100%;
    background-color: rgba(0,0,0,0.2);
    transition: .7s;
}
.card .imageCard p{
    top:50%;
    left:50%;
    transform: translate(-50%, -50%);
    position: relative;
    text-align: center;
    color:#fff;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size:1.3em;
    text-decoration: none;
}
.card .buttonCard{
    background-color: #eee;
    width:100%;
    text-align: center;
    height:.5em;
    transition: .7s;
}
.card .buttonCard p{
    top:50%;
    left:50%;
    transform: translate(-50%, -50%);
    position: relative;
    text-transform: uppercase;
    letter-spacing: 2px;
    color:#fff;
    opacity: 0;
    transition-delay: 1s;
    transition: .7s;
    text-decoration: none;
}

.card:hover .contrastCard{
    background-color: rgba(0,0,0,0.5);
}
.card:hover .buttonCard{
    background-color: #0084b6;
    height:5em;
}
.card:hover .buttonCard p{
    opacity: 1;
    text-decoration: none;
}

/*NUOVO MENU FOMRAZIONE e AMBITI*/
.row .row-eq-height{
    /*margin-top:-1em;
    margin-bottom:3.5em;*/
}
.container-table-card{
    margin-bottom: 0;
}
.pair .title-on-image{
    margin-top:-3em;
    margin-bottom:-1em;
}
.pair .title-on-image .hr-vertical{
    border:2px solid #f4f4f4;
}
.pair{
    background-color: #f4f4f4;
    margin: 0;
    width: 100%;
    /*padding: 3% 8%;*/
    height:20%;
}
.disp{
    background-color: #fff;
    margin: 0;
    width: 100%;
    /*padding: 3% 8%;*/
    height:20%;
}
.last-container{
    margin-bottom:-25px;
}
.card-bootstrap a:hover{
    text-decoration: none;
}
.card-bootstrap a:hover p{
    color:rgba(255,52,52,0.9);
}
.pair .row .col-md-1, .disp .row .col-md-1{
    height: 100%;
}
.card-bootstrap{
    /*margin: 0 1.5%;*/
    height: 100%;
}
.row .row-eq-height{
    height: 100%;
}
.card-menu{
    text-transform: uppercase;
    color:#000;
}
.card-menu .icon img{
    top: 50%;
    position: relative;
    transform: translateY(-50%);
    width:60%;
}
.card-menu .text{
    padding: 0;
}
.card-menu .text p{
    word-break: break-word;
    font-size:1em;
    font-weight:400;
    font-family: "Montserrat";
    top:50%;
    transform: translateY(-50%);
    position: relative;
    margin: 0;
}

/*SERVIZI*/
.container-servizi{
    width:100%;
    margin: 0;
    padding:0% 6% 0% 12%;
    margin-top:3em;
    margin-bottom:6em;
}
.card-servizi{
    margin: 0 1.5%;
    padding: 0;
}
.card-servizi .col-md-4{
    margin-right:-4em;
}
.card-servizi .square{
    height:4em;
    width:4em;
    border:6px solid #b2dae9;
    transition: .7s;
    background-color: #fff;
}
.card-servizi:hover .square{
    background-color: #b2dae9;
}
.card-servizi .text{
    text-align: left;
    text-transform: uppercase;
    font-family: "Montserrat";
    font-weight: 900;
    font-size: 1.4em;
    letter-spacing: 1px;
    top:0%;
    transform: translateY(50%);
    position: relative;
}
.card-servizi:hover .text{
    color:rgba(255,52,52,0.9);
}
.card-servizi .text.a-capo{
    transform: translateY(25%);
}
.height-top{
    height:1%;
    margin-top: 15px;
    margin-bottom: 0px;
}

/*SAFARI*/
@media screen and (min-color-index:0) and(-webkit-min-device-pixel-ratio:0) {
    @media
    {
        .safari_only {
            padding: 6% 0;
        }
    }
}
/*SAFARI*/

/*PLS LEGAL*/
.link-mobile{
    display: none;
}
@media only screen and (max-device-width: 991px){
    .disp, .pair{
        display: none;
    }
    .link-mobile, .pair-title{
        display: block;
    }
    .disp.pair-title{
        height:auto;
        margin-top:20px;
    }
    .disp.pair-title h2{
        margin-top:0.5em;
    }
	.link-mobile h2, .disp.pair-title h2, .pair.pair-title h2{
		font-size: 1.3em;
	}
    .pair.pair-title{
        height:auto;
    }
    .link-mobile{
        padding-bottom: 2em;
    }
}
