/**
 * Estilos Frontend - Manus Page Builder
 * Carregado globalmente para compatibilidade total
 */

/* Reset e base */
.manus-pb-text-block,
.manus-pb-gallery-block,
.manus-pb-video-block,
.manus-pb-image-block,
.manus-pb-hero-banner-block,
.manus-pb-button-block,
.manus-pb-spacer-block {
    box-sizing: border-box;
}
html, body {
    overflow-x: hidden;
}

/* Garantia de compatibilidade global - força aplicação em qualquer página */
body .manus-pb-text-block,
body .manus-pb-gallery-block,
body .manus-pb-video-block,
body .manus-pb-image-block,
body .manus-pb-hero-banner-block,
body .manus-pb-button-block,
body .manus-pb-spacer-block {
    display: block;
    box-sizing: border-box;
}
body.wp-singular{
    background-size: cover;
}
.wp-block-image.rounded-4 img {
    border-radius: 15px;
}
/* Bloco de Texto */
.manus-pb-text-block {
    margin: 20px 0;
}

.manus-pb-text-title {
    margin-bottom: 15px;
    line-height: 1.2;
}

.manus-pb-text-content {
    line-height: inherit;
}

.manus-pb-text-content p {
    margin-bottom: 1em;
}

.manus-pb-text-content p:last-child {
    margin-bottom: 0;
}



/* ================================================== */
/*          NOVOS ESTILOS PARA A GALERIA              */
/* ================================================== */

/* --- Estilos Base da Galeria (Comum a todos os layouts) --- */
.manus-pb-gallery-block {
    margin: 30px 0;
}

.manus-pb-gallery-grid {
    /* Define as variáveis CSS com valores padrão */
    --columns: var(--gallery-columns, 3);
    --gap: var(--gallery-gap, 15px);
}

.manus-pb-gallery-item {
    position: relative;
    overflow: hidden; /* Garante que o border-radius seja aplicado na imagem */
    break-inside: avoid; /* Essencial para o Masonry */
}

.manus-pb-gallery-item a {
    display: block; /* Faz o link preencher o item */
    text-decoration: none;
}

.manus-pb-gallery-item img {
    display: block;
    width: 100%;
    height: 100%; /* Crucial para o object-fit funcionar */
    transition: transform 0.3s ease;
}

.manus-pb-gallery-caption {
    padding: 8px;
    font-size: 14px;
    color: #555;
    text-align: left;
    background-color: #f9f9f9;
}

/* --- Layout de Grade (Imagens Quadradas) --- */
/* Define o contêiner da grade */
.manus-pb-gallery-layout-grid .manus-pb-gallery-grid {
    display: grid;
    grid-template-columns: repeat(var(--columns, 3), 1fr);
    gap: var(--gap, 15px);
}

/* Define a "caixa" de cada item da galeria */
.manus-pb-gallery-layout-grid .manus-pb-gallery-item {
    /* Força a caixa a ter uma proporção de 1:1 (quadrada) */
    aspect-ratio: 1 / 1;
    /* Garante que a imagem não vaze para fora da caixa */
    overflow: hidden;
    /* Um fundo para o caso de a imagem quebrar ou demorar a carregar */
    background-color: #f0f0f0;
}

/* ESTA É A REGRA MAIS IMPORTANTE E A SOLUÇÃO PARA O SEU PROBLEMA */
.manus-pb-gallery-layout-grid .manus-pb-gallery-item img {
    /* Força a imagem a ter 100% da largura e altura da caixa */
    width: 100% !important;
    height: 100% !important;
    
    /*
     * A MÁGICA ACONTECE AQUI:
     * 'cover' faz a imagem se redimensionar para cobrir toda a caixa,
     * mantendo sua proporção e cortando o excesso.
     * É exatamente o comportamento que você descreveu como ideal.
    */
    object-fit: cover !important;
}


/* --- Layout Masonry (Ajuste de Altura) --- */
.manus-pb-gallery-layout-masonry .manus-pb-gallery-grid {
    /* Usa a técnica de colunas CSS para o efeito Masonry */
    column-count: var(--columns);
    column-gap: var(--gap);
}

.manus-pb-gallery-layout-masonry .manus-pb-gallery-item {
    margin-bottom: var(--gap); /* Espaçamento vertical entre os itens */
}

.manus-pb-gallery-layout-masonry .manus-pb-gallery-item img {
    /* No Masonry, a altura é automática para manter a proporção original */
    height: auto;
}

/* --- Responsividade da Galeria --- */
@media (max-width: 768px) {
    .manus-pb-gallery-grid {
        /* Reduz para 2 colunas em tablets */
        --columns: 2;
    }
}

@media (max-width: 480px) {
    .manus-pb-gallery-grid {
        /* Reduz para 1 coluna em celulares */
        --columns: 1;
    }
}

/* --- Efeitos de Hover (Opcional, mas recomendado) --- */
.manus-pb-hover-zoom .manus-pb-gallery-item:hover img {
    transform: scale(1.05);
}
/* ... adicione outros estilos de hover se desejar ... */

/* Bloco de Vídeo */
.manus-pb-video-block {
    margin: 30px 0;
}

.manus-pb-video-block video,
.manus-pb-video-block iframe {
    max-width: 100%;
    height: auto;
}

.manus-pb-align-left {
    text-align: left;
}

.manus-pb-align-center {
    text-align: center;
}

.manus-pb-align-right {
    text-align: right;
}

/* Bloco de Imagem */
.manus-pb-image-block {
    margin: 20px 0;
}

.manus-pb-image-block img {
    max-width: 100%;
    height: auto;
    transition: all 0.3s ease;
}

.manus-pb-image-caption {
    margin: 10px 0 0 0;
    font-size: 14px;
    color: #666;
    font-style: italic;
}

/* Efeitos de Hover para Imagem */
.manus-pb-image-hover-zoom:hover {
    transform: scale(1.02);
}

.manus-pb-image-hover-darken:hover {
    filter: brightness(0.8);
}

.manus-pb-image-hover-lighten:hover {
    filter: brightness(1.2);
}

/* Banner Hero */
.manus-pb-hero-banner-block {
    position: relative;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 400px;
    margin: 30px 0;
}

.manus-pb-hero-banner-block h1 {
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 20px 0;
}

.manus-pb-hero-banner-block p {
    opacity: 0.9;
    line-height: 1.5;
    margin: 0 0 30px 0;
}

.manus-pb-hero-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 5px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.manus-pb-hero-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Bloco de Botão */
.manus-pb-button-block {
    margin: 20px 0;
}

.manus-pb-button {
    display: inline-block;
    border: none;
    cursor: pointer;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    text-align: center;
}

.manus-pb-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    opacity: 0.9;
}

.manus-pb-button:active {
    transform: translateY(0);
}

/* Bloco Espaçador */
.manus-pb-spacer-block {
    width: 100%;
    clear: both;
}

/* Responsividade */
@media (max-width: 768px) {
    .manus-pb-gallery-layout-masonry .manus-pb-gallery-grid {
        column-count: 2;
    }
    
    .manus-pb-gallery-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    .manus-pb-hero-banner-block {
        min-height: 300px;
        text-align: center !important;
        justify-content: center !important;
    }
    
    .manus-pb-hero-banner-block h1 {
        font-size: 32px !important;
    }
    
    .manus-pb-hero-banner-block p {
        font-size: 16px !important;
    }
}

@media (max-width: 480px) {
    .manus-pb-gallery-layout-masonry .manus-pb-gallery-grid {
        column-count: 1;
    }
    
    .manus-pb-gallery-grid {
        grid-template-columns: 1fr !important;
    }
    
    .manus-pb-hero-banner-block {
        min-height: 250px;
    }
    
    .manus-pb-hero-banner-block h1 {
        font-size: 24px !important;
    }
    
    .manus-pb-hero-banner-block p {
        font-size: 14px !important;
    }
    
    .manus-pb-button {
        width: 100%;
        text-align: center;
    }
}

/* Integração com Fancybox */
.manus-pb-gallery-lightbox .manus-pb-gallery-link {
    display: block;
    position: relative;
}

