/*
Theme Name: MT-Elite
Theme URI:
Author: Motorista Elite
Author URI:
Description: Template Motorista Elite.
Version: 2.1
Text Domain:
*/

/* ───── Variáveis de Cor, Tipografia e Layout ───── */
:root {
    --primary: #000;
    --primary-gold: #E4B81E;
    --primary-grey: #F8F8F8;
    --primary-hover: #525252;
    --primary-blue: #3366CC;
    --primary-green: #248438;
    --primary-shockblue: #4DE7DC;
    --primary-light: #8AB4F8;
    --primary-deepdark: #173d8d;
    --text: #333;
    --bg: #FFF;

    --font-head: 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Altura global do cabeçalho (pode ser ajustada em um lugar só) */
    --header-h: 61px;

    /* Espaçamento vertical entre elementos dentro do post */
    --space: 20px;            /* ≈ 20 px em qualquer viewport */
}

/* ───── Global Reset ───── */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ───── Base Typography ───── */
body {
    font-family: var(--font-body);
    font-size: 18px;
    font-weight: 400;
    color: var(--text);
    background: var(--bg);
    line-height: 27px;

    /* Compensa o cabeçalho fixo para não sobrepor o conteúdo */
    padding-top: var(--header-h);
    /* Garante que âncoras não fiquem escondidas */
    scroll-padding-top: var(--header-h);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-head);
    letter-spacing: 0.5px;
}

/* ───── Links ───── */
a {
    color: var(--primary);
    text-decoration: none;
}
a:hover {
    color: var(--primary-blue);
    text-decoration: none;
}

/* ───── Layout Container ───── */
.container {
    max-width: 1050px;
    margin: 3rem auto;
    padding: 0 1rem;
}

/* ───── Header e Footer ───── */
header, footer {
    background: var(--primary);
    color: var(--bg);
}

/* Garantir título do site sempre branco */
header .container h1 a {
    color: #fff !important;
}

/* CABEÇALHO FIXO */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000; /* Fica acima do conteúdo */
}

/* Distribuição básica do container em header e footer */
header .container,
footer .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1050px;
    margin: 0 auto;
    padding: 1rem;
}

/* Ajuste apenas para header: alinhar título e nav à esquerda */
header .container {
    max-width: none;    /* remove limite de largura */
    width: 100%;        /* ocupa 100% da viewport */
    margin: 0;          /* elimina o margin: auto */
    padding: 0;         /* remove o espaçamento interno */
    display: flex;      /* reforça o flex */
    justify-content: flex-start; /* alinhamento à esquerda */
    align-items: center;
}

/* Espaçamento interno só se quiser um “respiro” */
@media (min-width: 601px) {
    header .container {
        padding: 0 20px;  /* opcional: 20px em cada lado */
    }
}

/* Ajuste do nav para ficar logo ao lado do título */
@media (min-width: 601px) {
    header nav {
        margin-left: 20px; /* espaço de 20px entre o nome do site e os links */
    }
}

/* ───── Busca no Header e Menu ───── */
/* Estilos gerais da search-box */
.search-box {
    width: 100%;
    max-width: 400px;
    margin: 0;
}

.search-form {
    display: flex;
    align-items: center;
    position: relative;
}

.search-box__input {
    flex: 1;
    border: none;
    border-radius: 20px;
    padding: 0.5rem 1rem;
    font-size: 1rem;
    outline: none;
}

.search-box__submit {
    background: transparent;
    border: none;
    color: var(--primary-dark);
    padding: 0 1rem;
    cursor: pointer;
    font-size: 1.2rem;
}

/* Desktop: exibe no header */
.search-box--desktop {
    display: block;
    margin-left: auto;
}

/* Mobile: oculta no header */
.search-box--mobile {
    display: none;
}

