/* ==========================================================================
   ESTILO CONSOLIDADO (SISTEMA DE DESIGN + GRID + CORES)
   ========================================================================== */

/* --- VARIÁVEIS DE CORES E IDENTIDADE --- */
:root {
    --bg-dark: rgba(255, 255, 255, 0.03);
    --bg-card: rgba(255, 255, 255, 0.03);
    --bg-card-solid: rgba(255, 255, 255, 0.03);
    --gold-primary: #4cf9ff;
    --gold-hover: #00d2db;
    --gold-border: #00d2db;
    --cyan-glow: rgba(0, 188, 212, 0.2);
    --orange-accent:#00d2db;
    --text-primary: #ffffff;
    --text-secondary: #ccc;
    --text-cyan-light: #e0f7fa;
}

/* --- RESET BÁSICO --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}



/* ==========================================================================
   ANIMAÇÃO DE ENTRADA AO CARREGAR A PÁGINA
   ========================================================================== */

@keyframes subirSuave {
    from {
        opacity: 0;
        transform: translateY(300px); /* Começa 60px mais abaixo e invisível */
    }
    to {
        opacity: 1;
        transform: translateY(0);    /* Sobe para a posição normal e fica visível */
    }
}

.historia-wrapper {
    position: relative;
    z-index: 10;
    width: 100%;
    padding-top: 50px;
    padding-bottom: 40px;
    display: flex;
    justify-content: center;
    min-height: 100vh;

    /* Aplica a animação assim que a página carrega */
    animation: subirSuave 1s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

/* Estado ativo: Anima até a posição original */
.historia-wrapper.visible {
    opacity: 1;
    transform: translateY(0);
}

.historia-card {
    width: 100%;
    max-width: 1200px;
    margin: 0 5%;
    padding: 60px 80px;
    background-color: var(--bg-card-solid);
    border: 1px solid var(--gold-border);
    border-radius: 8px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.historia-header {
    text-align: center;
    margin-bottom: 40px;
    border-bottom: 1px solid var(--gold-border);
    padding-bottom: 30px;
}

.historia-header h1 {
    font-size: 3.5rem;
    font-weight: 300;
    color: var(--text-primary);
     text-align: center;
}

.historia-header h1 span.highlight {
    color: var(--gold-primary);
}

.historia-texto p {
    color: var(--text-secondary);
    font-size: 1.15rem;
    line-height: 1.4;
    margin-bottom: 20px;
    text-align: left;
}

.historia-texto strong {
    color: var(--gold-primary);
    font-weight: 600;
}

/* ==========================================================================
   CARDS ESTILO NOVO (ABOUT-SECTION COM ANIMAÇÃO E DESFOQUE)
   ========================================================================== */

.about-section {
    
    width: 100%;
    
  
  
    padding: 0px;
  
  
    text-align: center;
    opacity: 0;
   
}

.about-section.visible {
    opacity: 1;
    transform: scale(1) translateY(0);
}

.about-section h3 {
    color: var(--gold-primary);
    margin-top: 10px;
    margin-bottom: 15px;
    font-size: 2.5rem;
    font-weight: 300;
   text-align: left;
     font-family: 'MinhaFonte';
}

.about-section p {
    font-size: 1.1rem;
    line-height: 1.4;
    color: var(--text-cyan-light);
    font-weight: 400;
    letter-spacing: 0.5px;
}











/* ==========================================================================
   IMAGENS & MOLDURA DOURADA (EFEITO POP-UP AO ROLAR)
   ========================================================================== */

.imagem-moldura-dourada {
    border: 1px solid var(--gold-primary);
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
    max-width: 100%;
    height: auto;
    
    /* Estado inicial: Invisível e levemente "encolhida" (efeito pop-up) */
    opacity: 0;
    transform: scale(0.7) translateY(30px);
    
    /* Transição suave para quando a classe .popup-visible for adicionada */
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
                opacity 0.6s ease, 
                box-shadow 0.4s ease, 
                border-color 0.4s ease;
}

/* Estado ativo: Pop-up acionado quando visível na tela */
.imagem-moldura-dourada.popup-visible {
    opacity: 1;
    transform: scale(1) translateY(0);
}

.imagem-moldura-dourada:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 30px rgba(217, 160, 91, 0.4);
    border-color: var(--gold-hover);
}

.img-grade {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ==========================================================================
   SISTEMAS DE GRIDS & GALERIAS
   ========================================================================== */

/* --- GRID DE 3 COLUNAS --- */
.grid-3-cols {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    width: 100%;
    align-items: center;
    gap: 15px;
    margin: 30px 0;
}

.grid-item-3 {
    width: 100%;
    box-sizing: border-box;
}

/* --- GALERIA ASSIMÉTRICA (2x2 VARIADA) --- */
.galeria-assimetrica {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin: 30px 0;
}

.item-poster-esq { grid-column: span 1; }
.item-paisagem-dir { grid-column: span 2; }
.item-paisagem-esq { grid-column: span 2; }
.item-poster-dir { grid-column: span 1; }

/* --- GALERIA DESTAQUE À ESQUERDA (1 GRANDE + 4 MENORES) --- */
.galeria-destaque-esquerda {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 15px;
    margin: 30px 0;
}

.destaque-coluna {
    grid-row: span 2;
}

/* --- GALERIA 1x4 (1 TOPO + 4 EMBAIXO) --- */
.galeria-1x4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 30px 0;
    width: 100%;
}

.galeria-1x4 .destaque-topo {
    grid-column: 1 / -1;
}

/* --- GALERIA GRID 2x2 --- */
.galeria-grid-2x2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 30px 0;
    width: 100%;
}

.galeria-item {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* ==========================================================================
   UTILITÁRIOS E EFETOS ANIMADOS
   ========================================================================== */

.link-animado {
    display: inline-block;
    transition: transform 0.3s ease, color 0.3s ease;
    text-decoration: none;
    color: var(--gold-primary);
}

.link-animado:hover {
    transform: scale(1.1);
    color: var(--gold-hover);
}


/* ==========================================================================
   RESPONSIVIDADE (CELULARES E TABLETS)
   ========================================================================== */

@media (max-width: 768px) {
    .historia-wrapper {
        padding-top: 30px;
        padding-bottom: 50px;
    }

    .historia-card {
        padding: 30px 20px;
        margin: 0 10px;
    }

    .historia-header h1 {
        font-size: 2.3rem;
    }

    .about-section {
        padding: 20px 15px;
    }

    .esconder-no-celular {
        display: none !important;
    }

    .apenas-no-celular {
        display: block;
    }

    /* Grids ajustados para mobile */
    .galeria-1x4 {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .galeria-assimetrica {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .galeria-destaque-esquerda {
        grid-template-columns: 1.5fr 1fr 1fr;
        gap: 8px;
    }

    .galeria-grid-2x2 {
        gap: 10px;
    }
}