:root {
    --primary-red: #e11d48;
    --primary-red-hover: #be123c;
    --dark-bg: #111827;
    --light-bg: #f9fafb;
    --medium-gray: #f3f4f6;
    --dark-gray: #1f2937;
    --light-text: #111827;
    --dark-text: #f9fafb;
    --gray-text: #6b7280;
    --border-color: #e5e7eb;
    --dark-border: #374151;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--light-bg);
    color: var(--light-text);
    overflow-x: hidden;
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.company-card {
    transition: all 0.3s ease;
    background-color: white;
    border: 1px solid var(--border-color);
    cursor: pointer;
}

.company-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    border-color: transparent;
}

.team-card {
    transition: all 0.3s ease;
    background-color: white;
    border: 1px solid var(--border-color);
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-red);
    box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.2);
}

.btn-primary {
    background-color: var(--primary-red);
    transition: all 0.3s ease;
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-red-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--primary-red);
    color: var(--primary-red);
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: var(--primary-red);
    color: white;
    transform: translateY(-2px);
}

.section-title {
    position: relative;
    display: inline-block;
}

/* Traço vermelho centralizado */
.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--primary-red);
}

.stat-card {
    background: white;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.stat-card:hover .stat-icon {
    background-color: var(--primary-red);
    color: white;
}

.divider {
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-red), transparent);
    margin: 2rem 0;
}

/* Hero Section Baseada na Imagem */
.hero-section {
    min-height: 85vh;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-bg-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    background-size: cover;
    background-position: center;
}

.hero-bg-slide.active {
    opacity: 1;
}

/* opacidade */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 2;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    position: relative;
    z-index: 3;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: white;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin-bottom: 1.5rem;
}

.hero-stats {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
}

.hero-stat {
    text-align: center;
}

.hero-stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    display: block;
}

.hero-stat-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Navbar hover effects */
.nav-link {
    position: relative;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-red);
    transform: translateY(-2px);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-red);
    transition: width 0.3s ease;
}

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

/* Seções alternadas */
.section-white {
    background-color: white;
    position: relative;
    overflow: hidden;
}

.section-light-gray {
    background-color: var(--light-bg);
    position: relative;
    overflow: hidden;
}

.section-medium-gray {
    background-color: var(--medium-gray);
    position: relative;
    overflow: hidden;
}

/* Quem Somos*/
/* ESTILOS ESPECÍFICOS PARA OS CARDS DA SEÇÃO "QUEM SOMOS" */
.quem-somos-card {
    position: relative;
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: all 0.3s ease;
}

.quem-somos-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.15);
}

/* Canto superior esquerdo com tag (como na imagem) */
.card-corner-tag {
    position: absolute;
    top: 0;
    left: 0;
    width: 120px;
    height: 40px;
    background: var(--primary-red);
    clip-path: polygon(0 0, 100% 0, 85% 100%, 0% 100%);
    display: flex;
    align-items: center;
    padding-left: 1rem;
}

.card-corner-tag.bg-blue-600 {
    background: var(--primary-red);
}

.card-corner-tag.bg-green-600 {
    background: var(--primary-red);
}

