/* ==================================================
   OCOHOST NOTÍCIAS — CABEÇALHO EDITORIAL
================================================== */

.screen-reader-text{
    position:absolute !important;
    width:1px !important;
    height:1px !important;
    padding:0 !important;
    margin:-1px !important;
    overflow:hidden !important;
    clip:rect(0,0,0,0) !important;
    white-space:nowrap !important;
    border:0 !important;
}

.portal-site-header.site-header{
    position:sticky;
    top:0;
    left:auto;
    width:100%;
    z-index:99999;
    background:transparent;
    border:0;
    box-shadow:0 2px 12px rgba(0,0,0,.12);
    backdrop-filter:none;
    -webkit-backdrop-filter:none;
}

.ocohost-header-static .portal-site-header.site-header{
    position:relative;
}

.portal-site-header.scrolled{
    background:transparent;
    box-shadow:0 4px 18px rgba(0,0,0,.18);
}

.portal-masthead{
    min-height:var(--portal-header-height,88px);
    color:var(--portal-header-text,#fff);
    background-color:var(--portal-header-bg,#b5121b);
    background-position:center;
    background-repeat:no-repeat;
    background-size:cover;
}

.portal-site-header .header-flex{
    position:relative;
    display:grid;
    grid-template-columns:minmax(260px,1fr) auto minmax(260px,1fr);
    align-items:center;
    gap:24px;
    width:100%;
    max-width:1400px;
    min-height:var(--portal-header-height,88px);
    margin:0 auto;
    padding:10px 24px;
}

.portal-header-leading,
.portal-header-actions{
    display:flex;
    align-items:center;
    min-width:0;
}

.portal-header-leading{
    justify-content:flex-start;
    gap:14px;
}

.portal-header-actions{
    justify-content:flex-end;
    gap:16px;
}

.portal-site-header .logo,
.portal-site-header .custom-logo-link,
.portal-site-header .logo-link{
    display:flex;
    align-items:center;
    min-width:0;
}

.portal-site-header .custom-logo,
.portal-site-header .logo img{
    width:auto;
    max-width:220px;
    max-height:var(--portal-logo-height,54px);
    object-fit:contain;
}

.portal-logo-text{
    color:var(--portal-header-text,#fff);
    font-size:clamp(22px,2vw,32px);
    font-weight:800;
    line-height:1;
    letter-spacing:-.04em;
    text-decoration:none;
}

.portal-header-center{
    min-width:0;
    max-width:min(580px,42vw);
    text-align:center;
    color:var(--portal-header-text,#fff);
}

.portal-context-title{
    overflow:hidden;
    color:inherit;
    font-size:clamp(21px,2vw,28px);
    font-weight:400;
    line-height:1.15;
    letter-spacing:-.02em;
    text-overflow:ellipsis;
    text-wrap:balance;
}

.portal-context-subtitle{
    margin-top:5px;
    overflow:hidden;
    color:inherit;
    font-size:12px;
    font-weight:500;
    letter-spacing:.08em;
    opacity:.82;
    text-overflow:ellipsis;
    text-transform:uppercase;
    white-space:nowrap;
}

.portal-current-date{
    color:inherit;
    font-size:12px;
    font-weight:600;
    opacity:.9;
    white-space:nowrap;
}

.portal-site-header .portal-menu-toggle{
    position:relative;
    z-index:1000001;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:5px;
    width:46px;
    min-width:46px;
    height:46px;
    margin:0;
    padding:0;
    color:var(--portal-header-text,#fff);
    background:rgba(0,0,0,.14);
    border:1px solid rgba(255,255,255,.24);
    border-radius:7px;
    box-shadow:none;
    cursor:pointer;
}

.portal-site-header .portal-menu-toggle:hover,
.portal-site-header .portal-menu-toggle:focus-visible{
    color:var(--portal-header-text,#fff);
    background:rgba(0,0,0,.25);
    border-color:rgba(255,255,255,.55);
}

.portal-site-header .portal-menu-toggle > span{
    display:block;
    width:22px;
    height:2px;
    margin:0;
    background:currentColor;
    border-radius:2px;
    transition:transform .25s ease,opacity .2s ease;
}

.portal-site-header .portal-menu-toggle.active > span:nth-child(1){
    transform:translateY(7px) rotate(45deg);
}

.portal-site-header .portal-menu-toggle.active > span:nth-child(2){
    opacity:0;
}

.portal-site-header .portal-menu-toggle.active > span:nth-child(3){
    transform:translateY(-7px) rotate(-45deg);
}

.portal-site-header .portal-header-search form{
    position:relative;
    width:230px;
}

.portal-site-header .portal-header-search input{
    width:100%;
    height:42px;
    padding:0 44px 0 15px;
    color:var(--portal-header-text,#fff);
    background:rgba(0,0,0,.16);
    border:1px solid rgba(255,255,255,.28);
    border-radius:6px;
}

.portal-site-header .portal-header-search input::placeholder{
    color:inherit;
    opacity:.72;
}

.portal-site-header .portal-header-search input:focus{
    border-color:rgba(255,255,255,.7);
    box-shadow:0 0 0 3px rgba(255,255,255,.13);
}

.portal-site-header .portal-header-search button{
    position:absolute;
    top:0;
    right:0;
    width:42px;
    height:42px;
    padding:0;
    color:var(--portal-header-text,#fff);
    background:transparent;
    border:0;
}

/* Barra de editorias: navegação rápida e rolável em telas menores. */
.portal-editorias-bar{
    color:#222;
    background:#fff;
    border-bottom:1px solid #e6e6e6;
}

.portal-category-nav{
    max-width:1400px;
    overflow-x:auto;
    scrollbar-width:thin;
}

.portal-category-nav > ul{
    display:flex;
    align-items:center;
    justify-content:center;
    width:max-content;
    min-width:100%;
    margin:0;
    padding:0;
    list-style:none;
}

.portal-category-nav li{
    flex:0 0 auto;
    margin:0;
}

.portal-category-nav a{
    position:relative;
    display:flex;
    align-items:center;
    min-height:46px;
    padding:0 17px;
    color:#303030;
    font-size:13px;
    font-weight:650;
    line-height:1;
    text-decoration:none;
    white-space:nowrap;
}

.portal-category-nav a::after{
    content:'';
    position:absolute;
    right:17px;
    bottom:0;
    left:17px;
    height:3px;
    background:var(--primary-color,#b5121b);
    transform:scaleX(0);
    transition:transform .2s ease;
}

.portal-category-nav a:hover,
.portal-category-nav .current-menu-item > a,
.portal-category-nav .current-post-ancestor > a{
    color:var(--primary-color,#b5121b);
}

.portal-category-nav a:hover::after,
.portal-category-nav .current-menu-item > a::after,
.portal-category-nav .current-post-ancestor > a::after{
    transform:scaleX(1);
}

/* Gaveta acionada pelo botão de três linhas em desktop e mobile. */
#ocohost-main-menu.portal-drawer-menu{
    position:fixed !important;
    top:0 !important;
    right:auto !important;
    bottom:0 !important;
    left:-430px !important;
    z-index:1000000 !important;
    display:block !important;
    width:410px !important;
    max-width:92vw !important;
    height:100dvh !important;
    padding:82px 24px 36px !important;
    overflow-x:hidden !important;
    overflow-y:auto !important;
    color:#222 !important;
    background:#fff !important;
    border:0 !important;
    border-radius:0 !important;
    box-shadow:24px 0 65px rgba(0,0,0,.25) !important;
    opacity:1 !important;
    visibility:visible !important;
    transform:none !important;
    transition:left .32s cubic-bezier(.22,.61,.36,1) !important;
}

#ocohost-main-menu.portal-drawer-menu.active{
    left:0 !important;
}

.menu-overlay{
    position:fixed;
    inset:0;
    z-index:99990 !important;
    background:rgba(0,0,0,.58);
    opacity:0;
    visibility:hidden;
    backdrop-filter:blur(2px);
    -webkit-backdrop-filter:blur(2px);
    transition:opacity .25s ease,visibility .25s ease;
}

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

body.ocohost-menu-open{
    overflow:hidden;
}

.portal-drawer-heading{
    margin:0 0 16px;
    padding:0 4px 14px;
    color:#222;
    border-bottom:2px solid var(--primary-color,#b5121b);
    font-size:20px;
    font-weight:750;
}

#ocohost-main-menu .mobile-menu-search{
    display:block;
    margin:0 0 18px;
}

#ocohost-main-menu .mobile-menu-search form{
    position:relative;
}

#ocohost-main-menu .mobile-menu-search input{
    width:100%;
    height:44px;
    padding:0 46px 0 14px;
    color:#222;
    background:#f3f3f3;
    border:1px solid #ddd;
    border-radius:6px;
}

#ocohost-main-menu .mobile-menu-search button{
    position:absolute;
    top:0;
    right:0;
    width:44px;
    height:44px;
    padding:0;
    color:#555;
    background:transparent;
    border:0;
}

#ocohost-main-menu > ul{
    display:flex !important;
    flex-direction:column !important;
    align-items:stretch !important;
    width:100% !important;
    margin:0 !important;
    padding:0 !important;
    list-style:none !important;
}

#ocohost-main-menu li{
    position:relative !important;
    width:100% !important;
}

#ocohost-main-menu a{
    display:flex !important;
    align-items:center !important;
    justify-content:flex-start !important;
    width:100% !important;
    min-height:49px !important;
    height:auto !important;
    margin:0 !important;
    padding:11px 46px 11px 10px !important;
    color:#252525 !important;
    background:transparent !important;
    border-bottom:1px solid #ededed !important;
    border-radius:0 !important;
    font-size:15px !important;
    font-weight:650 !important;
    text-decoration:none !important;
}

#ocohost-main-menu a::after{
    display:none !important;
}

#ocohost-main-menu a:hover,
#ocohost-main-menu .current-menu-item > a,
#ocohost-main-menu .current_page_item > a{
    color:var(--primary-color,#b5121b) !important;
    background:#fafafa !important;
}

#ocohost-main-menu .sub-menu{
    position:relative !important;
    top:auto !important;
    left:auto !important;
    display:none !important;
    width:100% !important;
    min-width:0 !important;
    margin:0 !important;
    padding:3px 0 3px 12px !important;
    background:#f7f7f7 !important;
    border:0 !important;
    border-radius:0 !important;
    box-shadow:none !important;
    opacity:1 !important;
    visibility:visible !important;
    transform:none !important;
}

