@import url('https://fonts.googleapis.com/css2?family=Poppins&display=swap');

*{
    font-family: 'Poppins', sans-serif !important;
    text-decoration: none;
}

body {
    margin: 0;
}

:root {
    --color-primary-main: #f23a2a;
    --color-primary-light: #ff7155;
    --color-primary-dark: #b70000;
    --color-white-main: #F5F5F6;
    --color-white-light: #ffffff;
    --color-white-dark: #E1E2E1;
    --color-black-main: #212121;
    --color-black-light: #484848;
    --color-black-dark: #000000;

    --boxShadow-level-1: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
    --boxShadow-level-2: 0 3px 6px rgba(0,0,0,0.16), 0 3px 6px rgba(0,0,0,0.23);
    --boxShadow-level-3: 0 10px 20px rgba(0,0,0,0.19), 0 6px 6px rgba(0,0,0,0.23);
    --boxShadow-level-4: 0 14px 28px rgba(0,0,0,0.25), 0 10px 10px rgba(0,0,0,0.22);
    --boxShadow-level-5: 0 19px 38px rgba(0,0,0,0.30), 0 15px 12px rgba(0,0,0,0.22);

    --transition-main: all 0.3s cubic-bezier(.25,.8,.25,1);
}

/* --- MAIN COMPONENTS --- */

/* #region SHARED */

section {
    margin-top: 2vh;
}

.spacer {
    margin-top: 2vh;
}

.bigSpacer {
    margin-top: 10vh;
}

.flexRowContainer {
    margin-left: 2vh;
    margin-right: 2vh;
    display: flex;
}

.flexColumnContainer {
    display: flex;
    flex-flow: column;
}

.flexColumnEndContainer {
    display: flex;
    flex-flow: column;
    justify-content: end;
    height: 100%;
}

.flexColumnEndContainer.resizeUpAnimation {
    transition: var(--transition-main);
}

.flexColumnEndContainer.resizeUpAnimation:hover {
    transform: translateY(-30px);
}

