/* =======================
   VARIÁVEIS E RESET
   ======================= */
:root {
    --primary-color: #0047a0;
    --color-headers: #075007;
    --secondary-color: #2e7d32;
    --accent-color: #8bc34a;
    --text-color: #000000;
    --pattern-color: rgba(255,255,255,0.07);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* =======================
   BASE
   ======================= */
body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: #fff;
    color: var(--text-color);
    position: relative;
    width: 100%;
    overflow-x: hidden;
}

/* =======================
   HEADER & FOOTER - CORREÇÕES
   ======================= */
header {
    background: #0048a0;
    color: #fff;
    padding: 1.5rem 0.5rem 2rem;
    text-align: center;
    overflow: hidden;
    position: relative;
    width: 100%;
}

footer {
    background: var(--primary-color);
    color: #fff;
    padding: 1.5rem;
    margin-top: auto;
    backdrop-filter: blur(5px);
    border-top: 1px solid rgba(255,255,255,0.1);
    position: relative;
    width: 100%;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
    position: relative;
}

.external-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.external-links a {
    color: #fff;
    text-decoration: none;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.9rem;
}

.external-links a:hover {
    color: var(--accent-color);
}

/* =======================
   LOGOS
   ======================= */
.logos-container,
.header-logos,
.footer-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    row-gap: 1.2rem;
    flex-wrap: wrap;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto 1.5rem;
}

.logo-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.logo-item img,
.header-logos img,
.footer-logos img {
    height: 50px;
    width: auto;
    object-fit: contain;
    display: block;
}

.logo-mono { filter: brightness(0) invert(1); }
.logo-placeholder {
    width: 140px; height: 60px; background: rgba(255,255,255,0.1);
    border: 2px dashed rgba(255,255,255,0.3);
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,0.5); font-size: 0.7rem; border-radius: 6px;
}
.logo-nicbr { height: 50px; width: auto; object-fit: contain; mix-blend-mode: lighten; }
.logo-trael { max-height: 48000px; max-width: 1000px; }
.logo-ufmt, .logo-estatistica, .logo-nic { height: 120px; }
.logo-ufmt { filter: brightness(0) invert(1); }
.logo-estatistica { filter: brightness(0) invert(1); }
.logo-ufmt-niver { height: 80px; width: auto; object-fit: contain; filter: brightness(1); }

footer .logos-container { gap: 2rem; row-gap: 1.5rem; }
footer .logo-ufmt, footer .logo-estatistica, footer .logo-nic { height: 80px; }

/* =======================
   TIPOGRAFIA
   ======================= */