@media (max-width: 600px) {
    .search-box--desktop {
        display: none;
    }

    .search-box--mobile {
        display: block;
        width: 100%;
        padding: 0;
        background: transparent;
        margin: 0 0 1rem 0;
    }

    .search-box--mobile .search-box__input {
        width: 100%;
        height: 42px;
        padding: 0 2.5rem 0 1rem;
        border-radius: 25px;
        background: #fff;
        font-size: 1rem;
        display: block;
        line-height: 42px;
        box-sizing: border-box;
    }

    .search-box--mobile .search-box__submit {
        color: var(--primary-dark);
    }
    .fa-search {
    font-size: 18px;
    }
}

/* ───── Ajuste de altura no Desktop ───── */
@media (min-width: 768px) {
  .search-box--desktop .search-box__input {
    height: 35px;
    font-size: 1rem; /* força 14px */
    padding: 0 2rem 0 0.75rem;
    border-radius: 16px;
    background: #f5f5f5;
    color: #333;
    transition: all 0.2s ease;
    line-height: 1.2;
  }

  .search-box--desktop .search-box__submit {
    height: 35px;
    padding: 0 0.6rem;
    font-size: 0.875rem;
    color: var(--primary-dark);
  }

  .search-box--desktop {
    max-width: 300px;
  }

  .search-box--desktop .search-form {
    height: 35px;
  }

  .search-box--desktop .search-form::after {
    font-size: 0.85rem;
    right: 0.8rem;
    color: var(--primary-dark);
  }
}

/* ───── Páginas do Rodapé ───── */
.footer-pages {
    list-style: none;
    display: flex;
    gap: 1rem;
    margin: 0;
    padding: 0;
}
.footer-pages li a {
    color: var(--bg);
    text-decoration: none;
}
.footer-pages li a:hover {
    text-decoration: underline;
}

/* Tamanho do texto no rodapé para telas maiores */
@media (min-width: 601px) {
  footer .container,
  footer .container p,
  footer .footer-pages li a {
    font-size: 13px;
  }
}

@media (max-width: 600px) {
    .widget-otimizado-recent {
    margin-bottom: var(--space);
    }
  footer .container {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem;
  }

  .footer-pages {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 1rem;
    margin-bottom: 1.2rem;
  }

  .footer-pages li a {
    font-size: 0.85rem;
    padding: 0.3rem 0.5rem;
    display: inline-block;
  }

  footer p {
    font-size: 0.8rem;
    line-height: 1.4;
    margin-bottom: 0.3rem;
  }
}

/* ───── Ajuste para WordPress Admin Bar ───── */
body.admin-bar {
    scroll-padding-top: var(--header-h);
}
body.admin-bar header {
    top: 32px;
}
@media screen and (max-width: 782px) {
    body.admin-bar header {
        top: 46px;
    }
}

/* ───── Caixa de Pesquisa (fora do header) ───── */
.search-box {
    border-radius: 20px;
    margin: 1.5rem 0;
    overflow: hidden;
}
.search-box form {
    display: flex;
    align-items: center;
    width: 100%;
    border-radius: 20px;
}
.search-box__input {
    flex: 1;
    min-width: 0;
    border: none;
    padding: 0.9rem 1.2rem;
    font-size: 1.2rem;
    outline: none;
}
.search-box__submit {
    background: transparent;
    border: none;
    padding: 0 1.2rem;
    cursor: pointer;
    font-size: 1.8rem;
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    justify-content: center;
}
.search-box__submit:hover {
    background: rgba(0,0,0,0.05);
}

/* Search Results Title */
.search-results-title {
    color: #3E4D53;
    text-transform: uppercase;
    margin-bottom: 3.5rem;
    font-family: var(--font-head);
    letter-spacing: 0.5px;
}

/* ───── Remover 'x' nativo do input[type=search] ───── */
.search-box__input::-webkit-search-cancel-button,
.search-box__input::-webkit-search-decoration {
    -webkit-appearance: none;
}
.search-box__input::-ms-clear {
    display: none;
    width: 0;
    height: 0;
}

