:root {
    /* Cores */
    --preto: #000000;
    --placeholder: #6c737c;
    --branco: #ffffff;
    --cor-primaria: #355bfb;
    --cor-secundaria: #183edd;
    --cor-tercearia: #0E2D79;
    --destaque: #50a7ea;
    --cor-card: #0d3078;
    --background1: #e8e7e8;
    --inputs-bg: #f1f1f1;
    --gradiente1: #5c7af7;
    --gradiente2: #74e5ea;
    --background2: #06226a;

    /* Fontes */
    --fonte-padrao: "Inter", sans-serif;
    --fonte-navbar: var(--fonte-padrao);
    --fonte-placeholder: var(--fonte-padrao);
    --fonte-topbar: var(--fonte-padrao);
    --fonte-titulos: var(--fonte-padrao);
    --fonte-footer: var(--fonte-padrao);
    --tamanho-navbar: 22px;
    --tamanho-placeholder: 22px;
    --tamanho-topbar: 22px;
    --tamanho-h2: 48px;
    --tamanho-footer: 18px;

    --header-height: 4rem;
    --search-bar-height: 3rem;
    --total-offset: calc(var(--header-height) + var(--search-bar-height));
    --animation-duration: 0.4s;
}

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;700&display=swap');

* {
    font-family: "Inter", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
}


/* Main container */
.gradient-header {
    background: linear-gradient(to right,
            var(--gradiente1),
            var(--gradiente2));
}

.gradient-header-icons {
    margin: 20px;
}

/* noticias */
.left {
    background: #2900ff;
    border-radius: 15px;
}

.img-noticia {
    width: 10rem !important;
    height: 6rem !important;
    max-width: 100% !important;
    object-fit: cover;
    margin-right: 3rem;
}

.img-cidade {
    width: 40rem !important;
    height: 22rem !important;
    max-width: 100% !important;
    object-fit: cover;
    border-radius: 10px !important;
    justify-self: self-end;
    margin-bottom: 2.5rem;
}

/* Cidade */
.img-width-cidade {
    width: 290px !important;
    max-width: 100%;
    height: 290px !important;
    max-height: 100%;
}

.effect {
    background-color: transparent;
    backdrop-filter: blur(10px);
    width: 100%;
    padding: 0 1rem;
}

.news-item {
    position: relative;
    display: inline-block;
}

.news-item::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    /* Ajuste conforme necessário */
    background: linear-gradient(to top, rgba(0, 0, 0, 0.514), rgba(0, 0, 0, 0));
    pointer-events: none;
    /* Garante que o filtro não interfira nos cliques */
    z-index: 1;
}

.news-item img {
    width: 100%;
    display: block;
}

.text-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px;
    color: white;
    font-size: 1.2em;
    text-align: left;
    z-index: 2;
    /* Mantém o texto acima do efeito */
}

.bg-crochet {
    background-image: url('../present.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    padding: 2rem 0;
}

.top-section {
    position: relative;
    text-align: left;
}

.top-section img {
    width: 100%;
    border-radius: 10px;
    height: auto;
}

.text-overlay {
    position: absolute;
    bottom: 20px;
    left: 20px;
    color: white;
    font-size: 16px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    max-width: 80%;
}

.bottom-section {
    display: flex;
    gap: 10px;
    margin: 15px;
}

.bottom-section .event img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

img {
    width: 100% !important;
    object-fit: cover;
    max-width: 100% !important;
    border-radius: 8px !important;
}

#top-news-image {
    width: 800px !important;
    height: 400px !important;
    max-width: 100% !important;
    object-fit: cover;
}

#news-1-image,
#news-2-image {
    width: 380px !important;
    height: 200px !important;
    max-width: 100% !important;
    object-fit: cover;
}

.servicos {
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    width: 90%;
    max-width: 600px;
}

.card {
    background-color: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 20px;
    height: 100%;
}

.link-card {
    height: 100%;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 0;
    width: 100%;
    text-align: center;
}

.link-card p {
    margin: 0;
    width: 100%;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
    hyphens: auto;
    font-size: 0.875rem;
    line-height: 1.3;
}

@media (min-width: 640px) {
    .link-card p {
        font-size: 0.9375rem;
    }
}

.servicos-sw {
    position: relative !important;
    top: -15px !important;
    background-color: #ffffff;
    border-radius: 15px;
}

/* Altura fluida: textos longos quebram linha sem estourar o card */
.servicos-cards {
    height: auto;
    min-height: 0;
    align-items: stretch;
}

.servicos-cards>.card {
    min-width: 0;
}


.header {
    display: flex;
    justify-content: space-around;
    background: linear-gradient(to right, #4facfe, #00f2fe);
    padding: 20px 0;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
    z-index: 1;
}

.header div {
    text-align: center;
    color: white;
}

.header div i {
    font-size: 24px;
    margin-bottom: 5px;
}

.tabs-container {
    background-color: #f0f0f0;
    padding: 10px;
    border-radius: 0 0 15px 15px;
    position: relative;
    top: -20px;
    z-index: 1;
}

.tabs {
    display: flex;
    justify-content: space-around;
    background-color: white;
    border-radius: 20px;
    padding: 5px;
}

.tabs div {
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
}

.tabs .active {
    background-color: #d0eaff;
    color: #007bff;
}

.main-content {
    margin-top: 15rem !important;
}

.main-responsabilidade-fiscal {
    margin: 15rem !important;
}

.main-transparencia {
    margin-top: 10rem !important;
}

.main-noticia {
    margin-top: 8rem !important;
}


@media (max-width: 768px) {
    .main-content {
        margin-top: 10rem !important;
    }

    .img-noticia {
        margin-right: 0rem;
    }

    .text-base {
        font-size: 0.875rem;
    }
}

@media (max-width: 1024px) {
    .img-cidade {
        justify-self: center;
    }

}