:root {
    --fundo: #0c151f;
    --azul: #173f9e;
    --azul-botao: #0b3a9b;
    --azul-texto: #0d2a6b;
    --creme: #fbf6e4;
    --dourado: #b48a56;
    --texto: #1f2633;
    --branco: #fff;
}

html {
    font-size: clamp(16px, 1.0417vw, 24px);
}

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

body {
    background: var(--fundo);
    color: var(--branco);
    font-family: 'Montserrat', sans-serif;
}

img {
    display: block;
    max-width: 100%;
}

button {
    font-family: inherit;
    cursor: pointer;
}

.escondido {
    display: none;
}

/* até o dados.json montar os cards, o que fica abaixo deles não aparece:
   assim a faixa e o "sobre" não são empurrados para baixo (página pulando) */
.carregando .faixa,
.carregando .sobre,
.carregando .regulamento,
.carregando footer {
    display: none;
}

.banner {
    position: relative;
    aspect-ratio: 1920 / 545;
    box-sizing: content-box;
    background: var(--fundo) url(../img/hoteis/portoalto/hero.webp?v=21) center / cover no-repeat;
    border-bottom: 0.75rem solid var(--azul);
}

/* selos ao lado do "50%" do banner; posições em % do layout de 1920x545 */
.selo {
    position: absolute;
    top: 79%;
    width: 5.5%;
    height: auto;
    transform: translate(-50%, -50%);
}

.selo-juros {
    left: 41%;
}

.selo-pix {
    left: 59.2%;
}

.container {
    max-width: 54.375rem;
    margin: 0 auto;
    padding: 1.75rem 1rem 0;
}

.titulo {
    text-align: center;
}

.titulo h1 {
    font-size: 1.625rem;
    font-weight: 800;
    line-height: 1.1;
    text-transform: uppercase;
}

.titulo p {
    font-size: 0.875rem;
    font-weight: 600;
    margin-top: 0.25rem;
}

.botoes {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.625rem;
    margin-top: 2.5rem;
}

.botoes button {
    height: 2.375rem;
    min-width: 8.75rem;
    padding: 0 1.375rem;
    background: none;
    border: 0.125rem solid var(--azul);
    border-radius: 1.875rem;
    color: var(--branco);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: .5px;
    text-transform: uppercase;
    transition: border-color .15s;
}

.botoes button:hover {
    border-color: var(--branco);
}

.botoes button.ativo {
    background: var(--azul);
}

.botoes button.ativo:hover {
    border-color: var(--azul);
}

.botoes button:focus-visible,
.card .btn:focus-visible {
    outline: 0.125rem solid var(--dourado);
    outline-offset: 0.1875rem;
}

.hoteis {
    gap: 0.875rem;
    margin-top: 1.125rem;
}

.hoteis button {
    min-width: 7.875rem;
}

.em-breve {
    text-align: center;
    margin-top: 2.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
    opacity: .8;
}

.seta {
    display: flex;
    justify-content: center;
    margin-top: 1.25rem;
}

.seta svg {
    width: 1.375rem;
    height: auto;
}

.nome-hotel {
    text-align: center;
    margin: 1.5rem 0 1.375rem;
}

.nome-hotel span {
    display: block;
    font-size: 0.625rem;
    font-weight: 600;
    letter-spacing: 0.1437rem;
    text-transform: uppercase;
}

.nome-hotel h2 {
    font-size: 1.0938rem;
    font-weight: 800;
    text-transform: uppercase;
}

.linha1 {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 1.75rem;
}

.linha2 {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 4.25rem;
    margin-top: 2.75rem;
}

.card {
    background: var(--creme);
    color: var(--texto);
    text-align: center;
    overflow: hidden;
}

.card h3 {
    color: var(--azul-texto);
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.2;
    text-transform: uppercase;
}

.card p {
    font-size: 0.5938rem;
    line-height: 1.5;
    margin-top: 0.375rem;
}

.card .btn {
    background: var(--azul-botao);
    border: 0;
    border-radius: 1.875rem;
    color: var(--branco);
    font-weight: 700;
    letter-spacing: .5px;
    text-transform: uppercase;
    transition: background .15s;
}

.card .btn:hover {
    background: var(--azul-texto);
}

.card-h {
    display: flex;
    width: 24.75rem;
    min-height: 11.1875rem;
    border: 0.25rem solid var(--dourado);
    border-radius: 1.5rem;
}

.card-h img {
    width: 46%;
    object-fit: cover;
    object-position: left center;
}

