html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
    position: relative;
    min-height: 100%;
}

body {
    margin-bottom: 60px;
    padding-top: 120px; /* Adatta all'altezza effettiva della tua navbar */
    font-family: "Charm", cursive;
    font-weight: 400;
    font-style: normal;
   
}

p {
    margin-top: 0;
    margin-bottom: 0;
}

#home_img {
    width: 100%;
    max-width: 100%;
}



.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1050;
    font-family: "Playfair Display SC", serif;
    font-weight: 700;
    font-style: normal;
    padding: 20px;
}



@media (max-width: 900px) {

    body {
        padding-top: 4rem; /* Adatta all'altezza effettiva della tua navbar */
    }




    .navbar {
        padding: 0;
    }

    .copy {
        margin-bottom:2rem;
    }




}

.nav-link.active, .nav-link[aria-current="page"] {
    color: #fff !important;
    background-color: #00a086 !important;
    border-radius: 0.25rem;
    padding-left: 6px;
}

.nav-link:focus {
    background-color: rgb(255, 182, 89);
    border: 2px;
    border-color: white;
    border-radius: 0.25rem;
    
}




.text-body-secondary {
    --bs-text-opacity: 1;
    color: #f75d00 !important;
}

#footerCenter {
    font-family: "Montserrat", sans-serif;
    font-style: normal;
    padding: 0.8rem;
    background-color: #c1c1c1;
    background-color: #2b2b2b;
   border-radius: 0rem;
}

    #footerCenter p {
        color: white !important;
        font-size: 0.8rem;
       
    }







#galleriaDropdown {
    --bs-text-opacity: 1;
    font-size: 1.1rem;
    bottom: 2px;
    position: relative;
    color: #f75d00;
    padding-left: 0.6rem;
}


#footerCenter a.nav-link {
    color: white !important;
    font-size: 0.9rem;
}
/* Seleziona qualsiasi elemento che abbia un attributo 'id' il cui valore inizia con "gruppo"
[id^="gruppo"] {
    background-color: red;
    scroll-margin-top: 20rem;
}
 */
.logoX {
    height: 45px; /* Altezza consigliata per navbar, puoi adattare */
    width: auto; /* Mantiene le proporzioni */
    /*  max-width: 180px;Limite massimo, opzionale */
    display: block;
    margin-right: 2rem;
}

.logo3d {
    height: 42px;
    width: auto;
    max-width: 65px;
    display: block;
    background-color: #fff;
    border-style: solid;
    border-width: 1px;
    border: white;
}

@media (max-width: 600px) {
   

    .logoX {
        height: 45px;
        max-width: 200px;
    }

    #footerCenter {
      
        padding: 2rem;
       
    }



}



a {
    color: #222222;
    text-decoration: underline;
    transition: color 0.2s, text-decoration 0.2s;
}

    /* Al passaggio del mouse */
    a:hover,
    a:focus {
        color: #888888;
        text-decoration: none;
    }

    /* Link visitati
    a:visited {
        color: #555555;
    }
 */
    /* Link attivi (cliccati) */
    a:active {
        color: white;
    }


.home_titolo {
    font-family: "Playfair Display SC", serif;
    color: #222222;
    font-weight: 700;
    font-style: normal;
    font-size: 1.4rem;
    /* animation: blinker 1.5s linear infinite; */
}



.container_chiSono {
    text-align: left;
    display: flex;
    flex-direction: column;
    width: 100%;
    
   
}

.container_presentazione {
    display: flex;
    flex-direction: column;
    gap:2rem;
}









.container_aggiornamenti {
    text-align: left;
    display: flex;
    flex-direction: column;
    width: 100%;
}


.container_esperienze {
    text-align: left;
    display: flex;
    flex-direction: column;
    width: 100%;
}





#chi_sono {
    background-color: #00a086;
    height: 0; /* Altezza iniziale chiusa */
    opacity: 0; /* Invisibile inizialmente */
    visibility: hidden; /* Nascondi il blocco */
    overflow: hidden;
    position: absolute;
    width: 100%;
    z-index: 5;
    transition: height 0s ease, opacity 1s ease, visibility 1s;
}

    #chi_sono.show {
        height: 650px;
        opacity: 1;
        visibility: visible;
        z-index: 100;
    }



#chiSono_aggiornamenti {
    font-family: "Newsreader", serif;
    font-weight: 400;
    font-style: normal;
    text-align: center;
    color: #fff;
    background-color: #ffb659;
    height: 0; /* Altezza iniziale chiusa */
    opacity: 0; /* Invisibile inizialmente */
    visibility: hidden; /* Nascondi il blocco */
    overflow: hidden;
    position: absolute;
    width: 100%;
    z-index: 5;
    transition: height 0s ease, opacity 1s ease, visibility 1s;
}

    #chiSono_aggiornamenti.show {
        height: 650px;
        opacity: 1;
        visibility: visible;
        z-index: 100;
        text-align: left;
    }



    #chiSono_aggiornamenti > ul {
        background-color: black;
        padding: 2rem;
        display: grid;
        grid-template-rows: repeat(2, 1fr);
        grid-auto-flow: column;
        grid-template-columns: repeat(5, 1fr);
        
        padding: 3rem;
        grid-column-gap: 2rem;
    }



