﻿  .main-menu {
    background: #f5f5f5;
    padding: 0.2em 0.7em;
    font-family: sans-serif;
    font-size: 13px;
  }

  .main-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
  }

  .main-menu > ul > li {
    display: inline-block;
    position: relative;
    margin-right: 1em;
  }

  .main-menu > ul > li > a {
    font-weight: bold;
    text-decoration: none;
    padding: 0.5em;
    display: inline-block;
    color: #00457c;
    transition: background 0.2s, color 0.2s;
  }

  .main-menu > ul > li > a:hover {
    background-color: #dceeff;
    color: #002a4d;
  }

  .main-menu ul ul a {
  font-size: 0.92em;
  line-height: 1.3;
}
  .main-menu ul ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    border: 1px solid #ccc;
    padding: 0.5em;
    z-index: 10;
    min-width: 260px;
    max-width: 360px;
    white-space: normal;
    word-wrap: break-word;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  }

  .main-menu li:hover > ul {
    display: block;
  }

  .main-menu ul ul li {
    display: flex;
    justify-content: space-between;
    padding: 0.3em 0;
    transition: background 0.2s;
    position: relative;
  }

  .main-menu ul ul li:hover {
    background-color: #eef6ff;
  }

  .main-menu ul ul ul {
    top: 0;
    left: 100%;
  }

  .main-menu .menu-separator {
    border-top: 1px solid #ddd;
    margin: 0.3em 0;
    height: 1px;
    padding: 0;
  }

  .main-menu a {
    text-decoration: none;
    color: #00457c;
  }

  .fav-toggle {
    cursor: pointer;
    margin-left: 0.5em;
    color: #999;
  }

  .fav-toggle.active {
    color: #f7c600;
  }

.main-menu li {
  margin-right: 1em;
}

.search-item input {
  padding: 0.3em;
  font-size: 1em;
}

.submenu-arrow {
  margin-left: 0.5em;
  color: #666;
  font-size: 0.9em;
  user-select: none;
}

.menu-label {
  cursor: default; /* oppure 'pointer' se vuoi sembri cliccabile */
  color: #333;
}

.lock-icon,
.star-icon,
.menu-arrow {
  width: 1em;
  height: 1em;
  fill: #888; /* o #f7c600 per stella attiva */
  vertical-align: middle;
  margin-left: 0.3em;
}

.fav-toggle.animate-fav {
  animation: fadeZoom 300ms ease;
}

@keyframes fadeZoom {
  0%   { transform: scale(1.4); opacity: 0.3; }
  100% { transform: scale(1); opacity: 1; }
}

#favMenuRoot.flash {
  animation: flash-highlight 600ms ease;
}

@keyframes flash-highlight {
  0%   { background-color: #e3f3ff; }
  50%  { background-color: #cfeaff; }
  100% { background-color: transparent; }
}
