/* app/static/css/destaques/banners_duplos.css */

.banners-duplo {
    display: flex;
    justify-content: center;
    gap: 20px;
    width: 100%;
    max-width: 1180px;
    margin: 40px auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.banners-duplo .banner-wrapper {
    position: relative;
    flex: 1 1 0;
    width: 100%;
    max-width: 580px;
    aspect-ratio: 580 / 250;
    overflow: hidden;
    border-radius: 8px;
    background-color: #e3e6e9;
    box-sizing: border-box;
}

.banners-duplo .banner-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    background-color: #e3e6e9;
}

.banners-duplo .banner-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    transform: translateX(-100%);
    background-image: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0,
        rgba(255, 255, 255, 0.2) 20%,
        rgba(255, 255, 255, 0.55) 60%,
        rgba(255, 255, 255, 0) 100%
    );
    animation: shimmer-banners-duplos 1.5s infinite;
    will-change: transform;
}

@keyframes shimmer-banners-duplos {
    100% {
        transform: translateX(100%);
    }
}

.banners-duplo .banner-wrapper a {
    position: relative;
    z-index: 2;
    display: block;
    width: 100%;
    height: 100%;
}

.banners-duplo img {
    position: relative;
    z-index: 2;
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    object-fit: cover;
    border-radius: 8px;
    background-color: #ffffff;
}

@media (max-width: 768px) {
    .banners-duplo {
        flex-direction: column;
        align-items: center;
        gap: 15px;
        padding: 0;
    }

    .banners-duplo .banner-wrapper {
        flex: 0 0 auto;
        width: 100%;
        max-width: 580px;
        aspect-ratio: 580 / 250;
    }
}

@media (prefers-reduced-motion: reduce) {
    .banners-duplo .banner-wrapper::after {
        animation: none;
        transform: none;
    }
}
