/* Recensioni Widget - Stili Frontend */

.recensioni-widget-container {
    position: relative;
    max-width: 100%;
    margin: 40px auto;
    padding: 0 50px;
    overflow: hidden;
}

.recensioni-slider {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.recensione-slide {
    min-width: 100%;
    padding: 0 15px;
    box-sizing: border-box;
}

.recensione-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.recensione-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.recensione-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

.recensione-platform {
    display: inline-block;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.recensione-rating {
    display: flex;
    align-items: center;
    gap: 5px;
}

.star {
    color: #ddd;
    font-size: 20px;
}

.star.filled {
    color: #ffc107;
}

.star.half {
    color: #ffc107;
    position: relative;
}

.star.half::before {
    content: '★';
    position: absolute;
    width: 50%;
    overflow: hidden;
    color: #ffc107;
}

.rating-number {
    margin-left: 8px;
    font-weight: 600;
    font-size: 16px;
    color: #333;
}

.recensione-body {
    margin: 20px 0;
}

.recensione-text {
    font-size: 16px;
    line-height: 1.6;
    color: #555;
    font-style: italic;
    margin: 0;
}

.recensione-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
    flex-wrap: wrap;
    gap: 10px;
}

.recensione-author {
    font-size: 15px;
    color: #333;
}

.recensione-date {
    font-size: 14px;
    color: #888;
}

/* Pulsanti navigazione */
.recensioni-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border: 2px solid #e0e0e0;
    color: #333;
    font-size: 30px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    line-height: 1;
}

.recensioni-nav:hover {
    background: #333;
    color: white;
    border-color: #333;
    transform: translateY(-50%) scale(1.1);
}

.recensioni-prev {
    left: 0;
}

.recensioni-next {
    right: 0;
}

/* Indicatori (dots) */
.recensioni-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 25px;
}

.recensioni-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
}

.recensioni-dot.active {
    background: #333;
    width: 30px;
    border-radius: 6px;
}

/* Responsive */
@media (max-width: 768px) {
    .recensioni-widget-container {
        padding: 0 40px;
    }
    
    .recensione-card {
        padding: 20px;
    }
    
    .recensioni-nav {
        width: 40px;
        height: 40px;
        font-size: 24px;
    }
    
    .recensione-text {
        font-size: 15px;
    }
    
    .recensione-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .recensioni-widget-container {
        padding: 0 30px;
    }
    
    .recensioni-nav {
        width: 35px;
        height: 35px;
        font-size: 20px;
    }
    
    .recensione-text {
        font-size: 14px;
    }
    
    .recensione-footer {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Animazione di caricamento */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.recensione-slide {
    animation: fadeIn 0.5s ease;
}
