@media screen and (max-width: 1024px) {
  /* Compact, complete mobile navigation */
  #main-menu.opened {
    min-height: 100dvh;
    height: 100dvh;
  }

  #main-menu.opened .box-menu {
    display: block;
    height: calc(100dvh - 5.5rem);
    margin-top: 5.5rem !important;
    margin-bottom: 0 !important;
    padding: 0 .8rem 1rem;
    box-sizing: border-box;
    overflow-y: auto !important;
  }

  .box-menu .center-vertical {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
  }

  .box-menu .last-box-menu {
    order: 1;
    width: 100%;
    padding: .35rem .4rem .6rem;
    box-sizing: border-box;
  }

  .box-menu ul.right-menu {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .45rem;
    margin: 0 0 .65rem;
  }

  .box-menu ul.right-menu li a {
    display: flex;
    align-items: center;
    min-height: 2.75rem;
    padding: .5rem .7rem;
    border: 1px solid rgba(0, 0, 0, .28);
    border-radius: .65rem;
    font-size: 1.15rem;
    line-height: 1.05;
    box-sizing: border-box;
  }

  .box-menu .left-menu {
    order: 2;
    width: 100%;
    margin-top: 0;
    padding: .25rem .4rem 0;
    box-sizing: border-box;
  }

  .box-menu .left-menu ul:first-child {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .1rem 1rem;
    width: 100%;
    float: none;
    margin: 0;
    padding: .55rem 0;
    border-top: 1px solid rgba(0, 0, 0, .25);
    border-bottom: 1px solid rgba(0, 0, 0, .25);
  }

  .box-menu .left-menu ul:first-child li a,
  .box-menu .left-menu > ul:nth-child(2) li a {
    padding: .35rem 0;
    font-size: .98rem;
    line-height: 1.15;
  }

  .box-menu .left-menu > ul:nth-child(2) {
    width: auto;
    float: left;
    margin: .45rem 0 0;
    padding: 0;
  }

  .box-menu .menu-video {
    display: block;
    clear: both;
    width: 100%;
    padding-top: .75rem;
  }

  .box-menu .menu-video .block-type-video {
    float: none;
    width: 100%;
    height: 9.5rem;
    overflow: hidden;
    border-radius: .65rem;
  }

  .box-menu .menu-video figure {
    width: 100%;
    max-width: none;
    height: 100%;
    margin: 0;
  }

  .box-menu .menu-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .box-menu .menu-video-button {
    left: .75rem;
    bottom: .75rem;
  }

  .box-menu ul.languages {
    position: static;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    float: none;
    margin: .45rem 0 .1rem;
    padding: .65rem 0 0;
    border-top: 1px solid rgba(0, 0, 0, .25);
    box-sizing: border-box;
  }

  .box-menu ul.languages-desktop {
    display: none;
  }

  .box-menu ul.languages-mobile {
    display: flex !important;
    clear: both;
  }

  .box-menu ul.languages li {
    margin-right: 0;
    margin-left: .65rem;
  }

  .box-menu ul.languages li:first-child {
    margin-left: 0;
  }

  .box-menu ul.languages li::after {
    margin-left: .65rem;
  }

  .box-menu ul.languages li.active a {
    color: var(--color-text);
    font-weight: 700;
    text-decoration: underline;
  }


  .box-menu .center-vertical { flex-wrap: nowrap; }
  .box-menu ul.right-menu li a { margin-bottom: 0; }
  .box-menu .left-menu ul { padding-right: 0; }
  .box-menu .left-menu li { margin-bottom: 0; }
  .box-menu ul.languages { margin-left: 0; }
  .whatsapp-button { z-index: 91; }
}

@media screen and (min-width: 568px) and (max-width: 1024px) and (max-height: 600px) {
  #main-menu.opened .box-menu { margin-top: 4.5rem !important; height: calc(100dvh - 4.5rem); }
  .box-menu .center-vertical { flex-direction: row; gap: 1rem; }
  .box-menu .last-box-menu { width: 45%; }
  .box-menu .left-menu { width: 55%; }
  .box-menu ul.right-menu li a { min-height: 2.4rem; font-size: 1rem; padding: .4rem .55rem; }
  .box-menu .menu-video .block-type-video { height: 7rem; }
}
