/* Ada Negri 1.31.1 — social in primo piano e menu leggibile.
   Ultimo foglio CSS; migliora l'header senza modificare le rotte o i collegamenti. */
@media (min-width:1181px) {
  /* Logo centrale invariato; area social a destra, con respiro per le icone illustrate. */
  body .an-site-header .an-wrap.an-nav {
    row-gap:12px!important;
    padding-bottom:18px!important;
  }
  body .an-site-header .an-header-social {
    grid-column:3!important;grid-row:1!important;
    position:relative!important;
    display:grid!important;
    grid-template-columns:minmax(92px,1fr) repeat(2,72px)!important;
    align-items:center!important;justify-content:stretch!important;
    justify-self:end!important;
    width:fit-content!important;max-width:100%!important;min-width:0!important;
    min-height:112px!important;height:auto!important;
    gap:8px!important;margin:0!important;padding:12px 14px 10px!important;
    border:1px solid #e7dcbf!important;border-radius:26px!important;
    background:linear-gradient(125deg,#fffaf0,#fff 57%,#f0f8ff)!important;
    box-shadow:0 9px 26px rgba(20,62,110,.09),inset 0 1px rgba(255,255,255,.85)!important;
    overflow:visible!important;z-index:3!important;
  }
  body .an-site-header .an-header-social::before {
    content:'✦'!important;display:block!important;
    position:absolute!important;right:12px;top:-12px!important;
    color:#eaa923!important;font-size:1.45rem!important;line-height:1!important;
    filter:drop-shadow(0 2px 2px rgba(125,73,4,.13));pointer-events:none!important;
  }
  body .an-site-header .an-header-social::after{content:none!important;display:none!important}
  body .an-site-header .an-header-social-copy {
    display:flex!important;flex-direction:column!important;
    justify-content:center!important;align-items:flex-start!important;
    gap:3px!important;width:auto!important;min-width:0!important;
    max-width:118px!important;margin:0!important;padding:0!important;
  }
  body .an-site-header .an-header-social .an-header-social-kicker{
    display:block!important;color:#12794f!important;white-space:normal!important;
    font-size:.72rem!important;line-height:1.3!important;
    letter-spacing:.085em!important;font-weight:950!important;
  }
  body .an-site-header .an-header-social .an-header-social-title{
    display:block!important;max-width:none!important;color:#124784!important;
    font-family:var(--an-display)!important;font-size:1.28rem!important;
    line-height:1.06!important;letter-spacing:-.015em!important;
    font-weight:700!important;white-space:normal!important;
  }
  body .an-site-header .an-header-social .an-header-social-subtitle{
    display:block!important;max-width:12ch!important;color:#52677c!important;
    font-size:.75rem!important;line-height:1.25!important;font-weight:750!important;
  }
  body .an-site-header .an-header-social .an-header-social-link{
    display:flex!important;flex-direction:column!important;
    justify-content:center!important;align-items:center!important;
    gap:3px!important;position:relative!important;
    width:72px!important;min-width:72px!important;max-width:72px!important;
    height:88px!important;min-height:88px!important;flex:0 0 auto!important;
    margin:0!important;padding:4px 4px 5px!important;
    border:1px solid transparent!important;border-radius:18px!important;
    background:transparent!important;box-shadow:none!important;
    text-decoration:none!important;opacity:1!important;
    transform:none!important;transition:transform .2s ease,background-color .2s ease,box-shadow .2s ease!important;
  }
  body .an-site-header .an-header-social .an-header-social-link img{
    display:block!important;width:64px!important;height:64px!important;
    max-width:64px!important;min-width:0!important;object-fit:contain!important;
    filter:drop-shadow(0 4px 3px rgba(11,64,135,.10));
  }
  body .an-site-header .an-header-social .an-header-social-link span{
    display:block!important;color:#1a477c!important;
    font-size:.72rem!important;line-height:1.1!important;font-weight:900!important;
  }
  body .an-site-header .an-header-social .an-header-social-link:hover{
    transform:translateY(-3px) rotate(-2deg)!important;
    background:#f1f8ff!important;border-color:#d5e9ff!important;
    box-shadow:0 7px 16px rgba(20,64,119,.09)!important;
  }
  body .an-site-header .an-header-social .an-header-social-link:focus-visible{
    outline:3px solid #f0ad37!important;outline-offset:3px!important;
  }
  /* Voci più grandi: la griglia mantiene le 9 etichette allineate. */
  body .an-site-header .an-main-menu{
    display:grid!important;grid-template-columns:repeat(9,max-content)!important;
    justify-content:center!important;align-items:center!important;
    width:100%!important;max-width:100%!important;
    gap:10px!important;overflow:visible!important;
    margin:0!important;padding:0!important;
  }
  body .an-site-header .an-main-menu>li{margin:0!important;min-width:0!important}
  body .an-site-header .an-main-menu>li>a,
  body .an-site-header .an-main-menu>li:not(.menu-item-cta)>a {
    display:inline-flex!important;align-items:center!important;justify-content:center!important;
    font-family:var(--an-body)!important;font-size:1rem!important;font-weight:900!important;
    line-height:1.12!important;white-space:nowrap!important;
    min-height:56px!important;padding:12px 15px!important;gap:8px!important;
    border-radius:999px!important;
  }
  body .an-site-header .an-main-menu>li>a::before,
  body .an-site-header .an-main-menu>li.menu-item-cta>a::before{
    width:27px!important;height:27px!important;flex:0 0 27px!important;
    background-size:contain!important;background-position:center!important;
  }
  body .an-site-header .an-main-menu>li.menu-item-cta>a{
    min-height:58px!important;padding:13px 18px!important;
    font-size:1rem!important;font-weight:900!important;
    box-shadow:0 8px 20px rgba(8,61,131,.16)!important;
  }
}
/* Su laptop di dimensioni intermedie due righe equilibrate: mai icone o scritte microscopiche. */
@media (min-width:1181px) and (max-width:1435px){
  body .an-site-header .an-main-menu {
    grid-template-columns:repeat(5,max-content)!important;
    gap:8px 14px!important;
  }
  body .an-site-header .an-header-social {
    grid-template-columns:minmax(87px,1fr) repeat(2,65px)!important;
    min-height:104px!important;padding:11px 12px 9px!important;
  }
  body .an-site-header .an-header-social .an-header-social-link {
    width:65px!important;min-width:65px!important;max-width:65px!important;
    height:82px!important;min-height:82px!important;
  }
  body .an-site-header .an-header-social .an-header-social-link img{
    width:58px!important;height:58px!important;max-width:58px!important;
  }
}
/* La navigazione tablet continua a usare il menu apribile esistente. */
@media (max-width:1180px){
  body .an-site-header .an-header-social{display:none!important}
}
/* La barra social mobile della home usa gli zainetti a dimensione leggibile. */
@media (max-width:980px){
  body .an-mobile-home-social .an-mobile-home-social-inner{
    padding:15px 16px!important;gap:13px!important;
    border-radius:24px!important;min-height:108px!important;
  }
  body .an-mobile-home-social-copy strong{font-size:1.1rem!important;line-height:1.15!important}
  body .an-mobile-home-social-kicker{font-size:.71rem!important}
  body .an-mobile-home-social-subtitle{font-size:.8rem!important;line-height:1.35!important}
  body .an-mobile-home-social-links{gap:8px!important}
  body .an-mobile-home-social-links a{min-width:67px!important;min-height:80px!important;font-size:.75rem!important;gap:5px!important}
  body .an-mobile-home-social-links img{width:55px!important;height:55px!important;max-width:55px!important}
  body .an-mobile-social-links a{min-height:66px!important;gap:10px!important;font-size:1rem!important}
  body .an-mobile-social-links img{width:44px!important;height:44px!important;max-width:44px!important}
}
@media (max-width:390px){
  body .an-mobile-home-social .an-mobile-home-social-inner{padding:12px!important;gap:8px!important}
  body .an-mobile-home-social-links a{min-width:55px!important;min-height:70px!important;font-size:.68rem!important}
  body .an-mobile-home-social-links img{width:46px!important;height:46px!important}
  body .an-mobile-home-social-copy strong{font-size:.97rem!important}
  body .an-mobile-home-social-subtitle{font-size:.7rem!important}
}
@media(prefers-reduced-motion:reduce){
  body .an-site-header .an-header-social .an-header-social-link{transition:none!important}
}
