/* ================= BASE ================= */

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    background: #001C48;
    color: whitesmoke;
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
}

body {
    background-image:
        radial-gradient(circle at 15% 10%, rgba(246, 218, 22, 0.06), transparent 40%),
        radial-gradient(circle at 85% 90%, rgba(125, 49, 34, 0.18), transparent 45%);
    min-height: 100vh;
}

a {
    color: inherit;
}

/* ---------- CABEÇALHO ---------- */
.cabecalho {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    padding: 48px clamp(20px, 6vw, 72px) 28px;
    border-bottom: 1px solid rgba(246, 218, 22, .12);
    flex-wrap: wrap;
}

.cabecalho-marca {
    display: block;
    font-family: "Bodoni Moda", serif;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #CE9B02;
    margin-bottom: 10px;
}

.cabecalho h1 {
    margin: 0;
    font-family: "Yantramanav", sans-serif;
    font-weight: 200;
    font-variant: small-caps;
    letter-spacing: 0.01em;
    line-height: 1.05;
    font-size: clamp(28px, 4.4vw, 46px);
    opacity: 0.95;
}

.botao-voltar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    cursor: pointer;

    padding: 12px 28px;
    border: none;
    border-radius: 14px;

    background-color: #CE9B02;
    color: #001C48;
    font-variant: small-caps;
    font-size: 1rem;
    font-weight: 700;

    box-shadow: 0 6px 20px rgba(0, 0, 0, .35);
    transition: .3s;
    white-space: nowrap;
}

.botao-voltar:hover {
    background: #7D3122;
    color: whitesmoke;
    transform: translateY(-2px);
}

.botao-voltar svg {
    width: 14px;
    height: 14px;
}

/* ---------- GALERIA / CARROSSEL ---------- */
.galeria {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    padding: 44px clamp(16px, 5vw, 40px) 80px;
}

.carrossel {
    position: relative;
}

.foto-area {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    border-radius: 20px;
    overflow: hidden;
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(246, 218, 22, .12);
    transition: border-color .3s ease;
}

.foto-area:hover {
    border-color: rgba(246, 218, 22, .3);
}

.foto-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
}

.foto-slide.slide-ativo {
    position: relative;
    opacity: 1;
    visibility: visible;
}

.foto-area img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.foto-area::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.categoria {
    position: absolute;
    top: 18px;
    left: 18px;
    background: rgba(0, 28, 72, 0.78);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(246, 218, 22, .3);
    color: #F6DA16;
    font-family: "Bodoni Moda", serif;
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 7px 14px;
    border-radius: 999px;
}

/* setas de navegação */
.seta {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(246, 218, 22, .3);
    background: rgba(0, 28, 72, 0.6);
    backdrop-filter: blur(6px);
    color: #F6DA16;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background .3s ease, border-color .3s ease, transform .2s ease, color .3s ease;
    z-index: 3;
}

.seta:hover {
    background: #7D3122;
    border-color: #7D3122;
    color: whitesmoke;
}

.seta:active {
    transform: translateY(-50%) scale(0.94);
}

.seta-anterior {
    left: 16px;
}

.seta-proxima {
    right: 16px;
}

.seta svg {
    width: 20px;
    height: 20px;
}

.botao-pausar {
    position: absolute;
    bottom: 16px;
    right: 16px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(246, 218, 22, .3);
    background: rgba(0, 28, 72, 0.6);
    backdrop-filter: blur(6px);
    color: #F6DA16;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: border-color .3s ease, color .3s ease;
    z-index: 3;
}

.botao-pausar:hover {
    border-color: #F6DA16;
    color: whitesmoke;
}

.botao-pausar svg {
    width: 15px;
    height: 15px;
}

/* ---------- LEGENDA ---------- */
.legenda {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    padding: 22px 4px 22px;
    border-bottom: 1px solid rgba(246, 218, 22, .12);
    flex-wrap: wrap;
}

.legenda-titulo {
    margin: 0 0 6px;
    font-family: "Yantramanav", sans-serif;
    font-weight: 500;
    font-variant: small-caps;
    letter-spacing: 0.01em;
    font-size: clamp(19px, 2.4vw, 25px);
    color: whitesmoke;
}

.legenda-descricao {
    margin: 0;
    color: rgba(245, 245, 245, .75);
    font-size: 14.5px;
    line-height: 1.6;
    max-width: 56ch;
}

.legenda-local {
    color: #CE9B02;
    font-family: "Bodoni Moda", serif;
    font-weight: 600;
    font-size: 12.5px;
    letter-spacing: 0.04em;
    margin-top: 10px;
    display: inline-block;
}

