/* ==========================================================================
   ACI Milan — Fullscreen Mobile Navigation Menu
   Linked from all pages via <link rel="stylesheet">.
   Desktop navigation (≥ 1200px) is not affected. The earlier collapse gives
   seven localized root items enough room without wrapping.
   ========================================================================== */

/* ── Hide old desktop nav wrap on mobile — fullscreen menu handles it ── */
@media (max-width: 1199.98px) {
  .aci-nav-wrap { display: none !important; }
}

/* ── Hide fullscreen panel on desktop ── */
@media (min-width: 1200px) {
  .aci-mobile-menu { display: none !important; }
}

/* ==========================================================================
   Fullscreen panel
   ========================================================================== */
.aci-mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 999; /* below header z-index: 1000 — header bar floats on top */
  display: flex;
  flex-direction: column;
  background: var(--aci-ivory, #FAF7F2);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  /* Closed state */
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transform: translateY(-10px);
  transition:
    opacity 0.26s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.26s cubic-bezier(0.4, 0, 0.2, 1),
    visibility 0s linear 0.26s;
}

/* Open state */
.aci-mobile-menu.is-open {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
  transform: translateY(0);
  transition:
    opacity 0.26s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.26s cubic-bezier(0.4, 0, 0.2, 1),
    visibility 0s linear 0s;
}

/* ==========================================================================
   Inner body — starts below the fixed header bar
   ========================================================================== */
.aci-mobile-menu__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  /*padding-top: var(--header-h, 90px);*/
  /*padding-left: clamp(24px, 7vw, 44px);*/
  /*padding-right: clamp(24px, 7vw, 44px);*/
  /*padding-bottom: 0;*/
  min-height: 100%;
}

/* ==========================================================================
   Nav list
   ========================================================================== */
.aci-mobile-menu__nav {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding-top: 24px;
}

/* Individual nav links */
.aci-mobile-menu__link {
  display: flex;
  align-items: center;
  padding: 17px 0;
  font-family: var(--font-en-body, 'Inter', sans-serif);
  font-size: clamp(1.35rem, 5vw, 1.7rem);
  font-weight: 400;
  color: var(--aci-muted, #887360);
  letter-spacing: -0.01em;
  border-bottom: 1px solid rgba(201, 158, 106, 0.1);
  text-decoration: none;
  transition: color 0.18s ease, padding-left 0.18s ease;
  position: relative;
}

.aci-mobile-menu__link:last-child {
  border-bottom: none;
}

.aci-mobile-menu__link:hover {
  color: var(--aci-text, #1e1812);
  padding-left: 6px;
}

/* Active link — soft warm pill highlight */
.aci-mobile-menu__link.is-active {
  font-weight: 600;
  color: var(--aci-text, #1e1812);
  padding-left: 16px;
  padding-right: 16px;
  margin-left: -16px;
  margin-right: -16px;
  background: rgba(201, 158, 106, 0.09);
  border-radius: 14px;
  border-bottom-color: transparent;
}

/* Gold left accent for active item */
.aci-mobile-menu__link.is-active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 24px;
  border-radius: 2px;
  background: var(--aci-gold, #C99E6A);
}

.aci-mobile-menu__languages {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 18px clamp(20px, 6vw, 36px) 28px;
  border-top: 1px solid rgba(201, 158, 106, 0.14);
}

.aci-mobile-menu__language {
  border: 1px solid rgba(201, 158, 106, 0.18);
  border-radius: 999px;
  padding: 11px 10px;
  background: rgba(255, 255, 255, 0.66);
  color: var(--aci-muted, #887360);
  font-family: var(--font-en-body, 'Inter', sans-serif);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1;
}

.aci-mobile-menu__language.is-active {
  background: rgba(201, 158, 106, 0.18);
  color: var(--aci-text, #1e1812);
  border-color: rgba(201, 158, 106, 0.34);
}

/* ==========================================================================
   Burger icon — open / close state
   ========================================================================== */
.aci-burger__close {
  display: none !important;
}

.aci-burger.is-active .aci-burger__open {
  display: none !important;
}

.aci-burger.is-active .aci-burger__close {
  display: block !important;
}

/* ==========================================================================
   Body scroll lock when menu is open
   ========================================================================== */
body.aci-menu-open {
  overflow: hidden;
}
