@font-face {
    font-family: 'Montserrat';
    src: url('../fonts/Montserrat-VariableFont_wght.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
}

@font-face {
    font-family: 'Montserrat';
    src: url('../fonts/Montserrat-Italic-VariableFont_wght.ttf') format('truetype');
    font-weight: 100 900;
    font-style: italic;
}

body,
h1,
h2,
h3,
h4,
h5,
p,
span,
ul,
li {
    font-family: 'Montserrat';
}

body {
    margin: 0;
}

a {
    text-decoration: none;
    color: unset;
}

.a-link-artigo {
    transition: text-shadow 0.3s ease;
}

.a-link-artigo:hover {
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

.img-link-artigo {
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.img-link-artigo:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
    opacity: 0.7;
    /* opcional, dá efeito de elevação */
}

header {
    background: linear-gradient(to right, #c62828, #e53935, #d32f2f);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    /* linha divisória */
}

.box-header-bt-left,
.nav-icons {
    width: 145px;
}

.header-bg {
    color: white;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
}



.nav-icons a {
    color: white;
    margin-left: 4px;
    font-size: 1.2rem;

}

.nav-icons img {
    width: 28px;
}

.menu-toggle {
    font-size: 1.5rem;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
}

nav {
    background: linear-gradient(to right, #c62828, #e53935, #d32f2f);
    display: flex;
    justify-content: center;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
}

nav ul {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0;
}

nav li {
    position: relative;
}

nav a,
nav span {
    color: white;
    text-decoration: none;
    font-weight: bold;
    padding: 15px 10px;
    display: block;
    cursor: pointer;
}

nav a:hover,
nav span:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

nav .dropdown-content {
    display: none;
    position: absolute;
    background-color: #d62828;
    top: 100%;
    left: 0;
    min-width: 150px;
    z-index: 1;
}

nav .dropdown-content a {
    padding: 10px;
    white-space: nowrap;
}

nav .dropdown:hover .dropdown-content {
    display: block;
}

/* Sidebar */
.sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    display: none;
    z-index: 999;
}

.sidebar {
    position: fixed;
    top: 0;
    left: -300px;
    width: 260px;
    height: 100%;
    background-color: #d62828;
    color: white;
    padding: 20px;
    transition: left 0.3s ease;
    z-index: 1000;
}

.sidebar.active {
    left: 0;
}

.sidebar-overlay.active {
    display: block;
}

.sidebar ul {
    list-style: none;
    padding: 0;
}

.sidebar a,
.sidebar span {
    display: block;
    padding: 10px 0;
    color: white;
    text-decoration: none;
    font-weight: bold;
    cursor: pointer;
}

.sidebar .dropdown-content {
    display: none;
    padding-left: 15px;
}

.sidebar .dropdown.open .dropdown-content {
    display: block;
}

.sidebar .close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    float: right;
    cursor: pointer;
    margin-bottom: 20px;
}

button#menuToggle:before {
    content: "";
    width: 1px;
    height: 24px;
    background: #ffffffbf;
    position: absolute;
    left: 60px;
    top: 14px;
}

.logo a img {
    width: 115px;
}

button#openSearchModal {
    margin-left: 7px;
}

.input-pesquisa {
    border: none;
    padding: 8px;
    border-bottom: 1px solid #575454;
}

.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
    background-color: white;
    margin: 10% auto;
    padding: 20px;
    border-radius: 8px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    box-sizing: border-box;
}

.modal-content input[type="text"] {
    width: 80%;
    padding: 10px;
    margin-top: 15px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.modal-content button {
    padding: 10px 20px;
    background-color: #d62828;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.modal-content button:hover {
    background-color: #bb2020;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: black;
}

#sidebar ul li a {
    border-bottom: 1px solid #ffffff1f;
}

.nav-horizontal ul {
    justify-content: space-around;
}

/* Responsivo */

@media screen and (max-width: 1111px) {
    nav ul li {
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    nav {
        display: none;
    }
}

@media(max-width: 450px) {

    .box-header-bt-left,
    .nav-icons {
        width: auto;
    }


}

@media(max-width: 380px) {
    .logo a img {
        width: 70px;
    }

    .nav-icons img {
        width: 22px;
    }

    .nav-icons a {
        margin-left: 2px;
    }
}