/* Mobile navigation: scoped to the shared navbar component. */
.mammia-site-header .mammia-mobile-backdrop {
    position: fixed; inset: 0; z-index: 1040;
    background: rgba(12, 35, 30, .42); backdrop-filter: blur(4px);
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity .32s ease, visibility .32s;
}
#navbarSupportedContent.mammia-mobile-panel {
    position: fixed; inset: 0 0 0 auto; z-index: 1050;
    width: min(390px, calc(100% - 24px)); max-width: 100%;
    height: 100%; height: 100dvh; display: flex; flex-direction: column;
    margin: 0; padding: 0; background: #fff; color: #233d36;
    box-shadow: -12px 0 50px rgba(12, 35, 30, .12);
    transform: translateX(var(--mammia-drawer-offset, 105%)); visibility: hidden; pointer-events: none;
    overflow: hidden; text-align: start;
    transition: transform .32s cubic-bezier(.22, .68, 0, 1), visibility .32s;
}
html[dir="rtl"] #navbarSupportedContent.mammia-mobile-panel {
    inset: 0 auto 0 0; --mammia-drawer-offset: -105%;
    box-shadow: 12px 0 50px rgba(12, 35, 30, .12);
}
#navbarSupportedContent.mammia-mobile-panel[data-open="true"] {
    transform: translateX(0); visibility: visible; pointer-events: auto;
}
.mammia-site-header .mammia-mobile-backdrop[data-open="true"] {
    opacity: 1; visibility: visible; pointer-events: auto;
}
.mammia-site-header .mammia-mobile-bar,
#navbarSupportedContent.mammia-mobile-panel .mammia-mobile-panel-top {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.mammia-site-header .mammia-mobile-bar { min-height: 68px; padding: 4px 0; }
.mammia-site-header .mammia-mobile-brand { flex: 0 1 130px; min-width: 0; }
.mammia-site-header .mammia-mobile-brand a { display: block; }
.mammia-site-header .mammia-mobile-brand img {
    display: block; width: auto; height: auto; max-width: 130px; max-height: 52px;
}
.mammia-site-header .mammia-mobile-actions { display: flex; gap: 8px; align-items: center; }
.mammia-site-header .mammia-mobile-icon-button {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; padding: 10px; flex: 0 0 44px;
    border: 1px solid rgba(255, 255, 255, .22); border-radius: 14px;
    background: rgba(255, 255, 255, .08); color: #fff; cursor: pointer;
    transition: background .18s ease, transform .18s ease;
}
.mammia-site-header .mammia-mobile-icon-button:hover { background: rgba(255, 255, 255, .18); }
.mammia-site-header .mammia-mobile-icon-button:active { transform: scale(.96); }
.mammia-site-header .mammia-mobile-icon-button svg,
#navbarSupportedContent.mammia-mobile-panel .mammia-mobile-search svg { width: 24px; height: 24px; }
#navbarSupportedContent.mammia-mobile-panel > .mammia-mobile-panel-top {
    padding: calc(18px + env(safe-area-inset-top)) 22px 18px;
    margin: 0; background: #80b3b5; flex: 0 0 auto;
}
#navbarSupportedContent.mammia-mobile-panel .mammia-mobile-panel-top img { filter: brightness(0) invert(1); }
#navbarSupportedContent.mammia-mobile-panel > .mammia-mobile-panel-body {
    padding: 26px 22px calc(24px + env(safe-area-inset-bottom)); margin: 0;
    flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain;
    display: flex; flex-direction: column; gap: 20px;
}
#navbarSupportedContent.mammia-mobile-panel h2 {
    color: #71857e; font-size: 12px; font-weight: 600;
    letter-spacing: .08em; margin: 0; line-height: 1.5; text-transform: uppercase;
}
#navbarSupportedContent.mammia-mobile-panel ul { list-style: none; margin: 0; padding: 0; }
#navbarSupportedContent.mammia-mobile-panel .mammia-mobile-menu {
    display: block !important; width: 100%; text-align: start !important;
}
#navbarSupportedContent.mammia-mobile-panel .mammia-mobile-menu li {
    display: block !important; float: none; width: 100%; margin: 0 !important; padding: 0;
    text-align: start !important;
}
#navbarSupportedContent.mammia-mobile-panel .mammia-mobile-menu a {
    display: flex !important; align-items: center; min-height: 50px;
    padding: 12px 14px !important; margin: 0; border: 0; border-radius: 12px;
    color: #233d36 !important; font-size: 16px !important; line-height: 1.5 !important;
    font-weight: 600; text-decoration: none; text-align: start !important; white-space: normal;
    transition: color .18s ease, background .18s ease;
}
#navbarSupportedContent.mammia-mobile-panel .mammia-mobile-menu a::after { content: none !important; }
#navbarSupportedContent.mammia-mobile-panel .mammia-mobile-menu a:hover,
#navbarSupportedContent.mammia-mobile-panel .current-menu-item > a,
#navbarSupportedContent.mammia-mobile-panel .current-menu-ancestor > a { color: #007b65 !important; background: #edf7f3; }
#navbarSupportedContent.mammia-mobile-panel .mammia-mobile-menu .sub-menu {
    position: static; display: block; width: auto; visibility: visible; opacity: 1;
    background: transparent; box-shadow: none; padding-inline-start: 14px;
}
#navbarSupportedContent.mammia-mobile-panel .sub-menu a { font-size: 14px !important; min-height: 44px; }
/* The explicit language pills replace any language entries injected into the menu. */
#navbarSupportedContent.mammia-mobile-panel .mammia-mobile-menu .lang-item { display: none !important; }
#navbarSupportedContent.mammia-mobile-panel .mammia-mobile-panel-bottom {
    margin-top: auto; padding-top: 24px; border-top: 1px solid #e5eeea;
}
#navbarSupportedContent.mammia-mobile-panel .mammia-mobile-label {
    display: block; color: #71857e; font-size: 13px; line-height: 1.5;
    font-weight: 600; margin: 0 0 10px;
}
#navbarSupportedContent.mammia-mobile-panel .mammia-mobile-languages { display: flex; gap: 8px; margin-bottom: 26px; }
#navbarSupportedContent.mammia-mobile-panel .mammia-mobile-language {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 58px; min-height: 44px; padding: 10px 16px;
    border: 1px solid #dde9e3; border-radius: 12px; color: #486158 !important;
    background: #fff; font-size: 14px !important; line-height: 1.5 !important;
    font-weight: 600; text-decoration: none;
}
#navbarSupportedContent.mammia-mobile-panel .mammia-mobile-language[aria-current="true"],
#navbarSupportedContent.mammia-mobile-panel .mammia-mobile-language:hover { color: #007b65 !important; background: #edf7f3; border-color: #a8d6c4; }
#navbarSupportedContent.mammia-mobile-panel .mammia-mobile-search-field {
    display: flex; align-items: center; border: 1px solid #dde9e3; border-radius: 14px;
    background: #f8fbf9; overflow: hidden;
}
#navbarSupportedContent.mammia-mobile-panel .mammia-mobile-search input {
    min-width: 0; width: 100%; height: 48px; margin: 0; padding: 12px 14px;
    border: 0; background: transparent; color: #233d36; font-size: 16px;
}
#navbarSupportedContent.mammia-mobile-panel .mammia-mobile-search button {
    display: flex; justify-content: center; align-items: center; flex: 0 0 48px;
    height: 48px; padding: 12px; background: transparent; color: #008d73; border: 0; cursor: pointer;
}
.mammia-site-header .mammia-mobile-icon-button:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
#navbarSupportedContent.mammia-mobile-panel a:focus-visible,
#navbarSupportedContent.mammia-mobile-panel input:focus-visible,
#navbarSupportedContent.mammia-mobile-panel .mammia-mobile-search button:focus-visible { outline: 2px solid #008d73; outline-offset: -3px; }
@media (max-width: 1500px) {
    header.mammia-site-header { padding: 8px 0 !important; }
    .mammia-site-header .mammia-nav-desktop { display: none !important; }
    .mammia-site-header .mammia-nav-mobile { display: block !important; padding-inline: 18px; }
}
@media (min-width: 1501px) {
    .mammia-site-header .mammia-nav-mobile { display: none !important; }
    #navbarSupportedContent.mammia-mobile-panel,
    .mammia-site-header .mammia-mobile-backdrop { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    #navbarSupportedContent.mammia-mobile-panel,
    .mammia-site-header .mammia-mobile-backdrop,
    .mammia-site-header .mammia-mobile-icon-button { transition: none; }
}