.contador {
    font-family: "Bodoni Moda", serif;
    font-size: 13px;
    color: rgba(245, 245, 245, .6);
    white-space: nowrap;
    padding-top: 4px;
}

.contador-numero {
    color: #F6DA16;
    font-weight: 900;
    font-size: 19px;
}

/* ---------- NAVEGAÇÃO POR MINIATURAS NUMERADAS ---------- */
.navegacao {
    margin-top: 26px;
    position: relative;
    padding: 18px 4px 6px;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
}

.navegacao-lista {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-width: max-content;
    gap: 0;
    height: 46px;
    background:
        repeating-linear-gradient(90deg,
            rgba(246, 218, 22, 0.1) 0px,
            rgba(246, 218, 22, 0.1) 1px,
            transparent 1px,
            transparent 100%);
}

.navegacao-item {
    position: relative;
    width: 64px;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    border: none;
    background: none;
    cursor: pointer;
    font-family: "Bodoni Moda", serif;
    font-weight: 700;
    color: rgba(245, 245, 245, .5);
    flex-shrink: 0;
}

.navegacao-item::before {
    content: '';
    display: block;
    width: 1px;
    height: 14px;
    background: rgba(246, 218, 22, .3);
    margin-bottom: 6px;
    transition: height .2s ease, background .2s ease;
}

.navegacao-item span {
    font-size: 11.5px;
    letter-spacing: 0.03em;
    transition: color .2s ease;
}

.navegacao-item:hover::before {
    background: #CE9B02;
}

.navegacao-item:hover span {
    color: whitesmoke;
}

.navegacao-item.item-ativo::before {
    height: 26px;
    background: #F6DA16;
    width: 2px;
}

.navegacao-item.item-ativo span {
    color: #F6DA16;
    font-weight: 900;
}

.navegacao-linha-base {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: rgba(246, 218, 22, .12);
}

/* aviso para quem for editar o arquivo */
.aviso {
    position: relative;
    z-index: 1;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 clamp(16px, 5vw, 40px) 60px;
    color: rgba(245, 245, 245, .55);
    font-family: "Bodoni Moda", serif;
    font-size: 12px;
    line-height: 1.7;
    border-top: 1px dashed rgba(246, 218, 22, .12);
    padding-top: 20px;
}

.aviso code {
    color: #F6DA16;
}

/* ================= MOBILE ================= */

@media (max-width: 768px) {

    .cabecalho {
        padding: 2rem 1.2rem;
        gap: 1.5rem;
        align-items: flex-start;
    }

    .cabecalho h1 {
        font-size: 2rem;
        line-height: 1.2;
    }

    .cabecalho-marca {
        font-size: .8rem;
    }

    .botao-voltar {
        width: 100%;
        justify-content: center;
    }

    .galeria {
        padding: 2rem 1rem 4rem;
    }

    .foto-area {
        border-radius: 16px;
        aspect-ratio: 4 / 3;
    }

    .categoria {
        top: 12px;
        left: 12px;
        font-size: .65rem;
        padding: 6px 10px;
    }

    .seta {
        width: 42px;
        height: 42px;
    }

    .seta-anterior {
        left: 8px;
    }

    .seta-proxima {
        right: 8px;
    }

    .botao-pausar {
        width: 34px;
        height: 34px;
        right: 10px;
        bottom: 10px;
    }

    .legenda {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .legenda-titulo {
        font-size: 1.5rem;
    }

    .legenda-descricao {
        font-size: .95rem;
        max-width: 100%;
    }

    .legenda-local {
        font-size: .8rem;
    }

    .contador {
        padding-top: 0;
    }

    .contador-numero {
        font-size: 1.2rem;
    }

    .navegacao {
        margin-top: 1.5rem;
        padding: 1rem 0 .5rem;
    }

    .navegacao-item {
        width: 52px;
    }

    .navegacao-item span {
        font-size: .7rem;
    }

    .aviso {
        padding: 2rem 1rem;
        font-size: .75rem;
    }

}

@media (max-width: 480px) {

    .cabecalho {
        padding: 1.5rem 1rem;
    }

    .cabecalho h1 {
        font-size: 1.7rem;
    }

    .botao-voltar {
        font-size: .9rem;
        padding: 12px;
    }

    .foto-area {
        aspect-ratio: 1 / 1;
    }

    .seta {
        width: 36px;
        height: 36px;
    }

    .seta svg {
        width: 16px;
        height: 16px;
    }

    .categoria {
        font-size: .6rem;
        padding: 5px 8px;
    }

    .legenda-titulo {
        font-size: 1.3rem;
    }

    .legenda-descricao {
        font-size: .9rem;
    }

    .navegacao-item {
        width: 46px;
    }

}