/* ───── Posts Destacados ───── */
.featured-posts {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    grid-row-gap: calc(3.5rem);
    grid-column-gap: 1.4rem;
}
.featured-post {
    background: var(--bg);
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.featured-post__thumb {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    overflow: hidden;
}
.featured-post__thumb img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: filter 0.3s ease;
    border-radius: 4px;
}
.featured-post__category {
    position: absolute;
    bottom: 0.5rem;
    left: 0.5rem;
    background: var(--bg);
    color: var(--primary);
    font-size: 11px;
    padding: 6px 6px;
    border-radius: 5px;
    line-height: 1;
    text-transform: normal;
}
.featured-post h2 {
    font-size: 1.35rem;
    font-weight: 500;
    color: var(--primary); /* Altere aqui */
    padding: 0.75rem 0 0 0;
    margin-top: auto;
    letter-spacing: -0.5px;
}

.featured-post h2:hover {
    color: var(--primary-hover); /* Altere aqui */
}
.featured-post__author {
    font-size: 12px;
    color: #757575;
    margin: 0;
}
.featured-post:hover .featured-post__thumb img {
    filter: brightness(0.9);
}
.featured-posts .featured-post__meta {
    font-size: 12px;
    color: #757575;
    margin: 0;
}

/* ───── Horizontal Container ───── */
.horizontal-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1.4rem;
    justify-content: space-between;
    background: var(--primary-grey);
    border-radius: 5px;
    padding: 2rem 1rem;
    margin: 4rem 0;
    overflow-x: hidden;
}
.horizontal-container > h1 {
    flex: 0 0 100%;
    width: 100%;
    margin: 0!important;
    color: #424242;
    font-size: 1.5rem;
    font-weight: 500;
}
.horizontal-container .hc-item {
    flex: 1;
    min-width: 0;
    text-align: left;
}
.horizontal-container .hc-item img {
    width: 100%;
    height: auto;
    border-radius: 5px;
}
.horizontal-container .hc-item h3 {
    margin-top: 0.5rem;
    font-size: 18px;
    color: var(--primary);
    font-weight: 500;
    letter-spacing: -0.25px;
}

.horizontal-container .hc-item a:hover h3 {
  color: var(--primary-hover);
}

@media (max-width: 600px) {
  .horizontal-container {
    display: block;
    padding: var(--space) 1rem;
    background: var(--primary-grey);
  }

  /* Espaçamento igual ao padding interno, abaixo do título */
  .horizontal-container > h1 {
    margin: 0 0 1.5rem 0!important;
  }

  .horizontal-container .hc-item {
    margin-bottom: var(--space);
  }
  .horizontal-container .hc-item:last-child {
    margin-bottom: 0;
  }
  .horizontal-container .hc-item a {
    display: flex;
    align-items: center;
    text-decoration: none;
  }
  .horizontal-container .hc-item img {
    width: 150px;
    height: 100px;
    object-fit: cover;
    margin-right: 1rem;
    flex-shrink: 0;
  }
  .horizontal-container .hc-item h3 {
    flex: 1;
    font-size: 1.05rem;
    line-height: 1.5rem;
    margin: 0;
    padding: 0;
    color: var(--primary);
  }
}

/* Estilo mobile para Listagem de Posts */
@media (max-width: 600px) {
    .featured-posts .featured-post {
        padding: 0rem 0;
    }
    .featured-posts .featured-post .featured-link {
        display: flex;
        align-items: center;
        text-decoration: none;
    }
    .featured-posts .featured-post__thumb {
        width: 150px;
        height: 100px;
        padding-top: 0 !important;
        margin-right: 1rem;
        flex-shrink: 0;
    }
    .featured-posts .featured-post__thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    .featured-posts .featured-post__content {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
    }
    .featured-posts .featured-post__content h2 {
        font-size: 1.05rem;
        line-height: 1.5rem;
        margin: 0 0 0.25rem 0;
        padding: 0;
    }
    .featured-posts .featured-post__meta {
        font-size: 13px;
        margin: 0;
        color: var(--titulosSesoes);
    }
}

