/* --- VARIÁVEIS E RESET --- */
:root {
    --primary-red: #d32f2f;
    --dark-bg: #111111;
    --darker-bg: #0a0a0a;
    --light-bg: #f5f5f5;
    --white: #ffffff;
    --text-dark: #333333;
    --text-gray: #777777;
    --font-main: 'Montserrat', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--light-bg);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    padding-bottom: 80px; /* Espaço para o rodapé fixo */
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

#logo {
    width: 20%;
}

.text-red { color: var(--primary-red); }
.text-white { color: var(--white); }
.bg-dark { background-color: var(--dark-bg); color: var(--white); }
.mt-10 { margin-top: 10px; }

/* --- BOTÕES --- */
.btn-primary, .btn-outline, .btn-tv {
    display: inline-block;
    padding: 10px 20px;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-red);
    color: var(--white);
}
.btn-primary:hover { background-color: #b71c1c; }

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--white);
    color: var(--white);
}
.btn-outline:hover { background-color: var(--white); color: var(--dark-bg); }

.btn-tv {
    background-color: var(--primary-red);
    color: var(--white);
    padding: 8px 15px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* --- 1. NAVBAR --- */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    height: 70px;
    background-color: var(--white);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
}

.nav-links {
    display: flex;
    gap: 15px;
}
.nav-links a {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-dark);
    transition: color 0.3s;
}
.nav-links a:hover { color: var(--primary-red); }

.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}
.lang-switch {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-gray);
    cursor: pointer;
}
.lang-switch span:hover { color: var(--primary-red); }
.search-icon { font-size: 1.1rem; cursor: pointer; }

/* --- 2. HERO SLIDER (Slider de Publicidades Topo) --- */
.hero-slider {
    position: relative;
    width: 80%;
    margin: 70px auto 0 auto;
    height: 180px;
    overflow: hidden;
    background: var(--dark-bg);
}

.slide {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide.active { opacity: 1; }

/* --- LAYOUT GERAL DE SECÇÕES --- */
.section-container {
    padding: 60px 5%;
    max-width: 1400px;
    margin: 0 auto;
}
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}
.section-header h2 { font-size: 1.5rem; font-weight: 800; text-transform: uppercase; }
.link-ver-todas { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; color: var(--text-gray); }
.link-ver-todas:hover { color: var(--primary-red); }


/* --- 3. NOTÍCIAS (Voltou ao formato vertical) --- */
.grid-noticias {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 20px;
    align-items: stretch;
}