.manus-pb-gallery-lightbox .manus-pb-gallery-link::after {
    content: '🔍';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
    font-size: 16px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.manus-pb-gallery-lightbox .manus-pb-gallery-item:hover .manus-pb-gallery-link::after {
    opacity: 1;
}

/* Animações */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.manus-pb-text-block,
.manus-pb-gallery-block,
.manus-pb-video-block,
.manus-pb-image-block,
.manus-pb-button-block {
    animation: fadeInUp 0.6s ease-out;
}

/* Utilitários */
.manus-pb-clearfix::after {
    content: "";
    display: table;
    clear: both;
}

.manus-pb-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}



/* Compatibilidade com Fancybox - garante funcionamento em qualquer página */
.manus-pb-gallery-lightbox .manus-pb-gallery-link {
    cursor: zoom-in;
    display: block;
    text-decoration: none;
}

.manus-pb-gallery-lightbox .manus-pb-gallery-link:hover {
    opacity: 0.9;
}

/* Correções específicas para WordPress - garante funcionamento em qualquer tema */
.wp-block-manus-page-builder-text-block,
.wp-block-manus-page-builder-image-block,
.wp-block-manus-page-builder-gallery-block,
.wp-block-manus-page-builder-hero-banner,
.wp-block-manus-page-builder-button-block,
.wp-block-manus-page-builder-spacer-block,
.wp-block-manus-page-builder-video-block {
    margin: 0;
    padding: 0;
}

/* Força aplicação dos estilos mesmo com especificidade alta de temas */
body.wp-admin .manus-pb-gallery-block,
body.wp-admin .manus-pb-text-block,
body.wp-admin .manus-pb-image-block,
body.wp-admin .manus-pb-hero-banner-block,
body.wp-admin .manus-pb-button-block,
body.wp-admin .manus-pb-spacer-block,
body.wp-admin .manus-pb-video-block,
body:not(.wp-admin) .manus-pb-gallery-block,
body:not(.wp-admin) .manus-pb-text-block,
body:not(.wp-admin) .manus-pb-image-block,
body:not(.wp-admin) .manus-pb-hero-banner-block,
body:not(.wp-admin) .manus-pb-button-block,
body:not(.wp-admin) .manus-pb-spacer-block,
body:not(.wp-admin) .manus-pb-video-block {
    display: block !important;
    box-sizing: border-box !important;
}

/* Garantia de funcionamento do lightbox em qualquer contexto */
.manus-pb-gallery-block[data-fancybox] img,
.manus-pb-gallery-block .manus-pb-gallery-link[data-fancybox] img {
    cursor: zoom-in;
    transition: all 0.3s ease;
}

.manus-pb-gallery-block[data-fancybox] img:hover,
.manus-pb-gallery-block .manus-pb-gallery-link[data-fancybox] img:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

/* Estilos para drag & drop no editor */
.block-editor-page .manus-pb-gallery-item-editor {
    border: 2px dashed #ddd;
    padding: 5px;
    position: relative;
    cursor: move;
    transition: all 0.3s ease;
}

.block-editor-page .manus-pb-gallery-item-editor:hover {
    border-color: #80120c;
    transform: scale(1.02);
}

.block-editor-page .manus-pb-remove-image {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255,0,0,0.8);
    color: white;
    border: none;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    cursor: pointer;
    font-size: 12px;
    z-index: 10;
    transition: all 0.2s ease;
}

.block-editor-page .manus-pb-remove-image:hover {
    background: rgba(255,0,0,1);
    transform: scale(1.1);
}

/* Indicador de posição para drag & drop */
.block-editor-page .manus-pb-position-indicator {
    position: absolute;
    top: 5px;
    left: 5px;
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: bold;
    z-index: 10;
    pointer-events: none;
}

/* Estados de drag & drop */
.block-editor-page .manus-pb-gallery-editor.manus-pb-drag-active {
    background: rgba(0, 123, 255, 0.1);
    border: 2px dashed #80120c;
    border-radius: 5px;
    padding: 10px;
}

.block-editor-page .manus-pb-gallery-item-editor.manus-pb-dragging {
    opacity: 0.5;
    transform: rotate(5deg);
}

.block-editor-page .manus-pb-gallery-preview.manus-pb-drag-over {
    background: rgba(0, 123, 255, 0.05);
}

/* Responsividade aprimorada */
@media (max-width: 768px) {
    .manus-pb-gallery-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    .manus-pb-hero-banner-block {
        min-height: 300px !important;
        text-align: center !important;
    }
    
    .manus-pb-hero-banner-block h1 {
        font-size: 2rem !important;
    }
    
    .manus-pb-hero-banner-block p {
        font-size: 1rem !important;
    }
}

@media (max-width: 480px) {
    .manus-pb-gallery-grid {
        grid-template-columns: 1fr !important;
    }
    
    .manus-pb-hero-banner-block {
        min-height: 250px !important;
    }
    
    .manus-pb-hero-banner-block h1 {
        font-size: 1.5rem !important;
    }
}

/* Fallback para navegadores sem suporte a grid */
@supports not (display: grid) {
    .manus-pb-gallery-grid {
        display: flex;
        flex-wrap: wrap;
    }
    
    .manus-pb-gallery-item {
        flex: 1 1 calc(33.333% - 10px);
        margin: 5px;
    }
}

/* Animação de carregamento para imagens */
@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.manus-pb-gallery-item img[src=""] {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

/* Melhorias de acessibilidade */
.manus-pb-button:focus,
.manus-pb-hero-button:focus,
.manus-pb-gallery-link:focus {
    outline: 2px solid #80120c;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .manus-pb-gallery-block,
    .manus-pb-video-block {
        break-inside: avoid;
    }
    
    .manus-pb-hero-banner-block {
        background-image: none !important;
        border: 1px solid #ccc;
    }
}


/* ================================================== */
/*          ESTILOS PARA O HEADER DO PLUGIN           */
/* ================================================== */

/* Container principal do Header */
.manus-pb-header {
    background-color: #ffffff;
    border-bottom: 1px solid #e0e0e0;
    padding: 10px 0;
    width: 100%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.manus-pb-header .header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px; /* Ou a largura do seu site */
    margin: 0 auto;
    padding: 0 20px;
}

/* Logo */
.manus-pb-header .site-branding .custom-logo {
    max-height: 50px; /* Ajuste a altura máxima do seu logo */
    width: auto;
}

.manus-pb-header .site-branding .site-title a {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    text-decoration: none;
}

/* Menu de Navegação */
.manus-pb-header .main-navigation ul.manus-child-pages-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 25px; /* Espaçamento entre os itens do menu */
}
body.single-manus_custom_page::before {
    content: "";
    position: absolute;
    inset: 0;
    background-position: bottom;
    z-index: -1;
    opacity: 0.5;
}
body.single-manus_custom_page{
    position: relative;
}

.manus-pb-header .main-navigation .menu-item a {
    display: block;
    padding: 10px 5px;
    font-size: 16px;
    font-weight: 500;
    color: #555555;
    text-decoration: none;
    position: relative;
    transition: color 0.3s ease;
}

/* Efeito de hover no link do menu */
.manus-pb-header .main-navigation .menu-item a:hover {
    color: #80120c; /* Cor de destaque */
}

/* Linha animada sob o link */
.manus-pb-header .main-navigation .menu-item a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #80120c;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.3s ease-out;
}

.manus-pb-header .main-navigation .menu-item a:hover::after {
    transform: scaleX(1);
}

/* --------------------------------------------------------------- */
/* Submenu (dropdown) para netos/bisnetos no menu do header         */
/* CORREÇÃO: o <ul class="sub-menu"> gerado para páginas com filhos */
/* não tinha NENHUM estilo, então aparecia como uma lista solta,    */
/* empurrando o layout do header para baixo. Agora ele vira um      */
/* dropdown de verdade, posicionado de forma absoluta e revelado    */
/* ao passar o mouse (ou ao focar via teclado) no item pai.         */
/* --------------------------------------------------------------- */
.manus-pb-header .main-navigation .menu-item {
    position: relative;
}

.manus-pb-header .main-navigation .menu-item.menu-item-has-children > a {
    display: flex;
    align-items: center;
    gap: 4px;
}

