#header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  z-index: 99;
  -webkit-transition: all 200ms cubic-bezier(0.455, 0.03, 0.515, 0.955);
  -moz-transition: all 200ms cubic-bezier(0.455, 0.03, 0.515, 0.955);
  -ms-transition: all 200ms cubic-bezier(0.455, 0.03, 0.515, 0.955);
  -o-transition: all 200ms cubic-bezier(0.455, 0.03, 0.515, 0.955);

  background-color: rgba(255, 255, 255, 0.5);
}

#header.scroll {
  background-color: #fff;
}

#login-container {
  height: 4rem;
  background: #41a62a;
  width: 100%;
  position: relative;
}

.user-text {
  line-height: 4rem;
  color: #fff !important;
  font-weight: 500;
  font-size: 1.4rem;
}

.user-text img {
  position: relative;
  -webkit-transform: translateY(25%);
  -ms-transform: translateY(25%);
  transform: translateY(25%);
  margin-left: 1.5rem;
  height: 2.5rem;
}

.menu {
  width: 100%;
  position: absolute;
  position: relative;
  -webkit-transition: all 600ms cubic-bezier(0.455, 0.03, 0.515, 0.955);
  -moz-transition: all 600ms cubic-bezier(0.455, 0.03, 0.515, 0.955);
  -ms-transition: all 600ms cubic-bezier(0.455, 0.03, 0.515, 0.955);
  -o-transition: all 600ms cubic-bezier(0.455, 0.03, 0.515, 0.955);
  /* padding: 0 3rem; */
}

.menu,
#navspacer {
  height: 10rem;
}

#menu-container,
#sottomenu-container {
  height: 100%;
  position: relative;
  display: table;
  width: calc(100% - 3rem - 20rem);
  max-width: 1170px;
  float: right;
}

.menu-container {
  height: 100%;
  position: relative;
  display: table;
  width: 100%;
}

.desktop ul {
  list-style: none;
  display: block;
  position: relative;
  width: 100%;
  padding: 0 1.5rem;
  /* height: 100%; */
  margin: 0;
  -webkit-transition: all 600ms cubic-bezier(0.455, 0.03, 0.515, 0.955);
  -moz-transition: all 600ms cubic-bezier(0.455, 0.03, 0.515, 0.955);
  -ms-transition: all 600ms cubic-bezier(0.455, 0.03, 0.515, 0.955);
  -o-transition: all 600ms cubic-bezier(0.455, 0.03, 0.515, 0.955);
}

.desktop ul li {
  display: inline-block;
}

.desktop ul li a {
  color: #000;
  text-decoration: none;
  padding: 0.75rem 1rem;
  position: relative;
  display: inline-block;
  cursor: pointer;
  font-size: 1.5rem;
  font-weight: 400;
  text-transform: uppercase;
  text-decoration: none;
}

.desktop ul li a.evento-menu {
  padding: 2rem;
  color: #fff !important;
  background-image: url(../../img/triangolo-evento.png);
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
}

.desktop ul li a.selected {
  color: #c59d5f;
}

.desktop ul li a:not(.no_underline):after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  width: 100%;
  background-color: #c59d5f;
  opacity: 0;
  width: 0;
  left: 50%;
  -webkit-transition: all 300ms cubic-bezier(0.455, 0.03, 0.515, 0.955);
  -moz-transition: all 300ms cubic-bezier(0.455, 0.03, 0.515, 0.955);
  -ms-transition: all 300ms cubic-bezier(0.455, 0.03, 0.515, 0.955);
  -o-transition: all 300ms cubic-bezier(0.455, 0.03, 0.515, 0.955);
}

.desktop ul li a:hover:after,
.desktop ul li a.active:after {
  left: 0;
  opacity: 1;
  width: 100%;
}

.desktop ul li a.adesione {
  text-transform: none;
  background: #00b1be;
  padding: 1rem;
  border-radius: 0.5rem;
  -webkit-transition: all 300ms cubic-bezier(0.455, 0.03, 0.515, 0.955);
  -o-transition: all 300ms cubic-bezier(0.455, 0.03, 0.515, 0.955);
  transition: all 300ms cubic-bezier(0.455, 0.03, 0.515, 0.955);
  font-weight: 700;
}

#menu-evento-container,
#menu-evento-container-fixed {
  width: 100%;
  display: inline-block;
  height: 8rem;
  background: #ffffff;
  transition: all 300ms cubic-bezier(0.455, 0.03, 0.515, 0.955);
  -webkit-transition: all 300ms cubic-bezier(0.455, 0.03, 0.515, 0.955);
  -moz-transition: all 300ms cubic-bezier(0.455, 0.03, 0.515, 0.955);
  -ms-transition: all 300ms cubic-bezier(0.455, 0.03, 0.515, 0.955);
  -o-transition: all 300ms cubic-bezier(0.455, 0.03, 0.515, 0.955);
}

