/*
 * Main style for alice template.
 *
 * Renamed main.css -> main-v2.css: that asset is served with a 1-year
 * Cache-Control and no cache-busting, so edits to it (static map image
 * replacing the old interactive Google Maps JS embed - see "Map style"
 * below and includes/map.php) wouldn't reach visitors with a cached
 * copy - a brand-new, never-before-requested filename is needed to
 * guarantee a fresh load (see includes/head.php).
 */

/* General style */
body, html {
    width: 100%;
    height: 100%;
    position: relative;
    font-size: 1.2vw;
    font-family: 'Exo', sans-serif;
    color: #000000;
}

div, header, section, footer, a, ul {
    box-sizing: border-box;
    -webkit-box-sizing: border-box;
        -moz-box-sizing: border-box;
}

section {
    overflow: hidden;
}

a {
    text-decoration: none;
}

b {
    font-weight: bold;
}

.mLeft {
    margin-left:5em;
}

.button {
    padding: 0.5em 2em;
    text-align: center;
    display: inline-block;
    text-transform: uppercase;
    width: 10em;
    font-size: .9em;
    border: 2px solid #FFFFFF;
}

.bgGreen {
    background-color: #006633;
    color: #FFFFFF;
}

.left {
    float: left;
    left: 0;
}

.right {
    float: right;
    right: 0;
}

.white {
    color: #FFFFFF;
}

.upper {
    text-transform: uppercase;
}

.blue {
    color: #0F5683;
}

.bgBlue {
    background-color: #0F5683;
}

.green, header > div.linkCont a:hover {
    color: #006633;
}

.bgRed {
    background-color: #FF3333;
}

a.button:hover {
    background-color: #004c26;
}

.bgCutted {
    background-position: bottom;
    background-repeat: no-repeat;
    background-size: cover;
}

.bg {
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    position: relative;
}

/* Header style */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding-bottom: .7em;
    width: 100%;
    z-index: 999;
    text-transform: uppercase;
    transition: all .3s linear;
    background-color: #FFFFFF;
    height: 7.3em;
    transition: all .4s linear;
}

header div.textBar {
    width: 100%;
    text-align: right;
    padding: .4em 8%;
    margin-bottom: .4em;
}

header div.textBar a {
    margin-left: 1em;
    color: white;
}

header > div.linkCont {
    width: 40%;
    text-align: center;
}

header > div.linkCont h2 {
    display: inline-block;
    padding: 0 10%;
    margin-top: 1.5em;
    font-size: 1.1em;
    transition: all .4s linear;
    font-weight: 600;
}

header > div.linkCont a {
    transition: all .4s linear;
    display: inline;
    position: relative;
    overflow: hidden;
}

header > div.linkCont a:after {
    content: "";
    position: absolute;
    z-index: -1;
    right: 0;
    width: 0;
    bottom: -5px;
    background: #006633;
    height: 5px;
    transition-property: width;
    transition-duration: 0.3s;
    transition-timing-function: ease-out;
}

header > div.linkCont a:hover:after,
header > div.linkCont a:focus:after,
header > div.linkCont a:active:after {
    left: 0;
    right: auto;
    width: 100%;
}

header.scroll > div.linkCont a:after {
    height: 3px;
}

header > div.linkCont > a {
    margin-right: .8em;
}

header > a#logo {
    width: 16%;
    transition: all .4s linear;
    position: absolute;
    left: 0;
    right: 0;
    margin: auto;
}

header > a#logo img {
    width: 100%;
}

/* Header different style on scroll */
header.scroll {
    padding-bottom: .3em;
    border-bottom: 1px solid #57788E;
    height: 6.3em;
    transition: all .4s linear;
}

header.scroll > a#logo {
    width: 14%;
}

header.scroll > div.linkCont a {
    transition: all .4s linear;
}

header.scroll > div.linkCont h2 {
    font-size: 1em;
}

