﻿/* HTML: <div class="loader"></div> */
.loader {
    width: 60px;
    aspect-ratio: 4;
    --_g: no-repeat radial-gradient(circle closest-side,var(--colore-dettaglio1) 90%,#0000);
    background: var(--_g) 0% 50%, var(--_g) 50% 50%, var(--_g) 100% 50%;
    background-size: calc(100%/3) 100%;
    animation: l7 1s infinite linear;
}

@keyframes l7 {
    33% {
        background-size: calc(100%/3) 0%,calc(100%/3) 100%,calc(100%/3) 100%
    }

    50% {
        background-size: calc(100%/3) 100%,calc(100%/3) 0%,calc(100%/3) 100%
    }

    66% {
        background-size: calc(100%/3) 100%,calc(100%/3) 100%,calc(100%/3) 0%
    }
}

.logo-footer {
    max-width: 120px;
}

.socialnetwork {
    margin: 0px;
}

    .socialnetwork a i {
        font-size: 1.1rem;
    }

.menu {
    text-transform: uppercase;
    width: 340px;
}

header {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1rem;
    align-items: center;
}

.logo {
    display: flex;
    row-gap: 20px;
    align-items: center;
    flex-direction: column;
    justify-content: center;
}

    .logo .logo-txt {
        text-align: center;
    }

        .logo .logo-txt a {
            row-gap: 14px;
        }

.cerca-nel-sito {
    display: none;
    width: 100%;
    background: var(--colore-sfondo);
    border-radius: 5px;
}

.sidebar {
    position: fixed;
    z-index: 1;
}
.bannerCookiePolicy p {
    color: var(--menu-colore-sfondo);
}
.menu-container {
    display: none;
    position: fixed;
    z-index: 3;
    top: 0px;
    left: 0px;
    width: 33.33%;
    bottom: 0px;
    background: var(--menu-colore-sfondo);
}
.menu {
    background: none;
}
.btn-menu, .btn-link {
    font-size: 1.8rem;
    color: var(--colore-sfondo);
    padding-right: 1rem;
}

    .btn-menu:hover {
        font-size: 1.8rem;
        color: var(--colore-dettaglio1);
        background: none;
    }

.btn-link {
    font-size: 1.1rem;
    color: var(--colore-sfondo);
    padding-right: 1rem;
}

    .btn-link:hover {
        font-size: 1.1rem;
        color: var(--colore-dettaglio1);
        background: none;
    }

.menu-close {
    position: absolute;
    z-index: 1;
    font-size: 1.8rem;
    color: var(--colore-sfondo);
    right: 30px;
    top: 20px;
}

    .menu-close:hover {
        color: var(--colore-dettaglio2);
    }

.menu-accordion-1livello li > div, .menu-accordion-1livello li > a {
    justify-content: center;
    column-gap: 10px;
}

.menu-accordion-1livello li a {
    text-align: center;
}

header .socialnetwork li a {
    border: 1px solid var(--colore-sfondo);
    color: var(--colore-sfondo);
    padding: 14px 0;
    border-radius: 50%;
    width: 52px;
    height: 52px;
    display: block;
    text-align: center;
}

    header .socialnetwork li a i {
        font-size: 1.4rem;
    }

.footer-header {
    text-align: center;
}

    .footer-header p, .footer-header a, .footer-header ul {
        color: var(--colore-sfondo);
    }

.container-custom {
    max-width: 1300px;
    margin: 1rem 2rem;
}
@media (max-width: 1200px) {
    .container-custom {
        max-width: 900px;
    }
}
@media (max-width: 1000px) {
    .container-custom {
        margin-right: 2rem;
        max-width: auto;
        margin-left: 2rem;
    }
}
    /* Struttura Home*/
.menu-home {
    border-bottom: 1px solid #ddd;
}
.menu-home .box-menu-home:not(:first-child) a::before {
    content: "•";
    color: var(--colore-dettaglio1);
    font-weight: bold;
    position: absolute;
    left: -1.2rem;
}
.riga-1 {
    margin-top: 2rem;
    margin-bottom: 2rem;
}
.riga-1 .boxriga-1 h2 {
    text-align: center;
    position: relative;
    padding-bottom: 1rem;
    margin-bottom: 1.4rem;
}
    .riga-1 .boxriga-1 h2::after {
        content: " ";
        background: var(--colore-dettaglio1);
        width: 100px;
        height: 2px;
        position: absolute;
        bottom: -2px;
        left: 50%;
        margin-left: -50px;
    }

    .box-link a {
        padding: 1rem;
        display: flex;
        flex-direction: row;
        align-items: center;
        text-transform: uppercase;
        column-gap: 10px;
        color: var(--colore-base);
        font-family: var(--testi-font);
        position: relative;
    }

        .box-link a:hover {
            text-decoration: none;
            color: var(--colore-dettaglio1);
        }

        .box-link a i {
            font-size: 1.2rem;
            color: var(--colore-base);
        }
.box-immagine {
    margin-top: 2rem;
    margin-bottom: 2rem;
    position: relative;
}
    .box-immagine::before {
        z-index: 1;
        position: absolute;
        content: " ";
        left: 0px;
        right: 0px;
        bottom: 0px;
        top: 0px;
        background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAECAYAAACp8Z5+AAAAEklEQVQImWNgYGD4z0AswK4SAFXuAf8EPy+xAAAAAElFTkSuQmCC) repeat;
    }
.riga-2 {
    padding-top: 3rem;
    padding-bottom: 3rem;
}


    .riga-mappe {
        padding: 0px;
    }

        .riga-mappe iframe {
            width: 100%;
            max-height: 500px;
        }