.manus-pb-header .main-navigation .menu-item.menu-item-has-children > a::before {
    content: '';
    display: inline-block;
    margin-left: 4px;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid currentColor;
    opacity: 0.6;
}

.manus-pb-header .main-navigation .sub-menu {
    list-style: none;
    margin: 0;
    padding: 8px 0;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    z-index: 200;
    display: none;
    flex-direction: column;
    gap: 0;
}

.manus-pb-header .main-navigation .sub-menu .sub-menu {
    top: 0;
    left: 100%;
}

.manus-pb-header .main-navigation .menu-item.menu-item-has-children:hover > .sub-menu,
.manus-pb-header .main-navigation .menu-item.menu-item-has-children:focus-within > .sub-menu {
    display: flex;
}

.manus-pb-header .main-navigation .sub-menu .menu-item a {
    padding: 10px 16px;
    color: #333;
    white-space: nowrap;
}

.manus-pb-header .main-navigation .sub-menu .menu-item a::after {
    display: none;
}

.manus-pb-header .main-navigation .sub-menu .menu-item a:hover {
    background: #f9fafb;
}

/* Responsividade para o Header: menu "hambúrguer" no celular */
.manus-pb-header .manus-menu-toggle {
    display: none;
    background: transparent;
    border: 1px solid currentColor;
    border-radius: 6px;
    padding: 10px;
    cursor: pointer;
    color: inherit;
    line-height: 0;
}
.manus-pb-header .manus-menu-toggle-bar {
    display: block;
    width: 22px;
    height: 2px;
    background: currentColor;
    margin: 4px 0;
    transition: transform 0.25s ease, opacity 0.25s ease;
}
.manus-pb-header .manus-menu-toggle[aria-expanded="true"] .manus-menu-toggle-bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.manus-pb-header .manus-menu-toggle[aria-expanded="true"] .manus-menu-toggle-bar:nth-child(2) { opacity: 0; }
.manus-pb-header .manus-menu-toggle[aria-expanded="true"] .manus-menu-toggle-bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 768px) {
    .manus-pb-header .header-container {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
    }

    .manus-pb-header .manus-menu-toggle {
        display: inline-block;
    }

    .manus-pb-header .main-navigation {
        display: none;
        width: 100%;
        flex-basis: 100%;
        order: 3;
    }
    .manus-pb-header .main-navigation.is-open {
        display: block;
    }

    .manus-pb-header .main-navigation ul.manus-child-pages-menu {
        flex-direction: column;
        flex-wrap: nowrap;
        align-items: stretch;
        gap: 0;
    }
    .manus-pb-header .main-navigation .menu-item a {
        display: block;
        padding: 12px 4px;
        border-bottom: 1px solid rgba(128, 128, 128, 0.25);
    }
    .manus-pb-header .main-navigation .menu-item a::after {
        display: none;
    }

    /* O dropdown vira um bloco empilhado dentro do menu aberto. */
    .manus-pb-header .main-navigation .sub-menu {
        position: static;
        box-shadow: none;
        border: none;
        border-left: 2px solid rgba(128, 128, 128, 0.35);
        margin-left: 10px;
        min-width: 0;
        width: auto;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: block;
    }

    .manus-pb-header .main-navigation .sub-menu .sub-menu {
        left: 0;
    }
}

/* Estilos para o Bloco de Modal */

.manus-modal-open {
    overflow: hidden; /* Trava o scroll da página quando o modal está aberto */
}

.manus-pb-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.manus-pb-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    cursor: pointer;
}

.manus-pb-modal-content {
    position: relative;
    background-color: #fff;
    padding: 40px;
    border-radius: 5px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.manus-pb-modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    font-weight: bold;
    line-height: 1;
    color: #000;
    background: none;
    border: none;
    cursor: pointer;
    opacity: 0.3;
}

.manus-pb-modal-close:hover {
    opacity: 1;
}

.manus-pb-modal-title {
    margin-top: 0;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

/* Estilos para o gatilho */
.manus-pb-modal-trigger.is-link {
    text-decoration: underline;
    cursor: pointer;
}

/* --- Estilos para o Gatilho de Imagem do Modal --- */

/* Garante que a imagem seja responsiva e não ultrapasse seu contêiner */
.manus-pb-modal-trigger-image img {
    max-width: 100%;
    height: auto;
    display: block; /* Remove espaço extra abaixo da imagem */
    transition: all 0.3s ease-in-out; /* Transição suave para os efeitos */
}

/* Efeito de Hover: Zoom Suave */
.manus-pb-hover-effect-zoom:hover img {
    transform: scale(1.05);
}

/* Efeito de Hover: Aumentar Sombra */
.manus-pb-hover-effect-shadow:hover img {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transform: translateY(-5px);
}



/* ======================================================== */
/* CORREÇÃO DE CSS PARA O BANNER HERO E MENU                */
/* ======================================================== */

/* 1. Garante que o header do plugin tenha seu próprio contexto de empilhamento */
.manus-pb-header {
    position: relative; /* Essencial para o z-index funcionar */
    z-index: 100;       /* Um valor alto para ficar acima do hero */
    top: 0;
    left: 0;
    margin-bottom: 0 !important;
}

/* 2. Garante que o wrapper do hero fique abaixo do header */
.manus-pb-hero-banner-wrapper {
    position: relative; /* Necessário para o z-index e para o overlay */
    z-index: 1;         /* Um valor baixo, para ficar atrás do header */
    top: 5%;
}

/* 3. Garante que o overlay fique dentro do hero, mas atrás do conteúdo do hero */
.manus-pb-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgb(26 26 26 / 25%); /* Cor padrão, pode ser sobrescrita */
    z-index: 1; /* Fica acima da imagem de fundo, mas abaixo do conteúdo */
}

/* 4. Garante que o conteúdo do hero (título, texto) fique acima do overlay */
.manus-pb-hero-content {
    position: relative; /* Essencial para o z-index funcionar */
    z-index: 2;         /* Fica acima do overlay */
    padding: 40px;
    text-align: center;
    color: #fff;
}

/* Estilos para o Flipbook com JavaScript */
.manus-flipbook-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background-color: #f3f3f3;
}

.manus-flipbook-book {
    position: relative;
    width: 80%; /* Largura do livro aberto */
    height: 100%;
    transform-style: preserve-3d;
    perspective: 2000px;
}

.flipbook-page {
    position: absolute;
    width: 50%; /* Cada página é metade do livro */
    height: 100%;
    top: 0;
    right: 0;
    transform-origin: left center; /* A "lombada" do livro */
    transition: transform 0.8s cubic-bezier(0.65, 0, 0.35, 1);
    transform-style: preserve-3d;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.flipbook-page.flipped {
    transform: rotateY(-180deg);
}

.flipbook-page-content {
    position: absolute;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
}

.flipbook-page-front,
.flipbook-page-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden; /* Essencial para o efeito 3D */
    background-color: white;
}

.flipbook-page-back {
    transform: rotateY(180deg);
}

.flipbook-page img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.flipbook-cover {
    z-index: 99; /* Garante que a capa esteja sempre por cima no início */
}

/* =================================================================== */
/* ESTILOS PARA BLOCOS DE LARGURA TOTAL (VERSÃO FINAL E AGRESSIVA) */
/* =================================================================== */

/* 
 * 1. Força o bloco a ter largura total.
 * O seletor é extremamente específico para garantir prioridade.
 */
body .entry-content .wp-block.manus-pb-layout-fullwidth {
    position: relative !important;
    width: 100vw !important;
    max-width: 100vw !important;
    left: 50% !important;
    margin-left: -50vw !important;
    margin-right: -50vw !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* 
 * 2. NOVO E CRUCIAL: Força os contêineres PAI a permitirem o overflow.
 * Esta regra diz: "Se um elemento com a classe '.entry-content' CONTÉM
 * um dos nossos blocos de largura total, então remova o 'overflow: hidden' dele."
 * Isso é necessário se o tema estiver "cortando" o conteúdo que vaza.
 */
.entry-content:has(.manus-pb-layout-fullwidth),
.site-content:has(.manus-pb-layout-fullwidth),
main:has(.manus-pb-layout-fullwidth),
#main:has(.manus-pb-layout-fullwidth) {
    overflow: visible !important;
}