.card-corner-tag span {
    color: white;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Ícone centralizado */
.card-icon-container {
    width: 70px;
    height: 70px;
    margin: 2.5rem auto 1rem auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(225, 29, 72, 0.1);
    border-radius: 50%;
}

.quem-somos-card:nth-child(2) .card-icon-container {
    background: rgba(37, 99, 235, 0.1);
}

.quem-somos-card:nth-child(3) .card-icon-container {
    background: rgba(22, 163, 74, 0.1);
}

.card-icon {
    width: 32px;
    height: 32px;
    color: var(--primary-red);
}

.quem-somos-card:nth-child(2) .card-icon {
    color: var(--primary-red);
}

.quem-somos-card:nth-child(3) .card-icon {
    color: var(--primary-red);
}

/* Conteúdo do card */
.card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Canto inferior direito cortado (como na imagem) */
.card-bottom-corner {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, transparent 50%, #f3f4f6 50%);
    border-top-left-radius: 12px;
    border: none;
}

/* Responsividade */
@media (max-width: 768px) {
    .quem-somos-card {
        min-height: 280px;
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .card-corner-tag {
        width: 100px;
        height: 35px;
    }
    
    .card-corner-tag span {
        font-size: 0.8rem;
    }
    
    .card-icon-container {
        width: 60px;
        height: 60px;
        margin: 2rem auto 1rem auto;
    }
    
    .card-icon {
        width: 28px;
        height: 28px;
    }
    
    .card-bottom-corner {
        width: 50px;
        height: 50px;
    }
}

@media (max-width: 640px) {
    .quem-somos-card {
        min-height: 260px;
        padding: 1.25rem;
    }
    
    .card-corner-tag {
        width: 90px;
        height: 32px;
    }
    
    .card-corner-tag span {
        font-size: 0.75rem;
    }
    
    .card-icon-container {
        width: 55px;
        height: 55px;
        margin: 1.75rem auto 1rem auto;
    }
    
    .card-icon {
        width: 24px;
        height: 24px;
    }
    
    .card-content p {
        font-size: 0.9rem !important;
    }
    
    .space-y-3 .flex.items-center.space-x-2 span {
        font-size: 0.8rem !important;
    }
}

/* Ajuste para grid dos cards */
.grid.md\\:grid-cols-3.gap-6 {
    align-items: stretch;
}

/* Efeito adicional de hover */
.quem-somos-card:hover .card-corner-tag {
    background: var(--primary-red-hover);
}

.quem-somos-card:nth-child(2):hover .card-corner-tag {
    background: var(--primary-red-hover)
}

.quem-somos-card:nth-child(3):hover .card-corner-tag {
    background: var(--primary-red-hover)
}

/* Circle decorations for Quem Somos  */
.circle-decoration {
    position: absolute;
    border-radius: 50%;
    background-color: rgba(225, 29, 72, 0.15);
    /* Opacidade aumentada */
    z-index: 1;
}

.circle-large {
    width: 300px;
    height: 300px;
    top: -150px;
    right: -150px;
}

.circle-medium {
    width: 200px;
    height: 200px;
    bottom: -100px;
    left: -100px;
}

.circle-small {
    width: 150px;
    height: 150px;
    top: 50%;
    right: 20%;
}

/* Responsividade personalizada - MELHORADA */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1.25rem;
        margin-top: 1.5rem;
    }

    .hero-stat-number {
        font-size: 1.75rem;
    }

    .section-padding {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }

    .circle-decoration {
        display: none;
    }

    .timeline-container {
        padding-left: 20px !important;
    }

    .timeline-item {
        flex-direction: column !important;
    }

    .timeline-date {
        width: 100% !important;
        margin-bottom: 10px !important;
    }

    /* Melhorias para mobile */
    .company-card {
        padding: 1.5rem !important;
    }

    .team-card {
        margin-bottom: 1.5rem;
    }

    .company-logo-container {
        width: 120px !important;
        height: 120px !important;
        margin-bottom: 1rem !important;
    }
}

@media (max-width: 640px) {
    .hero-title {
        font-size: 1.75rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }

    .hero-stat-number {
        font-size: 1.5rem;
    }

    .hero-stat-label {
        font-size: 0.7rem;
    }
}


/* Efeito hover para cards de empresas */
.company-card .flex.items-center.justify-center.text-primary-red {
    transition: all 0.3s ease;
}

.company-card:hover .flex.items-center.justify-center.text-primary-red {
    color: #e11d48 !important;
}

.company-card:hover .fa-arrow-right {
    transform: translateX(5px);
    transition: transform 0.3s ease;
    color: #e11d48 !important;
}

/* Popup de empresa */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.company-popup {
    background-color: white;
    border-radius: 16px;
    width: 95%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.popup-overlay.active .company-popup {
    transform: translateY(0);
}

.popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 1.25rem;
    color: #6b7280;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.popup-close:hover {
    color: #e11d48;
    background-color: rgba(0, 0, 0, 0.05);
}

.popup-header {
    padding: 20px 25px 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 15px;
    border-bottom: 1px solid #e5e7eb;
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
}

@media (min-width: 768px) {
    .popup-header {
        flex-direction: row;
        text-align: left;
        padding: 30px 40px 20px;
    }
}