/* First Img Box section style */
section#head {
    background-image: url(/images/header.jpg);
    margin-top: 7em;
    padding-top: 5em;
    padding-right: 5%;
    text-align: right;
    color: #FFFFFF;
    height: 32em;
}

section#head h1 {
    font-size: 3.3em;
    text-transform: uppercase;
    margin-bottom: 0.2em;
}

section#head > p {
    font-size: 1.8em;
    line-height: 1.5em;
}

section#head > a.button {
    width: 13em;
    font-size: 1.5em;
    margin-top: 1em;
}

/* First box section style */
section#firstBox, section#formPreview {
    background-image: url(/images/background.jpg);
    background-size: contain;
    height: 38em;
    background-repeat: no-repeat;
}

section#firstBox div.revisionBox { 
    width: 60%;
    height: 38em;
    margin-left: 35%;
    margin-top: 5em;
}

section#firstBox div.revisionBox h2 {
    font-size: 2.5em;
}

section#firstBox div.revisionBox > p {
    font-size: 1.2em;
    line-height: 1.3em;
    margin-top: 1em;
}

/* Preview Categories Icons section style */
section.previewCategoriesIcons {
    width: 100%;
    display: block;
    overflow: hidden;
    height: 37em;
}

section.previewCategoriesIcons > div.left {
    width: 28%;
    height: 100%;
}

section.previewCategoriesIcons > div.right {
    width: 72%;
    height: 100%;
    background-color: #0F5683;
}

section.previewCategoriesIcons > div > div.bgGrey {
    width: 100%;
    padding: 2em 6%;
    height: 100%;
    background-color: #F1F1F1;
}

section.previewCategoriesIcons > div.left > div.bgGrey p {
    font-size: 1.5em;
    line-height: 1.3;
}

section.previewCategoriesIcons > div.left > div.bgGrey > .titleThin h2 {
    font-size: 2.5em;
    color: #0f5683;
}

section.previewCategoriesIcons > div > div.bgGrey > .titleThin {
    margin-bottom: 3em;
    font-size: 1em;
    color: #0F5683;
    margin-top: 2em;
}

section.previewCategoriesIcons > div.left > div.bgGrey > p {
    font-size: 1.1em;
}

section.previewCategoriesIcons .category {
    width: 32%;
    padding: 1em 5%;
    margin: 1em 0.6%;
    height: 16em;
    text-align: center;
    font-size: 1em;
    border-radius: 10px;
}

section.previewCategoriesIcons .category img {
    width: 35%;
    margin-bottom: .5em;
}

section.previewCategoriesIcons .category h3 {
    margin-bottom: .5em;
    font-size: 1.2em;
    font-weight: bold;
}

section.previewCategoriesIcons .category p {
    line-height: 1.2em;
}

section.previewCategoriesIcons .category:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* bgCutted section style */
section.bgCutted > div {
    width: 50%;
    font-size: 2.5em;
    text-align: center;
    margin-left: 7%;
    margin-right: 7%;
    padding: 1.5em 3%;
}

section.bgCutted > div > h3 {
    line-height: 1.4em;
}

section.bgCutted > div > a.button {
    width: 15em;
    font-size: 0.5em;
    margin-top: 1em;
}

/* Second box section style */
section#secondImgBox {
    background-image: url(/images/cta-scadenza-revisione.jpg);
    height: 35em;
}

/* Third box */
section#thirdImgBox {
    background-image: url(/images/cta-revisione-domicilio.jpg);
    height: 41em;
}

/* Slider style */
section#slider {
    text-align: center;
    padding: 4em 0;
}

section#slider > div {
    color: #0F5683;
    margin-bottom: 2em; 
    line-height: 2.5em;
}

section#slider > div h3 {
    font-size: 3em;
    text-transform: uppercase;
}

section#slider > div p {
    font-size: 1.3em;
}

