.fab-header {
    font-size:large;
    padding: 0.8rem;
    vertical-align: middle;
}

/* Header unread badge */
.unread-badge-header {
    position: absolute;
    top: -2px;
    right: -3px;
    background: white;
    color: #e74c3c;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 2px;
    border-radius: 50%;
    min-width: 14px;
    text-align: center;
    border: 2px;
    border-color: #e74c3c;
    border-style: solid;
}

#header-messages-btn {
    position: relative;
    /*display: inline-block;*/
}

/* Container centrati */

.header-menu-content {
    max-width: 80%; /* oppure 80%, come preferisci */
    margin: 0 auto;
    padding: 0.5rem 1rem;
    display: flex;
    justify-content: flex-end; /* Allinea a destra */
    align-items: center;
}

.header-bar-content {
    max-width: 80%; /* oppure 80%, come preferisci */
    margin: 0 auto;
    padding: 0.5 1rem; /* opzionale: spazi interni laterali */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-wrapper {
  width: 100%;
  background-color: var(--secondary-color-darkgray);
  box-sizing: border-box;
  justify-items: center;
  justify-content: center;

}

.header-menu-wrapper {
  width: 80%;
}

.header-menu,
.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
  width: 100%;
  /*max-width: 1200px; /* o quello che usi nel resto del layout */
  margin: 0 auto;
}

.header-menu-icons,
.header-bar-menu {
  flex: 1;
  display: flex;
  align-items: center;
}

.header-menu-bg {
    width: 100%;
}

.header-bar-bg {
    background-color: #fff; /* bianco o altro */
    width: 100%;
}

/*.header-menu {
    background-color: var(--secondary-color-darkgray);
    display: flex;
    align-items: center;
    justify-content: center;
}*/

/*.header-menu-icons {
    background-color: var(--secondary-color-darkgray);
    justify-content: flex-end;
    align-items: center;
}*/

.header-menu-register-button, .header-menu-login-button {
    background-color: var(--white-color);
    font-family: 'Raleway', 'Roboto', sans-serif;
    font-weight: 600;
    color: var(--secondary-color-darkgray);
    border: 1px solid #333;
    border-radius: 5px;
    padding: 10px;
    cursor: pointer;
    text-align: center;
}

.header-menu-register-button {
    background-color: var(--pink-primary);
    border: 0px;
    color: var(--white-color) !important;
    padding-left: 15px;
    padding-right: 15px;
}

.header-menu-register-button:hover {
    opacity: 0.7;
}

.header-menu-login-button:hover {
    opacity: 0.7;
}

/*.header-icons a {
    margin-left: 1rem;
}

.header-icons img {
    width: 24px;
    height: 24px;
}*/

/*.header-bar, /*.header-icons {
    background-color: var(--white-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 1rem;
}*/

/*.header-bar-menu {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}*/

.header-logo {
    width: 120px;
    align-self: center;
    margin-top: 3px;
    margin-bottom: 3px;
    max-height: 75px;
}

.small-profile {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    vertical-align:middle;
    margin-top: 0.4rem;
    margin-left: 0.5rem;
    margin-right: 0.5rem;
    padding-bottom: 0.4rem;
}

.nav-menu ul {
  display: flex;
  gap: 1rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.user_menu {
  display:flex;
  background-color: var(--secondary-color-darkgray);
  /*font-family: Century Gothic, sans-serif;*/
  list-style: none;
  padding: 0;
  margin: 0;
  padding-left: 0rem;
  /*margin-left: -5rem;*/
}

.user_menu > li {
  position: relative;

}

.user_menu > li > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  padding: 0; /* rimuove effetti collaterali */
  color: #fff;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 10px;
  transition: color 0.3s linear, background 0.3s linear;
}

.user_menu > li:hover > a,
.user_menu > li.active > a {
  background: #e71c5b;
  color: #000;
}

/* Dropdown */
.user_menu li ul {
  display: none;
  position: absolute;
  top: 100%;
  right:0;
  width: 150px;
  background: #454545;
  list-style: none;
  padding: 0;
  margin: 0;
  z-index: 999;
}

.user_menu li:hover > ul {
  display: block;
}

.user_menu li ul li {
  width: 100%;
}

.user_menu li ul li a {
  display: block;
  padding: 8px;
  color: #fff;
  text-decoration: none;
  /*text-transform: uppercase;*/
  box-sizing: border-box;
}

.user_menu li ul li:hover > a {
  background: #e71c5b;
  color: #fff;
}

/* Nested dropdown (if needed) */
.user_menu li ul li ul {
  left: 100%;
  top: 0;
}

.small-profile {
  width: 30px ;
  height: 30px;
  object-fit: cover;
  border-radius: 50%;
  display: block;
  margin: 0;
  padding: 0;
  line-height: 0;
  box-sizing: content-box;
}