.popup-logo {
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (min-width: 768px) {
    .popup-logo {
        width: 140px;
        height: 140px;
    }
}

.popup-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.popup-title h2 {
    color: #111827;
    margin-bottom: 5px;
    font-size: 1.5rem;
    font-weight: 800;
}

@media (min-width: 768px) {
    .popup-title h2 {
        font-size: 1.75rem;
    }
}

.popup-title p {
    color: #6b7280;
    font-size: 0.9rem;
}

@media (min-width: 768px) {
    .popup-title p {
        font-size: 1rem;
    }
}

.popup-content {
    padding: 20px 25px;
}

@media (min-width: 768px) {
    .popup-content {
        padding: 30px 40px;
    }
}

.popup-section {
    margin-bottom: 20px;
}

.popup-section h3 {
    color: #111827;
    margin-bottom: 12px;
    font-size: 1.2rem;
    font-weight: 600;
}

@media (min-width: 768px) {
    .popup-section h3 {
        font-size: 1.3rem;
    }
}

.popup-section p {
    color: #6b7280;
    margin-bottom: 10px;
    line-height: 1.7;
    font-size: 0.9rem;
}

@media (min-width: 768px) {
    .popup-section p {
        font-size: 1rem;
    }
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

@media (min-width: 480px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.service-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.service-item i {
    color: var(--primary-red);
    font-size: 0.8rem;
}

.company-details {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    margin-top: 15px;
}

@media (min-width: 640px) {
    .company-details {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.detail-icon {
    width: 40px;
    height: 40px;
    background-color: rgba(225, 29, 72, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-red);
    font-size: 1rem;
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .detail-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
}

.detail-item h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 2px;
}

@media (min-width: 768px) {
    .detail-item h4 {
        font-size: 1rem;
    }
}

.detail-item p {
    font-size: 0.85rem;
    margin-bottom: 0;
}

@media (min-width: 768px) {
    .detail-item p {
        font-size: 0.95rem;
    }
}

/* Linha antes do botão no popup */
.popup-divider {
    height: 1px;
    background-color: #e5e7eb;
    margin: 20px 0 20px 0;
}

@media (min-width: 768px) {
    .popup-divider {
        margin: 30px 0 25px 0;
    }
}

/* Seção Clientes - ATUALIZADA */
.clients-section {
    padding: 3rem 0;
    background-color: var(--light-bg);
}

@media (min-width: 768px) {
    .clients-section {
        padding: 5rem 0;
    }
}

.clients-logos {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 3rem;
}

@media (min-width: 768px) {
    .clients-logos {
        gap: 3.75rem;
        margin-bottom: 5rem;
    }
}

.client-logo {
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

@media (min-width: 768px) {
    .client-logo {
        height: 90px;
    }
}

.client-logo:hover {
    transform: translateY(-5px);
}

.client-logo img {
    max-height: 100%;
    max-width: 180px;
    filter: none !important;
    /* Sem efeito cinza */
    opacity: 1 !important;
    /* Sem opacidade */
}

@media (min-width: 768px) {
    .client-logo img {
        max-width: 220px;
    }
}

/* Seção Depoimentos Atualizada - Aspas bonitas */
.testimonials-section {
    padding: 3rem 0;
    background-color: white;
}

@media (min-width: 768px) {
    .testimonials-section {
        padding: 5rem 0;
    }
}

.testimonials-carousel {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    overflow: hidden;
}

.testimonials-container {
    display: flex;
    transition: all 0.5s ease;
}

.testimonial {
    min-width: 100%;
    padding: 30px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

@media (min-width: 768px) {
    .testimonial {
        padding: 40px;
    }
}

/* Aspas estilizadas mais bonitas */
.testimonial-quote {
    font-size: 3.5rem;
    color: var(--primary-red);
    line-height: 1;
    margin-bottom: 5px;
    font-family: Georgia, serif;
    font-weight: bold;
}

@media (min-width: 768px) {
    .testimonial-quote {
        font-size: 5rem;
        margin-bottom: 10px;
    }
}

.testimonial-quote.open {
    align-self: flex-start;
    margin-bottom: -20px;
    margin-left: -5px;
}

@media (min-width: 768px) {
    .testimonial-quote.open {
        margin-bottom: -30px;
        margin-left: -10px;
    }
}

.testimonial-quote.close {
    align-self: flex-end;
    margin-top: -25px;
    margin-right: -5px;
    transform: rotate(180deg);
}

@media (min-width: 768px) {
    .testimonial-quote.close {
        margin-top: -40px;
        margin-right: -10px;
    }
}

.testimonial-text {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--light-text);
    margin-bottom: 20px;
    max-width: 700px;
    line-height: 1.6;
    padding: 0 15px;
}

@media (min-width: 768px) {
    .testimonial-text {
        font-size: 1.3rem;
        margin-bottom: 30px;
        line-height: 1.8;
        padding: 0 20px;
    }
}

.testimonial-author {
    font-weight: 600;
    color: var(--gray-text);
    font-size: 0.95rem;
}

@media (min-width: 768px) {
    .testimonial-author {
        font-size: 1.1rem;
    }
}

.carousel-nav {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

@media (min-width: 768px) {
    .carousel-nav {
        gap: 12px;
        margin-top: 40px;
    }
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #ddd;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

@media (min-width: 768px) {
    .carousel-dot {
        width: 12px;
        height: 12px;
    }
}

.carousel-dot.active {
    background-color: var(--primary-red);
    transform: scale(1.3);
}

/* Botão Back to Top */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    background-color: var(--primary-red);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    cursor: pointer;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(225, 29, 72, 0.3);
}

@media (min-width: 768px) {
    .back-to-top {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--primary-red-hover);
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(225, 29, 72, 0.4);
}

/* Footer */
.footer {
    background-color: #0a0a0a;
    /* Mais escuro */
    color: white;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-link {
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
    display: inline-block;
    margin-bottom: 6px;
}

.footer-link:hover {
    color: var(--primary-red);
}

.social-icon-footer {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

@media (min-width: 768px) {
    .social-icon-footer {
        width: 40px;
        height: 40px;
    }
}

.social-icon-footer:hover {
    background: var(--primary-red);
    color: white;
    border-color: var(--primary-red);
}

/* Logos maiores nas empresas - SEM BORDA */
.company-logo-container {
    width: 140px;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem auto;
}

@media (min-width: 768px) {
    .company-logo-container {
        width: 160px;
        height: 160px;
        margin: 0 auto 1.5rem auto;
    }
}

.company-logo-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Timeline Section */
.timeline-section {
    background-color: var(--light-bg);
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.8s ease;
}

.timeline-section.expanded {
    max-height: 2000px;
}

.timeline-container {
    position: relative;
    padding-left: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.timeline-container::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 3px;
    background-color: var(--primary-red);
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
    display: flex;
    align-items: flex-start;
}

.timeline-dot {
    position: absolute;
    left: -33px;
    top: 5px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--primary-red);
    border: 4px solid white;
    z-index: 2;
}

.timeline-date {
    width: 150px;
    flex-shrink: 0;
    font-weight: 700;
    color: var(--primary-red);
    font-size: 1.1rem;
}

.timeline-content {
    flex: 1;
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-left: 4px solid var(--primary-red);
}

.timeline-content h4 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--light-text);
}

.timeline-content p {
    color: var(--gray-text);
    line-height: 1.6;
    margin-bottom: 15px;
}

.timeline-image {
    margin-top: 15px;
    border-radius: 8px;
    overflow: hidden;
    height: 180px;
}

.timeline-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.toggle-timeline-btn {
    background-color: transparent;
    border: 2px solid var(--primary-red);
    color: var(--primary-red);
    padding: 10px 25px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 25px auto 0 auto;
    font-size: 0.9rem;
}

@media (min-width: 768px) {
    .toggle-timeline-btn {
        padding: 12px 30px;
        gap: 10px;
        margin: 30px auto 0 auto;
        font-size: 1rem;
    }
}

.toggle-timeline-btn:hover {
    background-color: var(--primary-red);
    color: white;
    transform: translateY(-2px);
}

.toggle-icon {
    transition: transform 0.3s ease;
}

.timeline-section.expanded .toggle-icon {
    transform: rotate(180deg);
}

/* ESTILOS NOVOS PARA AS ATUALIZAÇÕES SOLICITADAS */

/* Responsividade para cards da seção Quem Somos - NOVOS CARDS */
@media (max-width: 768px) {
    .grid.md\\:grid-cols-2.gap-6 {
        grid-template-columns: 1fr !important;
        gap: 1.25rem !important;
    }

    .bg-white.rounded-2xl.shadow-lg {
        padding: 1.5rem !important;
    }

    .bg-white.rounded-2xl.shadow-lg p {
        font-size: 0.95rem !important;
        line-height: 1.5 !important;
    }

    /* Ajustes para os novos cards */
    .bg-white.rounded-2xl.shadow-lg h3 {
        font-size: 1.25rem !important;
        margin-bottom: 0.75rem !important;
    }

    .inline-flex.items-center.justify-center {
        width: 50px !important;
        height: 50px !important;
        margin-bottom: 1rem !important;
    }

    .inline-flex.items-center.justify-center svg {
        width: 1.5rem !important;
        height: 1.5rem !important;
    }

    .grid.grid-cols-2.md\\:grid-cols-4.gap-3 {
        grid-template-columns: 1fr !important;
        gap: 0.75rem !important;
    }

    .bg-primary-red\\/5.rounded-xl {
        padding: 1rem !important;
    }
}

@media (max-width: 640px) {
    .bg-white.rounded-2xl.shadow-lg {
        padding: 1.25rem !important;
    }

    .inline-flex.items-center.justify-center {
        width: 45px !important;
        height: 45px !important;
        margin-bottom: 0.75rem !important;
    }

    .inline-flex.items-center.justify-center svg {
        width: 1.25rem !important;
        height: 1.25rem !important;
    }

    .bg-white.rounded-2xl.shadow-lg h3 {
        font-size: 1.1rem !important;
    }
}

@media (min-width: 768px) {
    .bg-white.rounded-2xl.shadow-lg.md\\:col-span-2 {
        grid-column: span 2 / span 2;
    }
}

/* Nova Timeline com Storytelling */
.trajectory-section {
    padding: 3rem 0;
    position: relative;
}

@media (min-width: 768px) {
    .trajectory-section {
        padding: 5rem 0;
    }
}

.trajectory-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

/* Timeline Vertical (Mobile) */
.timeline-vertical {
    position: relative;
    padding-left: 25px;
}

.timeline-vertical::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, var(--primary-red), rgba(225, 29, 72, 0.5));
}

.milestone-item {
    position: relative;
    margin-bottom: 2.5rem;
    padding-left: 25px;
}

.milestone-item.important .milestone-dot {
    background-color: var(--primary-red);
    border: 3px solid white;
    box-shadow: 0 0 0 3px var(--primary-red);
    transform: scale(1.3);
}

.milestone-item.important .milestone-year {
    color: var(--primary-red);
    font-weight: 800;
    font-size: 1.1rem;
}

.milestone-dot {
    position: absolute;
    left: -8px;
    top: 0;
    width: 18px;
    height: 18px;
    background-color: white;
    border: 2px solid var(--primary-red);
    border-radius: 50%;
    z-index: 2;
    transition: all 0.3s ease;
}

.milestone-year {
    font-weight: 700;
    color: var(--primary-red);
    margin-bottom: 8px;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

@media (min-width: 768px) {
    .milestone-year {
        font-size: 1.1rem;
        gap: 8px;
    }
}

.milestone-year i {
    font-size: 0.8rem;
}

@media (min-width: 768px) {
    .milestone-year i {
        font-size: 0.9rem;
    }
}

.milestone-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    border-top: 4px solid var(--primary-red);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

@media (min-width: 768px) {
    .milestone-card {
        padding: 25px;
    }
}

.milestone-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary-red);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.milestone-item:hover .milestone-card::before {
    transform: scaleX(1);
}

.milestone-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.milestone-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--light-text);
    display: flex;
    align-items: center;
    gap: 8px;
}

@media (min-width: 768px) {
    .milestone-title {
        font-size: 1.3rem;
        gap: 10px;
    }
}

.milestone-title i {
    color: var(--primary-red);
    font-size: 1.1rem;
}

@media (min-width: 768px) {
    .milestone-title i {
        font-size: 1.2rem;
    }
}

.milestone-text {
    color: var(--gray-text);
    line-height: 1.5;
    margin-bottom: 12px;
    font-size: 0.9rem;
}

@media (min-width: 768px) {
    .milestone-text {
        font-size: 0.95rem;
        line-height: 1.6;
    }
}

.milestone-details-btn {
    background: none;
    border: none;
    color: var(--primary-red);
    font-weight: 600;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    padding: 6px 0;
    transition: all 0.3s ease;
}

@media (min-width: 768px) {
    .milestone-details-btn {
        font-size: 0.9rem;
        padding: 8px 0;
    }
}

.milestone-details-btn:hover {
    color: var(--primary-red-hover);
}

.milestone-details-btn i {
    transition: transform 0.3s ease;
}

.milestone-details-btn.active i {
    transform: rotate(180deg);
}

.milestone-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
    margin-top: 0;
}

