/* ============================================
   PIRANOT V4 - QUADRANTE
   Main Stylesheet
   ============================================ */

:root {
    --primary-dark: #0a2f73;
    --primary: #0b3b8f;
    --primary-light: #1a4fa8;
    --secondary: #ffd200;
    --accent-red: #c40000;
    --text-dark: #111;
    --text-gray: #666;
    --text-light: #999;
    --border-light: #e8e8e8;
    --bg-light: #f6f7f9;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--primary);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* ============================================
   TOPO AZUL - TOP BAR
   ============================================ */

.topbar {
    background: rgba(10, 47, 115, 0.95);
    backdrop-filter: blur(12px);
    color: #fff;
    font-size: 15px;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.topbar .wrap {
    max-width: 1400px;
    margin: 0 auto;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.brand-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-weight: 800;
    font-size: 18px;
    flex-shrink: 0;
}

.brand-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 6px 10px;
    border-radius: 8px;
    font-weight: 900;
}

.topbar .tools {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.topbar .tools a {
    padding: 6px 10px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 999px;
    font-weight: 600;
    font-size: 13px;
    color: #fff;
    transition: background 0.2s ease;
}

.topbar .tools a:hover {
    background: rgba(255, 255, 255, 0.25);
    text-decoration: none;
}

.top-search-form {
    display: flex;
    flex-grow: 1;
    max-width: 400px;
    min-width: 200px;
}

.top-search-form input {
    width: 100%;
    padding: 6px 12px;
    border-radius: 999px 0 0 999px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 14px;
}

.top-search-form input::placeholder {
    color: rgba(255, 255, 255, 0.8);
}

.top-search-form button {
    padding: 6px 14px;
    border-radius: 0 999px 999px 0;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-left: none;
    background: #fff;
    color: var(--primary-dark);
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.top-search-form button:hover {
    background: var(--secondary);
}

/* ============================================
   MENU PRINCIPAL - NAVBAR
   ============================================ */

.navbar {
    background: rgba(8, 44, 99, 0.95);
    backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.navbar .wrap {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.navbar ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
}

.navbar ul li {
    margin-right: 14px;
}

.navbar ul li a {
    color: #fff;
    font-weight: 600;
    font-size: 13px;
    display: block;
    padding: 10px 0;
    transition: all 0.2s ease;
}

.navbar ul li a:hover {
    color: var(--secondary);
}

/* ============================================
   TRENDING BAR - NOTÍCIAS DINÂMICAS
   ============================================ */

.trending {
    background: rgba(3, 26, 75, 0.95);
    backdrop-filter: blur(12px);
    color: #fff;
    padding: 10px 0;
    font-size: 15px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.trending .wrap {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.trending .label {
    background: var(--secondary);
    color: var(--text-dark);
    padding: 4px 8px;
    margin-right: 14px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 12px;
    flex-shrink: 0;
}

.trending .items-container {
    height: 21px;
    overflow: hidden;
    position: relative;
    flex-grow: 1;
}

.trending .items {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    transition: top 0.5s ease-in-out;
}

.trending .items a {
    display: block;
    color: #fff;
    opacity: 0.9;
    font-weight: 600;
    font-size: 14px;
    line-height: 21px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.trending .items a:hover {
    opacity: 1;
}

/* ============================================
   CONTAINER PRINCIPAL - 2 COLUNAS
   ============================================ */

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 32px 20px;
    display: flex;
    gap: 20px;
    width: 100%;
}

.main-content {
    flex: 1 1 75%;
    min-width: 0;
}

.sidebar-content {
    flex: 0 0 300px;
}

.ad-slot,
.ad-slot iframe,
.adsbygoogle,
.adsbygoogle iframe {
    max-width: 100% !important;
}

.ad-slot {
    overflow: hidden;
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 48px;
}

.hero .main {
    flex: 2 1 66%;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.hero .main:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.hero .main .thumb {
    width: 100%;
    height: 450px;
    background-size: cover;
    background-position: center;
}

.hero .main .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 28px;
    background: linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.8));
    backdrop-filter: blur(4px);
    color: #fff;
}

.hero .main .overlay .cat {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.2);
    padding: 6px 10px;
    border-radius: 999px;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}

.hero .main .overlay h2 {
    margin: 0;
    font-size: 38px;
    font-weight: 800;
    line-height: 1.2;
}

.hero .side {
    flex: 1 1 34%;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.hero .side .card {
    display: flex;
    gap: 12px;
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: 10px;
    padding: 10px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.hero .side .card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
}

.hero .side .card .thumb {
    width: 110px;
    height: 80px;
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    flex-shrink: 0;
}

.hero .side .card > div {
    flex: 1;
}

.hero .side .card h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--text-dark);
}

.hero .side .card .meta {
    font-size: 12px;
    color: var(--text-light);
    margin-top: 6px;
}

/* ============================================
   SECTIONS - GRID DE NOTÍCIAS
   ============================================ */

.section {
    margin-bottom: 48px;
}

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.section-head h2 {
    font-size: 24px;
    font-weight: 700;
    border-left: 5px solid var(--accent-red);
    padding-left: 12px;
    margin: 0;
    color: var(--text-dark);
}

.section-head a {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary);
}

.section-head a:hover {
    text-decoration: underline;
}

.section .grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.section .grid .card {
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.section .grid .card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
}

.section .grid .card .thumb {
    width: 100%;
    height: 0;
    padding-top: 56.25%;
    background-size: cover;
    background-position: center;
    position: relative;
}

.section .grid .card h3 {
    margin: 8px 12px;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-dark);
    flex-grow: 1;
}

