/* 
 * C2RISK Homepage Compact Design
 * Design moderno e compatto per homepage
 * Data: 13 Ottobre 2025
 * Autore: Maurizio Di Meglio
 */

/* Hero Section Compatta con Background Tematico */
.hero-section-compact {
    background: linear-gradient(135deg, #0066cc 0%, #004d99 50%, #003366 100%);
    background-image: 
        linear-gradient(135deg, rgba(0, 102, 204, 0.95) 0%, rgba(0, 77, 153, 0.95) 50%, rgba(0, 51, 102, 0.95) 100%),
        url('../images/backgrounds/climate-infrastructure.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 60px 0 40px 0; /* Ridotto da 100px */
    position: relative;
    overflow: hidden;
}

.hero-section-compact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(0, 153, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0, 102, 204, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 2.8rem; /* Ridotto da 3.5rem */
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 15px; /* Ridotto da 25px */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.2rem; /* Ridotto da 1.4rem */
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 25px; /* Ridotto da 35px */
    font-weight: 400;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px; /* Ridotto da 15px */
}

.btn-module {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px; /* Ridotto da 15px 30px */
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem; /* Ridotto da 1.1rem */
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-infrastructure {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    color: white;
}

.btn-infrastructure:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
    color: white;
}

.btn-dnsh {
    background: linear-gradient(135deg, #51cf66 0%, #37b24d 100%);
    color: white;
}

.btn-dnsh:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(81, 207, 102, 0.4);
    color: white;
}

.btn-stations {
    background: linear-gradient(135deg, #339af0 0%, #1c7ed6 100%);
    color: white;
}

.btn-stations:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(51, 154, 240, 0.4);
    color: white;
}

.btn-contact {
    background: linear-gradient(135deg, #ffd43b 0%, #fab005 100%);
    color: #333;
}

.btn-contact:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 212, 59, 0.4);
    color: #333;
}

.btn-icon {
    width: 24px; /* Ridotto da 28px */
    height: 24px;
}

.btn-icon-dnsh, .btn-icon-stations, .btn-icon-contact {
    font-size: 20px; /* Ridotto da 24px */
}

.hero-visual {
    position: relative;
    display: none; /* Nascosto per risparmiare spazio */
}

/* Features Section - Ultra Compatta */
.features-section {
    padding: 40px 0; /* Ridotto da 80px */
    background: #f8f9fa;
}

.feature-card {
    background: white;
    padding: 25px; /* Ridotto da 35px */
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    height: 100%;
    border: 2px solid transparent;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 102, 204, 0.15);
    border-color: #0066cc;
}

.feature-icon {
    width: 60px; /* Ridotto da 80px */
    height: 60px;
    margin: 0 auto 15px; /* Ridotto da 20px */
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
}

.feature-icon img {
    width: 35px; /* Ridotto da 45px */
    height: 35px;
    object-fit: contain;
}

.feature-card h4 {
    font-size: 1.1rem; /* Ridotto da 1.3rem */
    font-weight: 700;
    color: #212529;
    margin-bottom: 10px; /* Ridotto da 15px */
}

.feature-card p {
    font-size: 0.95rem; /* Ridotto da 1rem */
    color: #6c757d;
    margin-bottom: 0;
    line-height: 1.5;
}

/* Platform Modules Section - Compatta */
.modules-section-compact {
    padding: 40px 0; /* Ridotto da 80px */
    background: white;
}

.section-title {
    font-size: 2rem; /* Ridotto da 2.5rem */
    font-weight: 700;
    color: #212529;
    margin-bottom: 30px; /* Ridotto da 40px */
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px; /* Ridotto da -10px */
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px; /* Ridotto da 4px */
    background: linear-gradient(90deg, #0066cc 0%, #004d99 100%);
    border-radius: 2px;
}

.module-card-compact {
    background: white;
    border-radius: 12px;
    padding: 25px; /* Ridotto da 35px */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
    border: 2px solid #e9ecef;
    position: relative;
    overflow: hidden;
}

.module-card-compact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #0066cc 0%, #004d99 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.module-card-compact:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 102, 204, 0.2);
    border-color: #0066cc;
}

.module-card-compact:hover::before {
    opacity: 1;
}

.module-header {
    display: flex;
    align-items: center;
    gap: 12px; /* Ridotto da 15px */
    margin-bottom: 15px; /* Ridotto da 20px */
}

.module-icon {
    width: 50px; /* Ridotto da 60px */
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-size: 24px; /* Ridotto da 28px */
    color: white;
    flex-shrink: 0;
}

.module-icon.infrastructure {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
}

.module-icon.dnsh {
    background: linear-gradient(135deg, #51cf66 0%, #37b24d 100%);
}

.module-icon.stations {
    background: linear-gradient(135deg, #339af0 0%, #1c7ed6 100%);
}

.module-card-compact h3 {
    font-size: 1.3rem; /* Ridotto da 1.5rem */
    font-weight: 700;
    color: #212529;
    margin-bottom: 0;
}

.module-card-compact p {
    font-size: 0.95rem; /* Ridotto */
    color: #6c757d;
    margin-bottom: 15px; /* Ridotto da 20px */
    line-height: 1.6;
}

.module-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px; /* Ridotto da 10px */
    margin-bottom: 15px; /* Ridotto da 20px */
}

.feature-tag {
    display: inline-block;
    padding: 4px 10px; /* Ridotto da 6px 12px */
    background: #e3f2fd;
    color: #1565c0;
    border-radius: 20px;
    font-size: 0.8rem; /* Ridotto da 0.85rem */
    font-weight: 500;
}

.btn-scientific {
    display: inline-block;
    padding: 10px 20px; /* Ridotto da 12px 24px */
    background: linear-gradient(135deg, #0066cc 0%, #004d99 100%);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem; /* Ridotto da 1rem */
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 102, 204, 0.2);
}

.btn-scientific:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 102, 204, 0.3);
    color: white;
    text-decoration: none;
}

/* Stats Section - Compatta */
.stats-section-compact {
    padding: 40px 0; /* Ridotto da 60px */
    background: linear-gradient(135deg, #0066cc 0%, #004d99 100%);
    color: white;
}

.stat-card {
    text-align: center;
    padding: 20px; /* Ridotto da 30px */
}

.stat-number {
    font-size: 2.5rem; /* Ridotto da 3rem */
    font-weight: 700;
    color: #ffd43b;
    margin-bottom: 8px; /* Ridotto da 10px */
}

.stat-label {
    font-size: 1rem; /* Ridotto da 1.1rem */
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

/* Responsive */
@media (max-width: 992px) {
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .btn-module {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .hero-section-compact {
        padding: 40px 0 30px 0;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .features-section,
    .modules-section-compact {
        padding: 30px 0;
    }
}

