/* --- IMPORTAÇÃO DA FONTE LOCAL --- */
@font-face {
    font-family: 'Peixe Frito';
    src: url('fonts/peixe-frito.ttf') format('truetype'); /* Ajuste a extensão se for .otf ou .woff */
    font-weight: normal;
    font-style: normal;
}

:root {
    /* Cores extraídas e definidas para alegria e vibração */
    --cor-primaria: #6C2A87; /* Roxo vibrante para títulos */
    --cor-primaria-clara: #B83FB5; /* Magenta para hovers e detalhes */
    --cor-18maio: #F28C0F; /* Laranja da flor */
    --cor-12junho: #4CAF50; /* Verde do catavento */
    --cor-texto: #222222;
    --cor-branco: #FFFFFF;
    --cor-footer-bg: #2C103F; /* Roxo escuro para rodapé */
    
    /* Variáveis para o Efeito Vidro (Glassmorphism) */
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.5);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

/* --- FUNDO GERAL COM A IMAGEM ABSTRATA --- */
body {
    background-image: url('layout/background.png');
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    color: var(--cor-texto);
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- CABEÇALHO (EFEITO VIDRO) --- */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 3px solid var(--cor-primaria-clara);
    box-shadow: var(--glass-shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Peixe Frito', 'Segoe UI', Roboto, sans-serif;
    font-size: 4rem; /* Tamanho maior que você escolheu */
    color: var(--cor-primaria);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    
    /* --- SOLUÇÃO PARA O ESPAÇAMENTO --- */
    line-height: 0.8; /* Reduz a altura da caixa invisível da fonte, removendo a sobra vertical */
    padding-top: 10px; /* Caso precise de um pequeno respiro no topo para não cortar a letra */
}

.logo span {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    font-size: 0.75rem;
    font-weight: normal;
    color: #555;
    
    /* --- SOLUÇÃO PARA APROXIMAR O SUBTÍTULO --- */
    margin-top: 5px; /* Uma margem negativa suave puxa o subtítulo para perto do "Faça Bonito" */
    letter-spacing: 0.5px;
}

.nav-links {
    display: flex;
    gap: 20px;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--cor-texto);
    font-weight: 700;
    padding: 8px 15px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.nav-links a:hover {
    background-color: var(--cor-primaria-clara);
    color: var(--cor-branco);
}

.menu-toggle {
    display: none;
    font-size: 1.6rem;
    cursor: pointer;
    color: var(--cor-primaria);
}

main {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

/* --- CONTAINERS GERAIS --- */
.glass-section {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 25px;
    box-shadow: var(--glass-shadow);
    margin-bottom: 50px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* --- NOVA FAIXA DE CABEÇALHO PARA SEÇÕES --- */
.section-header {
    background-image: url('layout/background2.png');
    background-size: cover;
    background-position: center;
    height: 80px;
    padding: 20px 40px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.section-band-title {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: var(--cor-branco);
    font-size: 1.6rem;
    font-weight: 700;
    margin: 0;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
    position: relative;
    letter-spacing: 0.5px;
}

.section-band-title::after {
    content: '';
    position: absolute;
    left: 0; bottom: -5px; width: 40px; height: 3px;
    background-color: var(--cor-primaria-clara);
    border-radius: 2px;
}

/* CORPO DE CONTEÚDO DENTRO DOS CONTAINERS */
.section-body {
    padding: 30px 40px;
}

/* --- HERO SECTION --- */
.hero {
    text-align: center;
    padding: 0 0 40px;
}

.hero h1 {
    color: var(--cor-texto);
    margin-bottom: 15px;
    font-size: 2.3rem;
    text-shadow: 1px 1px 2px rgba(255,255,255,0.8);
}

.hero p {
    font-size: 1.1rem;
    color: #444;
    font-weight: 600;
    max-width: 800px;
    margin: 0 auto;
}

/* --- SEÇÃO DE CAMPANHAS (FLIP CARDS) --- */
.campanhas {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 35px;
    max-width: 900px;
    margin: 0 auto 50px;
}

.card-link {
    text-decoration: none;
    color: inherit;
    perspective: 1000px;
    display: block;
}

.card-flipper {
    transition: transform 0.8s cubic-bezier(0.4, 0.2, 0.2, 1);
    transform-style: preserve-3d;
    position: relative;
    height: 350px;
    width: 100%;
}

.card-link:hover .card-flipper {
    transform: rotateY(180deg);
}

.card-front, .card-back {
    backface-visibility: hidden;
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    border-radius: 20px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 25px;
    text-align: center;
}

.card-front {
    z-index: 2;
    transform: rotateY(0deg);
    background: var(--cor-branco);
    border: 3px solid transparent;
}

.card-front.maio { border-color: var(--cor-18maio); }
.card-front.junho { border-color: var(--cor-12junho); }

.card-front img {
    max-width: 130px;
    height: auto;
    margin-bottom: 20px;
    filter: drop-shadow(0 5px 10px rgba(0,0,0,0.15));
}

.card-front h3 {
    font-size: 1.5rem;
    color: var(--cor-texto);
}

.card-back {
    transform: rotateY(180deg);
    background-color: var(--cor-branco);
    border: 3px solid #eee;
}

.card-back h3 {
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.card-back p {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 15px;
}

.btn-acessar {
    padding: 10px 20px;
    border-radius: 25px;
    color: white;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.85rem;
}
.btn-maio { background-color: var(--cor-18maio); }
.btn-junho { background-color: var(--cor-12junho); }

/* --- CARROSSEL GERAL --- */
.carousel-container {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.carousel-track-container {
    overflow-x: auto;
    width: 100%;
    padding: 15px 5px;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none; 
    -ms-overflow-style: none;
}

.carousel-track-container::-webkit-scrollbar {
    display: none;
}

.carousel-track {
    display: flex;
    gap: 20px;
}

.carousel-btn {
    background-color: var(--cor-primaria-clara);
    color: white;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    position: absolute;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: transform 0.3s, background 0.3s;
}

.carousel-btn:hover { 
    background-color: var(--cor-primaria); 
    transform: scale(1.1);
}
.carousel-btn.prev { left: -22px; }
.carousel-btn.next { right: -22px; }

/* --- CARDS DE NOTÍCIAS --- */
.item-noticia {
    width: 300px; 
    flex-shrink: 0;
    scroll-snap-align: start;
    background: var(--cor-branco);
    border-radius: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 2px solid transparent;
    transition: transform 0.3s, border-color 0.3s;
}

.item-noticia:hover {
    transform: translateY(-8px);
    border-color: var(--cor-primaria-clara);
}

.noticia-img-container {
    height: 180px; 
    background-color: #f9f9f9;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    border-bottom: 4px solid var(--cor-primaria-clara);
}

.noticia-img-container img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    filter: drop-shadow(0 3px 6px rgba(0,0,0,0.1));
}

.noticia-conteudo {
    padding: 20px;
    flex-grow: 1;
}

.item-noticia h4 {
    color: var(--cor-primaria);
    margin-bottom: 10px;
    font-size: 1.15rem;
    line-height: 1.3;
}

.item-noticia p {
    font-size: 0.9rem;
    color: #555;
}

/* --- CARDS DE JOGOS --- */
.card-jogo {
    width: 240px; 
    flex-shrink: 0;
    scroll-snap-align: start;
    background: var(--cor-branco);
    border: 3px dashed var(--cor-primaria-clara);
    border-radius: 20px;
    padding: 30px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.card-jogo:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    border-style: solid;
    background-color: #fffafb;
}

.card-jogo .icone-jogo {
    font-size: 3rem;
    margin-bottom: 15px;
}

.card-jogo h4 {
    color: var(--cor-primaria);
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.card-jogo p {
    font-size: 0.9rem;
    color: #666;
}

/* --- MODAL PARA OS JOGOS --- */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 2000;
    display: none;
    justify-content: center;
    align-items: center;
    padding: 15px;
}

.modal-content {
    background-color: var(--cor-branco);
    width: 100%;
    max-width: 900px;
    height: 85vh;
    border-radius: 25px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 15px 40px rgba(0,0,0,0.4);
    animation: entradaModal 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes entradaModal {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.modal-close {
    position: absolute;
    top: 15px; right: 20px;
    background: #ff4757;
    color: white;
    border: none;
    width: 40px; height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    z-index: 2010;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: transform 0.2s;
}

.modal-close:hover { transform: scale(1.1); }

.modal-content iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* --- RODAPÉ INSTITUCIONAL --- */
.bottom-banner {
    height: 8px;
    background: linear-gradient(to right, var(--cor-primaria-clara), var(--cor-18maio), var(--cor-12junho), var(--cor-primaria));
}

footer {
    background-color: var(--cor-footer-bg);
    color: var(--cor-branco);
    padding: 50px 20px 20px 20px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 40px;
}

.footer-section h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: #f1f2f6;
    position: relative;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    left: 0; bottom: -8px; width: 50px; height: 3px;
    background-color: var(--cor-primaria-clara);
    border-radius: 2px;
}

.footer-section p, .footer-section ul {
    font-size: 0.95rem;
    opacity: 0.85;
    line-height: 1.8;
}

.footer-section ul { list-style: none; }
.footer-section ul li { margin-bottom: 10px; }

.footer-section ul li a {
    color: var(--cor-branco);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-section ul li a:hover {
    color: var(--cor-primaria-clara);
    text-decoration: underline;
}

.footer-bottom {
    max-width: 1200px;
    margin: 25px auto 0 auto;
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.6;
}

/* --- RESPONSIVIDADE --- */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 70px; left: 0;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        padding: 20px;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        z-index: 1000;
    }
    .nav-links.active { display: flex; }
    .menu-toggle { display: block; }
    
    .item-noticia, .card-jogo { 
        width: calc(100% - 10px); 
    }
    .carousel-btn { display: none; } 

    .glass-section {
        border-radius: 15px;
    }

    .section-header {
        height: 70px;
        padding: 15px 25px;
    }
    .section-band-title {
        font-size: 1.3rem;
    }
    .section-body {
        padding: 20px 25px;
    }
}