/* 
C2RISK v3.2 - Module Buttons CSS
=================================
Pulsanti moduli con alto contrasto e icone contestuali

📊 Cliente: ETS srl
👨‍💻 Autore: Maurizio Di Meglio
📅 Data: 12 ottobre 2025
⚡ Versione: 3.2.0
*/

/* ========================================
   MODULE BUTTONS - HIGH CONTRAST
   ======================================== */

.btn-module {
    /* Base styling */
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 12px !important;
    padding: 16px 24px !important;
    border-radius: 12px !important;
    font-weight: 700 !important;
    font-size: 1rem !important;
    text-decoration: none !important;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
    min-height: 56px !important;
    min-width: 160px !important;
    border: 3px solid transparent !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    position: relative !important;
    overflow: hidden !important;
}

/* Icon styling */
.btn-icon {
    width: 24px !important;
    height: 24px !important;
    object-fit: contain !important;
    filter: brightness(0) invert(1) !important;
}

.btn-icon-dnsh,
.btn-icon-stations,
.btn-icon-contact,
.btn-icon-modules,
.btn-icon-login {
    font-size: 20px !important;
    width: 24px !important;
    height: 24px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.btn-text {
    font-weight: 700 !important;
    letter-spacing: 0.5px !important;
}

/* ========================================
   INFRASTRUCTURE MODULE BUTTON
   ======================================== */
.btn-infrastructure {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%) !important;
    color: #ffffff !important;
    border-color: #1e40af !important;
}

.btn-infrastructure:hover {
    background: linear-gradient(135deg, #1e40af 0%, #2563eb 100%) !important;
    border-color: #1d4ed8 !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 20px rgba(30, 58, 138, 0.4) !important;
    color: #ffffff !important;
    text-decoration: none !important;
}

.btn-infrastructure:focus {
    outline: 3px solid #fbbf24 !important;
    outline-offset: 2px !important;
    background: linear-gradient(135deg, #1e40af 0%, #2563eb 100%) !important;
}

/* ========================================
   DNSH MODULE BUTTON
   ======================================== */
.btn-dnsh {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%) !important;
    color: #ffffff !important;
    border-color: #047857 !important;
}

.btn-dnsh:hover {
    background: linear-gradient(135deg, #047857 0%, #059669 100%) !important;
    border-color: #065f46 !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 20px rgba(5, 150, 105, 0.4) !important;
    color: #ffffff !important;
    text-decoration: none !important;
}

.btn-dnsh:focus {
    outline: 3px solid #fbbf24 !important;
    outline-offset: 2px !important;
    background: linear-gradient(135deg, #047857 0%, #059669 100%) !important;
}

/* ========================================
   STATIONS MODULE BUTTON
   ======================================== */
.btn-stations {
    background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%) !important;
    color: #ffffff !important;
    border-color: #6d28d9 !important;
}

.btn-stations:hover {
    background: linear-gradient(135deg, #6d28d9 0%, #9333ea 100%) !important;
    border-color: #5b21b6 !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 20px rgba(124, 58, 237, 0.4) !important;
    color: #ffffff !important;
    text-decoration: none !important;
}

.btn-stations:focus {
    outline: 3px solid #fbbf24 !important;
    outline-offset: 2px !important;
    background: linear-gradient(135deg, #6d28d9 0%, #9333ea 100%) !important;
}

/* ========================================
   MODULES BUTTON
   ======================================== */
.btn-modules {
    background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%) !important;
    color: #ffffff !important;
    border-color: #d97706 !important;
}

.btn-modules:hover {
    background: linear-gradient(135deg, #d97706 0%, #f59e0b 100%) !important;
    border-color: #b45309 !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.4) !important;
    color: #ffffff !important;
    text-decoration: none !important;
}

.btn-modules:focus {
    outline: 3px solid #fbbf24 !important;
    outline-offset: 2px !important;
    background: linear-gradient(135deg, #d97706 0%, #f59e0b 100%) !important;
}

/* ========================================
   LOGIN BUTTON
   ======================================== */
.btn-login {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%) !important;
    color: #ffffff !important;
    border-color: #4f46e5 !important;
}

.btn-login:hover {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%) !important;
    border-color: #4338ca !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.4) !important;
    color: #ffffff !important;
    text-decoration: none !important;
}

.btn-login:focus {
    outline: 3px solid #fbbf24 !important;
    outline-offset: 2px !important;
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%) !important;
}

/* ========================================
   CONTACT MODULE BUTTON
   ======================================== */
.btn-contact {
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%) !important;
    color: #ffffff !important;
    border-color: #b91c1c !important;
}

.btn-contact:hover {
    background: linear-gradient(135deg, #b91c1c 0%, #dc2626 100%) !important;
    border-color: #991b1b !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 20px rgba(220, 38, 38, 0.4) !important;
    color: #ffffff !important;
    text-decoration: none !important;
}

.btn-contact:focus {
    outline: 3px solid #fbbf24 !important;
    outline-offset: 2px !important;
    background: linear-gradient(135deg, #b91c1c 0%, #dc2626 100%) !important;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 768px) {
    .btn-module {
        min-width: 140px !important;
        padding: 14px 20px !important;
        font-size: 0.9rem !important;
        min-height: 52px !important;
    }
    
    .hero-buttons {
        display: flex !important;
        flex-direction: column !important;
        gap: 12px !important;
        align-items: center !important;
    }
    
    .hero-buttons .btn-module {
        margin-right: 0 !important;
        margin-bottom: 0 !important;
    }
}

@media (max-width: 480px) {
    .btn-module {
        min-width: 120px !important;
        padding: 12px 16px !important;
        font-size: 0.85rem !important;
        gap: 8px !important;
    }
    
    .btn-icon {
        width: 20px !important;
        height: 20px !important;
    }
    
    .btn-icon-dnsh,
    .btn-icon-stations,
    .btn-icon-contact,
    .btn-icon-modules,
    .btn-icon-login {
        font-size: 18px !important;
        width: 20px !important;
        height: 20px !important;
    }
}

/* ========================================
   ACCESSIBILITY ENHANCEMENTS
   ======================================== */

/* High contrast mode support */
@media (prefers-contrast: high) {
    .btn-module {
        border-width: 4px !important;
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3) !important;
    }
    
    .btn-infrastructure {
        background: #1e3a8a !important;
        border-color: #ffffff !important;
    }
    
    .btn-dnsh {
        background: #059669 !important;
        border-color: #ffffff !important;
    }
    
    .btn-stations {
        background: #7c3aed !important;
        border-color: #ffffff !important;
    }
    
    .btn-modules {
        background: #f59e0b !important;
        border-color: #ffffff !important;
    }
    
    .btn-login {
        background: #6366f1 !important;
        border-color: #ffffff !important;
    }
    
    .btn-contact {
        background: #dc2626 !important;
        border-color: #ffffff !important;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .btn-module {
        transition: none !important;
    }
    
    .btn-module:hover {
        transform: none !important;
    }
}

/* Focus indicators for keyboard navigation */
.btn-module:focus-visible {
    outline: 3px solid #fbbf24 !important;
    outline-offset: 3px !important;
}

/* Active state for better feedback */
.btn-module:active {
    transform: translateY(-1px) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
}