/* Override do grid-row-gap e margens no mobile */
@media (max-width: 600px) {
    .featured-posts {
        gap: 0 1.4rem;
    }
    .featured-post {
        margin-bottom: 1.25rem;
    }
    .featured-post:last-child {
        margin-bottom: 0;
    }
    .horizontal-container .hc-item {
        margin-bottom: 1.25rem;
    }
    .horizontal-container .hc-item:last-child {
        margin-bottom: 0;
    }
    .horizontal-container .hc-item a {
        display: flex;
        align-items: center;
        text-decoration: none;
    }
    .horizontal-container .hc-item img {
        width: 150px;
        height: 100px;
        object-fit: cover;
        margin-right: 1rem;
        flex-shrink: 0;
    }
    .horizontal-container .hc-item h3 {
        flex: 1;
        font-size: 1.05rem;
        line-height: 1.5rem;
        margin: 0;
        padding: 0;
    }
}

@media (max-width: 600px) {
  .horizontal-container {
    width: 100vw;
    margin-left: calc(-1 * ((100vw - 100%) / 2));
    margin-right: calc(-1 * ((100vw - 100%) / 2));
    border-radius: 0;
  }
}

/* ───── Botões de Paginação ───── */
.pagination-buttons {
    display: flex;
    justify-content: flex-start;
    gap: 20px;
    margin: 1.5rem 0;
    padding-left: 0;
    width: 100%;
}
.btn-prev-page,
.btn-next-page {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--primary);
    color: var(--bg);
    text-decoration: none;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 500;
}

.btn-prev-page:hover,
.btn-next-page:hover {
    color: var(--primary-shockblue);
}

/* ───── Single Post ───── */
.single-post-container {
    margin: 2rem auto;
    padding: 0 1rem;
}

/* ───── Override completo para WP-Block-Table (ajustado) ───── */
/* 1) Container da tabela: sem borda externa */
.wp-block-table {
    font-size:0.9rem;
}
.wp-block-table table.has-fixed-layout,
.wp-block-table table {
  border-collapse: collapse !important;
  border-spacing: 0 !important;
  border: none !important;          /* remove borda externa */
}

/* 2) Todas as células (bordas internas de 1px) */
.wp-block-table table.has-fixed-layout th,
.wp-block-table table.has-fixed-layout td {
  border: 1px solid #ededed !important; /* mantém as bordas internas */
  padding: 0.75rem !important;
  text-align: left !important;
  background-color: transparent !important;
  border-radius: 0 !important;
}

/* 3) Header sempre branco */
.wp-block-table table.has-fixed-layout thead tr,
.wp-block-table table.has-fixed-layout thead th {
  background-color: #fff !important;
  line-height: 1.3 !important;
}

/* 4) Cabeçalho: apenas border-bottom azul grosso */
.wp-block-table table.has-fixed-layout thead th {
  border-top: none !important;                 /* sem borda superior */
  border-left: none !important;                /* sem borda vertical esquerda */
  border-right: none !important;               /* sem borda vertical direita */
  border-bottom: 3px solid #000 !important; /* borda inferior azul de 3px */
}

/* 5) Remove a borda-top do primeiro <tr> do corpo */
.wp-block-table table.has-fixed-layout tbody tr:first-child td {
  border-top: none !important;
}

/* 6) Zebra stripes no <tbody> */
.wp-block-table table.has-fixed-layout tbody tr:nth-child(odd) td {
  background-color: #f8f8f8 !important;
}
.wp-block-table table.has-fixed-layout tbody tr:nth-child(even) td {
  background-color: #fff !important;
}

/* 7) Remove bordas externas laterais das células (toda a tabela) */
.wp-block-table table.has-fixed-layout th:first-child,
.wp-block-table table.has-fixed-layout td:first-child {
  border-left: none !important;
}
.wp-block-table table.has-fixed-layout th:last-child,
.wp-block-table table.has-fixed-layout td:last-child {
  border-right: none !important;
}

/* 8) Remove borda inferior externa (última linha do corpo) */
.wp-block-table table.has-fixed-layout tbody tr:last-child td {
  border-bottom: none !important;
}


