@import url(https://fonts.googleapis.com/css?family=Overpass:300,400,500,600,700,800,900);
@import url(https://fonts.googleapis.com/css?family=Poppins:300,400,500,600,700,800);

:root {
    --primary-color: #E1A10B;
    --ink: #25211d;
    --muted: #6f675f;
    --paper: #fffaf2;
    --paper-soft: #f5ead8;
    --shadow: rgba(24, 18, 12, 0.22);
    --primary-font: "Poppins", Arial, sans-serif;
    --secondary-font: "Overpass", Arial, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    background: #090d0e;
}

body {
    min-height: 100%;
    overflow-x: hidden;
    color: var(--ink);
    background: #090d0e;
    font-family: var(--primary-font);
    font-size: 18px;
    line-height: 1.78;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

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

img {
    max-width: 100%;
}

.container {
    position: relative;
    min-height: 100vh;
}

.container .navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 200;
    display: flex;
    justify-content: flex-start;
    gap: 1.6rem;
    padding: 1.35rem 2rem;
    color: #fff7ea;
    background: linear-gradient(180deg, rgba(8, 12, 13, 0.66), rgba(8, 12, 13, 0));
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.article-crest {
    position: fixed;
    top: 0.65rem;
    left: 50%;
    z-index: 230;
    width: 5.15rem;
    height: 5.15rem;
    transform: translateX(-50%);
    filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.28));
}

.article-crest img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

.container .navbar.hidden {
    transform: translateY(-120%);
}

.container .navbar a {
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1;
    color: inherit;
    transition: color 0.25s ease;
}

.container .navbar a:hover,
.container .navbar a:focus {
    color: var(--primary-color);
}

.container .header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 0;
    height: max(64svh, 34rem);
    min-height: 0;
    overflow: hidden;
    background: #090d0e;
}

.container .bg-img {
    position: absolute;
    inset: 0;
}

.container .bg-img::before,
.container .bg-img::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.container .bg-img::before {
    background:
        linear-gradient(90deg, rgba(8, 12, 13, 0.94) 0%, rgba(8, 12, 13, 0.74) 42%, rgba(8, 12, 13, 0.28) 100%),
        linear-gradient(180deg, rgba(8, 12, 13, 0.18) 0%, rgba(8, 12, 13, 0.86) 100%);
}

.container .bg-img::after {
    inset: auto 0 0;
    height: 8rem;
    background: linear-gradient(180deg, rgba(8, 12, 13, 0), #090d0e);
}

.container .bg-img img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
    filter: saturate(0.92) contrast(1.03);
}

.container .content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 0 1.25rem 6rem;
}

.container .title {
    position: fixed;
    top: 0;
    left: 50%;
    z-index: 1;
    width: calc(100% - 2.5rem);
    max-width: 1040px;
    height: max(64svh, 34rem);
    min-height: 0;
    margin: 0 auto;
    padding-top: 5.9rem;
    padding-bottom: 5.7rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #fff7ea;
    transform: translateX(-50%);
}

.container .title::before {
    content: "";
    width: 4.5rem;
    height: 0.25rem;
    margin-bottom: 1.5rem;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--primary-color), rgba(225, 161, 11, 0));
}

.container .article-back-link {
    position: static;
    order: -3;
    align-self: flex-start;
    width: max-content;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: clamp(1.75rem, 4vh, 2.75rem);
    margin-bottom: 1.35rem;
    padding: 0.6rem 0.95rem;
    border: 1px solid rgba(255, 247, 234, 0.36);
    border-radius: 999px;
    color: #fff7ea;
    background: rgba(255, 255, 255, 0.08);
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1;
    text-transform: uppercase;
    backdrop-filter: blur(10px);
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.container .article-back-link:hover,
.container .article-back-link:focus {
    color: #fff;
    border-color: rgba(225, 161, 11, 0.72);
    background: rgba(225, 161, 11, 0.16);
    transform: translateX(-2px);
}

.container .article-back-link i {
    font-size: 0.82rem;
}

.article-share-button {
    width: max-content;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    justify-content: center;
    padding: 0.68rem 1.05rem;
    border: 1px solid rgba(255, 247, 234, 0.28);
    border-radius: 999px;
    color: #fff7ea;
    background: rgba(255, 255, 255, 0.1);
    font-family: var(--primary-font);
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1;
    text-transform: uppercase;
    cursor: pointer;
    backdrop-filter: blur(10px);
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.article-share-button:hover,
.article-share-button:focus {
    color: #fff;
    border-color: rgba(225, 161, 11, 0.72);
    background: rgba(225, 161, 11, 0.16);
    transform: translateY(-2px);
}

.article-share-button i,
.article-share-button svg {
    width: 0.9rem;
    font-size: 0.9rem;
}

.article-share-footer {
    max-width: 780px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    margin: clamp(2.5rem, 6vw, 4rem) auto 0;
    padding: clamp(1.15rem, 3vw, 1.45rem);
    border: 1px solid rgba(225, 161, 11, 0.22);
    border-radius: 18px;
    color: #fff7ea;
    background:
        linear-gradient(135deg, rgba(36, 29, 21, 0.96), rgba(8, 11, 12, 0.98)),
        #111;
    box-shadow: 0 22px 52px rgba(24, 18, 12, 0.18);
}

.article-share-footer::before {
    content: "";
    width: 3.75rem;
    height: 0.2rem;
    flex: 0 0 auto;
    align-self: flex-start;
    margin-top: 0.55rem;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--primary-color), rgba(225, 161, 11, 0));
}

