/* Header by Texy */

/* Color Background */

/* #top-bar {
    background-color: var(--grey);
}

#sec-hero {
    background-color: var(--grey);
} */


/* Header */
/* header {
    position: absolute;
} */

header .header-main {
    position: fixed;
    top: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-top: 0;
    margin-bottom: 0;
    z-index: 1000;
    transition: transform 1s ease;
}

header .header-main nav {
    width: 100%;
}
/* Quando scrolli giù, aggiungiamo uno sfondo bianco */
header .header-main.scrolled {
    background-color: var(--white-sand);
}

/* Nascondi quando scrolli giù velocemente */
header .header-main.hidden {
    transform: translateY(-100%);
}

header .header-main.visible {
    transform: translateY(0);
}

header .menu {
    display: flex;
    justify-content: center;
    align-items: center;
    text-transform: uppercase;

    width: 100%;

    gap: 10px;
}
header .logo img {
    width: 100%;
    z-index: 1;
}

header .menu a {
    flex: 1;
    text-align: center;
    text-decoration: none;

}

#mobileMenu {
  display: flex;
  flex-direction: column;
    /* centra il testo nei <a> */
  padding: 0;
}

#mobileMenu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

#mobileMenu li {
  margin: 1rem 0;
}

#mobileMenu a,
#mobileMenu button {
  text-decoration: none;
  background: none;
  border: none;
  color: var(--dark-blue);
  cursor: pointer;
}

header .btn-hbg {
    display: none;
    justify-content: end;
    align-items: center;
    width: 100%;
    cursor: pointer;
    padding: 10px 0;
}

header .hbg {
    background: none;
    border: none;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 35px;
    height: 25px;
    cursor: pointer;
}

header .hbg {
    gap: 5px;
    cursor: pointer;
}

header .hbg span {
    display: block;
    width: 100%;
    height: 100px;
    transition: 0.3s;
    z-index: 70;
}

header .hbg .hbg-o {
    background-color: var(--dark-orange);
}

header .hbg .hbg-b {
    background-color: var(--dark-blue);
}

.hbg.active span:nth-child(1) {
  transform: rotate(45deg) translate(9px, 9px);
}

.hbg.active span:nth-child(2) {
  opacity: 0;
}

.hbg.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

header .mobile-menu {
  position: fixed;
  top: -100%;
  left: 0;
  width: 80%;
  background: var(--white-sand);
  transition: 1s;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;      
  text-align: center;
   z-index: 1000;
}

header .mobile-menu ul,
header .mobile-menu li {
    list-style: none;
}

header .mobile-menu a {
    text-decoration: none;
    padding: 10px;
    display: block;
}


header .mobile-menu.open {
    top: 0;
}

header .language-selector {
  position: relative;
}

header .language-selector button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem 1rem;
}

header .lang-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  list-style: none;
  padding: 0;
  margin: 0;
  width: max-content;
  box-shadow: 0 2px 1px var(--dark-blue);
  z-index: 1000;
}

header .lang-menu li a {
  border: 1px solid var(--dark-blue);
  display: block;
  padding: 0.5rem 1rem;
  text-decoration: none;
  color: var(--dark-blue);
}

header .lang-menu li a:hover {
  background-color: var(--white-sand);
}