.card-h .info {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 0.875rem;
}

.card-h p {
    max-width: 10.3125rem;
}

.card-h .btn {
    width: 8.25rem;
    height: 2rem;
    font-size: 0.6875rem;
    margin-top: 0.875rem;
}

/* card largo de feriados (hotel sem 50%, ex.: Jeri): feriados já aparecem como botões */
.card-largo {
    width: 51.25rem;
}

.card-largo img {
    width: 29.5%;
}

.card-largo p {
    max-width: 32rem;
}

.card-largo .datas {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.375rem;
    max-height: none;
    overflow: visible;
    margin: 1rem 0 0;
}

.card-largo .datas a,
.card-largo .datas a:nth-child(odd) {
    min-width: 5.5rem;
    padding: 0.4375rem 0.875rem;
    background: var(--azul-botao);
    border-radius: 1.875rem;
    color: var(--branco);
    font-size: 0.5625rem;
    letter-spacing: .3px;
}

.card-largo .datas a:hover,
.card-largo .datas a:focus-visible {
    background: var(--azul-texto);
}

.card-v {
    display: flex;
    flex-direction: column;
    width: 14.5625rem;
    min-height: 20.9375rem;
    border: 0.1875rem solid var(--azul);
    border-radius: 2.125rem;
}

.card-v img {
    width: 100%;
    height: 10.5rem;
    object-fit: cover;
}

.card-v .info {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.875rem 0.75rem 1.125rem;
}

.card-v p {
    flex: 1;
}

.card-v .btn {
    width: 10rem;
    height: 2.25rem;
    font-size: 0.75rem;
    margin-top: 0.75rem;
}

.lista {
    display: none;
    width: 100%;
}

.card.aberto img,
.card.aberto .texto,
.card.aberto .ver {
    display: none;
}

.card.aberto .lista {
    display: block;
}

.card.aberto .info {
    padding-top: 1.375rem;
    padding-bottom: 1.375rem;
}

.datas {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-height: 16rem;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--dourado) transparent;
    margin: 0.75rem 0 0.25rem;
    font-size: 0.625rem;
    font-weight: 600;
}

.datas a {
    padding: 0.3125rem 0.5rem;
    color: inherit;
    text-align: center;
    text-decoration: none;
    transition: background .15s, color .15s;
}

.datas a:nth-child(odd) {
    background: rgba(13, 42, 107, .07);
}

.datas a:hover,
.datas a:focus-visible {
    background: var(--azul-botao);
    color: var(--branco);
    outline: 0;
}

.datas .feriado {
    color: var(--azul-texto);
    font-weight: 800;
    text-transform: uppercase;
}

.banner {
    transition: background-image .4s;
}

.troca {
    animation: troca .5s ease;
}

@keyframes troca {
    from { opacity: .35; }
    to { opacity: 1; }
}

/* parallax: a foto fica numa camada 40% mais alta que a faixa e o JS
   desloca essa camada (--parallax) mais devagar que a rolagem */
.faixa {
    --faixa-img: url(../img/hoteis/portoalto/faixa.webp?v=21);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 28.25rem;
    margin-top: 10rem;
    padding: 0 1rem;
    overflow: hidden;
    background: var(--fundo);
}

.faixa::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -20%;
    height: 140%;
    background: var(--faixa-img) center / cover no-repeat;
    transform: translate3d(0, var(--parallax, 0px), 0);
    will-change: transform;
}

.faixa p {
    position: relative;
    color: var(--creme);
    font-size: 4.25rem;
    font-weight: 800;
    line-height: 1;
    text-align: center;
    text-transform: uppercase;
    text-shadow: 0 0.125rem 1.5rem rgba(0, 0, 0, .35);
}

.sobre {
    display: flex;
    align-items: center;
    gap: 3.8125rem;
    max-width: 49.8125rem;
    margin: 6.5625rem auto 0;
    padding: 0 1rem;
}

.sobre img {
    width: 17.75rem;
    height: auto;
    flex-shrink: 0;
    border-radius: 0 3.75rem 0 3.75rem;
}

.sobre h2 {
    font-size: 1.5rem;
    font-weight: 800;
    text-transform: uppercase;
}

.sobre p {
    font-size: 1rem;
    line-height: 1.85;
    margin-top: 1.25rem;
}

.regulamento {
    text-align: center;
    margin-top: 5.8125rem;
}

.regulamento button {
    background: none;
    border: 0;
    color: var(--branco);
    font-size: 0.75rem;
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 0.2rem;
    text-transform: uppercase;
}

