/* style.css */
:root {
    --cor-primaria: #019590;
    --cor-secundaria: #1cb6b1;
    --cor-terciaria: #038181;
    --cor-destaque: #fc9f0b;
    --cor-texto: #333;
    --cor-branco: #ffffff;
    --animacao-entrada: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Arial, sans-serif;
    overflow-x: hidden;
    background-color: var(--cor-secundaria);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Animações */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s var(--animacao-entrada), transform 0.6s var(--animacao-entrada);
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Estrutura Principal */
#primeira-parte {
    padding-top: 100px;
    flex: 1;
    padding-bottom: 40px;
}

.navbar-caasp {
    background-color: transparent !important;
    padding: 12px 0;
    height: 80px;
    display: flex;
    align-items: center;
    transition: background-color 0.3s ease;
    animation: slideDown 0.5s ease-out;
}

@keyframes slideDown {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}

.navbar-caasp.scrolled {
    background-color: rgba(6, 161, 161, 0.603) !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar-caasp ul {
    display: flex;
    justify-content: center;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

.navbar-caasp li {
    margin: 0 10px;
}

.nav-item a {
    color: black;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    text-transform: uppercase;
    transition: color 0.3s;
}

.logo-img img {
    max-height: 70px;
    height: auto;
    width: auto;
    margin-right: 20px;
}

.navbar-caasp a:hover {
    color: #09e7e0 !important;
}

.nav-item {
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    position: relative;
    text-decoration: none;
    color: #333;
    padding-bottom: 4px;
    padding: 10px;
    transition: color 0.3s ease;
}

/*====================================== Linha animada ======================================*/
.nav-item::after {
    content: "";
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background-color: #6bfaf5;
    transition: width 0.3s ease, right 0.3s ease;
}

.nav-item:hover::after {
    width: 100%;
    right: auto;
    left: 0;
}

.nav-item.ativo::after {
    width: 100%;
    right: 0;
}

#dynamicNavbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1030;
}

/*====================================== Offcanvas Menu Lateral ======================================*/
.offcanvas {
    background-color: rgba(6, 161, 161, 0.98) !important;
    color: white;
    width: 280px !important;
}

.offcanvas-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.offcanvas-title {
    color: #FFC874;
    font-weight: bold;
}

.btn-close {
    filter: invert(1);
}

/*====================================== Itens do menu lateral ======================================*/
.offcanvas-body .navbar-nav {
    flex-direction: column !important;
    padding: 0 15px;
}

.offcanvas-body .nav-item {
    margin: 8px 0;
    width: 100%;
    text-align: left;
    padding: 10px 15px;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.offcanvas-body .nav-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.offcanvas-body .nav-item a {
    color: white !important;
    font-size: 1rem;
    display: block;
}

.offcanvas-body #adesão {
    background-color: var(--cor-destaque);
    color: white !important;
    border-radius: 5px;
    padding: 10px;
    text-align: center;
    margin-top: 20px !important;
}

/*====================================== Botão do menu hamburguer personalizado ======================================*/
.navbar-toggler {
    border: none;
    padding: 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Logo mobile */
.logo-img-mobile {
    max-height: 50px;
    margin-right: 15px;
}

#adesão {
    background-color: var(--cor-destaque);
    color: white !important;
    border-radius: 5px;
    padding: 10px;
    text-align: center;
    margin-top: 20px !important;
}

/*====================================== Conteúdo Notícias ======================================*/
.noticias-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.news-item {
    display: flex;
    align-items: center;
    margin-bottom: 80px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    transition: transform 0.3s ease;
}

.news-item:hover {
    transform: translateY(-5px);
}

.news-content {
    flex: 1;
    padding: 30px;
}

.news-image-container {
    flex: 1;
    min-height: 300px;
    position: relative;
    overflow: hidden;
}

.news-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-item:hover .news-image {
    transform: scale(1.05);
}

.news-card {
    background: linear-gradient(135deg, var(--cor-destaque), #f8b145);
    border-radius: 10px;
    padding: 25px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.news-card-right {
    background: linear-gradient(135deg, var(--cor-terciaria), #039a99);
}

.card-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: white;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.2);
}

.card-text {
    font-size: 1.1rem;
    line-height: 1.6;
    color: rgba(255,255,255,0.9);
    margin-bottom: 20px;
}


/*====================================== Footer ====================================== */
.footer-caasp {
    background-color: #3E342B;
    color: var(--cor-branco);
    padding: 30px 0 20px;
    margin-top: auto;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-info h5 {
    color: #FFC874;
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.footer-info p {
    margin: 5px 0;
    font-size: 0.95rem;
}

.social-links a {
    display: inline-block;
    margin-left: 15px;
    transition: transform 0.3s ease;
}

.social-links a:hover {
    transform: scale(1.1);
}

#logos {
    height: 40px;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    margin-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.9rem;
}

/* Responsividade */
@media (max-width: 991.98px) {
    .news-item {
        flex-direction: column;
        margin-bottom: 50px;
    }
    
    .news-image-container {
        min-height: 250px;
        width: 100%;
    }
    
    .news-content {
        padding: 25px;
    }
    
    .card-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 767.98px) {
    #primeira-parte {
        padding-top: 80px;
    }
    
    .nav-item a {
        font-size: 1rem;
    }
    
    .news-item {
        margin-bottom: 40px;
    }
    
    .news-content {
        padding: 20px;
    }
    
    .card-text {
        font-size: 1rem;
    }
}

@media (max-width: 575.98px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .social-links {
        margin-top: 20px;
    }
    
    .social-links a {
        margin: 0 8px;
    }
    
    .logo-img img {
        height: 60px;
    }
}