@import url('https://fonts.googleapis.com/css2?family=Barlow:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

/* ==================================================
   BASE
================================================== */

html {
    position: relative;
    min-height: 100%;
    font-size: 14px;
    scroll-behavior: smooth;
}

body {
    font-weight: 400;
    font-style: normal;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

/* Classes utilitárias para a família Barlow */
    .barlow-thin {
    font-family: "Barlow", sans-serif;
    font-weight: 100;
}

.barlow-extralight {
    font-family: "Barlow", sans-serif;
    font-weight: 200;
}

.barlow-light {
    font-family: "Barlow", sans-serif;
    font-weight: 300;
}

.barlow-regular {
    font-family: "Barlow", sans-serif;
    font-weight: 400;
}

.barlow-medium {
    font-family: "Barlow", sans-serif;
    font-weight: 500;
}

.barlow-semibold {
    font-family: "Barlow", sans-serif;
    font-weight: 600;
}

.barlow-bold {
    font-family: "Barlow", sans-serif;
    font-weight: 700;
}

.barlow-extrabold {
    font-family: "Barlow", sans-serif;
    font-weight: 800;
}

.barlow-black {
    font-family: "Barlow", sans-serif;
    font-weight: 900;
}

.barlow-thin-italic {
    font-family: "Barlow", sans-serif;
    font-weight: 100;
    font-style: italic;
}

.barlow-extralight-italic {
    font-family: "Barlow", sans-serif;
    font-weight: 200;
    font-style: italic;
}

.barlow-light-italic {
    font-family: "Barlow", sans-serif;
    font-weight: 300;
    font-style: italic;
}

.barlow-regular-italic {
    font-family: "Barlow", sans-serif;
    font-weight: 400;
    font-style: italic;
}

.barlow-medium-italic {
    font-family: "Barlow", sans-serif;
    font-weight: 500;
    font-style: italic;
}

.barlow-semibold-italic {
    font-family: "Barlow", sans-serif;
    font-weight: 600;
    font-style: italic;
}

.barlow-bold-italic {
    font-family: "Barlow", sans-serif;
    font-weight: 700;
    font-style: italic;
}

.barlow-extrabold-italic {
    font-family: "Barlow", sans-serif;
    font-weight: 800;
    font-style: italic;
}

.barlow-black-italic {
    font-family: "Barlow", sans-serif;
    font-weight: 900;
    font-style: italic;
}

/* Classes utilitárias para Barlow Condensed */
.barlow-condensed-thin {
    font-family: "Barlow Condensed", sans-serif;
    font-weight: 100;
}

.barlow-condensed-extralight {
    font-family: "Barlow Condensed", sans-serif;
    font-weight: 200;
}

.barlow-condensed-light {
    font-family: "Barlow Condensed", sans-serif;
    font-weight: 300;
}

.barlow-condensed-regular {
    font-family: "Barlow Condensed", sans-serif;
    font-weight: 400;
}

.barlow-condensed-medium {
    font-family: "Barlow Condensed", sans-serif;
    font-weight: 500;
}

.barlow-condensed-semibold {
    font-family: "Barlow Condensed", sans-serif;
    font-weight: 600;
}

.barlow-condensed-bold {
    font-family: "Barlow Condensed", sans-serif;
    font-weight: 700;
}

.barlow-condensed-extrabold {
    font-family: "Barlow Condensed", sans-serif;
    font-weight: 800;
}

.barlow-condensed-black {
    font-family: "Barlow Condensed", sans-serif;
    font-weight: 900;
}

.barlow-condensed-thin-italic {
    font-family: "Barlow Condensed", sans-serif;
    font-weight: 100;
    font-style: italic;
}

.barlow-condensed-extralight-italic {
    font-family: "Barlow Condensed", sans-serif;
    font-weight: 200;
    font-style: italic;
}

.barlow-condensed-light-italic {
    font-family: "Barlow Condensed", sans-serif;
    font-weight: 300;
    font-style: italic;
}

.barlow-condensed-regular-italic {
    font-family: "Barlow Condensed", sans-serif;
    font-weight: 400;
    font-style: italic;
}

.barlow-condensed-medium-italic {
    font-family: "Barlow Condensed", sans-serif;
    font-weight: 500;
    font-style: italic;
}

.barlow-condensed-semibold-italic {
    font-family: "Barlow Condensed", sans-serif;
    font-weight: 600;
    font-style: italic;
}

.barlow-condensed-bold-italic {
    font-family: "Barlow Condensed", sans-serif;
    font-weight: 700;
    font-style: italic;
}

.barlow-condensed-extrabold-italic {
    font-family: "Barlow Condensed", sans-serif;
    font-weight: 800;
    font-style: italic;
}

.barlow-condensed-black-italic {
    font-family: "Barlow Condensed", sans-serif;
    font-weight: 900;
    font-style: italic;
}

/* Foco acessível */
.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
    box-shadow: 0 0 0 0.1rem #fff, 0 0 0 0.25rem #258cfb;
}

.form-floating > .form-control-plaintext::placeholder,
.form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder,
.form-floating > .form-control:focus::placeholder {
    text-align: start;
}

/* ==================================================
   HEADER E MENU
================================================== */

.titSite img {
    width: 100%;
    height: auto;
    padding: 1rem 0;
}

.menuSite .nav-item {
    padding: 0 2.5rem;
    background: #D4D4DE;
    color: #000;
}

    .menuSite .nav-item:hover {
        background: #b9dbb6;
        color: #fff;
    }

.menuSite a.nav-link {
    color: #fff;
    font-family: "Barlow", sans-serif;
    font-weight: 600;
}

.menuSite .dropdown-menu {
    font-size: 1.25em;
}

/* Menu específico da página Paisagens */
.custom-Paisagens-navbar {
    background: transparent;
}

    .custom-Paisagens-navbar .navbar-toggler {
        border: none;
        background-color: #666;
        padding: 6px 10px;
        border-radius: 4px;
    }

    .custom-Paisagens-navbar .navbar-toggler-icon {
        background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='white' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
    }

    .custom-Paisagens-navbar .nav-link {
        color: #666;
        font-weight: 600;
    }

        .custom-Paisagens-navbar .nav-link:hover {
            color: #fff;
        }

@media (max-width: 768px) {
    .custom-Paisagens-navbar button.navbar-toggler {
        position: absolute;
        left: .25rem;
        margin-top: -1.5rem;
    }

    .menuSite .navbar-collapse {
        margin: -1.5rem .5rem 0 0;
    }
}

/* ==================================================
   BOTÕES E ELEMENTOS DE NAVEGAÇÃO
================================================== */

.bdRight {
    border-right: 2px solid #fff;
}

.btnVoltar a {
    float: right;
    color: #000 !important;
    border: 2px solid #999;
    background: #fff;
    border-radius: 5rem;
    text-decoration: none;
    padding: .25rem 2rem;
    font-size: .9em;
    font-weight: 600;
}

    .btnVoltar a:hover {
        color: #fff !important;
        border-color: #666;
        background: #666;
    }

.btn-custom {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    margin-top: 2rem;
    padding: 0;
    border: none;
    border-radius: .25rem;
    background: #fff;
    color: #652b41;
    font-weight: 500;
    box-shadow: 0 4px 8px rgba(0, 0, 0, .25);
    transition: transform .3s ease, box-shadow .3s ease;
}

    .btn-custom a {
        display: block;
        width: 100%;
        text-decoration: none;
        color: #652b41;
    }

        .btn-custom a:hover {
            color: #fff;
        }

    .btn-custom img {
        width: 100%;
        height: auto;
        border-radius: .25rem;
    }

    .btn-custom:hover {
        transform: translateY(-3px) scale(1.03);
        box-shadow: 0 6px 14px rgba(0, 0, 0, .25);
    }

.btn-danger a,
.btn-dark a {
    color: #fff;
    font-size: 1.25em;
    text-decoration: none;
}

.btnBig {
    font-size: 1.1em;
}

/* ==================================================
   IMAGENS E CONTEÚDO
================================================== */

.img100 img,
img.img100 {
    width: 100%;
    height: auto;
}

.imgRadius img {
    border-radius: .35rem;
}

.imgTopPage img {
    width: 100%;
    height: auto;
}

.maxImg img,
img.maxImg {
    width: 100%;
    max-width: 400px;
    height: auto;
}

.img-full-height {
    width: 100%;
    height: 100%;
}

    .img-full-height img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

@media (max-width: 767px) {
    .img-full-height {
        height: 300px;
    }
}

/* ==================================================
   TIPOGRAFIA E TEXTOS
================================================== */

.textHome {
    font-family: "Barlow Condensed", sans-serif !important;
    font-size: 1.45em;
    font-weight: 400;
    line-height: 140%;
}

    .textHome p {
        margin-bottom: .8em;
    }

.textCidTempos {
    font-family: "Barlow Condensed", sans-serif !important;
    font-size: 1.55em;
    font-weight: 400;
    line-height: 140%;
    text-align: justify;
}

    .textCidTempos .small {
        line-height: 120%;
    }

    .textCidTempos h1 {
        color: #333;
        font-size: 1.75em;
        text-align: center;
    }

    .textCidTempos h2 {
        color: #999;
        font-size: 1.35em;
        text-align: center;
        margin-bottom: 2rem;
    }

    .textCidTempos h3 {
        background: #894B43;
        color: #fff;
        padding: .25rem .75rem;
        margin-bottom: 3rem;
    }

    .textCidTempos h4 {
        color: #894B43;
        font-size: 1.25em;
        margin-bottom: 1rem;
    }

    .textCidTempos h5 {
        background: #e8e8e8;
        color: #000;
        font-size: 1.25em;
        padding: .25rem .75rem;
        margin-bottom: 3rem;
    }

        .textCidTempos h5 span {
            font-size: .7em;
            font-weight: 300;
        }

    .textCidTempos p {
        margin-bottom: 1.15rem;
    }

    .textCidTempos a:hover {
        color: #999;
    }

    .textCidTempos .FichaCidTempos {
        font-size: .9em;
    }

        .textCidTempos .FichaCidTempos h2 {
            margin-top: 3rem;
        }

    .textCidTempos p.legendLightbox {
        font-family: "Barlow Condensed", sans-serif !important;
        font-size: 1.1em;
        font-weight: 600;
    }

.textCidTemposArt {
    color: #333;
    font-size: .95em;
}

.legendLightbox span {
    font-size: .9em;
    font-weight: 400;
}

.lineH {
    line-height: 125%;
}

.boxText {
    font-size: .95em;
    line-height: 125%;
}

.smallAss {
    font-size: .8em;
    font-weight: 700;
}

    .smallAss span {
        font-size: .9em;
        font-weight: 400;
    }

.smallText {
    font-size: .8em;
}

.legend {
    font-family: "Barlow Condensed", sans-serif !important;
    font-size: 1em;
    line-height: 135%;
    color: #666;
}

.legendSM {
    font-family: "Barlow Condensed", sans-serif !important;
    font-size: .8em;
    line-height: 135%;
    color: #666;
}

    .legend span,
    .legendSM span {
        font-weight: 600;
    }

.download {
    color: #666;
}

    .download a {
        color: #666;
        text-decoration: none;
    }

        .download a:hover {
            color: #000;
        }

/* ==================================================
   CAIXAS E CARDS DE CONTEÚDO
================================================== */

.boxPage {
    display: flex;
    flex-wrap: wrap;
    overflow: hidden;
    padding: 2rem 1rem 1rem;
    border-radius: .35rem;
    background: rgba(0, 0, 0, .05);
}

.bdPage {
    display: flex;
    flex-wrap: wrap;
    overflow: hidden;
    border: 1px solid #D4D4DE;
    border-radius: .35rem;
}

/* Card personalizado */
.card-custom {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    width: 100%;
    max-width: 1080px;
    margin: 2rem auto;
    overflow: hidden;
    opacity: 1;
    transform: scale(1);
    transform-origin: center;
    transition: opacity .5s ease, transform .5s ease;
}

    .card-custom img {
        width: 30%;
        object-fit: cover;
    }

    .card-custom.show {
        opacity: 1;
        transform: scale(1);
    }

    .card-custom.hide {
        opacity: 0;
        transform: scale(.6);
    }

.card-body {
    flex: 1;
    padding: 20px;
}

.cardMB {
    min-height: 330px;
}

    .cardMB .card-title {
        background: linear-gradient(90deg, #919191 0%, #e8e8e8 99%);
        color: #fff;
        font-size: 1.75em;
        padding: .25rem 1rem;
        border-radius: .5rem;
        margin-bottom: 1rem;
    }

    .cardMB .card-text {
        font-size: .9em;
    }

/* Animações dos cards */
@keyframes zoomFadeLevitate {
    0% {
        transform: scale(.9) translateY(10px);
        opacity: 0;
    }

    50% {
        transform: scale(1.02) translateY(-5px);
        opacity: .8;
    }

    100% {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

@keyframes zoomFadeOut {
    0% {
        transform: scale(1) translateY(0);
        opacity: 1;
    }

    100% {
        transform: scale(.9) translateY(10px);
        opacity: 0;
    }
}

.card-fade,
.card-fade-in {
    animation: zoomFadeLevitate .6s ease forwards;
}

.card-fade-out {
    animation: zoomFadeOut .3s ease forwards;
}

/* Indicador de carregamento */
.loader {
    display: none;
    width: 40px;
    height: 40px;
    margin: 20px auto;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #000;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

    .loader.show {
        display: block;
    }

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Responsividade dos cards */
@media (max-width: 768px) {
    .responsive-flex {
        display: flex;
        flex-direction: row;
        align-items: flex-start;
        gap: 20px;
    }

    .content {
        flex: 1;
        margin-top: 0;
        margin-right: 15px;
    }

    .card-custom {
        flex-direction: column;
        margin-right: 15px;
    }

        .card-custom img {
            width: 100%;
            max-height: 200px;
        }
}

/* ==================================================
   BOTÃO VOLTAR AO TOPO
================================================== */

#backToTop {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    background-color: #666;
    color: #fff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, .3);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity .4s ease, visibility .4s ease;
}

    #backToTop.show {
        opacity: 1;
        visibility: visible;
    }

@media (hover: hover) {
    #backToTop:hover {
        opacity: .85;
    }
}

@media (max-width: 576px) {
    #backToTop {
        right: 15px;
        bottom: 15px;
        width: 45px;
        height: 45px;
        font-size: 16px;
    }
}

/* ==================================================
   GALERIA DE FOTOS
================================================== */

/* Imagem de identificação no título */
.titCidTempos img {
    float: right;
    width: 150px;
    height: auto;
    padding-bottom: .5rem;
    opacity: .6;
}

h1.titCidTempos img {
    max-width: 120px;
    height: auto;
    opacity: .7;
}

.GaleriaCidTempos-container {
    margin: auto;
}

.GaleriaCidTempos-galeria {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
    gap: 24px;
}

.GaleriaCidTempos-item {
    position: relative;
    align-self: start;
    overflow: hidden;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .08);
    cursor: pointer;
    transition: transform .35s ease, box-shadow .35s ease;
}

    .GaleriaCidTempos-item:hover {
        transform: translateY(-6px);
        box-shadow: 0 7px 15px rgba(0, 0, 0, .5);
    }

    .GaleriaCidTempos-item img {
        display: block;
        width: 100%;
        height: 320px;
        object-fit: cover;
        cursor: pointer;
    }

