/* Reset e Configurações Globais */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Variáveis CSS para Paleta de Cores */
:root {
    --primary-color: #395278; /* Azul escuro sóbrio - cor predominante */
    --primary-light: #4a6288; /* Variação mais clara do azul escuro */
    --background-light: #ffffff; /* Branco puro */
    --background-gray: #395278; /* Azul escuro para seções que eram cinza */
    --text-dark: #2c3e50; /* Azul acinzentado escuro */
    --text-light: #ffffff; /* Branco para fundos escuros */
    --text-gray: #cccccc; /* Cinza claro para texto secundário */
    --accent-color: #722f37; /* Bordô/vinho como cor de destaque */
    --shadow: rgba(57, 82, 120, 0.1);
    --shadow-hover: rgba(57, 82, 120, 0.2);
}

body {
    font-family: 'Lato', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Cabeçalho e Navegação */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--primary-color);
    z-index: 1000;
    padding: 1.2rem 0;
    transition: all 0.3s ease;
}

/* Search Box */
.search-box {
    background: var(--primary-color);
    border-bottom: 2px solid var(--primarycolor);
    position: fixed;
    top: -100px;
    left: 0;
    width: 100%;
    z-index: 999;
    padding: 20px 0;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.4s ease-out;
}

.search-box.active {
    top: 80px;
    opacity: 1;
    transform: translateY(0);
}

.search-content {
    display: flex;
    align-items: center;
    gap: 15px;
    max-width: 600px;
    margin: 0 auto;
}

.search-input {
    flex: 1;
    padding: 12px 20px;
    border: 2px solid var(--primary-color);
    border-radius: 25px;
    background: transparent;
    color: var(--text-light);
    font-size: 1rem;
    outline: none;
}

.search-input::placeholder {
    color: var(--text-gray);
}

.search-input:focus {
    border-color: var(--text-light);
    box-shadow: 0 0 10px rgba(114, 47, 55, 0.3);
}

.search-btn, .close-search {
    background: var(--primary-color);
    border: none;
    color: var(--text-light);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.search-btn:hover, .close-search:hover {
    background: var(--text-light);
    color: var(--primary-color);
    transform: scale(1.1);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo-img {
    height: 60px;
    width: auto;
    transition: all 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.05);
}

.logo h2 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: var(--text-light);
    font-size: 1.8rem;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 400;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--text-light);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a:hover {
    color: var(--accent-color);
}

/* Seção Herói */
.hero {
    height: 100vh;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-light);
}

.hero-content {
    animation: fadeInUp 1s ease-out;
}

.hero-logo {
    height: 120px;
    width: auto;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease-out 0.1s both;
}

.hero-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    font-weight: 300;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.hero-btn {
    background: transparent;
    border: 2px solid var(--text-light);
    color: var(--text-light);
    padding: 1rem 2rem;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.hero-btn:hover {
    background: var(--text-light);
    color: var(--primary-color);
    border-color: var(--text-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(57, 82, 120, 0.2);
}

/* Seção Sobre Nós */
.about {
    padding-top: 0.5rem;
    padding-bottom: 5rem;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    align-items: center;
}

.about-visual {
    position: relative;
}

.color-block {
    width: 100%;
    height: 400px;
    background: #395278;
    border-radius: 8px;
    transform: translateX(-100px);
    opacity: 0;
    transition: all 1s ease-out;
}

.watermark-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: auto;
    opacity: 0.1;
    z-index: 1;
}

.about-text {
    transform: translateY(50px);
    opacity: 0;
    transition: all 1s ease-out;
}

.about.animate .color-block {
    transform: translateX(0);
    opacity: 1;
}

.about.animate .about-text {
    transform: translateY(0);
    opacity: 1;
}

.about-text h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: #395278;
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Seção Áreas de Atuação */
.services {
    padding: 5rem 0;
    background: var(--primary-color);
}

.services .section-title {
    color: #ffffff;
    font-size: 2.8rem;
    margin-bottom: 4rem;
    position: relative;
}

.section-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid #395278;
    padding: 2.5rem 2rem;
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease;
    color: var(--text-light);
    width: 100%;
    margin: 0;
}

.service-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.15);
    border-color: #395278;
    box-shadow: 0 12px 24px rgba(26, 35, 50, 0.3);
    transition: all 0.3s ease;
}

.service-card.featured:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.15);
    border-color: #395278;
    box-shadow: 0 12px 24px rgba(26, 35, 50, 0.3);
}

.service-card.featured {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid #395278;
    color: var(--text-light);
    position: relative;
    overflow: hidden;
}

.service-card.featured::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
    transform: rotate(45deg);
    transition: all 0.6s ease;
    opacity: 0;
}

.service-card.featured:hover::before {
    animation: shimmer 1.5s ease-in-out;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
        opacity: 0;
    }
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: #ffffff;
}

.service-card.featured .service-icon {
    color: #ffffff;
}

.service-card h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #ffffff;
}

.service-card.featured h3 {
    color: #ffffff;
}

.service-card p {
    margin-bottom: 2rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
}

.service-card.featured p {
    color: rgba(255, 255, 255, 0.85);
}

.service-btn {
    background: var(--primary-color);
    color: var(--text-light);
    border: 2px solid var(--primary-color);
    padding: 0.8rem 1.5rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
}

