/*
Theme Name:   Astra Child PSTU
Theme URI:    https://www.pstu.org.br/
Description:  Tema filho do Astra com identidade visual do PSTU (cores, tipografia, header/footer). Criado durante remediação de incidente de segurança em 2026-05-08.
Author:       PopSolutions Coop
Author URI:   https://pop.coop/
Template:     astra
Version:      1.0.0
Text Domain:  astra-pstu
*/

/* === PSTU brand variables === */
:root {
    --pstu-red:        #c30000;
    --pstu-red-dark:   #b71212;
    --pstu-red-bright: #cc0000;
    --pstu-red-quote:  #dd3333;
    --pstu-dark:       #1e1e1e;
    --pstu-gold:       #bf9f00;
    --pstu-light-bg:   #f5f5f5;
    --pstu-border:     #cccccc;
}

/* === Tipografia === */
body,
.entry-content p,
.entry-content {
    font-family: 'Lora', Georgia, serif;
    font-size: 18px;
    line-height: 1.85;
}

h1, h2, h3, h4, h5,
.entry-title,
.site-title,
.widget-title {
    font-family: 'Merriweather', Georgia, serif;
    font-weight: 700;
}

h6,
.td-post-content h6 {
    font-family: 'Calligraffitti', cursive;
}

.main-navigation,
.menu,
.ast-header-break-point .main-header-bar .main-header-menu,
.ast-builder-menu .menu,
.site-header-section,
.ast-primary-header-bar,
.below-header-menu,
button,
input[type="submit"],
.wp-block-button__link {
    font-family: 'Roboto', 'Helvetica Neue', Arial, sans-serif;
}

/* === Cabeçalho PSTU style: top bar dark + main bar red === */
.ast-above-header,
.ast-above-header-bar {
    background-color: var(--pstu-dark) !important;
    color: #fff;
}
.ast-above-header a,
.ast-above-header .menu-item a {
    color: #fff !important;
}
.ast-above-header a:hover,
.ast-above-header .current-menu-item > a {
    color: var(--pstu-gold) !important;
}

.ast-primary-header-bar,
.main-header-bar {
    background-color: var(--pstu-red) !important;
}
.main-header-menu .menu-link,
.main-header-bar .main-navigation .menu-item > a,
.ast-builder-menu-1 .menu-link {
    color: #fff !important;
}
.main-header-menu .menu-link:hover,
.main-header-menu .current-menu-item > .menu-link {
    color: var(--pstu-gold) !important;
}

@media (max-width: 920px) {
    .ast-mobile-header-wrap .main-header-bar {
        background-color: var(--pstu-red-dark) !important;
    }
}

/* === Links e botões === */
a { color: var(--pstu-red); }
a:hover { color: var(--pstu-red-dark); }

button,
input[type="submit"],
.wp-block-button__link,
.ast-button,
.button {
    background-color: var(--pstu-red) !important;
    color: #fff !important;
    border-color: var(--pstu-red) !important;
}
button:hover,
input[type="submit"]:hover,
.wp-block-button__link:hover,
.ast-button:hover {
    background-color: var(--pstu-red-dark) !important;
    border-color: var(--pstu-red-dark) !important;
}

/* === LOGO === */
/* Logo direto no header vermelho — alpha do PNG faz a magia (bandeira vermelha + texto amarelo) */
.site-logo-img {
    background: transparent !important;
    padding: 0 !important;
    display: inline-block;
}
.site-logo-img img.custom-logo {
    max-width: 200px !important;
    width: auto !important;
    height: auto !important;
    display: inline-block;
    vertical-align: middle;
}
.site-title, .site-description {
    display: none !important;
}
@media (max-width: 920px) {
    .site-logo-img img.custom-logo {
        max-width: 140px !important;
    }
}

/* === Mega Menu — fundo branco PSTU (override do default escuro) === */
#mega-menu-primary .mega-sub-menu,
#mega-menu-primary .mega-menu-megamenu > .mega-sub-menu {
    background-color: #fff !important;
    border: 1px solid #eee !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
#mega-menu-primary .mega-sub-menu .mega-menu-link {
    color: #222 !important;
    background: transparent !important;
    font-family: 'Roboto', sans-serif !important;
    text-transform: none !important;
}
#mega-menu-primary .mega-sub-menu .mega-menu-link:hover,
#mega-menu-primary .mega-sub-menu .mega-menu-item:hover > .mega-menu-link {
    color: var(--pstu-red) !important;
    background-color: #f8f8f8 !important;
}
/* Header items principais — texto branco */
#mega-menu-primary > .mega-menu-item > .mega-menu-link {
    color: #fff !important;
    font-weight: 500 !important;
}
#mega-menu-primary > .mega-menu-item > .mega-menu-link:hover {
    color: var(--pstu-gold) !important;
    background-color: var(--pstu-red-dark) !important;
}

