﻿.wide-banner {
    visibility: hidden; /* so deve aparecer after pageload */
    position: absolute; /* so deve aparecer after pageload */
    margin: 0;
    margin-top: var(--myMarginTop);
    width: 100%;
    position: relative;
    z-index: 10001;
    transition: all 0.3s ease;
}

    .wide-banner.loaded {
        margin-top: 0;
        position: relative !important;
        visibility: visible !important;
    }

    .wide-banner.closed {
        margin-top: var(--myMarginTop);
    }

    .wide-banner .text-wrapper {
        background-color: #f4f4f4;
        padding: 20px 15px;
    }

        .wide-banner .text-wrapper h6 {
            margin: 0;
            font-family: Roboto, sans-serif;
            font-size: 16px;
            font-weight: 400;
            line-height: 23px;
            margin-bottom: 5px;
            font-weight: 400;
            text-transform: uppercase;
            color: #C30000;
        }

        .wide-banner .text-wrapper h5 {
            margin: 0;
            margin-bottom: 5px;
            font-family: Roboto, sans-serif;
            font-size: 24px;
            font-weight: 500;
            line-height: 30px;
        }

        .wide-banner .text-wrapper p {
            font-size: 16px;
            line-height: 22px;
            margin-bottom: 25px;
        }

        .wide-banner .text-wrapper a {
            font-family: Roboto, sans-serif;
            font-size: 18px;
            font-weight: bold;
            color: #242424;
        }

            .wide-banner .text-wrapper a .arrow {
                stroke-width: 8px;
                transform: rotate(0deg);
                transition: transform 0.3s ease;
            }

    .wide-banner img {
        margin: 0;
        width: 100%;
    }

    .wide-banner .close-button {
        position: absolute;
        top: 15px;
        right: 10px;
        width: 24px;
        height: 24px;
        cursor: pointer;
    }

        .wide-banner .close-button .line {
            display: block;
            position: relative;
            border: 0.5px solid #242424;
            background-color: #242424;
            transition: all 200ms ease-in-out;
        }

            .wide-banner .close-button .line:first-child {
                transform: rotate(45deg);
                top: 2px;
            }

            .wide-banner .close-button .line:last-child {
                transform: rotate(-45deg);
            }

        .wide-banner .close-button:hover .line:first-child {
            transform: rotateZ(135deg);
        }

        .wide-banner .close-button:hover .line:last-child {
            transform: rotateZ(45deg);
        }

@media(min-width: 992px) {
    .wide-banner {
        display: flex;
    }

        .wide-banner .text-wrapper {
            display: flex;
            flex-direction: column;
            justify-content: flex-end;
            width: 50%;
            padding: 20px 90px 20px 30px;
        }

            .wide-banner .text-wrapper p {
                margin-bottom: 40px;
            }

            .wide-banner .text-wrapper a:hover .arrow {
                transform: translateX(5px);
            }

        .wide-banner img {
            width: 50%;
            object-fit: cover;
        }

        .wide-banner .close-button {
            top: 35px;
            right: 30px;
        }

            .wide-banner .close-button:hover .line {
                border-color: #c30000;
                background-color: #c30000;
            }
}
