* {
    margin: 0;
    padding: 0;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

*, ::after, ::before {
    box-sizing: border-box;
}

body {
    font-family: "Poppins", sans-serif;
    font-weight: normal;
    font-style: normal;
    color: #6A7C92;
}

img {
    max-width: 100%;
    height: auto;
}

.wrapper {
    position: relative;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    height: 100vh;
    margin: 0;
    padding: 20px;
    display: grid;
    place-items: center;
    transition: background-image 1s ease-in-out;
}

.wrapper::after {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; 
    height: 100%;
    background: inherit;
    opacity: 0;
    transition: opacity 0.9s ease-in-out;
    z-index: 1;
    pointer-events: none;
}

.wrapper.fade::after {
    opacity: 1;
}

.overlay {
    position: absolute;
    inset: 0;
    background-color: rgb(0 0 0 / 50%);
}

.white-box {
    position: relative;
    /* overflow: hidden; */
    max-width: 650px;
    width: 100%;
    background-color: #fff;
    display: flex;
    justify-content: center;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    border-radius: 12px;
    z-index: 1;

    & img {
        margin-top: -25px;
    }

    & .destinations {
        background-color: #0A1A2C;
        width: 100%;
        border-radius: 16px 16px 10px 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        padding: 30px;

        & p {
            color: #fff;
        }

        & .buttons {
            margin-top: 30px;
            display: grid;
            grid-template-columns: 1fr;
            place-items: center;
            gap: 20px;

            & .button {
                background-color: #D01C30;
                padding: 8px 16px;
                text-decoration: none;
                color: #fff;
                border-radius: 9999px;
                width: 100%;
                text-align: center;
                font-weight: 300;
                letter-spacing: .7px;
                text-wrap: nowrap;
                transition: all 300ms ease;
            }

            & .button.italy {
                background-color: #24B67B;
            }

            & .button.barca {
                background-color: #D39610;
                grid-column: 1 / 2;
                justify-self: center;
                width: 100%;
            }

            & .button:hover {
                filter: brightness(85%);
            }
        }
    }
}

.footer {
    position: fixed;
    bottom: 30px;
    width: 100%;
    text-align: center;
    color: #fff;
    z-index: 1;
}

@media (min-width: 440px) {
    .white-box {
        & img {
            margin-top: -45px;
        }

        & .destinations {
            & .buttons {
                grid-template-columns: 1fr 1fr;

                & .button.barca {
                    grid-column: 1 / 3;
                    width: max-content;;
                }
            }
        }
    }
}