/* 

this page is used to override what styles the header is getting from nicepage.css

*/

#sec-b9ed.u-header {
    background-image: url("ACM_BG_HEADER.jpg");
    background-position: 50% 50%;
    background-size: cover;
    background-repeat: no-repeat;
    min-height: 230px !important;     /* invece di height */
    height: auto !important;           /* lascia crescere */
}

@media (min-width: 1440px) {
    #sec-b9ed .u-sheet-1 {
        max-width: 100%;
    }
}

#sec-b9ed.u-header.u-black {
    background-color: transparent !important;
}

#sec-b9ed .u-logo-image-1 {
    width: clamp(200px, 22vw, 300px);
    height: auto;
    margin: 0;
    padding: 0;
}

@media (min-width:1400px) {
    #sec-b9ed .u-sheet-1 {
        width: 1320px !important;
    }
}

#sec-b9ed .u-language-1 {
    float: right;
}

.u-header .u-language-1 {
    margin: -25px auto 0 0 !important;
}

.u-header .u-menu-1 {
    margin-top: -54px !important;
}

#sec-b9ed .u-sheet-1 {
    justify-content: right;
    overflow: auto;
}

.u-header .u-image-1{
    margin-top: 69px !important;
    margin-right: auto !important;
    margin-left: auto !important;
    margin-bottom: auto !important;
}

#sec-b9ed.u-header{ 
    position:sticky; 
    top:0; 
    left:0; 
    width:100%; 
    z-index:100; 
} 

.comm-page, body .siteforceContentArea{ padding-top:230px; } 
@media(max-width:767px){ 
    .comm-page, body .siteforceContentArea{ padding-top:193px; } 
}

@font-face{
    font-family: 'MilanPulse-Ultra';
    src: url("./fonts/MilanPulse-Ultra.otf") format("opentype");
    font-weight: 400;
    font-style:  normal;
    font-display: swap;
}

@font-face{
    font-family: 'HelveticaNowTextLight';
    src: url("./fonts/HelveticaNowTextLight.otf") format("opentype");
    font-weight: 400;
    font-style:  normal;
    font-display: swap;
}

#sec-b9ed *:not(.hc-global-search input) {
  font-family: 'MilanPulse-Ultra', sans-serif !important;
  font-size: 20px !important;
}

.u-black.u-sidenav:before{
    background-color: #FFFFFF !important;
}

.u-black a{
    color: #000000 !important;
}

ul.u-align-center{
    text-align: left !important;
}

nav.u-menu-1 .u-popupmenu-items.u-text-hover-custom-color-1 .u-nav-link:hover{
    color:#E00712 !important;
}

.hc-active-link,
.hc-active-link:hover,
.hc-active-link:focus,

.u-black a.hc-active-link,
.u-black a.hc-active-link:hover,
.u-black a.hc-active-link:focus {
    color:#E00712 !important;
}

.hc-global-search input {
  font-size: 16px !important;
}

/* Main container for search bar */
.hc-global-search {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  margin-top: 59px !important;
  gap: 8px !important;
  max-width: 500px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  flex-direction: row-reverse !important; /* icon on left */
}

/* Search input */
.hc-global-search .u-search-input {
  flex-grow: 1 !important;
  padding: 8px 12px !important;
  font-family: 'HelveticaNowTextLight', sans-serif !important;
  font-size: 16px !important;
  box-sizing: border-box !important;
}

/* Search button with centered icon */
.hc-global-search .u-search-button {
  background: transparent !important;
  border: none !important;
  cursor: pointer !important;
  padding-left: 13px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 40px !important;
  height: 40px !important;
  box-sizing: border-box !important;
}

/* SVG icon styling */
.hc-global-search .u-search-icon {
  width: 20px !important;
  height: 20px !important;
  fill: currentColor !important;
  display: block !important;
  margin: auto !important;
}

#sec-b9ed .u-menu-close{
    color: #000000 !important;
}

#sec-b9ed .u-menu-close:hover{
    color: #E00712 !important;
}

/* ============================================================= */
/*   MEDIA QUERIES — tutte convertite da height → min-height     */
/* ============================================================= */

@media (min-width: 1400px){
    #sec-b9ed.u-header{ 
        min-height: 296px !important; 
        height: auto !important;
    }
    .hc-global-search { 
        margin: 60px auto !important; 
    }
}

/* 1200 – 1399 px */
@media (min-width: 1200px) and (max-width: 1399.98px){
    #sec-b9ed.u-header{ 
        min-height: 233px !important; 
        height: auto !important;
    }
    .hc-global-search { 
        margin: 60px auto 30px !important; 
    }
}

/* 1000 – 1199 px */
@media (min-width: 1000px) and (max-width: 1199.98px){
    #sec-b9ed.u-header{ 
        min-height: 216px !important; 
        height: auto !important;
    }
    .hc-global-search { 
        margin: 60px auto 20px !important; 
    }
}

/* 770 – 999 px */
@media (min-width: 770px) and (max-width: 999.98px){
    #sec-b9ed.u-header{ 
        min-height: 237px !important; 
        height: auto !important;
    }
    .hc-global-search { 
        margin: 55px auto 30px !important; 
    }
}

/* 580 – 769 px */
@media (min-width: 580px) and (max-width: 769.98px){
    #sec-b9ed.u-header{ 
        min-height: 246px !important; 
        height: auto !important;
    }
    .hc-global-search { 
        margin: 55px auto 49px !important; 
    }
}

/* < 580 px */
@media (max-width: 579.98px){
    #sec-b9ed.u-header{ 
        min-height: 192px !important; 
        height: auto !important;
    }
    .hc-global-search { 
        margin: 36px auto 36px !important; 
    }
    .u-header .u-icon-2, .u-header .u-icon-3 {
        height: 18px !important; 
    }
    .u-header .u-image-1 {
        margin-top: 54px !important;
    }
    .u-header .u-language-1 {
        margin-top: -30px !important; 
        margin-bottom: 0 !important;
    }
    .u-header .u-menu-1 {
        margin-top: -44px !important;
    }
}

.u-overlap.u-offcanvas-opened #sec-b9ed.u-header.u-sticky {
    position: sticky !important;
}
