html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Roboto", Arial, sans-serif;
    background: #fffcf7;
    color: #1e293b;
}

#pontos {
    scroll-margin-top: 110px;
}

.public-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
}

.public-header-container {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.public-brand img {
    height: 56px;
    width: auto;
    display: block;
}

.public-nav {
    display: flex;
    align-items: center;
    gap: 18px;
}

.public-nav a {
    color: #216c39;
    text-decoration: none;
    font-weight: 900;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: opacity .2s ease, color .2s ease;
}

.public-nav a:hover,
.public-nav a.active {
    color: #fba309;
}

.public-actions {
    display: flex;
    align-items: center;
    position: relative;
}

.public-login-btn {
    min-height: 42px;
    padding: 0 16px;
    border-radius: 999px;
    background: #216c39;
    color: white;
    text-decoration: none;
    font-weight: 900;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.public-login-btn:hover {
    background: #184f2b;
}

.public-user-menu {
    position: relative;
}

.public-user-btn {
    min-height: 42px;
    border: 0;
    border-radius: 999px;
    background: #216c39;
    color: white;
    padding: 0 16px;
    font-weight: 900;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: inherit;
}

.public-user-btn:hover {
    background: #184f2b;
}

.public-user-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    min-width: 240px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    box-shadow: 0 22px 60px rgba(15, 23, 42, .16);
    padding: 10px;
    display: none;
    z-index: 1200;
}

.public-user-dropdown.open {
    display: grid;
    gap: 4px;
}

.public-user-dropdown a,
.public-user-dropdown button {
    width: 100%;
    min-height: 42px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: #1e293b;
    text-decoration: none;
    font-weight: 800;
    font-family: inherit;
    font-size: .95rem;
    padding: 0 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    text-align: left;
}

.public-user-dropdown a:hover,
.public-user-dropdown button:hover {
    background: rgba(33, 108, 57, .10);
    color: #216c39;
}

.public-user-dropdown button {
    color: #dc2626;
}

.public-user-dropdown button:hover {
    background: rgba(220, 38, 38, .10);
    color: #dc2626;
}

.public-menu-btn {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 14px;
    background: rgba(33, 108, 57, .10);
    color: #216c39;
    font-size: 1.2rem;
    cursor: pointer;
}

/* AÇÕES DO USUÁRIO */

.user-actions-box {
    margin: 28px 0;
    padding: 16px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 22px;
    box-shadow: 0 14px 34px rgba(15, 23, 42, .08);
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.user-action-btn {
    min-height: 46px;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    background: #f8fafc;
    color: #216c39;
    padding: 0 16px;
    font-family: inherit;
    font-weight: 900;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: .2s ease;
}

.user-action-btn:hover {
    background: rgba(33, 108, 57, .10);
    border-color: rgba(33, 108, 57, .25);
}

.user-action-btn.active {
    background: #216c39;
    color: white;
    border-color: #216c39;
}

.user-action-btn strong {
    min-width: 24px;
    height: 24px;
    border-radius: 999px;
    background: rgba(33, 108, 57, .12);
    color: #216c39;
    font-size: .82rem;
    font-weight: 900;
    display: grid;
    place-items: center;
    padding: 0 7px;
}

.user-action-btn.active strong {
    background: rgba(255, 255, 255, .20);
    color: white;
}

.user-actions-login-hint {
    margin: -14px 0 26px;
    color: #64748b;
    font-weight: 700;
    line-height: 1.5;
}

.user-actions-login-hint a {
    color: #216c39;
    font-weight: 900;
    text-decoration: none;
}

.user-actions-toast {
    position: fixed;
    right: 20px;
    bottom: 22px;
    z-index: 2000;
    max-width: min(360px, calc(100% - 40px));
    padding: 14px 18px;
    border-radius: 16px;
    background: #216c39;
    color: white;
    box-shadow: 0 18px 50px rgba(15, 23, 42, .22);
    font-weight: 900;
    line-height: 1.45;
    opacity: 0;
    transform: translateY(16px);
    pointer-events: none;
    transition: .2s ease;
}

.user-actions-toast.show {
    opacity: 1;
    transform: translateY(0);
}

.user-actions-toast.error {
    background: #dc2626;
}

/* CORREÇÃO GLOBAL DE IMAGENS EM CONTEÚDO */

.publication-content img,
.partner-description img,
.event-description img,
.colunista-content img,
.public-profile-bio img,
.profile-bio img,
.partner-content img,
.event-content img {
    max-width: 100% !important;
    height: auto !important;
    display: block;
    margin: 20px auto;
    border-radius: 18px;
    object-fit: contain;
}

.publication-content iframe,
.partner-description iframe,
.event-description iframe,
.colunista-content iframe {
    max-width: 100% !important;
    width: 100% !important;
    aspect-ratio: 16 / 9;
    height: auto !important;
    border-radius: 18px;
}

/* CAPAS CONTROLADAS */

.publication-cover,
.partner-cover,
.event-banner {
    width: 100% !important;
    max-height: 520px !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block;
}

.partner-card,
.event-card,
.publication-container {
    overflow: hidden;
}

/* RELACIONADOS */

.related-section {
    width: min(1120px, calc(100% - 32px));
    margin: 34px auto 0;
}

.related-title {
    margin: 0 0 20px;
    color: #12231a;
    font-size: 1.7rem;
    font-weight: 900;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.related-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 18px 44px rgba(15, 23, 42, .10);
}

.related-card img {
    width: 100%;
    height: 190px;
    object-fit: cover;
    display: block;
}

.related-placeholder {
    height: 190px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, rgba(33,108,57,.10), rgba(251,163,9,.12));
    color: #216c39;
    font-size: 2.2rem;
}

.related-body {
    padding: 20px;
}

.related-body h3 {
    margin: 0 0 10px;
    color: #12231a;
    font-size: 1.2rem;
    font-weight: 900;
}

.related-body p {
    margin: 0 0 14px;
    color: #64748b;
    line-height: 1.6;
}

.related-body a {
    color: #216c39;
    font-weight: 900;
    text-decoration: none;
}

.related-body a:hover {
    color: #fba309;
}

/* FOOTER */

.public-footer {
    margin-top: 48px;
    background: #12231a;
    color: #ffffff;
}

.footer-market-bar {
    background: linear-gradient(135deg, #172033, #0f172a);
    border-top: 1px solid rgba(255,255,255,.08);
    border-bottom: 1px solid rgba(255,255,255,.08);
    padding: 14px 0;
    overflow: hidden;
}

.footer-market-container {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

.market-loading,
.market-item {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
}

.market-item {
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.10);
    color: #ffffff;
    white-space: nowrap;
}

.market-item i {
    width: 30px;
    height: 30px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: rgba(249,210,45,.16);
    color: #f9d22d;
}

.market-item strong {
    display: block;
    font-size: .76rem;
    line-height: 1.1;
    color: rgba(255,255,255,.72);
    text-transform: uppercase;
    letter-spacing: .04em;
}

.market-item span {
    display: block;
    margin-top: 2px;
    font-size: .92rem;
    line-height: 1.1;
    color: #ffffff;
    font-weight: 900;
}

.footer-ad-area {
    background: #fffcf7;
    padding: 18px 0 0;
}

.footer-main {
    padding: 54px 0 34px;
    background:
        radial-gradient(circle at top left, rgba(249,210,45,.13), transparent 34%),
        linear-gradient(180deg, #173f27, #12231a);
}

.footer-main-container,
.footer-bottom-container {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.35fr 1fr 1fr 1fr;
    gap: 34px;
}

.footer-logo-link {
    display: inline-flex;
    align-items: center;
    margin-bottom: 14px;
}

.footer-logo-link img {
    width: 96px;
    height: auto;
    object-fit: contain;
    display: block;
    background: rgba(255,255,255,.94);
    border-radius: 18px;
    padding: 8px;
}

.footer-column h4 {
    margin: 0 0 16px;
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 900;
}

.footer-column p {
    max-width: 380px;
    margin: 0 0 20px;
    color: rgba(255,255,255,.80);
    line-height: 1.75;
    font-weight: 600;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 10px;
}

.footer-column li,
.footer-column a {
    color: rgba(255,255,255,.80);
    text-decoration: none;
    line-height: 1.45;
    font-weight: 800;
}

.footer-column a:hover {
    color: #f9d22d;
}

.footer-social {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-social a {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    background: rgba(255,255,255,.10);
    color: #ffffff;
    display: grid;
    place-items: center;
    text-decoration: none;
    transition: .25s ease;
}

.footer-social a:hover {
    background: #f9d22d;
    color: #12231a;
    transform: translateY(-2px);
}

.footer-bottom {
    padding: 18px 0;
    background: #0f1c15;
    border-top: 1px solid rgba(255,255,255,.08);
}

.footer-bottom-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    color: rgba(255,255,255,.72);
    font-weight: 700;
    font-size: .92rem;
}

.footer-bottom-container p {
    margin: 0;
}

.footer-bottom-links {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.footer-bottom-links a {
    color: rgba(255,255,255,.74);
    text-decoration: none;
    font-weight: 800;
}

.footer-bottom-links a:hover {
    color: #f9d22d;
}

/* RESPONSIVO */

@media (max-width: 980px) {
    .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .footer-bottom-container { flex-direction: column; text-align: center; }

    .public-header-container {
        min-height: 72px;
        flex-wrap: wrap;
        padding: 10px 0;
    }

    .public-menu-btn {
        display: grid;
        place-items: center;
        margin-left: auto;
    }

    .public-actions {
        order: 3;
        width: 100%;
        justify-content: center;
    }

    .public-user-menu {
        width: 100%;
    }

    .public-user-btn,
    .public-login-btn {
        width: 100%;
        justify-content: center;
    }

    .public-user-dropdown {
        position: static;
        margin-top: 10px;
        width: 100%;
        min-width: 0;
        box-shadow: 0 14px 34px rgba(15, 23, 42, .12);
    }

    .public-nav {
        order: 4;
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        padding: 12px 0 4px;
    }

    .public-nav.open {
        display: flex;
    }

    .public-nav a {
        background: #f8fafc;
        border: 1px solid #e2e8f0;
        border-radius: 14px;
        padding: 12px 14px;
    }

    .user-action-btn {
        flex: 1 1 100%;
        justify-content: center;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }

    .public-footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .public-footer-brand img {
        margin-left: auto;
        margin-right: auto;
    }

    .public-footer-links,
    .public-footer-social {
        justify-content: center;
    }
}
/* =========================
   PUBLICIDADE RESPONSIVA
========================= */
ad-slot,
.ad-slot {
    display: block;
    width: min(1200px, calc(100% - 32px));
    margin: 26px auto;
    border-radius: 24px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 18px 45px rgba(15, 23, 42, .08);
    position: relative;
}
.ad-label {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    background: rgba(15, 23, 42, .72);
    color: #fff;
    border-radius: 999px;
    padding: 5px 10px;
    font: 800 .72rem Roboto, Arial, sans-serif;
}
.ad-link { display:block; color:inherit; text-decoration:none; }
.ad-link img,
.ad-link video,
.ad-link iframe { width:100%; height:100%; display:block; object-fit:cover; border:0; }
.ad-topo,
.ad-rodape,
.ad-home_meio { aspect-ratio: 1200 / 300; }
.ad-lateral_desktop { max-width: 320px; aspect-ratio: 300 / 600; }
.ad-entre_cards,
.ad-comunidade_feed,
.ad-publicacoes_feed,
.ad-eventos_feed,
.ad-parceiros_feed { aspect-ratio: 1080 / 260; }
.ad-default { min-height:120px; display:grid; place-items:center; text-align:center; padding:20px; background:linear-gradient(135deg, rgba(33,108,57,.12), rgba(251,163,9,.16)); color:#216c39; }
.ad-default strong { font-size:1.4rem; }
.ad-default span { display:block; color:#64748b; font-weight:800; margin-top:6px; }
.ad-media-admin video { width:100%; height:100%; object-fit:cover; }
@media (max-width: 720px) {
    ad-slot,
    .ad-slot { width:min(100% - 22px,1200px); border-radius:18px; margin:20px auto; }
    .ad-topo,
    .ad-rodape,
    .ad-home_meio,
    .ad-entre_cards,
    .ad-comunidade_feed,
    .ad-publicacoes_feed,
    .ad-eventos_feed,
    .ad-parceiros_feed { aspect-ratio: 320 / 100; }
    .ad-lateral_desktop { display:none; }
    .ad-default { min-height:92px; }
    .ad-default strong { font-size:1rem; }
    .ad-label { font-size:.66rem; top:7px; left:7px; }
}

/* =========================
   SPRINT 4 RC - PUBLICIDADE SEM REGRESSÃO
   Regra: cada anúncio aparece somente no slot definido no HTML.
========================= */
.ad-section {
    padding: 34px 0;
    background: #fffefd;
}

.ad-section.ad-muted {
    background: #f9f9f9;
}

ad-slot.ad-slot,
.ad-slot {
    display: block;
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
    border-radius: 24px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 18px 45px rgba(15, 23, 42, .08);
    position: relative;
}

ad-slot.ad-fallback,
.ad-slot.ad-fallback {
    background: linear-gradient(135deg, rgba(33,108,57,.08), rgba(251,163,9,.10));
}

ad-slot .ad-label,
.ad-slot .ad-label {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    margin: 0;
    background: rgba(15, 23, 42, .76);
    color: #ffffff;
    border-radius: 999px;
    padding: 5px 10px;
    font-family: Roboto, Arial, sans-serif;
    font-size: .72rem;
    line-height: 1;
    font-weight: 900;
    text-transform: none;
    letter-spacing: 0;
}

ad-slot .ad-link,
.ad-slot .ad-link {
    display: block;
    width: 100%;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

ad-slot .ad-link img,
ad-slot .ad-link video,
ad-slot .ad-link iframe,
.ad-slot .ad-link img,
.ad-slot .ad-link video,
.ad-slot .ad-link iframe {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    border: 0;
    border-radius: 0;
}

ad-slot.ad-topo,
ad-slot.ad-rodape,
ad-slot.ad-home_meio,
.ad-slot.ad-topo,
.ad-slot.ad-rodape,
.ad-slot.ad-home_meio {
    aspect-ratio: 1200 / 300;
}

ad-slot.ad-entre_cards,
ad-slot.ad-comunidade_feed,
ad-slot.ad-publicacoes_feed,
ad-slot.ad-eventos_feed,
ad-slot.ad-parceiros_feed,
.ad-slot.ad-entre_cards,
.ad-slot.ad-comunidade_feed,
.ad-slot.ad-publicacoes_feed,
.ad-slot.ad-eventos_feed,
.ad-slot.ad-parceiros_feed {
    aspect-ratio: 1080 / 260;
}

ad-slot.ad-lateral_desktop,
.ad-slot.ad-lateral_desktop {
    max-width: 320px;
    aspect-ratio: 300 / 600;
}

ad-slot .ad-default,
.ad-slot .ad-default {
    width: 100%;
    min-height: 120px;
    height: 100%;
    display: grid;
    place-items: center;
    text-align: center;
    padding: 24px;
    background: linear-gradient(135deg, rgba(33,108,57,.12), rgba(251,163,9,.16));
    color: #216c39;
}

ad-slot .ad-default strong,
.ad-slot .ad-default strong {
    display: block;
    font-size: 1.4rem;
    font-weight: 900;
}

ad-slot .ad-default span,
.ad-slot .ad-default span {
    display: block;
    color: #64748b;
    font-weight: 800;
    margin-top: 6px;
}

.footer-ad-area {
    padding: 26px 0;
    background: #fffefd;
}

.footer-ad-area ad-slot,
.footer-ad-area .ad-slot {
    margin: 0 auto;
}

@media (max-width: 720px) {
    .ad-section {
        padding: 22px 0;
    }

    ad-slot.ad-slot,
    .ad-slot {
        width: min(100% - 22px, 1200px);
        border-radius: 18px;
    }

    ad-slot.ad-topo,
    ad-slot.ad-rodape,
    ad-slot.ad-home_meio,
    ad-slot.ad-entre_cards,
    ad-slot.ad-comunidade_feed,
    ad-slot.ad-publicacoes_feed,
    ad-slot.ad-eventos_feed,
    ad-slot.ad-parceiros_feed,
    .ad-slot.ad-topo,
    .ad-slot.ad-rodape,
    .ad-slot.ad-home_meio,
    .ad-slot.ad-entre_cards,
    .ad-slot.ad-comunidade_feed,
    .ad-slot.ad-publicacoes_feed,
    .ad-slot.ad-eventos_feed,
    .ad-slot.ad-parceiros_feed {
        aspect-ratio: 320 / 100;
    }

    ad-slot.ad-lateral_desktop,
    .ad-slot.ad-lateral_desktop {
        display: none;
    }

    ad-slot .ad-default,
    .ad-slot .ad-default {
        min-height: 92px;
        padding: 16px;
    }

    ad-slot .ad-default strong,
    .ad-slot .ad-default strong {
        font-size: 1rem;
    }

    ad-slot .ad-label,
    .ad-slot .ad-label {
        top: 7px;
        left: 7px;
        font-size: .64rem;
        padding: 4px 8px;
    }
}

/* =========================================================
   RC FINAL - PUBLICIDADE SEM SOBREPOSIÇÃO
   Mantém o anúncio dentro do fluxo normal da página.
========================================================= */
.ad-section,
.footer-ad-area {
    display: block;
    clear: both;
    width: 100%;
    position: relative;
    z-index: 1;
}

.ad-section {
    padding: 22px 0;
    background: #fffcf7;
}

.ad-section.ad-muted {
    background: linear-gradient(180deg, rgba(33,108,57,.04), rgba(251,163,9,.05));
}

.footer-ad-area {
    background: #fffcf7;
    padding: 22px 0;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

.footer-market-bar + .footer-ad-area,
.footer-ad-area + .footer-main {
    margin-top: 0;
}

ad-slot,
.ad-slot {
    display: block;
    position: relative !important;
    inset: auto !important;
    float: none !important;
    clear: both;
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
    border-radius: 24px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 18px 45px rgba(15, 23, 42, .08);
    z-index: 1;
}

.ad-link {
    display: block;
    width: 100%;
    height: 100%;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

.ad-link img,
.ad-link video,
.ad-link iframe {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 0;
}

.ad-topo,
.ad-home_meio,
.ad-rodape {
    aspect-ratio: 1200 / 300;
    min-height: 120px;
    max-height: 330px;
}

.ad-entre_cards,
.ad-comunidade_feed,
.ad-publicacoes_feed,
.ad-eventos_feed,
.ad-parceiros_feed {
    aspect-ratio: 1080 / 260;
    min-height: 120px;
    max-height: 300px;
}

.ad-lateral_desktop {
    max-width: 320px;
    aspect-ratio: 300 / 600;
}

.ad-default {
    min-height: 120px;
    display: grid;
    place-items: center;
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, rgba(33,108,57,.12), rgba(251,163,9,.16));
    color: #216c39;
}

.ad-default strong {
    display: block;
    font-size: 1.4rem;
    font-weight: 900;
}

.ad-default span {
    display: block;
    color: #64748b;
    font-weight: 800;
    margin-top: 6px;
}

@media (max-width: 720px) {
    .ad-section,
    .footer-ad-area {
        padding: 16px 0;
    }

    ad-slot,
    .ad-slot {
        width: min(100% - 22px, 1200px);
        border-radius: 18px;
    }

    .ad-topo,
    .ad-home_meio,
    .ad-rodape,
    .ad-entre_cards,
    .ad-comunidade_feed,
    .ad-publicacoes_feed,
    .ad-eventos_feed,
    .ad-parceiros_feed {
        aspect-ratio: 320 / 100;
        min-height: 92px;
        max-height: 140px;
    }

    .ad-lateral_desktop {
        display: none;
    }

    .ad-default {
        min-height: 92px;
        padding: 14px;
    }

    .ad-default strong {
        font-size: 1rem;
    }

    .ad-label {
        font-size: .66rem;
        top: 7px;
        left: 7px;
    }
}
