/* ============================================================
   OCOHOST LIVE — MOBILE ENHANCEMENTS
   Camada de refinamento responsivo carregada por último.
   Mantém o layout desktop original e melhora tablets/celulares.
   ============================================================ */

/* Evita estouros causados por embeds e conteúdos do editor. */
html,
body {
    max-width: 100%;
}

.post-content iframe:not([class*="ocohost-news"]):not([id*="ocohost-news"]):not([class*="oco-news"]):not([id*="oco-news"]):not([class*="ocohost-news"] *):not([id*="ocohost-news"] *):not([class*="oco-news"] *):not([id*="oco-news"] *),
.post-content video:not([class*="ocohost-news"]):not([id*="ocohost-news"]):not([class*="oco-news"]):not([id*="oco-news"]):not([class*="ocohost-news"] *):not([id*="ocohost-news"] *):not([class*="oco-news"] *):not([id*="oco-news"] *),
.post-content embed:not([class*="ocohost-news"]):not([id*="ocohost-news"]):not([class*="oco-news"]):not([id*="oco-news"]):not([class*="ocohost-news"] *):not([id*="ocohost-news"] *):not([class*="oco-news"] *):not([id*="oco-news"] *),
.post-content object:not([class*="ocohost-news"]):not([id*="ocohost-news"]):not([class*="oco-news"]):not([id*="oco-news"]):not([class*="ocohost-news"] *):not([id*="ocohost-news"] *):not([class*="oco-news"] *):not([id*="oco-news"] *),
.video-post-content iframe:not([class*="ocohost-news"]):not([id*="ocohost-news"]):not([class*="oco-news"]):not([id*="oco-news"]):not([class*="ocohost-news"] *):not([id*="ocohost-news"] *):not([class*="oco-news"] *):not([id*="oco-news"] *),
.video-post-content video:not([class*="ocohost-news"]):not([id*="ocohost-news"]):not([class*="oco-news"]):not([id*="oco-news"]):not([class*="ocohost-news"] *):not([id*="ocohost-news"] *):not([class*="oco-news"] *):not([id*="oco-news"] *),
.special-post-content iframe:not([class*="ocohost-news"]):not([id*="ocohost-news"]):not([class*="oco-news"]):not([id*="oco-news"]):not([class*="ocohost-news"] *):not([id*="ocohost-news"] *):not([class*="oco-news"] *):not([id*="oco-news"] *),
.special-post-content video:not([class*="ocohost-news"]):not([id*="ocohost-news"]):not([class*="oco-news"]):not([id*="oco-news"]):not([class*="ocohost-news"] *):not([id*="ocohost-news"] *):not([class*="oco-news"] *):not([id*="oco-news"] *),
.default-page-content iframe:not(.cenatres-revolution *):not([class*="ocohost-revolution"] *):not([id*="ocohost-revolution"] *):not([class*="ocohost-news"]):not([id*="ocohost-news"]):not([class*="oco-news"]):not([id*="oco-news"]):not([class*="ocohost-news"] *):not([id*="ocohost-news"] *):not([class*="oco-news"] *):not([id*="oco-news"] *),
.default-page-content video:not(.cenatres-revolution *):not([class*="ocohost-revolution"] *):not([id*="ocohost-revolution"] *):not([class*="ocohost-news"]):not([id*="ocohost-news"]):not([class*="oco-news"]):not([id*="oco-news"]):not([class*="ocohost-news"] *):not([id*="ocohost-news"] *):not([class*="oco-news"] *):not([id*="oco-news"] *) {
    max-width: 100%;
}

/* Corrige uma regra antiga que rotacionava o texto do post de vídeo. */
.video-post-content {
    transform: none !important;
}

