/* Header GAL — rispetta l'header Divi esistente e non interviene nel builder */
:root{--gal-head-ink:#073d37;--gal-head-line:#e8eee9}
body:not(.et-fb) .et-l--header,
body:not(.et-fb) #main-header {position:sticky!important;top:0;z-index:99998!important;background:#fff!important;box-shadow:0 1px 0 var(--gal-head-line)!important;transition:box-shadow .25s ease,background .25s ease}
body.admin-bar:not(.et-fb) .et-l--header,body.admin-bar:not(.et-fb) #main-header{top:32px}
body:not(.et-fb) .et-l--header .et_pb_section{padding-top:4px!important;padding-bottom:4px!important;transition:padding .25s ease}
body:not(.et-fb) .et-l--header .et_pb_row{padding-top:5px!important;padding-bottom:5px!important;min-height:0!important;transition:padding .25s ease}
body:not(.et-fb) .et-l--header .gal-nav{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:26px!important;flex-wrap:nowrap!important;min-height:66px;transition:min-height .25s ease}
body:not(.et-fb) .et-l--header .gal-nav nav{display:flex;align-items:center;justify-content:flex-end;gap:clamp(12px,1.35vw,23px);flex-wrap:wrap}
body:not(.et-fb) .et-l--header .gal-nav nav a{font-family:inherit!important;font-size:13px!important;font-weight:600!important;white-space:nowrap;color:var(--gal-head-ink)!important;margin:0!important;text-decoration:none!important}
body:not(.et-fb) .et-l--header .gal-logo{display:block;width:auto!important;max-width:172px!important;max-height:58px!important;object-fit:contain;transition:max-height .25s ease,max-width .25s ease}
body.gal-header-scrolled:not(.et-fb) .et-l--header,body.gal-header-scrolled:not(.et-fb) #main-header{box-shadow:0 5px 24px rgba(8,43,37,.09)!important}
body.gal-header-scrolled:not(.et-fb) .et-l--header .et_pb_section{padding-top:0!important;padding-bottom:0!important}
body.gal-header-scrolled:not(.et-fb) .et-l--header .et_pb_row{padding-top:2px!important;padding-bottom:2px!important}
body.gal-header-scrolled:not(.et-fb) .et-l--header .gal-nav{min-height:47px}
body.gal-header-scrolled:not(.et-fb) .et-l--header .gal-logo{max-height:42px!important;max-width:135px!important}
/* Supporta anche l'header classico, se non è attivo un Theme Builder header */
body.gal-header-scrolled:not(.et-fb) #main-header #logo{max-height:46px!important}
body.gal-header-scrolled:not(.et-fb) #main-header .container{min-height:54px!important}
@media(max-width:980px){
  body:not(.et-fb) .et-l--header .gal-nav{flex-wrap:wrap!important;min-height:62px;gap:8px!important}
  body:not(.et-fb) .et-l--header .gal-nav nav{gap:12px;justify-content:flex-start}
  body:not(.et-fb) .et-l--header .gal-nav nav a{font-size:12px!important}
  body.gal-header-scrolled:not(.et-fb) .et-l--header .gal-nav{min-height:48px}
}
@media(max-width:782px){body.admin-bar:not(.et-fb) .et-l--header,body.admin-bar:not(.et-fb) #main-header{top:46px}}
@media(max-width:600px){body.admin-bar:not(.et-fb) .et-l--header,body.admin-bar:not(.et-fb) #main-header{top:0}}
@media(prefers-reduced-motion:reduce){body:not(.et-fb) .et-l--header *,body:not(.et-fb) #main-header *{transition:none!important}}