#menu-evento div.desktop {
  text-align: left;
}

#menu-evento .desktop ul li a {
  color: #5f388c;
  font-weight: 500;
}

#menu-evento-container.fixed #menu-evento-container-fixed {
  position: fixed;
  top: 8rem;
  left: 0;
  right: 0;
  z-index: 100;
}

#menu-evento-container.fixed,
#menu-evento-container.fixed #menu-evento-container-fixed,
#menu-evento-container.fixed #menu-evento {
  height: 5rem;
}

.submenu {
  position: relative;
}

.submenu ul {
  position: absolute;
  left: 50%;
  padding: 0;
  bottom: 0.5rem;
  -webkit-transform: translate(-50%, 100%);
  -ms-transform: translate(-50%, 100%);
  transform: translate(-50%, 100%);
  width: auto;
  min-width: 100%;
  display: none;
}

.submenu.openm ul {
  display: block;
}

.submenu ul li {
  display: block;
  background: #fff;
}

.desktop .submenu ul li + li {
  margin: 0;
  border-top: 1px solid #fff;
  text-align: center;
}

.submenu ul li a {
  padding: 1rem 2rem;
  font-size: 1.2rem !important;
  width: 100%;
  white-space: nowrap;
  text-align: left;
}

.hamburger,
#menu-mobile {
  display: none;
}

.submenu.openm a i {
  display: inline-block;
  -webkit-transform: rotate(180deg);
  -ms-transform: rotate(180deg);
  transform: rotate(180deg);
}

@media (min-width: 992px) {
  #menu-mobile {
    display: none !important;
  }
}

