.category-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.category-tab {
    padding: 12px 25px;
    margin: 0 10px 10px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    cursor: pointer;
    color: black;
    font-weight: bold;
    transition: all 0.3s ease;
    border: 2px solid grey;
}

.category-tab:hover {
    background: white;
    color: #667eea;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-color: #667eea;
}

.category-tab.active {
    background: #667eea;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-color: #667eea;
}

/*.hero-section {
    background: linear-gradient(#043254, #0272c7), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 600'%3E%3Crect fill='%23212529' width='1200' height='600'/%3E%3Cpolygon fill='%23495057' points='0,600 1200,600 1200,300 0,400'/%3E%3C/svg%3E") !important;
    background-size: cover;
    background-position: center;
    padding: 80px 0;
    text-align: center;
    color: white;
    margin-bottom: 50px;
}*/
.hero-section {
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: bold;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 1s ease-out;
}

.hero-section p {
    font-size: 1.3rem;
    max-width: 800px;
    margin: 0 auto;
    opacity: 0.9;
    animation: fadeInUp 1s ease-out 0.3s both;
}
        .bg3 {
            background: #033154;
            position: relative;
        }

        .odoo-logo-bg {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            font-size: 120px;
            font-weight: bold;
            color: rgba(255,255,255,0.1);
            font-family: 'Arial', sans-serif;
        }

        .floating-particles {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
        }

        .particle-odoo {
            position: absolute;
            width: 15px;
            height: 15px;
            /*background: rgba(255,255,255,0.6);
            border-radius: 50%;*/
            z-index: 1;
            animation: particle-float 8s linear infinite;
        }
        /* === SITO WEB (6 icone) === */
.particle-odoo:nth-child(1) { top: 8%; left: 5%; animation-delay: 0s; }
.particle-odoo:nth-child(2) { top: 22%; left: 88%; animation-delay: 1.2s; }
.particle-odoo:nth-child(3) { top: 65%; left: 7%; animation-delay: 2.4s; }
.particle-odoo:nth-child(4) { top: 75%; left: 82%; animation-delay: 3.6s; }
.particle-odoo:nth-child(5) { top: 40%; left: 12%; animation-delay: 4.8s; }
.particle-odoo:nth-child(6) { top: 28%; left: 72%; animation-delay: 6s; }

/* === VENDITE (5 icone) === */
.particle-odoo:nth-child(7) { top: 5%; left: 18%; animation-delay: 0.6s; }
.particle-odoo:nth-child(8) { top: 18%; left: 62%; animation-delay: 1.8s; }
.particle-odoo:nth-child(9) { top: 52%; left: 5%; animation-delay: 3s; }
.particle-odoo:nth-child(10) { top: 58%; left: 68%; animation-delay: 4.2s; }
.particle-odoo:nth-child(11) { top: 24%; left: 28%; animation-delay: 5.4s; }

/* === FINANZE (6 icone) === */
.particle-odoo:nth-child(12) { top: 10%; left: 48%; animation-delay: 0.9s; }
.particle-odoo:nth-child(13) { top: 32%; left: 32%; animation-delay: 2.1s; }
.particle-odoo:nth-child(14) { top: 62%; left: 52%; animation-delay: 3.3s; }
.particle-odoo:nth-child(15) { top: 82%; left: 34%; animation-delay: 4.5s; }
.particle-odoo:nth-child(16) { top: 48%; left: 78%; animation-delay: 5.7s; }
.particle-odoo:nth-child(17) { top: 72%; left: 24%; animation-delay: 6.9s; }

/* === MAGAZZINO/PRODUZIONE (6 icone) === */
.particle-odoo:nth-child(18) { top: 12%; left: 38%; animation-delay: 0.3s; }
.particle-odoo:nth-child(19) { top: 82%; left: 58%; animation-delay: 1.5s; }
.particle-odoo:nth-child(20) { top: 38%; left: 85%; animation-delay: 2.7s; }
.particle-odoo:nth-child(21) { top: 58%; left: 22%; animation-delay: 3.9s; }
.particle-odoo:nth-child(22) { top: 26%; left: 65%; animation-delay: 5.1s; }
.particle-odoo:nth-child(23) { top: 72%; left: 42%; animation-delay: 6.3s; }

/* === RISORSE UMANE (6 icone) === */
.particle-odoo:nth-child(24) { top: 15%; left: 25%; animation-delay: 0.7s; }
.particle-odoo:nth-child(25) { top: 85%; left: 25%; animation-delay: 1.9s; }
.particle-odoo:nth-child(26) { top: 15%; left: 75%; animation-delay: 3.1s; }
.particle-odoo:nth-child(27) { top: 85%; left: 75%; animation-delay: 4.3s; }
.particle-odoo:nth-child(28) { top: 50%; left: 15%; animation-delay: 5.5s; }
.particle-odoo:nth-child(29) { top: 50%; left: 85%; animation-delay: 6.7s; }