.noticias-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* Card Vertical (Imagem em cima, texto abaixo) */
.card-noticia {
    background: var(--white);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.card-noticia:hover { transform: translateY(-5px); }

.card-img {
    width: 100%;
    height: 160px;
    flex-shrink: 0;
}
.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-body {
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    flex-grow: 1;
}
.card-body .date { font-size: 0.65rem; color: var(--primary-red); font-weight: 700; display: block; margin-bottom: 5px; }
.card-body h3 { font-size: 0.9rem; margin-bottom: 5px; line-height: 1.3; }
.card-body p { font-size: 0.75rem; color: var(--text-gray); margin: 0; }

/* Publicidade Lateral (Slider Automático) */
.pub-lateral {
    background: var(--dark-bg);
    overflow: hidden;
    border-radius: 4px;
    position: relative;
}


/* --- 4. EVENTOS (Slider de Troca) --- */
.events-section { padding-top: 40px; padding-bottom: 40px; }

.events-carousel {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    position: relative;
    height: 350px;
}

.event-card {
    position: absolute;
    background: var(--darker-bg);
    overflow: hidden;
    border-radius: 4px;
    transition: all 0.5s ease-in-out;
    cursor: pointer;
}

.event-card.small {
    width: 25%;
    height: 250px;
    opacity: 0.6;
    z-index: 1;
}
.event-card.small:hover { opacity: 0.9; }

.event-card.large {
    width: 50%;
    height: 350px;
    border: 2px solid var(--primary-red);
    opacity: 1;
    z-index: 2;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.event-card.small[data-index="0"] { left: 0; }
.event-card.small[data-index="2"] { right: 0; }
.event-card.large { left: 50%; transform: translateX(-50%); }

.event-card.small.active {
    width: 50%;
    height: 350px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 1;
    z-index: 2;
    border: 2px solid var(--primary-red);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.event-card.large.inactive {
    width: 25%;
    height: 250px;
    opacity: 0.6;
    z-index: 1;
    border: none;
    box-shadow: none;
    transform: translateX(0);
}
.event-card.large.inactive[data-index="0"] { left: 0; }
.event-card.large.inactive[data-index="2"] { right: 0; left: auto; }

.event-card img { width: 100%; height: 100%; object-fit: cover; opacity: 0.6; transition: opacity 0.3s; }
.event-card:hover img { opacity: 0.8; }

.event-info {
    position: absolute;
    bottom: 0; left: 0; width: 100%;
    padding: 20px;
    background: linear-gradient(transparent, rgba(0,0,0,0.9));
    color: var(--white);
}
.event-info h3 { font-size: 1.5rem; margin-bottom: 10px; }
.event-info h4 { font-size: 1rem; margin-bottom: 10px; }
.event-info p { font-size: 0.8rem; color: #ccc; margin-bottom: 15px; }
.event-date { font-weight: 700; font-size: 0.9rem; display: block; margin-bottom: 5px; }


/* --- 5 & 6. SOBRE E LIDERANÇA --- */
.grid-sobre {
    display: grid;
    grid-template-columns: 1fr auto 1fr 0.5fr;
    gap: 30px;
    align-items: center;
}

.sobre-nos { display: flex; gap: 20px; align-items: center; }
.sobre-img { width: 40%; flex-shrink: 0; }
.sobre-img img { width: 100%; height: 200px; object-fit: cover; border-radius: 4px; }
.sobre-texto { width: 60%; }
.sobre-texto h2 { font-size: 1.2rem; margin-bottom: 10px; }
.sobre-texto p { font-size: 0.85rem; color: var(--text-gray); margin-bottom: 15px; }

.divisor-vertical {
    width: 1px;
    height: 100%;
    background-color: #ddd;
    min-height: 200px;
}

.lideranca { display: flex; gap: 20px; align-items: center; }
.lideranca-texto { width: 60%; }
.lideranca-texto h2 { font-size: 1.2rem; margin-bottom: 10px; }
.lideranca-texto p { font-size: 0.85rem; color: var(--text-gray); margin-bottom: 15px; }
.lideranca-img { width: 40%; flex-shrink: 0; }
.lideranca-img img { width: 100%; height: 200px; object-fit: cover; border-radius: 4px; }

/* Parceiros Vertical (Slider) */
.parceiros-vertical {
    background: var(--white);
    border: 1px solid #ddd;
    border-radius: 4px;
    height: 100%;
    min-height: 250px;
    position: relative;
    overflow: hidden;
}


/* --- 7. TORNEIOS --- */
.grid-torneios {
    display: grid;
    grid-template-columns: 2fr 1.5fr 1fr;
    gap: 20px;
}
.video-pub { position: relative; cursor: pointer; }
.play-btn {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    font-size: 4rem;
    color: var(--primary-red);
    transition: transform 0.3s;
}
.play-btn:hover { transform: translate(-50%, -50%) scale(1.1); }
.lista-torneios { display: flex; flex-direction: column; gap: 10px; }
.torneio-item {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255,255,255,0.05);
    padding: 10px;
    border-radius: 4px;
}
.torneio-item img { width: 100px; height: 60px; object-fit: cover; }
.torneio-item h4 { font-size: 0.9rem; margin-bottom: 5px; }
.torneio-item span { font-size: 0.75rem; color: #aaa; }
.pub-sagres { position: relative; overflow: hidden; }


/* --- 8. ONDE ESTAMOS --- */
.grid-onde {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 20px;
}
.contactos-box { padding: 30px; }
.contactos-box h3 { margin-bottom: 20px; font-size: 1.2rem; }
.contactos-box p { font-size: 0.9rem; margin-bottom: 15px; display: flex; align-items: center; gap: 10px; }
.mapa-box { position: relative; }
.mapa-box img { width: 100%; height: 100%; object-fit: cover; }
.mapa-overlay {
    position: absolute;
    top: 20px; left: 20px;
    background: var(--white);
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    color: var(--text-dark);
    max-width: 200px;
}
.mapa-overlay h4 { font-size: 0.9rem; margin-bottom: 5px; }
.mapa-overlay p { font-size: 0.75rem; color: var(--text-gray); margin-bottom: 10px; }
.pontos-box { background: var(--white); padding: 20px; }
.pontos-box h4 { font-size: 1rem; margin-bottom: 15px; }
.pontos-box ul li { font-size: 0.85rem; margin-bottom: 10px; display: flex; align-items: center; gap: 10px; }

/* --- 9. GALERIA --- */
.grid-galeria { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; }
.grid-galeria img { width: 100%; height: 200px; object-fit: cover; border-radius: 4px; transition: transform 0.3s; }
.grid-galeria img:hover { transform: scale(1.05); }

/* --- 10. LOJA --- */
.grid-loja { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card-produto {
    background: var(--white);
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.card-produto img { width: 100%; height: 180px; object-fit: contain; margin-bottom: 15px; }
.card-produto h4 { font-size: 0.95rem; margin-bottom: 10px; }
.card-produto .preco { font-size: 1.1rem; font-weight: 700; color: var(--primary-red); margin-bottom: 15px; }

/* Pub Loja (Slider) */
.pub-loja {
    position: relative;
    overflow: hidden;
    border: 2px dashed var(--primary-red);
    min-height: 300px;
}


/* --- 11. RANKING E 12. PARCEIROS --- */
.grid-ranking { display: grid; grid-template-columns: 2fr 1fr; gap: 40px; }
.tabela-ranking {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.tabela-ranking th, .tabela-ranking td {
    padding: 15px;
    text-align: left;
    font-size: 0.85rem;
    border-bottom: 1px solid #eee;
}
.tabela-ranking th { background: var(--dark-bg); color: var(--white); text-transform: uppercase; font-size: 0.75rem; }
.tabela-ranking tr:hover { background: #f9f9f9; }
.grid-parceiros { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid-parceiros img { width: 100%; padding: 20px; background: var(--white); box-shadow: 0 2px 8px rgba(0,0,0,0.05); }

/* --- 13. TORNE-SE MEMBRO --- */
.grid-membro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    background: var(--dark-bg);
    overflow: hidden;
    border-radius: 8px;
}
.membro-info { padding: 50px; color: var(--white); }
.membro-info h2 { font-size: 2rem; margin-bottom: 20px; text-transform: uppercase; }
.membro-info p { color: #ccc; margin-bottom: 30px; }
.passos { display: flex; gap: 20px; margin-bottom: 30px; }
.passo { display: flex; align-items: center; gap: 10px; font-size: 0.85rem; }
.passo span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px; height: 30px;
    background: var(--primary-red);
    border-radius: 50%;
    font-weight: 700;
}

/* Pub Membro (Slider) */
.membro-pub { position: relative; overflow: hidden; min-height: 300px; }


/* --- FOOTER --- */
.footer {
    background: var(--darker-bg);
    color: var(--white);
    padding: 40px 5% 20px 5%;
    margin-top: 60px;
}
.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 20px;
    margin-bottom: 20px;
}
.footer-links { display: flex; gap: 15px; flex-wrap: wrap; }
.footer-links a { font-size: 0.75rem; color: #ccc; transition: color 0.3s; }
.footer-links a:hover { color: var(--primary-red); }
.social-icons { display: flex; gap: 15px; font-size: 1.1rem; cursor: pointer; }
.social-icons i:hover { color: var(--primary-red); }
.footer-bottom { display: flex; justify-content: space-between; font-size: 0.7rem; color: #777; }


/* --- 14. RODAPÉ FIXO COM SLIDER DE PUBLICIDADES --- */
.fixed-bottom-ad {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: var(--dark-bg);
    z-index: 999;
    overflow: hidden;
    border-top: 2px solid var(--primary-red);
    box-shadow: 0 -4px 15px rgba(0,0,0,0.3);
}

.fixed-bottom-ad .ad-slide {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.fixed-bottom-ad .ad-slide.active { opacity: 1; }

.close-ad {
    position: absolute;
    top: 5px;
    right: 10px;
    background: rgba(0,0,0,0.6);
    color: var(--white);
    border: none;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    transition: background 0.3s;
}
.close-ad:hover { background: var(--primary-red); }


/* --- SLIDER DE PUBLICIDADES GENÉRICO (Reutilizável) --- */
.ad-slider {
    position: relative;
    overflow: hidden;
}

.ad-slide {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.ad-slide.active { opacity: 1; }


/* --- RESPONSIVIDADE --- */
@media (max-width: 1024px) {
    .grid-noticias { grid-template-columns: 1fr; }
    .noticias-list { grid-template-columns: repeat(2, 1fr); }
    .grid-sobre { grid-template-columns: 1fr; }
    .divisor-vertical { display: none; }
    .parceiros-vertical { grid-column: span 1; min-height: 200px; }
    .grid-torneios { grid-template-columns: 1fr 1fr; }
    .grid-onde { grid-template-columns: 1fr; }
    .grid-loja { grid-template-columns: repeat(2, 1fr); }
    .grid-ranking { grid-template-columns: 1fr; }
    .grid-membro { grid-template-columns: 1fr; }
    
    .event-card.small { display: none; }
    .event-card.large { width: 100%; position: relative; left: 0; transform: none; }
    .events-carousel { height: auto; }
}

@media (max-width: 768px) {
    .navbar { flex-direction: column; height: auto; padding: 15px; position: relative; }
    .nav-links { flex-wrap: wrap; justify-content: center; margin: 10px 0; }
    .nav-actions { width: 100%; justify-content: space-between; }
    
    .hero-slider { width: 95%; height: 150px; margin-top: 20px; }
    
    .noticias-list { grid-template-columns: 1fr; }
    .card-noticia { flex-direction: column; }
    .card-img { width: 100%; height: 180px; }
    .card-body { width: 100%; }
    
    .grid-galeria { grid-template-columns: repeat(2, 1fr); }
    .grid-loja { grid-template-columns: 1fr; }
    .grid-torneios { grid-template-columns: 1fr; }
    .grid-membro { grid-template-columns: 1fr; }
    .membro-info { padding: 30px; }
    .passos { flex-direction: column; }
    
    .footer-content { flex-direction: column; gap: 20px; text-align: center; }
    .footer-bottom { flex-direction: column; text-align: center; gap: 10px; }

    /* Rodapé fixo mais pequeno em mobile */
    .fixed-bottom-ad { height: 60px; }
    body { padding-bottom: 60px; }
}