h1 {
    font-family: 'Inter', 'Roboto Flex', 'Segoe UI', Arial, sans-serif;
    font-weight: 900;
    font-size: 2.8rem;
    text-align: center;
    margin-bottom: 1.2rem;
    line-height: 1.2;
    letter-spacing: 3px;
    text-shadow: 2px 4px 12px rgba(255,255,255,0.15), 0 1px 0 #fff;
    background: linear-gradient(90deg, #1a4b8c 30%, #2e7d32 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h2 {
    font-family: 'Inter', 'Roboto Flex', 'Segoe UI', Arial, sans-serif;
    color: #1a4b8c;
    font-weight: 700;
    font-size: 1.8rem;
    margin-bottom: 1.2rem;
    position: relative;
    display: inline-block;
    letter-spacing: 1px;
}
h2::after {
    content: '';
    position: absolute;
    bottom: -6px; left: 0;
    width: 50px; height: 3px;
    background: #1a4b8c; border-radius: 2px;
}
h3, h4 {
    font-family: 'Inter', 'Roboto Flex', 'Segoe UI', Arial, sans-serif;
    color: #1a4b8c;
}
h3 {
    font-weight: 500;
    font-size: 1.4rem;
    margin-bottom: 1.2rem;
    text-align: center;
    letter-spacing: 1px;
}
h4 {
    font-weight: 400;
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    letter-spacing: 0.5px;
}
h5 { color: #fff; font-weight: 400; font-size: 0.9rem; text-align: center; margin-bottom: 0.8rem; }
p { margin-bottom: 1.2rem; }
.lead { font-size: 1.1rem; font-weight: 300; margin-bottom: 0; opacity: 0.9; }

/* =======================
   SEÇÕES E CARDS
   ======================= */
main.main-container { 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 1rem; 
    flex: 1; 
    background: transparent; 
    width: 100%;
}
.content-section {
    padding: 1.5rem;
    background: rgba(26, 75, 140, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.06);
    border: 1px solid rgba(26,75,140,0.08);
    margin-bottom: 1.5rem;
    transition: transform 0.3s, box-shadow 0.3s;
    color: var(--text-color);
}
.content-section:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(0,0,0,0.10); }

.sidebar { padding-right: 0; margin-bottom: 1.5rem; }
.btn-sidebar {
    width: 100%; margin-bottom: 0.8rem; text-align: left; padding: 0.6rem 1rem;
    border-radius: 6px; transition: all 0.3s; font-weight: 500; border: none;
    background: rgba(26,75,140,0.08); color: #000;
    font-size: 0.9rem;
}
.btn-sidebar:hover { background: rgba(26,75,140,0.25); transform: translateX(3px); color: #000; }
.btn-sidebar.active { background: #1a4b8c; color: #fff; font-weight: 600; }

/* =======================
   TABELAS E PROGRAMAÇÃO
   ======================= */
.modern-table,
.programacao-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-family: 'Poppins', sans-serif;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    font-size: 0.9rem;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInTable 0.8s cubic-bezier(.4,1.7,.6,.97) forwards;
}
@keyframes fadeInTable {
    to { opacity: 1; transform: translateY(0);}
}
.modern-table th,
.programacao-table th {
    background: #0047a0;
    color: #fff;
    padding: 16px 12px;
    text-align: left;
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    position: relative;
    transition: background 0.3s;
}
.modern-table td,
.programacao-table td {
    padding: 16px 12px;
    border-bottom: 1px solid rgba(0,71,160,0.10);
    vertical-align: top;
    color: #333;
    font-size: 0.9rem;
    line-height: 1.4;
    transition: background 0.3s;
}
.modern-table tr:last-child td,
.programacao-table tr:last-child td { border-bottom: none; }
.modern-table tr,
.programacao-table tr { transition: background 0.3s; }
.modern-table tr:hover,
.programacao-table tr:hover {
    background-color: rgba(0,71,160,0.12);
    transition: background 0.2s;
}
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,71,160,0.10);
    animation: fadeInTable 0.8s cubic-bezier(.4,1.7,.6,.97) forwards;
}

