:root {
    --primary-gradient-ita: linear-gradient(135deg, #065c61 0%, #0b7c53 100%);
    --secondary-gradient: linear-gradient(135deg, #f8d09b 0%, #078d63 100%);
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --hover-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    --border-radius: 15px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nacc-section {
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.nacc-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><polygon fill="%23ffffff" fill-opacity="0.03" points="0,1000 1000,0 1000,1000"/></svg>')
        no-repeat;
    background-size: cover;
    pointer-events: none;
}

.section-header-ita {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    z-index: 2;
}

.section-title-ita {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    background: var(--primary-gradient-ita);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.section-subtitle-ita {
    font-size: 1.2rem;
    color: #05536f;
    max-width: 600px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

.main-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    border: none;
    overflow: hidden;
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.main-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--hover-shadow);
}

.card-header {
    background: var(--primary-gradient-ita);
    color: white;
    border: none;
    padding: 1.5rem 2rem;
    font-size: 1.3rem;
    font-weight: 600;
    position: relative;
    overflow: hidden;
}

.card-header::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: left 0.6s;
}

.main-card:hover .card-header::before {
    left: 100%;
}

.card-body {
    padding: 0;
}

.indicator-group {
    margin-bottom: 2rem;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.indicator-item {
    border: none;
    transition: var(--transition);
    position: relative;
    background: white;
    margin-bottom: 2px;
}

.indicator-item:last-child {
    margin-bottom: 0;
}

.indicator-item:hover {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    transform: translateX(5px);
}

.indicator-item.active {
    background: var(--primary-gradient-ita);
    color: white;
}

.indicator-item.active:hover {
    background: var(--secondary-gradient);
}

.indicator-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: inherit;
}

.indicator-text {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0;
    opacity: 0.9;
    color: rgba(9, 55, 3, 0.95);
}

.sub-item {
    padding: 1rem 1.5rem 1rem 3rem;
    border-left: 3px solid #e9ecef;
    margin: 0;
    background: #f8f9fa;
    font-size: 0.9rem;
    transition: var(--transition);
}

.sub-item:hover {
    background: #e9ecef;
    border-left-color: var(--primary-gradient-ita);
}

.icon-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    margin-right: 1rem;
    font-size: 1.2rem;
}

.indicator-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2rem;
    height: 2rem;
    background: rgba(103, 126, 234, 0.1);
    color: #667eea;
    border-radius: 50%;
    font-weight: 600;
    font-size: 0.8rem;
    margin-right: 1rem;
    flex-shrink: 0;
}

.indicator-item.active .indicator-number {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.loading-spinner {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top-color: currentColor;
    animation: spin 1s ease-in-out infinite;
    margin-left: 0.5rem;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nacc-section {
        padding: 2rem 0;
    }

    .card-header {
        padding: 1rem 1.5rem;
        font-size: 1.1rem;
    }

    .section-subtitle-ita {
        font-size: 1rem;
        padding: 0 1rem;
    }

    .sub-item {
        padding: 0.8rem 1rem 0.8rem 2rem;
    }
}

@media (max-width: 576px) {
    .indicator-item {
        padding: 1rem;
    }

    .indicator-title {
        font-size: 1rem;
    }

    .indicator-text {
        font-size: 0.85rem;
    }

    .sub-item {
        padding: 0.7rem 0.8rem 0.7rem 1.5rem;
        font-size: 0.85rem;
    }
}

/* Animation Classes */
.animate-fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

.animate-slide-up {
    animation: slideUp 0.8s ease-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Accessibility */
.indicator-item:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