.milestone-details.active {
    max-height: 300px;
    margin-top: 12px;
}

.milestone-details p {
    color: var(--gray-text);
    font-size: 0.85rem;
    line-height: 1.5;
    padding: 12px;
    background-color: var(--light-bg);
    border-radius: 8px;
    border-left: 3px solid var(--primary-red);
    margin-bottom: 12px;
}

@media (min-width: 768px) {
    .milestone-details p {
        font-size: 0.9rem;
        padding: 15px;
        margin-bottom: 15px;
    }
}

.impact-stats {
    display: flex;
    gap: 15px;
    padding: 0 12px;
}

@media (min-width: 768px) {
    .impact-stats {
        gap: 20px;
        padding: 0 15px;
    }
}

.impact-stat {
    text-align: center;
}

.impact-number {
    display: block;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-red);
}

@media (min-width: 768px) {
    .impact-number {
        font-size: 1.5rem;
    }
}

.impact-label {
    display: block;
    font-size: 0.75rem;
    color: var(--gray-text);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

@media (min-width: 768px) {
    .impact-label {
        font-size: 0.8rem;
    }
}

/* Desktop: Timeline Horizontal */
@media (min-width: 1024px) {
    .timeline-vertical {
        display: none;
    }

    .timeline-horizontal {
        display: block;
        position: relative;
        padding: 60px 0;
    }

    .timeline-line {
        position: absolute;
        top: 50%;
        left: 5%;
        right: 5%;
        height: 3px;
        background: linear-gradient(to right, var(--primary-red), rgba(225, 29, 72, 0.5));
        transform: translateY(-50%);
        z-index: 1;
    }

    .milestones-container {
        position: relative;
        display: flex;
        justify-content: space-between;
        z-index: 2;
    }

    .milestone-horizontal {
        position: relative;
        width: 16%;
        text-align: center;
    }

    .milestone-horizontal.important .milestone-dot-horizontal {
        background-color: var(--primary-red);
        border: 3px solid white;
        box-shadow: 0 0 0 3px var(--primary-red);
        transform: scale(1.4);
        margin-bottom: 25px;
    }

    .milestone-dot-horizontal {
        width: 24px;
        height: 24px;
        background-color: white;
        border: 2px solid var(--primary-red);
        border-radius: 50%;
        margin: 0 auto 20px auto;
        cursor: pointer;
        transition: all 0.3s ease;
        position: relative;
        z-index: 3;
    }

    .milestone-dot-horizontal:hover {
        transform: scale(1.3);
        background-color: var(--primary-red);
    }

    .milestone-year-horizontal {
        font-weight: 700;
        color: var(--primary-red);
        font-size: 1.1rem;
        margin-bottom: 10px;
        transition: all 0.3s ease;
    }

    .milestone-horizontal:hover .milestone-year-horizontal {
        transform: translateY(-5px);
    }

    .milestone-card-horizontal {
        position: absolute;
        bottom: 100%;
        left: 50%;
        transform: translateX(-50%) translateY(-20px) scale(0.95);
        width: 300px;
        background: white;
        border-radius: 12px;
        padding: 25px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s ease;
        z-index: 10;
        border-top: 4px solid var(--primary-red);
    }

    .milestone-horizontal:hover .milestone-card-horizontal {
        opacity: 1;
        visibility: visible;
        transform: translateX(-50%) translateY(-20px) scale(1);
    }

    .milestone-card-horizontal h4 {
        font-size: 1.2rem;
        font-weight: 700;
        margin-bottom: 10px;
        color: var(--light-text);
    }

    .milestone-card-horizontal p {
        color: var(--gray-text);
        font-size: 0.9rem;
        line-height: 1.5;
        margin-bottom: 15px;
    }

    .tooltip {
        position: absolute;
        bottom: -40px;
        left: 50%;
        transform: translateX(-50%);
        background: var(--primary-red);
        color: white;
        padding: 4px 12px;
        border-radius: 4px;
        font-size: 0.75rem;
        font-weight: 600;
        white-space: nowrap;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .milestone-horizontal.important .tooltip {
        opacity: 1;
    }
}

/* Mobile: esconder timeline horizontal */
@media (max-width: 1023px) {
    .timeline-horizontal {
        display: none;
    }
}

/* Estilos para expansão da timeline no mobile */
.timeline-toggle-btn {
    background-color: transparent;
    border: 2px solid var(--primary-red);
    color: var(--primary-red);
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 30px auto 0 auto;
}

.timeline-toggle-btn:hover {
    background-color: var(--primary-red);
    color: white;
    transform: translateY(-2px);
}

/* Classes utilitárias para padding responsivo */
.section-padding {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

@media (min-width: 768px) {
    .section-padding {
        padding-top: 5rem;
        padding-bottom: 5rem;
    }
}


/* CSS para o carrossel dos membros da equipa 

/* Estilos do Carrossel da Equipa */
.team-carousel-container {
    overflow: hidden;
}

.team-carousel-track {
    display: grid;
    transition: transform 0.5s ease-in-out;
    grid-auto-flow: column;
    grid-auto-columns: 100%;
}

@media (min-width: 768px) {
    .team-carousel-track {
        grid-auto-columns: calc(33.333% - 1.5rem);
        gap: 2rem;
    }
}

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

.carousel-nav-btn:hover {
    background: var(--primary-red);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(225, 29, 72, 0.2);
}

.team-carousel-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
}

.team-carousel-indicator.active {
    background: var(--primary-red);
    transform: scale(1.2);
}

/* Manter layout grid para desktop quando não em carrossel */
@media (min-width: 768px) and (max-width: 1023px) {
    .team-carousel-track:not(.carousel-mode) {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* Para mobile, sempre uma coluna */
@media (max-width: 767px) {
    .team-carousel-track {
        grid-auto-columns: 100% !important;
    }
    
    .team-card {
        margin-bottom: 0;
    }
}



/* Estilos do Carrossel da Equipa */
.carousel-nav-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: white;
    border: 2px solid var(--primary-red);
    color: var(--primary-red);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.carousel-nav-btn:hover {
    background: var(--primary-red);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(225, 29, 72, 0.25);
}

.carousel-nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: none !important;
}

.team-carousel-viewport {
    position: relative;
}

.team-carousel-track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 100%;
    gap: 2rem;
}

@media (min-width: 768px) {
    .team-carousel-track {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Indicadores (dots) */
.carousel-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #d1d5db;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.carousel-indicator:hover {
    background: var(--primary-red);
    transform: scale(1.2);
}

.carousel-indicator.active {
    background: var(--primary-red);
    transform: scale(1.3);
}

/* Para quebrar títulos longos em duas linhas */
.team-card .text-primary-red {
    min-height: 3em; /* Altura para 2 linhas */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

/* Ajuste responsivo para quebras de linha */
@media (max-width: 768px) {
    .team-card .text-primary-red {
        min-height: 2.5em;
        font-size: 0.9rem;
    }
}

/* Estilos do Carrossel da Equipa */
.team-carousel-viewport {
    position: relative;
    overflow: hidden;
    width: 100%;
}

.team-carousel-track {
    display: flex;
    gap: 2rem;
    will-change: transform;
}

/* Cada card ocupa 33.333% do container (3 cards por view) */
.team-carousel-track .team-card {
    flex: 0 0 calc(33.333% - 1.33rem);
    min-width: 0;
}

/* Para mobile, mostrar 1 card */
@media (max-width: 767px) {
    .team-carousel-track .team-card {
        flex: 0 0 100%;
    }
    
    .team-carousel-track {
        gap: 1.5rem;
    }
}

.carousel-nav-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: white;
    border: 2px solid var(--primary-red);
    color: var(--primary-red);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 20;
}

.carousel-nav-btn:hover {
    background: var(--primary-red);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(225, 29, 72, 0.25);
}

.carousel-nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: none !important;
}

/* Indicadores (dots) */
.carousel-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #d1d5db;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.carousel-indicator:hover {
    background: var(--primary-red);
    transform: scale(1.2);
}

.carousel-indicator.active {
    background: var(--primary-red);
    transform: scale(1.3);
}

/* Para quebrar títulos longos em duas linhas */
.team-card .text-primary-red {
    min-height: 3em;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    line-height: 1.3;
}