/* Reset mínimo */
* {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
    margin: 0;
}

/* BG total da página */
body {
    background: #F2F2F2;
}

/* Retângulo */
.top-rect {
    position: fixed;
    top: 2cm;
    left: 1.5cm;
    right: 1.5cm;

    height: 75vh;

    /* agora ele vira um container com clipping */
    border-radius: 17px;
    overflow: hidden;

    /* garante que não fique transparente */
    background: #044040;
}

/* Camadas de imagem */
.slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    opacity: 0;
    transition: opacity 700ms ease;
    will-change: opacity;
}

/* A começa visível */
.slide-a {
    opacity: 1;
}

/* Camada “wipe” de cor no meio da troca */
.color-wipe {
    position: absolute;
    inset: 0;
    background: #044040;

    opacity: 0;
    transition: opacity 450ms ease;
    will-change: opacity;
}

/* Slogan centralizado no centro do retângulo */
.slogan {
    position: fixed;

    top: 2cm;
    left: 1.5cm;
    right: 1.5cm;
    height: 75vh;

    display: flex;
    align-items: center;
    justify-content: center;

    font-family: "Playfair Display", serif;
    font-weight: 500;
    font-size: clamp(23px, 4vw, 46px);

    color: #F2F2F2;
    text-align: center;

    /* deixa o texto “passar” (não bloquear cliques futuros nos botões) */
    pointer-events: none;

    /* garante que fique acima das imagens */
    z-index: 2;
}

/* Acessibilidade: reduz movimento se o usuário pedir */
@media (prefers-reduced-motion: reduce) {

    .slide,
    .color-wipe {
        transition: none;
    }
}