/* 
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 2.0.0
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/


.postagem{
  /* tokens */
  --tm-txt:#1c1c1c;
  --tm-title:#111;
  --tm-soft:#4c4c4c;
  --tm-mute:#8a8a8a;
  --tm-line:#e9e9e9;
  --tm-line-2:#e2e2e2;
  --tm-acc:#1750ad;
  --tm-acc-dk:#123f8a;
  --tm-bg-soft:#f4f6fa;
  --tm-sans:Inter,system-ui,-apple-system,"Segoe UI",sans-serif;
  --tm-disp:'Cal Sans',Inter,system-ui,sans-serif;
  --tm-mono:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;

  /* medida de leitura: o texto fica em 700px, imagens podem estourar */
  --tm-col:700px;

  font-family:var(--tm-sans);
  font-size:18px;
  line-height:1.8;
  color:var(--tm-txt);
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
  
  /* 2. Regras unificadas para segurar o contêiner dentro da tela */
  overflow-wrap: break-word;
  max-width: 100% !important;
  width: 100%;
  min-width: 0;
  box-sizing: border-box !important;
}

.postagem *{box-sizing:border-box}

/* ---------- ritmo vertical ---------- */
.postagem > *{margin:0 0 26px}
.postagem > *:last-child{margin-bottom:0}

/* ---------- parágrafo ---------- */
.postagem p{
  font:400 18px/1.8 var(--tm-sans);
  color:var(--tm-txt);
  margin:0 0 26px;
  text-wrap:pretty;
}
.postagem p:last-child{margin-bottom:0}
.postagem p.has-drop-cap:first-letter,
.postagem p.tm-capitular:first-letter{
  font-family:var(--tm-disp);
  font-size:64px;
  line-height:.82;
  float:left;
  margin:6px 10px 0 0;
  color:var(--tm-title);
}

/* linha de apoio / lide dentro do post */
.postagem .tm-lide,
.postagem .is-style-lead{
  font:400 18.5px/1.6 var(--tm-sans);
  color:#3d3d3d;
}

/* ---------- títulos ---------- */
.postagem h2,
.postagem h3,
.postagem h4,
.postagem h5,
.postagem h6{
  font-family:var(--tm-disp);
  font-weight:400;
  color:var(--tm-title);
  letter-spacing:-.005em;
  margin:44px 0 18px;
  text-wrap:balance;
}
.postagem h2{font-size:28px;line-height:1.25}
.postagem h3{font-size:23px;line-height:1.3;margin-top:38px}
.postagem h4{font-size:20px;line-height:1.35;margin-top:32px}
.postagem h5,
.postagem h6{
  font:600 12px var(--tm-sans);
  letter-spacing:.14em;
  text-transform:uppercase;
  margin-top:32px;
  margin-bottom:12px;
}
.postagem > h2:first-child,
.postagem > h3:first-child{margin-top:0}

/* ---------- links ---------- */
.postagem a{
  color:var(--tm-acc);
  text-decoration:none;
  border-bottom:1px solid rgba(23,80,173,.32);
  transition:color .15s,border-color .15s;
}
.postagem a:hover{color:var(--tm-acc-dk);border-bottom-color:var(--tm-acc-dk)}
.postagem a:focus-visible{outline:2px solid var(--tm-acc);outline-offset:2px}
/* links que não são texto corrido não recebem sublinhado */
.postagem figure a,
.postagem .wp-block-button a,
.postagem .wp-block-image a,
.postagem .tm-tags a,
.postagem a.tm-btn{border-bottom:0}

