/* Home Sections CSS */

/* Welcome Section */
.welcome-section {
    padding: 60px 0;
    background: white;
    text-align: center;
}

.welcome-section h2 {
    font-size: 2.5rem;
    color: var(--azul-principal);
    margin-bottom: 20px;
    font-weight: 700;
}

.welcome-section p {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #555;
    max-width: 800px;
    margin: 0 auto;
}

/* Highlights Section */
.highlights-section {
    padding: 60px 0;
    background: #f8f9fa;
}

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

.highlight-card {
    background: white;
    padding: 40px 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.highlight-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 20px rgba(61, 90, 153, 0.15);
}

.highlight-card h3 {
    font-size: 1.5rem;
    color: var(--azul-principal);
    margin-bottom: 15px;
    font-weight: 700;
}

.highlight-card p {
    font-size: 1rem;
    line-height: 1.6;
    color: #666;
}

/* Stats Grid (usado nos blocos também) */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    padding: 40px 0;
}

.stat-card {
    background: white;
    padding: 30px 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--azul-principal);
    margin-bottom: 10px;
}

.stat-label {
    font-size: 1rem;
    color: #666;
}

/* Responsive */
@media (max-width: 768px) {
    .welcome-section h2 {
        font-size: 2rem;
    }
    
    .welcome-section p {
        font-size: 1rem;
    }
    
    .highlights-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 20px;
    }
}

/* Seção de Colaboradores */
#collaboratorsSection {
    background: #f8f9fa;
    padding: 60px 0 30px 0;
    margin-bottom: 0;
}

.collaborators-container {
    width: 100%;
}

.collaborators-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    color: var(--vermelho-esp);
    margin-bottom: 40px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.collaborators-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 30px;
    align-items: center;
    justify-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Quando não há título, adiciona padding extra no topo para centralizar melhor */
.collaborators-container.no-title .collaborators-grid {
    padding-top: 20px;
}

.collaborator-item {
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: white;
    border-radius: 8px;
    border: 2px solid #e0e0e0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
    width: 100%;
    min-height: 120px;
    position: relative;
}

.collaborator-item:hover {
    border-color: var(--vermelho-esp);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    transform: translateY(-3px);
}

/* Tooltip ao passar mouse */
.collaborator-item[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    pointer-events: none;
    z-index: 1000;
}

.collaborator-item[data-tooltip]::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-2px);
    border: 6px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.9);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    pointer-events: none;
    z-index: 1000;
}

.collaborator-item[data-tooltip]:hover::after,
.collaborator-item[data-tooltip]:hover::before {
    opacity: 1;
    visibility: visible;
}

.collaborator-item img {
    max-width: 100%;
    max-height: 80px;
    height: auto;
    object-fit: contain;
}

/* Responsive */
@media (max-width: 768px) {
    #collaboratorsSection {
        padding: 40px 0;
    }
    
    .collaborators-title {
        font-size: 1.5rem;
        margin-bottom: 30px;
    }
    
    .collaborators-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 20px;
    }
    
    .collaborator-item {
        padding: 15px;
        min-height: 80px;
    }
    
    .collaborator-item img {
        max-height: 60px;
    }
}

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

/* Links nos colaboradores */
.collaborator-item a {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    text-decoration: none;
    cursor: pointer;
}

.collaborator-item a img {
    transition: all 0.3s;
}

.collaborator-item a:hover img {
    transform: scale(1.05);
    opacity: 0.8;
}

/* Força layout correto em todas as páginas */
#collaboratorsSection .collaborators-container .collaborators-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)) !important;
}

#collaboratorsSection .collaborator-item {
    display: flex !important;
}

/* Regras super específicas para garantir grid */
body #collaboratorsSection .collaborators-grid,
body #collaboratorsSection div.collaborators-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)) !important;
    grid-auto-flow: row !important;
}

body #collaboratorsSection .collaborator-item,
body #collaboratorsSection div.collaborator-item {
    display: flex !important;
    flex-direction: row !important;
}

/* Remove qualquer display block ou inline que possa estar sobrescrevendo */
#collaboratorsSection * {
    box-sizing: border-box;
}

#collaboratorsSection .collaborators-grid > * {
    display: flex !important;
}
