/* FatturatoAziende Release 15.1: full-width, minimal navigation and anchored mega panels. */
.fa14-header .fa14-header-main{box-sizing:border-box;width:100%!important;max-width:none!important;margin:0!important;padding-inline:clamp(12px,1.6vw,28px)!important;gap:clamp(18px,2.2vw,40px);justify-content:space-between}
.fa14-header .fa14-brand{min-width:0;flex:0 0 auto}
.fa14-header .fa14-brand img{width:clamp(189px,16vw,233px);height:auto}
.fa14-header .fa14-nav{flex:0 1 auto;margin-left:auto;justify-content:flex-end;gap:8px}
.fa14-header .fa14-header-end{display:none!important}
/* The links have no pill or card backgrounds: a fine accent rule is the only state marker. */
.fa14-header .fa14-search-link,
.fa14-header .fa14-primary-link{
  min-height:72px;
  border-radius:0!important;
  background:transparent!important;
  color:#1c4057!important;
  font-size:clamp(13px,.96vw,15px);
  font-weight:640;
  transition:color .18s ease;
}
.fa14-header .fa14-search-link:hover,
.fa14-header .fa14-search-link.fa14-active,
.fa14-header .fa14-primary-link:hover,
.fa14-header .fa14-primary-link.fa14-active,
.fa14-header .fa14-menu-item[data-fa14-open="true"] .fa14-primary-link{color:#06799c!important;background:transparent!important}
.fa14-header .fa14-search-link::after,
.fa14-header .fa14-primary-link::after{
  left:8px;right:8px;bottom:0;height:2px;border-radius:2px;background:#0ba5b4;
  transition:opacity .18s ease;
}
.fa14-header .fa14-search-link:hover::after,
.fa14-header .fa14-search-link.fa14-active::after,
.fa14-header .fa14-primary-link:hover::after,
.fa14-header .fa14-primary-link.fa14-active::after,
.fa14-header .fa14-menu-item[data-fa14-open="true"] .fa14-primary-link::after{opacity:1}
.fa14-header .fa14-expand{background:transparent!important;color:#597c8c;border:0;border-radius:0;min-width:24px}
/* Dropdowns sit DIRECTLY beneath the right-aligned navigation, not at the page center. */
.fa14-header .fa14-mega{
  left:auto;right:clamp(12px,1.6vw,28px);top:calc(100% - 1px);
  transform:none;width:min(1000px,calc(100vw - 32px));max-width:none;
  border-radius:0 0 18px 18px;padding:21px;gap:16px;
  box-shadow:0 23px 52px rgba(15,51,77,.15);
  animation:fa151-menu-enter .18s ease-out both;
}
@keyframes fa151-menu-enter{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:1100px) and (min-width:991px){
  .fa14-header .fa14-mega{width:min(910px,calc(100vw - 24px));padding:15px;gap:11px}
}
@media(max-width:990px){
  .fa14-header .fa14-header-main{gap:12px;min-height:73px}
  .fa14-header .fa14-brand{order:0}
  .fa14-header .fa14-nav{display:none;flex:1 0 100%;margin-left:0;justify-content:stretch;order:2}
  .fa14-header[data-fa14-mobile-open="true"] .fa14-nav{display:flex}
  .fa14-header .fa14-mobile-toggle{display:flex;margin-left:auto;background:transparent;border:1px solid #d4e7ed;order:1}
  .fa14-header .fa14-brand img{width:200px}
  .fa14-header .fa14-search-link,.fa14-header .fa14-primary-link{min-height:48px;font-size:15px}
  .fa14-header .fa14-search-link::after,.fa14-header .fa14-primary-link::after{display:block;left:11px;right:auto;width:38px;bottom:2px}
  .fa14-header .fa14-mega{
    position:static;left:auto;right:auto;top:auto;transform:none!important;
    width:100%;max-width:100%;padding:12px;gap:11px;border-radius:15px;
    animation:none!important;box-shadow:none;
  }
}
@media(max-width:430px){.fa14-header .fa14-header-main{padding-inline:12px!important}.fa14-header .fa14-brand img{width:172px}}
@media(prefers-reduced-motion:reduce){.fa14-header .fa14-mega{animation:none!important}}

/* R19 access entry */
.fa14-nav .fa19-header-access{border:1px solid #c2dce5;border-radius:11px;padding:10px 13px;color:#0d648a;text-decoration:none;font-size:12px;font-weight:800;white-space:nowrap;background:#f7fbfd}.fa14-nav .fa19-header-access:hover{background:#e8f8fc}
@media(max-width:1000px){.fa14-nav .fa19-header-access{display:none}}
