/* ============================================================
   GRUPO MACCAFERRI — navbar.css
   Shared navbar + dropdown styles (used on all pages)
   ============================================================ */

/* ── Dropdown ─────────────────────────────────────────────── */
.nav-item {
  position: relative;
}

.nav-item > a {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-item > a .chevron {
  width: 10px;
  height: 10px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.3s ease;
}

.nav-item:hover > a .chevron,
.nav-item.open > a .chevron {
  transform: rotate(180deg);
}

/* Dropdown panel */
.dropdown {
  position: absolute;
  top: calc(100% + 18px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 220px;
  background: rgba(12, 12, 12, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(201, 168, 76, 0.18);
  border-top: 2px solid var(--gold, #C9A84C);
  padding: 0.5rem 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
  z-index: 200;
}

.nav-item:hover .dropdown,
.nav-item.open .dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
  transform: translateX(-50%) translateY(0);
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.8rem 1.25rem;
  font-size: 0.65rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.15em !important;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7) !important;
  transition: color 0.2s ease, background 0.2s ease, padding-left 0.2s ease !important;
  border-bottom: none !important;
  width: 100%;
}

.dropdown-item::after {
  display: none !important;
}

.dropdown-item:hover {
  color: var(--gold, #C9A84C) !important;
  background: rgba(201, 168, 76, 0.06);
  padding-left: 1.6rem !important;
}

.dropdown-item .item-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold, #C9A84C);
  flex-shrink: 0;
  opacity: 0.5;
  transition: opacity 0.2s ease;
}

.dropdown-item:hover .item-dot {
  opacity: 1;
}

/* Mobile dropdown */
.mobile-dropdown {
  padding-left: 1rem;
  border-left: 1px solid rgba(201, 168, 76, 0.2);
  margin: 0.25rem 0 0.5rem;
  display: none;
}

.mobile-dropdown.open {
  display: block;
}

.mobile-dropdown a {
  display: block;
  padding: 0.65rem 0 !important;
  font-size: 0.68rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.15em !important;
  color: rgba(255, 255, 255, 0.55) !important;
  border-bottom: none !important;
  transition: color 0.2s ease, padding-left 0.2s ease !important;
}

.mobile-dropdown a:hover {
  color: var(--gold, #C9A84C) !important;
  padding-left: 0.4rem !important;
}

.mobile-expand-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mobile-expand-btn .mob-chevron {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: rgba(255,255,255,0.5);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.3s ease;
}

.mobile-expand-btn.active .mob-chevron {
  transform: rotate(180deg);
}

/* ── Bauducco Brand Colors overrides ──────────────────────── */
body.page-bauducco {
  --brand-primary: #4A1C0A;
  --brand-secondary: #6B3020;
  --brand-accent: #C9A84C;
  --brand-dark: #2A0E04;
  --brand-cream: #F7F2EA;
}
