/* Capita Blog Post 1.4.1 — template editorial seguro, sem takeover por JavaScript. */
.capita-post-template-active .capita-post-site-main,
.cbp-page,
.cbp-page * {
    box-sizing: border-box;
}

.capita-post-template-active .capita-post-site-main {
    width: 100%;
    margin: 0;
    padding: 0;
    background: #fff;
}

.cbp-page {
    --cbp-ink: #15171c;
    --cbp-muted: #626772;
    --cbp-line: #e7e9ee;
    --cbp-soft: #f6f7f9;
    --cbp-pink: #d51f68;
    --cbp-pink-dark: #a81750;
    --cbp-navy: #202441;
    --cbp-white: #fff;
    width: 100%;
    color: var(--cbp-ink);
    background: var(--cbp-white);
    font-family: inherit;
    line-height: 1.65;
}

.cbp-shell {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    padding: 42px 0 76px;
}

.cbp-skip-link {
    position: fixed;
    left: 12px;
    top: -100px;
    z-index: 99999;
    padding: 10px 14px;
    border-radius: 7px;
    color: #fff;
    background: #111;
}
.cbp-skip-link:focus { top: 12px; }

.cbp-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 0 0 24px;
    color: #777d88;
    font-size: 13px;
    line-height: 1.45;
}
.cbp-breadcrumb a { color: #555b66; text-decoration: none; }
.cbp-breadcrumb a:hover { color: var(--cbp-pink); }

.cbp-article-header {
    max-width: 940px;
    margin: 0 auto 42px;
}

.cbp-kicker,
.cbp-side-section > span,
.cbp-cta > span,
.cbp-author > div > span,
.cbp-section-head span,
.cbp-toc-head span {
    display: inline-block;
    margin: 0 0 10px;
    color: var(--cbp-pink);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .12em;
    line-height: 1.3;
    text-decoration: none;
    text-transform: uppercase;
}

.cbp-title {
    max-width: 900px;
    margin: 0;
    color: var(--cbp-ink);
    font-size: clamp(38px, 5.1vw, 68px);
    font-weight: 800;
    letter-spacing: -.045em;
    line-height: 1.03;
}

.cbp-deck {
    max-width: 820px;
    margin: 20px 0 0;
    color: #505661;
    font-size: clamp(18px, 2vw, 22px);
    line-height: 1.55;
}

.cbp-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 24px 0 28px;
}
.cbp-meta-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
}
.cbp-meta strong { display: block; font-size: 14px; line-height: 1.25; }
.cbp-meta p {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin: 4px 0 0;
    color: #747984;
    font-size: 13px;
    line-height: 1.4;
}

.cbp-featured {
    margin: 0;
    overflow: hidden;
    border-radius: 18px;
    background: #f0f1f4;
}
.cbp-featured-img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
    object-fit: cover;
}
.cbp-featured figcaption {
    padding: 10px 14px;
    color: #727782;
    background: #fafafa;
    font-size: 12px;
}

.cbp-layout {
    display: grid;
    grid-template-columns: minmax(0, 790px) minmax(260px, 320px);
    gap: 58px;
    align-items: start;
    max-width: 1140px;
    margin: 0 auto;
}
.cbp-page:not(.cbp-has-sidebar) .cbp-layout { grid-template-columns: minmax(0, 820px); justify-content: center; }
.cbp-main { min-width: 0; }