/* 
 * 3. Centraliza o conteúdo INTERNO do banner (sem alterações).
 */
.manus-pb-layout-fullwidth .manus-pb-hero-content-wrapper {
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

.manus-pb-parent-of-fullwidth {
    overflow: visible !important;
}

/* A regra para o bloco em si permanece a mesma e correta */
.manus-pb-layout-fullwidth {
    position: relative !important;
    width: 100vw !important;
    max-width: 100vw !important;
    left: 50% !important;
    margin-left: -50vw !important;
}

/* 
 * 4. Medida de segurança contra a barra de rolagem horizontal (sem alterações).
 */
html, body {
    overflow-x: hidden;
}


/* Estilos para o Template Hierárquico */
.manus-pb-template-hierarchical {
    padding: 40px 0;
    min-height: 60vh;
}

.manus-pb-hierarchical-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Breadcrumb */
.manus-pb-breadcrumb {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 12px 20px;
    margin-bottom: 20px;
}

.breadcrumb-inner {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.breadcrumb-home {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
    color: #4b5563;
}

.breadcrumb-home:hover {
    color: #007cba;
}

.breadcrumb-separator {
    color: #9ca3af;
}

.breadcrumb-link,
.breadcrumb-current {
    font-size: 14px;
}

.breadcrumb-link {
    text-decoration: none;
    color: #4b5563;
}

.breadcrumb-link:hover {
    color: #007cba;
}

.breadcrumb-current {
    color: #111827;
    font-weight: 600;
}

.manus-pb-sitemap-trigger-wrapper {
    text-align: right;
    margin-bottom: 20px;
}

.manus-pb-sitemap-trigger {
    background: #f3f4f6;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    transition: all 0.3s;
}

.manus-pb-sitemap-trigger:hover {
    background: #e5e7eb;
}

/* Layout Principal */
.manus-pb-hierarchical-layout {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

/* Menu Lateral */
.manus-pb-sidebar-nav {
    flex: 0 0 280px;
}

.sidebar-nav-inner {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    position: sticky;
    top: 20px;
    overflow: hidden;
}

.nav-header {
    padding: 15px 20px;
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
}

.nav-title {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.hierarchical-nav {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: calc(100vh - 200px);
    overflow-y: auto;
}

.hierarchical-nav li {
    margin: 0;
    border-bottom: 1px solid #f3f4f6;
}

.hierarchical-nav a {
    display: block;
    padding: 10px 20px;
    text-decoration: none;
    color: #4b5563;
    transition: all 0.3s;
}

.hierarchical-nav a:hover {
    background: #f9fafb;
    color: #007cba;
    padding-left: 25px;
}

.hierarchical-nav .current_page_item > a,
.hierarchical-nav .current_page_ancestor > a {
    background: #eff6ff;
    color: #007cba;
    font-weight: 600;
    border-left: 3px solid #007cba;
}

.hierarchical-nav .children {
    list-style: none;
    margin: 0;
    padding: 0;
    background: #f9fafb;
    display: none;
}

.hierarchical-nav .children a {
    padding-left: 35px;
}

.hierarchical-nav .current_page_item .children,
.hierarchical-nav .current_page_ancestor .children {
    display: block;
}

.back-to-top {
    width: 100%;
    padding: 12px;
    background: #f9fafb;
    border: none;
    border-top: 1px solid #e5e7eb;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.3s;
}

.back-to-top:hover {
    background: #f3f4f6;
}

/* Conteúdo Principal */
.manus-pb-main-content {
    flex: 1;
    min-width: 0;
}

.manus-pb-hierarchical-article {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
}

.article-header {
    padding: 30px 30px 0;
}

.article-title {
    margin: 0 0 15px;
    font-size: 32px;
}

.article-excerpt {
    color: #6b7280;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.article-content {
    padding: 30px;
    font-size: 16px;
    line-height: 1.8;
}

/* Navegação entre Páginas */
.manus-pb-page-navigation {
    margin: 40px 0 30px;
    padding: 20px 0;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
}

.nav-links {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.nav-prev,
.nav-next {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    padding: 10px 15px;
    background: #f9fafb;
    border-radius: 6px;
    transition: all 0.3s;
    flex: 1;
}

.nav-prev:hover,
.nav-next:hover {
    background: #f3f4f6;
}

.nav-prev:hover {
    transform: translateX(-2px);
}

.nav-next:hover {
    transform: translateX(2px);
}

.nav-arrow {
    font-size: 20px;
    font-weight: bold;
}

.nav-text {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.nav-label {
    font-size: 12px;
    color: #6b7280;
}

.nav-title {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
}

.nav-next .nav-text {
    text-align: right;
}

.nav-placeholder {
    flex: 1;
}

/* Grid de Subpáginas */
.manus-pb-child-pages-section {
    margin-top: 40px;
}

.section-title {
    font-size: 24px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.child-pages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.child-page-card {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.child-page-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* ================================================== */
/*   ARQUIVO DE GRUPO / AGREGADOR (item 3 do pedido)   */
/* ================================================== */
.manus-pb-group-archive {
    padding: 40px 20px;
}

.manus-pb-group-archive-header {
    margin-bottom: 30px;
}

.manus-pb-group-archive-description {
    color: #6b7280;
    font-size: 16px;
    line-height: 1.6;
    margin-top: 10px;
}

.manus-pb-group-archive-empty {
    color: #6b7280;
    padding: 20px 0;
}

.card-image img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.card-content {
    padding: 20px;
}

.card-title {
    margin: 0 0 10px;
    font-size: 18px;
}

.card-title a {
    text-decoration: none;
    color: #111827;
}

.card-title a:hover {
    color: #007cba;
}

.card-excerpt {
    color: #6b7280;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.card-read-more {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
    font-weight: 500;
}

/* Modal */
.manus-pb-modal {
    display: none;
    position: fixed;
    z-index: 100000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
}

.manus-pb-modal[aria-hidden="false"] {
    display: block;
}

.modal-overlay {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
}

.modal-container {
    position: relative;
    background: #fff;
    margin: 5% auto;
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
}

.modal-header h2 {
    margin: 0;
    font-size: 20px;
}

.modal-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.modal-close .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
}

.modal-body {
    padding: 20px;
    max-height: calc(80vh - 80px);
    overflow-y: auto;
}

/* Sitemap */
.manus-pb-sitemap-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sitemap-item {
    margin: 8px 0;
}

.sitemap-item-content {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 6px;
}

.sitemap-item.current .sitemap-item-content {
    background: #eff6ff;
}

.item-icon .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
    color: #6b7280;
}

.item-link {
    text-decoration: none;
    color: #4b5563;
    flex: 1;
}

.item-link:hover {
    color: #007cba;
}

.item-current-badge {
    font-size: 11px;
    background: #dbeafe;
    color: #1e40af;
    padding: 2px 8px;
    border-radius: 12px;
}

.manus-pb-sitemap-list .manus-pb-sitemap-list {
    margin-left: 24px;
    padding-left: 12px;
    border-left: 2px solid #e5e7eb;
}

/* Responsividade */
@media (max-width: 768px) {
    .manus-pb-hierarchical-layout {
        flex-direction: column;
    }
    
    .manus-pb-sidebar-nav {
        flex: auto;
        order: 2;
    }
    
    .sidebar-nav-inner {
        position: static;
    }
    
    .manus-pb-main-content {
        order: 1;
    }
    
    .nav-links {
        flex-direction: column;
    }
    
    .nav-prev,
    .nav-next {
        justify-content: center;
    }
    
    .nav-text {
        text-align: center;
    }
    
    .child-pages-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-container {
        width: 95%;
        margin: 10% auto;
    }
    
    .article-header {
        padding: 20px 20px 0;
    }
    
    .article-content {
        padding: 20px;
    }
}

/* Print Styles */
@media print {
    .manus-pb-sidebar-nav,
    .manus-pb-sitemap-trigger-wrapper,
    .manus-pb-page-navigation,
    .back-to-top,
    .article-footer,
    .manus-pb-modal {
        display: none;
    }
    
    .manus-pb-hierarchical-layout {
        display: block;
    }
    
    .article-header,
    .article-content {
        padding: 0;
    }
}


/* Bloco de Ícones */
.manus-pb-icon-block {
    transition: all 0.3s ease;
    display: inline-block;
    width: 100%;
}

.manus-pb-icon-link {
    text-decoration: none;
    display: block;
}

.manus-pb-icon-wrapper {
    display: flex;
    flex-direction: column;
    align-items: inherit;
}

.manus-pb-icon-align-left .manus-pb-icon-wrapper {
    align-items: flex-start;
}

.manus-pb-icon-align-center .manus-pb-icon-wrapper {
    align-items: center;
}

.manus-pb-icon-align-right .manus-pb-icon-wrapper {
    align-items: flex-end;
}

/* Efeitos Hover */
.manus-pb-icon-hover-scale:hover {
    transform: scale(1.05);
}

.manus-pb-icon-hover-grow .manus-pb-icon-wrapper .dashicons {
    transition: transform 0.3s ease;
}

.manus-pb-icon-hover-grow:hover .manus-pb-icon-wrapper .dashicons {
    transform: scale(1.2);
}

.manus-pb-icon-hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.manus-pb-icon-hover-shadow:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.manus-pb-icon-hover-color .manus-pb-icon-wrapper .dashicons {
    transition: color 0.3s ease;
}

.manus-pb-icon-hover-color:hover .manus-pb-icon-wrapper .dashicons {
    color: #005a9c !important;
}

/* Ícone com rotação */
.manus-pb-icon-hover-rotate .manus-pb-icon-wrapper .dashicons {
    transition: transform 0.3s ease;
}

.manus-pb-icon-hover-rotate:hover .manus-pb-icon-wrapper .dashicons {
    transform: rotate(360deg);
}

/* =============================================
   BLOCO DE ÍCONES COM TÍTULO E LINK
   ============================================= */

.manus-pb-icon-block {
    transition: all 0.3s ease;
    display: inline-block;
    width: 100%;
    box-sizing: border-box;
}

.manus-pb-icon-link {
    text-decoration: none;
    display: block;
}

.manus-pb-icon-wrapper {
    display: flex;
    flex-direction: column;
    align-items: inherit;
}

.manus-pb-icon-align-left .manus-pb-icon-wrapper {
    align-items: flex-start;
    text-align: left;
}

.manus-pb-icon-align-center .manus-pb-icon-wrapper {
    align-items: center;
    text-align: center;
}

.manus-pb-icon-align-right .manus-pb-icon-wrapper {
    align-items: flex-end;
    text-align: right;
}

.manus-pb-icon-title {
    margin: 0;
    transition: color 0.3s ease;
}

/* Efeitos Hover */
.manus-pb-icon-hover-scale:hover {
    transform: scale(1.05);
}

.manus-pb-icon-hover-grow .manus-pb-icon-wrapper .dashicons {
    transition: transform 0.3s ease;
}

.manus-pb-icon-hover-grow:hover .manus-pb-icon-wrapper .dashicons {
    transform: scale(1.2);
}

.manus-pb-icon-hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.manus-pb-icon-hover-shadow:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.manus-pb-icon-hover-color .manus-pb-icon-wrapper .dashicons {
    transition: color 0.3s ease;
}

.manus-pb-icon-hover-color:hover .manus-pb-icon-wrapper .dashicons {
    color: #005a9c !important;
}

.manus-pb-icon-hover-rotate .manus-pb-icon-wrapper .dashicons {
    transition: transform 0.3s ease;
}

.manus-pb-icon-hover-rotate:hover .manus-pb-icon-wrapper .dashicons {
    transform: rotate(360deg);
}

/* Responsividade */
@media (max-width: 768px) {
    .manus-pb-icon-block {
        padding: 15px !important;
    }
    
    .manus-pb-icon-wrapper .dashicons {
        font-size: 32px !important;
        width: 32px !important;
        height: 32px !important;
    }
    
    .manus-pb-icon-title {
        font-size: 14px !important;
    }
}

/* Grid de Ícones */
.manus-pb-icon-grid-block {
    margin: 30px 0;
}

.manus-pb-icon-grid {
    display: grid;
    gap: 30px;
}

/* Item de Ícone */
.manus-pb-icon-item {
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.manus-pb-icon-item .manus-pb-icon-link {
    text-decoration: none;
}

.manus-pb-icon-item .manus-pb-icon-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.manus-pb-icon-item h3 {
    transition: color 0.3s ease;
}

.manus-pb-icon-item p {
    transition: color 0.3s ease;
}

/* Efeitos de hover para o item */
.manus-pb-icon-hover-scale:hover {
    transform: scale(1.05);
}

.manus-pb-icon-hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.manus-pb-icon-hover-shadow:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.manus-pb-icon-hover-grow:hover .dashicons,
.manus-pb-icon-hover-grow:hover i {
    transform: scale(1.2);
}

.manus-pb-icon-hover-grow .dashicons,
.manus-pb-icon-hover-grow i {
    transition: transform 0.3s ease;
}

.manus-pb-icon-hover-rotate:hover .dashicons,
.manus-pb-icon-hover-rotate:hover i {
    transform: rotate(360deg);
}

.manus-pb-icon-hover-rotate .dashicons,
.manus-pb-icon-hover-rotate i {
    transition: transform 0.3s ease;
}

.manus-pb-icon-hover-color:hover .dashicons,
.manus-pb-icon-hover-color:hover i {
    color: #005a9c !important;
}

.manus-pb-icon-hover-color .dashicons,
.manus-pb-icon-hover-color i {
    transition: color 0.3s ease;
}

/* Responsividade */
@media (max-width: 768px) {
    .manus-pb-icon-grid {
        gap: 20px;
    }
}

/* ==========================================================================
   Grid de Cards / Card individual
   ========================================================================== */
.manus-pb-cards-grid-block {
    width: 100%;
    box-sizing: border-box;
}

.manus-pb-cards-grid {
    display: grid;
}

.manus-pb-card-item {
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.manus-pb-card-item .manus-pb-card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.manus-pb-card-media {
    margin: -24px -24px 0 -24px;
    overflow: hidden;
}

.manus-pb-card-media img {
    transition: transform 0.4s ease;
}

.manus-pb-card-media-icon {
    margin: 0;
    text-align: inherit;
}

.manus-pb-card-content {
    flex: 1;
}

.manus-pb-card-button {
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.manus-pb-card-button:hover {
    opacity: 0.9;
}

/* Efeitos de hover */
.manus-pb-card-hover-lift:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

.manus-pb-card-hover-scale:hover {
    transform: scale(1.03);
}

.manus-pb-card-hover-shadow:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.manus-pb-card-hover-zoom .manus-pb-card-media {
    overflow: hidden;
}

.manus-pb-card-hover-zoom:hover .manus-pb-card-media img {
    transform: scale(1.08);
}

@media (max-width: 768px) {
    .manus-pb-cards-grid {
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .manus-pb-icon-grid {
        gap: 15px;
    }
}

/* Melhorias no Grid de Ícones */
.manus-pb-icon-grid-block .manus-pb-icon-grid {
    display: grid;
    gap: var(--grid-gap, 30px);
    width: 100%;
}

/* Auto-fit responsivo */
.manus-pb-icon-grid-block.manus-pb-grid-auto-fit .manus-pb-icon-grid {
    grid-template-columns: repeat(auto-fit, minmax(var(--grid-min-width, 250px), 1fr));
}

/* Centralização quando há menos itens */
.manus-pb-icon-grid-block .manus-pb-icon-grid:has(.manus-pb-icon-item:only-child) {
    justify-content: center;
}

.manus-pb-icon-grid-block .manus-pb-icon-grid:has(.manus-pb-icon-item:only-child) .manus-pb-icon-item {
    max-width: 400px;
    margin: 0 auto;
}

/* Garantia de largura total */
.manus-pb-icon-grid-block .manus-pb-icon-item {
    width: 100%;
    box-sizing: border-box;
}

/* Responsividade do auto-fit */
@media (max-width: 768px) {
    .manus-pb-icon-grid-block.manus-pb-grid-auto-fit .manus-pb-icon-grid {
        --grid-min-width: 200px;
    }
}

@media (max-width: 480px) {
    .manus-pb-icon-grid-block.manus-pb-grid-auto-fit .manus-pb-icon-grid {
        grid-template-columns: 1fr;
    }
}




/* ==========================================================================
   Galeria de Vídeos (video_gallery_block) - DESIGN PROFISSIONAL v2.3.0
   ========================================================================== */
.manus-pb-video-gallery-block {
    width: 100%;
    max-width: 100%;
    margin: 28px 0 40px 0;
    --vg-accent: #e63946;
}
.manus-pb-video-gallery-title {
    text-align: center;
    margin: 0 0 24px 0;
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.25;
    color: var(--vg-title-color, #111827);
    position: relative;
}
.manus-pb-video-gallery-title::after {
    content: '';
    display: block;
    width: 56px;
    height: 3px;
    margin: 12px auto 0 auto;
    background: var(--vg-accent);
    border-radius: 3px;
}
.manus-pb-video-gallery-grid {
    display: grid;
    gap: var(--vg-spacing, 18px);
    align-items: start;
}
/* Layout wide (16:9) */
.manus-pb-video-gallery-block.manus-pb-gallery-wide .manus-pb-video-gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}
/* Layout retrato / reels (9:16) */
.manus-pb-video-gallery-block.manus-pb-gallery-portrait .manus-pb-video-gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}
/* Grid 2 colunas */
.manus-pb-video-gallery-block.manus-pb-gallery-grid_2 .manus-pb-video-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
}
/* Grid 4 colunas */
.manus-pb-video-gallery-block.manus-pb-gallery-grid_4 .manus-pb-video-gallery-grid {
    grid-template-columns: repeat(4, 1fr);
}
.manus-pb-video-gallery-item {
    position: relative;
    border-radius: calc(var(--vg-radius, 12px) + 2px);
    overflow: hidden;
    background: #0a0a0a;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08), 0 8px 24px rgba(0, 0, 0, 0.12);
    cursor: pointer;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    display: flex;
    flex-direction: column;
}
/* Overlay com gradiente escuro na capa */
.manus-pb-vg-cover {
    position: relative;
    width: 100%;
    aspect-ratio: var(--vg-ratio, 16 / 9);
    overflow: hidden;
    background: #111;
}
.manus-pb-vg-cover::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.02) 0%, rgba(0, 0, 0, 0) 45%, rgba(0, 0, 0, 0.55) 100%);
    pointer-events: none;
}
.manus-pb-vg-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1), filter 0.4s ease;
    filter: saturate(1.02);
}
/* Capa com fallback (vídeo sem thumbnail) */
.manus-pb-vg-cover.manus-pb-vg-cover-fallback {
    background: linear-gradient(135deg, #1f2937 0%, #374151 55%, #111827 100%);
}
.manus-pb-vg-cover-fallback img {
    display: none;
}
/* Badge de formato (YouTube / Vimeo / Interno) */
.manus-pb-vg-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 4;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 9px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #fff;
    background: rgba(0, 0, 0, 0.62);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
/* Botão de play com animação de pulse */
.manus-pb-vg-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.96);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), background 0.3s ease, box-shadow 0.3s ease;
    pointer-events: none;
}
.manus-pb-vg-play-icon::before {
    content: '';
    display: block;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 10px 0 10px 18px;
    border-color: transparent transparent transparent var(--vg-accent);
    margin-left: 4px;
}
.manus-pb-vg-play-icon::after {
    content: '';
    position: absolute;
    inset: -8px;
    border: 2px solid rgba(255, 255, 255, 0.55);
    border-radius: 50%;
    transform: scale(0.85);
    opacity: 0;
    transition: transform 0.4s ease, opacity 0.4s ease;
}
/* Painel de informações sobre a capa */
.manus-pb-vg-info {
    position: absolute;
    right: 10px;
    bottom: 10px;
    left: 10px;
    z-index: 3;
    display: flex;
    flex-direction: column;
    gap: 3px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}
.manus-pb-vg-item-title {
    font-weight: 700;
    font-size: 0.95rem;
    line-height: 1.3;
    color: #ffffff;
}
.manus-pb-vg-item-caption {
    font-size: 0.8rem;
    line-height: 1.35;
    color: rgba(255, 255, 255, 0.85);
}
/* Hover */
.manus-pb-video-gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08), 0 16px 36px rgba(0, 0, 0, 0.22);
}
.manus-pb-video-gallery-item:hover .manus-pb-vg-cover img {
    transform: scale(1.07);
    filter: saturate(1.15) brightness(1.02);
}
.manus-pb-video-gallery-item:hover .manus-pb-play-icon,
.manus-pb-video-gallery-item:hover .manus-pb-vg-play-icon {
    transform: translate(-50%, -50%) scale(1.12);
    background: #fff;
    box-shadow: 0 8px 26px rgba(0, 0, 0, 0.45);
}
.manus-pb-video-gallery-item:hover .manus-pb-vg-play-icon::after {
    transform: scale(1.05);
    opacity: 1;
}
/* Link que envolve o item (abrir em nova aba) */
.manus-pb-vg-item-link {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    flex: 1;
}
/* Responsividade */
@media (max-width: 768px) {
    .manus-pb-video-gallery-block.manus-pb-gallery-grid_2 .manus-pb-video-gallery-grid,
    .manus-pb-video-gallery-block.manus-pb-gallery-grid_4 .manus-pb-video-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 480px) {
    .manus-pb-video-gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    .manus-pb-video-gallery-block.manus-pb-gallery-portrait .manus-pb-video-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .manus-pb-vg-play-icon {
        width: 46px;
        height: 46px;
    }
    .manus-pb-vg-play-icon::before {
        border-width: 8px 0 8px 14px;
        margin-left: 3px;
    }
    .manus-pb-vg-item-title {
        font-size: 0.85rem;
    }
    .manus-pb-vg-item-caption {
        font-size: 0.72rem;
    }
}
/* Modal de vídeo interno (galeria de vídeos - play_inline) */
.manus-pb-vg-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.manus-pb-vg-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(4px);
}
.manus-pb-vg-modal-content {
    position: relative;
    z-index: 1;
    max-width: 940px;
    width: 100%;
}
.manus-pb-vg-modal-player video,
.manus-pb-vg-modal-player iframe {
    width: 100%;
    max-height: 80vh;
    border-radius: 12px;
    background: #000;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
.manus-pb-vg-modal-close {
    position: absolute;
    top: -46px;
    right: 0;
    background: none;
    border: none;
    color: #fff;
    font-size: 36px;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
    transition: transform 0.2s ease, opacity 0.2s ease;
}
.manus-pb-vg-modal-close:hover {
    opacity: 0.8;
    transform: scale(1.1);
}


/* ==========================================================================
   Onepage: bloco Seção + menu de seções
   ========================================================================== */
.manus-pb-section {
    position: relative;
    scroll-margin-top: var(--manus-pb-header-offset, 0px);
    box-sizing: border-box;
}
.manus-pb-section-full {
    width: 100vw;
    margin-left: calc(50% - 50vw);
}
.manus-pb-section-overlay {
    position: absolute;
    inset: 0;
    background: #000;
    pointer-events: none;
}
.manus-pb-section-inner {
    position: relative;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
    box-sizing: border-box;
}
.manus-onepage-menu .current-menu-item > a {
    font-weight: 700;
    text-decoration: underline;
}

/* ==========================================================================
   Galeria de Vídeos: colunas fixas, cabeçalho e estilos de card
   ========================================================================== */

/* Colunas escolhidas no editor (desktop / tablet / celular) */
.manus-pb-video-gallery-block.manus-pb-vg-custom-cols .manus-pb-video-gallery-grid {
    grid-template-columns: repeat(var(--vg-cols, 3), minmax(0, 1fr));
}
@media (max-width: 1024px) {
    .manus-pb-video-gallery-block.manus-pb-vg-custom-cols .manus-pb-video-gallery-grid {
        grid-template-columns: repeat(var(--vg-cols-tablet, 2), minmax(0, 1fr));
    }
}
@media (max-width: 640px) {
    .manus-pb-video-gallery-block.manus-pb-vg-custom-cols .manus-pb-video-gallery-grid {
        grid-template-columns: repeat(var(--vg-cols-mobile, 1), minmax(0, 1fr));
    }
}

/* Cabeçalho (texto pequeno + título + link) */
.manus-pb-vg-header {
    margin: 0 0 24px 0;
}
.manus-pb-vg-header-split .manus-pb-vg-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
.manus-pb-vg-header-split .manus-pb-video-gallery-title {
    text-align: left;
    margin: 0;
}
.manus-pb-vg-header-split .manus-pb-video-gallery-title::after {
    display: none;
}
.manus-pb-vg-header .manus-pb-video-gallery-title {
    margin-bottom: 0;
}
.manus-pb-vg-eyebrow {
    display: block;
    margin-bottom: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--vg-accent);
}
.manus-pb-vg-header-centered .manus-pb-vg-header {
    text-align: center;
}
.manus-pb-vg-header-link {
    color: var(--vg-accent);
    font-weight: 600;
    text-decoration: underline;
}