#chiSono_esperienze {
    font-family: "Newsreader", serif;
    font-weight: 400;
    font-style: normal;
    text-align: center;
    color: #fff;
    background-color: #e09573;
    height: 0; /* Altezza iniziale chiusa */
    opacity: 0; /* Invisibile inizialmente */
    visibility: hidden; /* Nascondi il blocco */
    overflow: hidden;
    position: absolute;
    width: 100%;
    z-index: 5;
    transition: height 0s ease, opacity 1s ease, visibility 1s;
}

    #chiSono_esperienze.show {
        height: 650px;
        opacity: 1;
        visibility: visible;
        z-index: 100;
        text-align: left;
    }



    #chiSono_esperienze > ul {
        background-color: black;
        padding: 2rem;
        display: grid;
        grid-template-rows: repeat(2, 1fr);
        grid-auto-flow: column;
        grid-template-columns: repeat(5, 1fr);
        
        padding: 3rem;
        grid-column-gap: 2rem;
    }








    @media (max-width: 990px) {
        #chi_sono {
            height: 412px;
        }

            #chi_sono.show {
                height: 412px;
            }

        .chiSono_dati {
            font-size: 1rem !important;
            padding: 1.5rem !important;
        }


        #chiSono_esperienze {
            height: 412px !important;
        }

            #chiSono_esperienze.swow {
                height: 412px !important;
            }

            #chiSono_esperienze ul{
                padding: 1rem;
                grid-template-columns: auto;
                font-size: 0.7rem;
                grid-column-gap: 0.2rem;
            }

            #chiSono_esperienze h3 {
            
                font-size: 1rem;
               
            }

        #chiSono_aggiornamenti {
            height: 412px !important;
        }

            #chiSono_aggiornamenti.swow {
                height: 412px !important;
            }
            #chiSono_aggiornamenti ul {
                padding: 1rem;
                grid-template-columns: auto;
                font-size: 0.7rem;
                grid-column-gap: 0.5rem;
            }

            #chiSono_aggiornamenti h3 {
                font-size: 1rem;
            }

       

    }

   


    .chi_sono_titolo {
        font-family: "Newsreader", serif;
        font-weight: 400;
        font-style: normal;
        text-align: center;
        color: #515151;
        font-size: 1.5rem;
    }