@media (max-width: 600px) {
  .post-content table {
    display: block;                    /* torna o table um bloco rolável */
    width: 100%;                       /* ocupa toda a largura disponível */
    overflow-x: auto;                  /* habilita scroll horizontal */
    -webkit-overflow-scrolling: touch; /* suaviza o scroll no iOS */
    margin-bottom: var(--space);       /* mantém espaçamento abaixo */

    /* impede o “font boosting” em navegadores móveis */
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
  }
  .post-content table th,
  .post-content table td {
    white-space: nowrap; /* evita quebra de linha nas células */
    font-size: 0.9rem;     /* fixa o mesmo tamanho da fonte de .post-content */
    line-height: 1.7;    /* mantém a mesma altura de linha do corpo do post */
  }
}

@media (min-width: 801px) {
    .single-post-container {
        max-width: 36%;
    }
}
@media (max-width: 800px) {
    .single-post-container {
        padding: 0 1rem;
        max-width: 100%;
        margin: 0;
    }
}

.breadcrumbs {
    font-size: 0.9rem;
    margin-bottom: var(--space);
    color: var(--primary-dark);
}
.breadcrumbs a {
    color: var(--primary-dark);
    text-decoration: none;
}
.breadcrumbs a:hover {
    color: var(--primary-hover)
}
.breadcrumbs span {
    color: var(--text);
}

.single-post-container .breadcrumbs {
  margin: var(--space) 0 !important;
}

.single-post-container .breadcrumbs a {
    padding:0;
}

@media (max-width: 800px) {
    .breadcrumbs {
        margin-top: var(--space);
    }
}

.single-post-title {
    font-family: var(--font-head);
    font-size: 40px;
    font-weight: 700;
    letter-spacing: -1px;
    line-height: 48px;
    margin-bottom: var(--space);
    color: var(--primary);
}
.post-summary {
    font-size: 1.2rem;
    color: var(--primary-hover);
    margin-bottom: var(--space);
}

@media (max-width: 800px) {
  .page .single-post-title {
    margin-top: 2.2rem;
  }
}

/* Estilos para títulos dentro do post */
.single-post-container .post-content a {
    text-decoration: underline;
}
.single-post-container .post-content h2 {
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 2.5rem;
    margin-top: 2.5rem;
    padding-bottom: 0.3rem;
    letter-spacing: -0.5px;
}

.single-post-container .post-content h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    color: #333;
    letter-spacing: -0.5px;
}

.single-post-container .post-content h4,
.single-post-container .post-content h5 {
    font-size: 1.1rem;
    font-weight: 500;
    margin-top: 1.6rem;
    font-style: italic;
    color: #555;
}

.single-post-container .post-content h6 {
    font-weight: 600;
    font-size: 1.25rem;
}

/* Autor e data */
.post-author {
    font-size: 14px;
    margin: 0 0 0px 0;
}
.post-datetime {
    font-size: 12px;
    margin: 0;
}

/* Imagem destacada */
.single-post-container .post-thumbnail {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding-bottom: 56.25%;
    margin: var(--space) 0;
    border-radius: 4px;
}
.single-post-container .post-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 4px;
}

/* Conteúdo do Post */
.post-content {
    font-size: 17px;
    color: #212121;
    font-weight: 400;
    line-height: 1.7;
}

/* Lista com bolinhas — mantém alinhamento perfeito */
.post-content ul {
  list-style-position: outside;
  margin-left: 0;
  padding-left: 1.75rem;
}

/* Lista numerada — simula o mesmo alinhamento */
.post-content ol {
  list-style-position: inside;
  margin-left: 0;
  padding-left: 0.5rem;  /* mesmo que ul */
  text-indent: -1.25rem;  /* puxa o número para esquerda */
}
.post-content ol li {
  padding-left: 1.25rem;  /* alinha o texto do item com o da ul */
  margin-bottom: 0.5rem;
}

/* Itens gerais */
.post-content li {
    margin-left: 0.5rem;
  margin-bottom: 0.5rem;
}

.post-content img {
    border-radius: 4px;
    margin: 0;
}
/* Espaçamento entre elementos do conteúdo */
.post-content > * + * {
    margin-top: var(--space);
}

