/* Stile per il contenitore principale */
.gsap-accordion-container {
    display: flex !important; /* Forza il layout flessibile */
    width: 100%;
    height: 500px;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Stile per ogni singolo pannello */
.gsap-accordion-panel {
    flex: 1;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: flex 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.gsap-accordion-panel::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 50%);
    opacity: 1;
    transition: opacity 0.5s ease;
}

.panel-content {
    position: absolute;
    bottom: 30px; left: 30px; right: 30px;
    color: white;
    transform: translateY(20px);
    opacity: 0;
    transition: transform 0.6s ease, opacity 0.6s ease;
}

.panel-content h3 {
    font-size: 24px;
    margin-bottom: 10px;
    font-weight: bold;
    color: white !important;
}

.panel-content p {
    font-size: 16px;
    opacity: 0.9;
    color: white !important;
}

/* Stato "attivo" (quando un pannello è espanso) */
.gsap-accordion-panel.active {
    flex: 5;
}

.gsap-accordion-panel.active .panel-content {
    transform: translateY(0);
    opacity: 1;
    transition-delay: 0.2s;
}