/* Selo de duração sobre a capa */
.manus-pb-vg-duration {
    position: absolute;
    right: 10px;
    bottom: 10px;
    z-index: 4;
    padding: 3px 8px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.75rem;
    color: #fff;
    background: rgba(0, 0, 0, 0.78);
    border-radius: 4px;
}
.manus-pb-vg-item-eyebrow {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--vg-accent);
}

/* Estilo "card": capa + texto abaixo, sem moldura escura */
.manus-pb-vg-style-card .manus-pb-video-gallery-item {
    background: var(--vg-card-bg, transparent);
    box-shadow: none;
    border-radius: 0;
    overflow: visible;
}
.manus-pb-vg-style-card .manus-pb-vg-cover {
    border-radius: var(--vg-radius, 8px);
}
.manus-pb-vg-style-card .manus-pb-vg-cover::before {
    display: none; /* sem gradiente escuro: o texto fica abaixo da capa */
}
.manus-pb-vg-style-card .manus-pb-vg-play-icon {
    background: var(--vg-accent);
    width: 64px;
    height: 64px;
}
.manus-pb-vg-style-card .manus-pb-vg-play-icon::before {
    border-color: transparent transparent transparent #111;
}
.manus-pb-vg-style-card .manus-pb-vg-info {
    position: static;
    padding: 16px 0 0 0;
    gap: 6px;
    text-shadow: none;
}
.manus-pb-vg-style-card .manus-pb-vg-item-title {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.15;
    color: var(--vg-title-color, inherit);
}
.manus-pb-vg-style-card .manus-pb-vg-item-caption {
    font-size: 0.95rem;
    color: var(--vg-text-color, inherit);
    opacity: 0.8;
}
.manus-pb-vg-style-card .manus-pb-video-gallery-item:hover {
    transform: none;
    box-shadow: none;
}
.manus-pb-vg-style-card .manus-pb-video-gallery-item:hover .manus-pb-vg-cover img {
    transform: scale(1.04);
}