/* === MARKETING (6 icone) === */
.particle-odoo:nth-child(30) { top: 20%; left: 55%; animation-delay: 0.4s; }
.particle-odoo:nth-child(31) { top: 80%; left: 45%; animation-delay: 1.6s; }
.particle-odoo:nth-child(32) { top: 45%; left: 30%; animation-delay: 2.8s; }
.particle-odoo:nth-child(33) { top: 55%; left: 70%; animation-delay: 4s; }
.particle-odoo:nth-child(34) { top: 30%; left: 40%; animation-delay: 5.2s; }
.particle-odoo:nth-child(35) { top: 70%; left: 60%; animation-delay: 6.4s; }

/* === SERVIZI (6 icone) === */
.particle-odoo:nth-child(36) { top: 25%; left: 20%; animation-delay: 0.8s; }
.particle-odoo:nth-child(37) { top: 75%; left: 20%; animation-delay: 2s; }
.particle-odoo:nth-child(38) { top: 25%; left: 80%; animation-delay: 3.2s; }
.particle-odoo:nth-child(39) { top: 75%; left: 80%; animation-delay: 4.4s; }
.particle-odoo:nth-child(40) { top: 35%; left: 50%; animation-delay: 5.6s; }
.particle-odoo:nth-child(41) { top: 65%; left: 50%; animation-delay: 6.8s; }

/* === PRODUTTIVITÀ (5 icone) === */
.particle-odoo:nth-child(42) { top: 10%; left: 70%; animation-delay: 0.5s; }
.particle-odoo:nth-child(43) { top: 90%; left: 30%; animation-delay: 1.7s; }
.particle-odoo:nth-child(44) { top: 20%; left: 60%; animation-delay: 2.9s; }
.particle-odoo:nth-child(45) { top: 80%; left: 40%; animation-delay: 4.1s; }
.particle-odoo:nth-child(46) { top: 50%; left: 90%; animation-delay: 5.3s; }

/* === MEDIA QUERY PER MOBILE === */
@media (max-width: 768px) {
  .particle-odoo:nth-child(n+20) { 
    display: none; /* Mostra solo 20 icone su mobile */
  }
  .particle-odoo {
    width: 30px;
    height: 30px;
  }
}
        @keyframes particle-float {
            0%, 100% { transform: translateY(0px) rotate(0deg); opacity: 0.6; }
            25% { transform: translateY(-20px) rotate(90deg); opacity: 1; }
            50% { transform: translateY(-10px) rotate(180deg); opacity: 0.8; }
            75% { transform: translateY(-30px) rotate(270deg); opacity: 1; }
        }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    color: white;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 15px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.section-title p {
    font-size: 1.1rem;
    opacity: 0.9;
}

.section-title-app {
    text-align: center !important;
    margin-bottom: 50px !important;
    color: black !important;
}

.section-title-app h2 {
    font-size: 2.5rem !important;
    font-weight: bold !important;
    margin-bottom: 15px !important;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3) !important;
}

.section-title-app p {
    font-size: 1.1rem !important;
    opacity: 0.9 !important;
}

.modules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.module-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
    height: 350px !important;
}

.module-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: #667eea;
}

.module-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.module-card:hover::before {
    transform: scaleX(1);
}

.module-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.module-icon {
    font-size: 2.5rem;
    color: #667eea;
    margin-right: 20px;
    transition: all 0.3s ease;
}

.module-card:hover .module-icon {
    transform: scale(1.1);
    color: #764ba2;
}

.module-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
    margin: 0;
}

.module-description {
    color: #666;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.module-features {
    list-style: none;
    margin-bottom: 20px;
}

.module-features li {
    padding: 5px 0;
    position: relative;
    padding-left: 25px;
    color: #555;
    font-size: 0.9rem;
}

.module-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #667eea;
    font-weight: bold;
}

.module-status {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.status-active {
    background: #e8f5e8;
    color: #2d5a2d;
}

.status-premium {
    background: #fff3cd;
    color: #856404;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background-color: white;
    margin: 50px auto;
    padding: 40px;
    border-radius: 15px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    animation: slideIn 0.3s ease;
}

.close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #aaa;
    transition: color 0.3s ease;
}

.close:hover {
    color: #667eea;
}

.modal h2 {
    color: #333;
    margin-bottom: 20px;
    font-size: 2rem;
}

.modal p {
    margin-bottom: 15px;
    color: #666;
    line-height: 1.6;
}

.modal-features {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
}

.modal-features h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.modal-features ul {
    list-style: none;
}

.modal-features li {
    padding: 8px 0;
    position: relative;
    padding-left: 25px;
    color: #555;
}

.modal-features li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #667eea;
    font-weight: bold;
    font-size: 1.2rem;
}

#button_modal {
    display: flex;
    justify-content: end;
}

#contain-card>div {
    margin-top: 10px !important;
    margin-bottom: 10px !important;
}

.module-card>span {
    position: absolute;
    bottom: 10px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }

    .modules-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .module-card {
        padding: 20px;
    }

    .modal-content {
        margin: 20px auto;
        padding: 25px;
    }
}