.flexCenterContainer {
    display: flex;
    flex-flow: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.card, .cardGray {
    width: 100%;
    min-height: 8vh;
    background-color: var(--color-primary-main);
    margin-right: 1vh;
    margin-left: 1vh;
    position: relative;
}

.card:nth-child(1), .cardGray:nth-child(1) {
    margin-left: 0;
}

.card:nth-last-child(1), .cardGray:nth-last-child(1) {
    margin-right: 0;
}

.cardGray {
    background-color: var(--color-white-dark);
}

.card .cardContent, .cardGray .cardContent {
    z-index: 99;
    position: absolute;
    width: 100%;
    height: 100%;
}

.text, .textContrast {
    text-align: justify;
    padding-left: 2vh;
    padding-right: 2vh;
    color: var(--color-black-light);
    line-height: 2;
}

.textContrast {
    color: var(--color-white-main);
}

.title, .titleContrast {
    padding-left: 2vh;
    text-transform: uppercase;
    color: var(--color-black-light);
}

.bigTitle, .bigTitleContrast {
    padding-left: 2vh;
    text-transform: uppercase;
    color: var(--color-black-light);
    font-size: 35px;
}

.titleContrast, .bigTitleContrast {
    color: var(--color-white-main);
}

.subtitle {
    padding-left: 0;
    margin-top: -20px;
}

.titleNoPadding {
    padding: 0;
}

.noMarginLeft {
    margin-left: 0;
}

.imageOverlay {
    width: 100%;
    min-height: 20vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.blackFilter {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: var(--color-black-dark);
    opacity: 0.4;
}

.parallax {  
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.inputBox {
    display: flex;
    flex-flow: column;
}

.newsletterInput {
    width: 30vw;
    height: 45px;
    outline: none;
    border: 2px solid var(--color-black-main);
    background: transparent;
    padding-left: 2vh;
}

.newsletterButton {
    height: 45px;
    background-color: var(--color-primary-main);
    border: none;
    color: var(--color-white-main);
    font-size: 18px;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition-main);
}

.newsletterButton:hover {
    box-shadow: var(--boxShadow-level-2);
}

label.checkbox {
    position: relative;
    cursor: pointer;
}

label.checkbox .check-icon {
    position: relative;
    display: inline-block;
    height: 20px;
    width: 20px;
    border: solid 1px #d6dce3;
    background-color: #f0f3f6;
    border-radius: 3px;
    transition: 0.2s all ease-in-out;
}

label.checkbox .check-icon:before {
    content: "";
    position: absolute;
    inset: 0;
    transition: 0.2s all ease-in-out;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg aria-hidden='true' focusable='false' data-prefix='far' data-icon='check' role='img' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512' class='svg-inline--fa fa-check fa-w-16' style=''%3e%3cpath fill='%23fff' d='M435.848 83.466L172.804 346.51l-96.652-96.652c-4.686-4.686-12.284-4.686-16.971 0l-28.284 28.284c-4.686 4.686-4.686 12.284 0 16.971l133.421 133.421c4.686 4.686 12.284 4.686 16.971 0l299.813-299.813c4.686-4.686 4.686-12.284 0-16.971l-28.284-28.284c-4.686-4.686-12.284-4.686-16.97 0z' class=''%3e%3c/path%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-size: 65%;
    background-position: center center;
    transform: scale(1.3);
    opacity: 0;
}

label.checkbox input[type=checkbox] {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    margin-left: -2px;
}

label.checkbox input[type=checkbox]:checked + .check-icon {
    background: var(--color-primary-dark);
}

label.checkbox input[type=checkbox]:checked + .check-icon:before {
    transform: scale(1);
    opacity: 1;
}

label.checkbox input[type=checkbox]:focus ~ .check-icon {
    box-shadow: 0 0 0 4px rgba(47, 86, 212, 0.1);
}

label.checkbox > div:first-child {
    display: inline-flex;
}

label.checkbox.checkbox-square .check-icon {
    border-radius: 0;
}

label.checkbox.checkbox-circular .check-icon {
    border-radius: 50%;
}

label.checkbox.has-label {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-gap: 10px;
    align-items: center;
}

label.checkbox.has-label-multiple {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-gap: 10px;
    align-items: flex-start;
}

label.checkbox.has-label-multiple .check-icon {
    top: 5px;
}

button {
    border: none;
    outline: none;
    cursor: pointer;
    transition: var(--transition-main);
}

button.contrast {
    padding: 1vh;
    background: none;
    border: 2px solid var(--color-white-main);
    color: var(--color-white-main);
    font-size: 16px;
    transition: var(--transition-main);
}

button.contrast:hover {
    background: var(--color-white-main);
    color: var(--color-primary-main);
}

.modalHeader {
    display: flex;
    align-items: center;
}

.modalContent {
    display: flex;
    flex-flow: column;
}

.modalContent .inputBox {
    width: 15%;
}

.modalRow {
    display: flex;
    align-items: center;
    width: 100%;
}

.modalContent .items {
    display: flex;
    flex-flow: column;
}

.modalContent .items .item {
    display: flex;
    flex-flow: row;
    align-items: center;
}

.modalContent .inputBox {
    width: inherit;
    margin-right: 2vh;
    margin-top: 2vh;
}

.modalContent .inputBox input{
    height: 4vh;
    outline: none;
}

.modalContent .inputBox select{
    height: 4vh;
    outline: none;
}

.modalFooter {
    margin-top: auto;
    display: flex;
    flex-flow: row-reverse;
    align-items: center;
    margin-top: 2vh;
}

.modalFooter button{
    margin-left: 2vh;
    padding: 1vh;
}

@media only screen and (max-width: 768px) {
    .flexRowContainer {
        flex-flow: column;
    }

    #about > div:nth-child(1) > div > h1,
    #services > div:nth-child(1) > div {
        text-align: center;
    }

    #about > div:nth-child(3) > img {
        width: 100%;
    }

    .card {
        margin: 0;
        margin-top: 2vh;
    }

    #services > div:nth-child(2), 
    #services > div:nth-child(4), 
    body > section.newsletter > div > div > div > div.inputBox > div:nth-child(2) {
        display: none;
    }

    .bigTitle, .bigTitleContrast {
        font-size: 25px;
        text-align: center;
        padding-left: 0;
    }

    .title, .titleContrast {
        padding-left: 0;
    }

    .newsletterInput {
        width: 100%;
    }

    .homeContactUs {
        height: auto !important;
        flex-flow: column;
        overflow: unset;
    }

    #contattiHome > div.left {
        width: 100%;
        text-align: center;
    }

    #contattiHome > div.left > div > h4 {
        margin-left: 0 !important;
    }

    #contattiHome > div.left > div > div:nth-child(3),
    #contattiHome > div.left > div > div:nth-child(4) {
        flex-flow: row;
        align-items: center;
        margin: 0 auto;
    }

    #contattiHome > div.right {
        width: 100%;
        text-align: center;
        transform: none;
        margin: none !important;
        padding-bottom: 2vh;
    }

    #contattiHome > div.right .content {
        transform: none;
        margin-left: 0;
    }

    #contattiHome > div.right > div > div {
        flex-flow: row;
        justify-content: center;
    }

    #contatti > div:nth-child(1) > div:nth-child(1) > img {
        width: 100%;
    }

    #contatti > div:nth-child(1) > div:nth-child(2) > div:nth-child(4) > h2 {
        text-align: center;
    }

    #contatti > div:nth-child(1) > div:nth-child(3) > div {
        flex-flow: row;
        margin: 0 auto;
    }

    #contatti > div:nth-child(1) > div:nth-child(3) > div .socialIco {
        margin-left: 2vh;
    }

    #services .card .titleContrast {
        padding-left: 2vh;
    }
}

