:root {
    --primary: #2c2a73;
    --navbar-background: #5a9169;
    --secondary: #010101;
    --primary-lighter: #356b45;
    --white: #ffffff;
}

body {
    font-family: "Open Sans", sans-serif;
}

@keyframes bounce {
    50% {
        transform: translateY(-50%);
    }
}

@keyframes slideFromBotton {
    0% {
        transform: translateX(0%);
        opacity: 0;
    }

    50% {
        transform: translateX(80%);
        opacity: 1;
    }
}

h4 {

    font-size: 1.2rem;

    color: var(--primary);
}

.dropdown-menu {
    right: 0;
    color: var(--white);
    background-color: var(--primary);
    border-radius: unset;
    padding: 0;
}

.dropdown-menu li a {
    padding: 0.5em;
    color: var(--white);
}

.dropdown-menu li a:focus {
    background-color: var(--primary);

}

.header {

    background: #333;

    position: relative;
    width: 100%;

}

.bg-grafica {

    background-position: end;
    background-size: 100vw;
    background-repeat: no-repeat;
}

.header::before {
    animation: bounce 2s ease infinite;
    bottom: 9rem;
    color: #fff;
    content: '╲╱';
    font-size: 2rem;
    height: 4rem;
    left: 50%;
    letter-spacing: -1px;
    line-height: 4rem;
    margin-left: -3rem;
    opacity: 0.8;
    position: absolute;
    text-align: center;
    width: 6rem;
}

.box {
    padding-top: 12vh;
    padding-left: 45vh;
    padding-right: 45vh;
    padding-bottom: 12vh;
}

.box-2 {
    padding-top: 15vh;
    padding-left: 45vh;
    padding-right: 45vh;
    padding-bottom: 15vh;
}

#video-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.box-3 {
    padding-top: 5vh;
    padding-left: 45vh;
    padding-right: 45vh;
    padding-bottom: 5vh;
}

.title-page {
    font-weight: 600;
    color: var(--primary);
    font-size: 3rem;
}

.link-sedi {
    color: var(--white);
    text-decoration: none;
}

.link-sedi:hover {
    color: var(--white);
    border-bottom: 2px solid var(--white);
    text-decoration: none;
}

.icon {
    width: 2vw;
}

.lista-servizi {

    list-style: none;
    padding-left: 0em;
}

.lista-servizi li {

    position: relative;
    padding-top: 0.3em;
    padding-bottom: 0.3em;
    border-bottom: 2px solid var(--primary);
    color: var(--primary);
    font-size: 1.0rem;
    font-weight: 600;
}


.lista-servizi li a svg {
    transition: 0.1s ease;
    opacity: 0;
    top: 35%;
    position: absolute;
    right: 1rem;
}

.lista-servizi li:hover svg {
    animation: slideFromBotton 0.5s linear;
    opacity: 1;
}

.button-white {
    text-decoration: none;
    background-color: var(--white);
    color: var(--primary);
    border: 2px solid var(--white);
    padding: 0.7rem 1rem;
    border-radius: 5px;

    cursor: pointer;
}

.bordered {
    border-bottom: 6px solid var(--primary);
}

.button-white:hover {
    border: 2px solid var(--white);
    text-decoration: none;
    background-color: transparent;
    color: var(--white);

    padding: 0.7rem 1rem;
    border-radius: 5px;
    cursor: pointer;
}

#servizi,
#chi-siamo {
    scroll-margin-top: 4rem;
}

#map1,
#map2,
#map3,
#map4 {
    filter: grayscale(1);
    min-height: 40vh;
}

.text-bigger {
    font-size: 1.3rem;
}

.bg-azzurro {
    background: rgba(240, 248, 255, 0.46);
}

.text {
    text-align: justify;
    font-size: 1.3rem;
}

.link-footer:hover {
    color: var(--primary);
    border-bottom: 1px solid var(--primary)
}

.payof {
    color: var(--secondary);
}

.subtitle {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    font-weight: 600;
}

.logo-nav {
    max-width: 250px;
    min-width: 250px;
    margin-left: 2rem;
}

.green {
    color: var(--primary);
}

