html { 
  scroll-behavior: smooth;
}

.panel-open .custom-header-wrapper, footer.footer {
  position: relative;
  z-index: 0;
}

.custom-menu-primary a {
  position: relative; 
  z-index: 10;
}

.custom-menu-primary .hs-menu-wrapper>ul li:nth-child(2) {
  position: static;
}

.custom-menu-primary .hs-menu-wrapper>ul li:nth-child(2) ul.hs-menu-children-wrapper {  
  opacity: 0;
  width: 1680px;
  transform: translateY(-9999px);
  display: flex;
  justify-content: space-between;
}


.custom-menu-primary .hs-menu-wrapper>ul li:nth-child(2) ul.hs-menu-children-wrapper li {
  width: auto;
  float: none; 
  border-right: 1px solid rgba(60,60,60,0.1);
  border-bottom: 0;
  flex-grow: 1;
  width: 20%;
  margin: 0;
  padding: 20px 40px;
}

.custom-menu-primary .hs-menu-wrapper>ul li:nth-child2) ul.hs-menu-children-wrapper li:last-child {
  border-right: 0;
  text-align: left;
}

.custom-menu-primary .menu-title-text {
  letter-spacing: 0;
  font-size: 15px;
  padding-bottom: 15px !important;
  display: block;
  color: #e12728 !important;
  display: block;
  text-transform: uppercase;
  font-weight: 700;
}

.custom-menu-primary .hs-menu-wrapper>ul li:nth-child(2) ul.hs-menu-children-wrapper li:last-child .menu-title-text {
  padding-bottom: 0 !important;
}

.custom-menu-primary .hs-menu-wrapper>ul li:nth-child(2) ul.hs-menu-children-wrapper li small.item_desc {
  display: block;
  color: #707070!important;
  font-size: 14px;
}

.custom-menu-primary .hs-menu-wrapper>ul li:nth-child(2) ul li:before {
  content: none;
}

.custom-menu-primary .hs-menu-wrapper>ul li:nth-child(2) ul.hs-menu-children-wrapper a span:after {
  border: 0;
  content: none;
}

/*.custom-menu-primary .hs-menu-wrapper>ul li:nth-child(3) ul.hs-menu-children-wrapper li:last-child li a span:after {
  height: 1px;
  transform-origin: right;
  border-width: 1px;
  border-color: #000 #e12728 #e12728;
  border-top: 1px solid #e12728;
  transition: transform 0.3s cubic-bezier(0.25,0,0.4,1),border-color 0.35s cubic-bezier(0.52,0.01,0.16,1);
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  display: block;
  content: "";
  transform: scaleX(0);
  background-color: #e12728;
  color: rgba(225, 39, 40, 1.0);
}*/

.custom-menu-primary .hs-menu-wrapper>ul li:nth-child(2) ul.hs-menu-children-wrapper li ul.hs-menu-children-wrapper {
  display: block;
  position: static;
  box-shadow: none;
  height: auto;
  background: transparent !important;
  padding: 0;
}

.custom-menu-primary .hs-menu-wrapper>ul li:nth-child(2) ul.hs-menu-children-wrapper li ul.hs-menu-children-wrapper li {
  border-right: 0;
  width: 100%;
  padding: 0;
  text-align: left;
}

.custom-menu-primary .hs-menu-wrapper>ul li:nth-child(2) ul.hs-menu-children-wrapper li ul.hs-menu-children-wrapper li a {
  padding: 0;
}

.custom-menu-primary .hs-menu-wrapper>ul li:nth-child(2) ul.hs-menu-children-wrapper li ul.hs-menu-children-wrapper li .menu-title-text {
  text-transform: none !important;
}

.nectar-menu-icon.svg-icon svg {
  width: 18px; 
  height: 18px;
  float: left; 
  margin-right: 10px;
}

@media only screen and (min-width: 1000px) {
  .custom-menu-primary .hs-menu-wrapper>ul {
      position: static;
  }
}

