html {
    scroll-behavior: smooth;  /*QUANDO VENGONO UTILIZZATI GLI ANCHOR, QUESTA PROPRIETÀ PERMETTE UNO SCROLLING ARMONIOSO*/
}


/*CAMBIO TEMA*/
#change_mode{
    width: 20px;
    padding: 0;
    border-radius: 50px;
    box-shadow: 0px 0px 0px white;
    background-color: white;
    text-align: center;
}
  
#change_mode:hover {
    cursor: pointer;
    background-color: grey;
}
  
#button_mode {
    width: fit-content;
    height: fit-content;
    align-items: center;
    align-content: center;
    justify-content: center;
    justify-items: center;
    top: 4.5vh;
    margin-left: -95%;
    background-color: black;
    position: relative;
    display: flex;
    position: absolute;
}

@media (max-width:678px) {
    #button_mode {
        width: 40px;
        top: 1.3vh;
        margin-right: 0%;
    }

    #change_mode{
        width: 40px;
    }
}

/*BODY DARK*/
.dark-mode {
    margin: 0;
    background-color: black;
    color: white;

    .contenitoresezioni {
        background-color: #2d2d2d;
    }

    .bottonesezione {
        box-shadow: 0px 0px 10px white;
    }

    .elementogriglia button {
        box-shadow: 0px 0px 5px white;
    }
}
  
/*BODY LIGHT*/
body {
    margin: 0;
    background-color: white;
    color: black;
}

/*TOPNAV*/

.topnav {
    height: fit-content;
    width: 100vw;
    min-height: 6vh;
    background-color: black;
    padding-top: 1.5%;
    padding-bottom: 1.5%;
    position: fixed;
    align-items: center;
    align-content: center;
    text-align: center;
    justify-content: center;
    z-index: 2;

    #logo {
        display: inline-block;
        min-width: 40px;
        max-width: 4%;
        justify-content: center;
        box-shadow: 0px 0px 10px white;
        border-radius: 50%;
        animation: sizeInLogo 1s;
    }
}
@keyframes sizeInLogo {
    0% { min-width: 0%; box-shadow: 10px 0px 0px white; }
    100% { min-width: 100%; box-shadow: 0px 0px 10px white; }
}


.topnavmobile {
    display: none;  /*"display: none" non permette la visualizzazione del menu mobile su desktop*/
}

/*TOPNAV SU DISPOSITIVI MOBILI*/
@media (max-width:678px) {
    .topnavmobile {
        display: flex;   /*ora il menu mobile viene mostrato su dispositivi mobili*/
        flex-direction: row;
        height: fit-content;
        width: 100vw;
        min-height: 6vh;
        background-color: black;
        padding-top: 1.5%;
        padding-bottom: 1.5%;
        position: fixed;
        align-items: center;
        align-content: center;
        text-align: center;
        justify-content: center;
        z-index: 2;
    }
    
    .iconamenu {
        width: 4vh;
        height: 4vh;
        display: flex;
        margin-left: 20px;
        margin-right: 20px;

    }
    
    .topnav {
        display: none; /*"display: none" su ".topnav" non mostra il menu desktop che viene sostituito da ".topnavmobile"*/
    }
    
    .alogo {
        margin-left: 20%;
        margin-right: 20%;
    }
}

nav {
    justify-items: center;
    text-align: center;
    text-justify: center;
    justify-content: center;
    display: flex;

    .linkmenu {
        font-family: Arial, Helvetica, sans-serif;
        font-size: 1em;
        font-weight: bold;
        color: white;
        text-decoration: none;
        text-align: center;
        margin-left: 2%;
        margin-right: 2%;
        justify-content: center;
        align-items: center;
        align-content: center;
        animation: fadeInNav 1s;
    }

    .alogo {
        width: 40px;
        height: 40px;
        display: flex;
        border-radius: 50%;
        margin-left: 2%;
        margin-right: 2%;
    }
}

.linkmenu:hover {
    color: rgb(116, 116, 116);
}


/*CONTENUTO DELLA PAGINA*/
.contenitoresezioni #shop {
    align-content: center;
    justify-content: center;
    font-size: 10vh;
    display: grid;
    margin: 0;
    padding-top: 8%;
}

.sezioni {
    width: 100vw;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-items: center;
    justify-content: center;
    padding-top: 5%;
}

@media (max-width:678px) {
    .contenitoresezioni .sezioni {
        padding-top: 0%;
        flex-direction: column;
    }
    .contenitoresezioni #sezioni2 {
        flex-direction: column;
    }  
    .sezioni .bottonesezione {
        margin: 5%;
        padding: 6%;
    }
    .contenitoresezioni #shop {
        padding-top: 20%;
        padding-bottom: 5%;
    }
}