.regulamento button:hover {
    color: var(--dourado);
}

body:has(.modal[open]) {
    overflow: hidden;
}

.modal {
    position: relative;
    width: min(46rem, calc(100% - 2rem));
    margin: auto;
    background: var(--creme);
    color: var(--texto);
    border: 0.25rem solid var(--dourado);
    border-radius: 1.5rem;
    overflow: hidden;
}

.modal-conteudo {
    max-height: 85vh;
    padding: 2.5rem 3.5rem 2.5rem 2.75rem;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--dourado) transparent;
}

.modal::backdrop {
    background: rgba(5, 10, 16, .8);
}

.modal h2 {
    color: var(--azul-texto);
    font-size: 1.5rem;
    font-weight: 800;
    text-transform: uppercase;
}

.modal h3 {
    color: var(--dourado);
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.15rem;
    text-transform: uppercase;
    margin: 0.25rem 0 1.5rem;
}

.modal h4 {
    color: var(--azul-texto);
    font-size: 1rem;
    font-weight: 800;
    margin: 1.75rem 0 0.5rem;
}

.modal h5 {
    color: var(--azul-texto);
    font-size: 0.875rem;
    font-weight: 700;
    margin: 1.25rem 0 0.25rem;
}

.modal p {
    font-size: 0.875rem;
    line-height: 1.7;
    margin-top: 0.625rem;
}

.modal .fecha {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    z-index: 1;
    width: 2.25rem;
    height: 2.25rem;
    background: var(--azul-botao);
    border: 0;
    border-radius: 50%;
    color: var(--branco);
    font-size: 1.5rem;
    line-height: 1;
}

.modal .fecha:hover {
    background: var(--azul-texto);
}

footer {
    margin-top: 3.5625rem;
}

footer img {
    width: 6.125rem;
    height: auto;
    margin: 0 auto 2.5625rem;
}

footer .barra {
    height: 1.25rem;
    background: var(--dourado);
}

@media (max-width: 768px) {
    /* no mobile o banner mostra só o miolo da arte (45% central: logo, BLACK e 50%),
       maior e legível; hero-m é esse recorte. Selos recalculados para o recorte */
    .banner {
        aspect-ratio: 864 / 545;
        background-image: url(../img/hoteis/portoalto/hero-m.webp?v=21);
    }

    .selo {
        width: 12.2%;
    }

    .selo-juros {
        left: 30%;
    }

    .selo-pix {
        left: 70.4%;
    }

    .titulo h1 {
        font-size: 1.375rem;
    }

    .card p {
        font-size: 0.8125rem;
        line-height: 1.55;
    }

    /* no mobile o texto usa a largura do card, sem a coluna estreita do desktop */
    .card-h p,
    .card-v p {
        max-width: 19rem;
        flex: none;
    }

    .card-h .info,
    .card-v .info {
        padding: 1.25rem 1.5rem 1.5rem;
    }

    .card h3 br {
        display: none;
    }

    .datas {
        gap: 0.375rem;
        max-height: 24rem;
        margin: 1rem 0 0.5rem;
        font-size: 0.875rem;
    }

    .datas a {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 2.75rem;
        padding: 0.625rem 0.875rem;
        background: rgba(13, 42, 107, .07);
        border-radius: 0.625rem;
    }

    .card .voltar {
        width: 10rem;
        height: 2.75rem;
        margin-top: 0.75rem;
    }

    .linha1,
    .linha2 {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }

    .card-h {
        flex-direction: column;
        width: 100%;
        max-width: 24.75rem;
    }

    .card-h img {
        width: 100%;
        height: 11.25rem;
        object-position: center;
    }

    .card-largo .datas a,
    .card-largo .datas a:nth-child(odd) {
        min-height: 2.75rem;
        padding: 0.625rem 1.125rem;
        font-size: 0.75rem;
        border-radius: 1.875rem;
    }

    /* no mobile todos os cards têm a mesma largura e a mesma altura de foto */
    .card-v {
        width: 100%;
        max-width: 24.75rem;
        min-height: 0;
    }

    .card-v img {
        height: 11.25rem;
    }

    .faixa {
        height: 13.75rem;
        margin-top: 5rem;
    }

    .faixa p {
        font-size: clamp(1.25rem, 6.5vw, 2.5rem);
        white-space: nowrap;
    }

    .sobre {
        flex-direction: column;
        gap: 1.875rem;
        margin-top: 3.75rem;
    }

    .sobre img {
        width: 100%;
        max-width: 18.75rem;
    }
}