.nav-button {
    margin-right: 2rem;
    margin-bottom: 0;
    display: inline-flex;
    flex-direction: row;
    padding-left: 0;
    list-style: none;
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

.box-form {
    border-radius: 20px;
}

.nav-button {

    display: inline-flex;
    flex-direction: row;
    list-style: none;
}

.list-footer {
    list-style: none;
    padding-left: 0;
}

.title-sedi {
    color: var(--primary);
    font-weight: 600;
    font-size: 2.5rem;
}

.list-footer li a {
    color: var(--secondary);
    text-decoration: none;
}

.nav-button a {
    font-size: 1.2rem;
    text-decoration: none;
    color: var(--primary);

}

.nav-button a:hover {
    font-size: 1.2rem;
    text-decoration: none;
    color: var(--primary);

}

/*------------------------------------*/
.navbar {
    box-shadow: rgba(17, 17, 26, 0.05) 0px 4px 16px, rgba(17, 17, 26, 0.05) 0px 8px 32px;
    background-color: white;
    transition: background-color 0.3s ease;
}

.nav-link:hover {
    border-bottom: 1px solid var(--primary)
}

.navbar.scrolled {
    background-color: var(--white);
}

.navbar.scrolled .nav-link:hover {
    border-bottom: 1px solid var(--primary)
        /* Colore dei nav-link quando si effettua lo scroll */
}

.navbar.scrolled .nav-link {
    color: var(--primary);
    /* Colore dei nav-link quando si effettua lo scroll */
}


.nav-link {
    font-size: 1.2rem;
    color: var(--primary);
    border-bottom: 2px solid transparent;
}

.nav-link:hover {
    color: var(--primary);
    border-bottom: 2px solid var(--primary);
}

.nav-link .scrolled {
    color: var(--white);
}

/*------------------------------------*/
.nav-item {
    margin-right: 2rem;
}

.list-button {

    padding-left: 0;
    ;
    display: inline-flex;
    list-style: none;
    gap: 2rem;
}

.button {

    text-decoration: none;
    background-color: var(--primary);
    color: var(--white);
    border: 2px solid var(--primary);
    padding: 0.7rem 1rem;
    border-radius: 5px;
    cursor: pointer;
}

.button:hover {
    border: 2px solid var(--primary);
    text-decoration: none;
    background-color: transparent;
    color: var(--primary);

    padding: 0.7rem 1rem;
    border-radius: 5px;
    cursor: pointer;
}

.box-img {
    position: relative;
    transition: 1s ease;
}

.box-img img:nth-child(2) {
    top: -80px;
    height: auto;
    bottom: auto;
    vertical-align: middle;
    transition: 1s ease;
    width: 80%;
    position: absolute;
    left: -124px;
}

.form-check-label {
    font-size: 1rem;
}

.box-img img:nth-child(1) {
    top: -80px;
    left: 80px;
    width: 80%;
    position: absolute;
    z-index: 1;

}

.box-img:hover img:nth-child(2) {
    transition: 1s ease;
    left: -170px;
}

.paralax {
    background-attachment: fixed;
    background-image: url(../img/paralax.jpg);
    background-size: cover;
    background-position: center;

}

.box-tel {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    z-index: 99;
    font-size: 2rem;
    background-color: var(--white);
    padding: 0.4em;
    width: 80px;
    text-align: center;
    align-items: center;
    height: 80px;
    border-radius: 40px;
    border: 4px solid var(--primary);

}

.box-tel a {
    color: var(--primary);
}

.box-tel a:hover {
    color: var(--primary-lighter);
}

.white {
    color: var(--white) !important;
}

.list-servizi li {
    color: var(--white);
}

.list-servizi {
    text-align: justify;
    gap: 2rem;
    display: inline-flex;
}

.form-check-input:checked {
    background-color: var(--primary);
    border: 1px solid var(--primary);
}

.dicitura {
    font-size: 1.2rem;
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
    height: 3.5rem;
    padding: 0.5rem;
    border: 1px solid var(--primary);
    border-radius: 5px;
}

#sendBtn {
    background-color: var(--white);
    color: var(--primary);
    border: 1px solid var(--white);
    border-radius: 5px;
    padding: 0.5rem 1rem;
    cursor: pointer;
    font-size: 1.2rem;
}

#sendBtn:hover {
    background-color: transparent;
    color: var(--white);
    border: 1px solid var(--white);
    border-radius: 5px;
    padding: 0.5rem 1rem;
    cursor: pointer;
    font-size: 1.2rem;
}

.hoverlay {
    background-color: #2c2a732e;
    height: 100%;
}

.bg-green {
    background-color: var(--primary);
}

.hoverlay-soft {
    background-color: #0d472442;
    height: 100%;
}

.box-page-servizi {
    padding-left: 22vh;
    padding-right: 22vh;
}

.spacing-img {
    padding-left: 22vh;
}

.spacing-img-reverse {
    padding-right: 22vh;
}

.back-1 {
    background-image: url("../img/back-1.png");
    background-size: 100vw;
    background-position: right;
}

.link-no-style {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: var(--primary);
}

.link-no-style:hover {
    text-decoration: none;
    color: var(--primary);
}

.link-privacy {

    color: var(--secondary);
    text-decoration: none;
    border-bottom: 1px solid var(--white);

}

.link-privacy:hover {
    color: var(--primary);
    text-decoration: none;
    border-bottom: 1px solid var(--primary);
}

.list-button-servizi {
    flex-direction: row;
}

