body {
    margin: 0;
    height: fit-content;
}

/*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;

    h1 {
        background-color: rgb(73, 73, 73);
    }
    .servicesgrid .elementogriglia .foto {
        display: none;
    }
}
  
/*BODY LIGHT*/
body {
    margin: 0;
    background-color: white;
    color: black;
    height: fit-content;
}

/*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;
    top: 0;

    #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;
        top: 0;
    }
    
    .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*/
/*GRIGLIA DEI SERVIZI*/

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

h1 {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 5vh;
    display: flex;
    flex-direction: column;
    padding-top: 16%;
    padding-bottom: 10%;
    align-items: center;
    background-color: rgb(174, 174, 174);
}

@media (max-width:678px) {
    h1 {
        padding-top: 40%;
    }
}

/*COLONNA*/
.colonna {
    width: 30%;
    height: fit-content;
    display: inline-block;
    padding: 2%;
    align-items: baseline;
    justify-items: center;
    text-align: center;
}


/*ELEMENTO COLONNA*/
.elementogriglia {
    display: flex;
    flex-direction: column;
    height: 40%;
    justify-content: center;
    align-items: center;
    justify-content:baseline;
}

/*MEDIA QUERIES GRIGLIA*/
@media (max-width:557px) {
    .elementogriglia {
        width: 100vw;
        flex-direction: column;
    }
    .colonna {
        width: 100vw;
        padding: 0;
        display: flex;
        flex-direction: column;
    }
    .servicesgrid {
        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: 2vw;
    display: flex;
    text-align: center;
    align-items: center;
    margin: 0;
    padding: 5%;
    width: fit-content;
    animation: fadeInh2 0.7s
}

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

.elementogriglia p {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1em;
    display: flex;
    flex-direction: column;
    max-width: 80%;
    animation: fadeInp 2s;
}

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

.servicesgrid .elementogriglia .foto {
    max-height: 8vh;
    padding: 5%;
    animation: fadeInh2 0.7s;
}



/*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 QUERIES FOOTER*/
@media (max-width:768px) {
  footer p {
    padding-left: 10%;
    padding-right: 10%;
    display: grid;
  }

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