.article-share-footer__text {
    min-width: 0;
    display: grid;
    gap: 0.18rem;
    margin-right: auto;
}

.article-share-footer__text span {
    color: var(--primary-color);
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.article-share-footer__text strong {
    color: #fffaf2;
    font-family: var(--secondary-font);
    font-size: clamp(1.1rem, 2.5vw, 1.35rem);
    font-weight: 800;
    line-height: 1.18;
}

.article-share-footer .article-share-button {
    flex: 0 0 auto;
    min-height: 2.85rem;
    color: #1a1408;
    border-color: rgba(225, 161, 11, 0.78);
    background: var(--primary-color);
    box-shadow: 0 14px 32px rgba(103, 72, 0, 0.28);
}

.article-share-footer .article-share-button:hover,
.article-share-footer .article-share-button:focus {
    color: #fff;
    border-color: rgba(255, 247, 234, 0.42);
    background: #bd8507;
    transform: translateY(-2px);
}

.article-share-footer .article-share-button:disabled {
    cursor: wait;
    opacity: 0.7;
    transform: none;
}

.article-share-open {
    overflow: hidden;
}

.article-share-modal {
    position: fixed;
    inset: 0;
    z-index: 1400;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.24s ease, visibility 0.24s ease;
}

.article-share-modal.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.article-share-modal__overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 22% 12%, rgba(225, 161, 11, 0.16), transparent 28rem),
        rgba(5, 8, 9, 0.78);
    backdrop-filter: blur(8px);
}

.article-share-modal__content {
    position: relative;
    z-index: 1;
    width: min(100%, 920px);
    max-height: calc(100svh - 2rem);
    display: grid;
    grid-template-columns: minmax(220px, 320px) 1fr;
    gap: clamp(1rem, 3vw, 2rem);
    overflow: auto;
    padding: clamp(1.25rem, 3vw, 2rem);
    border: 1px solid rgba(225, 161, 11, 0.28);
    border-radius: 22px;
    color: #fff7ea;
    background:
        linear-gradient(145deg, rgba(17, 18, 17, 0.98), rgba(8, 10, 10, 0.98)),
        #0a0d0d;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.52);
    transform: translateY(14px) scale(0.98);
    transition: transform 0.24s ease;
}

.article-share-modal.show .article-share-modal__content {
    transform: translateY(0) scale(1);
}

.article-share-modal__close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 2;
    width: 2.55rem;
    height: 2.55rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 247, 234, 0.18);
    border-radius: 50%;
    color: #fff7ea;
    background: rgba(255, 255, 255, 0.08);
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.article-share-modal__close:hover,
.article-share-modal__close:focus {
    border-color: rgba(225, 161, 11, 0.72);
    background: rgba(225, 161, 11, 0.16);
    transform: rotate(6deg);
}

.article-share-modal__preview {
    min-height: 0;
    padding: 0.7rem;
    border: 1px solid rgba(225, 161, 11, 0.22);
    border-radius: 18px;
    background:
        linear-gradient(180deg, rgba(255, 250, 242, 0.08), rgba(255, 250, 242, 0.02)),
        rgba(255, 255, 255, 0.04);
}

.article-share-modal__preview img {
    width: 100%;
    aspect-ratio: 9 / 16;
    display: block;
    object-fit: cover;
    border-radius: 12px;
    background:
        linear-gradient(135deg, rgba(225, 161, 11, 0.28), transparent),
        #111;
}

.article-share-modal__body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    padding-right: 1.75rem;
}

.article-share-modal__eyebrow {
    margin-bottom: 0.55rem;
    color: var(--primary-color);
    font-size: 0.76rem;
    font-weight: 800;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.article-share-modal__body h2 {
    margin-bottom: 0.6rem;
    color: #fff;
    font-family: var(--secondary-font);
    font-size: clamp(1.8rem, 4vw, 2.75rem);
    font-weight: 800;
    line-height: 1.04;
}

.article-share-modal__body p {
    max-width: 34rem;
    color: rgba(255, 247, 234, 0.72);
    font-size: 0.94rem;
    line-height: 1.68;
}

.article-share-modal__actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    margin-top: 1.45rem;
}

