/* Compact navigation matched to existing NEXES typography. */
.nexes-menu-item { position: relative; }
.header__menu .header__link { display: inline-flex; align-items: center; gap: 7px; }
.header__menu button.nexes-submenu-toggle { appearance: none; border: 0; box-shadow: none; background: transparent; margin: 0; font-family: inherit; font-size: 14px; font-weight: 500; line-height: inherit; color: var(--gris-fosc); padding: 6px 10px; border-radius: 0; }
.header__menu > .nexes-menu-item > .header__link:hover,
.header__menu > .nexes-menu-item > .header__link.active,
.header__menu > .nexes-menu-item.is-open > .header__link { background: transparent; color: var(--verd-mig); }
.nexes-chevron { display: inline-block; width: 5px; height: 5px; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .15s ease; opacity: .65; }
[aria-expanded="true"] > .nexes-chevron { transform: translateY(1px) rotate(225deg); }
.header__menu .nexes-submenu { display: none; position: absolute; top: 100%; left: 0; min-width: 185px; width: max-content; max-width: 280px; margin: 0; padding: 8px 0; background: var(--blanc); border: 1px solid var(--verd-palid); border-radius: var(--r-sm); box-shadow: var(--shadow-sm); z-index: 1001; list-style: none; }
.header__menu .is-open > .nexes-submenu { display: block; }
.header__menu .nexes-submenu .header__link { width: 100%; padding: 10px 16px; font-size: 14px; line-height: 1.4; white-space: normal; border-radius: 0; }
.header__menu .nexes-submenu .nexes-submenu { top: 0; left: 100%; }
.header__menu .header__link:focus-visible { outline: 2px solid var(--verd-mig); outline-offset: 2px; }
.nexes-form-status { margin: 0; color: var(--verd-fosc); font-weight: 500; }
.nexes-form-status:empty { display: none; }
.nexes-enquiry-form button:disabled { opacity: .65; cursor: wait; }
@media (max-width: 768px) {
  .header__menu > .nexes-menu-item { width: 100%; text-align: center; }
  .header__menu button.nexes-submenu-toggle { font-size: 26px; line-height: 1.2; padding: 16px 24px; gap: 10px; justify-content: center; }
  .header__menu .nexes-submenu, .header__menu .nexes-submenu .nexes-submenu { position: static; width: 100%; max-width: none; min-width: 0; border: 0; border-left: 1px solid var(--verd-palid); box-shadow: none; background: transparent; border-radius: 0; margin: 0; }
  .header__menu .nexes-submenu .header__link { justify-content: center; font-size: 18px; color: var(--verd-mig); padding: 10px 16px; }
}

/* Official institutional logo: match the other grayscale partner marks. */
.logo-item:has(.nexes-ajuntament-logo) { filter: grayscale(1); opacity: .5; }
.logo-item img.nexes-ajuntament-logo { width: 160px; max-width: 160px; height: auto; max-height: none; }
@media (max-width:768px) { .logo-item img.nexes-ajuntament-logo { width: 130px; max-width: 130px; } }
