/* ===== AMAZON EVENTI - CSS COMPLETO ===== */

.amazon-eventi-container {
    width: 100%;
    margin: 0 auto;
    font-family: 'Roboto', sans-serif;
}

/* ===== HEADER EVENTO ===== */
.eventi-header {
    text-align: center;
    margin-bottom: 20px;
    padding: 20px;
    background: linear-gradient(135deg, #f68e13, #e07c02);
    border-radius: 8px;
    color: white;
}

.eventi-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.8em;
    font-weight: 700;
    margin: 0 0 8px 0;
}

.eventi-subtitle {
    font-size: 0.9em;
    opacity: 0.95;
}

/* ===== SEZIONI CATEGORIA ===== */
.eventi-categoria-section {
    margin-bottom: 25px;
    border: 1px solid #e3dedd;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.eventi-categoria-header {
    background: #1c2024;
    color: white;
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.eventi-categoria-title {
    font-family: 'Noto Sans', sans-serif;
    font-size: 1em;
    font-weight: 600;
    margin: 0;
}

.eventi-categoria-counter-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.eventi-categoria-counter {
    background: #f7b516;
    color: #1c2024;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75em;
    font-weight: 600;
}

/* ===== GRIGLIA PRODOTTI - RESPONSIVE CORRETTO ===== */
.eventi-prodotti-grid {
    display: grid;
    gap: 15px;
    padding: 20px;
}

/* DESKTOP LARGE - 1400px+ per 5 colonne */
@media (min-width: 1400px) {
    .eventi-grid-5 { 
        grid-template-columns: repeat(5, 1fr); 
        max-width: 1400px; 
        margin: 0 auto; 
    }
    .eventi-grid-4 { 
        grid-template-columns: repeat(4, 1fr); 
        max-width: 1200px; 
        margin: 0 auto; 
    }
    .eventi-grid-3 { 
        grid-template-columns: repeat(3, 1fr); 
        max-width: 900px; 
        margin: 0 auto; 
    }
    .eventi-grid-2 { 
        grid-template-columns: repeat(2, 1fr); 
        max-width: 600px; 
        margin: 0 auto; 
    }
}

/* DESKTOP MEDIUM - 1200px to 1399px */
@media (max-width: 1399px) and (min-width: 1200px) {
    .eventi-grid-5 { 
        grid-template-columns: repeat(4, 1fr); 
        max-width: 1200px; 
        margin: 0 auto; 
    }
    .eventi-grid-4 { 
        grid-template-columns: repeat(4, 1fr); 
        max-width: 1200px; 
        margin: 0 auto; 
    }
    .eventi-grid-3 { 
        grid-template-columns: repeat(3, 1fr); 
        max-width: 900px; 
        margin: 0 auto; 
    }
    .eventi-grid-2 { 
        grid-template-columns: repeat(2, 1fr); 
        max-width: 600px; 
        margin: 0 auto; 
    }
}

/* DESKTOP SMALL - sotto 1200px */
@media (max-width: 1199px) {
    .eventi-grid-5,
    .eventi-grid-4 { 
        grid-template-columns: repeat(3, 1fr); 
        max-width: 900px; 
        margin: 0 auto; 
    }
    .eventi-grid-3 { 
        grid-template-columns: repeat(3, 1fr); 
        max-width: 900px; 
        margin: 0 auto; 
    }
    .eventi-grid-2 { 
        grid-template-columns: repeat(2, 1fr); 
        max-width: 600px; 
        margin: 0 auto; 
    }
}

/* ===== CARD PRODOTTO ===== */
.eventi-prodotto {
    background: #fff;
    border: 1px solid #e3dedd;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    height: 380px;
}

.eventi-prodotto:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.eventi-prodotto-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* ===== IMAGE CONTAINER CON OVERLAY ===== */
.eventi-image-container {
    position: relative;
    background: #fafafa;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    overflow: hidden;
}

.eventi-prodotto-image {
    max-width: 100%;
    max-height: 120px;
    object-fit: contain;
    z-index: 1;
}

/* ===== COUPON OVERLAY CHE COPRE TUTTO ===== */
.eventi-coupon-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(247, 181, 22, 0.95), rgba(230, 165, 20, 0.95));
    color: white;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 15px;
    z-index: 5;
    font-size: 0.8em;
    font-weight: 600;
    text-align: center;
    box-sizing: border-box;
}

