/*palette
#bd2025 - Rosso
#2F4858 - GrigioScuro
#2D3142 - Blu
*/

/*generals*/

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: #2F4858;
}

li {
    list-style: none;
}

p a {
    color: #bd2025;
}

p a:hover {
    text-decoration: underline;
    color: #bd2025;
}

a {
    color: inherit;
}

a:hover {
    color: inherit;
}

.btn-orange {
    font-size: 18px;
    background-color: transparent;
    color: #2F4858;
    font-weight: bold;
    border: 2px solid #2F4858;
    border-radius: 6px;
}

.btn-orange:hover {
    background-color: #2F4858;
    color: white;
}

.btn-gray {
    font-size: 18px;
    background-color: transparent;
    color: #2F4858;
    font-weight: bold;
    border: 2px solid #2F4858;
    border-radius: 6px;
}

.btn-gray:hover {
    background-color: #bd2025;
    border-color: #bd2025;
    color: white;
}

.btn-white {
    font-size: 18px;
    background-color: transparent;
    color: white;
    font-weight: bold;
    border: 2px solid white;
    border-radius: 6px;
}

.btn-white:hover {
    background-color: white;
    color: #2F4858;
}

.btn-scrolltop {
    font-size: 18px;
    background-color: white;
    ;
    color: #2F4858;
    font-weight: bold;
    border: 2px solid #2F4858;
    border-radius: 6px;
    font-size: small;
}

.btn-scrolltop:hover {
    background-color: #2F4858;
    color: white;
    border: 2px solid white;
}

.scrolltop-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1040;
    opacity: 0;
    display: none;
}


.scrolltop-button.on-view {
    animation: fade-in .75s forwards ease-in;
    animation-delay: .0s;
}

.header-box {
    height: 400px;
    width: 100%;
    background-color: rgb(47, 72, 88, 0.5);
}

/*
a {
    color: inherit;
}

a:hover {
    color: inherit;
}*/

.orange-badge {
    background-color: #2F4858;
    color: white;
    font-size: inherit;
}

.green-badge {
    background-color: #51af3d;
    color: white;
    font-size: inherit;
}

.orange-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background-color: #2F4858;
    filter: opacity(70%);
}

.white-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background-color: white;
    filter: opacity(70%);
}

.darker-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background-color: black;
    filter: opacity(30%);
}


.fixed-container {
    margin-top: 75px;
}

h1 {
    font-weight: bold;
    font-size: 60px;
}

h2 {
    font-weight: bold;
}

h3 {
    font-weight: bold;
}

h4 {
    font-weight: bold;
}

.divider {
    height: 50px;
}

form label {
    color: #2F4858;
    font-weight: bold;
}

form input {
    outline: none;
    box-shadow: none;
}

form input:active {
    border-color: none;
}

/*navbar*/

.navbar {
    background-color: white !important;
    box-shadow: 0 2px #2F4858;
}

.nav-item .nav-link {
    font-size: 18px;
    color: #2F4858 !important;
    font-weight: bold;
}

.logged-in.admin-bar .fixed-top {
    top: 30px;
}

.dropdown-menu {
    width: 250px;
}

.dropdown-menu a {
    opacity: 0;
    color: #2F4858;
    font-weight: bold;
}

.dropdown-menu a:hover {
    box-shadow: inset -10px 0 #bd2025;
    color: #2F4858;
}

.dropdown-menu a:focus {
    background-color: #2F4858;
    color: white;
}

.dropdown-menu.show a {
    animation: fade-in .5s forwards;
}

.navbar-brand img {
    max-width: 60px;
}

.nav-item .nav-link img {
    max-height: 43px;
}

/*modal*/

.modal-content {
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.19);
    border: none;
}

.modal-header {
    background-color: #2F4858;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
}

.modal-header h2 {
    color: white;
}

.modal-footer {
    border: none;
}

/* HOME */

/* header */

#home-header {
    background-image: url("/wp-content/themes/24service-theme/img/home-final.jpg");
    background-attachment: fixed;
    background-position: top;
    height: 600px;
}

#home-subheader {
    background-image: url("/wp-content/themes/24service-theme/img/afg-transparent.png");
    background-attachment: scroll;
    background-position: bottom;
    background-size: contain;
    background-repeat: no-repeat;
    height: 250px;
    opacity: 0;
}


#home-subheader.on-view {
    animation: fade-in .75s forwards ease-in;
    animation-delay: 0s;
}

#home-header .col-lg-6 {
    /*background-color: rgba(47, 72, 88, 0.7)*/
    /* rgba(189, 4, 12, 0.7)*/
}

.box-motto {
    height: 600px;
    width: 100%;
}

