/* SERVICES */

.item-service{
    display: inline-grid;
    margin: 15px 0;
    max-width: 24.6%;
    padding: 10px;
    border-radius: 15px;
}

.item-service-bis{
    display: inline-grid;
    margin: 15px 0;
    max-width: 32.5%;
    padding: 10px;
    border-radius: 15px;
}

.item-service > i{
    max-width: 100px;
    width: 100px;
    height: 100px;
    font-size: 50px;
    text-align: center;
    vertical-align: middle;
    line-height: 100px;
    margin: 0;
    color: white;
    position: relative;
    margin-left: 10px;
    margin-top: 10px;
    background-color: #3c3c3c;
}

.item-service-bis > i{
    position: absolute;
}


.item-service > i:before{
    z-index: 1;
}

.item-service > i:before, .item-service > i:after{
    position: absolute;
    width: 100px;
    height: 100px;
    left: -10px;
    top: -10px;
}

.item-service > i:after{
    content: "";
    background-color: #ffd259;
    border-top-left-radius: 8px;
}

.item-service:nth-child(even) > i:after{
    background-color: #6d6c6c;
}



h3.item-service-title{
    padding-top: 20px;
    font-size: 17px;
    line-height: 25px;
    text-transform: uppercase;
    margin-bottom: 16px;
    position: relative;
}

h3.item-service-title > a{
    text-decoration: none;
    color: black;
}


h3.item-service-extended-title{
    font-size: 18px;
    line-height: 25px;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 8px;
    margin-top: 10px;
}

h3.item-service-title > a:hover, .item-service > a:hover{
    color: #ffc527;
}

h3.item-service-title:before {
    content: "";
    width: 20px;
    height: 2px;
    position: absolute;
    bottom: -6px;
    left: 0;
    background-color: #313131;
    -webkit-transition: all 300ms linear 0ms;
    -moz-transition: all 300ms linear 0ms;
    -ms-transition: all 300ms linear 0ms;
    transition: all 300ms linear 0ms;
}

h3.item-service-extended-title:before {
    content: "";
    height: 3px;
    width: 30px;
    background-color: #ffc527;
    position: absolute;
    bottom: 0;
    left: 0;
}

.item-service > a > span{
    display: none;
    text-decoration: none;
    color: black;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 12px;

}

.item-service > a{
    text-decoration: none;
    color: black;
    font-weight: bold;
    font-size: 18px;
    vertical-align: middle;
}

.item-service:hover h3>a{
    color: #ffc527;
}

.item-service > a:hover span {
    color: #ffc527;
}
.item-service:hover a>span {
    display: inline-block;
}

.item-service-description{
    color: #525252;
    font-size: 14px;
}

.icon-heating:before{
    content: "";
    background: url("../../img/icons/icon-heating.svg");
    background-repeat: no-repeat;
    background-position: center;
}

.icon-floor-heating:before{
    content: "";
    background: url("../../img/icons/icon-floor-heating.svg");
    background-repeat: no-repeat;
    background-position: center;
}

.item-service-extended-product{
    display: inline-block;
    padding: 0;
    margin-top: 10px;
    margin-bottom: 10px;
    text-decoration: none;
    color: black
}

.item-service-extended-product:hover{
    color: #ffc527;
    text-decoration: none;
}

.item-service-extended-product:before{
    content: "";
    width: 20px;
    height: 2px;
    position: absolute;
    bottom: -6px;
    left: 0;
    background-color: #ffc527;
    -webkit-transition: all 300ms linear 0ms;
    -moz-transition: all 300ms linear 0ms;
    -ms-transition: all 300ms linear 0ms;
    transition: all 300ms linear 0ms;
}

.item-service-extended-photos{
    width: 30%;
    display: inline-block;
}

.item-service-extended-photos:visited{
    width: 100%;
    display: inline-block;
    transition: 1s;
}

.item-service-image{
    width: 100%;
}

.item-service-extended > img{
    max-width: 90vw;
}


@media only screen and (max-width: 943px){
    .item-service{
        display: inline-grid;
        margin: 15px 0;
        max-width: 32.5%;
        padding: 10px;
        border-radius: 15px;
    }
}

@media only screen and (max-width: 574px){
    .item-service{
        display: inline-grid;
        margin: 15px 0;
        max-width: 49.5%;
        padding: 10px;
        border-radius: 15px;
    }

    .item-service > i {
        margin-left: calc(50% - 37.5px);
        font-size: 40px;
        width: 75px;
        height: 75px;
        line-height: 75px;
    }

    .item-service > i:before, .item-service > i:after {
        width: 75px;
        height: 75px;
    }

    h3.item-service-title {
        font-size: 16px;
    }

    .icon-heating:before, .icon-floor-heating:before  {
        background-size: 60px;
    }
}

@media only screen and (max-width: 482px){
    .item-service{
        display: inline-grid;
        margin: 0;
        max-width: 100%;
        padding: 15px;
        border-radius: 15px;
    }

}