.main-header{
  height: 80px;
  width: 100%;
  top: 0;
  left: 0;
  display: flex;
  text-transform: uppercase;
  white-space: nowrap;
  color: black;
  background-color: white;
  transition: background-color .5s, color .5s;
  position: fixed;
  z-index: 1000;
  user-select: none;
}
.main-header.transparent{
  height: 95px;
  color: white;
  background-color: transparent;
  position: absolute;
}
.main-header:not(.transparent){
  box-shadow: 1px -1px 2px 1px rgba(0,0,0,0.25);
}

.main-header sup{
  text-transform: lowercase; !important;
}

.main-header .h-logo{
  width: 20%;
  padding: 1em 0 0 2em;
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-right: auto;
}
.main-header .h-logo img{
  height: 100%;
}
.main-header .h-logo img:not(.show){
  display: none;
}

.main-header .h-logo-text{
  font-size: 14px;
  font-weight: 600;
}
.main-header.transparent .h-logo-text{
  display: none;
}

.main-header .h-lists{
  padding: 1em;
  display: flex;
  gap: 2em;
  font-size: 18px;
}

.main-header .h-list{
  display: flex;
  align-items: center;
  gap: 2em;  
}

/* Dropdown Menu */
.main-header .h-dropdown{
  position: relative;
}
.main-header .h-dropdown-menu{
  background-color: white;
  color: black;
  position: absolute;
  left: -.5em;
  margin-top: .5em;
  min-width: 50px;
}

.main-header .h-dropdown-menu:not(.show){
  display: none;
}
.main-header .h-dropdown-menu:not(.transparent){
  box-shadow: 1px -1px 2px 1px rgba(0,0,0,0.25);
}

/* Dropdown Toggle */
.main-header .h-toggle {
  padding-bottom: .5em;
}
.main-header .h-toggle::after {
  font: var(--fa-font-solid);
  content: "\f107";
  font-size: .75em;
  margin-left: .1em;
  transition: transform .25s ease-in-out;
  text-decoration: none !important;
}
.main-header .h-toggle.opened::after {
  transform: rotate(-180deg);
}

/* Dropdown Items */
.main-header .h-dropdown-item{
  border-bottom: 1px solid var(--grey);
  transition: background-color .25s;
}
.main-header .h-dropdown-item:not(:last-child){
  border-bottom: 1px solid var(--grey);
}
.main-header .h-dropdown-item:not(.active):hover{
  background-color: var(--green);
  color: white;
}
.main-header .h-dropdown-item .h-link{
  display: block;
  height: 100%;
  width: 100%;
  padding: 1em .5em;
}

/* Links */
.main-header .h-link.active, .main-header .h-toggle.active span{
  text-decoration: underline;
}

/* Socials */
.main-header .h-socials{
  margin-top: auto;
  margin-bottom: 60px;
  text-transform: capitalize;
  display: flex;
  gap: 1em;
  align-items: baseline;
}
.main-header .h-socials i{
    font-size: 1.5em;
}

/* Mobile Hamburger */

.main-header .h-mobile-icon{
  display: flex;
  align-items: center;
  justify-content: center;
}

.main-header .bars {
  width: 50px;
  cursor: pointer;
}
.main-header .bars .line {
  fill: none;
  stroke: var(--green);
  stroke-width: 4;
  stroke-linecap: square;
  transition: stroke-dasharray 400ms,  stroke-dashoffset 400ms;
}
.main-header.transparent .bars .line {
  stroke: white;
}
.main-header .bars .line.top {
  stroke-dasharray: 40 172;
}
.main-header .bars .line.middle {
  stroke-dasharray: 40 111;
}
.main-header .bars .line.bottom {
  stroke-dasharray: 40 172;
}
.main-header .bars.active .top {
  stroke-dashoffset: -132px;
}
.main-header .bars.active .middle {
  stroke-dashoffset: -71px;
}
.main-header .bars.active .bottom {
  stroke-dashoffset: -132px;
}

.h-scroll-top-arrow{
  background-color: var(--green);
  border-radius: 50%;
  position: fixed;
  bottom: 5rem;
  right: 2rem;
  width: 60px;
  height: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 2px solid var(--green);
  transition: .25s;
  cursor: pointer;
  z-index: 100;
  opacity: .9;
}
.h-scroll-top-arrow.hidden{
  bottom: -100px;
}
.h-scroll-top-arrow i{
  color: white;
  font-size: 26px;
  z-index: 100;
}

