/* ============================================================
   RESUMO BRASIL — RESPONSIVIDADE v3
   ============================================================ */

/* ── UTIL BAR: esconde em mobile ── */
@media(max-width:600px) {
  .util-bar { display: none !important; }
}

/* ── HERO SLIDER — SEM !important no display para o JS funcionar ── */
.hero-slider { position: relative; overflow: hidden; width: 100%; }
.hero-slide { display: none; position: relative; width: 100%; }
.hero-slide.active { display: block; }
.hero-slide img { width: 100%; height: 370px; object-fit: cover; display: block; }
.hero-slide .hero-placeholder { width: 100%; height: 370px; }

@media(max-width:768px) {
  .hero-slide img,
  .hero-slide .hero-placeholder { height: 220px; }
  .hero-overlay { padding: 28px 12px 12px; }
  .hero-overlay h1 { font-size: 16px; line-height: 1.3; }
  .hero-arrow { width: 34px; height: 34px; font-size: 20px; }
  .hero-prev { left: 8px; }
  .hero-next { right: 8px; }
}
@media(max-width:480px) {
  .hero-slide img,
  .hero-slide .hero-placeholder { height: 180px; }
  .hero-overlay p { display: none; }
  .hero-overlay h1 { font-size: 14px; }
}

/* ── DESTAQUES ── */
@media(max-width:768px) {
  .dest-featured { display: grid; grid-template-columns: 1fr; gap: 6px; }
  .dest-side-col { display: flex; flex-direction: row; gap: 6px; }
  .dest-side-card { flex: 1; }
  .dest-side-card img { height: 130px; min-height: 130px; max-height: 130px; }
  .dest-main-card img { height: 220px; min-height: 220px; max-height: 220px; }
}
@media(max-width:480px) {
  .dest-side-col { flex-direction: column; }
  .dest-side-card img { height: 150px; }
  .dest-main-card img { height: 180px; }
}

/* ── FOOTER ── */
.site-footer { background: #0d1f3c !important; }
.footer-grid-wrap { background: #0d1f3c !important; }
.footer-newsletter { background: linear-gradient(135deg,#0d1f3c,#1a3560) !important; }
.footer-nav { background: #0d1f3c !important; }
.footer-links-wrap { background: #0a1628 !important; }
.footer-bottom-bar { background: #091628 !important; }

@media(max-width:900px) {
  .footer-grid { grid-template-columns: 1fr 1fr !important; gap: 20px !important; }
}
@media(max-width:600px) {
  .footer-newsletter { padding: 20px 14px !important; }
  .footer-newsletter-inner { flex-direction: column !important; text-align: center !important; gap: 12px !important; }
  .nl-form { flex-direction: column !important; gap: 8px !important; }
  .nl-form input { width: 100% !important; }
  .nl-form button { width: 100% !important; }
  .footer-grid { grid-template-columns: 1fr !important; gap: 14px !important; }
  .footer-grid-wrap { padding: 18px 14px 14px !important; }
  .footer-nav { padding: 10px 14px !important; flex-direction: column !important; gap: 8px !important; align-items: flex-start !important; }
  .footer-nav-left { gap: 8px !important; flex-wrap: wrap !important; }
  .footer-bottom-bar { padding: 10px 14px !important; }
  .footer-bottom-inner { flex-direction: column !important; gap: 6px !important; text-align: center !important; }
  .footer-links { padding: 10px 14px !important; }
}

/* ── LAYOUT GERAL ── */
@media(max-width:768px) {
  .site-wrap { flex-direction: column !important; padding: 12px !important; gap: 14px !important; }
  .sidebar { width: 100% !important; }
  .mais-grid { grid-template-columns: 1fr 1fr !important; gap: 10px !important; }
  .thumb-grid { grid-template-columns: repeat(2,1fr) !important; gap: 4px !important; }
  .article-header { padding: 14px 14px 0 !important; }
  .article-header h1 { font-size: 20px !important; }
  .article-body { padding: 14px !important; }
  .tab-grid-top { grid-template-columns: 1fr !important; }
  .tab-grid-bottom { grid-template-columns: 1fr !important; }
  .contact-grid { grid-template-columns: 1fr !important; }
  .colunistas-grid { grid-template-columns: 1fr 1fr !important; gap: 12px !important; }
}
@media(max-width:480px) {
  .mais-grid { grid-template-columns: 1fr !important; }
  .colunistas-grid { grid-template-columns: 1fr !important; }
  .cat-tab { font-size: 10px !important; padding: 5px 8px !important; }
}

/* ── AGENTES FLUTUANTES ── */
@media(max-width:600px) {
  #leticia-widget { bottom: 80px !important; right: 10px !important; }
  #leticia-bubble { width: 52px !important; height: 52px !important; }
  #btn-whatsapp-float { bottom: 10px !important; left: 10px !important; width: 50px !important; height: 50px !important; }
  #leticia-chat { width: calc(100vw - 20px) !important; right: 10px !important; bottom: 10px !important; max-height: 72vh !important; }
  #pedro-widget { bottom: 80px !important; right: 72px !important; }
  #pedro-bubble { width: 52px !important; height: 52px !important; }
  #pedro-chat { width: calc(100vw - 20px) !important; right: 10px !important; bottom: 10px !important; max-height: 72vh !important; }
}

/* ── FOOTER GRID FORÇADO ── */
.footer-grid { display: grid !important; grid-template-columns: 2fr 1fr 1fr 1.2fr !important; }
.footer-col { display: block !important; min-width: 0 !important; }
@media(max-width:900px) { .footer-grid { grid-template-columns: 1fr 1fr !important; } }
@media(max-width:560px) { .footer-grid { grid-template-columns: 1fr !important; } }

/* ── REMOVE SCROLL HORIZONTAL ── */
html { overflow-x: hidden; }
body { overflow-x: hidden; }

/* ── VIEWPORT CLASSES (aplicadas pelo JS no <html>) ── */

/* Monitor muito grande ≥1600px */
html.vp-xl .site-wrap        { max-width: 1400px; margin: 0 auto; }
html.vp-xl .util-bar-inner,
html.vp-xl .site-header-inner,
html.vp-xl .nav-inner        { max-width: 1400px; }

/* Monitor grande 1280–1599px */
html.vp-lg .site-wrap        { max-width: 1240px; margin: 0 auto; }
html.vp-lg .util-bar-inner,
html.vp-lg .site-header-inner,
html.vp-lg .nav-inner        { max-width: 1240px; }

/* Monitor médio 1024–1279px */
html.vp-md .site-wrap        { max-width: 1000px; margin: 0 auto; }
html.vp-md .util-bar-inner,
html.vp-md .site-header-inner,
html.vp-md .nav-inner        { max-width: 1000px; }
html.vp-md .sidebar          { width: 260px !important; }

/* Tablet 768–1023px */
html.vp-sm .site-wrap        { flex-direction: column; padding: 14px; }
html.vp-sm .sidebar          { width: 100% !important; }

/* ── HERO ALTURA PROPORCIONAL AO VIEWPORT ── */
.hero-slide img,
.hero-slide .hero-placeholder {
  height: clamp(180px, 28vw, 420px) !important;
}

/* ── GARANTE QUE NENHUM ELEMENTO ULTRAPASSE A TELA ── */
img, video, iframe, embed, object { max-width: 100% !important; }

/* ── ADMIN RESPONSIVO ── */
@media (max-width: 900px) {
  .adm-sidebar { display: none; }
  .adm-sidebar.open { display: flex; position: fixed; z-index: 999; height: 100vh; }
  .admin-main, .adm-main { padding: 14px !important; }
}