.cbp-toc {
    margin: 0 0 34px;
    padding: 22px 24px;
    border: 1px solid var(--cbp-line);
    border-left: 4px solid var(--cbp-pink);
    border-radius: 12px;
    background: #fff;
}
.cbp-toc-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}
.cbp-toc-head span { margin-bottom: 4px; }
.cbp-toc-head h2 { margin: 0; font-size: 22px; line-height: 1.2; }
.cbp-toc-toggle {
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    border: 1px solid var(--cbp-line);
    border-radius: 50%;
    color: var(--cbp-ink);
    background: #fff;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}
.cbp-toc-list {
    display: grid;
    gap: 9px;
    margin: 18px 0 0;
    padding-left: 22px;
}
.cbp-toc-list a { color: #353a44; text-decoration: none; }
.cbp-toc-list a:hover { color: var(--cbp-pink); }
.cbp-toc-sub { margin-left: 18px; color: #777d88; }

.cbp-prose {
    color: #2d3138;
    font-size: 18px;
    line-height: 1.82;
    overflow-wrap: anywhere;
}
.cbp-prose > :first-child { margin-top: 0; }
.cbp-prose p { margin: 0 0 1.45em; }
.cbp-prose h2,
.cbp-prose h3,
.cbp-prose h4 {
    color: var(--cbp-ink);
    font-weight: 800;
    letter-spacing: -.025em;
    scroll-margin-top: 100px;
}
.cbp-prose h2 { margin: 2.2em 0 .75em; font-size: clamp(28px, 3vw, 38px); line-height: 1.18; }
.cbp-prose h3 { margin: 1.8em 0 .65em; font-size: clamp(22px, 2.3vw, 28px); line-height: 1.25; }
.cbp-prose h4 { margin: 1.6em 0 .6em; font-size: 20px; line-height: 1.3; }
.cbp-prose a { color: var(--cbp-pink-dark); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.cbp-prose img { max-width: 100%; height: auto; border-radius: 12px; }
.cbp-prose figure { max-width: 100%; margin: 30px 0; }
.cbp-prose figcaption { margin-top: 8px; color: #787d87; font-size: 13px; text-align: center; }
.cbp-prose blockquote {
    margin: 32px 0;
    padding: 20px 24px;
    border-left: 4px solid var(--cbp-pink);
    color: #343944;
    background: var(--cbp-soft);
    font-size: 20px;
}
.cbp-prose ul,
.cbp-prose ol { margin: 0 0 1.5em; padding-left: 1.3em; }
.cbp-prose li { margin: .45em 0; }
.cbp-prose table { display: block; width: 100%; overflow-x: auto; border-collapse: collapse; }
.cbp-prose th,
.cbp-prose td { padding: 12px; border: 1px solid var(--cbp-line); text-align: left; }
.cbp-prose iframe { max-width: 100%; border: 0; }

.cbp-share {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin: 42px 0 0;
    padding: 20px 0;
    border-top: 1px solid var(--cbp-line);
    border-bottom: 1px solid var(--cbp-line);
}
.cbp-share strong { font-size: 16px; }
.cbp-share > div { display: flex; flex-wrap: wrap; gap: 8px; }
.cbp-share a,
.cbp-share button {
    padding: 8px 12px;
    border: 1px solid var(--cbp-line);
    border-radius: 7px;
    color: #383d46;
    background: #fff;
    font: inherit;
    font-size: 13px;
    text-decoration: none;
    cursor: pointer;
}
.cbp-share a:hover,
.cbp-share button:hover { color: #fff; border-color: var(--cbp-pink); background: var(--cbp-pink); }

.cbp-author {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 20px;
    align-items: center;
    margin: 34px 0;
    padding: 26px;
    border-radius: 14px;
    background: var(--cbp-soft);
}
.cbp-author img { width: 88px; height: 88px; border-radius: 50%; }
.cbp-author h2 { margin: 0 0 6px; font-size: 23px; line-height: 1.2; }
.cbp-author p { margin: 0; color: #565c66; font-size: 15px; }

.cbp-post-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin: 34px 0 46px;
}
.cbp-post-nav a {
    display: flex;
    flex-direction: column;
    min-height: 112px;
    padding: 18px;
    border: 1px solid var(--cbp-line);
    border-radius: 12px;
    color: var(--cbp-ink);
    text-decoration: none;
}
.cbp-post-nav a:hover { border-color: #d7a2b8; box-shadow: 0 10px 28px rgba(22, 25, 33, .06); }
.cbp-post-nav span { margin-bottom: 7px; color: #7a808a; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.cbp-post-nav strong { font-size: 16px; line-height: 1.4; }
.cbp-next { text-align: right; }

.cbp-sidebar {
    position: sticky;
    top: 32px;
    display: grid;
    gap: 26px;
}
.cbp-cta {
    padding: 26px;
    border-radius: 16px;
    color: #fff;
    background: linear-gradient(145deg, var(--cbp-navy), #87234f 70%, var(--cbp-pink));
}
.cbp-cta > span { color: #ffd5e6; }
.cbp-cta h2 { margin: 0 0 10px; color: #fff; font-size: 25px; line-height: 1.15; }
.cbp-cta p { margin: 0 0 18px; color: rgba(255,255,255,.86); font-size: 14px; }
.cbp-cta a {
    display: inline-flex;
    padding: 10px 15px;
    border-radius: 8px;
    color: #fff;
    background: var(--cbp-pink);
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}
.cbp-cta a:hover { background: #ef2f7e; }

.cbp-side-section,
.cbp-search {
    padding: 22px;
    border: 1px solid var(--cbp-line);
    border-radius: 14px;
    background: #fff;
}
.cbp-side-section h2 { margin: 0 0 18px; font-size: 23px; line-height: 1.2; }
.cbp-side-posts { display: grid; gap: 16px; }
.cbp-side-posts article { display: grid; grid-template-columns: 72px minmax(0,1fr); gap: 12px; align-items: start; }
.cbp-side-thumb img { display: block; width: 72px; height: 58px; border-radius: 8px; object-fit: cover; }
.cbp-side-posts h3 { margin: 0 0 5px; font-size: 14px; line-height: 1.35; }
.cbp-side-posts h3 a { color: var(--cbp-ink); text-decoration: none; }
.cbp-side-posts h3 a:hover { color: var(--cbp-pink); }
.cbp-side-posts time { color: #858a93; font-size: 11px; }

.cbp-categories ul { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.cbp-categories a { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid #eff0f2; color: #3c414a; text-decoration: none; }
.cbp-categories li:last-child a { border-bottom: 0; }
.cbp-categories a:hover { color: var(--cbp-pink); }
.cbp-categories small { color: #92969e; }

.cbp-search label { display: block; margin-bottom: 10px; font-size: 15px; font-weight: 800; }
.cbp-search > div { display: grid; grid-template-columns: minmax(0,1fr) auto; }
.cbp-search input { min-width: 0; padding: 11px 12px; border: 1px solid var(--cbp-line); border-radius: 8px 0 0 8px; font: inherit; font-size: 14px; }
.cbp-search button { padding: 0 13px; border: 0; border-radius: 0 8px 8px 0; color: #fff; background: var(--cbp-pink); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }

.cbp-related { margin: 54px 0 0; }
.cbp-section-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 20px; }
.cbp-section-head h2 { margin: 0; font-size: 30px; line-height: 1.15; }
.cbp-section-head a { color: var(--cbp-pink-dark); font-size: 14px; font-weight: 700; }
.cbp-related-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; }
.cbp-related-grid article { overflow: hidden; border: 1px solid var(--cbp-line); border-radius: 13px; background: #fff; }
.cbp-card-image { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: #f0f1f3; }
.cbp-card-image img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.cbp-card-image:hover img { transform: scale(1.025); }
.cbp-card-placeholder { display: block; width: 100%; height: 100%; background: linear-gradient(135deg,#f2f3f5,#e2e4e8); }
.cbp-card-body { padding: 16px; }
.cbp-card-body time { color: #8b9099; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }
.cbp-card-body h3 { margin: 7px 0 8px; font-size: 18px; line-height: 1.3; }
.cbp-card-body h3 a { color: var(--cbp-ink); text-decoration: none; }
.cbp-card-body h3 a:hover { color: var(--cbp-pink); }
.cbp-card-body p { margin: 0; color: #666c76; font-size: 13px; line-height: 1.55; }

.cbp-fallback { padding: 40px 0 70px; }

@media (max-width: 1020px) {
    .cbp-layout { grid-template-columns: minmax(0, 1fr); gap: 44px; }
    .cbp-sidebar { position: static; grid-template-columns: repeat(2, minmax(0,1fr)); }
    .cbp-sidebar .cbp-cta,
    .cbp-sidebar .cbp-search { grid-column: 1 / -1; }
}

@media (max-width: 780px) {
    .cbp-shell { width: min(100% - 28px, 700px); padding: 28px 0 54px; }
    .cbp-article-header { margin-bottom: 32px; }
    .cbp-title { font-size: clamp(34px, 11vw, 50px); }
    .cbp-deck { font-size: 18px; }
    .cbp-featured { border-radius: 12px; }
    .cbp-prose { font-size: 17px; line-height: 1.75; }
    .cbp-share { align-items: flex-start; flex-direction: column; }
    .cbp-related-grid { grid-template-columns: 1fr; }
    .cbp-post-nav { grid-template-columns: 1fr; }
    .cbp-next { text-align: left; }
    .cbp-sidebar { grid-template-columns: 1fr; }
    .cbp-author { grid-template-columns: 64px minmax(0,1fr); padding: 20px; }
    .cbp-author img { width: 64px; height: 64px; }
}

@media (max-width: 480px) {
    .cbp-shell { width: min(100% - 22px, 440px); }
    .cbp-breadcrumb { font-size: 12px; }
    .cbp-meta p { display: block; }
    .cbp-meta p span { margin-right: 4px; }
    .cbp-toc { padding: 18px; }
    .cbp-prose h2 { font-size: 28px; }
    .cbp-author { grid-template-columns: 1fr; }
}


/* Hello Elementor + Elementor editor/preview compatibility. */
body.elementor-editor-active .elementor-widget-shortcode .cbp-page,
body.elementor-editor-preview .elementor-widget-shortcode .cbp-page,
.elementor-edit-area .elementor-widget-shortcode .cbp-page,
.elementor-widget-shortcode .cbp-page {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    color: var(--cbp-ink, #15171c) !important;
    background: #fff !important;
}
.elementor-widget-shortcode .cbp-page .cbp-shell {
    width: min(1180px, calc(100% - 40px)) !important;
    max-width: 1180px !important;
    margin-inline: auto !important;
}
.elementor-widget-shortcode .cbp-page img {
    max-width: 100% !important;
    height: auto !important;
}
.elementor-widget-shortcode .cbp-featured-img,
.elementor-widget-shortcode .capita-related-thumb img {
    width: 100% !important;
    object-fit: cover !important;
}
.elementor-widget-shortcode .cbp-title {
    max-width: 900px !important;
    margin: 0 !important;
    font-family: inherit !important;
    font-size: clamp(38px, 5.1vw, 68px) !important;
    font-weight: 800 !important;
    line-height: 1.03 !important;
    letter-spacing: -.045em !important;
    color: #15171c !important;
}
.elementor-widget-shortcode .cbp-layout {
    display: grid !important;
    grid-template-columns: minmax(0, 790px) minmax(260px, 320px) !important;
    gap: 58px !important;
    align-items: start !important;
}
.elementor-widget-shortcode .capita-related-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 22px !important;
}
@media (max-width: 980px) {
    .elementor-widget-shortcode .cbp-layout { grid-template-columns: 1fr !important; gap: 38px !important; }
}
@media (max-width: 700px) {
    .elementor-widget-shortcode .cbp-page .cbp-shell { width: min(100% - 24px, 1180px) !important; padding-top: 24px !important; }
    .elementor-widget-shortcode .cbp-title { font-size: clamp(32px, 10vw, 48px) !important; }
    .elementor-widget-shortcode .capita-related-grid { grid-template-columns: 1fr !important; }
}