@media (max-width: 991px) {

    /* ---------- Estrutura geral ---------- */
    .header-flex,
    .search-container,
    .latest-videos-container {
        width: 100%;
        max-width: 100%;
        padding-left: 20px;
        padding-right: 20px;
    }

    body.ocohost-menu-open {
        overflow: hidden !important;
        touch-action: none;
    }

    /* ---------- Header ---------- */
    .site-header {
        position: sticky;
        top: 0;
    }

    .header-flex {
        min-height: 64px;
        gap: 12px;
    }

    .logo {
        min-width: 0;
    }

    .logo-link {
        max-width: min(220px, calc(100vw - 92px));
    }

    .logo img,
    .custom-logo,
    .logo-link .custom-logo {
        max-width: 100%;
        max-height: 40px;
        object-fit: contain;
        object-position: left center;
    }

    .logo h2 {
        font-size: 20px;
        line-height: 1.1;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .mobile-menu-toggle {
        flex: 0 0 44px;
        width: 44px;
        height: 44px;
        border-radius: 12px;
        -webkit-tap-highlight-color: transparent;
    }

    .main-menu {
        right: -360px;
        width: min(360px, 90vw);
        max-width: 90vw;
        height: 100dvh;
        padding: calc(76px + env(safe-area-inset-top)) 18px calc(28px + env(safe-area-inset-bottom));
        overscroll-behavior: contain;
        box-shadow: -20px 0 60px rgba(0, 0, 0, .38);
    }

    .main-menu a {
        min-height: 50px;
        border-radius: 10px;
        margin-bottom: 2px;
        padding: 13px 14px;
    }

    .main-menu .sub-menu {
        padding-left: 8px;
    }

    .menu-overlay {
        position: fixed;
        inset: 0;
        z-index: 999998;
        background: rgba(0, 0, 0, .62);
        -webkit-backdrop-filter: blur(3px);
        backdrop-filter: blur(3px);
        opacity: 0;
        visibility: hidden;
        transition: opacity .25s ease, visibility .25s ease;
    }

    .menu-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    /* Pesquisa passa a existir também dentro do menu mobile. */
    .mobile-menu-search {
        display: block;
        margin-bottom: 18px;
    }

    .mobile-menu-search form {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 46px;
        gap: 8px;
    }

    .mobile-menu-search input {
        width: 100%;
        min-width: 0;
        height: 46px;
        border: 1px solid rgba(255, 255, 255, .12);
        border-radius: 12px;
        outline: 0;
        background: rgba(255, 255, 255, .07);
        color: #fff;
        padding: 0 14px;
        font: inherit;
        font-size: 15px;
    }

    .mobile-menu-search input::placeholder {
        color: rgba(255, 255, 255, .52);
    }

    .mobile-menu-search input:focus {
        border-color: var(--primary-color, #f18d3e);
        box-shadow: 0 0 0 3px rgba(241, 141, 62, .14);
    }

    .mobile-menu-search button {
        width: 46px;
        height: 46px;
        border: 0;
        border-radius: 12px;
        background: var(--primary-color, #f18d3e);
        color: #fff;
        cursor: pointer;
    }

    /* ---------- Categorias ---------- */
    .category-hero {
        min-height: 120px;
        padding: 28px 20px 20px;
    }

    .category-hero h1 {
        margin-bottom: 12px;
        font-size: clamp(30px, 7vw, 48px);
        line-height: 1.05;
        letter-spacing: -.7px;
    }

    .category-hero h1::after {
        width: 76px;
        height: 4px;
        margin-top: 16px;
    }

    .category-description {
        font-size: 16px;
        line-height: 1.6;
    }

    .category-posts {
        padding-left: 20px;
        padding-right: 20px;
    }

    /* O layout antigo mantinha 680px de altura mesmo após virar uma coluna. */
    .g1-hero-grid {
        height: auto !important;
        grid-template-columns: 1fr;
        gap: 16px;
        margin: 18px 0 28px;
    }

    .hero-main-card,
    .hero-side-card {
        border-radius: 16px;
    }

    .hero-main-card a,
    .hero-side-card a {
        height: auto;
    }

    .hero-thumb {
        height: auto;
        aspect-ratio: 16 / 10;
    }

    .hero-main-card .hero-content {
        position: static;
        left: auto;
        bottom: auto;
        transform: none;
        max-width: none;
        margin-top: 0;
        padding: 20px;
        text-align: left;
    }

    .hero-main-card h2 {
        font-size: clamp(24px, 4.6vw, 34px);
        line-height: 1.18;
        margin-bottom: 10px;
    }

    .hero-main-card p {
        font-size: 15px;
        line-height: 1.6;
    }

    .hero-side-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: auto;
        gap: 14px;
    }

    .side-thumb {
        height: auto;
        aspect-ratio: 16 / 9;
    }

    .side-content {
        padding: 15px;
    }

    .side-content h3 {
        font-size: 18px;
        line-height: 1.35;
    }

    .content-with-sidebar {
        gap: 30px;
    }

    .category-sidebar {
        gap: 18px;
    }

    /* ---------- Single / matérias ---------- */
    .portal-hero {
        height: auto;
        min-height: min(62svh, 600px);
    }

    .portal-hero.no-hero-image {
        min-height: 0;
        padding: 76px 0 50px;
    }

    .portal-hero > .hero-content,
    .portal-hero.no-hero-image .hero-content {
        left: 0;
        right: 0;
        bottom: 0;
        transform: none;
        width: 100%;
        max-width: 100%;
        padding: 44px 20px 30px;
    }

    .portal-hero h1,
    .hero-title {
        max-width: 100%;
        font-size: clamp(28px, 6vw, 42px);
        line-height: 1.12;
        margin-bottom: 12px;
        text-wrap: balance;
    }

    .hero-category {
        margin-bottom: 14px;
        padding: 7px 12px;
        font-size: 10px;
        letter-spacing: .6px !important;
    }

    .hero-subtitle {
        max-width: 760px;
        font-size: 17px;
        line-height: 1.55;
        margin-bottom: 14px;
    }

    .hero-meta,
    .portal-hero .meta {
        justify-content: center;
        flex-wrap: wrap;
        gap: 6px 8px;
        font-size: 12px;
        line-height: 1.45;
    }

    .portal-body {
        grid-template-columns: 1fr;
        gap: 34px;
        padding-left: 20px;
        padding-right: 20px;
    }

    .content-column,
    .sidebar-column {
        min-width: 0;
        width: 100%;
    }

    .sidebar-column {
        position: static;
    }

    .post-content p:not([class*="ocohost-news"]):not([id*="ocohost-news"]):not([class*="oco-news"]):not([id*="oco-news"]):not([class*="ocohost-news"] *):not([id*="ocohost-news"] *):not([class*="oco-news"] *):not([id*="oco-news"] *),
    .post-content li:not([class*="ocohost-news"]):not([id*="ocohost-news"]):not([class*="oco-news"]):not([id*="oco-news"]):not([class*="ocohost-news"] *):not([id*="ocohost-news"] *):not([class*="oco-news"] *):not([id*="oco-news"] *),
    .post-content blockquote:not([class*="ocohost-news"]):not([id*="ocohost-news"]):not([class*="oco-news"]):not([id*="oco-news"]):not([class*="ocohost-news"] *):not([id*="ocohost-news"] *):not([class*="oco-news"] *):not([id*="oco-news"] *),
    .video-post-content p:not([class*="ocohost-news"]):not([id*="ocohost-news"]):not([class*="oco-news"]):not([id*="oco-news"]):not([class*="ocohost-news"] *):not([id*="ocohost-news"] *):not([class*="oco-news"] *):not([id*="oco-news"] *),
    .video-post-content li:not([class*="ocohost-news"]):not([id*="ocohost-news"]):not([class*="oco-news"]):not([id*="oco-news"]):not([class*="ocohost-news"] *):not([id*="ocohost-news"] *):not([class*="oco-news"] *):not([id*="oco-news"] *),
    .video-post-content blockquote:not([class*="ocohost-news"]):not([id*="ocohost-news"]):not([class*="oco-news"]):not([id*="oco-news"]):not([class*="ocohost-news"] *):not([id*="ocohost-news"] *):not([class*="oco-news"] *):not([id*="oco-news"] *),
    .special-post-content p:not([class*="ocohost-news"]):not([id*="ocohost-news"]):not([class*="oco-news"]):not([id*="oco-news"]):not([class*="ocohost-news"] *):not([id*="ocohost-news"] *):not([class*="oco-news"] *):not([id*="oco-news"] *),
    .special-post-content li:not([class*="ocohost-news"]):not([id*="ocohost-news"]):not([class*="oco-news"]):not([id*="oco-news"]):not([class*="ocohost-news"] *):not([id*="ocohost-news"] *):not([class*="oco-news"] *):not([id*="oco-news"] *),
    .special-post-content blockquote:not([class*="ocohost-news"]):not([id*="ocohost-news"]):not([class*="oco-news"]):not([id*="oco-news"]):not([class*="ocohost-news"] *):not([id*="ocohost-news"] *):not([class*="oco-news"] *):not([id*="oco-news"] *) {
        overflow-wrap: anywhere;
        word-break: normal;
    }

    /* Em páginas, aplicar quebra somente ao texto editorial; plugins/sliders ficam intactos. */
    .default-page-content p:not(.cenatres-revolution *):not([class*="ocohost-revolution"] *):not([id*="ocohost-revolution"] *):not([class*="ocohost-news"]):not([id*="ocohost-news"]):not([class*="oco-news"]):not([id*="oco-news"]):not([class*="ocohost-news"] *):not([id*="ocohost-news"] *):not([class*="oco-news"] *):not([id*="oco-news"] *),
    .default-page-content li:not(.cenatres-revolution *):not([class*="ocohost-revolution"] *):not([id*="ocohost-revolution"] *):not([class*="ocohost-news"]):not([id*="ocohost-news"]):not([class*="oco-news"]):not([id*="oco-news"]):not([class*="ocohost-news"] *):not([id*="ocohost-news"] *):not([class*="oco-news"] *):not([id*="oco-news"] *),
    .default-page-content blockquote:not(.cenatres-revolution *):not([class*="ocohost-revolution"] *):not([id*="ocohost-revolution"] *):not([class*="ocohost-news"]):not([id*="ocohost-news"]):not([class*="oco-news"]):not([id*="oco-news"]):not([class*="ocohost-news"] *):not([id*="ocohost-news"] *):not([class*="oco-news"] *):not([id*="oco-news"] *) {
        overflow-wrap: anywhere;
        word-break: normal;
    }

    .post-content iframe,
    .default-page-content iframe:not(.cenatres-revolution *):not([class*="ocohost-revolution"] *):not([id*="ocohost-revolution"] *):not([class*="ocohost-news"]):not([id*="ocohost-news"]):not([class*="oco-news"]):not([id*="oco-news"]):not([class*="ocohost-news"] *):not([id*="ocohost-news"] *):not([class*="oco-news"] *):not([id*="oco-news"] *),
    .video-post-content iframe,
    .special-post-content iframe {
        width: 100%;
    }

    .post-content table,
    .default-page-content table:not(.cenatres-revolution):not(.cenatres-revolution *):not([class*="ocohost-revolution"]):not([id*="ocohost-revolution"]):not([class*="ocohost-revolution"] *):not([id*="ocohost-revolution"] *):not([class*="ocohost-news"]):not([id*="ocohost-news"]):not([class*="oco-news"]):not([id*="oco-news"]):not([class*="ocohost-news"] *):not([id*="ocohost-news"] *):not([class*="oco-news"] *):not([id*="oco-news"] *),
    .video-post-content table,
    .special-post-content table {
        display: block;
        width: 100%;
        max-width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .post-content pre,
    .default-page-content pre:not(.cenatres-revolution):not(.cenatres-revolution *):not([class*="ocohost-revolution"]):not([id*="ocohost-revolution"]):not([class*="ocohost-revolution"] *):not([id*="ocohost-revolution"] *):not([class*="ocohost-news"]):not([id*="ocohost-news"]):not([class*="oco-news"]):not([id*="oco-news"]):not([class*="ocohost-news"] *):not([id*="ocohost-news"] *):not([class*="oco-news"] *):not([id*="oco-news"] *),
    .video-post-content pre,
    .special-post-content pre {
        max-width: 100%;
        overflow-x: auto;
        white-space: pre;
    }

    /* Gutenberg editorial: nunca alterar grades internas do Ocohost News. */
    .post-content .wp-block-columns:not([class*="ocohost-news"]):not([id*="ocohost-news"]):not([class*="oco-news"]):not([id*="oco-news"]):not([class*="ocohost-news"] *):not([id*="ocohost-news"] *):not([class*="oco-news"] *):not([id*="oco-news"] *),
    .video-post-content .wp-block-columns:not([class*="ocohost-news"]):not([id*="ocohost-news"]):not([class*="oco-news"]):not([id*="oco-news"]):not([class*="ocohost-news"] *):not([id*="ocohost-news"] *):not([class*="oco-news"] *):not([id*="oco-news"] *),
    .special-post-content .wp-block-columns:not([class*="ocohost-news"]):not([id*="ocohost-news"]):not([class*="oco-news"]):not([id*="oco-news"]):not([class*="ocohost-news"] *):not([id*="ocohost-news"] *):not([class*="oco-news"] *):not([id*="oco-news"] *),
    .default-page-content .wp-block-columns:not([class*="ocohost-news"]):not([id*="ocohost-news"]):not([class*="oco-news"]):not([id*="oco-news"]):not([class*="ocohost-news"] *):not([id*="ocohost-news"] *):not([class*="oco-news"] *):not([id*="oco-news"] *) {
        gap: 20px;
    }

    /* ---------- Páginas ---------- */
    .page-banner {
        height: min(40svh, 380px);
        min-height: 240px;
    }

    .page-banner-inner {
        padding-left: 20px;
        padding-right: 20px;
    }

    .page-banner-inner h1,
    .page-title-plain h1 {
        font-size: clamp(28px, 6vw, 38px);
        line-height: 1.15;
        text-wrap: balance;
    }

    .page-title-plain {
        padding: 70px 0 30px;
    }

    /* ---------- Busca ---------- */
    .search-hero {
        padding: 88px 0 56px;
    }

    .search-hero h1 {
        font-size: clamp(32px, 7vw, 50px);
        line-height: 1.08;
        letter-spacing: -1.4px;
        overflow-wrap: anywhere;
    }

    .search-hero p {
        font-size: 15px;
    }

    .search-results-section {
        padding: 38px 0 70px;
    }

    .search-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
    }

    .search-thumb img {
        height: auto;
        aspect-ratio: 16 / 10;
    }

    .search-card-content {
        padding: 20px;
    }

    .search-card h2 {
        font-size: 22px;
        line-height: 1.22;
        margin-bottom: 12px;
    }

    .search-card p {
        font-size: 14px;
        line-height: 1.6;
        margin-bottom: 16px;
    }

    .search-meta {
        flex-wrap: wrap;
        gap: 6px 8px;
        font-size: 12px;
    }

    /* ---------- Vídeos ---------- */
    .video-hero-cover {
        min-height: min(78svh, 720px);
    }

    .video-cover-content {
        padding: 80px 20px 58px;
    }

    .video-cover-info {
        max-width: 760px;
    }

    .video-cover-info h1 {
        font-size: clamp(30px, 6.4vw, 44px);
        line-height: 1.1;
        margin-bottom: 16px;
        letter-spacing: -.6px;
        text-wrap: balance;
    }

    .video-cover-description {
        font-size: 17px;
        line-height: 1.55;
        margin-bottom: 18px;
    }

    .video-meta {
        flex-wrap: wrap;
        gap: 7px;
        margin-bottom: 24px;
        font-size: 13px;
    }

    .single-video-page .watch-video-btn {
        min-height: 46px;
        padding: 12px 22px;
    }

    .video-post-wrapper,
    .single-special-page .special-post-wrapper {
        padding: 48px 0 64px;
    }

    .video-post-container,
    .single-special-page .special-post-container {
        width: 100%;
        max-width: 900px;
        padding-left: 20px;
        padding-right: 20px;
    }

    .video-post-content {
        transform: none !important;
        background: transparent !important;
    }

    .single-special-page .special-hero-cover {
        min-height: min(78svh, 720px);
        background-attachment: scroll;
    }

    .single-special-page .special-hero-cover .video-cover-content {
        min-height: inherit;
        padding: 86px 20px 64px;
    }

    .latest-videos-section {
        padding: 34px 0 64px;
    }

    .latest-videos-container h2 {
        margin-bottom: 24px;
        font-size: clamp(27px, 5vw, 36px);
    }

    .latest-videos-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 22px 16px;
    }

    .latest-video-thumb img {
        height: auto;
        aspect-ratio: 16 / 9;
    }

    /* ---------- Rodapé ---------- */
    .site-footer {
        padding: 48px 0 34px;
    }

    .footer-content,
    .footer-layout-three-columns .footer-content {
        gap: 24px;
    }

    .footer-bottom {
        margin-top: 28px;
    }
}

@media (max-width: 768px) {

    .header-flex,
    .search-container,
    .latest-videos-container,
    .category-posts {
        padding-left: 16px;
        padding-right: 16px;
    }

    /* Texto editorial justificado sem herdar a regra para blocos de plugins. */
    .post-content p:not([class*="ocohost-news"]):not([id*="ocohost-news"]):not([class*="oco-news"]):not([id*="oco-news"]):not([class*="ocohost-news"] *):not([id*="ocohost-news"] *):not([class*="oco-news"] *):not([id*="oco-news"] *),
    .post-content li:not([class*="ocohost-news"]):not([id*="ocohost-news"]):not([class*="oco-news"]):not([id*="oco-news"]):not([class*="ocohost-news"] *):not([id*="ocohost-news"] *):not([class*="oco-news"] *):not([id*="oco-news"] *),
    .post-content blockquote:not([class*="ocohost-news"]):not([id*="ocohost-news"]):not([class*="oco-news"]):not([id*="oco-news"]):not([class*="ocohost-news"] *):not([id*="ocohost-news"] *):not([class*="oco-news"] *):not([id*="oco-news"] *),
    .video-post-content p:not([class*="ocohost-news"]):not([id*="ocohost-news"]):not([class*="oco-news"]):not([id*="oco-news"]):not([class*="ocohost-news"] *):not([id*="ocohost-news"] *):not([class*="oco-news"] *):not([id*="oco-news"] *),
    .video-post-content li:not([class*="ocohost-news"]):not([id*="ocohost-news"]):not([class*="oco-news"]):not([id*="oco-news"]):not([class*="ocohost-news"] *):not([id*="ocohost-news"] *):not([class*="oco-news"] *):not([id*="oco-news"] *),
    .video-post-content blockquote:not([class*="ocohost-news"]):not([id*="ocohost-news"]):not([class*="oco-news"]):not([id*="oco-news"]):not([class*="ocohost-news"] *):not([id*="ocohost-news"] *):not([class*="oco-news"] *):not([id*="oco-news"] *),
    .special-post-content p:not([class*="ocohost-news"]):not([id*="ocohost-news"]):not([class*="oco-news"]):not([id*="oco-news"]):not([class*="ocohost-news"] *):not([id*="ocohost-news"] *):not([class*="oco-news"] *):not([id*="oco-news"] *),
    .special-post-content li:not([class*="ocohost-news"]):not([id*="ocohost-news"]):not([class*="oco-news"]):not([id*="oco-news"]):not([class*="ocohost-news"] *):not([id*="ocohost-news"] *):not([class*="oco-news"] *):not([id*="oco-news"] *),
    .special-post-content blockquote:not([class*="ocohost-news"]):not([id*="ocohost-news"]):not([class*="oco-news"]):not([id*="oco-news"]):not([class*="ocohost-news"] *):not([id*="ocohost-news"] *):not([class*="oco-news"] *):not([id*="oco-news"] *) {
        text-align: justify !important;
        text-justify: inter-word;
        hyphens: auto !important;
        -webkit-hyphens: auto !important;
        -ms-hyphens: auto;
    }

    /* Páginas: justificar apenas o texto editorial, nunca conteúdo de sliders/plugins. */
    .default-page-content p:not(.cenatres-revolution *):not([class*="ocohost-revolution"] *):not([id*="ocohost-revolution"] *):not([class*="ocohost-news"]):not([id*="ocohost-news"]):not([class*="oco-news"]):not([id*="oco-news"]):not([class*="ocohost-news"] *):not([id*="ocohost-news"] *):not([class*="oco-news"] *):not([id*="oco-news"] *),
    .default-page-content li:not(.cenatres-revolution *):not([class*="ocohost-revolution"] *):not([id*="ocohost-revolution"] *):not([class*="ocohost-news"]):not([id*="ocohost-news"]):not([class*="oco-news"]):not([id*="oco-news"]):not([class*="ocohost-news"] *):not([id*="ocohost-news"] *):not([class*="oco-news"] *):not([id*="oco-news"] *),
    .default-page-content blockquote:not(.cenatres-revolution *):not([class*="ocohost-revolution"] *):not([id*="ocohost-revolution"] *):not([class*="ocohost-news"]):not([id*="ocohost-news"]):not([class*="oco-news"]):not([id*="oco-news"]):not([class*="ocohost-news"] *):not([id*="ocohost-news"] *):not([class*="oco-news"] *):not([id*="oco-news"] *) {
        text-align: justify !important;
        text-justify: inter-word;
        hyphens: auto !important;
        -webkit-hyphens: auto !important;
        -ms-hyphens: auto;
    }

    /* Mantém títulos e elementos editoriais alinhados à esquerda. */
    .post-content h1:not([class*="ocohost-news"]):not([id*="ocohost-news"]):not([class*="oco-news"]):not([id*="oco-news"]):not([class*="ocohost-news"] *):not([id*="ocohost-news"] *):not([class*="oco-news"] *):not([id*="oco-news"] *),
    .post-content h2:not([class*="ocohost-news"]):not([id*="ocohost-news"]):not([class*="oco-news"]):not([id*="oco-news"]):not([class*="ocohost-news"] *):not([id*="ocohost-news"] *):not([class*="oco-news"] *):not([id*="oco-news"] *),
    .post-content h3:not([class*="ocohost-news"]):not([id*="ocohost-news"]):not([class*="oco-news"]):not([id*="oco-news"]):not([class*="ocohost-news"] *):not([id*="ocohost-news"] *):not([class*="oco-news"] *):not([id*="oco-news"] *),
    .post-content h4:not([class*="ocohost-news"]):not([id*="ocohost-news"]):not([class*="oco-news"]):not([id*="oco-news"]):not([class*="ocohost-news"] *):not([id*="ocohost-news"] *):not([class*="oco-news"] *):not([id*="oco-news"] *),
    .post-content h5:not([class*="ocohost-news"]):not([id*="ocohost-news"]):not([class*="oco-news"]):not([id*="oco-news"]):not([class*="ocohost-news"] *):not([id*="ocohost-news"] *):not([class*="oco-news"] *):not([id*="oco-news"] *),
    .post-content h6:not([class*="ocohost-news"]):not([id*="ocohost-news"]):not([class*="oco-news"]):not([id*="oco-news"]):not([class*="ocohost-news"] *):not([id*="ocohost-news"] *):not([class*="oco-news"] *):not([id*="oco-news"] *),
    .video-post-content h1:not([class*="ocohost-news"]):not([id*="ocohost-news"]):not([class*="oco-news"]):not([id*="oco-news"]):not([class*="ocohost-news"] *):not([id*="ocohost-news"] *):not([class*="oco-news"] *):not([id*="oco-news"] *),
    .video-post-content h2:not([class*="ocohost-news"]):not([id*="ocohost-news"]):not([class*="oco-news"]):not([id*="oco-news"]):not([class*="ocohost-news"] *):not([id*="ocohost-news"] *):not([class*="oco-news"] *):not([id*="oco-news"] *),
    .video-post-content h3:not([class*="ocohost-news"]):not([id*="ocohost-news"]):not([class*="oco-news"]):not([id*="oco-news"]):not([class*="ocohost-news"] *):not([id*="ocohost-news"] *):not([class*="oco-news"] *):not([id*="oco-news"] *),
    .video-post-content h4:not([class*="ocohost-news"]):not([id*="ocohost-news"]):not([class*="oco-news"]):not([id*="oco-news"]):not([class*="ocohost-news"] *):not([id*="ocohost-news"] *):not([class*="oco-news"] *):not([id*="oco-news"] *),
    .video-post-content h5:not([class*="ocohost-news"]):not([id*="ocohost-news"]):not([class*="oco-news"]):not([id*="oco-news"]):not([class*="ocohost-news"] *):not([id*="ocohost-news"] *):not([class*="oco-news"] *):not([id*="oco-news"] *),
    .video-post-content h6:not([class*="ocohost-news"]):not([id*="ocohost-news"]):not([class*="oco-news"]):not([id*="oco-news"]):not([class*="ocohost-news"] *):not([id*="ocohost-news"] *):not([class*="oco-news"] *):not([id*="oco-news"] *),
    .special-post-content h1:not([class*="ocohost-news"]):not([id*="ocohost-news"]):not([class*="oco-news"]):not([id*="oco-news"]):not([class*="ocohost-news"] *):not([id*="ocohost-news"] *):not([class*="oco-news"] *):not([id*="oco-news"] *),
    .special-post-content h2:not([class*="ocohost-news"]):not([id*="ocohost-news"]):not([class*="oco-news"]):not([id*="oco-news"]):not([class*="ocohost-news"] *):not([id*="ocohost-news"] *):not([class*="oco-news"] *):not([id*="oco-news"] *),
    .special-post-content h3:not([class*="ocohost-news"]):not([id*="ocohost-news"]):not([class*="oco-news"]):not([id*="oco-news"]):not([class*="ocohost-news"] *):not([id*="ocohost-news"] *):not([class*="oco-news"] *):not([id*="oco-news"] *),
    .special-post-content h4:not([class*="ocohost-news"]):not([id*="ocohost-news"]):not([class*="oco-news"]):not([id*="oco-news"]):not([class*="ocohost-news"] *):not([id*="ocohost-news"] *):not([class*="oco-news"] *):not([id*="oco-news"] *),
    .special-post-content h5:not([class*="ocohost-news"]):not([id*="ocohost-news"]):not([class*="oco-news"]):not([id*="oco-news"]):not([class*="ocohost-news"] *):not([id*="ocohost-news"] *):not([class*="oco-news"] *):not([id*="oco-news"] *),
    .special-post-content h6:not([class*="ocohost-news"]):not([id*="ocohost-news"]):not([class*="oco-news"]):not([id*="oco-news"]):not([class*="ocohost-news"] *):not([id*="ocohost-news"] *):not([class*="oco-news"] *):not([id*="oco-news"] *),
    .default-page-content h1:not(.cenatres-revolution *):not([class*="ocohost-revolution"] *):not([id*="ocohost-revolution"] *):not([class*="ocohost-news"]):not([id*="ocohost-news"]):not([class*="oco-news"]):not([id*="oco-news"]):not([class*="ocohost-news"] *):not([id*="ocohost-news"] *):not([class*="oco-news"] *):not([id*="oco-news"] *),
    .default-page-content h2:not(.cenatres-revolution *):not([class*="ocohost-revolution"] *):not([id*="ocohost-revolution"] *):not([class*="ocohost-news"]):not([id*="ocohost-news"]):not([class*="oco-news"]):not([id*="oco-news"]):not([class*="ocohost-news"] *):not([id*="ocohost-news"] *):not([class*="oco-news"] *):not([id*="oco-news"] *),
    .default-page-content h3:not(.cenatres-revolution *):not([class*="ocohost-revolution"] *):not([id*="ocohost-revolution"] *):not([class*="ocohost-news"]):not([id*="ocohost-news"]):not([class*="oco-news"]):not([id*="oco-news"]):not([class*="ocohost-news"] *):not([id*="ocohost-news"] *):not([class*="oco-news"] *):not([id*="oco-news"] *),
    .default-page-content h4:not(.cenatres-revolution *):not([class*="ocohost-revolution"] *):not([id*="ocohost-revolution"] *):not([class*="ocohost-news"]):not([id*="ocohost-news"]):not([class*="oco-news"]):not([id*="oco-news"]):not([class*="ocohost-news"] *):not([id*="ocohost-news"] *):not([class*="oco-news"] *):not([id*="oco-news"] *),
    .default-page-content h5:not(.cenatres-revolution *):not([class*="ocohost-revolution"] *):not([id*="ocohost-revolution"] *):not([class*="ocohost-news"]):not([id*="ocohost-news"]):not([class*="oco-news"]):not([id*="oco-news"]):not([class*="ocohost-news"] *):not([id*="ocohost-news"] *):not([class*="oco-news"] *):not([id*="oco-news"] *),
    .default-page-content h6:not(.cenatres-revolution *):not([class*="ocohost-revolution"] *):not([id*="ocohost-revolution"] *):not([class*="ocohost-news"]):not([id*="ocohost-news"]):not([class*="oco-news"]):not([id*="oco-news"]):not([class*="ocohost-news"] *):not([id*="ocohost-news"] *):not([class*="oco-news"] *):not([id*="oco-news"] *),
    .post-content figcaption:not([class*="ocohost-news"]):not([id*="ocohost-news"]):not([class*="oco-news"]):not([id*="oco-news"]):not([class*="ocohost-news"] *):not([id*="ocohost-news"] *):not([class*="oco-news"] *):not([id*="oco-news"] *),
    .video-post-content figcaption:not([class*="ocohost-news"]):not([id*="ocohost-news"]):not([class*="oco-news"]):not([id*="oco-news"]):not([class*="ocohost-news"] *):not([id*="ocohost-news"] *):not([class*="oco-news"] *):not([id*="oco-news"] *),
    .special-post-content figcaption:not([class*="ocohost-news"]):not([id*="ocohost-news"]):not([class*="oco-news"]):not([id*="oco-news"]):not([class*="ocohost-news"] *):not([id*="ocohost-news"] *):not([class*="oco-news"] *):not([id*="oco-news"] *),
    .default-page-content figcaption:not(.cenatres-revolution *):not([class*="ocohost-revolution"] *):not([id*="ocohost-revolution"] *):not([class*="ocohost-news"]):not([id*="ocohost-news"]):not([class*="oco-news"]):not([id*="oco-news"]):not([class*="ocohost-news"] *):not([id*="ocohost-news"] *):not([class*="oco-news"] *):not([id*="oco-news"] *) {
        text-align: left !important;
        hyphens: none !important;
        -webkit-hyphens: none !important;
    }

    .post-content p:not([class*="ocohost-news"]):not([id*="ocohost-news"]):not([class*="oco-news"]):not([id*="oco-news"]):not([class*="ocohost-news"] *):not([id*="ocohost-news"] *):not([class*="oco-news"] *):not([id*="oco-news"] *),
    .post-content li:not([class*="ocohost-news"]):not([id*="ocohost-news"]):not([class*="oco-news"]):not([id*="oco-news"]):not([class*="ocohost-news"] *):not([id*="ocohost-news"] *):not([class*="oco-news"] *):not([id*="oco-news"] *),
    .post-content blockquote:not([class*="ocohost-news"]):not([id*="ocohost-news"]):not([class*="oco-news"]):not([id*="oco-news"]):not([class*="ocohost-news"] *):not([id*="ocohost-news"] *):not([class*="oco-news"] *):not([id*="oco-news"] *),
    .video-post-content p:not([class*="ocohost-news"]):not([id*="ocohost-news"]):not([class*="oco-news"]):not([id*="oco-news"]):not([class*="ocohost-news"] *):not([id*="ocohost-news"] *):not([class*="oco-news"] *):not([id*="oco-news"] *),
    .video-post-content li:not([class*="ocohost-news"]):not([id*="ocohost-news"]):not([class*="oco-news"]):not([id*="oco-news"]):not([class*="ocohost-news"] *):not([id*="ocohost-news"] *):not([class*="oco-news"] *):not([id*="oco-news"] *),
    .video-post-content blockquote:not([class*="ocohost-news"]):not([id*="ocohost-news"]):not([class*="oco-news"]):not([id*="oco-news"]):not([class*="ocohost-news"] *):not([id*="ocohost-news"] *):not([class*="oco-news"] *):not([id*="oco-news"] *),
    .special-post-content p:not([class*="ocohost-news"]):not([id*="ocohost-news"]):not([class*="oco-news"]):not([id*="oco-news"]):not([class*="ocohost-news"] *):not([id*="ocohost-news"] *):not([class*="oco-news"] *):not([id*="oco-news"] *),
    .special-post-content li:not([class*="ocohost-news"]):not([id*="ocohost-news"]):not([class*="oco-news"]):not([id*="oco-news"]):not([class*="ocohost-news"] *):not([id*="ocohost-news"] *):not([class*="oco-news"] *):not([id*="oco-news"] *),
    .special-post-content blockquote:not([class*="ocohost-news"]):not([id*="ocohost-news"]):not([class*="oco-news"]):not([id*="oco-news"]):not([class*="ocohost-news"] *):not([id*="ocohost-news"] *):not([class*="oco-news"] *):not([id*="oco-news"] *) {
        font-size: 17px !important;
        line-height: 1.72 !important;
    }

    .post-content p:not([class*="ocohost-news"]):not([id*="ocohost-news"]):not([class*="oco-news"]):not([id*="oco-news"]):not([class*="ocohost-news"] *):not([id*="ocohost-news"] *):not([class*="oco-news"] *):not([id*="oco-news"] *),
    .video-post-content p:not([class*="ocohost-news"]):not([id*="ocohost-news"]):not([class*="oco-news"]):not([id*="oco-news"]):not([class*="ocohost-news"] *):not([id*="ocohost-news"] *):not([class*="oco-news"] *):not([id*="oco-news"] *),
    .special-post-content p:not([class*="ocohost-news"]):not([id*="ocohost-news"]):not([class*="oco-news"]):not([id*="oco-news"]):not([class*="ocohost-news"] *):not([id*="ocohost-news"] *):not([class*="oco-news"] *):not([id*="oco-news"] *) {
        margin-bottom: 20px;
    }

    .post-content h2:not([class*="ocohost-news"]):not([id*="ocohost-news"]):not([class*="oco-news"]):not([id*="oco-news"]):not([class*="ocohost-news"] *):not([id*="ocohost-news"] *):not([class*="oco-news"] *):not([id*="oco-news"] *),
    .video-post-content h2:not([class*="ocohost-news"]):not([id*="ocohost-news"]):not([class*="oco-news"]):not([id*="oco-news"]):not([class*="ocohost-news"] *):not([id*="ocohost-news"] *):not([class*="oco-news"] *):not([id*="oco-news"] *),
    .special-post-content h2:not([class*="ocohost-news"]):not([id*="ocohost-news"]):not([class*="oco-news"]):not([id*="oco-news"]):not([class*="ocohost-news"] *):not([id*="ocohost-news"] *):not([class*="oco-news"] *):not([id*="oco-news"] *) {
        font-size: 24px !important;
        line-height: 1.25;
        margin-top: 34px;
        margin-bottom: 15px;
    }

    .post-content h3:not([class*="ocohost-news"]):not([id*="ocohost-news"]):not([class*="oco-news"]):not([id*="oco-news"]):not([class*="ocohost-news"] *):not([id*="ocohost-news"] *):not([class*="oco-news"] *):not([id*="oco-news"] *),
    .video-post-content h3:not([class*="ocohost-news"]):not([id*="ocohost-news"]):not([class*="oco-news"]):not([id*="oco-news"]):not([class*="ocohost-news"] *):not([id*="ocohost-news"] *):not([class*="oco-news"] *):not([id*="oco-news"] *),
    .special-post-content h3:not([class*="ocohost-news"]):not([id*="ocohost-news"]):not([class*="oco-news"]):not([id*="oco-news"]):not([class*="ocohost-news"] *):not([id*="ocohost-news"] *):not([class*="oco-news"] *):not([id*="oco-news"] *) {
        font-size: 21px !important;
        line-height: 1.3;
    }

    .portal-body {
        display: block;
        padding: 30px 16px 52px;
    }

    .article-info,
    .special-article-info {
        gap: 8px 14px;
        margin-bottom: 22px;
        font-size: 13px;
    }

    .share-box {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
        margin-top: 40px;
        padding-top: 22px;
    }

    .share-box > span {
        grid-column: 1 / -1;
        margin-bottom: 2px;
    }

    .share-box a {
        width: 100%;
        min-width: 0;
        padding: 10px 8px;
        text-align: center;
    }

    .related-posts {
        margin-top: 44px;
    }

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

    .related-item {
        display: grid;
        grid-template-columns: 118px minmax(0, 1fr);
        gap: 13px;
        align-items: center;
    }

    .related-item img {
        width: 118px;
        height: 78px;
        margin: 0;
        border-radius: 10px;
    }

    .related-item h4 {
        margin: 0;
        font-size: 15px;
        line-height: 1.35;
    }

    /* Cards de categoria ganham um ritmo mais compacto. */
    .hero-side-grid {
        grid-template-columns: 1fr 1fr;
    }

    .list-news-item {
        padding: 14px 0;
    }

    .list-news-item > a,
    .list-news-item a {
        grid-template-columns: 132px minmax(0, 1fr);
        gap: 12px;
        align-items: center;
        margin: 0;
        padding: 0;
    }

    .list-thumb {
        aspect-ratio: 4 / 3;
        border-radius: 10px;
    }

    .list-content h2 {
        margin-bottom: 6px;
        font-size: 16px;
        line-height: 1.3;
    }

    .list-content p {
        display: none;
    }

    .post-meta {
        font-size: 11.5px;
        line-height: 1.4;
    }

    .category-pagination {
        margin-top: 34px;
        white-space: normal;
    }

    .category-pagination .page-numbers,
    .search-pagination .page-numbers {
        width: 40px;
        height: 40px;
        margin: 3px;
    }

    /* Busca: uma coluna no telefone. */
    .search-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .search-card {
        border-radius: 16px;
    }

    .search-card-content {
        padding: 18px;
    }

    /* Vídeos */
    .video-hero-cover,
    .single-special-page .special-hero-cover {
        min-height: min(70svh, 620px);
    }

    .video-cover-content,
    .single-special-page .special-hero-cover .video-cover-content {
        padding: 72px 16px 44px;
    }

    .video-cover-info h1 {
        font-size: clamp(27px, 8vw, 36px);
    }

    .video-cover-description {
        font-size: 16px;
    }

    .video-post-container,
    .single-special-page .special-post-container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .latest-videos-container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .latest-videos-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .latest-video-info h3 {
        font-size: 18px;
    }

    .video-popup {
        padding: 10px;
    }

    .video-popup-content {
        width: 100%;
        max-width: 100%;
    }

    .video-popup-close {
        width: 44px;
        height: 44px;
    }

    /* Gutenberg mantém o próprio comportamento responsivo.
       Evitamos regras genéricas aqui para não interferir em sliders/plugins. */

    .page-content-container-columns {
        padding-left: 16px;
        padding-right: 16px;
    }
}

@media (max-width: 560px) {

    .header-flex {
        min-height: 60px;
        padding-left: 14px;
        padding-right: 14px;
    }

    .logo-link {
        max-width: calc(100vw - 82px);
    }

    .logo img,
    .custom-logo,
    .logo-link .custom-logo {
        max-height: 36px;
    }

    .mobile-menu-toggle {
        flex-basis: 42px;
        width: 42px;
        height: 42px;
    }

    .main-menu {
        width: min(340px, 92vw);
        max-width: 92vw;
        padding-left: 14px;
        padding-right: 14px;
    }

    .category-hero {
        min-height: 104px;
        padding: 24px 14px 18px;
    }

    .category-hero h1 {
        font-size: clamp(27px, 9vw, 38px);
    }

    .category-description {
        font-size: 14px;
    }

    .category-posts {
        padding-left: 14px;
        padding-right: 14px;
    }

    .g1-hero-grid {
        gap: 14px;
        margin-top: 14px;
    }

    .hero-main-card .hero-content {
        padding: 16px;
    }

    .hero-main-card h2 {
        font-size: 23px;
    }

    .hero-main-card p {
        font-size: 14px;
    }

    .hero-side-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .hero-side-card a {
        display: grid;
        grid-template-columns: 118px minmax(0, 1fr);
        align-items: stretch;
    }

    .side-thumb {
        height: 100%;
        min-height: 92px;
        aspect-ratio: auto;
    }

    .side-content {
        display: flex;
        align-items: center;
        padding: 13px;
    }

    .side-content h3 {
        font-size: 16px;
        line-height: 1.32;
    }

    .list-news-item > a,
    .list-news-item a {
        grid-template-columns: 112px minmax(0, 1fr);
        gap: 11px;
    }

    .list-content h2 {
        font-size: 15.5px;
    }

    .portal-hero {
        min-height: min(56svh, 500px);
    }

    .portal-hero > .hero-content,
    .portal-hero.no-hero-image .hero-content {
        padding: 34px 14px 24px;
    }

    .portal-hero.no-hero-image {
        padding: 54px 0 36px;
    }

    .portal-hero h1,
    .hero-title {
        font-size: clamp(25px, 7.6vw, 32px);
    }

    .hero-subtitle {
        font-size: 15.5px;
        line-height: 1.5;
    }

    .portal-body {
        padding: 26px 14px 46px;
    }

    .share-box {
        grid-template-columns: 1fr 1fr;
    }

    .share-box a:last-child:nth-of-type(3) {
        grid-column: 1 / -1;
    }

    .related-item {
        grid-template-columns: 104px minmax(0, 1fr);
    }

    .related-item img {
        width: 104px;
        height: 70px;
    }

    .page-banner {
        height: 34svh;
        min-height: 210px;
    }

    .page-banner-inner {
        padding-left: 14px;
        padding-right: 14px;
    }

    .page-banner-inner h1,
    .page-title-plain h1 {
        font-size: clamp(25px, 7.5vw, 32px);
    }

    .page-title-plain {
        padding: 48px 0 24px;
    }

    .search-hero {
        padding: 68px 0 42px;
    }

    .search-container {
        padding-left: 14px;
        padding-right: 14px;
    }

    .search-hero h1 {
        font-size: clamp(29px, 9vw, 40px);
    }

    .search-card h2 {
        font-size: 20px;
    }

    .video-hero-cover,
    .single-special-page .special-hero-cover {
        min-height: min(64svh, 560px);
    }

    .video-cover-content,
    .single-special-page .special-hero-cover .video-cover-content {
        padding: 62px 14px 36px;
    }

    .video-cover-info h1 {
        font-size: clamp(25px, 8.5vw, 33px);
    }

    .single-video-page .watch-video-btn {
        width: 100%;
        justify-content: center;
    }

    .video-post-container,
    .single-special-page .special-post-container,
    .latest-videos-container {
        padding-left: 14px;
        padding-right: 14px;
    }

    .latest-videos-section {
        padding-bottom: 52px;
    }

    .latest-videos-container h2 {
        font-size: 26px;
    }

    .page-view-meta,
    .ocohost-view-count {
        font-size: 12px;
    }

    .footer-layout-three-columns .footer-content,
    .footer-content {
        text-align: left;
        align-items: flex-start;
    }

    .footer-layout-three-columns .footer-brand {
        align-items: flex-start;
    }

    .footer-layout-three-columns .footer-menu ul {
        align-items: stretch;
    }
}

/* Respeita usuários que reduzem animações no sistema. */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}

