/* Stili generali */
:root {
    --primary-color: #4CAF50;
    --secondary-color: #2E7D32;
    --dark-bg: #121212;
    --card-bg: #1E1E1E;
    --text-light: #FFFFFF;
    --text-gray: #AAAAAA;
    --accent-color: #FF5722;
    --highlight-blue: #3F51B5;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Stili sezione Referral Program */
.referral-program {
    padding: 60px 0;
    background-color: var(--dark-bg);
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #121212 0%, #1a1a1a 100%);
}

.referral-program::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/network-bg.svg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.1;
    z-index: 0;
}

.referral-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 1;
}

.referral-visual {
    flex: 0 0 25%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 200px;
}

.percentage-circle {
    width: 150px;
    height: 150px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 30px rgba(76, 175, 80, 0.4);
    z-index: 2;
    overflow: hidden;
    position: relative;
}

.percentage-circle::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(45deg);
    animation: shimmer 3s infinite;
}

.percentage {
    font-size: 60px;
    font-weight: 700;
    color: var(--text-light);
    display: flex;
    align-items: center;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.percentage-symbol {
    font-size: 30px;
    margin-left: 3px;
}

.referral-icon {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(46, 125, 50, 0.5);
    z-index: 3;
    animation: rotate 10s linear infinite;
}

.referral-icon i {
    font-size: 30px;
    color: var(--text-light);
}

.referral-info {
    flex: 0 0 70%;
    padding: 30px;
    background: rgba(30, 30, 30, 0.7);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(76, 175, 80, 0.1);
    position: relative;
    overflow: hidden;
}

.referral-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), transparent);
}

.referral-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-light);
    position: relative;
    display: inline-block;
}

.referral-title::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary-color);
    transform-origin: left;
    animation: titleLine 2s ease-in-out infinite alternate;
}

.highlight {
    color: var(--primary-color);
    position: relative;
}

.referral-description {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 15px;
    line-height: 1.5;
}

.referral-description strong {
    color: var(--primary-color);
    font-weight: 600;
}

.referral-features {
    display: flex;
    margin: 20px 0;
    gap: 20px;
}

.feature-item {
    display: flex;
    align-items: center;
    flex: 1;
    background: rgba(0, 0, 0, 0.2);
    padding: 10px 15px;
    border-radius: 10px;
    border-left: 3px solid var(--primary-color);
}

.feature-icon {
    margin-right: 10px;
    font-size: 18px;
    color: var(--primary-color);
}

.feature-text {
    font-size: 0.95rem;
    color: var(--text-gray);
}

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 25px;
    background: var(--primary-color);
    color: var(--text-light);
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    border-radius: 30px;
    margin-top: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.4);
    position: relative;
    overflow: hidden;
    z-index: 1;
    text-transform: uppercase;
    letter-spacing: 1px;
    width: 100%;
    animation: pulse 2s infinite;
}

.cta-button i {
    margin-left: 10px;
    transition: transform 0.3s ease;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: all 0.5s ease;
    z-index: -1;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(76, 175, 80, 0.6);
}

.cta-button:hover i {
    transform: translateX(5px);
}

.cta-button:hover::before {
    left: 100%;
}

/* Animazioni */
@keyframes shimmer {
    0% {
        transform: translateX(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) rotate(45deg);
    }
}

@keyframes titleLine {
    0% {
        transform: scaleX(0.5);
        opacity: 0.5;
    }
    100% {
        transform: scaleX(1);
        opacity: 1;
    }
}

@keyframes rotate {
    0% {
        transform: translateY(-50%) rotate(0deg);
    }
    100% {
        transform: translateY(-50%) rotate(360deg);
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(76, 175, 80, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0);
    }
}

/* Responsive */
@media (max-width: 992px) {
    .referral-content {
        flex-direction: column;
    }
    
    .referral-visual, .referral-info {
        flex: 0 0 100%;
        width: 100%;
    }
    
    .referral-visual {
        margin-bottom: 30px;
        height: 180px;
    }
    
    .referral-features {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 768px) {
    .referral-program {
        padding: 40px 0;
    }
    
    .referral-title {
        font-size: 1.7rem;
    }
    
    .referral-description {
        font-size: 1rem;
    }
    
    .percentage-circle {
        width: 120px;
        height: 120px;
    }
    
    .percentage {
        font-size: 50px;
    }
    
    .percentage-symbol {
        font-size: 25px;
    }
}

@media (max-width: 576px) {
    .referral-visual {
        height: 150px;
    }
    
    .percentage-circle {
        width: 100px;
        height: 100px;
    }
    
    .percentage {
        font-size: 40px;
    }
    
    .percentage-symbol {
        font-size: 20px;
    }
    
    .referral-icon {
        width: 50px;
        height: 50px;
    }
    
    .referral-icon i {
        font-size: 25px;
    }
}