/* === Post titles === */
.entry-title,
.entry-title a,
.post-title {
    color: #222;
    font-family: 'Merriweather', Georgia, serif;
}
.entry-title a:hover {
    color: var(--pstu-red);
}

.single .entry-title {
    font-size: 40px;
    line-height: 50px;
    font-weight: bold;
}

/* === Quote / chapéu === */
.entry-content blockquote,
.post .td_quote_box,
.page .td_quote_box {
    border-left-color: var(--pstu-red-quote);
    color: var(--pstu-red-quote);
}

.entry-content h6,
.td-post-content h6 {
    color: white;
    padding: 4px 16px;
    background-color: var(--pstu-red);
    border-radius: 6px;
    display: inline-block;
    font-weight: 500;
    font-size: 70%;
    font-family: Roboto, sans-serif;
}

/* === Footer 3-col PSTU style === */
.site-footer,
.ast-small-footer {
    background-color: var(--pstu-dark);
    color: #fff;
}
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--pstu-gold); }

.site-footer .widget-title,
.site-footer .block-title {
    color: var(--pstu-red);
    font-family: 'Roboto', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* === Compatibilidade com shortcodes WPBakery legados === */
.vc_row, .wpb_row {
    display: flex;
    flex-wrap: wrap;
    margin: 1.5em 0;
}
.vc_column_container, .wpb_column,
[class*="vc_col-sm-"],
.td-pb-span4 { flex: 1 1 30%; padding: 0 1%; min-width: 280px; }
.td-pb-span6 { flex: 1 1 48%; padding: 0 1%; }
.td-pb-span12 { flex: 1 1 100%; padding: 0 1%; }

.wpb_text_column, .wpb_content_element {
    margin-bottom: 1em;
}

.botao {
    border: 1px solid var(--pstu-border);
    background-color: var(--pstu-light-bg);
    border-radius: 1em;
    padding: 10px 30px;
    margin: 5px;
    font-weight: 100;
    text-transform: uppercase;
    color: #666;
    display: inline-block;
    text-decoration: none;
}
.basico:hover    { color:#fff; border-color:#28a745; background-color:#28a745; }
.intermedio:hover{ color:#fff; border-color:#ffc107; background-color:#ffc107; }
.avanzado:hover  { color:#fff; border-color:#dc3545; background-color:#dc3545; }
.outros:hover    { color:#fff; border-color:#a5a5a5; background-color:#a5a5a5; }

.btn_curso_download {
    width: 100%;
    background-color: var(--pstu-light-bg);
    color: #666;
    border: 1px solid #f0f0f0;
    display: block;
    font-size: 18px;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 8px;
    text-decoration: none;
}
.btn_curso_download:hover {
    border-color: var(--pstu-red);
    color: var(--pstu-red);
    background-color: #fff5f5;
}

.box-basico,
.box-intermediario,
.box-avancado {
    border: 1px solid #a5a5a5;
    border-top-width: 3px;
    border-radius: 6px;
    margin-bottom: 25px;
    padding: 15px;
}
.box-basico        { border-top-color: #28a745; }
.box-intermediario { border-top-color: #ffc107; }
.box-avancado      { border-top-color: var(--pstu-red-quote); }

.badge {
    display: inline-block;
    padding: .4em;
    font-size: 75%;
    font-weight: 400;
    text-transform: uppercase;
    line-height: 1;
    border: 1px solid;
    border-radius: 6px;
    margin-bottom: 8px;
}
.badge-basico    { color: #28a745; }
.badge-intermedio{ color: #ffc107; }
.badge-avanzado  { color: var(--pstu-red-quote); }

.cabecalho {
    background-image: linear-gradient(rgba(30,30,30,1), rgba(120,120,120,0.65));
    padding: 80px 20px;
    text-align: center;
    color: #fff;
}
.cabecalho .titulo {
    font-size: 4em;
    font-weight: 900;
    line-height: 1.1;
    color: #fff;
    margin: 0;
}
.cabecalho .linhafina {
    color: #fff;
    line-height: 1.2;
    font-weight: 300;
    max-width: 60%;
    margin: 0.5em auto;
}

.entry-content [class*="rev_slider"]::before {
    content: "Slider em manutencao - conteudo sera restaurado em breve";
    display: block;
    padding: 1em;
    background: var(--pstu-light-bg);
    border-left: 4px solid var(--pstu-red);
    color: #666;
    font-style: italic;
    margin: 1em 0;
}

#turnkey-credit { display: none !important; }
