/* 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) {
    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*/
}

:root {
    --primary-color: #009e8f;
    --secondary-color: #f8f8f8;
  }

/* Inizia stili sezione prodotti */
.griglia-prodotti {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(calc(33% - 30px), 1fr));
    grid-gap: 40px;
    margin-bottom: 40px;
  }
  
  /* Stili card prodotto */
  .card-prodotto {
    max-height: 630px;
    background-color: var(--secondary-color);
    border-radius: 10px;
    padding: 20px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: max-height 0.8s, transform 0.4s ease 0.1s, box-shadow 0.3s ease;
  }
  
  .card-prodotto img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 15px;
  }

  .card-prodotto:hover {
    transform: translateY(-10px) scale(1.2);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
    max-height: 900px;

  }
  
  .titolo-prodotto {
    color: var(--primary-color);
    font-size: 1.25rem;
    font-weight: bold;
    margin: 15px;
  }
  
  .descrizione-prodotto {
    margin: 0 15px 15px;
    line-height: 18pt;
  }

  .contattaci {
    background-color: #04c8b1;
    color: white;
    border-radius: 25px;
    padding: 5px 10px;
    border: none;
    cursor: pointer;
    margin-top: 40px;
    font-family: montserrat;
    font-size: 15pt;
    margin: 0 auto;
    margin-top: 60px;
    margin-bottom: 15px;
}


/* Fine stili sezione prodotti */

/*stili footer*/
.section-footer {
    background-color: #6b6d6d;
    width: 100% !important;
    height: 5%;
}

#testo-footer {
    margin: 0.5% 0 0.5% 2%;
    color: white;
    font-size: 0.8vw;
    line-height: 2;
}
/*inizia il breakpoint per tablet*/
@media screen and (min-width: 481px) and (max-width: 1000px) {
    .griglia-prodotti {
      grid-template-columns: repeat(auto-fill, minmax(calc(50% - 30px), 1fr));
      grid-gap: 30px;
    }
  
    .card-prodotto {
      max-height: none;
      transition: transform 0.4s ease;
    }
  
    .card-prodotto:hover {
      transform: translateY(-10px) scale(1.1);
      box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
      max-height: none;
    }

    .contattaci {
      font-size: 16pt;
      padding: 8px 16px;
      margin-top: 20px;
    }

    /*stili footer*/

    .section-footer {
      height: 8%;
    }

    #testo-footer {
      margin: 0.5% 0 0.5% 2%;
      color: white;
      font-size: 2.5vw;
      line-height: 2;
    }
    
  }

/* 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;
            }

            .contattaci {
              font-size: 16pt;
              padding: 8px 16px;
              margin-top: 20px;
            }

            

            /* 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;
        }

        .griglia-prodotti {
            grid-template-columns: repeat(auto-fill, minmax(100%, 1fr));
            grid-gap: 20px;
          }
        
          .card-prodotto {
            max-height: none;
            transition: transform 0.4s ease;
          }
        
          .card-prodotto:hover {
            transform: translateY(-10px) scale(1.05);
            box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
            max-height: none;
          }

              /* Modifica stile footer */
              .section-footer {
                height: 10%;
            }
    
            #testo-footer {
                font-size: 3vw;
                line-height: 1.5;
            }
    
    
        

}