:root {
    --navy: #07304d;
    --navy-dark: #05253c;
    --lime: #dff22f;
    --paper: #ffffff;
    --soft-gray: #f2f1ee;
    --border: #aeb5b9;
    --text: #141b20;
    --muted: #66717a;

    --serif:
        "Libre Caslon Text",
        Georgia,
        serif;

    --sans:
        "DM Sans",
        Arial,
        sans-serif;

    --page-width: 1440px;
    --content-width: 1360px;
}


/* ==================================
   RESET
================================== */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    background: #e9eaeb;
    font-family: var(--sans);
    font-size: 14px;
    line-height: 1.45;
    -webkit-font-smoothing: antialiased;
}

.site-frame {
    width: 100%;
    max-width: var(--page-width);
    min-height: 100vh;
    margin: 0 auto;
    background: var(--paper);
    box-shadow:
        0 0 24px
        rgba(0, 0, 0, 0.07);
}

a {
    color: inherit;
    text-decoration: none;
}

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

button,
input,
select,
textarea {
    font: inherit;
}

.editorial-container {
    width: calc(100% - 48px);
    max-width: var(--content-width);
    margin-right: auto;
    margin-left: auto;
}

.editorial-header {
    position: relative;
    min-height: 235px;

    background-image: var(--header-background);
    background-repeat: no-repeat;
    background-position: center bottom;

    /*
     * Mantém a largura desejada e ajusta a imagem
     * exatamente à altura disponível.
     */
    background-size: 100% 205px;
}

@media (max-width: 767.98px) {
    .editorial-header {
        min-height: 170px;
        background-image: none;
    }
}


@media (max-width: 1440px) {

    body {
        background: var(--paper);
    }

    .site-frame {
        box-shadow: none;
    }

}

/* ==================================
   TOPBAR
================================== */

.whatsapp-float {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 64px;
    height: 64px;
    background: #25D366;
    color: #fff !important;
    border-radius: 50%;
    z-index: 9999;

    display: flex;
    align-items: center;
    justify-content: center;

    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0,0,0,.25);

    transition: all .2s ease;
}

.whatsapp-float:hover {
    color: #fff;
    transform: scale(1.08);
    text-decoration: none;
}

.whatsapp-float i {
    font-size: 32px;
}

.topbar {
    height: 38px;
    color: #ffffff;
    background: var(--navy);
}

.topbar-inner {
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.topbar-left,
.topbar-right {
    display: flex;
    align-items: center;
}

.topbar-left {
    gap: 32px;
}

.topbar-right {
    gap: 34px;
}

.topbar span,
.topbar a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.92);
    font-size: 11px;
}

.topbar a:hover {
    color: var(--lime);
}


/* ==================================
   MASTHEAD
================================== */