/* #endregion SHARED */

/* #region NAVBAR */

nav {
    position: fixed;
    top: 0; left: 0; right: -50;
    height: 70px;
    background-color: var(--color-white-light);
    display: flex;
    align-items: center;
    padding-left: 2vh;
    padding-right: 2vh;
    box-shadow: var(--boxShadow-level-2);
    overflow: hidden;
    z-index: 999;
}

nav .logo {
    font-size: 30px;
    color: var(--color-white-main);
    margin-right: auto;
}

nav .logo img {
    height: 80%;
}

nav .overlay {
    display: flex;
    flex-flow: row-reverse;
    width: 50vw;
    height: 70px;
    background-color: var(--color-primary-main);
    transform: skew(-20deg);
    align-items: center;
}

nav .items {
    display: flex;
    flex-flow: row;
    align-items: center;
    transform: skew(20deg);
    margin-right: 50px;
}

nav .items a {
    color: var(--color-white-dark);
    padding-left: 2vh;
    padding-right: 2vh;
    transition: var(--transition-main);
}

nav .items a:hover {
    color: var(--color-white-light);
}

nav .items a.active {
    color: var(--color-white-light);
}

.nav_spacer {
    margin-top: 70px;
}

nav .hamburgher {
    display: none;
    flex-flow: column;
    justify-content: space-evenly;
    align-items: center;
    width: 45px;
    height: 45px;
    transform: skew(20deg);
    margin-right: 7vh;
    cursor: pointer;
}

nav .hamburgher .line {
    width: 80%;
    height: 2px;
    background-color: var(--color-white-main);
}

@media only screen and (max-width: 768px) {

    nav .overlay {
        width: 45vw;
    }

    nav .items {
        display: none;
    }

    nav .hamburgher {
        display: flex;
    }
}

/* #endregion NAVBAR */

/* #region MOBILEBAR */
.mobileBar {
    position: fixed;
    z-index: 998;
    background: var(--color-primary-main);
    width: 100%;
    top: -45vh;
    display: none;
    transition: var(--main-transition);
}

.mobileBar.open {
    top: 70px;
}

.mobileBar .items {
    display: flex;
    flex-flow: column;
    width: 100%;
}

.mobileBar .items a{
    color: var(--color-white-main);
    padding: 2vh;
}

@media only screen and (max-width: 768px) {
    .mobileBar {
        display: block;
    }
}
/* #endregion */

/* #region LEFTNAV */
.topNav {
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 70px;
    background-color: var(--color-primary-main);
    z-index: 999;
    box-shadow: var(--boxShadow-level-2);
    display: flex;
    align-items: center;
}

.topNav img {
    margin-left: 2vh;
}

.topNav .items {
    display: flex;
    flex-flow: row;
    align-items: center;
    margin-right: 2vh;
    margin-left: auto;
}

.topNav .items img {
    cursor: pointer;
}
/* #endregion */