.service-btn:hover {
    background: var(--text-light);
    color: var(--primary-color);
    border-color: var(--text-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(57, 82, 120, 0.2);
}

.service-card.featured .service-btn {
    background: var(--primary-color);
    color: var(--text-light);
    border-color: var(--primary-color);
}

.service-card.featured .service-btn:hover {
    background: var(--text-light);
    color: var(--primary-color);
    border-color: var(--text-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(57, 82, 120, 0.2);
}

.service-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(26, 35, 50, 0.2);
}

/* Seção Equipe */
.team {
    padding: 5rem 0;
    background: var(--background-light);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin: 0 auto;
    max-width: 1200px;
}

.team-member {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 8px;
    border: 2px solid #f0f0f0;
    box-shadow: 0 5px 15px rgba(26, 35, 50, 0.1);
    text-align: center;
    width: 100%;
    height: 420px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    flex: 0 0 calc(33.333% - 1rem);
    margin: 0 0.5rem;
    box-sizing: border-box;
}

.team-member:hover {
    transform: translateY(-8px);
    border-color: #395278;
    box-shadow: 0 12px 24px rgba(26, 35, 50, 0.15);
}

.member-avatar {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid #395278;
    background: #395278;
}
.avatar-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

.initials {
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-light);
}

.team-member h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #395278;
}

.team-member p {
    color: var(--text-dark);
    font-style: italic;
    max-width: 100%;
    overflow-wrap: break-word;
    word-wrap: break-word;
    hyphens: auto;
}

.team-member p:nth-of-type(2) {
    margin-top: 0.5rem;
    font-style: normal;
    font-size: 0.9rem;
    line-height: 1.5;
    height: 120px;
    overflow-y: auto;
    padding-right: 5px;
}

.team-member p:nth-of-type(2)::-webkit-scrollbar {
    width: 4px;
}

.team-member p:nth-of-type(2)::-webkit-scrollbar-thumb {
    background-color: rgba(57, 82, 120, 0.3);
    border-radius: 4px;
}

.team-member p:nth-of-type(2)::-webkit-scrollbar-track {
    background-color: rgba(0, 0, 0, 0.05);
    border-radius: 4px;
}

.member-social {
    margin-top: auto;
    padding-top: 1rem;
    justify-content: center;
}

.member-social a {
    width: 35px;
    height: 35px;
    background: #395278;
    color: var(--text-light);
    font-size: 1.1rem;
}

.member-social a:hover {
    background: var(--primary-light);
    color: var(--text-light);
}

/* Estilos do carrossel */
.team-carousel {
    display: flex;
    transition: transform 0.8s ease;
    width: 100%;
    will-change: transform;
}

.carousel-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.carousel-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    border: 2px solid #395278;
    color: #395278;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.carousel-btn:hover {
    background: #395278;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Seção Notícias */
.news {
    padding: 5rem 0;
    background: var(--primary-color);
    color: var(--text-light);
}

.news .section-title {
    color: var(--text-light);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.news-card {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid #395278;
    padding: 2rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.news-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.15);
    border-color: #395278;
    box-shadow: 0 12px 24px rgba(26, 35, 50, 0.3);
    transition: all 0.3s ease;
}

.news-card h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.news-date {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 1rem;
    font-style: italic;
}

.news-card p:last-child {
    line-height: 1.6;
}

/* Divider line between news and footer */
.footer-divider {
    width: 100%;
    height: 4px;
    background: transparent;
    margin: 0;
    border: none;
    border-top: 2px solid #395278;
    border-bottom: 2px solid rgba(255, 255, 255, 0.8);
}

/* Rodapé */
.footer {
    background: var(--primary-color);
    color: var(--text-light);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.8rem;
}

.footer-section a {
    color: var(--text-gray);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-section a:hover {
    color: var(--text-light);
}

.footer-section p {
    margin-bottom: 0.8rem;
    color: var(--text-gray);
}

.contact-btn {
    background: var(--primary-color);
    color: var(--text-light);
    border: 2px solid var(--primary-color);
    padding: 1rem 2rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    margin-top: 1rem;
}

.contact-btn:hover {
    background: var(--text-light);
    color: var(--primary-color);
    border-color: var(--text-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(57, 82, 120, 0.2);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    min-width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    padding: 0 1rem;
    gap: 0.5rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1rem;
}

.social-links a i {
    color: #fff;
    background: none;
    border-radius: 0;
    transition: color 0.3s, background 0.3s, border 0.3s;
    border: none;
}
.social-links a:hover i {
    color: #0072b1;
    background: none;
    border: none;
}
body.white-footer .social-links a i {
    color: #0072b1;
    background: none;
    border: none;
}
body.white-footer .social-links a:hover i {
    color: #fff;
    background: none;
    border: none;
}

.social-links a span {
    margin-left: 0.3rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-color);
}

.social-links a:hover {
    background: var(--text-light);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-gray);
}

/* Animações */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsividade */
@media (max-width: 1200px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .team-member {
        max-width: 600px;
        margin: 0 auto;
    }
    
    /* Carrossel removido */
    
    .search-content {
        max-width: 500px;
        padding: 0 20px;
    }
}

@media (max-width: 768px) {
    .nav {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-links {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .team-member {
        flex: 0 0 calc(50% - 1rem);
        height: auto;
        min-height: 420px;
    }
    
    .logo-img {
        height: 50px;
    }
    
    .header {
        padding: 1rem 0;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .color-block {
        height: 250px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    /* Carrossel removido */
    
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .search-content {
        max-width: 100%;
        padding: 0 15px;
        gap: 10px;
    }
    
    .search-input {
        font-size: 0.9rem;
        padding: 10px 15px;
    }
    
    .search-btn, .close-search {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .logo-img {
        height: 40px;
    }
    
    .header {
        padding: 0.8rem 0;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .team-member {
        padding: 1rem;
        flex: 0 0 100%;
    }
    
    .team-grid {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 1rem;
    }
    
    .hero-content {
        padding: 2rem 1rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .team-member {
        flex: 0 0 calc(100% - 1rem);
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .container {
        padding: 0 15px;
    }
}
.social-links a:hover span {
  color: #0072b1 !important;
}