/* ===============================================
   vantaggi AI4CALL Section
   =============================================== */

.vantaggi {
    padding: var(--section-padding) 0;
    position: relative;
    background: rgba(255, 255, 255, 0.01);
    overflow: visible !important;
}

/* ONDA PER VANTAGGI - CON GRADIENTE ROTANTE + PULSAZIONE */
.vantaggi-wave {
    position: absolute;
    top: 0;        /* CAMBIATO da bottom: 0 */
    left: 0;
    width: 100%;
    height: 100%;  /* CAMBIATO da 200px - ora copre TUTTO */
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

/* Gradiente rotante (effetto 1) - VERSIONE BIANCA */
.vantaggi-wave::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(
        from 0deg, 
        transparent 0deg,
        transparent 30deg,              /* Fascio inizia più tardi */
        rgba(255, 255, 255, 0.25) 45deg, /* Zona bianca concentrata */
        rgba(220, 220, 255, 0.35) 50deg,
        rgba(255, 255, 255, 0.25) 55deg,
        transparent 70deg,              /* Fascio finisce prima */
        transparent 360deg
    );
    animation: rotate 6s linear infinite;
    opacity: 0.7;
    filter: blur(70px);
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes vantaggi-wave-move {
    0% { transform: translateX(0); }
    100% { transform: translateX(33.33%); }
}

.vantaggi .container {
    position: relative;
    z-index: 1;
}

/* fine onda */

.vantaggi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
    margin-top: 60px;
}

.vantaggi-grid-vantaggi {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    margin-top: 60px;
}

.vantaggi-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 40px;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    border: 2px solid #FFFFFF;
    box-shadow: 12px 12px 12px rgba(255,255,255,.25);
    transform: perspective(1000px) translateZ(40px);
}

body.theme-professional-light .vantaggi-card {
    background: white;
    border: 1px solid #000;
    box-shadow: 6px 6px 6px rgba(144, 143, 143, 1);
    /*box-shadow:
        0 10px 40px rgba(15, 23, 42, 0.08),
        0 0 0 1px rgba(255, 255, 255, 0.8),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);*/
    transform: translateY(0) translateZ(0);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.vantaggi-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-warm);
    opacity: 0;
    transition: opacity var(--transition-normal);
    pointer-events: none;
}

.vantaggi-card:hover::before {
    opacity: 0.05;
}

.vantaggi-card:hover {
    transform: translateY(-8px);
    border-color: rgba(37, 99, 235, 0.3);
    box-shadow: 0 20px 60px rgba(37, 99, 235, 0.15);
}

body.theme-professional-light .vantaggi-card:hover {
    transform: translateY(-8px) translateZ(20px);
    box-shadow:
        0 20px 60px rgba(15, 23, 42, 0.12),
        0 0 0 1px rgba(255, 255, 255, 0.9),
        0 0 40px var(--hover-bg-medium),
        inset 0 1px 0 var(--header-bg);
    border-color: rgba(37, 99, 235, 0.3);
}

.vantaggi-card h3 {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
    background: var(--gradient-warm);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: var(--text-primary) !important;
    background: none !important;
    -webkit-text-fill-color: var(--text-primary) !important;
}

body.theme-professional-light .vantaggi-card h3 {
    background: var(--gradient-warm);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 20px var(--hover-bg-medium));
}

.vantaggi-card > p {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 24px;
}

.vantaggi-card ul li:last-child {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .vantaggi-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .vantaggi-card {
        padding: 32px 24px;
    }

    .vantaggi-card h3 {
        font-size: 20px;
    }
}
