/*
Theme Name: STEFEM Tema Oficial
Theme URI: https://stefem.org.br
Author: STEFEM
Description: Tema personalizado para o Sindicato STEFEM
Version: 1.0
*/

/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #fff;
    overflow-x: hidden;
}

/* CABEÇALHO TOPO */
.cabecalho-topo {
    background: #f5f5f5;
    padding: 8px 0;
    border-bottom: 1px solid #ddd;
}

/* HEADER */
.header {
    background: linear-gradient(135deg, #f58634 0%, #e07523 100%);
    padding: 10px 0;
}

/* NAVEGAÇÃO */
.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding: 0 20px;
}

.nav__logo img {
    width: 180px;
    height: auto;
}

.nav__toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.nav__items {
    display: flex;
    list-style: none;
    gap: 20px;
    margin: 0;
    padding: 0;
}

.nav__items li a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 10px 0;
    display: block;
}

.nav__items li a:hover {
    text-decoration: underline;
}

.submenu {
    position: absolute;
    background: white;
    list-style: none;
    padding: 10px 0;
    display: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.nav__item--submenu:hover .submenu {
    display: block;
}

.submenu li a {
    color: #333 !important;
    padding: 8px 20px;
}

.nav__icones p {
    display: flex;
    gap: 15px;
    margin: 0;
}

/* ANIMAÇÃO DO TREM */
.trem-animacao {
    position: relative;
    width: 100%;
    height: 25px;
    overflow: hidden;
    background: transparent;
    margin-top: 10px;
}

@keyframes moverTremLoop {
    0% { transform: translateX(-100px); }
    100% { transform: translateX(100vw); }
}

.trem-animacao img {
    position: absolute;
    height: 25px;
    width: auto;
    animation: moverTremLoop 20s linear infinite;
}

.trem-animacao img:nth-child(2) {
    left: -400px;
    animation-delay: 6.66s;
}

.trem-animacao img:nth-child(3) {
    left: -800px;
    animation-delay: 13.33s;
}

/* BOTÕES */
.btn-whatsapp {
    background: #25D366;
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-ligar {
    background: #f58634;
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* NOTÍCIAS */
.noticias-slider .slide {
    position: relative;
}

.noticias-slider img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    padding: 20px;
}

/* MAIS NOTÍCIAS */
.mais-noticias {
    list-style: none;
    padding: 0;
}

.mais-noticias li {
    border-bottom: 1px solid #eee;
    padding: 15px 0;
}

.mais-noticias li a {
    display: flex;
    gap: 15px;
    text-decoration: none;
    color: #333;
}

.mais-noticias time {
    background: #f58634;
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    text-align: center;
    min-width: 60px;
}

.mais-noticias time b {
    font-size: 20px;
    display: block;
}

/* CONVÊNIOS */
.convenios-lista {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.convenio-item {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.convenio-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border-color: #f58634;
}

.convenio-nome {
    color: #f58634;
    margin-bottom: 15px;
}

.detalhe-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.detalhe-item i {
    color: #f58634;
    width: 25px;
}

.convenio-acoes {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

/* ACORDOS COLETIVOS */
.acordos-lista {
    display: grid;
    gap: 20px;
    margin-top: 30px;
}

.acordo-item {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.acordo-item h3 {
    color: #f58634;
    margin-bottom: 5px;
}

.btn-download {
    background: #f58634;
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
}

/* FOOTER */
.footer {
    background: #2c3e50;
    color: white;
    padding: 40px 0 0;
    margin-top: 50px;
}

.footer a {
    color: white;
    text-decoration: none;
}

.footer__copy {
    background: #1a252f;
    padding: 15px 0;
    margin-top: 30px;
}

/* RESPONSIVO */
@media (max-width: 768px) {
    .nav__toggle {
        display: block;
    }
    
    .nav__items {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: #f58634;
        flex-direction: column;
        padding: 60px 20px;
        z-index: 1000;
    }
    
    .nav__items.active {
        display: flex;
    }
    
    .convenios-lista {
        grid-template-columns: 1fr;
    }
    
    .acordo-item {
        flex-direction: column;
        text-align: center;
    }
}