/* Destaque para linhas de dia */
.programacao-table tr.dia-row,
.modern-table tr.dia-row {
    background: linear-gradient(90deg, #e8f5e9 0%, #c8e6c9 100%);
    animation: fadeInDia 0.7s cubic-bezier(.4,1.7,.6,.97) forwards;
    opacity: 0;
}
@keyframes fadeInDia { to { opacity: 1; } }
.programacao-table tr.dia-row th,
.modern-table tr.dia-row th {
    color: #2e7d32;
    background: #e8f5e9;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 1px;
    border-bottom: 2px solid #8bc34a;
}

/* =======================
   CARDS DE PROGRAMAÇÃO (Mobile)
   ======================= */
.programacao-cards {
    display: none;
    animation: fadeInTable 0.8s cubic-bezier(.4,1.7,.6,.97) forwards;
}
.programacao-cards .atividade-card {
    margin-bottom: 1rem;
    border-radius: 8px;
    background: #f8f9fa;
    padding: 1rem;
    box-shadow: 0 1px 4px rgba(0,71,160,0.04);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInCard 0.7s cubic-bezier(.4,1.7,.6,.97) forwards;
}
@keyframes fadeInCard {
    to { opacity: 1; transform: translateY(0);}
}
.programacao-cards .dia-card {
    color: #2e7d32;
    background: #e8f5e9;
    border-left: 4px solid #8bc34a;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    margin-bottom: 0.7rem;
    font-size: 1.1rem;
    font-weight: 700;
    animation: fadeInDia 0.7s cubic-bezier(.4,1.7,.6,.97) forwards;
    opacity: 0;
}

/* =======================
   DESTAQUES DE PALESTRANTES E DIAS
   ======================= */
.palestrante,
.palestrante-nome,
.programacao-cards .palestrante,
.programacao-cards .palestrante-nome {
    color: #bc1888;
    font-weight: 700;
    background: linear-gradient(90deg, #0825cb 0%, #29c407 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.dia-semana,
.dia-programacao {
    color: #2e7d32;
    font-weight: 700;
    background: linear-gradient(90deg, #2e7d32 0%, #0a1fa3 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* =======================
   OUTROS CARDS
   ======================= */
.event-card {
    background: rgba(26,75,140,0.05);
    border-radius: 10px;
    padding: 1.2rem;
    margin-bottom: 1.2rem;
    border-left: 3px solid var(--accent-color);
    transition: all 0.3s;
    color: #000;
}
.event-card:hover { background: rgba(26,75,140,0.10); transform: translateY(-2px);}
.event-time { font-weight: 600; color: #1a4b8c; margin-bottom: 0.4rem; display: flex; align-items: center; gap: 0.4rem; font-size: 0.9rem;}
.event-title { font-weight: 600; font-size: 1rem; margin-bottom: 0.4rem;}
.event-speaker { font-style: italic; opacity: 0.9; margin-bottom: 0.4rem; font-size: 0.9rem;}

/* =======================
   TEXTO E LINKS
   ======================= */
.texto-branco { color: #000; text-align: justify; font-weight: 300; font-size: 0.95rem;}
.texto-branco-1 { color: #000; text-align: justify; font-weight: 600; font-size: 0.95rem;}
.texto-branco-2 { color: #081c67; text-align: justify; font-weight: 600; font-size: 0.95rem; font-family: 'Cormorant Garamond', serif;}
.texto-verde { color: #09720b; text-align: justify; font-weight: 300; font-size: 0.95rem; font-family: 'Nunito', sans-serif;}
.link-rodape { color: #0066ff; text-decoration: none; font-weight: 500; transition: all 0.3s; display: inline-block; margin-top: 0.8rem; font-size: 0.9rem;}
.link-rodape:hover { color: #1a4b8c; transform: translateX(3px);}

/* =======================
   BADGES E LEGENDA
   ======================= */
.badge-event {
    background-color: rgba(26,75,140,0.15); color: #1a4b8c; font-weight: 600;
    padding: 0.25rem 0.6rem; border-radius: 40px; font-size: 0.7rem; margin-left: 0.4rem; vertical-align: middle;
}
.highlight-box {
    background: rgba(26,75,140,0.06); border-radius: 8px; padding: 1.2rem; margin: 1.2rem 0; border-left: 3px solid #1a4b8c; color: #000;
    font-size: 0.9rem;
}
.confirmation-field {
    background: rgba(26,75,140,0.06); border: 2px dashed rgba(26,75,140,0.25);
    padding: 0.8rem; border-radius: 6px; margin-bottom: 0.8rem; text-align: center; color: #000;
    font-size: 0.9rem;
}
.confirmation-field strong { display: block; margin-bottom: 0.4rem; color: #1a4b8c; }

.legenda-programacao {
    background: rgba(26,75,140,0.03);
    border-radius: 10px;
    padding: 1.5rem;
    border: 1px solid rgba(26,75,140,0.1);
}
.legenda-programacao h5 { color: #1a4b8c; margin-bottom: 1rem; font-size: 1.1rem;}
.legenda-item { display: flex; align-items: center; margin-bottom: 0.8rem; gap: 0.8rem;}
.legenda-texto { color: #666; font-size: 0.9rem;}
.legenda-status { border-top: 1px solid rgba(26,75,140,0.1); padding-top: 1rem;}

/* =======================
   CONTATO E COMISSÃO
   ======================= */
.contact-info-card {
    background: #fff;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    border: 1px solid rgba(26,75,140,0.1);
    height: 100%;
}
.contact-header { text-align: center; margin-bottom: 2rem;}
.contact-header h4 { color: #1a4b8c; margin-bottom: 0.5rem;}
.contact-description { color: #666; font-size: 0.95rem; margin-bottom: 0;}
.contact-details { margin-bottom: 2rem;}
.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(26,75,140,0.03);
    border-radius: 10px;
    transition: all 0.3s;
}
.contact-item:hover { background: rgba(26,75,140,0.08); transform: translateX(5px);}
.contact-icon {
    background: #1a4b8c;
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
}
.contact-content h6 { color: #1a4b8c; margin-bottom: 0.3rem; font-weight: 600;}
.contact-content p { color: #666; margin-bottom: 0; font-size: 0.9rem; line-height: 1.4;}
.contact-link { color: #1a4b8c; text-decoration: none; font-weight: 500; transition: all 0.3s;}
.contact-link:hover { color: #2e7d32; text-decoration: underline;}
.social-media-section { text-align: center; padding-top: 1.5rem; border-top: 1px solid rgba(26,75,140,0.1);}
.social-media-section h6 { color: #1a4b8c; margin-bottom: 1rem;}
.social-links { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap;}
.social-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    border-radius: 10px;
    text-decoration: none;
    color: #fff;
    transition: all 0.3s;
    min-width: 80px;
}
.social-link:hover { transform: translateY(-3px); text-decoration: none; color: #fff;}
.social-link.instagram { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);}
.social-link i { font-size: 1.5rem; margin-bottom: 0.5rem;}
.social-link span { font-size: 0.8rem; font-weight: 500;}
.committee-list { list-style: none; padding: 0;}
.committee-list li {
    padding: 0.8rem 1rem;
    margin-bottom: 0.5rem;
    background: rgba(26,75,140,0.05);
    border-radius: 8px;
    transition: all 0.3s;
}
.committee-list li:hover { background: rgba(26,75,140,0.1); transform: translateX(5px);}
.committee-list .coordinator {
    background: rgba(46,125,50,0.08);
    font-weight: 600;
    border-left: 3px solid #2e7d32;
}
.committee-list .developer {
    background: rgba(156,39,176,0.08);
    border-left: 3px solid #9c27b0;
}

/* =======================
   ANIMAÇÕES
   ======================= */
@keyframes fadeIn { from { opacity: 0; transform: translateY(20px);} to { opacity: 1; transform: translateY(0);} }
.animate-in { animation: fadeIn 0.6s ease-out forwards; }
.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }

/* =======================
   PALESTRANTES (SPEAKER CARDS) - CORRIGIDO
   ======================= */
.speaker-list { 
    margin-top: 2rem; 
}

.speaker-photo {
    width: 120px; 
    height: 120px; 
    border-radius: 50%; 
    object-fit: cover;
    margin-bottom: 1rem; 
    border: 4px solid rgba(46,125,50,0.2);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.speaker-card {
    background: #fff; 
    border-radius: 12px; 
    padding: 1.5rem; 
    margin-bottom: 1.5rem;
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    text-align: center;
    box-shadow: 0 6px 20px rgba(0,0,0,0.07);
    border: 1px solid rgba(46,125,50,0.15);
    transition: transform 0.3s, box-shadow 0.3s;
}

.speaker-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(46,125,50,0.15);
}

.speaker-name {
    font-family: 'Orbitron', monospace;
    color: var(--color-headers);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.speaker-talk-title {
    font-family: 'Poppins', sans-serif;
    font-style: italic;
    font-weight: 500;
    color: #555;
    font-size: 1.1rem;
    margin-top: 1rem;
    margin-bottom: 0.75rem;
}

.speaker-bio {
    color: var(--secondary-color);
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    margin-top: 0.5rem;
    background-color: rgba(46,125,50,0.05);
    padding: 1rem;
    border-radius: 8px;
    width: 100%;
    text-align: left;
}

/* =======================
   RESPONSIVIDADE - CORRIGIDA
   ======================= */
@media (max-width: 1200px) {
    footer .logos-container { gap: 1.5rem; row-gap: 1.2rem; }
    footer .logo-ufmt, footer .logo-estatistica, footer .logo-nic { height: 75px; }
}

@media (max-width: 992px) {
    header .logos-container { gap: 3rem; row-gap: 1.5rem; }
    header .logo-ufmt, header .logo-estatistica, header .logo-ufmt-niver { height: 70px; }
    footer .logos-container { gap: 1.2rem; row-gap: 1rem; }
    footer .logo-ufmt, footer .logo-estatistica, footer .logo-nic { height: 70px; }
    .logos-container { flex-direction: column; gap: 1.5rem; }
    .logo-ufmt, .logo-estatistica, .logo-nic { height: 110px; }
}

@media (max-width: 768px) {
    h1 { font-size: 1.8rem; letter-spacing: 1px; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.3rem; }
    h4 { font-size: 1.1rem; }
    .lead { font-size: 1rem; }
    .content-section { padding: 1.2rem; margin-bottom: 1.2rem; border-radius: 10px; }
    .header-logos, .footer-logos { flex-direction: column; gap: 0.8rem; }
    .header-logos img, .footer-logos img { height: 50px; }
    .sidebar { padding-right: 0; margin-bottom: 1.5rem; }
    .btn-sidebar { padding: 0.7rem 1rem; font-size: 0.9rem; }
    .texto-branco { font-size: 0.9rem; }
    .main-container { padding: 0.8rem; width: 100%; }
    .row { margin-left: -0.5rem; margin-right: -0.5rem; }
    .col-lg-3, .col-lg-9, .col-md-6 { padding-left: 0.5rem; padding-right: 0.5rem; }
    .programacao-table { display: none; }
    .programacao-cards { display: block; }
    .logos-container { flex-direction: column; gap: 1.2rem; }
    .logo-ufmt, .logo-estatistica, .logo-nic { height: 100px; }
    .btn { padding: 0.5rem 1rem; font-size: 0.9rem; }
    
    /* Correções para header e footer no mobile */
    header, footer {
        width: 100vw;
        position: relative;
        left: 50%;
        right: 50%;
        margin-left: -50vw;
        margin-right: -50vw;
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

@media (max-width: 480px) {
    h1 { font-size: 1.6rem; }
    h2 { font-size: 1.3rem; }
    .content-section { padding: 1rem; }
    .logo-ufmt, .logo-estatistica, .logo-nic { height: 80px; }
    .external-links { flex-direction: column; gap: 0.5rem; }
    .social-links { justify-content: center; }
    .header-logos img { height: 45px; }
    .footer-logos img { height: 40px; }
    .badge-event { display: block; margin: 0.5rem 0 0 0; width: fit-content; }
    .atividade-card { padding: 0.8rem; }
    .legenda-programacao { padding: 1rem; }
    .legenda-item { flex-direction: column; align-items: flex-start; gap: 0.4rem; }
    header .logos-container { gap: 1.5rem; row-gap: 0.8rem; }
    header .logo-ufmt, header .logo-estatistica, header .logo-ufmt-niver { height: 50px; }
    footer .logos-container { gap: 0.8rem; row-gap: 0.6rem; }
    footer .logo-ufmt, footer .logo-estatistica, footer .logo-nic { height: 50px; }
    
    /* Correções extras para mobile pequeno */
    header, footer {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
}

@media (min-width: 769px) {
    .programacao-table { display: table; }
    .programacao-cards { display: none; }
}
