/* Language selector occupies the former header availability button position. */
.ag-header .ag-nav .ag-language-switch,
.site-header .nav .ag-language-switch{display:flex!important;align-items:center;justify-content:center;gap:9px;margin-left:12px;white-space:nowrap;flex-shrink:0;visibility:visible!important;opacity:1!important;position:relative;z-index:10}
.ag-header .ag-nav .ag-language-switch a,
.site-header .nav .ag-language-switch a{display:inline-block;font:700 12px/1.3 Arial,sans-serif;letter-spacing:.06em;text-decoration:none;color:inherit;opacity:.7;padding:7px 3px;border-bottom:2px solid transparent}
.ag-header .ag-nav .ag-language-switch a.is-active,
.site-header .nav .ag-language-switch a.is-active{opacity:1;border-bottom-color:#b77c4b}
.ag-header .ag-nav .ag-language-switch a:hover,
.site-header .nav .ag-language-switch a:hover{opacity:1}
@media(max-width:900px){.ag-header .ag-nav .ag-language-switch,.site-header .nav .ag-language-switch{margin-left:4px;gap:6px}}

/* V15: lingua sopra il logo, allineamento condiviso tra tutte le pagine */
.ag-header .ag-header-inner{position:relative;padding-top:36px!important;align-items:center!important;gap:clamp(8px,1.2vw,18px)!important}
.ag-header .ag-header-inner>.ag-language-switch{position:absolute!important;top:6px;left:clamp(12px,2.7vw,38px);display:flex!important;align-items:center;gap:12px;margin:0!important;z-index:90;white-space:nowrap}
.ag-header .ag-header-inner>.ag-language-switch a{font:700 12px/1.4 Arial,sans-serif;color:#722a1b;padding:3px 4px;border-bottom:2px solid transparent;text-decoration:none;opacity:.72}
.ag-header .ag-header-inner>.ag-language-switch a.is-active{opacity:1;border-bottom-color:#b88744}
.ag-header .ag-nav{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;column-gap:clamp(8px,1.1vw,17px);row-gap:9px;min-width:0}
.ag-header .ag-nav>a{white-space:nowrap;line-height:1.35;text-align:center}
.ag-header .ag-nav>a.ag-top-cta{display:none!important}
.ag-header .ag-brand{flex-shrink:1;min-width:0}
.ag-header .ag-brand-text strong{font-size:clamp(21px,2vw,35px)}
.ag-header .ag-header-contacts{box-sizing:border-box}
main .ag-content-container,main .ag-section-inner,main .ag-page-content{max-width:100%;box-sizing:border-box}
main p,main li{overflow-wrap:break-word}
@media(max-width:1100px){.ag-header .ag-header-inner{padding-top:34px!important}.ag-header .ag-header-inner>.ag-language-switch{left:18px}}
@media(max-width:780px){.ag-header .ag-header-inner{padding-top:38px!important}.ag-header .ag-nav{display:none;flex-direction:column;align-items:stretch;gap:0}.ag-header .ag-nav.open{display:flex}.ag-header .ag-nav>a{text-align:left;white-space:normal}.ag-header .ag-header-inner>.ag-language-switch{top:7px;left:15px}}

/* V16 — language and phone row aligned under the menu, above the logo */
.ag-header .ag-header-inner{position:relative!important;padding-top:54px!important}
.ag-header .ag-header-inner>.ag-header-topbar{
 position:absolute!important;top:7px!important;left:clamp(14px,2.7vw,38px)!important;
 right:clamp(14px,2.7vw,38px)!important;display:flex!important;
 align-items:center!important;justify-content:flex-start!important;gap:24px!important;
 z-index:100!important;min-height:34px!important;flex-wrap:wrap!important;
}
.ag-header .ag-header-topbar>.ag-language-switch{
 position:static!important;display:flex!important;align-items:center!important;
 gap:9px!important;margin:0!important;flex:none!important;white-space:nowrap!important;
}
.ag-header .ag-header-topbar>.ag-language-switch a{
 display:inline-flex!important;align-items:center!important;justify-content:center!important;
 min-width:32px!important;min-height:28px!important;padding:5px 9px!important;
 font:700 13px/1.2 Arial,sans-serif!important;letter-spacing:.07em!important;
 color:#783b28!important;text-decoration:none!important;opacity:.83!important;
 background:rgba(255,255,255,.42)!important;border:1px solid rgba(125,70,44,.28)!important;
 border-radius:4px!important;box-sizing:border-box!important;
}
.ag-header .ag-header-topbar>.ag-language-switch a.is-active{
 opacity:1!important;color:#fff!important;background:#823c29!important;border-color:#823c29!important;
}
.ag-header .ag-header-topbar>.ag-language-switch a:hover{opacity:1!important;border-color:#823c29!important}
.ag-header .ag-header-topbar>.ag-header-contacts{
 display:flex!important;align-items:center!important;gap:17px!important;
 position:static!important;margin:0!important;padding:0!important;width:auto!important;
 background:transparent!important;box-shadow:none!important;flex-wrap:wrap!important;
}
.ag-header .ag-header-topbar>.ag-header-contacts a{white-space:nowrap!important}
@media(max-width:780px){
 .ag-header .ag-header-inner{padding-top:84px!important}
 .ag-header .ag-header-inner>.ag-header-topbar{top:5px!important;gap:5px 14px!important}
 .ag-header .ag-header-topbar>.ag-header-contacts{gap:5px 13px!important}
 .ag-header .ag-header-topbar>.ag-language-switch a{padding:4px 7px!important;min-width:29px!important}
}

/* V17 — beneath menu: IT/EN/ES under Home, phone numbers under Contatti */
@media(min-width:781px){
 .ag-header .ag-header-inner{padding-top:12px!important;padding-bottom:54px!important}
 .ag-header .ag-header-inner>.ag-header-topbar{
  top:auto!important;left:auto;right:auto;justify-content:space-between!important;
  flex-wrap:nowrap!important;gap:16px!important;min-height:30px!important;
 }
 .ag-header .ag-header-topbar>.ag-header-contacts{
  margin-left:auto!important;justify-content:flex-end!important;flex-wrap:nowrap!important;
 }
}
@media(max-width:780px){
 .ag-header .ag-header-inner>.ag-header-topbar{
  left:14px!important;right:14px!important;justify-content:space-between!important;
 }
 .ag-header .ag-header-topbar>.ag-header-contacts{margin-left:auto!important}
}

/* V18: the measured bar spans exactly from Home's H to Contatti's final i. */
@media(min-width:781px){
 .ag-header .ag-header-inner>.ag-header-topbar{box-sizing:border-box!important;padding:0!important;margin:0!important;max-width:none!important;transform:none!important;flex-wrap:nowrap!important}
 .ag-header .ag-header-topbar>.ag-header-contacts{margin-left:auto!important;margin-right:0!important;justify-content:flex-end!important}
 .ag-header .ag-header-inner{padding-bottom:67px!important}
}

/* V19: align against the actual navigation box, not the viewport/header. */
@media (min-width:781px){
 .ag-header .ag-nav{position:relative!important;overflow:visible!important}
 .ag-header .ag-nav>.ag-header-topbar{
  position:absolute!important;top:calc(100% + 13px)!important;
  left:0!important;right:0!important;width:100%!important;
  box-sizing:border-box!important;padding:0!important;margin:0!important;
  display:flex!important;align-items:center!important;
  justify-content:space-between!important;gap:12px!important;
  flex-wrap:nowrap!important;min-height:30px!important;
  transform:none!important;z-index:110!important;
 }
 .ag-header .ag-nav>.ag-header-topbar>.ag-header-contacts{
  margin-left:auto!important;margin-right:0!important;
  display:flex!important;justify-content:flex-end!important;
  flex-wrap:nowrap!important;white-space:nowrap!important;
 }
 .ag-header .ag-header-inner{padding-bottom:66px!important}
}
@media (max-width:780px){
 .ag-header .ag-nav>.ag-header-topbar{position:static!important;width:100%!important;
  display:flex!important;justify-content:space-between!important;gap:8px!important;
  flex-wrap:wrap!important;margin-top:12px!important}
 .ag-header .ag-nav>.ag-header-topbar>.ag-header-contacts{margin-left:auto!important}
}

@media(max-width:780px){.ag-header .ag-header-inner>.ag-header-topbar{top:5px!important;left:14px!important;right:14px!important;width:auto!important}}

/* V20: header ends immediately below the language and telephone row. */
@media (min-width:781px){
 .ag-header .ag-header-inner{padding-bottom:42px!important;}
 .ag-header .ag-nav>.ag-header-topbar{top:calc(100% + 7px)!important;}
}

/* V21: eliminate the unused bottom space beneath the language row. */
@media (min-width:781px){
 .ag-header .ag-header-inner{padding-bottom:0!important;}
 .ag-header .ag-nav>.ag-header-topbar{top:calc(100% + 5px)!important;}
}
