/* Stili base */
body {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    padding-top: 100px;
    display: flex;
    flex-wrap: wrap;
}

/* Stili per l'header */
header {
    background-color: #f8f8f8;
    padding: 10px;
    border-bottom: 1px solid #669691;
    box-shadow: 0px 0px 2px 2px #669691;
    position: fixed; /*posizione fissa nella finestra, indipendentemente da scroll*/
    top: 0;
    right: 0;
    left: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    z-index: 100; /* aggiunto per mantenere l'header al di sopra degli altri elementi */
}

img {
    height: 40px;
}

/* Nascondi il menu hamburger e il menu mobile di default */
.hamburger, .mobile-menu {
    display: none;
}

ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: flex-end;
}

li {
    margin: 0 10px;
}

a:not(.collegamento-home) {
    text-decoration: none;
    color: #333;
    padding: 5px;
    transition: all 0.8s ease;
}

a:hover:not(.collegamento-home, .overlay-link) {
    color: #009e8f;
    font-weight: 800;
    background-color: #666;
    border-radius: 20px;
}

#contenitore-totale {
    width: 95%;
    margin: 0 auto; /* Centra il contenitore rispetto alla pagina, per esteso significa: margini alto e basso 0, margini sinistra e destra auto*/
}

/* Stili sezione */

.disambiguazione {
    display: flex;
    justify-content: space-between;
    width: 100%;
    height: 75vh;
    padding: 0 50px;
    box-sizing: border-box;
}

.img-disambiguazione {
    position: relative;
    width: calc(50% - 25px);
    height: 100%;
    overflow: hidden;
    border-radius: 15px;
    background: #F9F9F9;
    box-shadow: 0 0px 6px 6px rgba(0, 0, 0, 0.4);

}

.img-disambiguazione img {
    width:100%;
    height: 100%;
    object-fit: cover;
    border-radius: 9px;
    margin: 0 auto;
}

.glass-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(1px);
    border-radius: 5px;
}

.overlay-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 2.5vw;
    font-weight: bold;
    text-align: center;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    z-index: 2;
}

/* 
.overlay-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
}
 */


/*stili footer*/
.section-footer {
    background-color: #6b6d6d;
    width: 100% !important;
    height: 100px;
    position: fixed;
    bottom: 0;
}

#testo-footer {
    margin: 0.5% 0 0.5% 2%;
    color: white;
    font-size: 1rem;
    line-height: 2;
}

@media screen and (min-width: 780px) and (max-width: 1400px) {
    /*inizia il mobile menu*/
      /* Nascondi il menu di navigazione standard e mostra il menu a tendina */
      nav ul {
        display: none;
    }

    /* Mostra il menu a comparsa (hamburger) */
    .hamburger-menu {
        display: block;
    }

    .mobile-menu.open {
        display: block;
    }
    

    /* Stili per il menu hamburger */
    .hamburger {
        display: flex;
        justify-content: center;
        width: 30px;
        height: 20px;
    }

    .hamburger img {
        width: 100%;
        height: auto;
    }

    .hamburger-menu button {
        border: none;
        background: transparent;
    }

    

    /* Stili per il menu mobile */
    .mobile-menu {
        position: absolute;
        top: 100%;
        right: 0;
        background-color: #f8f8f8;
        list-style-type: none;
        padding: 10px 0;
        transition: max-height 0.3s ease-in-out;
    }

    .mobile-menu li {
        text-align: right;
        padding: 5px 10px;
    }

/* sezione centrale */

.disambiguazione {
    margin-top: 5vw;
}

.img-disambiguazione {
  width: calc(50% - 30px);
  height: 70%;
}

.overlay-text {
  font-size: 6vw;
}

    
/*stili footer*/
#testo-footer {
  font-size: 1rem;
}


}


/*inizia il breakpoint per tablet*/

@media screen and (min-width: 480px) and (max-width: 779px) {
          /*inizia il mobile menu*/
            /* Nascondi il menu di navigazione standard e mostra il menu a tendina */
            nav ul {
              display: none;
          }

          /* Mostra il menu a comparsa (hamburger) */
          .hamburger-menu {
              display: block;
          }

          .mobile-menu.open {
              display: block;
          }
          

          /* Stili per il menu hamburger */
          .hamburger {
              display: flex;
              justify-content: center;
              width: 30px;
              height: 20px;
          }

          .hamburger img {
              width: 100%;
              height: auto;
          }

          .hamburger-menu button {
              border: none;
              background: transparent;
          }

          

          /* Stili per il menu mobile */
          .mobile-menu {
              position: absolute;
              top: 100%;
              right: 0;
              background-color: #f8f8f8;
              list-style-type: none;
              padding: 10px 0;
              transition: max-height 0.3s ease-in-out;
          }

          .mobile-menu li {
              text-align: right;
              padding: 5px 10px;
          }

    /* sezione centrale */

    .disambiguazione {
        flex-direction: column;
    }

    .img-disambiguazione {
        width: 100%;
        height: calc(50% - 25px);
    }

    .overlay-text {
        font-size: 8vw;
    }

          
      /*stili footer*/
      #testo-footer {
        font-size: 1rem;
    }
    

  }

/* Inizia il breakpoint per i dispositivi mobili */
@media screen and (max-width: 480px) {
      /* Aumenta il padding-top del body per evitare sovrapposizioni con l'header */
    body {
        padding-top: 80px;
    }
        /*inizia il mobile menu*/
            /* Nascondi il menu di navigazione standard e mostra il menu a tendina */
            nav ul {
                display: none;
            }

            /* Mostra il menu a comparsa (hamburger) */
            .hamburger-menu {
                display: block;
            }

            .mobile-menu.open {
                display: block;
            }
            

            /* Stili per il menu hamburger */
            .hamburger {
                display: flex;
                justify-content: center;
                width: 30px;
                height: 20px;
            }

            .hamburger img {
                width: 100%;
                height: auto;
            }

            .hamburger-menu button {
                border: none;
                background: transparent;
            }

            

            /* Stili per il menu mobile */
            .mobile-menu {
                position: absolute;
                top: 100%;
                right: 0;
                background-color: #f8f8f8;
                list-style-type: none;
                padding: 10px 0;
                transition: max-height 0.3s ease-in-out;
            }

            .mobile-menu li {
                text-align: right;
                padding: 5px 10px;
            }

        /* Riduci i margini del contenitore-totale per un migliore utilizzo dello spazio sullo schermo */

    #contenitore-totale {
        width: 95%;
        margin: 0 auto;
        padding: 10px;
        }

    /* sezione centrale */

    .disambiguazione {
        flex-direction: column;
    }

    .overlay-text {
        font-size: 18px;
    }

    .img-disambiguazione {
        width: 100%;
        height: calc(50% - 25px);
    }

    .overlay-text {
        font-size: 9vw;
    }


    /* Modifica stile footer */
    .section-footer {
        height: 10%;
    }

    #testo-footer {
        font-size: 1rem;
    }        

}