.chiSono_dati {
    font-family: "Newsreader", serif;
    font-weight: 800;
    font-style: normal;
    font-size: 1.6rem;
    text-align: left;
    color: white;
    padding: 7rem;
    white-space: preserve-breaks;
    background-color: #000;
}



    .chiSono_titolo {
        font-family: "Newsreader", serif;
        font-weight: 400;
        font-style: normal;
        text-align: left;
        color: black;
        font-size: 1.4rem;
    }

    .chiSono_sottotitolo {
        font-family: "Newsreader", serif;
        font-weight: 200;
        font-style: normal;
        text-align: left;
        color: black;
        font-size: 1.2rem;
    }



    .chiSono_esperienze {
        font-family: "Newsreader", serif;
        font-weight: 300;
        font-style: normal;
        font-size: 1.1rem;
        text-align: left;
    }

   

    .chiSono_attivita {
        font-family: "Newsreader", serif;
        font-weight: 300;
        font-style: normal;
        font-size: 1.1rem;
        text-align: left;
        padding: 1rem;
    }


    .chiSono_curriculum {
        font-family: "Newsreader", serif;
        font-weight: 300;
        font-style: normal;
        font-size: 1.1rem;
        text-align: left;
        padding: 1rem;
    }


    .container_immagini_info {
        margin-top: 1rem;
        margin-bottom: 1rem;
    }


    .immagini_chiSono {
        height: 25rem;
        background-position-y: 30%;
        background-size: 100%;
        background-repeat: no-repeat;
    }


    /* La keyframe animation è il cuore dell'effetto.
           Specifica come il colore del testo cambia nel tempo. */
    @keyframes blinker {
        50% {
            opacity: 0; /* Rende il testo invisibile al 50% dell'animazione */
        }
    }

    .blocco_titolo {
        text-transform: uppercase;
        font-family: "Playfair Display SC", serif;
        font-weight: 700;
        font-style: normal;
        font-size: 2rem;
        margin-bottom: 0.5rem;
        margin-top: 2rem;
        text-align: right;
        margin-right: 10px;
        text-decoration: #2f9993;
        text-decoration-line: underline;
        text-decoration-style: solid;
    }


        .blocco_titolo:focus {
            /*  background-color:red;  */
        }

        .blocco_titolo:focus-visible {
            outline: 2px solid #666;
            border-radius: 3px;
        }


    .blocco_sottoTitolo {
        padding: 1.5rem;
        font-family: "Montserrat", sans-serif;
        font-weight: 300;
        font-style: italic;
        font-size: 1.6rem;
        background-color: #00a086;
        color: white;
        margin-top: 20px;
        margin-bottom: 0;
        border-top-left-radius: 2rem;
    }


    .gruppo_desc {
        background-color: #eaeaea;
        padding: 1.2rem;
        font-size: 1.2rem;
        text-align: center;
        line-height: 1.5rem;
        white-space: preserve-breaks;
    }



    /* Seleziona l'h3 nella PRIMA sezione */
    section:nth-of-type(1) h3 {
        background-color: #00a086;
    }

    /* Seleziona l'h3 nella SECONDA sezione */
    section:nth-of-type(2) h3 {
        background-color: #e09573;
    }

    /* Seleziona l'h3 nella TERZA sezione */
    section:nth-of-type(3) h3 {
        background-color: #ffb659;
    }

    section:nth-of-type(4) h3 {
        background-color: #25958a;
    }

    section:nth-of-type(5) h3 {
        background-color: #ffb659;
    }



    #presentazione:nth-of-type(1) p {
        padding: 2rem;
        font-size: 1.3rem;
        text-align: center;
        line-height: 1.5rem;
        background-image: url('/photos/composizione/G2/background-001.jpg');
        background-size: cover;
        background-repeat: no-repeat;
        background-size: 100%;
        color: white;
        height: 36rem;
        background-position-x: center;
        background-position-y: center;
        vertical-align: top;
        /* display: table-cell; */
    }

    #presentazione:nth-of-type(2) p {
        padding: 2rem;
        font-size: 1.3rem;
        text-align: center;
        line-height: 1.5rem;
        background-image: url('/photos/composizione/G2/_DSC7629-002-1920px.jpg');
        background-size: cover;
        background-repeat: no-repeat;
        background-size: 100%;
        color: white;
        height: 36rem;
        background-position-x: center;
        background-position-y: center;
        vertical-align: top;
        /* display: table-cell; */
    }


    #presentazione:nth-of-type(3) p {
        padding: 2rem;
        font-size: 1.3rem;
        text-align: center;
        line-height: 1.5rem;
        background-image: url('/img/Margherita-2011-05-06_19-31-58-CUT.jpg');
        background-size: cover;
        background-repeat: no-repeat;
        background-size: 100%;
        color: white;
        height: 36rem;
        background-position-x: center;
        background-position-y: -6rem;
        vertical-align: top;
    }

    #presentazione:nth-of-type(4) p {
        padding: 2rem;
        font-size: 1.3rem;
        text-align: center;
        line-height: 1.5rem;
        background-image: url('/img/CAVIAR-GIAVERI-001.jpg');
        background-size: cover;
        background-repeat: no-repeat;
        background-size: 100%;
        color: white;
        height: 36rem;
        background-position-x: center;
        background-position-y: top;
        vertical-align: top;
        /* display: table-cell; */
    }

    #gruppo-G1:nth-of-type(1) {
        /*    height: 22rem; */
        margin-bottom: 3rem;
    }

    #gruppo-G2:nth-of-type(2) {
        /*    height: 22rem; */
        margin-bottom: 3rem;
    }

    #gruppo-G3:nth-of-type(3) {
        /*    height: 22rem; */
        margin-bottom: 3rem;
    }


    #gruppo-G1:nth-of-type(1) p.gruppo_desc {
        background: none;
        background-color: rgba(0, 0, 0, 0);
        color: black;
        /*   height: 12rem; */
        background-color: #eaeaea;
        padding: 1.2rem;
        font-size: 1.2rem;
        text-align: center;
        line-height: 1.5rem;
    }

    #gruppo-G2:nth-of-type(2) p.gruppo_desc {
        background: none;
        background-color: rgba(0, 0, 0, 0);
        color: black;
        /*   height:  8rem; */

        background-color: #eaeaea;
        padding: 1.2rem;
        font-size: 1.2rem;
        text-align: center;
        line-height: 1.5rem;
    }


    #gruppo-G3:nth-of-type(3) p.gruppo_desc {
        background: none;
        background-color: rgba(0, 0, 0, 0);
        color: black;
        /*   height:  8rem; */
        background-color: #eaeaea;
        padding: 1.2rem;
        font-size: 1.2rem;
        text-align: center;
        line-height: 1.5rem;
    }


    #pry_1:nth-of-type(1) p.gruppo_desc {
        background: none;
        background-color: rgba(0, 0, 0, 0);
        color: black;
        /*  height: 25rem; */
        background-color: #eaeaea;
        padding: 1.5rem;
        font-size: 1.2rem;
        text-align: left;
        line-height: 1.5rem;
        padding-top: 0;
    }

    #pry_2:nth-of-type(2) p.gruppo_desc {
        background: none;
        background-color: rgba(0, 0, 0, 0);
        color: black;
        /*   height:  8rem; */
        background-color: #eaeaea;
        padding: 1.5rem;
        font-size: 1.2rem;
        text-align: left;
        line-height: 1.5rem;
        padding-top: 0;
    }

    #pry_3:nth-of-type(3) p.gruppo_desc {
        background: none;
        background-color: rgba(0, 0, 0, 0);
        color: black;
        /*   height:  8rem; */
        background-color: #eaeaea;
        padding: 1.5rem;
        font-size: 1.2rem;
        text-align: left;
        line-height: 1.5rem;
        padding-top: 0;
    }




    @media (max-width: 991.98px) {




        #presentazione:nth-of-type(1) p {
            padding: 0.5rem;
            font-size: 1.3rem;
            text-align: center;
            line-height: 1.4rem;
            background-size: 300%;
            /* height: 31rem;  */
            background-position-x: left;
            background-position-y: top;
            vertical-align: top;
            /* non so perchè ci fosse, vedi se serviva- margin-top:-500px;  */
        }


        #presentazione:nth-of-type(2) p {
            padding: 0.5rem;
            font-size: 1.3rem;
            text-align: center;
            line-height: 1.3rem;
            background-size: 300%;
            /* height: 31rem;  */
            background-position-x: center;
        }

        #presentazione:nth-of-type(3) p {
            padding: 0.5rem;
            font-size: 1.3rem;
            text-align: center;
            line-height: 1.3rem;
            background-size: 255%;
            /* height: 31rem;  */
            background-position-x: left;
            vertical-align: top;
        }

        #presentazione:nth-of-type(4) p {
            padding: 0.5rem;
            font-size: 1.3rem;
            text-align: center;
            line-height: 1.3rem;
            background-size: 309%;
            /* height: 31rem;  */
            background-position-x: center;
            background-position-y: top;
            vertical-align: top;
            background-blend-mode: hard-light;
            background-color: #040404;
        }
    }








    .presentazione {
        background-color: #f8f9fa;
        padding: 1.2rem;
    }

    .slogan {
        font-family: "Playfair Display SC", serif;
        font-weight: 400;
        font-style: italic;
        font-size: 1.2rem;
    }




    .sezioniTitoli h2 {
        font-family: "Playfair Display SC", serif;
        font-weight: 200;
        font-style: normal;
        font-size: 1.8rem;
        text-align: center;
    }




