/* =============================================================
   chiedo-overrides.css  –  loaded after all theme CSS
   ============================================================= */

/*
 * Footer promo banners: images are 2500×602 px (ratio ≈ 4.15:1).
 * The theme's .aspect-2 class forces aspect-ratio: 2/1, so
 * object-fit:cover on the img centre-crops ~52% off each side of
 * the image width, hiding the text panel baked into the left side
 * of each banner and showing only the product photo in the centre.
 *
 * Fix: set the container's aspect-ratio to match the actual image
 * dimensions (2500 ÷ 2 : 602 ÷ 2 = 1250:301 ≈ 4.15:1).
 * With matching ratios, object-fit:cover fills without any crop.
 *
 * Selector targets only the two footer banners inside .banner,
 * leaving the hero slider and the right-hand side banner unchanged.
 */
.banner .col-6.aspect-2 {
    aspect-ratio: 1250 / 301;
    overflow: hidden;
}

/* Anchor must fill the corrected container height */
.banner .col-6.aspect-2 > .ad-hover {
    display: block;
    height: 100%;
}

/* Restate fill rules for specificity safety;
   .img-fit already sets these but !important isn't needed here */
.banner .col-6.aspect-2 img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    border-radius: 0.375rem; /* matches Bootstrap .rounded */
}