.GaleriaCidTempos-legenda {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 10px 12px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 1));
    color: #fff;
    font-size: .85em;
    line-height: 1.2;
    text-shadow: 5px 5px 10px rgba(0, 0, 0, 1);
}

/* Lightbox / carrossel de imagens */
.GaleriaCidTempos-lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 50px 80px;
    background: rgba(0, 0, 0, .8);
    backdrop-filter: blur(6px);
    visibility: hidden;
    opacity: 0;
    transition: opacity .3s ease, visibility .3s ease;
}

    .GaleriaCidTempos-lightbox.GaleriaCidTempos-ativa {
        visibility: visible;
        opacity: 1;
    }

.GaleriaCidTempos-conteudo {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.GaleriaCidTempos-imagem {
    display: block;
    max-width: 100%;
    max-height: calc(100% - 65px);
    object-fit: contain;
    transition: opacity .2s ease;
}

.GaleriaCidTempos-legenda-ampliada {
    margin-top: 18px;
    color: #fff;
    font-size: 16px;
    text-align: center;
    white-space: pre-line;
    line-height: 1.2;
}

.GaleriaCidTempos-contador {
    margin-top: 6px;
    color: #ccc;
    font-size: 13px;
}

/* Fechar lightbox */
.GaleriaCidTempos-fechar {
    position: absolute;
    top: 15px;
    right: 25px;
    z-index: 10;
    width: 46px;
    height: 46px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, .15);
    color: #fff;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    transition: background .25s ease, color .25s ease;
}

    .GaleriaCidTempos-fechar:hover {
        background: #fff;
        color: #000;
    }

