/* ===========================================
   Menu Mobile Senzani
   Attivo solo sotto i 1024px
   =========================================== */

@media (max-width: 1024px) {

  /* ── Overlay fisso a tutto schermo ── */
  .mm-nav {
    position: fixed !important;
    inset: 0;
    z-index: 9999;
    background-color: #1c1918;
    color: #fff;
    overflow: hidden !important;
    font-family: inherit;

    /* nascosto di default */
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
  }

  .mm-nav.mm-nav--open {
    opacity: 1;
    pointer-events: auto;
  }

  /* ── Pannelli ── */
  .mm-panel {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 120px 24px 28px;
    list-style: none;
    margin: 0;
    background: #1c1918;

    transform: translateX(100%) !important;
    transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .mm-panel--active {
    transform: translateX(0) !important;
    z-index: 20;
  }

  /* pannello che scivola a sinistra quando si va più in profondità */
  .mm-panel--left {
    transform: translateX(-100%) !important;
  }

  /* ── Reset liste interne ai pannelli (previene bullet e padding browser) ── */
  .mm-panel ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100%;
  }

  .mm-panel li {
    list-style: none !important;
    width: 100%;
  }

  .mm-panel li::marker,
  .mm-panel li::before {
    content: '' !important;
    display: none !important;
  }

  /* ── Pulsante chiudi (X) ── */
  .mm-close {
    position: fixed !important;
    top: 20px !important;
    right: 20px !important;
    left: auto !important;
    z-index: 10002;
    background: none !important;
    border: none !important;
    color: #fff;
    cursor: pointer;
    padding: 4px;
    line-height: 0;
    display: block;
  }

  /* ── Riga generica (link o button) ── */
  .mm-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 16px 0;
    border: none;
    background: none;
    color: inherit;
    font: inherit;
    font-size: 15px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    text-align: left;
  }

  .mm-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  }

  .mm-item:first-child {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
  }

  /* ── Freccia destra (ha sottomenu) ── */
  .mm-chevron {
    display: inline-block;
    width: 9px;
    height: 9px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(-45deg);
    flex-shrink: 0;
  }

  /* ── Pulsante indietro ── */
  .mm-back {
    position: fixed !important;
    top: 20px !important;
    left: 24px !important;
    z-index: 10002;
    display: flex;
    align-items: center;
    gap: 10px;
    background: none;
    border: none;
    color: #fff;
    font: inherit;
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    padding: 4px;
    opacity: 0.6;
  }

  .mm-back-icon {
    display: inline-block;
    width: 9px;
    height: 9px;
    border-left: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    flex-shrink: 0;
  }

  /* ── Card settori ── */
  .mm-cards {
    display: flex;
    flex-direction: column;
  }

  .mm-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    text-decoration: none;
    color: inherit;
    font-size: 15px;
    gap: 16px;
  }

  .mm-card:first-child {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
  }

  .mm-card span {
    flex: 1;
    text-transform: uppercase;
    letter-spacing: 0.04em;
  }

  .mm-card--all {
    justify-content: flex-start;
    font-weight: 600;
    opacity: 0.7;
  }

  /* ── Footer root: search + lingue ── */
  .mm-footer {
    list-style: none !important;
    padding: 24px 0 0;
  }

  .mm-search {
    display: flex;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 999px;
    padding: 10px 16px;
    gap: 10px;
  }

  .mm-search__input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    color: #fff;
    font: inherit;
    font-size: 15px;
    letter-spacing: 0.04em;
  }

  .mm-search__input::placeholder {
    color: rgba(255, 255, 255, 0.5);
  }

  .mm-search__btn {
    background: none !important;
    border: none !important;
    cursor: pointer;
    color: inherit;
    padding: 0;
    line-height: 0;
    flex-shrink: 0;
  }

  .mm-footer--lang {
    display: flex;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    margin-top: 24px;
    flex-wrap: wrap;
  }

  .mm-lang {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 4px 0;
  }

  .mm-lang--active {
    color: #fff;
  }

  .mm-lang-sep {
    color: rgba(255, 255, 255, 0.3);
    padding: 0 8px;
    font-size: 12px;
  }

  .mm-card img {
    width: 72px;
    height: 56px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
  }

}