/* Widget "Últimos Posts" Otimizado */
.widget-otimizado-recent {
    background: var(--primary);
    border-radius: 8px;
    margin-top: 2.5rem;
    padding: 1rem;
    color: #fff;
}
.widget-otimizado-recent .widget-title {
    display: flex;
    align-items: center;
    font-family: var(--font-head);
    font-size: 1.3rem;
    margin-bottom: 1rem;
}
.widget-otimizado-recent .widget-title .material-symbols-outlined {
    font-size: 1.5rem;
    margin-right: 0.5rem;
}
.widget-otimizado-recent ul {
    list-style: none;
}
.widget-otimizado-recent li {
    display: flex;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}
.widget-otimizado-recent li:last-child {
    border-bottom: none;
}
.widget-otimizado-recent .numero {
    background: #4DE7DC;
    color: #0F2E2C;
    border-radius: 50%;
    width: 1.6rem;
    height: 1.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-right: 0.75rem;
}
.widget-otimizado-recent a {
    color: #fff;
    text-decoration: none;
    flex: 1;
}
.widget-otimizado-recent a:hover {
    text-decoration: underline;
}

.widget-otimizado-recent .widget-title .icon-update {
  width: 30px;
  height: 30px;
  margin-right: 0.5rem;
  vertical-align: middle;
  filter: brightness(0) saturate(100%) invert(73%) sepia(93%) saturate(414%) hue-rotate(127deg) brightness(96%) contrast(95%);
}

/* Compartilhamento social */
.post-share {
    margin: var(--space) 0;
}
.post-share .social-share {
    display: flex;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0;
}
.post-share .social-share li a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--primary-grey);
    color: var(--primary);
    border-radius: 50%;
    text-decoration: none;
}
.post-share .social-share li a:hover {
    background: var(--primary);
    color: var(--bg);
}
.post-share .social-share li a i {
    font-size: 1.2rem;
}

/* Destaque da front-page */
.front-page-featured {
    position: relative;
    overflow: hidden;
    padding: var(--space) 0;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
}
.front-page-featured + .container {
    margin-top: 4rem;
}
.front-page-featured::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 100%;
    background: #F8F8F8;
    z-index: -1;
}
.front-page-featured > .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space);
}
@media (max-width: 600px) {
    .front-page-featured > .container {
        flex-direction: column;
        text-align: left;
        margin: 1rem 0;
    }
    .fp-featured-thumb {
        width: 100%;
        margin-bottom: var(--space);
    }
    .fp-featured-content h2 {
        font-size: 1.7rem!important;
        line-height: 1.2;
        margin-bottom: var(--space);
    }
}
.fp-featured-content {
    flex: 1;
    color: var(--bg);
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.fp-featured-category {
    display: flex;
    align-items: center;
    font-family: var(--font-head);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--primary);
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    gap: 0.5rem;
}
.fp-featured-category i {
    font-size: 1rem;
}
.fp-featured-content h2 {
    font-size: 3rem;
    line-height: 1.2;
    margin: 0;
    margin-bottom: var(--space);
    color: var(--bg);
    font-weight: 600;
}
.fp-featured-content h2 a {
  color: var(--primary);         /* Cor padrão */
  font-weight: 700;
  letter-spacing: -2px;        /* Aproveitando para já aplicar aqui também */
}

.fp-featured-content h2 a:hover {
  color: var(--primary-hover);   /* Cor no hover */
}
.fp-featured-excerpt {
    font-size: 1rem;
    line-height: 1.5;
    color: #191C22;
    margin-bottom: var(--space);
}
.fp-featured-meta {
    font-size: 0.875rem;
    color: #B0B0B0;
    margin-top: auto;
}
.fp-featured-thumb {
    flex: 1;
    min-width: 40%;
    position: relative;
}
.fp-featured-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 5px;
}

/* Slot de anúncio entre destaque e lista de posts */
#front_page_between {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 3.5rem 0; /* mesmo valor do grid-row-gap */
}