.section .grid .card .meta {
    margin: 0 12px 12px 12px;
    font-size: 12px;
    color: var(--text-gray);
}

/* ============================================
   SIDEBAR WIDGETS
   ============================================ */

.widget {
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 24px;
    transition: box-shadow 0.2s ease;
}

.widget:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.widget-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 14px 0;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--primary);
    color: var(--text-dark);
}

/* Widget WhatsApp */
.widget-whatsapp {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: #fff;
    text-align: center;
    border: none;
}

.widget-whatsapp .widget-title {
    color: #fff;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
}

.widget-whatsapp p {
    font-size: 14px;
    margin-bottom: 12px;
}

.widget-whatsapp a {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 12px 20px;
    border-radius: 999px;
    color: #fff;
    font-weight: 700;
    margin-top: 10px;
    transition: background 0.2s ease;
}

.widget-whatsapp a:hover {
    background: rgba(255, 255, 255, 0.3);
    text-decoration: none;
}

/* Widget Anúncio */
.widget-ad {
    background: var(--bg-light);
    border: 2px dashed #ddd;
    text-align: center;
    padding: 40px 20px;
    color: var(--text-light);
    font-size: 14px;
    font-weight: 600;
}

/* Widget Hub de Serviços */
.widget-services .services-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.widget-services .services-list a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px;
    background: var(--bg-light);
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    color: var(--text-dark);
    transition: all 0.2s ease;
}

.widget-services .services-list a:hover {
    background: var(--primary);
    color: #fff;
    text-decoration: none;
    transform: translateX(4px);
}

.widget-services .services-list a .dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: currentColor;
    flex-shrink: 0;
}

/* Widget Populares */
.widget-popular ol {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: popular-counter;
}

.widget-popular ol li {
    counter-increment: popular-counter;
    margin-bottom: 12px;
    padding-left: 30px;
    position: relative;
}

.widget-popular ol li:before {
    content: counter(popular-counter);
    position: absolute;
    left: 0;
    top: 0;
    width: 22px;
    height: 22px;
    background: var(--primary);
    color: #fff;
    border-radius: 4px;
    text-align: center;
    line-height: 22px;
    font-weight: 700;
    font-size: 12px;
}

.widget-popular ol li a {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-dark);
}

.widget-popular ol li a:hover {
    text-decoration: underline;
}

/* Widget Newsletter */
.widget-newsletter form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.widget-newsletter p {
    font-size: 14px;
    margin: 0 0 8px 0;
    color: var(--text-gray);
}

.widget-newsletter input[type="email"] {
    padding: 10px;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    font-size: 14px;
}

.widget-newsletter input[type="email"]:focus {
    outline: none;
    border-color: var(--primary);
}

.widget-newsletter button {
    padding: 10px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease;
}

.widget-newsletter button:hover {
    background: #082c63;
}

/* ============================================
   FOOTER — Piranot V5
   ============================================ */

.site-footer {
    background: var(--primary);
    color: #fff;
    margin-top: 48px;
}

/* Faixa superior: logo + redes sociais */
.footer-top {
    border-bottom: 1px solid rgba(255,255,255,0.15);
    padding: 24px 0;
}

.footer-top-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-logo {
    color: #fff !important;
    text-decoration: none;
    font-weight: 800;
    font-size: 22px;
    letter-spacing: -0.5px;
}

.footer-logo img {
    max-height: 44px;
    width: auto;
    filter: brightness(0) invert(1);
}

/* Social icons */
.footer-social {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,0.12);
    color: #fff !important;
    transition: background 0.2s, transform 0.2s;
    text-decoration: none !important;
}

.footer-social a:hover {
    background: rgba(255,255,255,0.25);
    transform: translateY(-2px);
}

/* Faixa do meio: navegação */
.footer-mid {
    border-bottom: 1px solid rgba(255,255,255,0.12);
    padding: 20px 0;
}

.footer-mid-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-nav {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 24px;
}

.footer-nav li a {
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: color 0.15s;
}

.footer-nav li a:hover {
    color: #fff;
    text-decoration: underline;
}

/* Faixa inferior: copyright */
.footer-bottom {
    padding: 16px 0;
}

.footer-bottom-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.footer-copy {
    font-size: 12px;
    color: rgba(255,255,255,0.55);
    margin: 0;
}

.footer-copy a {
    color: rgba(255,255,255,0.65) !important;
    text-decoration: none;
    margin-left: 8px;
}

.footer-copy a:hover { color: #fff !important; text-decoration: underline; }

.footer-made {
    font-size: 11px;
    color: rgba(255,255,255,0.35);
    margin: 0;
}

.site-footer a {
    color: #fff;
}

.site-footer a:hover {
    text-decoration: underline;
}

/* WPBakery home wrapper */
.home-wpbakery-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 14px;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.wrap {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 14px;
}

/* Hide scrollbar while maintaining scroll */
.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.no-scrollbar::-webkit-scrollbar {
    display: none;
}