.eventi-prodotto:hover .eventi-coupon-overlay {
    display: flex;
}

.coupon-overlay-title {
    font-size: 0.9em;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.coupon-item-hover,
.coupon-spunta-hover {
    background: rgba(28, 32, 36, 0.9);
    color: #f7b516;
    padding: 6px 10px;
    border-radius: 4px;
    margin: 3px 0;
    font-size: 0.75em;
    font-weight: 700;
    width: 90%;
    text-align: center;
    line-height: 1.2;
}

.coupon-spunta-hover {
    background: rgba(40, 167, 69, 0.9);
    color: white;
}

/* ===== BADGE ===== */
.eventi-discount-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #f68e13;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.7em;
    font-weight: 600;
    z-index: 10;
}

.eventi-coupon-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #f7b516;
    color: white;
    padding: 3px 6px;
    border-radius: 4px;
    font-size: 0.65em;
    font-weight: 600;
    z-index: 10;
}

.eventi-prime-badge {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: #00A8CC;
    color: white;
    padding: 3px 6px;
    border-radius: 4px;
    font-size: 0.6em;
    font-weight: 600;
    z-index: 10;
}

/* ===== INFO PRODOTTO ===== */
.eventi-prodotto-info {
    padding: 12px;
    flex: 1;
}

.eventi-prodotto-title {
    font-size: 0.8em;
    font-weight: 500;
    line-height: 1.3;
    color: #1c2024;
    margin: 0 0 8px 0;
    height: 3.9em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.eventi-produttore {
    font-size: 0.7em;
    color: #666;
    margin-bottom: 8px;
}

/* ===== PREZZI ===== */
.eventi-pricing {
    padding: 0 12px 8px;
    text-align: center;
    height: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.eventi-prezzo-originale {
    font-size: 0.75em;
    color: #999;
    text-decoration: line-through;
    margin-bottom: 2px;
}

.eventi-prezzo-scontato {
    font-size: 1.1em;
    font-weight: 700;
    color: #f68e13;
    margin-bottom: 4px;
}

.eventi-risparmio {
    font-size: 0.7em;
    color: #28a745;
    font-weight: 600;
}

/* ===== DATA AGGIORNAMENTO ===== */
.eventi-data-aggiornamento {
    padding: 8px 12px;
    background: #e3dedd;
    border-top: 1px solid #d0d0d0;
    font-size: 0.65em;
    color: #666;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-top: auto;
}

.eventi-lampo-mini {
    color: #f7b516;
    font-size: 1.1em;
}

/* ===== PULSANTE ALTRI ===== */
.eventi-pulsante-altri {
    text-align: center;
    padding: 16px;
    background: #f8f9fa;
    border-top: 1px solid #d0d0d0;
}

.eventi-btn-altri {
    background: #f7b516;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.8em;
    cursor: pointer;
    transition: background 0.2s ease;
}

.eventi-btn-altri:hover {
    background: #e6a514;
}

/* ===== CATEGORIA VUOTA ===== */
.eventi-categoria-empty {
    background: #e3dedd;
    padding: 20px;
    text-align: center;
}

.eventi-categoria-empty .alert {
    background: #e3dedd !important;
    border: none !important;
    color: #666 !important;
}

/* ===== FOOTER ===== */
.eventi-footer {
    text-align: center;
    margin-top: 20px;
    padding: 12px;
    background: #e3dedd;
    border-radius: 6px;
    font-size: 0.8em;
    color: #666;
    font-style: italic;
}

.eventi-disclaimer {
    font-size: 0.8em;
    color: #666;
    font-style: italic;
}

/* ===== RESPONSIVE MOBILE ===== */
@media (max-width: 768px) {
    .eventi-prodotti-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px;
        padding: 15px;
    }
    
    .eventi-prodotto {
        height: 350px;
    }
    
    .eventi-categoria-header {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .eventi-prodotti-grid {
        grid-template-columns: 1fr !important;
    }
    
    .eventi-prodotto {
        height: 320px;
    }
}