.postagem strong,.postagem b{font-weight:600;color:var(--tm-title)}
.postagem em,.postagem i{font-style:italic}
.postagem mark{background:#fff3bf;color:#111;padding:0 .12em}
.postagem s,.postagem del{color:var(--tm-mute)}
.postagem small{font-size:13.5px;color:var(--tm-mute)}
.postagem sup,.postagem sub{font-size:.7em;line-height:0}
.postagem abbr[title]{text-decoration: none;cursor:help}
.postagem kbd{
  font:500 13px var(--tm-mono);
  border:1px solid #d9d9d9;
  border-bottom-width:2px;
  padding:1px 6px;
  background:#fafafa;
}

/* ---------- listas ---------- */
.postagem ul,
.postagem ol{margin:0 0 26px;padding-left:22px}
.postagem li{
  font:400 18px/1.75 var(--tm-sans);
  color:var(--tm-txt);
  margin-bottom:12px;
}
.postagem li:last-child{margin-bottom:0}
.postagem li > ul,
.postagem li > ol{margin:12px 0 0}
.postagem ul{list-style:disc}
.postagem ul li::marker{color:var(--tm-acc)}
.postagem ol li::marker{color:var(--tm-mute);font-weight:600;font-size:.92em}
.postagem dl{margin:0 0 26px}
.postagem dt{font:600 15px var(--tm-sans);color:var(--tm-title);margin-top:16px}
.postagem dd{margin:4px 0 0;font-size:17px;color:var(--tm-soft)}

/* ---------- citação ---------- */
.postagem blockquote,
.postagem .wp-block-quote{
  border-left:3px solid var(--tm-acc);
  padding:6px 0 6px 24px;
  margin:34px 0;
}
.postagem blockquote p,
.postagem .wp-block-quote p{
  font-family:var(--tm-disp);
  font-weight:400;
  font-size:25px;
  line-height:1.35;
  color:var(--tm-title);
  margin:0 0 10px;
}
.postagem blockquote p:last-of-type{margin-bottom:0}
.postagem blockquote cite,
.postagem blockquote footer,
.postagem .wp-block-quote cite{
  display:block;
  font:400 12.5px/1.5 var(--tm-sans);
  font-style:normal;
  color:var(--tm-mute);
  margin-top:10px;
}

/* destaque grande (pullquote) */
.postagem .wp-block-pullquote{
  border:0;
  border-top:1px solid var(--tm-line-2);
  border-bottom:1px solid var(--tm-line-2);
  padding:30px 0;
  margin:44px 0;
  text-align:left;
}
.postagem .wp-block-pullquote blockquote{border:0;padding:0;margin:0}
.postagem .wp-block-pullquote p{font-size:30px;line-height:1.28}

/* caixa de aviso / nota */
.postagem .tm-nota{
  background:var(--tm-bg-soft);
  border-top:1px solid #e4e8f0;
  border-bottom:1px solid #e4e8f0;
  padding:22px 24px;
  margin:34px 0;
}
.postagem .tm-nota p{font-size:16px;line-height:1.7;color:#3d4657}
.postagem .tm-nota > :last-child{margin-bottom:0}

/* ---------- imagem e figura ---------- */
.postagem img,
.postagem video,
.postagem iframe,
.postagem embed,
.postagem object,
.postagem canvas,
.postagem svg{max-width:100%;height:auto}
.postagem img{display:block;border:0}

.postagem figure,
.postagem .wp-block-image{margin:34px 0}
.postagem figure img{width:100%}
.postagem figcaption,
.postagem .wp-caption-text,
.postagem .wp-element-caption{
  font:400 13.5px/1.55 var(--tm-sans);
  color:var(--tm-soft);
  padding-top:10px;
  margin:0;
  text-align:left;
}
.postagem figcaption cite,
.postagem figcaption .tm-credito{
  display:block;
  font:400 11.5px var(--tm-sans);
  font-style:normal;
  color:#9a9a9a;
  letter-spacing:.04em;
  text-transform:uppercase;
  margin-top:4px;
}

/* alinhamentos clássicos do WordPress */
.postagem .aligncenter,
.postagem .wp-block-image.aligncenter{margin-left:auto;margin-right:auto;text-align:center}
.postagem .aligncenter img{margin-left:auto;margin-right:auto}
.postagem .alignleft{float:left;margin:8px 28px 20px 0;max-width:50%}
.postagem .alignright{float:right;margin:8px 0 20px 28px;max-width:50%}
.postagem .alignnone{margin:34px 0}

/* largura ampla e total: o conteúdo vive em 700px, isto estoura a coluna */
.postagem .alignwide,
.postagem .wp-block-image.alignwide{
  width:calc(100% + 240px);
  max-width:none;
  margin-left:-120px;
  margin-right:-120px;
}
.postagem .alignfull,
.postagem .wp-block-image.alignfull{
  width:100vw;
  max-width:none;
  margin-left:calc(50% - 50vw);
  margin-right:calc(50% - 50vw);
}
.postagem .alignwide figcaption,
.postagem .alignfull figcaption{padding-left:0;padding-right:0}
.postagem .alignfull figcaption{padding-left:24px;padding-right:24px}

/* ---------- vídeo / embeds responsivos ---------- */
.postagem .wp-block-embed,
.postagem .wp-block-video,
.postagem .tm-video{margin:34px 0}
.postagem .wp-block-embed__wrapper{position:relative}
.postagem .wp-embed-aspect-16-9 .wp-block-embed__wrapper::before,
.postagem .wp-embed-aspect-4-3 .wp-block-embed__wrapper::before,
.postagem .wp-embed-aspect-9-16 .wp-block-embed__wrapper::before{content:none}
.postagem .wp-block-embed.wp-embed-aspect-16-9 iframe,
.postagem .tm-video iframe,
.postagem iframe[src*="youtube"],
.postagem iframe[src*="youtu.be"],
.postagem iframe[src*="vimeo"]{
  display:block;
  width:100%;
  aspect-ratio:16/9;
  height:auto;
  border:0;
  background:#000;
}
.postagem .wp-embed-aspect-4-3 iframe{aspect-ratio:4/3}
.postagem .wp-embed-aspect-9-16 iframe{aspect-ratio:9/16;max-width:420px;margin-inline:auto}
.postagem video{display:block;width:100%;background:#000}
/* embeds sem proporção declarada (Instagram, Twitter/X, Facebook) */
.postagem .wp-block-embed-instagram iframe,
.postagem .wp-block-embed-twitter iframe,
.postagem .wp-block-embed-facebook iframe,
.postagem .instagram-media,
.postagem .twitter-tweet{margin-inline:auto !important}
.postagem audio{width:100%;display:block}

/* galeria */
.postagem .wp-block-gallery{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:14px;
  margin:34px 0;
}
.postagem .wp-block-gallery.columns-3{grid-template-columns:repeat(3,1fr)}
.postagem .wp-block-gallery.columns-4{grid-template-columns:repeat(4,1fr)}
.postagem .wp-block-gallery figure{margin:0}
.postagem .wp-block-gallery img{width:100%;height:100%;object-fit:cover}
.postagem .wp-block-gallery figcaption{font-size:12px;padding-top:6px}

/* colunas do Gutenberg */
.postagem .wp-block-columns{display:flex;flex-wrap:wrap;gap:28px;margin:34px 0}
.postagem .wp-block-column{flex:1 1 0;min-width:220px}
.postagem .wp-block-column > :last-child{margin-bottom:0}

/* ---------- tabela (Consolidada com Força Bruta) ---------- */
/* ---------- tabela (Corrigida com CSS Grid) ---------- */
.postagem .wp-block-table {
  /* O truque do Grid isola a largura da tabela e impede que ela quebre o Elementor */
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch !important;
  margin: 34px 0 !important;
  contain: content !important; /* Blinda o layout externo */
}

.postagem table,
.postagem .wp-block-table table {
  width: 100% !important;
  min-width: 550px !important;
  border-collapse: collapse;
  font: 400 15.5px/1.55 var(--tm-sans);
  margin: 0 !important;
  white-space: nowrap !important;
}

@media (max-width: 768px) {
    .postagem .wp-block-table::before {
        content: "↔ Deslize a tabela para ver mais";
        display: block;
        position: sticky;
        left: 0; /* Mantém o aviso visível na esquerda enquanto a tabela rola */
        font-size: 0.85rem;
        color: #666;
        margin-bottom: 10px;
        font-style: italic;
        width: max-content; /* Garante que o aviso não interfira no tamanho da coluna */
    }
}

.postagem caption {
  font: 400 12.5px var(--tm-sans);
  color: var(--tm-mute);
  text-align: left;
  padding-bottom: 10px;
  caption-side: top;
}
.postagem th {
  font: 600 12px var(--tm-sans);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--tm-title);
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1.5px solid #cfd4dc;
  background: #fafbfc;
  white-space: nowrap;
}
.postagem td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--tm-line);
  color: var(--tm-txt);
  vertical-align: top;
}
.postagem tbody tr:last-child td { border-bottom: 1px solid #cfd4dc; }
.postagem td:not(:first-child),
.postagem th:not(:first-child) { font-variant-numeric: tabular-nums; }
.postagem .wp-block-table.is-style-stripes tbody tr:nth-child(odd) { background: #fafbfc; }
.postagem .wp-block-table figcaption { padding-top: 10px; }

/* ---------- código ---------- */
.postagem code{
  font:400 15px var(--tm-mono);
  background:#f4f5f7;
  padding:2px 6px;
  color:#22336b;
}
.postagem pre,
.postagem .wp-block-code,
.postagem .wp-block-preformatted{
  font:400 14.5px/1.65 var(--tm-mono);
  background:#0f1115;
  color:#e6e8ee;
  padding:20px 22px;
  overflow-x:auto;
  margin:34px 0;
  border:0;
}
.postagem pre code{background:transparent;padding:0;color:inherit;font-size:inherit}
.postagem .wp-block-verse{font:400 17px/1.8 var(--tm-sans);white-space:pre-wrap;color:var(--tm-soft)}

/* ---------- separadores ---------- */
.postagem hr,
.postagem .wp-block-separator{
  border:0;
  height:1px;
  background:var(--tm-line-2);
  margin:44px 0;
}
.postagem .wp-block-separator.is-style-dots{
  background:none;
  height:auto;
  text-align:center;
  line-height:1;
  color:var(--tm-mute);
  letter-spacing:1em;
}
.postagem .wp-block-separator.is-style-dots::before{content:'···'}

/* ---------- botão ---------- */
.postagem .wp-block-button__link,
.postagem a.tm-btn{
  display:inline-flex;
  align-items:center;
  height:46px;
  padding:0 22px;
  background:var(--tm-acc);
  color:#fff;
  font:600 14px var(--tm-sans);
  border:0;
  border-radius:0;
  text-decoration:none;
}
.postagem .wp-block-button__link:hover,
.postagem a.tm-btn:hover{background:var(--tm-acc-dk);color:#fff}
.postagem .wp-block-buttons{display:flex;flex-wrap:wrap;gap:12px;margin:34px 0}
.postagem .is-style-outline .wp-block-button__link{
  background:transparent;
  color:var(--tm-acc);
  border:1px solid var(--tm-acc);
}
.postagem .is-style-outline .wp-block-button__link:hover{background:var(--tm-acc);color:#fff}

/* ---------- tags no fim do post ---------- */
.postagem .tm-tags{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  border-top:1px solid var(--tm-line);
  padding-top:34px;
  margin-top:44px;
}
.postagem .tm-tags a{
  font:500 12.5px var(--tm-sans);
  color:#3d3d3d;
  border:1px solid #e0e0e0;
  padding:7px 12px;
}
.postagem .tm-tags a:hover{border-color:var(--tm-acc);color:var(--tm-acc)}

/* ---------- formulários dentro do post ---------- */
.postagem input[type=text],
.postagem input[type=email],
.postagem input[type=search],
.postagem textarea{
  width:100%;
  height:46px;
  border:1px solid #c9d1de;
  background:#fff;
  padding:0 14px;
  font:400 15px var(--tm-sans);
  color:#111;
  border-radius:0;
  outline:none;
}
.postagem textarea{height:auto;padding:12px 14px;line-height:1.6}
.postagem input:focus,
.postagem textarea:focus{border-color:var(--tm-acc)}
.postagem button,
.postagem input[type=submit]{
  height:46px;
  padding:0 22px;
  border:0;
  background:var(--tm-acc);
  color:#fff;
  font:600 14px var(--tm-sans);
  cursor:pointer;
  border-radius:0;
}
.postagem button:hover,
.postagem input[type=submit]:hover{background:var(--tm-acc-dk)}

/* utilidades */
.postagem .has-text-align-center{text-align:center}
.postagem .has-text-align-right{text-align:right}
.postagem .screen-reader-text{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.postagem .clearfix::after,
.postagem::after{content:'';display:table;clear:both}

/* ---------- 1024px ---------- */
@media (max-width:1024px){
  .postagem{font-size:17px}
  .postagem p{font-size:17px}
  .postagem li{font-size:17px}
  .postagem h2{font-size:25px}
  .postagem h3{font-size:21px}
  .postagem .wp-block-pullquote p{font-size:26px}
  .postagem .alignwide{width:100%;margin-left:0;margin-right:0}
  .postagem .wp-block-gallery.columns-4{grid-template-columns:repeat(3,1fr)}
}

/* ---------- 767px ---------- */
@media (max-width:767px){
  .postagem{font-size:16.5px;line-height:1.75}
  .postagem > *{margin-bottom:22px}
  .postagem p{font-size:16.5px;line-height:1.75;margin-bottom:22px}
  .postagem li{font-size:16.5px;line-height:1.75}
  .postagem h2{font-size:22px;margin:34px 0 14px}
  .postagem h3{font-size:19px;margin-top:28px}
  .postagem h4{font-size:18px}
  .postagem blockquote p,
  .postagem .wp-block-quote p{font-size:21px}
  .postagem .wp-block-pullquote p{font-size:22px}
  .postagem .wp-block-pullquote{padding:24px 0;margin:34px 0}
  .postagem blockquote,
  .postagem .wp-block-quote{padding-left:18px;margin:28px 0}
  .postagem figure,
  .postagem .wp-block-image,
  .postagem .wp-block-embed,
  .postagem .wp-block-video,
  .postagem pre{margin:26px 0}
  .postagem .alignleft,
  .postagem .alignright{float:none;max-width:100%;margin:26px 0}
  .postagem .wp-block-gallery,
  .postagem .wp-block-gallery.columns-3,
  .postagem .wp-block-gallery.columns-4{grid-template-columns:1fr}
  .postagem .wp-block-columns{flex-direction:column;gap:22px}
  .postagem p.has-drop-cap:first-letter,
  .postagem p.tm-capitular:first-letter{font-size:52px}
  .postagem th,
  .postagem td{padding:10px 12px;font-size:14.5px}
  .postagem pre{padding:16px 14px;font-size:13.5px}
  .postagem .tm-tags{padding-top:26px;margin-top:34px}
}

/* ---------- impressão ---------- */
@media print{
  .postagem{font-size:11.5pt;line-height:1.5;color:#000}
  .postagem a{color:#000;border-bottom:0}
  .postagem a[href^="http"]::after{content:' (' attr(href) ')';font-size:9pt;color:#555}
  .postagem .wp-block-embed,
  .postagem iframe,
  .postagem video{display:none}
  .postagem h2,.postagem h3{break-after:avoid}
  .postagem figure,.postagem table,.postagem pre{break-inside:avoid}
}