/*
  STAGEO HEADER UNIFICATO - FIX V2
  Usato per tutte le pagine. Nasconde eventuali bande duplicate.
*/
:root{
  --stageo-orange:#f26a00;
  --stageo-dark:#071014;
  --stageo-text:#111820;
}

#stageoHeaderUnified,
.stageo-main-header{
  box-sizing:border-box!important;
  width:100%!important;
  min-height:86px!important;
  padding:0 7vw!important;
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:24px!important;
  background:#fff!important;
  border-bottom:1px solid rgba(0,0,0,.08)!important;
  position:relative!important;
  z-index:9999!important;
  font-family:"Barlow Condensed","Inter",Arial,sans-serif!important;
  box-shadow:0 8px 22px rgba(0,0,0,.05)!important;
}

/* Se una pagina ha già #stageoHeaderUnified e sotto resta un vecchio .site-header, lo nasconde subito */
body:has(#stageoHeaderUnified) #stageoHeaderUnified ~ .site-header,
body:has(.stageo-main-header) .stageo-main-header ~ .site-header,
body:has(#stageoHeaderUnified) #stageoHeaderUnified ~ .stageo-header,
body:has(.stageo-main-header) .stageo-main-header ~ .stageo-header{
  display:none!important;
}

#stageoHeaderUnified *,
.stageo-main-header *{
  box-sizing:border-box!important;
}

#stageoHeaderUnified .stageo-logo,
.stageo-main-header .stageo-logo{
  display:flex!important;
  align-items:center!important;
  flex:0 0 auto!important;
  text-decoration:none!important;
}

#stageoHeaderUnified .stageo-logo img,
.stageo-main-header .stageo-logo img{
  display:block!important;
  height:70px!important;
  max-height:70px!important;
  width:auto!important;
  object-fit:contain!important;
}

#stageoHeaderUnified .stageo-nav,
.stageo-main-header .stageo-nav{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:22px!important;
  flex:1 1 auto!important;
  white-space:nowrap!important;
}

#stageoHeaderUnified .stageo-nav a,
.stageo-main-header .stageo-nav a{
  position:relative!important;
  display:inline-flex!important;
  align-items:center!important;
  min-height:86px!important;
  color:#101820!important;
  text-decoration:none!important;
  font-size:18px!important;
  line-height:1!important;
  font-weight:900!important;
  letter-spacing:.045em!important;
  text-transform:uppercase!important;
}

#stageoHeaderUnified .stageo-nav a.active,
.stageo-main-header .stageo-nav a.active{
  color:var(--stageo-orange)!important;
}

#stageoHeaderUnified .stageo-nav a.active::after,
.stageo-main-header .stageo-nav a.active::after{
  content:""!important;
  position:absolute!important;
  left:0!important;
  right:0!important;
  bottom:0!important;
  height:2px!important;
  background:var(--stageo-orange)!important;
}

#stageoHeaderUnified .stageo-quote,
.stageo-main-header .stageo-quote{
  flex:0 0 auto!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-height:58px!important;
  padding:0 28px!important;
  background:var(--stageo-orange)!important;
  color:#fff!important;
  text-decoration:none!important;
  font-size:18px!important;
  font-weight:900!important;
  letter-spacing:.04em!important;
  text-transform:uppercase!important;
  border-radius:0!important;
}

#stageoHeaderUnified .stageo-menu,
.stageo-main-header .stageo-menu{
  display:none!important;
  border:0!important;
  background:var(--stageo-orange)!important;
  color:#fff!important;
  width:48px!important;
  height:48px!important;
  border-radius:8px!important;
  font-size:24px!important;
  font-weight:900!important;
  cursor:pointer!important;
}

@media(max-width:1180px){
  #stageoHeaderUnified,
  .stageo-main-header{
    padding:14px 24px!important;
    flex-wrap:wrap!important;
    min-height:auto!important;
  }
  #stageoHeaderUnified .stageo-menu,
  .stageo-main-header .stageo-menu{
    display:block!important;
    order:3!important;
  }
  #stageoHeaderUnified .stageo-quote,
  .stageo-main-header .stageo-quote{
    order:2!important;
    margin-left:auto!important;
    min-height:48px!important;
    padding:0 18px!important;
    font-size:15px!important;
  }
  #stageoHeaderUnified .stageo-nav,
  .stageo-main-header .stageo-nav{
    order:4!important;
    width:100%!important;
    flex:0 0 100%!important;
    display:none!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:8px!important;
    padding:12px!important;
    background:#071014!important;
  }
  #stageoHeaderUnified .stageo-nav.open,
  .stageo-main-header .stageo-nav.open{
    display:grid!important;
  }
  #stageoHeaderUnified .stageo-nav a,
  .stageo-main-header .stageo-nav a{
    min-height:44px!important;
    justify-content:center!important;
    background:rgba(255,255,255,.06)!important;
    color:#fff!important;
    font-size:15px!important;
    padding:0 8px!important;
  }
  #stageoHeaderUnified .stageo-nav a.active::after,
  .stageo-main-header .stageo-nav a.active::after{
    display:none!important;
  }
}

@media(max-width:640px){
  #stageoHeaderUnified .stageo-logo img,
  .stageo-main-header .stageo-logo img{
    height:54px!important;
  }
  #stageoHeaderUnified .stageo-quote,
  .stageo-main-header .stageo-quote{
    width:100%!important;
    order:5!important;
  }
  #stageoHeaderUnified .stageo-nav,
  .stageo-main-header .stageo-nav{
    grid-template-columns:1fr!important;
  }
}
