/* v39 — Shared accessible mobile navigation, IT/EN and all sections.
   The toggle script uses .is-open; old templates also used .open.
   Keep one consistent mobile breakpoint (900px) across scripts and CSS. */
@media (max-width: 900px) {
  body > header.topbar {
    position: relative;
    z-index: 1000;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    min-height: 70px;
    height: 70px;
    overflow: visible;
  }
  body > header.topbar .logo {
    flex: 0 1 auto;
    min-width: 0;
  }
  body > header.topbar button.menu-btn {
    display: inline-flex !important;
    flex: 0 0 auto;
    justify-content: center;
    align-items: center;
    min-width: 44px;
    min-height: 44px;
    margin-left: auto;
    cursor: pointer;
  }
  body > header.topbar nav#nav {
    display: none !important;
    position: absolute !important;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    max-height: calc(100vh - 70px);
    max-height: calc(100dvh - 70px);
    overflow-y: auto;
    box-sizing: border-box;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 24px 22px;
    background: #f3f1eb;
    border-bottom: 1px solid rgba(35, 48, 48, .18);
    box-shadow: 0 18px 32px rgba(15, 26, 26, .16);
    z-index: 1001;
  }
  body > header.topbar nav#nav.is-open:not([hidden]),
  body > header.topbar nav#nav.open:not([hidden]) {
    display: flex !important;
  }
  body > header.topbar nav#nav[hidden],
  body > header.topbar.nav-link-dismissed nav#nav {
    display: none !important;
  }
  body > header.topbar nav#nav a {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 14px 0;
    white-space: normal;
    line-height: 1.5;
    text-align: left;
    border-bottom: 1px solid rgba(35, 48, 48, .10);
  }
  body > header.topbar nav#nav a:last-child { border-bottom: 0; }
  body > header.topbar nav#nav a.nav-contact {
    border: 0;
    border-bottom: 1px solid rgba(35, 48, 48, .10);
    padding: 14px 0;
    background: transparent;
    color: inherit;
  }
  body > header.topbar nav#nav a.lang {
    border-left: 0;
    padding-left: 0;
  }
}

@media (min-width: 901px) {
  body > header.topbar button.menu-btn { display: none !important; }
  body > header.topbar nav#nav {
    display: flex !important;
    position: static !important;
    overflow: visible;
    max-height: none;
  }
}