@media (max-width: 991px) {
    .main-menu li.menu-item-has-children {
        position: relative;
    }

    .main-menu li.menu-item-has-children > a {
        padding-right: 52px;
    }

    .ocohost-submenu-toggle {
        position: absolute;
        top: 4px;
        right: 2px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 42px;
        height: 42px;
        border: 0;
        border-radius: 10px;
        background: rgba(255, 255, 255, .055);
        color: rgba(255, 255, 255, .82);
        cursor: pointer;
        z-index: 2;
    }

    .ocohost-submenu-toggle span {
        display: block;
        font-size: 20px;
        line-height: 1;
        transition: transform .2s ease;
    }

    .menu-item-has-children.menu-open > .ocohost-submenu-toggle span {
        transform: rotate(180deg);
    }
}

/* Home: ajustes finais de conforto no telefone. */
@media (max-width: 768px) {
    body.home > section.hero {
        height: calc(100svh - 60px);
        min-height: 560px;
    }

    body.home > section.hero > .hero-content {
        left: 0;
        top: 50%;
        width: 100%;
        max-width: 100%;
        padding: 0 16px;
        transform: translateY(-50%);
    }

    body.home > section.hero > .hero-content h1 {
        margin: 18px 0;
        font-size: clamp(31px, 9vw, 44px);
        line-height: 1.04;
        letter-spacing: -.6px;
    }

    body.home > section.hero > .hero-content p {
        max-width: 520px;
        font-size: 16px;
        line-height: 1.55;
    }

    body.home > section.hero > .hero-content .hero-buttons {
        margin-top: 24px;
        gap: 10px;
    }

    .btn-primary,
    .btn-outline {
        min-height: 48px;
        padding: 12px 20px;
        font-size: 15px;
    }

    body.home > section.hero > .hero-content .live-badge {
        padding: 7px 13px;
        font-size: 11px;
    }

    .services {
        padding: 68px 0;
    }

    .services-grid {
        margin-top: 34px;
        gap: 14px;
    }

    .service-card {
        padding: 26px 22px;
        border-radius: 16px;
    }

    .service-card h3 {
        font-size: 19px;
        margin-bottom: 9px;
    }

    .service-card p {
        font-size: 14px;
        line-height: 1.6;
    }

    .section-title h2 {
        font-size: clamp(27px, 7vw, 36px);
    }
}

