/* =========================================
   POPUP
========================================= */

.popup-overlay {
    position: fixed;
    z-index: 9999999;

    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    padding: 30px;

    background: rgba(34, 34, 34, 0.82);

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

    overflow-y: auto;

    opacity: 1;
    visibility: visible;

    animation: popupFundoEntrada .3s ease;
}


/* =========================================
   CAIXA PRINCIPAL
========================================= */

.popup-box {
    position: relative;

    width: 100%;
    max-width: 850px;

    max-height: calc(100vh - 60px);

    background-color: #f4efeb;

    box-shadow: 0px 10px 50px rgba(0, 0, 0, 0.45);

    overflow-y: auto;

    animation: popupEntrada .4s ease;
}


/* =========================================
   CONTEÚDO
========================================= */

.popup-conteudo {
    padding: 50px;
}


/* =========================================
   TÍTULO
========================================= */

.popup-titulo {
    margin: 0;
    padding: 0;

    color: #c59d5f;

    font-size: 38px;
    line-height: 1.2;

    font-weight: normal;

    text-align: center;
    text-transform: uppercase;
}


/* Linha dourada abaixo do título */

.popup-linha {
    width: 100px;
    height: 3px;

    margin: 18px auto 30px;

    background-color: #c59d5f;
}


/* =========================================
   DESCRIÇÃO
========================================= */

.popup-descricao {
    margin-bottom: 30px;

    color: #7c7979;

    font-size: 17px;
    line-height: 27px;

    text-align: center;
}

.popup-descricao p {
    margin: 0 0 15px;
}

.popup-descricao p:last-child {
    margin-bottom: 0;
}


/* =========================================
   IMAGEM
========================================= */

.popup-imagem {
    width: 100%;

    margin-top: 25px;

    text-align: center;
}

.popup-imagem img {
    display: block;

    width: auto;
    max-width: 100%;
    height: auto;

    margin: 0 auto;
}


/* =========================================
   BOTÃO FECHAR
========================================= */

.popup-fechar {
    position: absolute;

    top: 15px;
    right: 15px;

    z-index: 5;

    width: 42px;
    height: 42px;

    padding: 0;

    border: none;
    border-radius: 50%;

    background-color: #373536;

    color: #fff;

    font-family: Arial, sans-serif;
    font-size: 30px;
    font-weight: 300;
    line-height: 38px;

    text-align: center;

    cursor: pointer;

    transition: all .2s ease;
}

.popup-fechar:hover {
    background-color: #c59d5f;

    color: #fff;

    transform: rotate(90deg);
}

.popup-fechar:focus {
    outline: none;
}


/* =========================================
   ANIMAÇÕES
========================================= */

@keyframes popupEntrada {

    from {
        opacity: 0;
        transform: translateY(25px) scale(.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}


@keyframes popupFundoEntrada {

    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}


/* Fechamento */

.popup-overlay.popup-fechando {
    opacity: 0;

    transition: opacity .3s ease;
}

.popup-overlay.popup-fechando .popup-box {
    transform: translateY(20px) scale(.97);

    opacity: 0;

    transition: all .3s ease;
}


/* =========================================
   MOBILE
========================================= */

@media screen and (max-width: 768px) {

    .popup-overlay {
        padding: 20px;
    }

    .popup-box {
        max-height: calc(100vh - 40px);
    }

    .popup-conteudo {
        padding: 45px 25px 30px;
    }

    .popup-titulo {
        font-size: 28px;
    }

    .popup-descricao {
        font-size: 16px;
        line-height: 25px;
    }

    .popup-fechar {
        top: 10px;
        right: 10px;

        width: 38px;
        height: 38px;

        font-size: 27px;
        line-height: 35px;
    }

}


@media screen and (max-width: 479px) {

    .popup-overlay {
        padding: 12px;
    }

    .popup-box {
        max-height: calc(100vh - 24px);
    }

    .popup-conteudo {
        padding: 50px 20px 25px;
    }

    .popup-titulo {
        font-size: 24px;
    }

    .popup-linha {
        width: 70px;

        margin: 15px auto 25px;
    }

    .popup-descricao {
        font-size: 15px;
        line-height: 23px;

        margin-bottom: 20px;
    }

    .popup-imagem {
        margin-top: 20px;
    }

}


/* =========================================
   VÍDEO YOUTUBE SHORTS
========================================= */

.popup-video {
    position: relative;

    width: min(100%, 430px);

    aspect-ratio: 9 / 16;

    margin: 20px auto 0;

    overflow: hidden;

    background-color: #000;
}

.popup-video iframe {
    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    border: 0;
}


/* =========================================
   AJUSTE DO POPUP PARA VÍDEO
========================================= */

.popup-box {
    width: 100%;
    max-width: 950px;

    max-height: calc(100vh - 40px);

    overflow-y: auto;
}

.popup-conteudo {
    padding: 35px 50px 40px;
}

.popup-titulo {
    font-size: 38px;
}

.popup-linha {
    margin: 12px auto 20px;
}


/* =========================================
   MOBILE
========================================= */

@media screen and (max-width: 768px) {

    .popup-overlay {
        padding: 10px;
    }

    .popup-box {
        max-height: calc(100vh - 20px);
    }

    .popup-conteudo {
        padding: 50px 15px 20px;
    }

    .popup-video {
        width: min(100%, 390px);
    }

}