/* Stili base per banner */
.banner-item {
    flex: 0 0 auto;
    width: calc(20% - 20px);
    margin: 0 10px 20px;
}

.banner-wrapper {
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    background: #f9f9f9;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.banner-wrapper:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    transform: translateY(-5px);
}

.banner-content {
    text-align: center;
    padding: 25px;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.banner-content h3 {
    color: #333;
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 15px;
    line-height: 1.2;
}

.banner-content p {
    color: #666;
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 20px;
}

.banner-cta {
    background: #ff6b35;
    color: white;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 13px;
    transition: all 0.3s ease;
    display: inline-block;
    margin-top: auto;
}

.banner-cta:hover {
    background: #e55a2b;
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
}

/* Badge comuni */
.discount-badge,
.new-badge,
.seasonal-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #ff6b35;
    color: white;
    padding: 6px 12px;
    font-size: 11px;
    font-weight: bold;
    border-radius: 20px;
    z-index: 2;
}

/* Stili specifici per tipo promo */
.promo-banner .banner-wrapper {
    background: linear-gradient(135deg, #ffe6e1 0%, #ffccc7 100%);
    border: 2px solid #ff6b35;
}

.promo-banner h3 {
    color: #d73502;
    font-size: 22px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.promo-banner .discount-badge {
    background: #d73502;
    animation: pulse 2s infinite;
}

.promo-banner .banner-cta {
    background: #d73502;
}

.promo-banner .banner-cta:hover {
    background: #b82d02;
}

/* Stili per new arrivals */
.new-arrivals-banner .banner-wrapper {
    background: linear-gradient(135deg, #e8f5e8 0%, #d4edda 100%);
    border: 2px solid #28a745;
}

.new-arrivals-banner h3 {
    color: #28a745;
    font-size: 20px;
}

.new-arrivals-banner .new-badge {
    background: #28a745;
    animation: bounce 1.5s infinite;
}

.new-arrivals-banner .banner-cta {
    background: #28a745;
}

.new-arrivals-banner .banner-cta:hover {
    background: #218838;
}

/* Stili stagionali */
.seasonal-banner.spring-banner .banner-wrapper {
    background: linear-gradient(135deg, #fff0f5 0%, #f0fff0 100%);
    border: 2px solid #ff69b4;
}

.seasonal-banner.spring-banner h3 { color: #ff69b4; }

.seasonal-banner.summer-banner .banner-wrapper {
    background: linear-gradient(135deg, #fff8dc 0%, #ffebcd 100%);
    border: 2px solid #ffa500;
}

.seasonal-banner.summer-banner h3 { color: #ffa500; }

.seasonal-banner.autumn-banner .banner-wrapper {
    background: linear-gradient(135deg, #fdf5e6 0%, #f4e4bc 100%);
    border: 2px solid #d2691e;
}

.seasonal-banner.autumn-banner h3 { color: #d2691e; }

.seasonal-banner.winter-banner .banner-wrapper {
    background: linear-gradient(135deg, #f0f8ff 0%, #e6f3ff 100%);
    border: 2px solid #4682b4;
}

.seasonal-banner.winter-banner h3 { color: #4682b4; }

/* Stili brand spotlight */
.brand-spotlight-banner .banner-wrapper {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid #6c757d;
}

.brand-spotlight-banner h3 {
    color: #343a40;
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.brand-spotlight-banner .banner-cta {
    background: #6c757d;
}

.brand-spotlight-banner .banner-cta:hover {
    background: #5a6268;
}

/* Animazioni */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-5px); }
    60% { transform: translateY(-3px); }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .banner-item {
        width: calc(25% - 20px);
    }
}

@media (max-width: 768px) {
    .banner-item {
        width: calc(50% - 20px);
    }

    .banner-content {
        padding: 20px;
    }

    .banner-content h3 {
        font-size: 18px;
    }

    .banner-content p {
        font-size: 13px;
    }

    .banner-cta {
        padding: 10px 20px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .banner-item {
        width: calc(100% - 20px);
        margin: 0 10px 15px;
    }

    .banner-wrapper {
        min-height: 300px;
    }

    .banner-content {
        padding: 15px;
    }

    .banner-content h3 {
        font-size: 16px;
    }

    .discount-badge,
    .new-badge,
    .seasonal-badge {
        font-size: 10px;
        padding: 4px 8px;
        top: 10px;
        left: 10px;
    }
}

/* Stili per elementi HTML comuni nei contenuti WYSIWYG */
.banner-content .price-info {
    margin: 15px 0;
}

.banner-content .old-price {
    text-decoration: line-through;
    color: #999;
    font-size: 14px;
}

.banner-content .new-price {
    color: #e74c3c;
    font-weight: bold;
    font-size: 18px;
    margin-left: 10px;
}

.banner-content .features {
    font-size: 12px;
    line-height: 1.6;
    margin: 15px 0;
}

.banner-content .feature {
    display: block;
    color: #27ae60;
    margin-bottom: 5px;
}

.banner-content .countdown {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 20px 0;
}

.banner-content .timer-box {
    background: rgba(0,0,0,0.1);
    padding: 10px;
    border-radius: 6px;
    min-width: 50px;
}

.banner-content .timer-box span {
    display: block;
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

.banner-content .timer-box label {
    display: block;
    font-size: 11px;
    color: #666;
    text-transform: uppercase;
}

/* Stili per icone Font Awesome (se disponibili) */
.banner-content i {
    margin: 0 5px;
}

.banner-content .icon-container {
    font-size: 24px;
    margin-bottom: 15px;
}

/* Effetti hover migliorati */
.banner-wrapper:hover .banner-cta {
    transform: scale(1.05);
}

.banner-wrapper:hover .discount-badge {
    animation: pulse 1s infinite;
}

/* Fix per liste prodotti esistenti */
.products.wrapper.grid .banner-item {
    list-style: none;
}

.products.list.items.product-items .banner-item {
    margin-bottom: 20px;
}

.products.list.items.product-items {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px;
}