﻿
/*-------------  NAVBAR  --------------*/

html {
    max-width: 100vw;
    overflow-x: hidden;
}

#navbar {
    min-width: 100%;
    padding: 1% 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.toggler {
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin-right: 10%;
}

.inactive {
    display: none;
    pointer-events: none;
}

#ita:hover, #eng:hover, .logoInsta, .loghi-social {
    transform: scale(1.09);
    cursor: pointer;
}

.mySwiper {
    width: 75%;
    padding-bottom: 3% !important;
}

.linkPrivacy:hover {
    color: rgb(208, 103, 3);
}

.linkPrivacy {
    color: rgb(249, 248, 241);
    text-decoration: none;
    font-weight: 600;
}

/* Rimuove le frecce standard */
.swiper-button-prev::after,
.swiper-button-next::after {
    display: none;
}

/*  freccia sinistra */
.custom-prev {
    width: 60px;
    height: 60px;
}

/* freccia destra */
.custom-next {
    width: 60px;
    height: 60px;
}


/*.swiper-button-next, .swiper-button-prev {
    top: var(--swiper-navigation-top-offset, 95%) !important;
   
}
.swiper-button-next {
    right: var(--swiper-navigation-sides-offset, 40px) !important;
}
.swiper-button-prev {
    left: var(--swiper-navigation-sides-offset, 40px) !important;
}*/


/* CONTENITORE SLIDER */
.mySwiper {
    position: relative;
}

/* FRECCE FUORI DAL BLOCCO IMMAGINI */
.swiper-button-next,
.swiper-button-prev {
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 10;
}

/* SINISTRA FUORI */
.swiper-button-prev {
    left: -80px !important;
}

/* DESTRA FUORI */
.swiper-button-next {
    right: -80px !important;
}

    /* DIMENSIONI IMMAGINI FRECCE */

    .swiper-button-next img,
    .swiper-button-prev img {
        width: 60px;
        height: auto;
        pointer-events: none;
    }

#nav-left {
    margin-left: -28%;
    width: 68%;
    height: 5%;
    display: flex;
    justify-content: start;
    align-items: baseline;
}

    #nav-left img {
        height: auto !important;
        width: 7em;
        margin-left: 2%;
    }

#nav-links > li > a {
    margin: 0;
}

#nav-links > li:hover {
    background-color: rgb(215, 127, 62);
}

#nav-links > li {
    display: flex;
    justify-content: center;
    margin: 0 0 10% 0;
}

/* Offcanvas */

.offcanvas {
    display: grid;
    grid-template-rows: auto 1fr;
    grid-template-areas: "offcanvas-header" "offcanvas-body";
}

.offcanvas-header {
    grid-area: offcanvas-header;
    display: flex;
    align-items: center;
    margin-bottom: 15%;
}

.offcanvas-body {
    grid-area: offcanvas-body;
    width: 100%;
    padding: 0 !important;
}

/* Menu interno */

.navbar-nav {
    height: 50%;
    display: grid !important;
    grid-template-rows: 1fr 1fr 1fr 1fr 1fr;
    grid-template-areas:
        "page-home"
        "page-menu"
        "page-eccellenze"
        "page-eventi"
        "page-contatti";
}

.page-home {
    grid-area: page-home;
}

.page-menu {
    grid-area: page-menu;
}

.page-eccellenze {
    grid-area: page-eccellenze;
}

.page-eventi {
    grid-area: page-eventi;
}

.page-contatti {
    grid-area: page-contatti;
}

/* Effetto hover animato sui link */

.page {
    position: relative;
    display: inline-block;
    text-decoration: none;
    padding: 0 0 0.5px 0;
}

    .page::after {
        content: "";
        position: absolute;
        bottom: 0;
        width: 100%;
        height: 3px;
        background: #d45d00;
        transform: scaleX(0);
        transform-origin: center;
        transition: transform 0.3s ease;
    }

    /* Attivo linea animata solo se il link NON ha li-active */

    .page:hover:not(:has(.li-active))::after {
        transform: scaleX(1);
    }

/* Link attivo */

.li-active {
    border-bottom: 3px solid #b60e0c;
}

.nav-link {
    display: flex !important;
    justify-content: center;
    align-items: center;
}

    .nav-link:hover {
        background-color: rgba(0,0,0,0.1);
    }

/* Pulsante cell */