.box-motto h1 {
    color: white;
    animation: fade-in .75s forwards ease-in;
    animation-delay: .75s;
    opacity: 0;
}

.box-motto .btn {
    animation: fade-in .75s forwards ease-in;
    animation-delay: 1.25s;
    opacity: 0;
}

.box-motto .btn-white:hover {
    color: #2F4858;
}

.triangle-shape {
    
}

#box-img-header {
    height: 350px;
    opacity: 0;
    animation: fade-in 1s forwards ease-in;
    animation-delay: 1s;
}

#box-img-header img {
    position: relative;
    height: 80%;
    /*max-width: 80%;*/
}

/* section cards */

.box-card {
    height: 400px;
    border-radius: 12px;
    opacity: 0;
}

.box-card div {
    text-align: center;
}

.card-tit {
    background-color: #2F4858;
    color: white;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    height: 75px;
    width: 100%;
}

.card-icon {
    height: 100px;
}

.card-description {
    height: 140px;
}

.card-button {
    height: 85px;
}

.box-card i {
    font-size: 60px;
    color: #2F4858;
}

#section-cards.on-view .box-card#first-card {
    animation: fade-in .75s forwards ease-in;
    animation-delay: .0s;
}

#section-cards.on-view .box-card#second-card {
    animation: fade-in .75s forwards ease-in;
    animation-delay: .25s;
}

#section-cards.on-view .box-card#third-card {
    animation: fade-in .75s forwards ease-in;
    animation-delay: .5s;
}

/*section services*/

.service-link {
    height: 125px;
}

#services-container {
    background-image: url("/wp-content/themes/24service-theme/img/servicesbg.jpg");
    background-position: center;
    background-size: cover;
    background-attachment: fixed;
    background-repeat: no-repeat;
}

#services-container h2 {
    color: #2F4858;
    margin: 0;
    font-size: 60px;
}

#services-container .col {
    background-color: rgba(255, 255, 255, 0.7);
}

#services-container .col .text-center {
    opacity: 0;
}

#services-container .col .text-center.on-view {
    animation: fade-in .75s forwards ease-in;
    animation-delay: .0s;
}

.box-service-container {
    width: 25%;
}

.box-service {
    height: 400px;
    /*width: 350px;*/
    border-radius: 12px;
    background-color: #2F4858;
    transition: all 0.3s ease;
    transform: scale(1);
    opacity: 0;
}

.box-service:hover {
    transform: scale(1.09);
    transition: all 0.3s ease;
}

.box-service div {
    text-align: center;
}

.box-service .card-tit {
    background-color: #2F4858;
}

.service-image {
    height: 200px;
    background-repeat: no-repeat;
    background-size: cover;
    width: 100%;
    background-position: center;
}

#service-1 .service-image {
    background-image: url("/wp-content/themes/24service-theme/img/idraulico.jpg");
    background-position: top;
}

#service-2 .service-image {
    background-image: url("/wp-content/themes/24service-theme/img/elettricista.jpg");
}

#service-3 .service-image {
    background-image: url("/wp-content/themes/24service-theme/img/fabbro.jpg");
}

#service-4 .service-image {
    background-image: url("/wp-content/themes/24service-theme/img/domotica.jpg");
}

#service-5 .service-image {
    background-image: url("/wp-content/themes/24service-theme/img/antiintrusione.jpg");
}

#service-6 .service-image {
    background-image: url("/wp-content/themes/24service-theme/img/ricercaperdite.jpg");
}

#service-7 .service-image {
    background-image: url("/wp-content/themes/24service-theme/img/automazione.jpg");
}

#service-8 .service-image {
    background-image: url("/wp-content/themes/24service-theme/img/serramenti.jpg");
}

#service-9 .service-image {
    background-image: url("/wp-content/themes/24service-theme/img/amianto.jpg");
}

#service-10 .service-image {
    background-image: url("/wp-content/themes/24service-theme/img/edilizia.jpg");
}

#service-11 .service-image {
    background-image: url("/wp-content/themes/24service-theme/img/tinteggiature.jpg");
}

#service-12 .service-image {
    background-image: url("/wp-content/themes/24service-theme/img/solare.jpg");
    background-position: bottom;
}

.on-view.box-service {
    animation: fade-in .75s forwards ease-in;
    animation-delay: .0s;
}


/*about*/
.box-about {
    height: 400px;
    opacity: 0;
}

.box-about h2 {
    color: #2F4858;
    margin: 0;
    font-size: 60px;
}

#section-about.on-view .box-about,
#section-about.on-view #about-logo {
    animation: fade-in .75s forwards ease-in;
    animation-delay: 0s;
}