/* Estilo "somente capa" */
.manus-pb-vg-style-cover .manus-pb-vg-cover::before {
    display: none;
}

/* ==========================================================================
   Botões (estilos sólido / contorno / fantasma / link)
   ========================================================================== */
.manus-pb-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-sizing: border-box;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
}
.manus-pb-btn--full { display: flex; width: 100%; }
.manus-pb-btn--upper { text-transform: uppercase; letter-spacing: 0.06em; }
.manus-pb-btn--solid {
    background: var(--mb-color);
    color: var(--mb-text);
    border: var(--mb-bw, 2px) solid var(--mb-color);
}
.manus-pb-btn--solid:hover {
    background: var(--mb-hover-bg, var(--mb-color));
    border-color: var(--mb-hover-bg, var(--mb-color));
    color: var(--mb-hover-color, var(--mb-text));
    filter: brightness(var(--mb-hover-bright, 1));
    transform: translateY(-1px);
}
.manus-pb-btn--solid:not([style*="--mb-hover-bg"]):hover { filter: brightness(0.92); }
.manus-pb-btn--shadow { box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2); }
.manus-pb-btn--outline {
    background: transparent;
    color: var(--mb-color);
    border: var(--mb-bw, 2px) solid var(--mb-color);
}
.manus-pb-btn--outline:hover {
    background: var(--mb-hover-bg, var(--mb-color));
    color: var(--mb-hover-color, var(--mb-text));
}
.manus-pb-btn--ghost {
    background: transparent;
    color: var(--mb-color);
    border: 0;
}
.manus-pb-btn--ghost:hover {
    background: var(--mb-hover-bg, rgba(128, 128, 128, 0.15));
    color: var(--mb-hover-color, var(--mb-color));
}
.manus-pb-btn--link {
    background: transparent;
    color: var(--mb-color);
    border: 0;
    padding: 0;
    text-decoration: underline;
}
.manus-pb-btn--link:hover { color: var(--mb-hover-color, var(--mb-color)); opacity: 0.8; }
.manus-pb-btn:focus-visible { outline: 3px solid currentColor; outline-offset: 2px; }
@media (max-width: 480px) {
    .manus-pb-btn:not(.manus-pb-btn--link) { width: 100%; }
}