@media (max-width: 900px) {


  
        .blocco_titolo{
            margin-top: 1rem;
            font-size:1.5rem;
        }

        .blocco_sottoTitolo {
            padding: 1rem;
            font-size: 1.1rem;
        }

        .sezioniTitoli h2 {
            font-size: 1.2rem;
        }
    }








    .contenitore-slider {
        min-height: 100vh;
        margin-bottom: 60px;
        position: relative;
    }


    .blocco_slider {
        text-transform: uppercase;
        font-family: "Playfair Display SC", serif;
        font-weight: 700;
        font-style: normal;
        font-size: 2rem;
        text-align: center;
        margin-bottom: 0.5rem;
        margin-top: 2rem;
    }



    .img-wrapper {
        position: relative;
    }

    .img-overlay {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        background: rgba(0,0,0,0.5);
        color: #fff;
        padding: 8px;
        opacity: 0.8;
        font-family: 'Times New Roman', Times, serif;
    }

    .scroll-down {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        background: none;
        border: none;
        font-size: 2.5rem;
        cursor: pointer;
    }

    .gruppo-slider {
        margin-bottom: 40px;
        font-style: italic;
        background-color: rgb(247, 247, 247);
        padding-top: 20px;
        padding-left: 20px;
    }


    .container {
        max-width: 1920px; /*  ORIGINALE, LO TOLGO PER PROVA */
        /*     overflow: hidden;non togliere, altrimenti il botton menù glissa a destra in overflow!!  */
    }





    .my-gallery {
    }

    .fiboInfo {
        /*   font-family: "Playfair Display SC", serif;  */
        font-weight: 400;
        font-style: normal;
        width: 96%;
    }


    .pswp__custom-caption {
        background: rgba(75, 75, 75, 0.40);
        font-size: 16px;
        color: #fff;
        width: calc(100% - 32px);
        width: calc(100% - 32px);
        max-width: 400px;
        padding: 2px 8px;
        border-radius: 4px;
        position: absolute;
        left: 50%;
        bottom: 10%;
        transform: translateX(-50%);
    }

        .pswp__custom-caption a {
            color: #fff;
            text-decoration: underline;
        }

    /* Esempio: cambia stile della caption solo in fullscreen */






    .hidden-caption-content {
        font-style: normal;
        font-size: 1rem;
        /*   font-family: "Playfair Display SC", serif; */
        font-weight: 400;
        font-style: normal;
        background: rgba(75, 75, 75, 0.55);
        color: #fff;
        width: 40%;
        max-width: 800px;
        padding: 0.5rem;
        border-radius: 4px;
        position: absolute;
        left: 76%;
        top: 2%;
        transform: translateX(-50%);
        line-height: 1.2rem;
    }

    .pswp--open .pswp__custom-caption {
        opacity: 1;
        font-size: 1rem;
        line-height: 1.2rem;
        pointer-events: auto;
        background: rgba(255,255,255,0.1) !important;
        color: #fff !important;
        width: 100%;
        position: absolute;
        bottom: 10px;
        max-width: 1800px;
        vertical-align: bottom;
        margin-bottom: 10px;
    }


    .pswp__hide-on-close > div > div > img {
        position: absolute;
        top: -402px;
        left: 10%;
        height: auto;
        border-width: 1px;
        border-color: white;
        border-style: solid;
    }

    @media (max-width: 991.98px) {
        .pswp__hide-on-close > div > div > img {
        }
    }

    @media only screen and (max-width: 900px) and (orientation: landscape) {

        .pswp__hide-on-close > div > div > img {
            top: -100px;
            left: 100px;
        }

        .pswp--open .pswp__custom-caption {
            visibility: hidden; /*   provv nascondo descrizione, troppo invasiva con orientamento orizzontale */
        }
    }




    .swiper-button-next::after {
        font-family: Arial;
        content: '>';
    }

    .swiper-button-prev::after {
        font-family: Arial;
        content: '<';
    }




    /* Cambia colore di sfondo e icona dei bottoni prev/next di PhotoSwipe */

    .swiper-button-prev {
        font-style: normal;
        position: absolute;
        top: 88%;
        background-color: #222 !important; /* Sfondo scuro */
        color: #fff !important; /* Icona bianca */
        border-radius: 50%;
        border: 1px solid #fff;
        width: 36px;
        height: 36px;
        opacity: 0.3;
        transition: background 0.2s;
    }

    .swiper-button-next {
        font-style: normal;
        position: absolute;
        top: 88%;
        background-color: #222 !important; /* Sfondo scuro */
        color: #fff !important; /* Icona bianca */
        border-radius: 50%;
        border: 1px solid #fff;
        width: 36px;
        height: 36px;
        opacity: 0.3;
        transition: background 0.2s;
    }


        .swiper-button-next:hover,
        .swiper-button-prev:hover {
            background-color: #007bff !important; /* Blu su hover */
            color: #fff !important;
            opacity: 0.3;
        }





    /* Ombra e bordi arrotondati */
    .dropdown-menu {
        transition: opacity 1.2s;
    }



    /* Multi-level dropdown compatibile mobile */
    .dropdown-submenu {
        position: relative;
    }

        .dropdown-submenu > .dropdown-menu {
            top: 0;
            left: 100%;
            margin-top: -1px;
            display: none;
            position: absolute;
            min-width: 200px;
            z-index: 1050;
        }

        .dropdown-submenu.show > .dropdown-menu {
            display: block;
        }


    .dropdown-item .bi {
        margin-right: 0.5em;
        vertical-align: -0.125em;
    }

    /* Hover personalizzato */
    .dropdown-item:hover, .dropdown-item:focus {
        background-color: rgb(255, 182, 89);
        color: #ffffff;
        font-weight: 500;
    }









    @media (max-width: 991.98px) {
        /* Su mobile: i sottomenu si aprono in posizione statica, sotto il menu padre */

        .dropdown-menu {
            max-height: 60vh;
            overflow-y: auto;
        }



        .dropdown-submenu > .dropdown-menu {
            left: 0;
            top: 100%;
            position: static;
            margin-left: 0;
            min-width: 100%;
            box-shadow: none;
        }
    }

    @media (min-width: 992px) {
        /* Desktop: normale apertura a destra */
        .dropdown-submenu > .dropdown-menu {
            left: 100%;
            top: 0;
            margin-top: -1px;
            position: absolute;
            min-width: 200px;
        }
    }









    #contFullFaq {
        position: relative;
        width: 96%;
        height: auto;
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding-top: 6px;
    }




    .faq-item {
    }




    .titleFaq {
        width: 100%;
        text-align: center;
        border: 0;
        background-color: #fff;
        /*   display: none;Mostrato via JS se serve */
        font-size: 1.5rem;
    }

    #buttonOpenFaq {
        margin-bottom: -5px;
    }

