/* StockItaliaExpress - pilota mobile UI. Caricato per ultimo: non cambia funzioni o moduli. */
@media (max-width: 900px) {
  html, body { max-width: 100%; overflow-x: clip; }
  body { padding-bottom: 72px !important; }

  .site-header .header-inner {
    min-height: 126px !important;
    padding: 20px 20px !important;
    gap: 14px !important;
  }
  .site-header .logo,
  .site-header .brand,
  .site-header .site-logo { min-width: 0 !important; max-width: calc(100% - 82px) !important; }
  .site-header .logo img,
  .site-header .brand img,
  .site-header .site-logo img {
    display: block !important;
    width: min(480px, 100%) !important;
    height: auto !important;
    max-height: 78px !important;
    object-fit: contain !important;
    object-position: left center !important;
  }
  .site-header .mobile-toggle,
  .site-header .menu-toggle,
  .site-header [aria-controls*="menu"] {
    width: 62px !important;
    min-width: 62px !important;
    height: 62px !important;
    border-radius: 18px !important;
  }

  .language-switcher,
  .language-bar,
  .sie-language-bar,
  .lang-switcher {
    min-width: 0 !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
  }
  .language-switcher::-webkit-scrollbar,
  .language-bar::-webkit-scrollbar,
  .sie-language-bar::-webkit-scrollbar,
  .lang-switcher::-webkit-scrollbar { display: none; }

  .page-hero,
  .hero,
  main > section:first-of-type { min-width: 0 !important; }
  .page-hero .container,
  .hero .container { min-width: 0 !important; padding-left: 24px !important; padding-right: 24px !important; }
  .page-hero h1,
  .hero h1 {
    max-width: 100% !important;
    font-size: clamp(2.35rem, 10.5vw, 3.55rem) !important;
    line-height: 1.03 !important;
    letter-spacing: -0.045em !important;
    overflow-wrap: break-word !important;
    text-wrap: balance;
  }
  .page-hero p,
  .hero p {
    max-width: 100% !important;
    font-size: clamp(1.08rem, 4.7vw, 1.38rem) !important;
    line-height: 1.55 !important;
    overflow-wrap: break-word !important;
  }

  .sie-mobile-contactbar {
    left: 8px !important;
    right: 8px !important;
    bottom: max(7px, env(safe-area-inset-bottom)) !important;
    z-index: 9998 !important;
    gap: 7px !important;
    padding: 6px !important;
    border-radius: 19px !important;
    border-width: 1px !important;
    box-shadow: 0 10px 28px rgba(2, 18, 43, .22) !important;
  }
  .sie-mobile-contactbar a {
    min-height: 50px !important;
    height: 50px !important;
    padding: 0 10px !important;
    border-radius: 15px !important;
    font-size: 15px !important;
    line-height: 1 !important;
    gap: 7px !important;
  }
  .sie-mobile-contactbar svg,
  .sie-mobile-contactbar img { width: 19px !important; height: 19px !important; }

  body.menu-open .sie-mobile-contactbar,
  body.drawer-open .sie-mobile-contactbar,
  body.nav-open .sie-mobile-contactbar,
  body.mobile-menu-open .sie-mobile-contactbar,
  body:has(.mobile-drawer[aria-hidden="false"]) .sie-mobile-contactbar,
  body:has(.mobile-menu.is-open) .sie-mobile-contactbar { display: none !important; }
}

@media (max-width: 420px) {
  .site-header .header-inner { min-height: 112px !important; padding: 16px !important; }
  .site-header .mobile-toggle,
  .site-header .menu-toggle,
  .site-header [aria-controls*="menu"] {
    width: 58px !important;
    min-width: 58px !important;
    height: 58px !important;
    border-radius: 17px !important;
  }
  .page-hero .container,
  .hero .container { padding-left: 20px !important; padding-right: 20px !important; }
  .page-hero h1,
  .hero h1 { font-size: clamp(2.15rem, 10.6vw, 2.9rem) !important; }
}