.c-fixed-socials{
  position: fixed;
  left: 0;
  height: 100vh;
  z-index: 150;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: .5s;
}
.c-fixed-socials.hide{
  margin-left: -60px;
}

.c-fixed-socials .socials{
  display: flex;
  flex-direction: column;
  gap: .5rem;
  margin-top: -200px;
}

.c-fixed-socials .socials a{
  display: flex;
  width: 45px;
  height: 45px;
  justify-content: center;
  align-items: center;
  font-size: 2em;
  color: white;
  background-color: var(--green);
  cursor: pointer;
  pointer-events: auto;
  transition: .25s;
  box-shadow: 1px -1px 2px 1px rgb(0 0 0 / 25%);
}
.c-fixed-socials .socials a:hover{
  background-color: white;
  color: var(--green);
}

.c-area-riservata-label{
  position: fixed;
  z-index: 150;
  right: -1px;
  transform: rotate(90deg);
  transform-origin: right top;
  top: calc(50vh - 20px);
  box-shadow: 1px -1px 2px 1px rgb(0 0 0 / 25%);
}
.c-area-riservata-label.hide{
  transition: .5s;
  right: -50px;
}

/* MEDIA QUERY */
@media screen and (min-width: 1280px) {
  .main-header .h-item .h-link:not(.active):hover, .main-header .h-toggle:not(.active):hover{
    color: var(--green) !important;
  }
  .h-scroll-top-arrow:hover{
    background-color: white;
  }
  .h-scroll-top-arrow:hover i{
    color: var(--green);
  }
}

@media screen and (max-width: 1279px) {
  .c-fixed-socials, .c-area-riservata-label{
    display: none;
  }
  .main-header .h-link, .main-header .h-toggle{
    font-size: .75em;
    padding: .75em 0;
  }
}

@media screen and (max-width: 1600px) {
  .main-header .h-lists{
    font-size: 16px;
    gap: 1em;
  }
  .main-header .h-list{
    gap: 1em;
  }
  .main-header .h-logo-text{
    font-size: 12px;
  }
  .main-header .h-logo img {
      height: 80%;
  }
}

@media screen and (max-width: 1480px) {
  
}

@media screen and (max-width: 1279px) {
  
  .main-header .h-main-list .h-toggle::after {
    font-size: 1.5em;
    margin-right: 1em;
  }
  
  .main-header .h-toggle{
    pointer-events: none;
  }
  .main-header .h-toggle:not(.active) span{
    pointer-events: auto !important;
  }
  
  .main-header .h-link.active, .main-header .h-toggle.active{
    color: black;
  }
  
  .main-header{
    height: 70px !important;
  }
  
  .main-header .h-main-list{
    position: fixed;
    width: 100%;
    top: 70px;
    left: -200vw;
    flex-direction: column;
    align-items: flex-start;
    background-color: var(--green);
    color: white;
    padding: 1em;
    min-height: unset;
    transition: left .5s;
    overflow: auto;
    height: calc(100vh - 70px);
  }
  .main-header .h-main-list.active{
    left: 0;
  }
  .main-header .h-main-list .h-item, .main-header .h-main-list .h-dropdown{
    width: 100%;
  }
  .main-header .h-main-list .h-item >a, .main-header .h-main-list .h-dropdown >a{
    border-bottom: 1px solid white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1em 0;
  }
  
  .main-header .h-dropdown-menu:not([ref=lang]){
    background-color: white;
    color: black;
    position: unset;
    margin: .25em 0;
  }
  .main-header .h-dropdown-menu:not([ref=lang]) >li{
    padding: 1em 0;
  }
  
  .main-header .h-lists{
    gap: 1em;
  }
  
}

@media screen and (max-width: 480px) {
  
  .main-header .h-logo-text{
    display: none;
  }
  
  .main-header .h-logo{
    padding-left: 1em;
  }
  
  .main-header .h-logo img{
    height: 50%;
  }
  
  .main-header .h-lists{
    margin-left: auto;
  }
}

