/* BD Stacked Card Widget - Stile pulito e minimalista con tab */
.bd-stacked-card-container {
    position: relative;
    width: 100%;
    margin: 0;
    padding: 0;
    background-color: #fff;
    font-family: Arial, sans-serif;
}

/* Tab di navigazione superiore */
.bd-featured-tabs {
    display: flex;
    margin-bottom: 20px;
}

.bd-featured-tab {
    padding: 15px 20px;
    background-color: #f0f0f0;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.bd-featured-tab.active {
    background-color: #FFEB3B; /* Giallo */
}

.bd-see-all-link {
    position: absolute;
    top: 0;
    right: 0;
    padding: 15px 20px;
    background-color: #333;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    transition: background-color 0.3s ease;
}

.bd-see-all-link:hover {
    background-color: #555;
}

/* Contenitore delle card */
.bd-stacked-cards-wrapper {
    position: relative;
    min-height: 400px;
    overflow: hidden;
}

/* Stile base delle card */
.bd-stacked-card {
    display: none;
    width: 100%;
    transition: opacity 0.5s ease;
    background-color: transparent;
}

/* Card attiva */
.bd-stacked-card.bd-active-card {
    display: block;
    opacity: 1;
    animation: fadeInCard 0.5s ease forwards;
}

@keyframes fadeInCard {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Layout card */
.bd-card-header {
    margin-bottom: 20px;
}

.bd-card-title {
    font-size: 42px;
    font-weight: 700;
    line-height: 1.2;
    color: #000;
    margin: 0 0 20px 0;
}

.bd-card-meta {
    margin-bottom: 10px;
}

.bd-card-year {
    font-size: 16px;
    color: #666;
    margin-bottom: 5px;
}

.bd-card-tags {
    margin-bottom: 20px;
}

.bd-card-tag {
    display: inline;
    color: #666;
    font-size: 16px;
}

.bd-card-tag:not(:last-child):after {
    content: ", ";
    margin-right: 5px;
}

.bd-card-divider {
    width: 100%;
    height: 1px;
    background-color: #e0e0e0;
    margin: 20px 0;
}

.bd-card-description {
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    margin-bottom: 20px;
}

.bd-view-project-btn {
    display: inline-block;
    text-decoration: none;
    color: #333;
    font-size: 16px;
    font-weight: 600;
    margin-top: 20px;
}

/* Layout del contenuto */
.bd-card-content {
    display: flex;
    gap: 40px;
}

.bd-card-text-content {
    flex: 1;
    padding-right: 20px;
}

.bd-card-image-content {
    flex: 2;
}

.bd-card-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
}

/* Navigazione a punti */
.bd-card-navigation {
    display: flex;
    justify-content: center;
    margin-top: 30px;
    gap: 10px;
}

.bd-card-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ccc;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.bd-card-dot.active {
    background-color: #555;
}

/* Responsive design */
@media (max-width: 992px) {
    .bd-card-content {
        flex-direction: column;
    }
    
    .bd-card-text-content {
        padding-right: 0;
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    .bd-featured-tabs {
        flex-wrap: wrap;
    }
    
    .bd-featured-tab {
        padding: 10px 15px;
        font-size: 12px;
    }
    
    .bd-see-all-link {
        position: relative;
        display: block;
        text-align: right;
        padding: 10px 15px;
    }
    
    .bd-card-title {
        font-size: 32px;
    }
}