/* #region LEFTNAV */
.leftNav {
    position: absolute;
    top: 70px; left: 0; bottom: 0;
    background-color: var(--color-primary-main);
    width: 250px;
    height: calc(100% - 70px);
    z-index: 998;
    display: flex;
    flex-flow: column;
}

.leftNav .item {
    display: flex;
    flex-flow: row;
    align-items: center;
    padding-top: 2vh;
    padding-bottom: 2vh;
    cursor: pointer;
    transition: var(--transition-main);
}

.leftNav .item:hover {
    background-color: var(--color-primary-dark);
}

.leftNav .item img {
    margin-left: 2vh;
    margin-right: 1vh;
}

.leftNav .item span {
    color: var(--color-white-main);
    font-size: 20px;
}
/* #endregion */

/* #region ADMIN_CONTENT */
.admin_content {
    position: absolute;
    top: 90px; left: 270px; right: 20px;
    background-color: var(--color-white-light);
    height: calc(100% - 110px);
    z-index: 997;
    display: flex;
    flex-flow: column;
}

.admin_content table button {
    height: 3vh;
}

.admin_content button {
    padding-left: 2vh;
    padding-right: 2vh;
    height: 5vh;
    transition: var(--transition-main);
}

.admin_content button:hover {
    background-color: var(--color-primary-main);
    color: var(--color-white-main);
}

.admin_top_actions {
    display: flex;
    flex-flow: row;
    align-items: center;
    padding-top: 2vh;
    padding-bottom: 2vh;
}
/* #endregion */

/* #region SLIDER */

.imageBackground {
    width: 100%;
    height: 100%;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    display: flex;
    flex-flow: column;
    justify-content: center;
}

.splide.homeSlider {
    height: calc(100vh - 70px);
}

.imageBackground .rightContainer {
    width: 45vw;
    margin-right: 15vh;
    align-self: end;
    background-color: var(--color-primary-main);
    box-shadow: var(--boxShadow-level-3);
    z-index: 99;
    padding: 2vh;
    padding-top: 0;
}

@media only screen and (max-width: 768px) {

    .imageBackground .rightContainer {
        width: 90%;
        margin: 0 auto;
        background-color: #212121d6;
        justify-content: center;
        align-items: center;
        display: flex;
        flex-flow: column;
    }

}

/* #endregion SLIDER */

/* #region FOOTER */
footer {
    background-color: var(--color-primary-main);
    padding: 2vh;
    padding-top: 5vh;
    overflow-x: hidden;
}

footer .logo {
    width: 25vw;
    justify-self: center;
    margin-top: 5vh;
}

footer .ico, footer .socialIco {
    width: 35px;
}

footer .socialIco {
    margin-right: 2vh;
}

footer .endFooter {
    width: 100%;
    text-align: center;
    color: var(--color-white-main);
}

/* #endregion FOOTER */

/* #region MODAL */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
    z-index: 1000;
}

/* Modal Content/Box */
.modal-content {
    background-color: #fefefe;
    margin: 15% auto; /* 15% from the top and centered */
    padding: 20px;
    border: 1px solid #888;
    width: 80%; /* Could be more or less, depending on screen size */
}

/* The Close Button */
.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}
/* #endregion */

/* --- SECTIONS --- */

/* #region HomeContactUs */
.homeContactUs {
    height: 45vh;
    display: flex;
    margin-right: 2vh;
    margin-left: 2vh;
    overflow-x: hidden;
}

.homeContactUs img {
    width: 30px; 
    height: 30px; 
    margin-right: 2vh
}

.homeContactUs > .left {
    width: 60%;
    display: flex;
    justify-content: center;
}

.homeContactUs > .left > .content {
    display: flex;
    flex-flow: column;
}

.homeContactUs > .right {
    width: 80%;
    background-color: var(--color-primary-main);
    transform: skew(-25deg);
    margin-right: -15vw;
}

.homeContactUs > .right > .content {
    width: 100%;
    transform: skew(25deg);
    margin-left: 5vw;
}

/* #endregion HomeContactUs */

/* #region LoginForm */

.loginForm {
    display: flex;
    flex-flow: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    overflow-x: hidden;
    margin-top: 0;
}

.loginForm img {
    position: absolute;
    top: 100px;
}

.loginForm h2 {
    font-size: 40px;
    text-transform: uppercase;
}

