/* Lockup ufficiale. L'altezza segue la larghezza, così il payoff resta leggibile. */

.bw-brand-logo {
  display: block;
  width: min(15.25rem, 58vw);
  height: auto;
  max-height: 2.85rem;
  object-fit: contain;
  object-position: left center;
}

.nav-logo:has(.bw-brand-logo),
.auth-dialog__brand:has(.bw-brand-logo),
.c2-logo:has(.bw-brand-logo),
.bw-cs-brand:has(.bw-brand-logo),
.bw-a11y-panel__brand:has(.bw-brand-logo),
.sidebar-brand h5:has(.bw-brand-logo) {
  line-height: 0;
}

.footer-brand .nav-logo .bw-brand-logo {
  width: min(17.5rem, 100%);
  max-height: none;
}

.auth-dialog__brand .bw-brand-logo {
  width: min(18rem, 100%);
  max-height: none;
  margin-inline: auto;
}

.c2-logo .bw-brand-logo {
  width: min(15rem, 70vw);
}

.pd2-brand > span:has(.bw-brand-logo) {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  min-width: 0;
  line-height: 1.3;
}

.pd2-brand .bw-brand-logo,
.admin-brand .bw-brand-logo,
.admin-login-brand .bw-brand-logo,
.sidebar-brand .bw-brand-logo {
  width: min(100%, 12.75rem);
  max-height: 2.7rem;
}

.partner-brand:has(.bw-brand-logo) {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.partner-brand .bw-brand-logo {
  width: 11.5rem;
  max-height: 2.45rem;
}

.footer-brand .bw-brand-logo,
.admin-brand .bw-brand-logo,
.admin-login-brand .bw-brand-logo,
.sidebar .bw-brand-logo,
.pd2-brand .bw-brand-logo,
.bw-cs-brand .bw-brand-logo {
  background: #fff;
  padding: 0.32rem 0.5rem;
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(11, 18, 32, 0.12);
}

.bw-cs-brand .bw-brand-logo {
  width: min(18rem, 82vw);
  max-height: none;
}

.bw-a11y-panel__brand .bw-brand-logo {
  width: 8.75rem;
  max-height: 1.85rem;
}

.navbar-brand .bw-brand-logo {
  width: 9.5rem;
  max-height: 2rem;
}

.footer .bw-brand-logo {
  width: 8.5rem;
  max-height: 1.8rem;
}

.sidebar.collapsed .sidebar-brand .bw-brand-logo {
  width: 2.25rem;
  max-height: 2.25rem;
  object-fit: cover;
  object-position: left center;
}
