/*!
 *
 * File specifico per sito 
 *
 * Copyright 2014 SpoonDesign di Cattorini Davide
 * Tutti i diritti riservati - All rights reserved
 * http://www.spoondesign.it - info@spoondesign.it
 *
 */

* {
    box-sizing: border-box;
}
body, td, li  {
	font: 1rem/1.5rem Poppins, Verdana, Arial, Helvetica, sans-serif;
}
input, textarea, select, label, button {
	font: 1rem/1.5rem Poppins, Verdana, Arial, Helvetica, sans-serif !important;
}

a {
    color: #040447;
    text-decoration: underline;
}
a:hover {
    text-decoration: none;
}

/* FONT */

@font-face {
    font-family: Poppins;
    src: url("../fonts/poppins_regular.woff");
}
@font-face {
    font-family: Poppins;
    font-weight: bold;
    src: url("../fonts/poppins_bold.woff");
}

/* CONTENITORI */

.sdgrid {
    width: 93%;
    margin: 0 auto;
    clear: both;
}
.sdfull {
    width: 100%;
    clear: both;
}

/* FORM + BUTTONS */

.btn-primary {
    padding: 16px 18px;
    border: 0;
    border-radius: 5px;
    background: #040447;
    text-decoration: none !important;
    text-transform: uppercase;
    color: #FFF !important;
}
.btn-primary a {
    text-decoration: none !important;
    color: #FFF !important;
}

/* TOP */

.topbar {
    background: #FFF;
    color: #040447;
}
.topbar a {
    color: #040447;
}
.topbar ul {
    margin: 0;
    padding: 0;
    display: flex;
    list-style: none;
}
.topbar li {
    margin-left: 20px;
    font-weight: bold;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
}
.topbar li:first-child {
    margin-left: 0;
}
.topbar i {
    margin-right: 8px;
}

/* LOGO + MENU */

.logo_menu {
    background: #1D449B;
}
.logo_menu .sdgrid {
    min-height: 100px;
    display: flex;
    align-items: center;
}
.logo_menu .logo img {
    height: 50px;
}
.logo_menu .menu {
    margin-left: auto !important;
}
.logo_menu .menu .dj-up_a {
    border: 0 !important;
    font: bold 1rem Poppins, sans-serif !important;
    text-transform: none !important;
}

.dj-mobile-open-btn:focus, .dj-mobile-open-btn, .dj-mobile-open-btn:hover,
.dj-mobile-open-btn:focus, .dj-mobile-open-btn:hover, .dj-mobile-open-btn:focus {
    outline: none !important;
    background: none !important;
    color: #FFF !important;
}
.dj-megamenu-offcanvas .dj-mobile-open-btn {
    font-size: 2rem;
    text-transform: none;
}
.dj-mobile-open-btn, .dj-mobile-open-icon:before {
    margin: 0 !important;
    padding: 0 !important;
    height: auto !important;
    font-size: 2rem !important;
    background: none !important;
    outline: none !important;
    color: #FFF !important;
}

/* BANNER */

.banner {
    position: relative;
}
body.inside .banner .banner_splash {
    display: none;
    visibility: hidden;
}
.titlesection {
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.titlesection h1 {
    text-align: center;
    color: #FFF;
    position: relative;
    z-index: 10;
    font-weight: normal;
}
.titlesection .overlay {
    background: #000;
    opacity: 0.55;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* CONTENT */

.content {
    padding-top: 3rem;
    padding-bottom: 3rem;
    background: #F5FAFC;
}
body.inside .content .page-header {
    display: none;
    visibility: hidden;
}

.subtitle {
    color: #1D449B;
    font-family: "Poppins", Sans-serif;
    font-size: 1.1rem;
    font-weight: 500;
    line-height: 1.1em;
    letter-spacing: 1px;
    padding-top: 1rem;
    margin-bottom: -0.5rem;
}

/* SERVIZI */

.services ul {
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
}
.services .box {
    width: 30%;
    background: #FFF;
    padding: 2rem;
    margin-top: 1rem;
    margin-bottom: 1rem;
    border-radius: 5px;
}
.services .box .btn {
    text-align: center;
}

.services_go {
    width: 100%;
    text-align: center;
}

/* SPLASH */

.splash {
    background-color: #1D449B;
    background-image: url("../images/bg_splash.jpg");
    background-repeat: cover;
    background-position: center right;
    margin: 3rem 0;
    text-align: center;
    font-size: 1.2rem;
    line-height: 1.8rem;
}
.splash .sdgrid {
    padding: 5rem 3rem;
}
.splash * {
    color: #FFF !important;
}

/* FOOTER */

.footer {
    background: #1D449B;
    color: #FFF;
}
.footer .sdgrid {
    padding: 1rem 0;
}
.footer a {
    color: #FFF;
    background: none;
    font-size: 0.9rem;
}
.footer a:hover {
    background: none !important;
}

#copyright {
    height: 4rem;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}
#copyright ul {
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: row;
}
#copyright li {
    padding: 0 10px;
}

/* DEVICES */

@media (min-width: 1050px) {
    h1, h2 {
        color: #040447;
        font-family: "Poppins", Sans-serif;
        font-size: 2.1rem;
        font-weight: 600;
        line-height: 1.3em;
    }
    h3, h4 {
        color: #040447;
        font-family: "Poppins", Sans-serif;
        font-size: 1.3rem;
        font-weight: 600;
        line-height: 1.5em;
    }

    .sdgrid {
        width: 95%;
        max-width: 1300px;
    }

    .automarginleft {
        margin-left: auto !important;
    }
    .automarginright {
        margin-right: auto !important;
    }

    .topbar .sdgrid {
        padding: 0.8rem 0;
    }
    .topbar ul {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .banner {
        position: relative;
    }
    .banner_splash {
        width: 100%;
        height: 100%;
        position: absolute;
        top: 0;
        left: 0;
        z-index: 15;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .banner_splash div {
        max-width: 600px;
        background: #FFF;
        border-radius: 5px;
        padding: 2rem;
        font-weight: bold;
        margin-left: -20%;
    }
    
    .services .box {
        width: 30%;
    }
    .services .box i {
        font-size: 3rem;
    }
    .services .box h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 1000px) {
    h1, h2 {
        color: #040447;
        font-family: "Poppins", Sans-serif;
        font-size: 1.8rem;
        font-weight: 600;
        line-height: 1.3em;
    }
    h3, h4 {
        color: #040447;
        font-family: "Poppins", Sans-serif;
        font-size: 1.3rem;
        font-weight: 600;
        line-height: 1.5em;
    }

    .banner_splash {
        display: none;
        visibility: hidden;
    }

    .topbar {
        overflow: hidden;
    }
    .topbar .sdgrid {
        padding: 0.4rem 0;
    }
    .topbar ul { 
        justify-content: center;
        flex-wrap: wrap;
    }
    .topbar li { 
        justify-content: center;
    }
    
    .services .box {
        width: 48%;
    }
    .services .box i {
        font-size: 3rem;
    }
    .services .box h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 767px) {
    .banner {
        overflow: hidden;
    }
    .banner img {
        width: 130% !important;
        height: auto;
    }

    .titlesection {
        height: 135px;
        background-position: center center;
        background-size: cover;
    }
    .titlesection h1 {
        font-size: 1.4rem;
    }
    
    .services .box {
        width: 100%;
    }
    .services .box i {
        font-size: 2.5rem;
    }
    .services .box h2 {
        font-size: 1.2rem;
    }
    
    #copyright {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 1rem 0;
        line-height: 2rem;
    }
}