/* ==========================================================================
   AM Accordion - Profissionais Style
   ========================================================================== */

.amac-accordion {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.amac-item {
    overflow: hidden;
    background: #fff;
    box-shadow: none !important;
}

/* Header */
.amac-item-header {
    display: flex !important;
    align-items: center !important;
    cursor: pointer;
    transition: background 0.3s ease;
    min-height: 120px;
    background: #fff;
    box-shadow: none !important;
}

.amac-item.active .amac-item-header {
    background: #667eea !important;
    background-image: none !important;
}

/* Image */
.amac-item-image {
    width: 280px;
    min-height: 120px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 12px 0 0 12px;
}

.amac-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Title */
.amac-item-title {
    flex: 1;
    margin: 0;
    padding: 20px 30px;
    font-size: 26px;
    font-weight: 700;
    color: #333;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
}

/* Button rotation when active */
.amac-item.active .amac-item-toggle {
    transform: rotate(180deg);
}

/* Toggle Button */
.amac-item-toggle {
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    background: #4a5aad;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-right: 20px;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.amac-item-toggle:hover {
    background: #3a4a9d;
}

.amac-item.active .amac-item-toggle {
    transform: rotate(180deg);
}

/* Icon colors controlled by Elementor */

/* Content */
.amac-item-content {
    padding: 30px;
    background: #f9f9f9;
    animation: amac-slide-down 0.3s ease;
}

@keyframes amac-slide-down {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 768px) {
    .amac-item-header {
        flex-wrap: wrap;
        min-height: auto;
    }
    
    .amac-item-image {
        width: 100%;
        height: 180px;
        order: -1;
    }
    
    .amac-item-title {
        flex: 1;
        font-size: 18px;
        padding: 15px 20px;
    }
    
    .amac-item-toggle {
        width: 40px;
        height: 40px;
        margin-right: 15px;
    }
    
    .amac-item-toggle svg {
        width: 20px;
        height: 20px;
    }
    
    .amac-item-content {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .amac-item-title {
        font-size: 16px;
        padding: 12px 15px;
    }
    
    .amac-item-toggle {
        width: 36px;
        height: 36px;
        margin-right: 10px;
    }
}
