/* ===================================================
   VARIÁVEIS TEMA GLASSMORPHISM & DARK GLOW
=================================================== */
:root {
    --bg-main: #0B0F19;
    --bg-card: #151C2C;
    --bg-header: rgba(11, 15, 25, 0.75);
    --bg-footer: rgba(10, 12, 18, 0.88);
    
    /* Cores de Destaque */
    --primary: #3A86FF;
    --primary-glow: rgba(58, 134, 255, 0.4);
    --accent: #FF006E;
    --accent-glow: rgba(255, 0, 110, 0.5);
    --gold: #FFD700;
    --gold-glow: rgba(255, 215, 0, 0.35);
    
    /* Tipografia e Bordas */
    --text-title: #FFFFFF;
    --text-body: #A0AEC0;
    --border-color: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(58, 134, 255, 0.5);
    --border-sofisticada: rgba(255, 215, 0, 0.28);
}

/* ===================================================
   RESET E ESTILOS BASE
=================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-main);
    color: var(--text-body);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    padding: 80px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* ===================================================
   TÍTULOS E ESTRUTURA DE SEÇÃO
=================================================== */
.header-secao {
    text-align: center;
    margin-bottom: 40px;
}

.header-secao h2 {
    color: var(--text-title);
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

/* Classes adicionadas para substituição dos estilos inline */
.subtitulo-secao {
    font-size: 1.3rem;
    color: var(--text-title);
    font-weight: 600;
    line-height: 1.5;
    max-width: 1000px;
    margin: 0 auto;
}

.espaco-topo {
    margin-top: 50px;
}

.linha-decorativa {
    width: 60px;
    height: 4px;
    background-color: var(--primary);
    margin: 15px auto 0;
    border-radius: 2px;
}

/* ===================================================
   CABEÇALHO GLASSMORPHISM (NAVBAR)
=================================================== */
header, 
header.header-vinho {
    background: var(--bg-header);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-sofisticada);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 12px 24px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.45);
}

.header-widget {
    white-space: nowrap;
    color: #FFF;
    font-size: 0.85rem;
}

.widget-esquerda { justify-self: start; }
.widget-direita { justify-self: end; }

.widget-item {
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Menu de Navegação */
.nav-menu {
    display: flex;
    gap: 22px;
    align-items: center;
    justify-content: center;
    justify-self: center;
}

.nav-menu a {
    color: #E2E8F0;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    position: relative;
    padding: 4px 0;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--gold);
    transition: width 0.3s ease;
    box-shadow: 0 0 8px var(--gold-glow);
}