@media (max-width: 420px) {
    body.home > section.hero {
        min-height: 540px;
    }

    body.home > section.hero > .hero-content {
        padding-left: 14px;
        padding-right: 14px;
    }

    body.home > section.hero > .hero-content h1 {
        font-size: clamp(28px, 9.2vw, 38px);
    }

    body.home > section.hero > .hero-content p {
        font-size: 15px;
    }

    .share-box {
        display: flex;
        flex-direction: column;
        align-items: stretch;
    }

    .share-box > span {
        width: 100%;
    }

    .share-box a {
        min-height: 42px;
    }
}


/* ============================================================
   COMPATIBILIDADE COM SLIDERS
   Não aplicar ajustes estruturais genéricos em componentes de plugins.
   O Ocohost Revolution e outros sliders mantêm suas próprias dimensões,
   transforms, containers e breakpoints.
   ============================================================ */
[class*="ocohost-revolution"],
[id*="ocohost-revolution"] {
    max-width: none;
}

@media (max-width: 991px) {
    [class*="ocohost-revolution"] .container,
    [id*="ocohost-revolution"] .container {
        max-width: none;
        padding-left: 0;
        padding-right: 0;
    }
}


/* ============================================================
   SINGLE PADRÃO - TÍTULO + SUBTÍTULO NO MOBILE
   O conteúdo do hero passa a participar do fluxo da página para
   não ser recortado quando título/subtítulo ocuparem várias linhas.
   Escopo restrito a .portal-single para não interferir em slider,
   template especial ou template de vídeo.
   ============================================================ */