.divfaq {
    position: relative;
    align-self: center;
    width: 100%;
    opacity: 0;
    text-align: left;
    max-height: 0;
    overflow: hidden;
    transition: 1.8s;
    line-height: 1.8rem;
    padding: 0rem;
    font-size: 1.2rem;
    color: rgb(66, 66, 66);
    white-space: preserve-breaks;
    background-color: #f4f4f4;
    padding-left: 1rem;
    padding-right: 1rem;
    border-top-left-radius: 2rem;
    font-weight: 800;
    font-family: "Newsreader", serif;
}

        .divfaq.show {
            opacity: 1;
            max-height: 2000px; /* o quanto serve */
        }






    .titleFaq {
        font-size: 1.5rem;
        font-weight: 200;
        color: #404040;
    }

        .titleFaq:hover {
        }

        .titleFaq::after {
            content: "+";
            display: inline-block;
          color: #f75d00;
            
            font-size: 2rem;
            left: 3%;
            top: 20%;
            line-height: 21px;
            position: relative;
        }

    .spanToggle::after {
        content: "-";
        font-size: 2rem;
        left: 3%;
        top: 20%;
        line-height: 21px;
        color: green;
        position: relative;
    }

    .faqFind {
        font-size: 1.4rem;
        color: #e87641;
        font-weight: 600;
        text-decoration: underline;
        text-transform: uppercase;
    }

