/* 1. CONFIGURAÇÕES BASE */
.flamula-lateral {
    position: fixed;
    top: 0; 
    width: 240px; 
    height: 85vh;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    align-items: center;
    transform-origin: top center;
    animation: desenrolarPano 2.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards,
               balancoInfinito 4s ease-in-out infinite alternate 2.5s;
}

.flamula-esquerda { left: 15px; }
.flamula-direita { right: 15px; }

/* 2. O CORPO DA FAIXA (Regras Gerais) */
.flamula-corpo {
    width: 100%;
    height: 100%;
    clip-path: polygon(0% 0%, 100% 0%, 100% 90%, 50% 100%, 0% 90%);
    position: relative;
    z-index: 10;
    box-shadow: 15px 0 30px rgba(0,0,0,0.5);
}

/* 3. CORES ESPECÍFICAS (DEFINIÇÃO DE CORES) */
/* Esquerda: Vermelho/Vinho */
.flamula-esquerda .flamula-corpo {
    background: linear-gradient(180deg, #000428 0%, #004e92 85%, #00f2ff 100%) !important;
}
.flamula-esquerda .franja-item {
    background: linear-gradient(180deg, #ffd700, #b8860b) !important;
}

/* Direita: Azul original */
.flamula-direita .flamula-corpo {
    background: linear-gradient(180deg, #000428 0%, #004e92 85%, #00f2ff 100%) !important;
}
.flamula-direita .franja-item {
    background: linear-gradient(180deg, #ffd700, #b8860b) !important;
}

/* 4. OS FIOS (FRANJAS) - AJUSTE DO BICO */
.franjas-penduradas {
    position: absolute;
    bottom: -40px; /* Ajustado para aparecer só a pontinha igual enfeite */
    width: 100%;
    height: 120px;
    display: flex;
    justify-content: center;
    z-index: 5;
    /* Faz os fios seguirem o bico da faixa certinho */
    clip-path: polygon(0% 0%, 100% 0%, 100% 90%, 50% 100%, 0% 90%);
}

.franja-item {
    flex: 1;
    height: 100%;
    margin: 0 1px;
    border-radius: 0 0 5px 5px;
    animation: balancoFios 3s ease-in-out infinite alternate;
    transform-origin: top;
}

/* 5. CONTEÚDO E ANIMAÇÕES (Mantenha igual) */
.flamula-content { display: flex; flex-direction: column; align-items: center; gap: 25px; padding-top: 20px; font-size: 3rem !important;}
.flamula-content img { width: 150px; height: auto; filter: drop-shadow(0 0 10px rgba(0,242,255,0.5)); }
.flamula-content i { font-size: 3rem !important; color: white; text-shadow: 0 0 15px rgba(255,255,255,0.5); }

@keyframes desenrolarPano {
    0% { transform: perspective(1000px) scaleY(0); opacity: 0; }
    100% { transform: perspective(1000px) scaleY(1); opacity: 1; }
}
@keyframes balancoInfinito {
    from { transform: perspective(1000px) rotateX(0deg) rotateZ(-0.5deg); }
    to { transform: perspective(1000px) rotateX(3deg) rotateZ(0.5deg); }
}
@keyframes balancoFios {
    from { transform: rotate(-5deg); }
    to { transform: rotate(5deg); }
}

.brilho-efeito {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(110deg, transparent 40%, rgba(255,255,255,0.1) 50%, transparent 60%);
    animation: brilhoBandeira 6s infinite linear;
    z-index: 11;
}
@keyframes brilhoBandeira { 0% { transform: translateY(-100%); } 100% { transform: translateY(100%); } }

@media (max-width: 1350px) { .flamula-lateral { display: none !important; } }