/* ==========================================================================
   Cards: layouts, selos, sombras
   ========================================================================== */
.manus-pb-card-item { position: relative; }
.manus-pb-card-shadow-soft { box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08); }
.manus-pb-card-shadow-strong { box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2); }
.manus-pb-card-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 3;
    padding: 3px 10px;
    font-size: 0.72rem;
    font-weight: 700;
    border-radius: 999px;
    letter-spacing: 0.04em;
}
.manus-pb-card-eyebrow {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 6px;
}
/* Horizontal: mídia ao lado do texto (empilha no celular) */
.manus-pb-card-layout-horizontal,
.manus-pb-card-layout-horizontal .manus-pb-card-link {
    flex-direction: row;
    align-items: stretch;
    gap: 20px;
}
.manus-pb-card-layout-horizontal .manus-pb-card-media {
    flex: 0 0 38%;
    max-width: 38%;
    margin: -24px 0 -24px -24px;
}
.manus-pb-card-layout-horizontal .manus-pb-card-media img { height: 100% !important; min-height: 160px; }
.manus-pb-card-layout-horizontal .manus-pb-card-media-icon { margin: 0; flex: 0 0 auto; max-width: none; }
.manus-pb-card-layout-horizontal .manus-pb-card-content { align-self: center; }
@media (max-width: 600px) {
    .manus-pb-card-layout-horizontal,
    .manus-pb-card-layout-horizontal .manus-pb-card-link { flex-direction: column; }
    .manus-pb-card-layout-horizontal .manus-pb-card-media { flex-basis: auto; max-width: none; margin: -24px -24px 0 -24px; }
}
/* Texto sobre a imagem */
.manus-pb-card-layout-overlay {
    justify-content: flex-end;
    padding: 0 !important;
}
.manus-pb-card-layout-overlay .manus-pb-card-overlay-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.1) 70%);
    pointer-events: none;
}
.manus-pb-card-layout-overlay .manus-pb-card-content,
.manus-pb-card-layout-overlay .manus-pb-card-link {
    position: relative;
    z-index: 2;
}
.manus-pb-card-layout-overlay .manus-pb-card-content { padding: 24px; }

.manus-pb-card-layout-overlay .manus-pb-card-link { margin-top: auto; display: block !important; }
@media (max-width: 600px) {
    .manus-pb-card-layout-horizontal .manus-pb-card-media { margin-left: 0 !important; margin-right: 0 !important; }
}

/* ==========================================================================
   Hero das páginas personalizadas (v2.12.0) — .manus-pb-page-hero
   Mobile-first: no celular a imagem empilha acima do texto (layouts split).
   ========================================================================== */