@media only screen and (max-width: 1000px) {
  
  .custom-mobile-menu .hs-menu-wrapper>ul li:nth-child(2) a { 
    color: #1f1f1f;
    transform: scaleX(1);
    border-bottom: 2px solid transparent;
    opacity: 1;
    transition: color .37s cubic-bezier(.52,.01,.16,1);
    display: inline-block;
  }
  
  .custom-mobile-menu .hs-menu-wrapper>ul li:nth-child(2) a .menu-title-text, .custom-mobile-menu .hs-menu-wrapper>ul li:nth-child(3) a small.item-desc {
    text-transform: none;
    font-weight: normal;
    color: #1f1f1f !important;
  }
  
  .custom-mobile-menu .hs-menu-wrapper>ul li:nth-child(2) a .menu-title-text {
    font-size: 16px;
    padding-bottom: 0 !important;
  }
  
  .custom-mobile-menu .hs-menu-wrapper>ul li:nth-child(2) ul.hs-menu-children-wrapper a {
    content: none;
    border: 0;
    color: #1f1f1f;
    margin-right:20px;
  }
  
  .custom-mobile-menu .hs-menu-wrapper>ul li:nth-child(2) ul.hs-menu-children-wrapper .nectar-menu-icon.svg-icon,
  .custom-mobile-menu .hs-menu-wrapper>ul li:nth-child(2) ul.hs-menu-children-wrapper .nectar-menu-icon-text {
    float: left;
  }
  
  .custom-mobile-menu .hs-menu-wrapper>ul li:nth-child(2) ul.hs-menu-children-wrapper .nectar-menu-icon.svg-icon svg {
    fill: #fff;
  }
  
  .custom-mobile-menu .hs-menu-wrapper>ul li:nth-child(2) a:after, 
  .custom-mobile-menu .hs-menu-wrapper>ul li:nth-child(2) ul.hs-menu-children-wrapper a:after,
  .custom-mobile-menu .hs-menu-wrapper>ul li:nth-child(2) ul.hs-menu-children-wrapper a:after .menu-title-text, 
  .custom-mobile-menu .hs-menu-wrapper>ul li:nth-child(2) ul.hs-menu-children-wrapper a:after small.item-desc {
    color: #e12728 !important;
  }
  
}

.nectar_icon { 
  border: 2px solid rgba(255,215,218,0.5);
  text-align: center;
  border-radius: 150px;
  position: relative;
  transition: background-color .45s cubic-bezier(0.25,1,0.33,1),border-color .45s cubic-bezier(0.25,1,0.33,1); 
  width: 75px; 
  height: 75px;
}

.im-icon-wrap, .im-icon-wrap span { 
  display: inline-block;
  width: 75px; 
  height: 75px;
}

.close {
  color: #fff;
  font-size: 48px;
  position: absolute; 
  right: 100px;
  top: 35px;
  border-radius: 50%;
  border: 1px solid #fff;
  width: 40px;
  height: 40px;
  line-height: 40px;
  text-align: center;
}

.close:hover,
.close:focus {
  color: #fff;
  text-decoration: none;
  cursor: pointer;
}



@media only screen and (max-width : 600px) {

  .close {
    right: 25px;
    top: 15px;
  }
  
  .buttons .button {
    margin-bottom: 0.5em;
  }
  
}




/* MODIFICHE DA INSERIRE POI NELL'HEADER 2024 CSS*/

.top-header-right ul.secondary-header-items>li:last-child>a>span:last-child{
  width:auto!important;
  left: 0!important;
  margin-left:0!important;
  margin-right:0!important;

}

.top-header-right ul li a span:first-child{
  margin-right:0!important;  
}


.content-wrapper{
  max-width: 1800px!important;
}

.top-header .content-wrapper{
  margin: 0 auto!important;
}

.contact-button ul li a{
  font-weight: 800!important;
  line-height: 13px!important;
  color: #fff!important;
  padding: 4px 0!important;
}

.contact-button ul li a:before{
  border-radius: 50px!important;
  -webkit-border-radius:50px!important;
  border:none!important;
  background: linear-gradient(90deg, #444444, #1f1f1f, #444444)!important;

}

.contact-button ul li a:after{
  border-radius: 50px!important;
  -webkit-border-radius: 50px!important;
  background: linear-gradient(90deg, #444444, #1f1f1f, #444444)!important;
}

.hs-image-widget {
  box-shadow:none!important;
  margin-top: 0px!important;
}
@media only screen and (min-width: 1000px){
  .et-fixed-header .custom-header-logo img{
    height: 59px!important;
  }
  
  .bottom-header .row{
    margin:0px!important;
    padding:0px!important;
  }
}