/*CONTENUTO DELLA PAGINA*/

/*SEZIONE CATEGORIE SHOP*/
.contenitoresezioni {
    height: 100vh;
    width: 100vw;
    padding-top: 3%;
    background-color: #a1a1a1;
}

.bottonesezione {
    border-radius: 50px;
    background-color: black;
    box-shadow: 0px 0px 10px black;
    width: fit-content;
    height: fit-content;
    align-items: center;
    padding: 2%;
    display: flex;
    animation: fadeInh2 0.7s;
    text-decoration: none;
    background-color: black;
    color: white;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: bold;
    margin: 4%;
    
    

}





#sezioni2 {
    padding: 0;
    width: 100vw;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-items: center;
    justify-content: center;
}


/*GRIGLIA*/

h1 {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 4vh;
    align-items: left;
    padding-top: 5%;
}

.shopgrid {
    width: 100vw;
    height: fit-content;
    padding-top: 10%;
    padding-bottom: 20%;
    justify-content: space-around;
    align-items: center;
    align-content: center;
    justify-items: center;
    display: grid;
}

/*COLONNA*/
.colonna {
    width: 100vw;
    height: fit-content;
    display: flex;
    flex-direction: row;
    
    align-items: center;
    justify-items: center;
    text-align: center;
}


/*ELEMENTO DELLA GRIGLIA*/
.elementogriglia {
    width: 33%;
    display: flex;
    flex-direction: column;
    height: fit-content;
    justify-content: center;
    align-items: center;
    justify-content:baseline;
}

@media (max-width:678px) {
    .elementogriglia {
        width: 100vw;
        flex-direction: column;
    }
    .colonna {
        width: 100vw;
        padding: 0;
        display: flex;
        flex-direction: column;
    }
    .shopgrid {
        flex-direction: column;
    }
    .colonna .elementogriglia h2 {
        font-size: 7vw;
    }
    .colonna .elementogriglia .foto {
        width: 15%;
        padding-top: 20%;
    }
}

.elementogriglia h2 {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1.5vw;
    display: flex;
    text-align: center;
    align-items: center;
    margin: 0;
    padding: 5%;
    width: fit-content;
    max-width: 60%;
    animation: fadeInh2 0.7s;
}

@keyframes fadeInh2 {
    0% {opacity: 0%;}
    100% {opacity: 100%;}
}

.elementogriglia p {
    font-family:'Courier New', Courier, monospace;
    font-size: 1em;
    display: flex;
    flex-direction: column;
    max-width: 80%;
    animation: fadeInp 2s;
}

@keyframes fadeInp {
    0% {opacity: 0%;}
    100% {opacity: 100%;}
}

.shopgrid .elementogriglia .foto {
    max-width: 10vw;
    padding: 4%;
    animation: fadeInh2 0.7s;
}

@media (max-width:678px) {
    .shopgrid .elementogriglia .foto {
        width: 60vw;
        max-width: none;
    }

}

.shopgrid .elementogriglia .fotodet {
    max-width: 15vw;
    padding: 0%;
    animation: fadeInh2 0.7s;
}

.elementogriglia button {
    background-color: black;
    color: white;
    padding: 3%;
    margin: 4%;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: bold;
    box-shadow: 0px 0px 5px black;
}
  
button:hover {
    background-color: #525252;
}



/*FOOTER*/

footer {
  min-height: 62vh;
  width: 100vw;
  background-color: black;
  display: grid;
  align-content: center;
  text-align: center;
  justify-content: center;
  justify-items: center;
}

.footer {
  animation: fadeInFooter 1.5s;
}

@keyframes fadeInFooter {
  0% {opacity: 0%;}
  100% {opacity: 100%;}
}

#logofooter {
  display: flex;
  width: 15%;
}

.logofooter {
  justify-items: center;
  display: grid;
  margin: 10%;
}

#emailfooter {
  font-family: Arial, Helvetica, sans-serif;
  color: white;
  text-decoration: none;
}

footer p {
  font-family: Arial, Helvetica, sans-serif;
  color: rgb(135, 135, 135);
}

#zinco {
  width: 70px;
  margin: 15%;
}

@media (max-width:768px) {
  footer p {
    padding-left: 10%;
    padding-right: 10%;
    display: grid;
  }

  #emailfooter {
    padding: 5%;
    display: block;
  }
}