#about-logo {
    height: 100%;
    opacity: 0;
}

/*work-with-us*/

.box-work-with-us {
    height: 100%;
}

.box-work-with-us h2 {
    color: #2F4858;
    margin: 0;
    font-size: 60px;
}

.box-work-with-us form {
    width: 100%;
}

/*blog*/
.article-box {
    height: 300px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.article-shadow {
    background-color: rgba(47, 72, 88, 0.5);
}

.article-box a:hover {
    text-decoration: none;
}

.article-box h3 {
    color: white;
    margin: 0;
}

.article-box p {
    color: white;
    text-overflow: ellipsis;
    overflow: hidden !important;
    width: 100%;
}

/*article*/
.single-article-image {
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    height: 400px;
}

.single-article-box a:hover {
    text-decoration: none;
}

.single-article-box h1 {
    margin: 0;
}


.badge-category {
    background-color: #2F4858;
    font-size: 16px;
    color: white;
}

.badge-category:hover {
    color: white;
}

/*sidebar*/

.top-article-image {
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    width:140px;

}

.top-article-box{
    height:140px;
}

.top-article-content h3{
    color: #2F4858;
    margin: 0;
    font-size: 16px;
}

.top-article-content .badge {
    text-decoration: none;
    font-size: 10px;
}

.top-article-content a {
    text-decoration: none;
}

.sidebar-list a {
    text-decoration: none;
    width:50%;
}

.sidebar-list a:hover {
    text-decoration: underline;
}

.sidebar-list img{
    height:35px;
}

/*footer*/

#footer {
    background-color: #2F4858;
    color: white;
    font-size: x-small;
}

#footer ul {
    padding: 0;
}

#footer ul li:first-child {
    font-weight: bold;
}

#footer-logo {
    max-height: 90px;
}

#footer ul li img {
    max-width: 150px;
}

#footer .form-group{
    margin:0;
}


#footerCheckbox .wpcf7-list-item-label{
    color:white !important;
    font-weight: 500;
}

/*responsive*/

/*fixed-lg*/



/*navbar-fix*/

@media (max-width: 1243px) {
    .nav-item .nav-link {
        font-size: 16px;
    }

    .nav-item{
        padding-left: .3rem !important;
        padding-right: .3rem !important;
    }
    
    .nav-item .btn{
        font-size: 14px;
    }

    .top-article-box h5 {
        font-size: 14px;
    }
}


@media (max-width: 1366px) {

    /*.box-service {
        width: 250px;
    }*/

    .box-service-container {
        width: 33%;
    }

    .triangle-shape {
        border-left: 10vh solid transparent;
        width: 50vw;
    }

}

/* fix sidebar-list*/
@media (max-width: 1300px) { 
    .sidebar-list a {
        width:100%;
    }
}

@media (max-width: 1155px ){
    .nav-item .nav-link {
        font-size: 16px;
        padding-left:0px !important;
        padding-right:0px !important;
    }
}

/*md*/

@media (max-width: 991.98px) {
    .fixed-container {
        margin-top: 56px;
    }

    #home-header .col-lg-6 {
       /* background-color: rgba(255, 255, 255, 0.75); */
    }

    .box-service-container {
        width: 50%;
    }

    .article-box {
        height: 350px;
    }

    .top-article-box h6 {
        font-size: 0.8rem;
    }

    .sidebar-list a {
        width:33%;
    }


    /*
    #img-header {
        display: none;
    }*/

    .triangle-shape {
        display: none;
    }

    /*
    .box-card {
        width: 80%;
    }*/

}

/*sm*/
@media (max-width: 767.98px) {
    .box-service-container {
        width: 100%;
    }

    .top-article-box h6 {
        font-size: 1rem;
    }

    .sidebar-list a {
        width:50%;
    }
}

/*xs*/
@media (max-width: 575.98px) {

    /*.box-service {
        width: 335px;
    }*/

    h1 {
        font-size: 40px;
    }

    #box-img-header img {
        width: 75%;
        height: auto;
        /*max-width: 80%;*/
    }

    .article-box h3 {
        font-size: 20px;
    }

    .article-box p {
        font-size: 14px;
    }

    .article-box .btn {
        font-size: 14px;
    }

    .sidebar-list a {
        width:100%;
    }
}


/* animations */

@keyframes fade-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes grow {
    to {
        transform: scale(1);
    }
}

@keyframes de-grow {
    from {
        transform: scale(1);
    }

    to {
        transform: scale(0.9);
    }
}

@keyframes sliding-shape {
    from {
        right: -50vw;
    }

    to {
        right: 0;
    }
}