.loginForm input {
    width: 300px;
    height: 5vh;
    margin-bottom: 2vh;
    padding-left: 2vh;
    border: 1px solid var(--color-black-main);
    outline: none;
}

.loginForm input:focus {
    border: 2px solid var(--color-primary-main);
}

.loginForm button {
    width: 300px;
    height: 5vh;
    transition: var(--transition-main);
}

.loginForm button:hover {
    background-color: var(--color-primary-main);
    color: var(--color-white-main);
}

/* #endregion */

/* #region NavInner */
.headerInner {
    height: 35vh;
    width: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
}

.headerInner .content {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 1;
    display: flex;
    flex-flow: column;
    justify-content: center;
    align-items: center;
}
/* #endregion */

/* #region Veicoli */
.veicoli {
    width: calc(100% - 4vh);
    margin: 0 auto;
    padding-top: 2vh;
    padding-bottom: 2vh;
    display: flex;
}

.veicoli .inputBox {
    width: calc(100% - 4vh);
    margin: 0 auto;
    display: flex;
    flex-flow: column;
}

.veicoli .inputBox select {
    height: 4vh;
    background: none;
    border: 1px solid var(--color-white-main);
    color: var(--color-white-main);
    outline: none;
    margin-top: -1vh;
}

.veicoli .inputBox button {
    margin-top: 4vh;
    background: none;
    border: 1px solid var(--color-white-main);
    height: 4vh;
    color: var(--color-white-main);
    outline: none;
    cursor: pointer;
    transition: var(--transition-main);
}

.veicoli .inputBox button:hover {
    background-color: var(--color-white-main);
    color: var(--color-primary-main);
}

.veicoli .left {
    width: 350px;
}

.veicoli .right {
    width: calc(100% - 350px - 2vh);
    margin-left: 2vh;
    padding-top: 2vh;
    display: flex;
    flex-flow: wrap;
}

.veicoli .right .card {
    margin-left: 1vh;
    margin-bottom: 200px;
}

.veicoli .right .card img {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
}

.veicoli .right .card ._cardContent {
    background-color: var(--color-white-dark);
    position: absolute;
    width: 100%;
}

.veicoli .right .card ._cardContent .realContent {
    padding: 1vh;
    height: 100%;
    display: flex;
    flex-flow: column;
}

.veicoli .right .card ._cardContent .button {
    margin-top: 2vh;
}

.veicoli .right .card ._cardContent .button button{
    padding: 7px;
    width: 100%;
}

@media only screen and (max-width: 768px) {
    .veicoli {
        flex-flow: column;
    }

    .veicoli .left {
        width: 100%;
    }

    .veicoli .right {
        width: 100%;
        margin-left: 0;
    }

    .veicoli .left .card .titleContrast {
        padding-left: 2vh;
    }

    .veicoli .right .card {
        width: 100% !important;
    }
}
/* #endregion */

/* #region DettaglioVeicoli */
.dettaglioVeicoli {
    display: flex;
    flex-flow: row;
    width: calc(100% - 4vh);
    margin: 0 auto;
    margin-top: 2vh;
    margin-bottom: 2vh;
}

.dettaglioVeicoli .left {
    display: flex;
    flex-flow: column;
    width: 40%;
    margin-right: auto;
}

.dettaglioVeicoli .left img {
    width: 100%;
    object-fit: cover;
    max-height: 400px;
    object-position: center;
}

.dettaglioVeicoli .right {
    display: flex;
    flex-flow: column;
    width: 50%;
}

.dettaglioVeicoli .right .content {
    margin-top: 8vh;
}

.dettaglioVeicoli .right .content .contentBox {
    border: 1px solid #d9d9d9;
    padding: 10px;
    margin-bottom: 2vh;
    display: flex;
}

.dettaglioVeicoli .right .content .contentBox .key {
    margin-right: 2vh;
}

.dettaglioVeicoli .right .content .contentBox .value {
    margin-right: 2vh;
}

@media only screen and (max-width: 768px) {
    .dettaglioVeicoli {
        flex-flow: column;
    }

    .dettaglioVeicoli .left {
        width: 100%;
    }

    .dettaglioVeicoli .right {
        width: 100%;
    }
}

/* #endregion */