/* LogoMarquee — faixa full-bleed de logos em loop infinito.
   Escopo próprio (.lm) para não afetar outras páginas. */

.lm {
  --lm-altura: 90px;
  --lm-gap: 56px;
  --lm-logo-h: 28px;
  --lm-fade: 80px;
  --lm-duracao: 50s;
  margin: 0;
  padding: 56px 0 64px;
  background: #ffffff;
}

.lm__cabecalho {
  width: min(1220px, 100% - 40px);
  margin-inline: auto;
  text-align: center;
  margin-bottom: 20px;
}

.lm .lm__titulo {
  font-family: Rubik, Inter, system-ui, sans-serif;
  font-weight: 500;
  font-size: 26px;
  line-height: 1.2;
  color: #0a0a0a;
  margin: 0;
}

/* full-bleed mesmo dentro de container centralizado */
.lm__faixa {
  position: relative;
  width: 100vw;
  max-width: 100vw;
  margin-left: 50%;
  transform: translateX(-50%);
  height: var(--lm-altura);
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #ffffff;
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0,
    #000 var(--lm-fade),
    #000 calc(100% - var(--lm-fade)),
    transparent 100%
  );
  mask-image: linear-gradient(
    to right,
    transparent 0,
    #000 var(--lm-fade),
    #000 calc(100% - var(--lm-fade)),
    transparent 100%
  );
}

.lm__trilho {
  display: flex;
  align-items: center;
  width: max-content;
  will-change: transform;
  animation: lm-desliza var(--lm-duracao) linear infinite;
}

.lm__faixa:hover .lm__trilho,
.lm__faixa:focus-visible .lm__trilho {
  animation-play-state: paused;
}

.lm__lista {
  display: flex;
  align-items: center;
  gap: var(--lm-gap);
  padding: 0 calc(var(--lm-gap) / 2);
  margin: 0;
  list-style: none;
}

.lm__item {
  display: flex;
  align-items: center;
}

.lm__logo {
  display: block;
  width: auto;
  height: auto;
  max-height: var(--lm-logo-h);
  max-width: 180px;
  object-fit: contain;
  /* logotipos pretos uniformes sobre fundo branco */
  filter: brightness(0);
  opacity: 1;
}

@keyframes lm-desliza {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (max-width: 767px) {
  .lm {
    --lm-altura: 64px;
    --lm-gap: 36px;
    --lm-logo-h: 22px;
    --lm-fade: 40px;
  }
  .lm__titulo {
    font-size: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lm__trilho {
    animation: none;
    will-change: auto;
    overflow-x: auto;
    max-width: 100vw;
  }
  .lm__faixa {
    overflow-x: auto;
  }
  .lm__lista[aria-hidden="true"] {
    display: none;
  }
}
