/*
Theme Name: HA Tema v34.2 FULL SAFE
Theme URI: https://historiaanimada.com
Author: HA
Version: 34.2
Description: v27 Banner + v28 Cores + v29 Shorts + v30 Capa + v34 Fix - Versão FULL mas SAFE sem erro crítico
Requires at least: 6.0
License: GPL v2
Text Domain: ha-tema-v34
*/
:root{
  --ha-primaria:#cc181e;
  --ha-secundaria:#111;
  --ha-header:#111;
}
*{box-sizing:border-box}
body{margin:0;font-family:Inter,Arial,sans-serif;background:#f6f6f6;color:#222;line-height:1.6}
a{color:var(--ha-primaria);text-decoration:none}
.site-header{background:var(--ha-header);color:#fff;position:sticky;top:0;z-index:100;box-shadow:0 2px 10px rgba(0,0,0,.2)}
.header-inner{max-width:1200px;margin:0 auto;display:flex;align-items:center;justify-content:space-between;padding:12px 16px;gap:16px}
.logo img{max-height:48px}
.logo-text{font-weight:900;font-size:24px;letter-spacing:1px;color:#fff}
.menu-cats{display:flex;gap:8px;flex-wrap:wrap}
.menu-cats a,.menu-cats li a{background:#222;color:#fff;padding:6px 12px;border-radius:20px;font-size:12px;display:inline-block}
.menu-cats a:hover{background:var(--ha-primaria)}
.ha-header-banner{color:#fff;font-weight:700}
.container{max-width:1200px;margin:0 auto;padding:0 16px;display:grid;grid-template-columns:1fr 320px;gap:20px}
@media(max-width:900px){.container{grid-template-columns:1fr}}
.main{padding:16px 0}
.sidebar{padding:16px 0}
.posts-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:16px}
@media(max-width:600px){.posts-grid{grid-template-columns:1fr}}
.card{border:1px solid #eee;border-radius:12px;overflow:hidden;background:#fff;transition:.2s}
.card:hover{transform:translateY(-3px);box-shadow:0 8px 20px rgba(0,0,0,.08)}
.card-thumb{aspect-ratio:16/9;background:#f2f2f2;position:relative;overflow:hidden}
.card-thumb img{width:100%;height:100%;object-fit:cover;display:block}
.card-body{padding:12px}
.card-cat{font-size:10px;font-weight:700;text-transform:uppercase;color:var(--ha-primaria)}
.card-title{font-size:16px;font-weight:700;margin:6px 0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;color:#111}
.auto-capa{border-radius:16px;min-height:280px;padding:20px;display:flex;flex-direction:column;justify-content:space-between;color:#fff;background:#111;position:relative;overflow:hidden}
.auto-capa-top{display:flex;justify-content:space-between;align-items:center}
.auto-capa-icon{background:var(--ha-primaria);width:32px;height:32px;border-radius:50%;display:grid;place-items:center;font-weight:900}
.auto-capa-cat{background:rgba(0,0,0,.5);padding:4px 10px;border-radius:20px;font-size:11px}
.auto-capa-title{font-size:28px;font-weight:900;line-height:1.1;margin:20px 0}
.auto-capa-bottom{font-size:12px;opacity:.9}
.ha-ad-box{margin:16px 0;text-align:center;background:#fff;border-radius:8px;padding:8px;border:1px dashed #ddd}
.ha-share-wrap{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin:16px 0;background:#fff;padding:8px;border-radius:8px}
.ha-share-label{font-size:12px;font-weight:700}
.ha-share-btn{border-radius:50%;display:grid;place-items:center;color:#fff;font-weight:900;text-decoration:none;border:none;cursor:pointer}
.ha-share-fb{background:#1877f2} .ha-share-x{background:#000} .ha-share-wa{background:#25d366} .ha-share-tg{background:#0088cc} .ha-share-copy{background:#333}
.site-footer{background:#111;color:#aaa;padding:30px 16px;margin-top:30px}
.footer-inner{max-width:1200px;margin:0 auto}
.footer-central{display:flex;flex-wrap:wrap;gap:12px;justify-content:center;padding:16px 0;border-bottom:1px solid #222}
.footer-central a{color:#ddd;font-size:13px}
.sep{color:#444}
.footer-bottom{display:flex;justify-content:space-between;padding-top:12px;font-size:12px}
.swiper{border-radius:12px;overflow:hidden;background:#fff}
.swiper-slide{height:auto}