.article-share-modal__button {
    min-height: 3.2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.8rem 1rem;
    border: 1px solid rgba(255, 247, 234, 0.14);
    border-radius: 12px;
    color: #fff7ea;
    background: rgba(255, 255, 255, 0.07);
    font-family: var(--primary-font);
    font-size: 0.82rem;
    font-weight: 800;
    line-height: 1.15;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.article-share-modal__button:hover,
.article-share-modal__button:focus {
    border-color: rgba(225, 161, 11, 0.64);
    background: rgba(225, 161, 11, 0.14);
    transform: translateY(-2px);
}

.article-share-modal__button--whatsapp {
    border-color: rgba(37, 211, 102, 0.42);
}

.article-share-modal__button--instagram {
    border-color: rgba(225, 161, 11, 0.52);
    background: linear-gradient(135deg, rgba(225, 161, 11, 0.22), rgba(255, 255, 255, 0.07));
}

.article-share-modal__feedback {
    min-height: 1.5rem;
    margin-top: 1rem;
    color: rgba(255, 247, 234, 0.78);
    font-size: 0.82rem;
}

.article-share-modal__feedback.is-error {
    color: #ffcf95;
}

.container .title h1 {
    max-width: 920px;
    margin-bottom: 0.65rem;
    color: #fff;
    font-family: var(--secondary-font);
    font-size: clamp(2.25rem, 4.4vw, 3.9rem);
    font-weight: 800;
    line-height: 1.07;
    letter-spacing: 0;
    overflow-wrap: break-word;
    text-wrap: balance;
}

.container .title p {
    max-width: 680px;
    color: #eadfce;
    font-size: 0.95rem;
    font-weight: 400;
}

.container .title p.subline {
    order: -1;
    margin-bottom: 0.95rem;
    color: var(--primary-color);
    font-size: 0.82rem;
    font-weight: 800;
    line-height: 1;
    text-transform: uppercase;
}

.container .content > div:not(.title) {
    position: relative;
    z-index: 3;
    width: min(100%, 980px);
    margin: calc(max(64svh, 34rem) - 4.25rem) auto 0;
    padding: clamp(2rem, 5vw, 4.5rem);
    overflow: hidden;
    color: var(--muted);
    background: var(--paper);
    border: 1px solid rgba(104, 82, 47, 0.12);
    border-radius: 28px 28px 22px 22px;
    box-shadow: 0 30px 80px var(--shadow);
}

.container .content > div:not(.title)::before {
    content: "";
    position: relative;
    z-index: 1;
    display: block;
    width: 4.75rem;
    height: 0.25rem;
    margin: -1.35rem auto 2.35rem;
    border-radius: 999px;
    background-color: rgba(225, 161, 11, 0.72);
}

.container .content > div:not(.title)::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 0;
    width: clamp(14rem, 28vw, 21rem);
    aspect-ratio: 1;
    background: url("/assets/img/brazao%20para%20fundo%20branco%20claro.png") center / contain no-repeat;
    opacity: 0.045;
    pointer-events: none;
    transform: translate(-50%, -50%);
}

.container .content > div:not(.title) > * {
    position: relative;
    z-index: 1;
}

.container .content > div:not(.title) > strong:first-child {
    display: block;
    max-width: 780px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 0;
    color: #4c453d;
    font-size: 1.16rem;
    line-height: 1.78;
}

.container .content > div:not(.title) > p,
.container .content > div:not(.title) > h2,
.container .content > div:not(.title) > h3,
.container .content > div:not(.title) > blockquote {
    max-width: 780px;
    margin-left: auto;
    margin-right: auto;
}

.container .content > div:not(.title) > p {
    line-height: 1.9;
}

.container .content p[style] {
    margin-left: clamp(1rem, 8vw, 100px) !important;
}

.container .content p.article-emphasis[style] {
    margin-left: clamp(1rem, 8vw, 100px) !important;
}

.container .content p:has(em),
.container .content blockquote {
    margin-top: 2rem;
    margin-bottom: 2rem;
    padding: 1.4rem 1.6rem;
    color: #5a5148;
    background: rgba(225, 161, 11, 0.09);
    border-left: 4px solid var(--primary-color);
    border-radius: 0 8px 8px 0;
    font-style: italic;
}

.container .content h2,
.container .content h3 {
    margin-top: 2.25rem;
    margin-bottom: 1rem;
    color: #2f2a25;
    font-family: var(--secondary-font);
    font-weight: 800;
    line-height: 1.16;
}

.container .content h2 {
    font-size: clamp(1.8rem, 4vw, 2.45rem);
}

.container .content h3 {
    font-size: clamp(1.35rem, 3vw, 1.75rem);
}