.manus-pb-page-hero{position:relative;overflow:hidden;background:var(--mbh-bg,#0b1f3a);color:var(--mbh-text,#fff);width:100%;box-sizing:border-box;isolation:isolate}
.manus-pb-page-hero *{box-sizing:border-box}
.manus-pb-page-hero .mbh-media{position:absolute;inset:0;background-size:cover;background-position:var(--mbh-img-pos,center);background-repeat:no-repeat;z-index:0}
.manus-pb-page-hero .mbh-overlay{position:absolute;inset:0;z-index:1;pointer-events:none}
.manus-pb-page-hero .mbh-inner{position:relative;z-index:2;display:flex;min-height:var(--mbh-minh,400px);padding:var(--mbh-pad-y,64px) 5%;width:100%;max-width:1400px;margin:0 auto}
.manus-pb-page-hero .mbh-content{width:100%;max-width:var(--mbh-content-w,640px);display:flex;flex-direction:column;gap:16px}
.manus-pb-page-hero .mbh-eyebrow{margin:0;display:flex;align-items:center;gap:12px;font-size:.8rem;font-weight:700;letter-spacing:.18em;text-transform:uppercase;color:var(--mbh-accent,#f5b301)}
.manus-pb-page-hero .mbh-eyebrow-line{display:inline-block;width:40px;height:2px;background:currentColor;flex:none}
.manus-pb-page-hero h1.mbh-title{margin:0;padding:0;font-size:var(--mbh-title-size,56px);line-height:1.05;font-weight:var(--mbh-title-weight,800);color:var(--mbh-title,#fff) !important;letter-spacing:-.01em;overflow-wrap:break-word}
.manus-pb-page-hero.mbh--upper h1.mbh-title{text-transform:uppercase}
.manus-pb-page-hero .mbh-lead{font-size:var(--mbh-sub-size,18px);line-height:1.6;color:var(--mbh-text,#fff) !important;opacity:.9}
.manus-pb-page-hero .mbh-lead p{margin:0 0 .6em;color:inherit !important}
.manus-pb-page-hero .mbh-lead p:last-child{margin-bottom:0}
.manus-pb-page-hero .mbh-buttons{display:flex;flex-wrap:wrap;gap:12px;margin-top:8px}
.manus-pb-page-hero .mbh-buttons .manus-pb-btn{text-decoration:none}
.manus-pb-page-hero .mbh-stats{display:flex;flex-wrap:wrap;gap:20px 40px;margin-top:16px}
.manus-pb-page-hero .mbh-stats--divider{padding-top:24px;border-top:1px solid rgba(255,255,255,.25)}
.manus-pb-page-hero .mbh-stat{display:flex;flex-direction:column;gap:2px}
.manus-pb-page-hero .mbh-stat-value{font-size:2rem;font-weight:800;line-height:1;color:var(--mbh-accent,#f5b301)}
.manus-pb-page-hero .mbh-stat-label{font-size:.8rem;letter-spacing:.08em;text-transform:uppercase;opacity:.8}

/* Alinhamento horizontal/vertical */
.manus-pb-page-hero.mbh-align--left .mbh-inner{justify-content:flex-start}
.manus-pb-page-hero.mbh-align--center .mbh-inner{justify-content:center}
.manus-pb-page-hero.mbh-align--right .mbh-inner{justify-content:flex-end}
.manus-pb-page-hero.mbh-align--center .mbh-content{text-align:center;align-items:center}
.manus-pb-page-hero.mbh-align--right .mbh-content{text-align:right;align-items:flex-end}
.manus-pb-page-hero.mbh-align--center .mbh-buttons,.manus-pb-page-hero.mbh-align--center .mbh-stats{justify-content:center}
.manus-pb-page-hero.mbh-align--right .mbh-buttons,.manus-pb-page-hero.mbh-align--right .mbh-stats{justify-content:flex-end}
.manus-pb-page-hero.mbh-valign--top .mbh-inner{align-items:flex-start}
.manus-pb-page-hero.mbh-valign--center .mbh-inner{align-items:center}
.manus-pb-page-hero.mbh-valign--bottom .mbh-inner{align-items:flex-end}

/* Layouts com imagem de um lado */
.manus-pb-page-hero.mbh--split-right .mbh-media,.manus-pb-page-hero.mbh--split-right .mbh-overlay{left:auto;width:var(--mbh-img-w,50%)}
.manus-pb-page-hero.mbh--split-left .mbh-media,.manus-pb-page-hero.mbh--split-left .mbh-overlay{right:auto;width:var(--mbh-img-w,50%)}
.manus-pb-page-hero.mbh--split-left .mbh-inner{justify-content:flex-end}
.manus-pb-page-hero.mbh--split-left.mbh-align--left .mbh-inner{justify-content:flex-end}
.manus-pb-page-hero.mbh--split-right .mbh-content{max-width:min(var(--mbh-content-w,640px),calc(100% - var(--mbh-img-w,50%) + 6%))}
.manus-pb-page-hero.mbh--split-left .mbh-content{max-width:min(var(--mbh-content-w,640px),calc(100% - var(--mbh-img-w,50%) + 6%))}
.manus-pb-page-hero.mbh--split-right.mbh-align--left .mbh-inner{justify-content:flex-start}
.manus-pb-page-hero.mbh--fade.mbh--split-right .mbh-media{-webkit-mask-image:linear-gradient(to right,transparent 0,#000 38%);mask-image:linear-gradient(to right,transparent 0,#000 38%)}
.manus-pb-page-hero.mbh--fade.mbh--split-left .mbh-media{-webkit-mask-image:linear-gradient(to left,transparent 0,#000 38%);mask-image:linear-gradient(to left,transparent 0,#000 38%)}

/* Neutraliza regras antigas do hero (.manus-pb-hero-*) e cores do tema/página */
.manus-pb-page-hero .mbh-eyebrow,.manus-pb-page-hero .mbh-stat{color:inherit}
.manus-pb-page-hero .mbh-eyebrow{color:var(--mbh-accent,#f5b301) !important}
.manus-pb-page-hero .mbh-stat-value{color:var(--mbh-accent,#f5b301) !important}
.manus-pb-page-hero .mbh-stat-label{color:var(--mbh-text,#fff) !important}

/* Celular / tablet pequeno: imagem empilhada sobre o texto */
@media (max-width:768px){
  .manus-pb-page-hero .mbh-inner{padding:32px 20px;min-height:0}
  .manus-pb-page-hero h1.mbh-title{font-size:var(--mbh-title-size-m,32px)}
  .manus-pb-page-hero .mbh-lead{font-size:1rem}
  .manus-pb-page-hero .mbh-stat-value{font-size:1.6rem}
  .manus-pb-page-hero .mbh-buttons .manus-pb-btn{flex:1 1 100%;justify-content:center}
  .manus-pb-page-hero.mbh--overlay .mbh-inner{min-height:var(--mbh-minh,320px)}
  .manus-pb-page-hero.mbh--split-right,.manus-pb-page-hero.mbh--split-left{display:flex;flex-direction:column}
  .manus-pb-page-hero.mbh--split-right .mbh-media,.manus-pb-page-hero.mbh--split-left .mbh-media{position:relative;inset:auto;width:100%;height:var(--mbh-minh,260px);max-height:320px;order:-1;-webkit-mask-image:linear-gradient(to bottom,#000 55%,transparent 100%);mask-image:linear-gradient(to bottom,#000 55%,transparent 100%)}
  .manus-pb-page-hero.mbh--split-right .mbh-overlay,.manus-pb-page-hero.mbh--split-left .mbh-overlay{display:none}
  .manus-pb-page-hero.mbh--no-image .mbh-media{display:none}
  .manus-pb-page-hero.mbh--split-right .mbh-content,.manus-pb-page-hero.mbh--split-left .mbh-content{max-width:100%}
  .manus-pb-page-hero.mbh--split-right .mbh-inner,.manus-pb-page-hero.mbh--split-left .mbh-inner{justify-content:flex-start;padding-top:8px}
  .manus-pb-page-hero.mbh-align--center .mbh-inner{justify-content:center}
}

/* Hero da página: conteúdo extra (imagem/texto) */
.manus-pb-page-hero .mbh-extra{margin-top:8px}
.manus-pb-page-hero .mbh-extra--text{font-size:.95rem;line-height:1.6;opacity:.9;color:var(--mbh-text,#fff) !important}
.manus-pb-page-hero .mbh-extra--text p{margin:0 0 .5em;color:inherit !important}
.manus-pb-page-hero .mbh-extra--image img{display:block}
.manus-pb-page-hero.mbh-align--center .mbh-extra--image img{margin:0 auto}
.manus-pb-page-hero.mbh-align--right .mbh-extra--image img{margin-left:auto}