.btn-nav-cell {
    border: 2px solid white !important;
    padding: 0 20% !important;
    border-radius: 50% !important;
    background-color: rgb(0, 0, 0);
    color: white;
}

#nav-right {
    width: 27%;
    height: 5%;
    display: flex;
    justify-content: end;
    align-items: center;
    margin-right: -27%;
}

.nav-right-ul {
    display: flex;
    list-style: none;
}

    .nav-right-ul a {
        margin: 0 5% 0 5%;
        color: black;
        text-decoration: none;
        font-size: 1.2em;
    }

li {
    color: #41748d;
    font-family: "Barlow Condensed", sans-serif;
    font-size: 25px;
    font-weight: 500;
    margin-right: 5%;
}

dl, ol, ul {
    margin-top: 1em;
    margin-bottom: 1em;
}

.nav-item {
    color: #f9f8f1;
    font-family: "Barlow Condensed", sans-serif;
    font-size: 25px;
    font-weight: 500;
    margin-right: 5%;
    text-decoration: none;
}

/*-------------  FOOTER  ----------------*/

.footer {
    background-color: #41748d;
    max-height: 100%;
    display: flex;
    justify-content: center;
    flex-direction: row;
    font-family: "Barlow Condensed", sans-serif;
    font-size: 1em;
    color: #f9f8f1;
}

.cont-footer > div {
    min-height: -webkit-fill-available;
}

.loghi-cont {
    padding-bottom: 1.5em;
}

.sub-contLogoFooter {
    width: 70%;
    display: flex;
    flex-direction: column;
}

.loghiFooterContainer {
    display: flex;
    justify-content: space-between;
}

.cont-footer {
    display: flex;
    margin-bottom: 2em;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    padding: 0% 5% 3% 5%;
}

.linea-footer {
    width: 90%;
    height: 1.5px;
    margin: 3px;
    color: white;
    background-color: #f7f7ef;
    margin-top: 10px;
}

.footer-info-ore {
    display: flex;
    align-items: end;
    flex-direction: column;
}

.footer-info-via {
    display: flex;
    align-items: end;
    flex-direction: column;
}

.logo-footer {
    width: 140%;
    height: auto;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 2% 0 0
}

h1 {
    font-size: 2.5em;
}

.txt-footer {
    font-size: 1.3em;
    font-weight: 300;
}

.loghi-social {
    width: 40px;
}

.onda {
    max-width: 100%;
    height: 10px;
    display: flex;
    justify-content: center;
    align-items: center;    
}

.nav-item {
    width: 100%;
    text-align: center;
}

.contOrariFooter {
    max-width: 100%;
    width: 100%;
    padding: 0% 10% 0% 10%;
}

/*----  MAPPA FOOTER  ----*/

.mapouter {
    position: relative;
    text-align: right;
    height: auto !important;
    width: 85% !important;
    justify-content: center;
}

.mappa-footer {
    padding: 0 2%;
    display: flex;
    justify-content: flex-end;
}


/*------------------  MEDIA QUERY  ----------------------*/


@media (max-width:1400px) {
    .contLogoFooter {
        width: 25%;
    }

    .logo-footer {
        width: 50%;
        height: auto;
        padding: 0 0% 0 0;
    }

    .footer {
        background-color: #41748d;
        max-height: 100%;
        display: flex;
        justify-content: center;
        flex-direction: column;
        font-family: "Barlow Condensed", sans-serif;
        font-size: 1em;
        color: #f9f8f1;
    }

    .cont-footer {
        display: flex;
        margin-bottom: 2em;
        flex-direction: column;
        justify-content: center;
        text-align: center;
        align-items: center;
    }

    .gmap_canvas {
        display: flex;
        overflow: hidden;
        justify-content: center;
        background: none !important;
        height: auto !important;
        width: 100% !important;
    }

    .mapouter {
        position: relative;
        text-align: right;
        max-width: 85%;
        justify-content: center;
    }

    .mappa-footer {
        display: flex;
        justify-content: center;
        padding-top: 2em;
        padding-bottom: 2em;
    }
}


@media (min-width:1400px) {
    .sub-footer-info-ore {
        width: 80%;
        padding-right: 10%;
    }
}