.nav-menu a:hover, 
.nav-menu a.active {
    color: var(--gold);
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.nav-menu a:hover::after, 
.nav-menu a.active::after {
    width: 100%;
}

/* ===================================================
   HERO BANNER
=================================================== */
.banner {
    background-image: linear-gradient(rgba(27, 30, 36, 0.75), rgba(37, 40, 48, 0)), url('img/header.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 140px 20px 60px;
    position: relative;
}

.badge-hero {
    background: rgba(255, 215, 0, 0.12);
    color: var(--gold);
    border: 1px solid var(--border-sofisticada);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1px;
    display: inline-block;
    margin-bottom: 20px;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.15);
}

.banner-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: -1px;
    background: linear-gradient(180deg, #FFFFFF 0%, #A0AEC0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.banner-content p {
    font-size: 1.25rem;
    margin: 0 auto 35px;
    max-width: 650px;
    color: var(--text-body);
}

/* ===================================================
   PROPOSTAS E NOTÍCIAS
=================================================== */
.grid-propostas, 
.grid-noticias {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.card-proposta, 
.noticia-item {
    background: var(--bg-card);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.card-proposta:hover, 
.noticia-item:hover {
    transform: translateY(-8px);
    border-color: var(--border-hover);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.capa-proposta {
    height: 200px;
    background-size: cover;
    background-position: center;
}

.card-proposta h3, 
.noticia-item h3 {
    padding: 25px 25px 10px;
    color: var(--text-title);
    font-size: 1.3rem;
}

.card-proposta p, 
.noticia-item p {
    padding: 0 25px 25px;
    color: var(--text-body);
    font-size: 0.95rem;
}

.noticia-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.noticia-conteudo {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.link-noticia {
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: gap 0.3s ease, color 0.3s ease;
}

.link-noticia:hover {
    gap: 12px;
    color: var(--accent);
}

/* ===================================================
   GALERIA DE VÍDEOS
=================================================== */
.grid-videos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.card-video {
    width: 200px;
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.card-video:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6), 0 0 15px var(--primary-glow);
}

.thumb-video {
    position: relative;
    width: 100%;
    height: 130px;
    background-color: #000;
    border-radius: 8px;
    overflow: hidden;
}

.thumb-video img, 
.play-icon {
    pointer-events: none;
}

.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 44px;
    height: 44px;
    background: rgba(11, 15, 25, 0.85);
    border: 2px solid var(--primary);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 16px;
    padding-left: 3px;
    box-shadow: 0 0 12px var(--primary-glow);
    transition: all 0.3s ease;
}

.card-video:hover .play-icon {
    transform: translate(-50%, -50%) scale(1.1);
    background: var(--primary);
    color: white;
    box-shadow: 0 0 20px var(--primary-glow);
}

.card-video h3 {
    padding: 10px 5px 5px;
    font-size: 0.95rem;
    color: var(--text-title);
    text-align: center;
}

/* ===================================================
   GALERIA DE FOTOS
=================================================== */
.grid-fotos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
}

.foto-item {
    width: 180px;
    height: 140px;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
    background: var(--bg-card);
    padding: 4px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.foto-item:hover {
    transform: scale(1.05);
    border-color: var(--accent);
    box-shadow: 0 0 18px var(--accent-glow);
}

/* ===================================================
   LIGHTBOX E MODAL PLAYER
=================================================== */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(11, 15, 25, 0.95);
    backdrop-filter: blur(8px);
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.lightbox-conteudo {
    max-width: 90%;
    max-height: 85vh;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
    animation: zoomIn 0.25s ease-out;
}

.fechar, 
.fechar-video {
    position: absolute;
    top: 25px;
    right: 35px;
    color: var(--text-title);
    font-size: 40px;
    font-weight: 300;
    cursor: pointer;
    transition: color 0.2s ease;
    z-index: 2001;
}

.fechar:hover, 
.fechar-video:hover {
    color: var(--accent);
}

.video-modal-container {
    width: 100%;
    max-width: 900px;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: zoomIn 0.25s ease-out;
}

.video-modal-container video {
    width: 100%;
    max-height: 80vh;
    outline: none;
    border-radius: 12px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.9), 0 0 15px var(--primary-glow);
}

@keyframes zoomIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* ===================================================
   RODAPÉ SOFISTICADO
=================================================== */
footer, 
footer.footer-vinho {
    background: var(--bg-footer);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--border-sofisticada);
    text-align: center;
    padding: 35px 20px;
    margin-top: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

footer p {
    color: #E2E8F0;
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.redes-sociais {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.social-btn {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-title);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 9px 22px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.social-btn:hover {
    background: var(--gold);
    color: #000;
    border-color: var(--gold);
    box-shadow: 0 0 15px var(--gold-glow);
    transform: translateY(-3px);
}

/* ===================================================
   RESPONSIVIDADE (MOBILE & TABLET)
=================================================== */
@media (max-width: 850px) {
    header, 
    header.header-vinho {
        display: flex;
        flex-direction: column;
        gap: 10px;
        padding: 12px 10px;
        position: relative; /* Evita que o topo seja cortado no celular */
    }

    .banner {
        padding-top: 60px;
    }

    .widget-esquerda, 
    .widget-direita {
        justify-self: center;
    }

    .nav-menu {
        flex-wrap: wrap;
        gap: 12px;
    }

    .nav-menu a {
        font-size: 0.85rem;
    }

    .banner-content h1 {
        font-size: 2.2rem;
    }

    .fechar, 
    .fechar-video {
        top: 15px;
        right: 20px;
    }
}