/* =====================================================
   SEÇÃO PARCEIROS — Carrossel Automático
   ===================================================== */

.partners-section {
    position: relative;
    overflow: hidden;
    padding: 80px 0;
    min-height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #1a1a1a;
}

/* Fundo fancy (se configurado) */
.partners-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    z-index: 0;
}

/* Overlay escuro sobre o fundo */
.partners-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

/* Conteúdo acima do overlay */
.partners-content {
    position: relative;
    z-index: 2;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

/* Título */
.partners-title {
    color: #fff;
    font-family: 'Playfair Display', 'Georgia', serif;
    font-size: 2.4rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 50px;
}

/* Container do carrossel automático */
.partners-carousel {
    position: relative;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    margin: 0 auto;
}

/* Wrapper do carrossel */
.partners-carousel-wrapper {
    overflow: hidden;
    position: relative;
    width: 100%;
}

/* Grid de parceiros (linha contínua com animação) */
.partners-grid {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 30px;
    animation: partners-scroll 40s linear infinite;
    padding: 20px 0;
    width: max-content;
    will-change: transform;
}

/* Pausar animação ao hover */
.partners-grid:hover {
    animation-play-state: paused;
}

/* Animação de rolagem infinita */
@keyframes partners-scroll {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

/* Item de parceiro — círculo */
.partner-item {
    flex: 0 0 auto !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    min-width: 80px;
    min-height: 80px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    padding: 10px;
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.partner-item a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.partner-item img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.4s ease;
}

/* Hover — aumenta a logo */
.partner-item:hover {
    transform: scale(1.15);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
    z-index: 10;
}

.partner-item:hover img {
    transform: scale(1.1);
}

/* Nome de texto quando não há logo */
.partner-name-text {
    color: #1a1a1a;
    font-family: 'Playfair Display', 'Georgia', serif;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    text-align: center;
    line-height: 1.1;
    word-break: break-word;
    transition: transform 0.4s ease;
}

.partner-item:hover .partner-name-text {
    transform: scale(1.1);
}

/* =====================================================
   Responsivo
   ===================================================== */

@media (max-width: 768px) {
    .partners-section {
        padding: 50px 0;
        min-height: 240px;
    }

    .partners-title {
        font-size: 1.6rem;
        margin-bottom: 35px;
    }

    .partners-grid {
        gap: 20px;
        animation-duration: 30s;
    }

    .partner-item {
        width: 70px;
        height: 70px;
        min-width: 70px;
        min-height: 70px;
        padding: 8px;
    }

    .partner-name-text {
        font-size: 0.65rem;
    }
}

@media (max-width: 480px) {
    .partners-section {
        padding: 40px 0;
    }

    .partners-title {
        font-size: 1.3rem;
        margin-bottom: 28px;
    }

    .partners-grid {
        gap: 15px;
        animation-duration: 25s;
    }

    .partner-item {
        width: 60px;
        height: 60px;
        min-width: 60px;
        min-height: 60px;
        padding: 7px;
    }

    .partner-name-text {
        font-size: 0.6rem;
    }
}