/* Estilos gerais para todos os slots de anúncio */
.ads-manager-slot {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
}

/* Cabeçalho de Categoria */
.category-header {
    width: 100%;
    background-color: #f2f2f2;
    padding: 4rem 1rem;
    margin-bottom: 4rem;
}
.category-header .container {
    max-width: 1050px;
    margin: 0 auto;
    padding: 0 1rem;
}
.category-header h1 {
    margin: 0;
    color: var(--primary);
    font-family: var(--font-head);
    font-size: 3rem;
    letter-spacing: 0.5px;
}
.category-header p {
    margin-top: 2rem;
    color: var(--text);
    font-size: 1.1rem;
}

/* Remover margem superior em imagem que segue resumo */
.post-summary + .single-content .post-content img:first-child {
    margin-top: 0;
}

/* Altura opcional para telas muito pequenas */
@media (max-width: 480px) {
    :root { --header-h: 64px; }
}

/* Ajuste: largura interna do post no single acima de 1080px */
@media (min-width: 1080px) {
    .single-post-container {
        max-width: 680px;
    }
}

/* Espaçamento entre conteúdo e primeira widget da sidebar */
.single-post-container .widget:first-child {
    margin-top: var(--space);
}

/* ──────────────────────────────────────────────────────────
   CORREÇÕES DE NAV E BREADCRUMBS
   ────────────────────────────────────────────────────────── */
/* Escopo correto para nav do header no mobile: esconder menu principal */
@media (max-width: 600px) {
    header nav {
        display: none;
    }
}

/* Garantir breadcrumbs sempre visíveis e sem deslocamento */
.breadcrumbs {
    display: block !important;
    margin: var(--space) 1rem !important;
    padding-left: 0 !important;
}

/* Ícone de busca dentro do input */
.search-form {
    position: relative;
}
.search-box__input {
    padding-right: 2.5rem; /* espaço para o ícone */
}
.search-form::after {
    content: '\f002';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 0.9rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1rem;
    color: var(--primary-hover)!important;
    pointer-events: none;
}

@media (min-width: 601px) {
  header .container {
    display: flex;
  }

  .site-logo {
    order: 1;
  }

  nav {
    order: 2;
    margin-right: auto;
  }

  .search-box--desktop {
    order: 3;
  }
}

@media (min-width: 601px) {
  :root {
    --header-h: 61px; /* altura ímpar para alinhamento exato */
  }

  header {
    height: var(--header-h) !important;
  }

  header .container {
    height: var(--header-h) !important;
    align-items: center !important;
  }

  header .container h1,
  header .container .site-logo,
  header nav,
  header .search-box--desktop {
    height: var(--header-h);
    display: flex;
    align-items: center;
  }

  header .container h1 a,
  header .container .site-logo img {
    line-height: var(--header-h);
    display: flex;
    align-items: center;
  }

  header .search-box--desktop .search-form {
    height: 35px;
    align-items: center;
  }

  header nav ul {
    display: flex;
    align-items: center;
    height: var(--header-h);
  }
}

/* Sticky Footer */
html, body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

@media (max-width: 600px) {
  header {
    height: var(--header-h);
  }

  header .container {
    height: var(--header-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
  }

  .hamburger-toggle {
    order: 1;
    height: var(--header-h);
    display: flex;
    align-items: center;
    margin-left: 1rem;
  }

  .site-logo {
    order: 2;
    flex: 1;
    display: flex;
    justify-content: center;
    text-align: center;
  }

  .site-logo img {
    display: block;
    height: calc(var(--header-h) * 0.7);
    object-fit: contain;
    margin: 0 auto;
  }

  header .container h1 {
    order: 2;
    flex: 1;
    text-align: center;
  }

  .search-toggle {
    order: 3;
    height: var(--header-h);
    display: flex;
    align-items: center;
    margin-right: 1rem;
  }
}

/* ───── Espaçamento para o título de archive ───── */
.archive-title {
    margin-top: 3.5rem;
    margin-bottom: 3.5rem;
}