section#slider ul#lightSlider img {
    width: 100%;
}

/* FAQ section style */
section#faq {
    position: relative;
    min-height: 37em;
    padding: 2em 5%;
}

section#faq div#faqImage {
    position: absolute;
    bottom: 0;
    left: 5%;
    background-image: url(/images/faq.jpg);
    width: 25%;
    height: 33em;
}

section#faq div.faqList {
    width: 63%;
    text-align: center;
}

section#faq div.faqList h2 {
    font-size: 3em;
    color: #0F5683;
}

section#faq div.faqList > p {
    font-size: 1.5em;
    color: #0F5683;
}

section#faq div.faqList ul > li {
    margin: 1em 0;
}

section#faq div.faqList ul > li > h3 {
    font-size: 1.3em;
    text-align: left;
    padding: 0.5em 1em;
    background-color: #0F5683; 
    color: #FFFFFF;
}

section#faq div.faqList ul > li > div > p {
    text-align: left;
    line-height: 1.2em;
    padding: 1em 2em;
    background-color: #F1F1F1; 
    color: #000000;
}

.close {
    display: none;
}

/* From style */
div#formPreview {
    padding: 7em 6%;
    width: 100%;
    background-image: linear-gradient(0deg,rgba(0,0,0,0.6),rgba(0,0,0,0.6)),url('/images/form-background.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

div#formPreview div.titleForm h3 {
    font-size: 2em;
}

div#formPreview div.titleForm p {
    font-size: 1.5em;
    margin-bottom: 0.5em
}

div#formPreview div.leftSection { 
    display: inline-block;
    width: 29%;
}

div#formPreview div.rightSection {
    display: inline-block;
    width: 65%;
    margin: 0 2em;
}

div#formPreview div.leftSection div.textSection p {
    font-size: 1.2em;
}

div#formPreview div.leftForm {
    width: 50%;
    display: inline-block;
}

div#formPreview div.rightForm {
    width: 45%;
    display: inline-block;
}

div#formPreview form input[type="text"] {
    display: block;
    padding: .6em 2%;
    width: 100%;
    color: #000000;
    border: 1px solid #AAA;
    margin-bottom: 1em;
    -webkit-box-sizing: border-box;
       -moz-box-sizing: border-box;
            box-sizing: border-box;
}

div#formPreview form textarea {
    width: 95%;
    height: 11.5em;
    padding: 0.7em;
    margin-bottom: 1em;
}

form #subjectSpecial {
    display: none!important;
}

/* Green banner style */
section#greenBanner {
    padding: 3em 20%; 
}

section#greenBanner a {
    color: #FFFFFF;
}

section#greenBanner a {
    font-size: 1.5em;
    margin-left: 2em;
}

section#greenBanner i {
    font-size: 1.5em;
}

/* Map style */
section#mapSection {
    position: relative;
    overflow: hidden;
}

div#map {
    height: 25em;
    overflow: hidden;
}

div#map img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* About section style */
section#aboutUs > .right {
    width: 34%;
    margin-right: 10%;
    margin-left: 5%;
    margin-top: 3em;
}

section#aboutUs > .right p {
    margin-bottom: 1em;
    line-height: 1.3em;
}

section#aboutUs > .right h3 {
    font-size: 3em;
    margin-bottom: .8em;
}

section#aboutUs > .left {
    width: 35%;
    margin: 1em 7.5%;
}

section#aboutUs > .left img {
    width: 100%;
    display: block;
}

/* Footer style */
footer div.footerLeft {
    width: 30%;
    display: inline-block;
    padding: 7em 5em;
}

footer div.footerLeft img {
    width: 100%;
}

footer div.footerRight {
    width: 70%;
    padding: 4em 2em;
}

div.text {
    width: 40%;
    display: inline-block;
    margin-left: 3em;
}

footer div.text h4, footer div.timetables h4 {
    font-size: 1.4em
}