@media (max-width: 768px) {
    .portal-single .portal-hero {
        height: auto;
        min-height: 420px;
        display: flex;
        align-items: flex-end;
    }

    .portal-single .portal-hero:not(.no-hero-image) > .hero-content {
        position: relative;
        left: auto;
        right: auto;
        bottom: auto;
        transform: none;
        margin-top: auto;
        width: 100%;
        max-width: 100%;
        padding: clamp(150px, 34svh, 245px) 18px 28px;
        box-sizing: border-box;
    }

    .portal-single .portal-hero.no-hero-image > .hero-content {
        position: relative;
        left: auto;
        right: auto;
        bottom: auto;
        transform: none;
        width: 100%;
        max-width: 100%;
        padding: 0 18px;
        box-sizing: border-box;
    }

    .portal-single .hero-title {
        margin-bottom: 12px;
    }

    .portal-single .hero-subtitle {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: relative;
        z-index: 6;
        width: 100%;
        max-width: 760px;
        margin: 0 auto 15px;
        font-size: 16px;
        line-height: 1.5;
        color: rgba(255,255,255,.94);
        overflow: visible;
        white-space: normal;
        text-overflow: clip;
    }
}

@media (max-width: 480px) {
    .portal-single .portal-hero {
        min-height: 380px;
    }

    .portal-single .portal-hero:not(.no-hero-image) > .hero-content {
        padding: clamp(125px, 29svh, 205px) 14px 24px;
    }

    .portal-single .portal-hero.no-hero-image > .hero-content {
        padding-left: 14px;
        padding-right: 14px;
    }

    .portal-single .hero-subtitle {
        font-size: 15.5px;
        line-height: 1.48;
        margin-bottom: 13px;
    }
}