/* Setas do carrossel */
.GaleriaCidTempos-nav {
    position: absolute;
    top: 50%;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .15);
    color: #fff;
    font-size: 32px;
    cursor: pointer;
    user-select: none;
    transform: translateY(-50%);
    transition: background .25s ease, color .25s ease;
}

    .GaleriaCidTempos-nav:hover {
        background: #fff;
        color: #000;
    }

.GaleriaCidTempos-prev {
    left: 5%;
}

.GaleriaCidTempos-next {
    right: 5%;
}

/* Responsividade da galeria e do lightbox */
@media (max-width: 1200px) {
    .GaleriaCidTempos-galeria {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .GaleriaCidTempos-galeria {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .GaleriaCidTempos-lightbox {
        padding: 50px 15px;
    }

    .GaleriaCidTempos-imagem {
        max-height: 75%;
    }

    .GaleriaCidTempos-nav {
        width: 48px;
        height: 48px;
        font-size: 26px;
    }

    .GaleriaCidTempos-prev {
        left: 0;
    }

    .GaleriaCidTempos-next {
        right: 0;
    }

    .GaleriaCidTempos-fechar {
        top: 10px;
        right: 10px;
    }
}

@media (max-width: 500px) {
    .GaleriaCidTempos-galeria {
        grid-template-columns: 1fr;
    }
}
