@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700;800;900&display=swap');

:root {
    --primary: #0f172a;
    --accent: #3b82f6;
    --accent-hover: #2563eb;
    --bg-body: #f8f9fa;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --whatsapp: #25D366;
    --whatsapp-dark: #1da851;
    --border-color: #e2e8f0;
    --navbar-height: 70px;
}

/* --- GERAL --- */
html, body {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden !important;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    background-color: #fff;
    line-height: 1.6;
    padding-top: var(--navbar-height);
}

/* NAVBAR (FIXA) */
.navbar-custom {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    min-height: var(--navbar-height);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    padding: 0;
    z-index: 1050;
    transition: all 0.3s ease;
}

.brand-logo { text-decoration: none; display: flex; align-items: center; flex-shrink: 0; }
.nav-link { font-weight: 600; color: var(--text-muted); font-size: 0.9rem; margin-left: 20px; transition: 0.2s; }
.nav-link:hover { color: var(--accent); }

.btn-vip {
    background: var(--whatsapp);
    color: #fff;
    font-weight: 700;
    border-radius: 50px;
    padding: 10px 24px;
    border: none;
    font-size: 0.9rem;
    transition: 0.3s;
}
.btn-vip:hover { background: var(--whatsapp-dark); color: #fff; transform: translateY(-2px); }

/* HERO SECTION */
.hero-section { 
    padding: 60px 0; 
    background: radial-gradient(circle at top right, #f1f5f9 0%, #fff 40%); 
    border-bottom: 1px solid var(--border-color); 
    width: 100%; 
    overflow: hidden; 
}

/* Ajuste do Selo (Manchete do Dia) */
.hero-tag { 
    display: inline-block; /* Garante que a margem funcione corretamente */
    background: #eff6ff; 
    color: var(--accent); 
    padding: 6px 12px; 
    font-size: 0.75rem; 
    font-weight: 700; 
    text-transform: uppercase; 
    border-radius: 6px; 
    margin-bottom: 16px; /* Espaço adicionado entre o selo e o título */
}

/* Ajuste do Título Principal */
.hero-title { 
    font-weight: 800; /* Afinado de 900 para 800 */
    font-size: 3rem; 
    line-height: 1.1; 
    color: var(--primary); 
    letter-spacing: -1.5px; 
    margin-bottom: 20px; 
}

.hero-text { font-size: 1.1rem; color: var(--text-muted); margin-bottom: 35px; }

.hero-img-wrapper { position: relative; border-radius: 16px; overflow: hidden; box-shadow: 0 20px 40px -10px rgba(0,0,0,0.1); background: #000; width: 100%; }
.hero-img { width: 100%; height: 450px; object-fit: cover; display: block; }

.video-badge {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    color: #fff; background: rgba(0,0,0,0.6); width: 65px; height: 65px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; font-size: 1.5rem; backdrop-filter: blur(4px); transition: 0.3s; z-index: 10;
}

/* FEED DE NOTÍCIAS */
.news-card { 
    background: #fff; border-radius: 12px; overflow: hidden; border: 1px solid var(--border-color); 
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05); transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1); cursor: pointer; display: flex; flex-direction: column; height: 100%;
}
.news-card:hover { transform: translateY(-8px); box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1); }
.news-card-img-wrapper { position: relative; height: 220px; overflow: hidden; background: #f1f5f9; }
.news-card-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.news-card:hover .news-card-img { transform: scale(1.08); }
.category-badge { 
    position: absolute; top: 15px; left: 15px; background: rgba(255, 255, 255, 0.9); 
    color: var(--primary); font-size: 0.7rem; font-weight: 700; padding: 4px 10px; 
    border-radius: 4px; text-transform: uppercase; z-index: 2;
}
.news-card-body { padding: 25px; display: flex; flex-direction: column; flex-grow: 1; }
.news-meta { font-size: 0.8rem; color: var(--text-muted); font-weight: 500; }
.news-card-title { font-size: 1.25rem; font-weight: 700; color: var(--primary); margin: 12px 0; transition: color 0.3s; }
.news-card:hover .news-card-title { color: var(--accent); }
.news-card-excerpt { font-size: 0.95rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 0; }
.read-more-link { color: var(--accent); font-weight: 700; font-size: 0.9rem; text-decoration: none; transition: padding-left 0.3s; }
.news-card:hover .read-more-link { padding-left: 8px; }

/* INSTAGRAM SWIPER */
.insta-scroller-section { padding: 60px 0; background: #fff; overflow: hidden; width: 100%; }
.scroller-title { text-align: center; margin-bottom: 20px; font-weight: 800; font-size: 1.5rem; }
.insta-swiper { padding: 20px 20px 60px !important; cursor: grab; }
.insta-swiper:active { cursor: grabbing; }
.swiper-wrapper { transition-timing-function: linear !important; }
.swiper-slide { width: 280px !important; }
.insta-card { 
    width: 280px; height: 500px; border-radius: 16px; overflow: hidden; position: relative; background: #000;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05); transition: 0.3s;
}
.insta-card:hover { transform: translateY(-10px); }
.insta-img { width: 100%; height: 100%; object-fit: cover; }
.insta-overlay { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(to top, rgba(0,0,0,0.8), transparent); padding: 20px; color: #fff; opacity: 0; transition: 0.3s; pointer-events: none; }
.insta-card:hover .insta-overlay { opacity: 1; }

/* MODAL */
.insta-modal-overlay { 
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; 
    background: rgba(0, 0, 0, 0.9); backdrop-filter: blur(10px); 
    z-index: 9999; display: none; justify-content: center; align-items: center; 
}
.insta-modal-overlay.show { display: flex; }

.insta-modal-content { 
    background: #000; 
    border-radius: 16px; overflow: hidden; display: flex; 
    box-shadow: 0 25px 50px rgba(0,0,0,0.6);
}

.close-modal-btn { 
    position: absolute; top: 15px; right: 20px; color: #fff; font-size: 2.5rem; 
    cursor: pointer; z-index: 10005; text-shadow: 0 2px 5px rgba(0,0,0,0.8); line-height: 1;
}

/* === MOBILE: LAYOUT VERTICAL NO MODAL === */
@media (max-width: 991px) {
    .insta-modal-content { 
        width: 100%; height: 100%; border-radius: 0; flex-direction: column;
    }
    .insta-modal-media { 
        flex: 1; background: #000; display: flex; align-items: center; justify-content: center; 
        overflow: hidden; position: relative;
    }
    .insta-modal-media video, .insta-modal-media img { width: 100%; height: 100%; object-fit: contain; }
    .insta-modal-info { 
        position: relative; background: #121212; padding: 20px; flex-shrink: 0; border-top: 1px solid #333;
    }
    .mobile-controls { display: flex; gap: 10px; margin-top: 5px; }
    .mobile-controls .btn { flex: 1; font-size: 0.9rem; font-weight: 600; padding: 12px 0; }
    .insta-description-box { 
        display: none; margin-top: 15px; padding: 10px; background: #1e1e1e; border-radius: 8px; color: #ccc; 
        font-size: 0.85rem; max-height: 150px; overflow-y: auto; 
    }
    .insta-description-box.show { display: block; animation: fadeIn 0.3s; }
    .insta-modal-header { color: #fff; margin-bottom: 10px; font-size: 0.9rem; opacity: 0.8; }
    .desktop-only { display: none !important; }
}

/* === DESKTOP: LAYOUT LADO A LADO === */
@media (min-width: 992px) {
    .insta-modal-content { max-width: 950px; height: 85vh; flex-direction: row; background: #fff; border-radius: 12px; }
    .insta-modal-media { flex: 1.6; background: #000; display: flex; align-items: center; justify-content: center; }
    .insta-modal-media video, .insta-modal-media img { object-fit: contain; width: 100%; height: 100%; }
    .insta-modal-info { flex: 1; background: #fff; padding: 30px; display: flex; flex-direction: column; position: relative; }
    .insta-modal-header { font-weight: 700; margin-bottom: 15px; font-size: 1.1rem; border-bottom: 1px solid #eee; padding-bottom: 15px; }
    .insta-description-box { display: block !important; flex: 1; overflow-y: auto; color: #333; font-size: 0.95rem; margin-bottom: 20px; }
    .insta-modal-footer { margin-top: auto; padding-top: 20px; border-top: 1px solid #eee; display: flex; justify-content: flex-end; }
    .close-modal-btn { color: #333; text-shadow: none; top: 15px; right: 20px; }
    .mobile-only { display: none !important; }
}

@keyframes fadeIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }

/* OUTROS */
.btn-primary-custom { background: var(--primary); color: #fff; padding: 12px 30px; border-radius: 8px; font-weight: 600; border: none; }
.btn-outline-custom { background: transparent; color: var(--primary); border: 2px solid var(--border-color); padding: 12px 30px; border-radius: 8px; font-weight: 600; }
.btn-dark-custom { background: #333; color: #fff; border: 1px solid #444; }
.btn-dark-custom:hover { background: #444; color: #fff; }

.whatsapp-section { background: #111827; padding: 80px 0; color: #fff; }
.btn-whatsapp-lg { background: var(--whatsapp); color: #fff; padding: 16px 40px; font-size: 1.1rem; font-weight: 700; border-radius: 50px; border: none; }
.video-responsive { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; border-radius: 16px; background: #000; }
.video-responsive iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }
.pro-footer { background: #0f172a; color: #94a3b8; padding: 80px 0 30px; font-size: 0.9rem; width: 100%; overflow: hidden; }
.footer-logo { filter: brightness(0) invert(1); height: 35px; margin-bottom: 25px; }
.footer-heading { color: #fff; font-weight: 700; margin-bottom: 20px; }
.footer-link { color: #94a3b8; text-decoration: none; display: block; margin-bottom: 10px; }
.footer-link:hover { color: #fff; }

/* === MEDIA QUERIES MOBILE === */
@media (max-width: 991px) {
    /* Diminuição da fonte do título no mobile */
    .hero-title { 
        font-size: 1.75rem; /* Reduzido de 2rem para ficar mais harmonioso */
    }
    
    .hero-section {
        padding-top: 20px; 
        padding-bottom: 40px;
    }

    .navbar-custom {
        height: auto !important;
        padding: 5px 0;
    }
    
    .navbar-collapse {
        background: #fff;
        margin-top: 10px;
        padding: 20px;
        border-radius: 0 0 12px 12px;
        border-top: 1px solid #eee;
        box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    }
    
    .hero-section .d-flex {
        flex-direction: column !important;
        width: 100%;
        gap: 15px;
    }
    
    .hero-section .btn {
        width: 100%;
        display: block;
        margin: 0;
        text-align: center;
        padding: 14px 0;
    }

    .row { margin-left: 0; margin-right: 0; }
}