footer div.text div.address, footer div.city, footer div.phone, footer div#email {
    line-height: 1.2em;
    margin-top: 1.4em;
    font-size: 1.1em;
    color: #FFFFFF;
}

footer div.timetables {
    display: inline-block;
    margin-top: 3em;
    margin-right: 3em;
}

footer div.timetables h4 {
    margin-bottom: 0.5em;
}

footer div.timetables div#week, footer div#hours {
    display: inline-block;
}

footer div.timetables div#week > p, footer div#hours > p {
    line-height: 1.5em;
}

footer div#hours > p {
    margin-left: 4em;
}

footer div#facebook {
    margin-top: 1.8em
}

footer div#facebook > a {
    font-size: 1.4em;
}

/* Mobile style */
@media screen and (max-width: 780px) {

    /* General style */
    body, html {
        font-size: 2.2vw;
    }

    header > div.linkCont h2.desktop {
        display: none;
    }

    header > a#logo {
        width: 25%;
    }

    header.scroll > a#logo {
        width: 22%;
    }

    /* Head section style */
    section#head {
        text-align: center;
        padding: 2em 5%;
    }

    section#firstBox, section#formPreview {
        height: initial;
    }

    section#firstBox div.revisionBox {
        width: 85%;
        height: initial;
        margin: 4em 7.5%;
    }

    /* Preview Categories Icons section style */
    section.previewCategoriesIcons {
        height: initial;
    }

    section.previewCategoriesIcons > div.left {
        width: 100%;
        height: initial;
    }

    section.previewCategoriesIcons > div.right {
        width: 100%;
    }

    section.previewCategoriesIcons .category {
        height: 18em;
        padding: 1em 3%;
    }

    /* bgCutted section style */
    section.bgCutted > div {
        width: 86%;
    }

    /* Faq section style */
    section#faq div#faqImage {
        display: none;
    }

    section#faq div.faqList {
        width: 100%;
    }

    /* Form section style */
    div#formPreview div.leftSection, div#formPreview div.rightSection {
        width: 100%;
        margin: 1em 0;
    }

    div#formPreview div.leftForm, div#formPreview div.rightForm {
        width: 100%;
    }

    /* Green banner style */
    section#greenBanner {
        text-align: center;
    }

    section#greenBanner a {
        margin: 1em auto;
        display: inline-block;
    }

    /* About us section style */
    section#aboutUs > .left, section#aboutUs > .right {
        width: 60%;
        margin: 1em 20%;
    }

    footer div.footerLeft {
        display: none;
    }

    footer div.footerRight {
        width: 100%;
    }

    footer div.timetables, div.text {
        float: none;
        width: 70%;
        margin: 1em 0;
    }
}


/* Screen size adjustments */
@media screen and (max-width: 500px) {

    /* General style */
    body, html {
        font-size: 4vw;
    }

    header {
        height: 5em;
        padding-top: .2em;
    }

    header div.textBar, header > div.linkCont {
        display: none;
    }

    header > a#logo {
        width: 50%;
    }

    header.scroll > a#logo {
        width: 44%;
    }

    header.scroll {
        height: 4.5em;
    }

    section#head {
        margin-top: 5em;
    }

    section#head h1 {
        font-size: 2.3em;
    }

    section#head > p {
        font-size: 1.7em;
        line-height: 1.3em;
    }

    /* Faq section style */
    section#faq {
        padding: 4em 5%;
    }

    /* Preview Categories Icons section style */
    section.previewCategoriesIcons .category {
        width: 48%;
    }

    section.bgCutted > div {
        width: 95%;
        margin: 0 2.5%;
        padding-top: .5em;
    }

    section#aboutUs > .left, section#aboutUs > .right {
        width: 90%;
        margin: 1em 5%;
    }

    section#thirdImgBox {
        height: 44em;
    }

    footer div.timetables, div.text {
        width: 100%;
    }
}