/* Banner configurável em admin.php: CSS isolado do layout legado. */
.banner-topo {
  display: block;
  position: relative;
  width: 100%;
  flex-shrink: 0;
  height: auto;
  max-height: var(--banner-altura-desktop, 460px);
  aspect-ratio: var(--banner-proporcao, 2480 / 460);
  overflow: hidden;
  background-color: #fff;
  background-repeat: no-repeat;
  background-size: var(--banner-ajuste, cover);
  background-position: center center;
}
.banner-topo--video { background-color: #000; }
.banner-topo img,
.banner-topo video,
.banner-topo iframe {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  border: none;
}
.banner-topo img { object-fit: var(--banner-ajuste, cover); }
.banner-topo video { object-fit: contain; }
.banner-topo iframe { pointer-events: none; }
@media (max-width: 768px) {
  .banner-topo {
    aspect-ratio: auto;
    height: min(var(--banner-altura-mobile, 120px), 65vh);
    max-height: none;
    background-size: contain; /* Não corta textos ou logomarcas do banner no celular */
  }
  .banner-topo img { object-fit: contain; }
}
