/*css del menu*/
.top-nav {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background-color: rgba(255, 255, 255, 0.5);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0.3rem;
    box-shadow: 0 -2px 5px rgba(0,0,0,0.2);
    z-index: 1000; 
  }

  .nav-left {
    background-color:  rgba(255, 255, 255, 0.2);
    flex: 1;
  }

  .nav-center {
    flex: 1;
    text-align: center;
    opacity: 0.5; /* Per farla apparire "trasparente" */
  }

  .nav-right {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex: 1;
}

.top-icon {
  margin-top: 5px;
  margin-right: 15px;
  cursor: pointer;
}

.top-icon img {
  width: 40px;
  height: 40px;
}

.popover {
  position: absolute;
  top: 60px; /* sotto l'icona */
  right: 10px;
  width: 250px;
  background: white;
  border: 1px solid var(--colore-primario);
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  padding: 1rem;
  z-index: 1000;
}

.hidden {
  display: none;
}

.popover::before {
  content: "";
  position: absolute;
  top: -10px;
  right: 20px;
  border-width: 5px;
  border-style: solid;
  border-color: transparent transparent rgb(0, 0, 0) transparent;
}

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background-color: var(--colore-primario);
    display: flex;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 -2px 5px rgba(0,0,0,0.2);
    z-index: 1000;
}

.nav-button {
  color: #fff;
  text-decoration: none;
  font-size: 0.8rem;
  background: none;
  border: none;
  padding: 10px 20px;
  border-radius: 30px;
  transition: background 0.3s;
  display: flex;
  flex-direction: column; /* mette immagine sopra, testo sotto */
  align-items: center;    /* centra orizzontalmente */
  justify-content: center; /* centra verticalmente */
}

.nav-button:hover {
  background: rgba(255, 255, 255, 0.2);
}

.nav-button img {
  width: 24px;
  height: 24px;
  margin-bottom: 4px; /* spazio tra icona e testo */
}

.but-area-personale {
    color: var(--colore-secondario);
    text-decoration: none; 
    font-size: 0.8rem;
    font-weight: bold;
    background: var(--colore-primario);
    border: 1;
    padding: 10px 20px;
    border-radius: 30px;
    margin: 1rem;
    transition: background 0.3s;
}