input#search-box {
    color: #000;
    font-size: 1.3rem;
    width: 60%;
    display: inline;
    align-self: center;
    margin-top: 0px;
    background-color: #eaeaea;
    box-shadow: 8px 8px 8px -2px #666;
    border-radius: 0px;
    border: #c0c0c0 groove 0px;
    margin-top: 2rem;
    font-weight: 800;
    font-family: "Newsreader", serif;
}



    @media (max-width: 991.98px) {
        input#search-box {
            font-size: 1.2rem;
            width: 100%;
            box-shadow: 4px 4px 4px -1px #666;
        }
    }




    .slider-container {
        position: relative;
        width: 100%;
        max-width: 100vw;
        height: 300px;
        overflow: hidden;
        margin-bottom: 2rem;
    }

    .slider-track {
        display: flex;
        width: calc(4530px * 2); /* Doppio per il loop */
        height: 300px;
        animation: scroll-horizontal 60s linear infinite;
    }

    .slider-img {
        width: 4530px;
        height: 300px;
        object-fit: cover;
        flex-shrink: 0;
    }

    @keyframes scroll-horizontal {
        0% {
            transform: translateX(0);
        }

        100% {
            transform: translateX(-4530px);
        }
    }

    .slider-overlay {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        color: #fff;
        background: rgba(0,0,0,0.0); /* trasparenza */
        pointer-events: none; /* overlay non blocca i click */
        text-shadow: 0 2px 8px #000;
        z-index: 2;
    }


    .slider-container:hover .slider-track {
        animation-play-state: paused;
    }

    .slider-overlay .btn {
        pointer-events: auto;
        text-shadow: none;
        color: #fff;
        background: transparent;
    }












    @media only screen and (max-width: 900px) and (orientation: portrait) {
        .rotate-device-overlay {
            display: flex;
            flex-direction: column;
            padding: 2%;
            position: fixed;
            z-index: 9999;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0,0,0,0.85);
            color: #fff;
            align-items: center;
            justify-content: center;
            font-size: 1.5rem;
            text-align: center;
        }

        .main-content {
            filter: blur(2px);
            pointer-events: none;
            user-select: none;
        }
    }

    @media (orientation: landscape) {
        rotate-device-overlay
        .rotate-device-overlay {
            display: none !important;
        }

        .main-content {
            filter: none;
            pointer-events: auto;
            user-select: auto;
        }
    }

    @media only screen and (max-width: 900px) and (orientation: portrait) {
        .swiper-slide img,
        .pswp__img {
            width: 100vw;
            height: 100vw; /* quadrato per evitare tagli */
            max-width: 100vw;
            /*   max-height: 60vh;  ELIMINATO, CREA PROBLEMI A FOTO VERTICALI, LE SPINGE IN ALTO E RIDUCE */
            object-fit: contain;
            display: block;
            margin: 0 auto;
            background: #111;
        }

        .img-wrapper {
            background: #111;
        }
    }

    @media only screen and (max-width: 900px) and (orientation: landscape) {
        .swiper-slide img,
        .pswp__img {
            width: 100vw;
            height: 100vh;
            /*  max-width: 100vw;  Fix per PhotoSwipe zoom in landscape */
            /*   max-height: 100vh;  */
            object-fit: contain;
            display: block;
            margin: 0 auto;
            background: #111;
        }

        .img-wrapper {
            background: #111;
        }
    }

    @media only screen and (min-width: 901px) and (max-width: 1366px) and (orientation: landscape) {
        .swiper-slide img,
        .pswp__img {
            width: 100vw;
            height: 90vh;
            max-width: 100vw; /*  Fix per PhotoSwipe zoom in landscape */
            /*  max-height: 90vh;  */

            object-fit: contain;
            display: block;
            margin: 0 auto;
            background: #111;
        }

        .img-wrapper {
            background: #111;
        }

        .container {
            max-width: 1366px;
        }
    }



















    .close-rotate-overlay {
        background: #fff;
        color: #222;
        border: none;
        border-radius: 4px;
        padding: 8px 18px;
        font-size: 1.1rem;
        margin-top: 16px;
        cursor: pointer;
        box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    }

        .close-rotate-overlay:hover {
            background: #eee;
        }







    .tooltip-container {
        position: relative;
        display: inline-block;
        cursor: help; /* Indica che c'è un tooltip */
        color: #fff;
        font-size: 1rem;
        font-weight: 800;
        text-decoration: underline;
        font-family: "Montserrat", sans-serif;
        font-weight: 300;
        font-style: italic;
        font-size: 1.2rem;
    }

    .tooltip-text {
        visibility: hidden;
        position: absolute;
        top: 0;
        left: 0;
    }

        .tooltip-text img {
            position: absolute;
            top: 0;
            left: 0;
            max-width: 419px;
            height: auto;
            max-height: 420px;
        }

    .tooltip-container:hover .tooltip-text {
        visibility: visible;
        opacity: 1;
    }




    .tooltip-containerTitoli {
        position: relative;
        display: inline-block;
        cursor: help; /* Indica che c'è un tooltip */
        color: #666;
        font-size: 1rem;
        font-weight: 800;
        text-decoration: underline;
        margin-bottom: 1rem;
        width: 100%;
    }


        .tooltip-containerTitoli:hover .tooltip-titoli {
            visibility: visible;
            opacity: 1;
        }




    .tooltip-titoli {
        visibility: hidden;
        width: 90%; /* Larghezza del tooltip */
        background-color: #333;
        color: #fff;
        text-align: center;
        border-radius: 6px;
        padding: 10px;
        position: absolute;
        z-index: 10;
        opacity: 0;
        transition: opacity 0.3s;
        text-decoration: underline;
        /*  bottom: 125%; Posiziona il tooltip sopra l'elemento */
        left: 0;
        top: 1.5rem;
        font-weight: 200;
        font-size: 1rem;
        text-align: left;
        font-family: 'Times New Roman', Times, serif;
        text-decoration: none;
    }








    .fuoriSchermo {
        background-color: red;
        position: absolute;
        visibility: visible;
        z-index: 20;
        top: -400px;
        left: 0;
        width: 400px;
    }


    .mb-3 > input {
        margin-bottom: 0.5rem;
    }




    @media (max-width: 900px) {
        .hidden-caption-content {
            font-style: normal;
            font-size: 0.7rem;
            line-height: 1rem;
        }

        .tooltip-container {
            font-size: 0.9rem;
        }

        .tooltip-text {
            left: 0;
            top: -160px;
            max-height: 300px;
            padding: 4px;
            max-width: 300px;
        }

            .tooltip-text img {
                max-width: 280px;
                height: auto;
                position: fixed;
                display: block;
                margin-bottom: 0px;
                max-height: 280px;
                left: -160px;
                top: 100px;
            }

        .fuoriSchermo {
            background-color: red;
            position: absolute;
            visibility: visible;
            z-index: 20;
            left: 30%;
            right: 30%;
            width: 400px;
            top: -300px;
        }



        #info-icon::after {
            content: " Premi leggermente qui e"; /* FontAwesome Unicode per l'icona info-circle */
            font-size: 0.9rem;
        }
    }


