.top-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 1rem;
  height: 60px;
  /*background-color: rgba(240, 240, 240, 0.95);*/
  width: 98%;
  margin: 1rem auto 0;
  position: relative;
  z-index: 9999;
}

.top-header.menu-open-bg {
  background-color: rgba(240, 240, 240, 0.95);
  transition: background-color 0.3s ease;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.site-logo {
  height: 40px;
  min-width: 60px;
  display: flex;
  align-items: center;
}

/* Contenitore nav menu */
.compact-menu {
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

#compact-menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  position: relative;
  z-index: 10000;
}

.hamburger {
  width: 28px;
  height: 4px;
  background-color: #000;
  margin: 4px 0;
  border-radius: 2px;
}

.compact-menu-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

/* Stato iniziale (chiuso) */
.compact-menu-closed {
  width: 90px;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  
}

/* Stato attivo (aperto) */
.compact-menu-open {
  width: 98%;
  opacity: 1;
  pointer-events: auto;
  visibility: visible;

}

/* Lista menu inline */

.compact-menu-list {
  display: flex;
  gap: 0.2rem;
  justify-content: center;
  flex: 1;
  margin: 0;
  padding: 0;
  list-style: none;
  text-align: center;
}

.lang-switcher {
  white-space: nowrap;
  margin-right: 2rem;
}

/* Singole voci */
.compact-menu-list li a {
  display: inline-block;
  padding: 0.5rem 1rem;
  text-decoration: none;
  color: #868686;
  font-weight: 500;
  transition: background 0.3s ease;
}

.compact-menu-list li a:hover {
  background-color: rgba(0, 0, 0, 0.05);
}
#compact-menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.hamburger {
  width: 28px;
  height: 4px;
  background-color: #868686;
  margin: 4px 0;
  border-radius: 2px;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.site-logo img {
  max-height: 50px;
  height: auto;
  width: auto;
}