/* Workshop Videos Styles - Accordion Version */

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

.workshop-item {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
    position: relative;
}

.workshop-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Header clickabile */
.workshop-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.2s ease;
    position: relative;
}

.workshop-header:hover {
    background-color: #f9f9f9;
}

/* Tag categoria in alto a sinistra */
.workshop-category-tag {
    position: absolute;
    top: 0;
    left: 0;
    padding: 6px 16px;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 8px 0 8px 0;
    z-index: 10;
}

.workshop-header-content {
    flex: 1;
    padding-top: 20px; /* Spazio per il tag */
}

.workshop-date {
    color: #666;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.workshop-speaker {
    color: #0073aa;
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 8px 0;
}

.workshop-title {
    color: #1a1a1a;
    font-size: 20px;
    font-weight: 700;
    margin: 0;
    line-height: 1.4;
}

/* Icona toggle */
.workshop-toggle {
    flex-shrink: 0;
    margin-left: 20px;
    transition: transform 0.3s ease;
}

.workshop-toggle svg {
    display: block;
    color: #666;
}

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

/* Contenuto accordion */
.workshop-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.workshop-item.active .workshop-content {
    max-height: 3000px; /* Valore alto per contenere qualsiasi contenuto */
}

.workshop-content-inner {
    padding: 0 30px 30px 30px;
}

.workshop-video {
    margin: 0 0 20px 0;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    background: #000;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.workshop-pdf {
    margin: 20px 0;
}

.pdf-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #0073aa;
    color: #fff;
    padding: 12px 24px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s ease;
}

.pdf-download-btn:hover {
    background: #005a87;
    color: #fff;
}

.pdf-download-btn .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
}

.workshop-description {
    margin-top: 20px;
    color: #555;
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 768px) {
    .workshops-container {
        padding: 10px;
    }
    
    .workshop-header {
        padding: 15px 20px;
    }
    
    .workshop-content-inner {
        padding: 0 20px 20px 20px;
    }
    
    .workshop-title {
        font-size: 18px;
    }
    
    .workshop-speaker {
        font-size: 15px;
    }
    
    .workshop-toggle {
        margin-left: 10px;
    }
    
    .workshop-category-tag {
        font-size: 11px;
        padding: 5px 12px;
    }
    
    .workshop-header-content {
        padding-top: 15px;
    }
}