.btn-primary {
    background-color: #2f9993;
    border-color: white;
    color: white;
    --bs-btn-color: #fff;
    --bs-btn-bg: #2f9993;
    --bs-btn-border-color: #fff;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #fff;
    --bs-btn-hover-border-color: #000;
    --bs-btn-focus-shadow-rgb: 49,132,253;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #ffb659;
    --bs-btn-active-border-color: #0d0d0d;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: #0d6efd;
    --bs-btn-disabled-border-color: #0d6efd;
   
}




        .btn-primary button:hover {
            background: rgba(220,220,220,0.1); /* trasparenza */
            color: red;
            border-color: white;
        }

.btn {
    font-weight: 100;
    font-family: "Newsreader", serif;
}
.btn:hover {
    background-color: #f75d00;
    border-color: white;
}





    @media only screen and (min-width: 576px) and (max-width: 1080px) {
        /* OKKIO, TOLGO SE GENERA PROBLEMI PER ALTRE COSE   and (orientation: landscape) */

        .body {
            background-color: black;
        }



        .container {
            max-width: 1920px;
            /*   overflow: hidden;  OKKIO, TOLGO PER MOSTRARE IL MENU   */
            flex-direction: row-reverse; /*    OKKIO, non deve interferire con altri 'container'   */
            align-items: start;
        }



        /* Nasconde il menu completo a larghezza intera */

        .navbar-expand-sm .navbar-nav {
            display: none !important;
        }

        /* Mostra il pulsante per il menu a fisarmonica */
        .navbar-expand-sm .navbar-toggler {
            display: block !important;
            margin-right: 10px;
            margin-bottom: 5px;
        }

        /* Assicura che il pannello del menu a fisarmonica sia visibile quando viene cliccato */
        .navbar-collapse {
            display: block !important;
            height: auto;
        }

            /* --- NUOVA REGOLA --- */
            /* Rende visibile il navbar-nav solo quando il navbar-collapse è aperto (.show) */
            .navbar-collapse.show .navbar-nav {
                display: block !important;
            }

        .navbar-expand-sm .navbar-nav .dropdown-menu {
            position: absolute;
            height: 60vh;
            word-wrap: break-word;
            min-width: 400px;
        }

        .dropdown-menu {
            max-height: 60vh;
            overflow-y: visible;
            z-index: 9999;
        }
    }



    .text-white {
        font-size: 2.5rem;
        text-decoration: underline;
    }


    .text-white-50 {
        --bs-text-opacity: 1;
        color: rgb(255, 255, 255) !important;
        font-size: 1.8rem;
    }






    /* Stile del contenitore principale */
    .custom-card {
        height: 650px; /* Altezza fissa o dinamica a tua scelta */
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        background-position-y: center;
        overflow: hidden; /* Importante per contenere l'overlay e il testo */
        position: relative;
        transition: transform 0.3s ease-in-out; /* Transizione per il sollevamento */
        font-family: "Newsreader", serif;
        font-weight: 100;
        font-style: normal;
        text-align: left;
    }

    @media (max-width: 999px) {
        .custom-card {
            height: 400px;
        }

        .card-text-block {
            top: 50%;
            width: 100%;
        }

        .text-white-50 {
            font-size: 1.5rem;
            line-height: 1.6rem;
        }

        .text-white {
            font-size: 2rem;
        }
    }


    /* Overlay scuro per migliorare la leggibilità del testo */
    .card-overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0 ); /* Opacità base */
        transition: background 0.3s ease-in-out; /* Transizione per l'oscuramento */
    }

        .card-overlay:hover {
            background: rgba(0, 0, 0, 1); /* Opacità base */
        }




    /* Posizionamento del blocco di testo in basso */
    .card-text-block {
        position: absolute;
        top: 40%;
        width: 100%;
        padding: 20px;
        z-index: 2;
        text-align: center;
    }

    /* Rimuove la sottolineatura del link e resetta il colore del testo */
    .custom-card-link {
        text-decoration: none;
        display: block;
    }

        /* *************************************** */
        /* ********** EFFETTI AL PASSAGGIO DEL MOUSE (HOVER) ********** */
        /* *************************************** */

        /* 1. Effetto di "sollevamento" della Card */
        .custom-card-link:hover .custom-card {
            /*  transform: translateY(-5px); */
            box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        }

        /* 2. Effetto di scurimento dell'Overlay (per maggiore enfasi) */
        .custom-card-link:hover .card-overlay {
            background: rgba(0, 0, 0, 0.25); /* Aumenta l'opacità per scurire l'immagine */
        }

        /* 3. Effetto opzionale: leggera trasformazione o cambiamento di colore del titolo */
        .custom-card-link:hover .card-text-block h3 {
            color: #fff !important; /* Ad esempio, cambia colore al titolo */
            text-decoration: underline;
            transition: color 0.3s;
            
            font-weight: 800;
        }



.btnChiSono {
    pointer-events: auto;
    text-shadow: none;
    color: #fff;
    background: transparent;
    background-color: transparent;
    border-color: white !important;
   
    
}

    .btnChiSono:hover {
        background-color: #2222228f;
        transition: 2s linear;
    }


.divClose {
    width: 100%;
    text-align: center;
    padding-bottom: 2rem;
    font-family: "Newsreader", serif;
    font-size: 1rem;
    position: absolute;
    top: 75%;
    left: 30%;
}



.divClose a {


}



    @media (max-width: 999px) {
        .btnChiSono {
            font-size: 0.8rem;
            width: 8rem;
        }
    }