@media (max-width: 991px) {
  .desktop {
    display: none;
  }

  .menu,
  #navspacer {
    height: 8rem;
  }

  #menu-container {
    display: none;
  }

  .hamburger {
    display: inline-block;
    cursor: pointer;
    -webkit-transition-property: opacity, -webkit-filter;
    transition-property: opacity, -webkit-filter;
    -o-transition-property: opacity, filter;
    transition-property: opacity, filter;
    transition-property: opacity, filter, -webkit-filter;
    -webkit-transition-duration: 0.15s;
    -o-transition-duration: 0.15s;
    transition-duration: 0.15s;
    -webkit-transition-timing-function: linear;
    -o-transition-timing-function: linear;
    transition-timing-function: linear;
    font: inherit;
    color: inherit;
    text-transform: none;
    background-color: transparent;
    border: 0;
    margin: 0;
    overflow: visible;
  }

  .hamburger {
    padding: 0;
    -webkit-transform: scale(0.7, 0.7);
    -ms-transform: scale(0.7, 0.7);
    transform: scale(0.7, 0.7);
    z-index: 2;
    -moz-transform: scale(0.7, 0.7);
    -o-transform: scale(0.7, 0.7);
  }

  .hamburger-box {
    width: 40px;
    height: 24px;
    display: inline-block;
    position: relative;
  }

  .hamburger-inner {
    display: block;
    top: 50%;
    margin-top: -2px;
  }

  .hamburger-inner::before,
  .hamburger-inner::after {
    content: "";
    display: block;
  }

  .hamburger-inner,
  .hamburger-inner::before,
  .hamburger-inner::after {
    width: 40px;
    height: 4px;
    background-color: #000;
    position: absolute;
    -webkit-transition-property: -webkit-transform;
    transition-property: -webkit-transform;
    -o-transition-property: transform;
    transition-property: transform;
    transition-property: transform, -webkit-transform;
    transition-property: transform, -webkit-transform;
    -webkit-transition-duration: 0.15s;
    -o-transition-duration: 0.15s;
    transition-duration: 0.15s;
    -webkit-transition-timing-function: ease;
    -o-transition-timing-function: ease;
    transition-timing-function: ease;
  }

  .hamburger-inner,
  .hamburger-inner::before,
  .hamburger-inner::after {
    border-radius: 0;
  }

  .hamburger--spin .hamburger-inner {
    -webkit-transition-duration: 0.3s;
    -o-transition-duration: 0.3s;
    transition-duration: 0.3s;
    -webkit-transition-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19);
    -o-transition-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19);
    transition-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19);
  }

  .hamburger-inner::before {
    top: -10px;
  }

  .hamburger-inner::after {
    bottom: -10px;
  }

  .hamburger--spin .hamburger-inner::before {
    -webkit-transition: top 0.1s 0.34s ease-in, opacity 0.1s ease-in;
    -o-transition: top 0.1s 0.34s ease-in, opacity 0.1s ease-in;
    transition: top 0.1s 0.34s ease-in, opacity 0.1s ease-in;
  }

  .hamburger--spin .hamburger-inner::after {
    -webkit-transition: bottom 0.1s 0.34s ease-in,
      -webkit-transform 0.3s cubic-bezier(0.55, 0.055, 0.675, 0.19);
    transition: bottom 0.1s 0.34s ease-in,
      -webkit-transform 0.3s cubic-bezier(0.55, 0.055, 0.675, 0.19);
    -o-transition: bottom 0.1s 0.34s ease-in,
      transform 0.3s cubic-bezier(0.55, 0.055, 0.675, 0.19);
    transition: bottom 0.1s 0.34s ease-in,
      transform 0.3s cubic-bezier(0.55, 0.055, 0.675, 0.19);
    transition: bottom 0.1s 0.34s ease-in,
      transform 0.3s cubic-bezier(0.55, 0.055, 0.675, 0.19),
      -webkit-transform 0.3s cubic-bezier(0.55, 0.055, 0.675, 0.19);
  }

  .hamburger--spin.is-active .hamburger-inner {
    -webkit-transform: rotate(225deg);
    -ms-transform: rotate(225deg);
    transform: rotate(225deg);
    -webkit-transition-delay: 0.14s;
    -o-transition-delay: 0.14s;
    transition-delay: 0.14s;
    -webkit-transition-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
    -o-transition-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
    transition-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
  }

  .hamburger--spin.is-active .hamburger-inner::before {
    top: 0;
    opacity: 0;
    -webkit-transition: top 0.1s ease-out, opacity 0.1s 0.14s ease-out;
    -o-transition: top 0.1s ease-out, opacity 0.1s 0.14s ease-out;
    transition: top 0.1s ease-out, opacity 0.1s 0.14s ease-out;
  }

  .hamburger--spin.is-active .hamburger-inner::after {
    bottom: 0;
    -webkit-transform: rotate(-90deg);
    -ms-transform: rotate(-90deg);
    transform: rotate(-90deg);
    -webkit-transition: bottom 0.1s ease-out,
      -webkit-transform 0.3s 0.14s cubic-bezier(0.215, 0.61, 0.355, 1);
    transition: bottom 0.1s ease-out,
      -webkit-transform 0.3s 0.14s cubic-bezier(0.215, 0.61, 0.355, 1);
    -o-transition: bottom 0.1s ease-out,
      transform 0.3s 0.14s cubic-bezier(0.215, 0.61, 0.355, 1);
    transition: bottom 0.1s ease-out,
      transform 0.3s 0.14s cubic-bezier(0.215, 0.61, 0.355, 1);
    transition: bottom 0.1s ease-out,
      transform 0.3s 0.14s cubic-bezier(0.215, 0.61, 0.355, 1),
      -webkit-transform 0.3s 0.14s cubic-bezier(0.215, 0.61, 0.355, 1);
  }

  .hamburger:focus {
    outline: none;
  }

  #menu-mobile {
    background-color: #c59d5f;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    display: none;
    z-index: 98;
  }

  #menu-mobile > #wrapper-mobile {
    position: relative;
    width: 100%;
    height: 100%;
    padding: 0 15px;
    padding-top: 9.5rem;
    padding-bottom: 1.5rem;
    overflow-y: auto;
  }

  #menu-mobile > #wrapper-mobile ul {
    padding: 0;
    list-style: none;
    display: block;
    position: relative;
    top: 0;
    vertical-align: top;
  }

  #menu-mobile > #wrapper-mobile ul li {
    font-family: "Roboto", sans-serif;
    position: relative;
    display: block;
    width: 100%;
    font-size: 14px;
    font-weight: 300;
  }

  #menu-mobile > #wrapper-mobile ul li a {
    color: #fff;
    text-transform: uppercase;
    text-decoration: none;
    position: relative;
    display: inline-block;
    width: 100%;
    padding: 20px 10px;
    border-bottom: 1px solid #fff;
    font-size: 1.5rem;
  }

  #menu-mobile > #wrapper-mobile .submenu ul {
    position: relative;
    padding-left: 2.5rem;
    -webkit-transform: none;
    -ms-transform: none;
    transform: none;
    left: 0;
    top: 0;
    display: none;
  }

  #menu-mobile > #wrapper-mobile .submenu.openm ul {
    display: block;
  }

  .dropdown-btn {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    padding: 0 2.5rem;
  }
  .submenu ul li {
    background: none;
  }
}
