/**
 * Dauny - Stili principali
 * Versione: 1.0.0
 * Descrizione: Stili CSS per il sito Dauny EVO
 * Autore: Metis SRL
 * Data: 2024
 */

:root {
    --color-dauny-yellow: #FFEC00;
    --color-dauny-blue: #87CEEB;
    --color-dauny-green: #A7D129;
    --color-dauny-dark: #000000;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #000000;
    color: #FFFFFF;
    min-height: 100vh;
    padding-top: 80px;
    font-display: swap;
    line-height: 1.5;
}

/* Immagine di sfondo con effetto parallax */
.parallax-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%;
    background-image: url('../hp-dauny.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    z-index: -1;
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.section-bg {
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(167, 209, 41, 0.3);
}

/* Tab Styles */
.tab {
    background-color: #000000;
    color: #87CEEB;
    border-bottom-color: transparent;
    transition: all 0.3s ease;
}

.tab:hover {
    background-color: #1a1a1a;
    color: #FFEC00;
}

.tab.active {
    background-color: #000000;
    color: #FFEC00;
    border-bottom-color: #FFEC00;
}

.btn-primary {
    background-color: var(--color-dauny-green);
    color: var(--color-dauny-dark);
    transition: all 0.3s;
}

.btn-primary:hover {
    background-color: #87B022;
    transform: translateY(-2px);
}

.cart-modal {
    transition: all 0.3s ease-in-out;
    width: 100%;
    max-width: 100%;
    right: 0;
    position: relative;
}

#cart-modal:not(.hidden) {
    display: flex !important;
    justify-content: flex-end !important;
}

@media (min-width: 768px) {
    .cart-modal {
        width: 400px;
        max-width: 400px;
    }
}

.process-step:hover {
    border-color: rgba(167, 209, 41, 0.5) !important;
    background-opacity: 0.7 !important;
}

.process-step.active {
    border-color: var(--color-dauny-green) !important;
    background-opacity: 0.8 !important;
}

/* Stili per il carrello con sfondo nero e bollino lampeggiante */
.cart-button-custom {
    position: relative !important;
    background-color: #000000 !important;
    border: 2px solid #A7D129 !important;
    border-radius: 50px !important;
    padding: 12px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 40 !important;
    outline: none !important;
    -webkit-tap-highlight-color: rgba(167, 209, 41, 0.3) !important;
}

.cart-button-custom:hover {
    transform: scale(1.1) !important;
    box-shadow: 0 4px 15px rgba(167, 209, 41, 0.4) !important;
}

.cart-icon {
    width: 24px !important;
    height: 24px !important;
    stroke: #A7D129 !important;
    fill: none !important;
}

.cart-badge {
    position: absolute !important;
    top: -4px !important;
    right: -4px !important;
    background-color: #FFEC00 !important;
    color: #000000 !important;
    font-size: 12px !important;
    font-weight: bold !important;
    border-radius: 50% !important;
    width: 20px !important;
    height: 20px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 1px solid #000000 !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2) !important;
    animation: pulse-yellow 2s infinite !important;
    z-index: 10 !important;
}

/* Animazione lampeggiante per il bollino del carrello */
@keyframes pulse-yellow {
    0% {
        background-color: #FFEC00;
        opacity: 1;
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 236, 0, 0.7);
    }
    50% {
        background-color: #FFD700;
        opacity: 0.9;
        transform: scale(1.05);
        box-shadow: 0 0 0 4px rgba(255, 236, 0, 0.3);
    }
    100% {
        background-color: #FFEC00;
        opacity: 1;
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 236, 0, 0);
    }
}

/* Stili responsive per il carrello */
@media (max-width: 767px) {
    .parallax-bg {
        background-size: cover;
        background-position: center center;
    }
    
    .cart-button-custom {
        padding: 8px !important;
    }
    
    .cart-icon {
        width: 20px !important;
        height: 20px !important;
    }
    
    .cart-badge {
        width: 16px !important;
        height: 16px !important;
        font-size: 10px !important;
        top: -2px !important;
        right: -2px !important;
    }
}