#ocohost-main-menu .menu-open > .sub-menu{
    display:block !important;
}

#ocohost-main-menu .sub-menu a{
    min-height:42px !important;
    border-bottom:0 !important;
    font-size:14px !important;
    font-weight:550 !important;
}

.portal-site-header + .global-ad-area,
.portal-site-header ~ .global-ad-area{
    position:relative;
    z-index:1;
}

body.admin-bar .portal-site-header.site-header{
    top:32px;
}

body.admin-bar.ocohost-header-static .portal-site-header.site-header{
    top:auto;
}

/* A faixa de categoria permanece centralizada quando escolhida no painel. */
.category-portal .category-hero{
    min-height:150px;
    padding:34px 20px;
    background:var(--cat-color,#b5121b);
    text-align:center;
}

.category-portal .category-hero-content{
    width:100%;
    max-width:1100px;
    margin:0 auto;
}

.category-portal .category-hero h1{
    margin:0 auto;
    color:#fff;
    font-size:clamp(28px,4vw,40px);
    font-weight:400;
    line-height:1.12;
    letter-spacing:-.02em;
    text-transform:none;
    text-align:center;
}

.category-portal .category-hero h1::after{
    width:64px;
    height:4px;
    margin:18px auto 0;
}

.category-portal .category-hero.hero-empty{
    display:none;
}

/* Cabeçalho do modelo padrão de notícia. */
.portal-single .portal-hero > .hero-content,
.portal-single .portal-hero.no-hero-image > .hero-content{
    width:100%;
    max-width:1240px;
    margin-right:auto;
    margin-left:auto;
    text-align:center;
}

.portal-single .hero-title{
    width:100%;
    max-width:1080px;
    margin:0 auto 16px;
    color:#fff;
    font-size:clamp(34px,4vw,56px);
    font-weight:650;
    line-height:1.09;
    letter-spacing:-.035em;
    text-align:center;
    text-wrap:balance;
}

.portal-single .hero-subtitle{
    width:100%;
    max-width:880px;
    margin:0 auto 17px;
    color:rgba(255,255,255,.9);
    font-size:19px;
    font-weight:400;
    line-height:1.5;
    text-align:center;
    text-wrap:balance;
}

.portal-single .portal-single-meta{
    display:flex;
    align-items:center;
    justify-content:center;
    flex-wrap:wrap;
    gap:5px 7px;
    margin:0 auto;
    color:rgba(255,255,255,.76);
    font-size:12px;
    font-weight:450;
    line-height:1.4;
    letter-spacing:.01em;
    text-align:center;
}

.portal-single .portal-single-meta a,
.portal-single .portal-single-meta .single-meta-category{
    color:#fff;
    font-weight:600;
    text-decoration:none;
}

.portal-single .portal-single-meta .single-meta-category{
    display:inline-flex;
    align-items:center;
    gap:6px;
}

.portal-single .portal-single-meta .single-meta-category::before{
    content:'';
    width:6px;
    height:6px;
    flex:0 0 6px;
    background:var(--cat-color,#f18d3e);
    border:1px solid rgba(255,255,255,.65);
    border-radius:50%;
}

.portal-single .portal-single-meta a:hover{
    text-decoration:underline;
    text-underline-offset:3px;
}

.portal-single .portal-single-meta .meta-separator{
    margin:0 1px;
    opacity:.55;
}

.portal-single .portal-single-meta .ocohost-view-count{
    gap:5px;
    color:inherit;
    font-size:inherit;
}

/* Sem imagem destacada, elimina a área reservada e usa o fundo do site. */
.portal-single .portal-hero.no-hero-image{
    min-height:0;
    height:auto;
    padding:58px 0 34px;
    background:transparent;
}

.portal-single .portal-hero.no-hero-image > .hero-content{
    position:relative;
    top:auto;
    right:auto;
    bottom:auto;
    left:auto;
    transform:none;
    padding:0 20px;
}

.portal-single .portal-hero.no-hero-image .hero-title{
    color:var(--text-color,#191919);
    text-shadow:none;
}

.portal-single .portal-hero.no-hero-image .hero-subtitle{
    color:var(--text-color,#222);
    opacity:.74;
}

.portal-single .portal-hero.no-hero-image .portal-single-meta{
    color:var(--text-color,#222);
    opacity:.68;
}

.portal-single .portal-hero.no-hero-image .portal-single-meta a,
.portal-single .portal-hero.no-hero-image .portal-single-meta .single-meta-category{
    color:var(--cat-color,#b5121b);
}

.portal-single .portal-hero.no-hero-image .single-meta-category::before{
    border-color:rgba(0,0,0,.16);
}

@media(max-width:1100px){
    .portal-site-header .header-flex{
        grid-template-columns:minmax(220px,1fr) auto minmax(220px,1fr);
        gap:14px;
    }

    .portal-current-date{
        display:none;
    }

    .portal-site-header .portal-header-search form{
        width:190px;
    }
}

@media(max-width:782px){
    body.admin-bar .portal-site-header.site-header{
        top:46px;
    }
}

@media(max-width:760px){
    .portal-site-header .header-flex{
        display:grid;
        grid-template-columns:minmax(0,1fr) minmax(0,1.2fr) minmax(44px,1fr);
        min-height:72px;
        padding:8px 14px;
    }

    .portal-header-leading{
        gap:8px;
    }

    .portal-site-header .portal-menu-toggle{
        display:flex;
        flex-direction:column;
        flex:0 0 44px;
        justify-content:center;
        gap:5px;
        width:44px;
        min-width:44px;
        height:44px;
        padding:0;
    }

    .portal-site-header .portal-menu-toggle > span{
        flex:0 0 2px;
    }

    .portal-site-header .custom-logo,
    .portal-site-header .logo img{
        max-width:94px;
        max-height:40px;
    }

    .portal-logo-text{
        max-width:92px;
        overflow:hidden;
        font-size:19px;
        text-overflow:ellipsis;
        white-space:nowrap;
    }

    .portal-header-center{
        max-width:100%;
    }

    .portal-context-title{
        font-size:clamp(17px,5vw,21px);
        font-weight:400;
        line-height:1.15;
        white-space:normal;
    }

    .portal-context-subtitle{
        display:none;
    }

    .portal-site-header .portal-header-search{
        display:none;
    }

    .portal-header-actions{
        min-width:44px;
    }

    .portal-category-nav{
        padding:0;
    }

    .portal-category-nav > ul{
        justify-content:flex-start;
        min-width:max-content;
    }

    .portal-category-nav a{
        min-height:42px;
        padding:0 14px;
        font-size:12px;
    }

    #ocohost-main-menu.portal-drawer-menu{
        width:min(380px,92vw) !important;
        padding:76px 18px 30px !important;
    }

    .category-portal .category-hero{
        min-height:112px;
        padding:26px 16px;
    }

    .category-portal .category-hero h1{
        font-size:clamp(24px,7vw,32px);
        font-weight:400;
    }

    .portal-single .hero-title{
        max-width:100%;
        margin-bottom:12px;
        font-size:clamp(28px,8vw,38px);
        line-height:1.12;
        letter-spacing:-.025em;
    }

    .portal-single .hero-subtitle{
        max-width:100%;
        margin-bottom:13px;
        font-size:16px;
        line-height:1.48;
    }

    .portal-single .portal-single-meta{
        gap:4px 6px;
        font-size:11.5px;
        line-height:1.35;
    }

    .portal-single .portal-hero.no-hero-image{
        min-height:0;
        padding:38px 0 24px;
    }

    .portal-single .portal-hero.no-hero-image > .hero-content{
        padding:0 16px;
    }
}

@media(max-width:470px){
    .portal-site-header .header-flex{
        grid-template-columns:minmax(96px,1fr) minmax(110px,1.2fr) 44px;
        gap:5px;
    }

    .portal-site-header .logo{
        display:none;
    }

}