@media (min-width:1270px) AND (max-width:1400px) {
    .sub-footer-info-ore {
        width: 100%;
        padding-right: 0%;
    }

    .sub-contLogoFooter {
        width: 75%;
        margin: auto;
        display: flex;
        flex-direction: column;
        justify-items: center;
        text-align: center;
        align-items: center;
    }

    .sub-contLogoFooter {
        width: 100%;
        display: flex;
        flex-direction: column;
    }

    .cont-footer > div {
        min-height: -webkit-fill-available;
        width: 32%;
    }

    .logo-footer {
        width: 100%;
        height: auto;
        padding: 0 0% 0 0;
    }
}


@media (min-width:992px) AND (max-width:1270px) {
    .cont-footer > div {
        min-height: -webkit-fill-available;
        width: 75%;
    }

    .logo-footer {
        width: 35%;
        height: auto;
        margin: 0 auto;
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 0 0% 0 0;
    }

    #nav-left img {
        height: auto !important;
        width: 9em;
        margin-left: 2%;
    }
}


@media (min-width:660px) AND (max-width:1200px) {
    .contOrariFooter {
        max-width: 62%;
        width: 100%;
        padding: 0% 10% 0% 10%;
    }
}


@media (min-width:650px) AND (max-width:1270px) {
    .sub-footer-info-ore {
        width: 70%;
        /* padding-right: 18%; */
        padding: 0% 14% 0% 14%;
    }

    .sub-contLogoFooter {
        width: 75%;
        margin: auto;
        display: flex;
        flex-direction: column;
        justify-items: center;
        text-align: center;
        align-items: center;
    }
}


@media (max-width:992px) {
    .logo-footer {
        width: 50%;
        height: auto;
        margin: 0 auto;
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 0 0% 0 0;
    }

    .contOrariFooter {
        width: 100%;
        padding: 0% 10% 0% 10%;
    }

    #nav-left img {
        height: auto !important;
        width: 7em;
        margin-left: 2%;
    }
}


@media (max-width: 768px) {

    /* CONTENITORE GENERALE */

    .section-centrale,
    .section-centrale * {
        overflow: visible !important;
    }

    /* SWIPER */

    .mySwiper {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 0 60px 0 !important;
        margin: 0 auto !important;
        overflow: visible !important;
        display: block !important;
    }

    .swiper {
        overflow: visible !important;
    }

    .swiper-wrapper {
        align-items: stretch !important;
    }

    .swiper-slide {
        width: 100% !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
    }

        .swiper-slide img {
            width: 92% !important;
            height: 240px !important;
            max-height: 240px !important;
            object-fit: cover !important;
            border-radius: 12px;
            display: block;
        }

    /* FRECCE */
    /*.swiper-button-next,
    .swiper-button-prev {
        top: 100% !important;
        transform: translateY(0) !important;
    }

    .swiper-button-prev {
        left: 15px !important;
    }

    .swiper-button-next {
        right: 15px !important;
    }*/

    /* NAVBAR MOBILE FIX */

    #nav-left {
        width: 90% !important;
        margin-left: 0 !important;
    }

    #nav-right {
        margin-right: 0 !important;
        width: auto !important;
    }

    html, body {
        max-width: 100% !important;
        overflow-x: hidden !important;
    }

    .imgcell {
        display: flex;
    }

    .logo-footer {
        width: 50%;
        height: auto;
        margin: 3% auto;
        padding: 0 0% 0 0;
    }

    .mappa-footer {
        display: flex;
        justify-content: center;
    }

    .footer-info-via {
        align-items: center;
    }

    .contLogoFooter > div {
        text-align: center;
        padding-bottom: 1.5em;
        align-items: center;
    }

    .contLogoFooter {
        display: flex;
        justify-content: center;
    }

    .loghi-cont {
        text-align: left;
    }

    .sub-footer-info-via {
        width: 85%;
    }

    .sub-footer-info-ore {
        width: 80%;
        /*padding-right: 18%;*/
        padding: 0% 14% 0% 14%;
    }

    #ctl00_ContentPlaceHolder1_lblTitoloHome3 {
        padding: 0 2%;
    }

    .sub-contLogoFooter {
        width: 75%;
        margin: auto;
        display: flex;
        flex-direction: column;
        justify-items: center;
        text-align: center;
    }
}


@media (min-width:660px) {
    .footer-info-via {
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .footer-info-ore {
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 0% 14% 0% 14%;
    }
}


@media (max-width:670px) {
    .sub-footer-info-ore {
        width: 100%;
    }

    .linea-footer {
        width: 80%;
    }
}