/* =========================================================
   1.9.8 — MÍDIA EDITORIAL ISOLADA DE SLIDERS/PLUGINS

   IMPORTANTE:
   As regras abaixo só são aplicadas aos elementos que o
   media-mobile-order.js identifica como mídia editorial real.
   Sliders, carrosséis e componentes de plugins ficam fora.

   Mobile:
   LEFT  = imagem + legenda em largura total, texto abaixo.
   RIGHT = texto acima, imagem + legenda em largura total abaixo.
========================================================= */
@media (max-width: 768px) {
    /* Bloco editorial explicitamente marcado pelo JS. */
    .ocohost-mobile-media-stacked {
        float: none !important;
        clear: both !important;
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
        margin: 20px 0 24px !important;
    }

    /* Wrappers de foto + legenda funcionam como uma peça única. */
    figure.ocohost-mobile-media-stacked,
    .wp-block-image.ocohost-mobile-media-stacked,
    .wp-caption.ocohost-mobile-media-stacked {
        overflow: hidden !important;
        border-radius: 10px !important;
    }

    /* Quando a classe cai no parágrafo criado pelo editor clássico. */
    p.ocohost-mobile-media-stacked {
        padding: 0 !important;
        text-align: left !important;
    }

    /* A própria imagem sempre respeita a largura disponível. */
    img.ocohost-mobile-media-stacked,
    .ocohost-mobile-media-stacked > img,
    .ocohost-mobile-media-stacked > a > img,
    .ocohost-mobile-media-stacked .wp-block-image > img,
    figure.ocohost-mobile-media-stacked img,
    .wp-block-image.ocohost-mobile-media-stacked img,
    .wp-caption.ocohost-mobile-media-stacked img {
        display: block !important;
        float: none !important;
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        object-fit: contain !important;
        margin: 0 !important;
        border-radius: 0 !important;
        vertical-align: top !important;
    }

    /* Links que envolvem a imagem também ocupam toda a largura. */
    .ocohost-mobile-media-stacked > a {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    /* Legenda permanece logo abaixo da foto, sem justificar. */
    .ocohost-mobile-media-stacked figcaption,
    .ocohost-mobile-media-stacked .wp-caption-text {
        display: block !important;
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 10px 12px 11px !important;
        box-sizing: border-box !important;
        font-size: 12.5px !important;
        line-height: 1.45 !important;
        font-style: normal !important;
        text-align: left !important;
        text-justify: auto !important;
        hyphens: none !important;
        -webkit-hyphens: none !important;
        white-space: normal !important;
        overflow-wrap: anywhere !important;
        word-break: normal !important;
        background: #f6f6f6 !important;
        color: #555 !important;
        border: 0 !important;
        border-top: 1px solid #e8e8e8 !important;
    }

    /* Identidade das matérias em vídeo. */
    .single-video-page .ocohost-mobile-media-stacked figcaption,
    .single-video-page .ocohost-mobile-media-stacked .wp-caption-text {
        background: #111 !important;
        color: rgba(255,255,255,.72) !important;
        border-top: 1px solid rgba(255,255,255,.08) !important;
    }

    /* Identidade das matérias especiais. */
    .single-special-page .ocohost-mobile-media-stacked figcaption,
    .single-special-page .ocohost-mobile-media-stacked .wp-caption-text {
        background: transparent !important;
        color: var(--special-muted-color, rgba(255,255,255,.72)) !important;
        border-top: 1px solid rgba(255,255,255,.10) !important;
    }

    /* Clear do conteúdo editorial sem tocar em sliders. */
    .post-content::after,
    .video-post-content::after,
    .special-post-content::after,
    .default-page-content::after {
        content: "";
        display: table;
        clear: both;
    }
}

/* ============================================================
   PROTEÇÃO EXPLÍCITA PARA SLIDERS / CARROSSÉIS
   Nenhuma regra editorial de imagem/legenda deve vazar para
   Ocohost Revolution, Cenatres Revolution ou sliders comuns.
   ============================================================ */
.cenatres-revolution,
[class*="ocohost-revolution"],
[id*="ocohost-revolution"],
.rev_slider_wrapper,
.rev_slider,
.slick-slider,
.swiper,
.swiper-container,
.owl-carousel,
.splide,
.logos-slider {
    /* intencionalmente sem regras estruturais: o plugin manda no layout */
}


/* ============================================================
   1.9.9 — COMPATIBILIDADE OCOHOST NEWS / GUTENBERG
   Os seletores editoriais acima excluem qualquer bloco cujo wrapper
   use o namespace/classe ocohost-news (ou oco-news). O layout, cards,
   grid, tipografia, imagens e breakpoints permanecem sob controle do
   próprio plugin. Não adicionar resets estruturais aqui.
   ============================================================ */


@media (max-width: 768px) {
    /* Ocohost News: corta heranças editoriais do tema sem substituir o CSS do plugin. */
    .post-content :is([class*="ocohost-news"], [id*="ocohost-news"], [class*="oco-news"], [id*="oco-news"]),
    .video-post-content :is([class*="ocohost-news"], [id*="ocohost-news"], [class*="oco-news"], [id*="oco-news"]),
    .special-post-content :is([class*="ocohost-news"], [id*="ocohost-news"], [class*="oco-news"], [id*="oco-news"]),
    .default-page-content :is([class*="ocohost-news"], [id*="ocohost-news"], [class*="oco-news"], [id*="oco-news"]) {
        text-align: initial;
        text-justify: auto;
        hyphens: manual;
        -webkit-hyphens: manual;
        overflow-wrap: normal;
        word-break: normal;
    }
}
