/* ============================================================
 * #1 TOP BAR · gris suau amb text daurat
 * ============================================================ */
.a-topbar {
  background: var(--a-gray);
  color: var(--a-gold);
  font-size: 0.9rem;
}

.a-topbar .a-wrap {
  padding: 6px 16px;
  text-align: center;
}

.a-topbar a {
  color: var(--a-gold);
  text-decoration: none;
  transition: color var(--a-tr);
}

.a-topbar a:hover {
  color: var(--a-black);
}

/* ============================================================
 * #2 HEADER BASE · Sticky + Shadow
 * ============================================================ */
.a-header {
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 50;
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
  transition: box-shadow var(--a-tr);
}

.a-header.is-scrolled {
  box-shadow: var(--a-shadow);
}

.a-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  gap: 24px;
}

/* ============================================================
 * #3 LOGOTIP
 * ============================================================ */
.a-header__logo {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.a-header__logo img {
  height: 42px;
  width: auto;
  object-fit: contain;
  transition: opacity .3s var(--a-tr), transform .2s var(--a-tr);
}

.a-header__logo img:hover {
  opacity: .85;
  transform: scale(1.02);
}

/* ============================================================
 * #4 CERCADOR FIBOSEARCH
 * ============================================================ */
.a-header__search {
  flex: 1;
  max-width: 640px;
  margin: 0 32px;
  display: flex;
  justify-content: center;
}

.dgwt-wcas-search-input {
  border: 1px solid #ddd;
  border-radius: 999px;
  padding: 10px 16px;
  width: 100%;
  transition: border-color var(--a-tr), box-shadow var(--a-tr);
}

.dgwt-wcas-search-input:focus {
  border-color: var(--a-gold);
  box-shadow: 0 0 0 2px rgba(198, 162, 86, 0.2);
  outline: none;
}

/* ============================================================
 * #5 ACCIONS (idioma / compte / carret)
 * ============================================================ */
.a-header__actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.a-header__actions a,
.a-lang a {
  color: var(--a-gold);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--a-tr), transform var(--a-tr);
}

.a-header__actions a:hover,
.a-lang a:hover {
  color: var(--a-black);
  transform: translateY(-1px);
}

/* ============================================================
 * #6 MENÚ PRINCIPAL
 * ============================================================ */
.a-mainnav {
  border-top: 1px solid #eee;
  background: #fff;
}

.a-menu {
  list-style: none;
  margin: 0;
  padding: 8px 0;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ============================================================
 * #7 RESPONSIVE
 * ============================================================ */
@media (max-width: 1024px) {
  .a-header__search { max-width: none; margin: 8px 0; }
  .a-menu { gap: 10px; }
}

@media (max-width: 768px) {
  .a-header__inner {
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }
  .a-header__search {
    width: 100%;
    margin: 8px 0;
  }
}