.container .content figure {
    max-width: 820px;
    margin: 2.6rem auto;
}

.container .content figure img {
    width: 100%;
    display: block;
    border-radius: 12px;
    box-shadow: 0 18px 46px rgba(24, 18, 12, 0.18);
}

.container .content figure figcaption {
    margin-top: 0.75rem;
    color: #91887f;
    font-size: 0.82rem;
    text-align: center;
}

.back-to-top {
    position: fixed;
    right: 32px;
    bottom: 32px;
    left: auto;
    top: auto;
    z-index: 999;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 50%;
    color: #fff;
    background: var(--primary-color);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(12px);
    transition:
        opacity 0.25s ease,
        visibility 0.25s ease,
        transform 0.25s ease,
        background-color 0.25s ease;
    box-shadow: 0 14px 30px rgba(103, 72, 0, 0.28);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.back-to-top:hover {
    background: #bd8507;
    transform: translateY(-3px);
}

.back-to-top i,
.back-to-top svg {
    font-size: 1rem;
    width: 1rem;
    height: 1rem;
}

@media only screen and (max-width: 767px) {
    body {
        font-size: 16px;
        line-height: 1.72;
    }

    .container .navbar {
        justify-content: flex-start;
        gap: 1rem;
        padding: 5rem 1rem 0.85rem;
        overflow-x: auto;
        white-space: nowrap;
        background: rgba(8, 12, 13, 0.76);
        backdrop-filter: blur(12px);
    }

    .article-crest {
        top: 0.45rem;
        width: 3.85rem;
        height: 3.85rem;
    }

    .container .navbar a {
        font-size: 0.82rem;
    }

    .container .header {
        height: max(62svh, 30rem);
        min-height: 0;
    }

    .container .bg-img::before {
        background:
            linear-gradient(90deg, rgba(8, 12, 13, 0.94) 0%, rgba(8, 12, 13, 0.78) 58%, rgba(8, 12, 13, 0.44) 100%),
            linear-gradient(180deg, rgba(8, 12, 13, 0.08) 0%, rgba(8, 12, 13, 0.9) 100%);
    }

    .container .content {
        padding: 0 0.85rem 6.25rem;
    }

    .container .title {
        width: calc(100% - 1.7rem);
        height: max(62svh, 30rem);
        min-height: 0;
        padding-top: 5.8rem;
        padding-bottom: 4.25rem;
    }

    .container .title h1 {
        font-size: clamp(1.85rem, 8.5vw, 2.6rem);
        line-height: 1.08;
    }

    .container .title p {
        font-size: 0.88rem;
    }

    .container .content > div:not(.title) {
        width: 100%;
        margin-top: calc(max(62svh, 30rem) - 2.35rem);
        padding: 2rem 1.15rem 2.35rem;
        border-radius: 18px;
    }

    .container .content > div:not(.title)::after {
        width: min(68vw, 14rem);
        opacity: 0.038;
    }

    .container .content > div:not(.title) > strong:first-child {
        font-size: 1.05rem;
        line-height: 1.72;
    }

    .container .content > div:not(.title) > p {
        line-height: 1.82;
    }

    .container .content > div:not(.title)::before {
        margin-top: -0.7rem;
        margin-bottom: 1.7rem;
    }

    .container .content p:has(em),
    .container .content blockquote {
        padding: 1.1rem 1rem;
    }

    .container .content p.article-emphasis[style] {
        margin-left: 0 !important;
    }

    .container .content p[style] {
        margin-left: 0 !important;
    }

    .container .article-back-link {
        position: static;
        margin-top: 1.5rem;
        margin-bottom: 1rem;
    }

    .article-share-button {
        padding: 0.62rem 0.92rem;
        font-size: 0.72rem;
    }

    .article-share-footer {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.95rem;
        margin-top: 2.4rem;
        padding: 1rem;
        border-radius: 15px;
    }

    .article-share-footer::before {
        width: 3rem;
        margin-top: 0;
    }

    .article-share-footer .article-share-button {
        width: 100%;
    }

    .article-share-modal {
        align-items: flex-start;
        padding: 0.75rem;
        overflow-y: auto;
    }

    .article-share-modal__content {
        grid-template-columns: 1fr;
        width: 100%;
        max-height: none;
        padding: 1rem;
        border-radius: 18px;
    }

    .article-share-modal__close {
        top: 0.75rem;
        right: 0.75rem;
    }

    .article-share-modal__preview {
        width: min(100%, 17rem);
        margin: 0 auto;
    }

    .article-share-modal__body {
        padding-right: 0;
    }

    .article-share-modal__body h2 {
        padding-right: 3rem;
    }

    .article-share-modal__actions {
        grid-template-columns: 1fr;
    }

    .back-to-top {
        right: 1rem;
        bottom: 1rem;
        width: 48px;
        height: 48px;
    }
}