.masthead {
    height: 235px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.masthead-logo-link {
    display: block;
}

.masthead-logo {
    width: 330px;
    height: 155px;
    object-fit: contain;
}

.masthead-tagline {
    margin-top: -4px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
}

.masthead-tagline span {
    width: 42px;
    height: 1px;
    background: #9fa4a7;
}

.masthead-tagline p {
    margin: 0;
    font-family: var(--serif);
    font-size: 13px;
}


/* ==================================
   MENU PRINCIPAL
================================== */

.main-menu-wrapper {
    border: 0;
}

.main-menu {
    width: 100%;
    min-height: 61px;
    display: flex;
    align-items: center;
    border-top: 1px solid var(--navy);
    border-bottom: 1px solid var(--navy);
}

.main-menu-content {
    width: 100%;
}

.main-menu-content.collapse:not(.show) {
    display: flex;
}

.main-menu-links {
    min-width: 0;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0;
}

.main-menu-links a {
    position: relative;
    height: 60px;
    padding: 0 19px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #252d32;
    font-family: var(--serif);
    font-size: 13px;
    white-space: nowrap;
}

.main-menu-links a:first-child {
    padding-left: 3px;
    padding-right: 22px;
}

.main-menu-links a::after {
    content: "";
    position: absolute;
    right: 19px;
    bottom: 7px;
    left: 19px;
    height: 2px;
    background: var(--lime);
    transform: scaleX(0);
}

.main-menu-links a:hover::after,
.main-menu-links a.active::after {
    transform: scaleX(1);
}

.main-menu-actions {
    margin-left: auto;
    padding-left: 22px;
    display: flex;
    align-items: center;
    gap: 25px;
}

.header-search-button {
   /* width: 40px;*/
    height: 40px;
    padding: 0;
    border: 0;
    color: var(--navy);
    background: transparent;
    font-size: 17px;
}

.header-newsletter-button {
    min-width: 180px;
    height: 35px;
    padding: 0 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #cadb19;
    color: var(--navy);
    background: #ffffff;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}

.header-newsletter-button:hover {
    background: var(--lime);
}

.mobile-menu-button {
    display: none;
}


/* ==================================
   PESQUISA
================================== */

.header-search {
    border-top: 1px solid #e1e1de;
}

.header-search form {
    max-width: 850px;
    height: 48px;
    margin: 14px auto;
    display: flex;
    align-items: center;
    border: 1px solid var(--border);
}

.header-search i {
    margin: 0 14px;
    color: var(--muted);
}

.header-search input {
    min-width: 0;
    height: 46px;
    flex: 1;
    border: 0;
    outline: 0;
}

.header-search button {
    height: 46px;
    padding: 0 25px;
    border: 0;
    color: #ffffff;
    background: var(--navy);
    font-weight: 600;
}


/* ==================================
   NEWSLETTER INFERIOR
================================== */

.bottom-newsletter {
    background: #ffffff;
}

.bottom-newsletter-inner {
    min-height: 100px;
    padding: 20px 25px;
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        minmax(490px, 0.85fr);
    align-items: center;
    gap: 50px;
    color: #ffffff;
    background: var(--navy);
}

.bottom-newsletter-copy {
    display: flex;
    align-items: center;
    gap: 20px;
}

.bottom-newsletter-copy > i {
    width: 55px;
    height: 55px;
    display: grid;
    place-items: center;
    flex: 0 0 55px;
    border: 2px solid var(--lime);
    border-radius: 50%;
    color: var(--lime);
    font-size: 25px;
}

.bottom-newsletter-copy h2 {
    margin: 0 0 3px;
    font-family: var(--serif);
    font-size: 22px;
    font-weight: 700;
}

.bottom-newsletter-copy p {
    margin: 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 11px;
}

.bottom-newsletter-form {
    height: 44px;
    display: grid;
    grid-template-columns: 1fr 185px;
}

.bottom-newsletter-form input {
    min-width: 0;
    padding: 0 15px;
    border: 0;
    outline: 0;
}

.bottom-newsletter-form button {
    border: 0;
    color: var(--navy-dark);
    background: var(--lime);
    font-weight: 700;
}


/* ==================================
   RODAPÉ
================================== */

.site-footer {
    padding: 34px 0 15px;
    color: rgba(255, 255, 255, 0.78);
    background: var(--navy);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-columns {
    display: grid;
    grid-template-columns:
        1.4fr
        repeat(4, 1fr);
    gap: 45px;
}

.footer-brand img {
    display: block;
    filter: none;
    height: auto;
    max-width: 210px;
    object-fit: contain;
    width: 100%;
}

.footer-brand p {
    max-width: 190px;
    margin: 7px 0 12px;
    font-size: 11px;
}

.footer-address,
.footer-instagram {
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 11px;
}

.footer-instagram:hover {
    color: var(--lime);
}

.footer-column {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-column h3 {
    margin: 0 0 12px;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.footer-column a {
    margin: 2px 0;
    font-size: 11px;
}

.footer-column a:hover {
    color: var(--lime);
}

.footer-bottom {
    margin-top: 27px;
    padding-top: 14px;
    display: flex;
    justify-content: space-between;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    font-size: 10px;
}


/* ==================================
   RESPONSIVIDADE
================================== */

@media (max-width: 1199px) {

    .main-menu-links a {
        padding-right: 11px;
        padding-left: 11px;
        font-size: 12px;
    }

    .main-menu-links a:first-child {
        padding-right: 12px;
    }

    .main-menu-actions {
        padding-left: 10px;
        gap: 12px;
    }

    .header-newsletter-button {
        min-width: 150px;
    }

}


@media (max-width: 991px) {

    .editorial-container {
        width: min(
            calc(100% - 28px),
            var(--container)
        );
    }

    .masthead {
        height: 175px;
    }

    .masthead-logo {
        width: 260px;
        height: 125px;
    }

    .main-menu {
        min-height: 50px;
        display: block;
    }

    .mobile-menu-button {
        min-height: 50px;
        display: flex;
        align-items: center;
        gap: 8px;
        border: 0;
        color: var(--navy);
        background: transparent;
        font-weight: 600;
    }

    .main-menu-content.collapse:not(.show) {
        display: none;
    }

    .main-menu-content.show,
    .main-menu-content.collapsing {
        display: block;
    }

    .main-menu-links {
        display: block;
    }

    .main-menu-links a,
    .main-menu-links a:first-child {
        width: 100%;
        height: 43px;
        padding: 0;
        justify-content: flex-start;
        border-bottom: 1px solid #e7e7e4;
    }

    .main-menu-links a::after {
        display: none;
    }

    .main-menu-actions {
        padding: 13px 0 18px;
        justify-content: space-between;
    }

    .bottom-newsletter-inner {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .footer-columns {
        grid-template-columns: repeat(2, 1fr);
    }

}


@media (max-width: 767px) {

    .topbar-left span:first-child {
        display: none;
    }

    .topbar-left,
    .topbar-right {
        gap: 15px;
    }

    .masthead {
        height: 145px;
    }

    .masthead-logo {
        width: 220px;
        height: 105px;
    }

    .masthead-tagline p {
        font-size: 10px;
    }

    .bottom-newsletter-form {
        height: auto;
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .bottom-newsletter-form input,
    .bottom-newsletter-form button {
        min-height: 44px;
    }

    .footer-columns {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 7px;
    }

}

/* ==========================================================
   MENSAGENS FLASH
========================================================== */

.flash-messages {
    box-sizing: border-box;
    padding-top: 12px;
}

.flash-message {
    align-items: center;
    border: 1px solid;
    display: grid;
    font-family: "DM Sans", sans-serif;
    gap: 11px;
    grid-template-columns: 22px minmax(0, 1fr) 25px;
    margin-bottom: 8px;
    min-height: 45px;
    padding: 10px 12px;
}

.flash-message-success {
    background-color: #eef7ea;
    border-color: #91bb7e;
    color: #315b29;
}

.flash-message-danger {
    background-color: #fff1ef;
    border-color: #d4938c;
    color: #8a2d25;
}

.flash-message-warning {
    background-color: #fff8df;
    border-color: #d5bd63;
    color: #786218;
}

.flash-message-info {
    background-color: #eef5f8;
    border-color: #8db2c7;
    color: #275c78;
}

.flash-message-icon {
    font-size: 0.9rem;
    text-align: center;
}

.flash-message-content {
    font-size: 0.64rem;
    line-height: 1.45;
}

.flash-message-close {
    background: transparent;
    border: 0;
    color: currentColor;
    cursor: pointer;
    font-size: 0.72rem;
    height: 25px;
    opacity: 0.7;
    padding: 0;
    width: 25px;
}

.flash-message-close:hover {
    opacity: 1;
}



.newsletter-honeypot {
    height: 1px;
    left: -10000px;
    overflow: hidden;
    position: absolute;
    top: auto;
    width: 1px;
}

.newsletter-privacy-check {
    align-items: flex-start;
    color: #6a7379;
    cursor: pointer;
    display: grid;
    font-family: "DM Sans", sans-serif;
    font-size: 0.5rem;
    gap: 6px;
    grid-template-columns: 13px minmax(0, 1fr);
    line-height: 1.35;
    margin: 2px 0;
    text-align: left;
}

.newsletter-privacy-check input {
    accent-color: #173f5d;
    height: 12px;
    margin: 1px 0 0;
    width: 12px;
}

.newsletter-privacy-check a {
    color: inherit;
    font-weight: 700;
    text-underline-offset: 2px;
}

.home-bottom-newsletter .newsletter-privacy-check {
    color: #d4dde2;
}

.home-bottom-newsletter .newsletter-privacy-check input {
    accent-color: #d9ed1c;
}

.bottom-newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.bottom-newsletter-form__fields {
    display: flex;
    gap: 8px;
}

.bottom-newsletter-form__fields > input {
    min-width: 0;
    flex: 1;
}

.bottom-newsletter-form__privacy {
    display: flex;
    align-items: flex-start;
    gap: 7px;

    color: rgb(255 255 255 / 75%);

    font-family: "DM Sans", Arial, sans-serif;
    font-size: 9px;
    line-height: 1.4;
}

.bottom-newsletter-form__privacy input {
    width: 13px;
    height: 13px;
    margin: 1px 0 0;
    flex: 0 0 13px;

    accent-color: #d9ed1c;
}

.bottom-newsletter-form__privacy a {
    color: #ffffff;
    font-weight: 700;
    text-decoration: underline;
}

.newsletter-honeypot {
    width: 1px !important;
    height: 1px !important;

    position: absolute !important;
    left: -10000px !important;

    overflow: hidden !important;
    opacity: 0 !important;

    pointer-events: none !important;
}

@media (max-width: 640px) {
    .bottom-newsletter-form__fields {
        flex-direction: column;
    }

    .bottom-newsletter-form__fields button {
        width: 100%;
    }
}

.footer-bottom__links {
    display: flex;
    align-items: center;
    gap: 15px;
}

.footer-bottom__links a {
    color: inherit;
    font-size: inherit;
}

.footer-bottom__links a:hover {
    text-decoration: underline;
}