.list-button-home {
    flex-direction: row;
}

.blu {
    color: var(--primary);
}

.list-contatti {
    flex-direction: column;
}

.link-sede {
    text-decoration: none;
    color: var(--secondary);
    font-size: 1.4rem;
}

.card-recensioni {
    border: 5px solid #c2a83f;
    aspect-ratio: 16/9;
}

@media only screen and (max-width:1920px) {
    .box {
        padding-top: 12vh;
        padding-left: 25vh;
        padding-right: 25vh;
        padding-bottom: 12vh;
    }

    .box-page-servizi {
        padding-left: 12vh;
        padding-right: 12vh;
    }

    .box-2 {
        padding-top: 12vh;
        padding-left: 25vh;
        padding-right: 25vh;
        padding-bottom: 12vh;
    }

    .box-3 {
        padding-top: 12vh;
        padding-left: 25vh;
        padding-right: 25vh;
        padding-bottom: 12vh;
    }

    .text {
        font-size: 1.1rem;
    }
}

@media only screen and (max-width:1620px) {
     .card-recensioni {
        border: 5px solid #c2a83f;
        aspect-ratio: 3/2;
    }
    .logo-nav {
        max-width: 150px;
        min-width: 150px;
        margin-left: 2rem;
    }

    .header {
        max-height: 100vh;
    }

    .header::before {
        bottom: 2rem;
    }

    .box-img img:nth-child(1),
    .box-img img:nth-child(2) {
        top: -40px;
    }

    .box {
        padding-top: 12vh;
        padding-left: 11vh;
        padding-right: 11vh;
        padding-bottom: 25vh;
    }

    .box-2,
    .box-3 {
        padding-top: 12vh;
        padding-left: 19vh;
        padding-right: 19vh;
        padding-bottom: 12vh;
    }
}

@media only screen and (max-width:1444px) {
    .card-recensioni {
        border: 5px solid #c2a83f;
        aspect-ratio: 6/5;
    }
    .logo-nav {
        margin-left: 0.5rem;
    }

    .nav-button {
        margin-right: 0.5rem;
    }
}

@media only screen and (max-width:1024px) {
    .box-3 {
        padding-top: 2vh;
        padding-bottom: 2vh;
        padding-left: 2vh;
        padding-right: 2vh;
    }

    .spacing-img {
        padding-top: 6vh;
        padding-bottom: 6vh;
        padding-left: 2vh;
    }

    .spacing-img-reverse {
        padding-top: 6vh;
        padding-bottom: 6vh;
        padding-right: 2vh;
    }

    .box-page-servizi {
        padding-top: 3vh;
        padding-left: 6vh;
        padding-right: 6vh;
        padding-bottom: 3vh;
    }

    .logo-nav {
        max-width: 150px;
        min-width: 150px;
    }

    .nav-item {
        margin-right: 0.3rem;
    }

    .nav-link {
        font-size: 0.9rem
    }

    .nav-button a {
        font-size: 0.8rem
    }

    .box-img {
        margin: auto;
        left: 0;
        right: 0;
        text-align: center;

    }

    .box-img img:nth-child(1) {

        text-align: center;
        max-width: 45%;
        position: relative;

    }

    .box-img img:nth-child(2) {
        max-width: 45%;
        position: relative;
        text-align: center;
    }

    .box-img {
        display: block;
    }

    .box,
    .box-2 {
        padding-top: 6vh;
        padding-left: 2vh;
        padding-right: 2vh;
        padding-bottom: 6vh
    }

}

@media only screen and (max-width:590px) {
    .card-recensioni {
        border: 5px solid #c2a83f;
        aspect-ratio: 3/4;
    }
    .button {
        font-size: 0.8rem;
    }

    .nav-link {
        font-size: 1.3rem;
    }

    .nav-button {
        font-size: 0.9rem;
    }

    .nav-button a:hover {
        font-size: 0.9rem;
    }

    .box-page-servizi {
        padding-top: 6vh;
        padding-left: 2vh;
        padding-right: 2vh;
        padding-bottom: 6vh;
    }

    .list-button {
        flex-direction: column;
    }

    .form-check-label {
        font-size: 1rem;
    }

    .paralax {
        background-attachment: unset;


    }

    .header {
        height: 50vh;
    }

    .header::before {
        font-size: 1rem;
    }

    .lista-servizi {
        margin-bottom: 0;
        padding-left: 0;
    }

    .icon {
        padding: 0.5em;
        width: 10vw;
    }

    .subtitle {
        font-size: 1.5rem;
    }

    .text,
    .dicitura {
        font-size: 1rem;
    }
}

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

    .logo-nav {
        max-width: 100px;
        min-width: 100px;
    }

    #bg-video {
        padding: 32px;
    }

    .header::before {
        bottom: -1rem;
    }
}