.mm-header { position: relative; z-index: 50; background: #fff; color: var(--mm-ink); }
.home .mm-header { position: absolute; inset: 0 0 auto; background: transparent; color: #fff; }
/* Barra di amministrazione (utenti collegati): l'intestazione assoluta della home va sotto di lei. */
.admin-bar.home .mm-header { top: 32px; }
@media (max-width: 782px) {
  .admin-bar.home .mm-header { top: 46px; }
}

.mm-notice { background: var(--mm-yellow); color: #000; text-align: center; font-size: .8rem; text-transform: uppercase; padding: 6px var(--mm-gutter); }
.mm-notice p { margin: 0; }

.mm-topbar { background: var(--mm-charcoal); color: #fff; font-size: .8rem; }
.mm-topbar__inner { position: relative; display: flex; align-items: center; justify-content: center; min-height: 70px; }
.mm-topbar__shipping { margin: 0; color: var(--mm-sage); text-transform: uppercase; }
.mm-topbar .mm-langs { position: absolute; right: var(--mm-gutter); }

.mm-langs { display: flex; gap: 10px; list-style: none; margin: 0; padding: 0; }
.mm-langs a { text-decoration: none; }
.mm-langs a[aria-current] { color: var(--mm-sage); font-weight: 700; }

.mm-header__main { display: flex; align-items: center; gap: 30px; min-height: 90px; }
.mm-logo img { display: block; max-height: 52px; width: auto; }

.mm-nav { flex: 1; }
.mm-menu { display: flex; justify-content: center; gap: 20px; list-style: none; margin: 0; padding: 0; }
.mm-menu > li { position: relative; }
.mm-menu a { text-decoration: none; font: 600 .9rem var(--mm-sans); text-transform: uppercase; }
.mm-menu > li > a { display: block; padding-block: 10px; }
/* nowrap solo sul nav desktop: sotto i 1024px .mm-nav è nascosto e il drawer (.mm-drawer .mm-menu,
   selettore diverso) deve poter andare a capo sulle voci lunghe in una colonna stretta. */
.mm-nav .mm-menu > li > a { white-space: nowrap; }
.mm-nav .mm-menu .current-menu-item > a { text-decoration: underline; }
.mm-nav .mm-menu > .menu-item-has-children > a::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 6px; margin-bottom: 2px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); vertical-align: middle; }
.mm-menu .sub-menu { display: none; position: absolute; top: 100%; left: -16px; min-width: 240px; list-style: none; margin: 0; padding: 12px 16px; background: rgba(0, 0, 0, .8); }
.mm-menu li:hover > .sub-menu, .mm-menu li:focus-within > .sub-menu { display: block; }
.mm-menu .sub-menu a { display: block; padding: 6px 0; }
.mm-nav .mm-menu .sub-menu a { color: #fff; }

.mm-header__tools { display: flex; align-items: center; gap: 16px; }
.mm-search { display: flex; align-items: center; border-bottom: 1px solid currentColor; }
.mm-search input[type="search"] { width: 150px; padding: 4px 0; border: 0; background: transparent; color: inherit; font: .8rem var(--mm-sans); }
.mm-search input::placeholder { color: rgba(0, 0, 0, .6); }
.home .mm-search input::placeholder { color: rgba(255, 255, 255, .8); }
.mm-search button { padding: 4px; border: 0; background: none; color: inherit; cursor: pointer; }
.mm-header__icon { position: relative; display: block; color: inherit; }
.mm-cart-count { position: absolute; top: -6px; right: -10px; min-width: 18px; height: 18px; border-radius: 9px; background: var(--mm-orange); color: var(--mm-ink); font-size: 11px; line-height: 18px; text-align: center; }

.mm-header__toggle { display: none; padding: 4px; border: 0; background: none; color: inherit; cursor: pointer; }
.mm-drawer { width: min(100%, 420px); height: 100dvh; max-height: none; margin: 0; padding: 24px; border: 0; background: #fff; color: var(--mm-ink); }
.mm-drawer::backdrop { background: rgba(0, 0, 0, .5); }
.mm-drawer__close { display: block; margin-left: auto; padding: 4px; border: 0; background: none; color: inherit; cursor: pointer; }
.mm-drawer .mm-menu { flex-direction: column; gap: 8px; margin-top: 16px; }
.mm-drawer .mm-menu a { font: 400 1.2rem var(--mm-serif); text-transform: none; }
.mm-drawer .mm-menu .current-menu-item > a { color: var(--mm-olive); }
.mm-drawer .sub-menu { display: block; position: static; padding: 4px 0 4px 16px; background: none; }
.mm-drawer .sub-menu a { font-size: 1rem; }
.mm-drawer .mm-search { margin-block: 24px; width: 100%; }
.mm-drawer .mm-search input[type="search"] { width: 100%; }
.mm-drawer .mm-search button { background: var(--mm-olive); color: #fff; border-radius: 50%; padding: 8px; }

@media (max-width: 1024px) {
  .mm-nav, .mm-header__tools .mm-search, .mm-topbar .mm-langs { display: none; }
  .mm-header__toggle { display: block; order: 2; }
  .mm-header__main { justify-content: space-between; min-height: 70px; }
  .mm-topbar { font-size: .6rem; }
  .mm-topbar__inner { min-height: 33px; }
  .mm-topbar__shipping { white-space: nowrap; }
}