.inner-page h1 {
    text-align: center;
    position: relative;
    padding-bottom: 1rem;
    margin-bottom: 2rem;
}
    .inner-page h1::after {
        content: " ";
        background: var(--colore-dettaglio1);
        width: 100px;
        height: 2px;
        position: absolute;
        bottom: -2px;
        left: 50%;
        margin-left: -50px;
    }
    .box-news .news-txt > a {
        font-weight: bold;
    }

    .bg-colore-base p, .bg-colore-base a, .bg-colore-base ul {
        color: var(--colore-sfondo);
    }

    .bg-colore-dettaglio1 p, .bg-colore-dettaglio1 a, .bg-colore-dettaglio1 ul {
        color: var(--colore-sfondo);
    }

    .btn-primary-pvo {
        --bs-btn-color: var(--colore-sfondo);
        --bs-btn-bg: var(--colore-dettaglio1);
        --bs-btn-border-color: var(--colore-dettaglio1);
        --bs-btn-hover-color: var(--colore-dettaglio1);
        --bs-btn-hover-bg: var(--colore-sfondo);
        --bs-btn-hover-border-color: var(--colore-dettaglio1);
        --bs-btn-active-color: var(--colore-sfondo);
        --bs-btn-active-bg: var(--colore-dettaglio1);
        --bs-btn-active-border-color: var(--colore-dettaglio1);
    }

    #CarouselHome {
        position: fixed;
        top: 0px;
        left: 0px;
        bottom: 0px;
        width: 33.33%;
        z-index: 0;
    }

        #CarouselHome .carousel-caption {
            display: none !important;
            right: 30%;
            left: 30%;
            top: 36%;
            text-align: center;
            z-index: 2;
            display: flex;
            align-items: center;
            justify-content: space-between;
            bottom: auto;
            column-gap: 20px;
        }

            #CarouselHome .carousel-caption p.h3 {
                font-family: var(--titoli-font);
                color: var(--colore-sfondo);
                font-weight: var(--titoli-weight);
                font-style: var(--titoli-style);
                text-transform: uppercase;
                font-size: calc(var(--titoli-size) + 0.4rem);
            }

                #CarouselHome .carousel-caption p.h3 span {
                    display: block;
                }

            #CarouselHome .carousel-caption .btn {
                margin-top: 10px;
            }

        #CarouselHome .carousel-item::after {
            position: absolute;
            content: "";
            width: 100%;
            height: 100%;
            background-color: rgba(0,0,0,0.6);
            z-index: 1;
        }

    footer {
        display: none;
    }

    .box-menu ul {
        margin-top: 0.8rem;
    }

        .box-menu ul li {
            margin-bottom: 0.5rem;
            padding-bottom: 0.4rem;
            border-bottom: 1px solid var(--colore-dettaglio2);
            text-transform: uppercase;
        }

    .struttura-home .socialnetwork {
        margin: 0.1rem 0px !important;
    }

    .box-laterale {
        margin-bottom: 2rem;
    }

        .box-laterale h2 {
            font-size: calc(var(--titoli-size) - 0.65rem);
            position: relative;
            margin-bottom: 1rem;
            padding-bottom: 0.8rem;
        }
.box-laterale h2::after {
    content: " ";
    background: var(--colore-dettaglio1);
    width: 50px;
    height: 2px;
    position: absolute;
    bottom: -2px;
    left: 0%;
}

    .bg-image-innerpage {
        position: fixed;
        top: 0px;
        left: 0px;
        width:33.33%;
        bottom: 0px;
        z-index: -1;
        background-position: center center;
        background-repeat: no-repeat;
        background-size: cover;
        background-image: url(/public/immaginipagine/bg-pagina_tempus.jpg);
    }

        .bg-image-innerpage::before {
            position: absolute;
            content: "";
            width: 100%;
            height: 100%;
            background-color: rgba(0,0,0,0.6);
            z-index: 1;
        }

    .box-ricerca.box-laterale {
        border: 0px !important;
        padding: 0px;
    }
.news-txt>a {
    color: var(--colore-base);
    font-weight: bold;
}

@media (max-width: 768px) {
    #CarouselHome .carousel-caption {
        right: 1%;
        left: 1%;
        top: 30%;
        text-align: left;
    }
    .sidebar {
        position: relative;
        z-index: 1;
    }
    header {
        height: auto;
        background: var(--colore-base);
    }
    .header-contatti, .footer-header, header .socialnetwork {
        display: none;
    }
    .logo .logo-txt a {
        row-gap: 0px;
    }
    .logo .logo-img img{
        max-height: 70px;
    }
    .logo {
        display: flex;
        align-items: center;
        flex-direction: row;
        justify-content: center;
        column-gap: 20px;
    }
    #CarouselHome {
        position: relative;
        top: auto;
        left: auto;
        bottom: auto;
        width: auto;
        z-index: 0;
        margin-left: -2rem;
        margin-right: -2rem;
        margin-bottom: 2rem;
    }
    .container-custom {
        margin-top: 0rem;
        margin-bottom: 0rem;
    }
    .menu-container {
        width: 100%;
    }
    .bg-image-innerpage {
        position: relative;
        top: auto;
        left: auto;
        width: auto;
        bottom: auto;
        height: 300px;
        margin-left: -2rem;
        margin-right: -2rem;
        margin-bottom: 2rem;
    }
    footer.footer {
        display: block;
        margin-left: -2rem;
        margin-right: -2rem;
        padding-right: 2rem;
        padding-left: 2rem;
    }
}

    @media (max-width: 600px) {
        #CarouselHome .carousel-caption {
            display: none;
        }
    }
