/* Ensure brand banners never crop side copy (QQ / mobile safe). */
.carnet-home-brand,
.carnet-teoria-brand {
  aspect-ratio: auto !important;
  min-height: 0 !important;
  max-height: none !important;
}
.carnet-home-brand__banner,
.carnet-teoria-brand__banner {
  width: 100% !important;
  height: auto !important;
  margin: 0 !important;
  object-fit: contain !important;
  object-position: center !important;
}
.carnet-page-hero,
.carnet-page-hero.is-compact {
  aspect-ratio: 1024 / 381 !important;
  min-height: 0 !important;
  background: #0b66d6;
}
.carnet-page-hero__photo {
  object-fit: contain !important;
  object-position: center !important;
}
