/* ========================================
   AV Studio SRL - Main Stylesheet
   ======================================== */

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

:root {
    --primary-color: #0055b8;
    --secondary-color: #003d82;
    --accent-color: #0091d5;
    --dark-color: #111827;
    --light-color: #f8fafc;
    --text-color: #374151;
    --border-radius: 14px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --success-color: #059669;
    --warning-color: #d97706;
    --danger-color: #dc2626;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.04), 0 10px 20px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.06), 0 20px 48px rgba(0,0,0,0.08);
    --shadow-xl: 0 20px 40px rgba(0,0,0,0.08), 0 30px 60px rgba(0,0,0,0.12);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.7;
    color: var(--text-color);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    letter-spacing: -0.01em;
}

/* ========================================
   Header & Navigation (White / Light)
   ======================================== */
header {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    color: var(--dark-color);
    padding: 0.5rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

header.scrolled {
    padding: 0.3rem 0;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2.5rem;
    position: relative;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.logo-link:hover {
    transform: translateY(-1px);
}

.logo {
    height: 62px;
    width: auto;
    transition: all 0.4s ease;
}

header.scrolled .logo {
    height: 50px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 0.1rem;
    align-items: center;
}

.nav-links a {
    color: #4b5563;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.55rem 1rem;
    border-radius: 8px;
    position: relative;
    font-size: 0.88rem;
    letter-spacing: 0.01em;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 20px;
    height: 2px;
    background: var(--primary-color);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.nav-links a:hover::after {
    transform: translateX(-50%) scaleX(1);
}

/* Active nav state */
.nav-links a.active {
    color: var(--primary-color);
    font-weight: 600;
}

.nav-links a.active::after {
    transform: translateX(-50%) scaleX(1);
    width: 24px;
}

/* CTA button in nav */
.nav-links a.nav-cta {
    background: var(--primary-color);
    color: white;
    font-weight: 600;
    padding: 0.55rem 1.4rem;
    border-radius: 50px;
    margin-left: 0.5rem;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 85, 184, 0.2);
}

.nav-links a.nav-cta::after {
    display: none;
}

.nav-links a.nav-cta:hover {
    background: var(--secondary-color);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 85, 184, 0.35);
}

.nav-links a.nav-cta.active {
    background: var(--secondary-color);
}

.menu-toggle {
    display: none;
    background: transparent;
    border: 1px solid rgba(0, 0, 0, 0.12);
    color: var(--dark-color);
    font-size: 1.3rem;
    cursor: pointer;
    padding: 0.5rem 0.7rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.menu-toggle:hover {
    background: rgba(0, 0, 0, 0.04);
}

.menu-toggle:active {
    transform: scale(0.95);
}

/* ========================================
   Page Header (for inner pages)
   ======================================== */
.page-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 150px 2rem 90px;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-top: 0;
}

.page-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(0, 145, 213, 0.2), transparent 70%);
    border-radius: 50%;
}

.page-header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 80px;
    background: var(--light-color);
    clip-path: ellipse(55% 100% at 50% 100%);
}

.page-header h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
    letter-spacing: -0.03em;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 650px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    font-weight: 300;
}

/* Breadcrumb */
.breadcrumb {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.2rem 2rem;
    font-size: 0.9rem;
    color: #666;
}

.breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.breadcrumb span {
    margin: 0 0.5rem;
    color: #999;
}

/* ========================================
   Hero Section (Home only)
   ======================================== */
.hero {
    position: relative;
    color: white;
    padding: 180px 2rem 120px;
    text-align: center;
    overflow: hidden;
    min-height: 600px;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    background-size: cover;
    background-position: center;
}

.hero-slide.active {
    opacity: 1;
}

.hero-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.6), rgba(0, 73, 153, 0.6));
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, transparent 0%, rgba(0, 0, 0, 0.3) 100%);
    z-index: 1;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.slider-indicators {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 2;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: 2px solid white;
    cursor: pointer;
    transition: var(--transition);
}

.indicator.active {
    background: white;
    width: 40px;
    border-radius: 6px;
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    z-index: 2;
    font-size: 1.5rem;
}

.slider-arrow:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: translateY(-50%) scale(1.1);
}

.slider-arrow.prev { left: 30px; }
.slider-arrow.next { right: 30px; }

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease;
}

.hero p {
    font-size: 1.4rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    animation: fadeInUp 1s ease 0.3s both;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-top: 3rem;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease 0.6s both;
}

.stat-item { text-align: center; }

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    display: block;
    color: #fff;
}

.stat-label {
    font-size: 1rem;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cta-button {
    display: inline-block;
    background: white;
    color: var(--primary-color);
    padding: 1rem 2.5rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 1s ease 0.9s both;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    background: var(--light-color);
}

/* ========================================
   Section Styles
   ======================================== */
section {
    padding: 100px 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 2.6rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.2;
}

.section-subtitle {
    text-align: center;
    font-size: 1.15rem;
    color: #6b7280;
    margin-bottom: 4rem;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

/* ========================================
   About Section
   ======================================== */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    text-align: justify;
}

.about-text p { margin-bottom: 1.5rem; }

.about-features {
    display: grid;
    gap: 1.5rem;
}

.feature-item {
    background: var(--light-color);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-color);
    transition: var(--transition);
}

.feature-item:hover {
    transform: translateX(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.feature-item i {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.feature-item h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

/* Timeline (Chi Siamo page) */
.timeline {
    position: relative;
    max-width: 900px;
    margin: 4rem auto 0;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary-color), var(--accent-color));
    border-radius: 3px;
}

.timeline-item {
    display: flex;
    justify-content: flex-end;
    padding: 0 2rem 3rem;
    position: relative;
    width: 50%;
}

.timeline-item:nth-child(even) {
    justify-content: flex-start;
    align-self: flex-end;
    margin-left: 50%;
}

.timeline-item::after {
    content: '';
    position: absolute;
    top: 0.5rem;
    width: 16px;
    height: 16px;
    background: var(--primary-color);
    border: 3px solid white;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 102, 204, 0.4);
    z-index: 1;
}

.timeline-item:nth-child(odd)::after {
    right: -8px;
}

.timeline-item:nth-child(even)::after {
    left: -8px;
}

.timeline-content {
    background: white;
    padding: 1.5rem 2rem;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.timeline-year {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
}

.timeline-content h3 {
    color: var(--dark-color);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.timeline-content p {
    color: #666;
    line-height: 1.7;
    font-size: 0.95rem;
}

/* ========================================
   Services Section
   ======================================== */
.services {
    background: var(--light-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
}

.service-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    transform-style: preserve-3d;
    perspective: 1000px;
    position: relative;
}

.service-card:hover {
    transform: translateY(-15px) rotateX(2deg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.1), rgba(0, 163, 224, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.service-card:hover::before {
    opacity: 1;
}

.service-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.service-content {
    padding: 2rem;
}

.service-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.service-content p {
    color: #666;
    line-height: 1.7;
}

/* ========================================
   Compliance Section
   ======================================== */
.compliance {
    background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
    position: relative;
}

.compliance::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color), var(--success-color));
}

.compliance-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3.5rem;
    font-size: 1.1rem;
    color: #555;
    line-height: 1.8;
}

.compliance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.compliance-card {
    background: white;
    border-radius: 16px;
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 102, 204, 0.08);
}

.compliance-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.compliance-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(0, 102, 204, 0.15);
    border-color: rgba(0, 102, 204, 0.2);
}

.compliance-card:hover::before {
    transform: scaleX(1);
}

.compliance-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white;
    box-shadow: 0 6px 20px rgba(0, 102, 204, 0.3);
    transition: all 0.4s ease;
}

.compliance-card:hover .compliance-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 25px rgba(0, 102, 204, 0.4);
}

.compliance-card h3 {
    font-size: 1.3rem;
    color: var(--dark-color);
    margin-bottom: 0.8rem;
    font-weight: 700;
}

.compliance-card .doc-label {
    display: inline-block;
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.1), rgba(0, 163, 224, 0.1));
    color: var(--primary-color);
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.compliance-card p {
    color: #666;
    line-height: 1.7;
    font-size: 0.95rem;
}

/* Compliance card download button */
.compliance-card .btn-download {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.2rem;
    padding: 0.6rem 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0, 102, 204, 0.2);
}

.compliance-card .btn-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 18px rgba(0, 102, 204, 0.35);
}

.compliance-card:nth-child(1) .btn-download {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    box-shadow: 0 3px 10px rgba(99, 102, 241, 0.2);
}
.compliance-card:nth-child(1) .btn-download:hover {
    box-shadow: 0 5px 18px rgba(99, 102, 241, 0.35);
}

.compliance-card:nth-child(2) .btn-download {
    background: linear-gradient(135deg, #059669, #10b981);
    box-shadow: 0 3px 10px rgba(5, 150, 105, 0.2);
}
.compliance-card:nth-child(2) .btn-download:hover {
    box-shadow: 0 5px 18px rgba(5, 150, 105, 0.35);
}

.compliance-card:nth-child(3) .btn-download {
    background: linear-gradient(135deg, #dc2626, #ef4444);
    box-shadow: 0 3px 10px rgba(220, 38, 38, 0.2);
}
.compliance-card:nth-child(3) .btn-download:hover {
    box-shadow: 0 5px 18px rgba(220, 38, 38, 0.35);
}

.compliance-card:nth-child(4) .btn-download {
    background: linear-gradient(135deg, #d97706, #f59e0b);
    box-shadow: 0 3px 10px rgba(217, 119, 6, 0.2);
}
.compliance-card:nth-child(4) .btn-download:hover {
    box-shadow: 0 5px 18px rgba(217, 119, 6, 0.35);
}

/* ========================================
   Certificazioni & Qualifiche Section
   ======================================== */
.certifications-section {
    padding: 80px 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.cert-card {
    background: white;
    border-radius: 16px;
    padding: 2rem 1.5rem;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.06);
    position: relative;
    overflow: hidden;
}

.cert-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.cert-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.cert-card:hover::after {
    transform: scaleX(1);
}

.cert-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.2rem;
    font-size: 1.8rem;
    color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.cert-icon.iso { background: linear-gradient(135deg, #0066cc, #00a3e0); }
.cert-icon.legalita { background: linear-gradient(135deg, #059669, #10b981); }
.cert-icon.sostenibilita { background: linear-gradient(135deg, #7c3aed, #a78bfa); }

.cert-card h4 {
    font-size: 1.1rem;
    color: var(--dark-color);
    margin-bottom: 0.3rem;
    font-weight: 700;
}

.cert-card .cert-name {
    font-size: 0.85rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.8rem;
    display: block;
}

.cert-card p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.6;
}

.cert-btn-download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    margin-top: 1.5rem;
    padding: 0.75rem 1.8rem;
    background: linear-gradient(135deg, #7c3aed, #a78bfa);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 14px rgba(124, 58, 237, 0.3);
    position: relative;
    overflow: hidden;
}

.cert-btn-download::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    transition: left 0.6s ease;
}

.cert-btn-download:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 22px rgba(124, 58, 237, 0.45);
}

.cert-btn-download:hover::before {
    left: 100%;
}

.cert-btn-download i {
    font-size: 1rem;
}

@media (max-width: 768px) {
    .cert-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }
}

/* Compliance card color variants */
.compliance-card:nth-child(1) .compliance-icon { background: linear-gradient(135deg, #6366f1, #8b5cf6); }
.compliance-card:nth-child(1):hover { border-color: rgba(99, 102, 241, 0.2); }
.compliance-card:nth-child(1)::before { background: linear-gradient(90deg, #6366f1, #8b5cf6); }
.compliance-card:nth-child(1) .doc-label { background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1)); color: #6366f1; }

.compliance-card:nth-child(2) .compliance-icon { background: linear-gradient(135deg, #059669, #10b981); }
.compliance-card:nth-child(2):hover { border-color: rgba(5, 150, 105, 0.2); }
.compliance-card:nth-child(2)::before { background: linear-gradient(90deg, #059669, #10b981); }
.compliance-card:nth-child(2) .doc-label { background: linear-gradient(135deg, rgba(5, 150, 105, 0.1), rgba(16, 185, 129, 0.1)); color: #059669; }

.compliance-card:nth-child(3) .compliance-icon { background: linear-gradient(135deg, #dc2626, #ef4444); }
.compliance-card:nth-child(3):hover { border-color: rgba(220, 38, 38, 0.2); }
.compliance-card:nth-child(3)::before { background: linear-gradient(90deg, #dc2626, #ef4444); }
.compliance-card:nth-child(3) .doc-label { background: linear-gradient(135deg, rgba(220, 38, 38, 0.1), rgba(239, 68, 68, 0.1)); color: #dc2626; }

.compliance-card:nth-child(4) .compliance-icon { background: linear-gradient(135deg, #d97706, #f59e0b); }
.compliance-card:nth-child(4):hover { border-color: rgba(217, 119, 6, 0.2); }
.compliance-card:nth-child(4)::before { background: linear-gradient(90deg, #d97706, #f59e0b); }
.compliance-card:nth-child(4) .doc-label { background: linear-gradient(135deg, rgba(217, 119, 6, 0.1), rgba(245, 158, 11, 0.1)); color: #d97706; }

.compliance-card:nth-child(5) .compliance-icon { background: linear-gradient(135deg, #0891b2, #06b6d4); }
.compliance-card:nth-child(5):hover { border-color: rgba(8, 145, 178, 0.2); }
.compliance-card:nth-child(5)::before { background: linear-gradient(90deg, #0891b2, #06b6d4); }
.compliance-card:nth-child(5) .doc-label { background: linear-gradient(135deg, rgba(8, 145, 178, 0.1), rgba(6, 182, 212, 0.1)); color: #0891b2; }
.compliance-card:nth-child(5) .btn-download { background: linear-gradient(135deg, #0891b2, #06b6d4); box-shadow: 0 3px 10px rgba(8, 145, 178, 0.2); }
.compliance-card:nth-child(5) .btn-download:hover { box-shadow: 0 5px 18px rgba(8, 145, 178, 0.35); }

.compliance-card:nth-child(6) .compliance-icon { background: linear-gradient(135deg, #e11d48, #f43f5e); }
.compliance-card:nth-child(6):hover { border-color: rgba(225, 29, 72, 0.2); }
.compliance-card:nth-child(6)::before { background: linear-gradient(90deg, #e11d48, #f43f5e); }
.compliance-card:nth-child(6) .doc-label { background: linear-gradient(135deg, rgba(225, 29, 72, 0.1), rgba(244, 63, 94, 0.1)); color: #e11d48; }
.compliance-card:nth-child(6) .btn-download { background: linear-gradient(135deg, #e11d48, #f43f5e); box-shadow: 0 3px 10px rgba(225, 29, 72, 0.2); }
.compliance-card:nth-child(6) .btn-download:hover { box-shadow: 0 5px 18px rgba(225, 29, 72, 0.35); }

.compliance-card:nth-child(7) .compliance-icon { background: linear-gradient(135deg, #4f46e5, #6366f1); }
.compliance-card:nth-child(7):hover { border-color: rgba(79, 70, 229, 0.2); }
.compliance-card:nth-child(7)::before { background: linear-gradient(90deg, #4f46e5, #6366f1); }
.compliance-card:nth-child(7) .doc-label { background: linear-gradient(135deg, rgba(79, 70, 229, 0.1), rgba(99, 102, 241, 0.1)); color: #4f46e5; }
.compliance-card:nth-child(7) .btn-download { background: linear-gradient(135deg, #4f46e5, #6366f1); box-shadow: 0 3px 10px rgba(79, 70, 229, 0.2); }
.compliance-card:nth-child(7) .btn-download:hover { box-shadow: 0 5px 18px rgba(79, 70, 229, 0.35); }

.compliance-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-top: 3.5rem;
    padding: 2rem;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    flex-wrap: wrap;
}

.compliance-badge-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: #555;
    font-size: 0.95rem;
    font-weight: 500;
}

.compliance-badge-item i {
    color: var(--success-color);
    font-size: 1.3rem;
}

/* ========================================
   Clients Section
   ======================================== */
.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    align-items: center;
    justify-items: center;
}

.client-logo {
    max-width: 180px;
    height: auto;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: var(--transition);
    padding: 1rem;
}

.client-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

/* ========================================
   Coverage / Map Section
   ======================================== */
.mappa-italia {
    background: var(--light-color);
}

.mappa-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.mappa-info { padding: 2rem; }

.mappa-info h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.coverage-stats {
    display: grid;
    gap: 1.5rem;
    margin-top: 2rem;
}

.coverage-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.coverage-item:hover {
    transform: translateX(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.coverage-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.coverage-text h4 {
    font-size: 1.3rem;
    margin-bottom: 0.3rem;
    color: var(--dark-color);
}

.coverage-text p {
    color: #666;
    margin: 0;
}

.mappa-visual {
    position: relative;
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.italia-map-container {
    width: 100%;
    max-width: 450px;
    position: relative;
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.1), rgba(0, 163, 224, 0.1));
    border-radius: 24px;
    padding: 3rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.italia-regions {
    display: grid;
    gap: 2rem;
}

.region-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border-left: 4px solid var(--primary-color);
}

.region-item:hover {
    transform: translateX(10px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 102, 204, 0.2);
    border-left-width: 6px;
}

.region-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(0, 102, 204, 0.3);
}

.region-content { flex: 1; }

.region-content h4 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 0.3rem;
    font-weight: 700;
}

.region-content p {
    color: #666;
    margin: 0;
    font-size: 0.95rem;
}

.region-badge {
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-block;
    margin-top: 0.5rem;
}

/* ========================================
   E-learning Section
   ======================================== */
.elearning {
    background: var(--light-color);
    color: var(--text-color);
    position: relative;
    overflow: hidden;
}

.elearning::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -15%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 145, 213, 0.08), transparent 70%);
    border-radius: 50%;
}

.elearning-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.elearning-text { padding: 2rem; }

.elearning-text h3 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    color: var(--dark-color);
}

.elearning-text p {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: #555;
}

.elearning-features {
    display: grid;
    gap: 1rem;
    margin: 2rem 0;
}

.elearning-feature {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 12px;
    transition: var(--transition);
    border-left: 4px solid var(--primary-color);
    box-shadow: var(--shadow-sm);
}

.elearning-feature:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-md);
    border-left-color: var(--accent-color);
}

.elearning-feature i {
    font-size: 1.8rem;
    color: var(--primary-color);
    background: rgba(0, 85, 184, 0.08);
    padding: 0.8rem;
    border-radius: 12px;
}

.elearning-btn {
    display: inline-block;
    padding: 1.2rem 3rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.2rem;
    transition: var(--transition);
    box-shadow: 0 6px 20px rgba(0, 85, 184, 0.25);
    margin-top: 2rem;
}

.elearning-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 85, 184, 0.35);
}

.elearning-visual {
    position: relative;
    padding: 2rem;
}

.elearning-icon {
    font-size: 15rem;
    color: rgba(0, 85, 184, 0.06);
    text-align: center;
    animation: float 3s ease-in-out infinite;
}

.elearning-feature strong {
    color: var(--dark-color);
}

.elearning-feature p {
    color: #666;
}

/* ========================================
   Contact / Lavora con Noi Section
   ======================================== */
.contact {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.contact .section-title,
.contact .section-subtitle {
    color: white;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-info {
    background: rgba(255, 255, 255, 0.1);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    backdrop-filter: blur(10px);
}

.contact-item {
    display: flex;
    align-items: start;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.contact-item i {
    font-size: 1.8rem;
    color: #fff;
    margin-top: 0.2rem;
}

.contact-item-content h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.contact-item-content p,
.contact-item-content a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
}

.contact-item-content a:hover {
    color: #fff;
    text-decoration: underline;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: var(--transition);
}

.social-links a:hover {
    background: white;
    color: var(--primary-color);
    transform: translateY(-3px);
}

/* Form Styles */
.contact-form {
    background: white;
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.form-group { margin-bottom: 1.5rem; }

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--dark-color);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.9rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.file-input-wrapper {
    position: relative;
    overflow: hidden;
    display: inline-block;
    width: 100%;
}

.file-input-wrapper input[type=file] {
    position: absolute;
    left: -9999px;
}

.file-input-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.9rem;
    border: 2px dashed #ddd;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    background: var(--light-color);
}

.file-input-label:hover {
    border-color: var(--primary-color);
    background: #e8f4ff;
}

.file-name {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: #666;
}

.submit-btn {
    width: 100%;
    padding: 1.1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 102, 204, 0.4);
}

/* Success Message */
.success-message {
    display: none;
    background: #4CAF50;
    color: white;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    text-align: center;
}

.success-message.show {
    display: block;
    animation: fadeInUp 0.5s ease;
}

/* ========================================
   Footer
   ======================================== */
footer {
    background: linear-gradient(180deg, var(--dark-color) 0%, #0a0f1a 100%);
    color: white;
    padding: 4rem 2rem 1.5rem;
    text-align: center;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color), var(--primary-color));
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    text-align: left;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.footer-section p,
.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    line-height: 2;
}

.footer-section a:hover { color: white; }

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

/* ========================================
   WhatsApp Button
   ======================================== */
.whatsapp-float {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5);
    z-index: 999;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.7);
}

.whatsapp-float::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #25D366;
    animation: ripple 2s infinite;
    z-index: -1;
}

.whatsapp-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #25D366, #128C7E);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    cursor: pointer;
    z-index: 999;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
    text-decoration: none;
}

.whatsapp-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.6);
}

.whatsapp-button i {
    font-size: 2rem;
    color: white;
}

.whatsapp-tooltip {
    position: absolute;
    right: 75px;
    background: white;
    color: #333;
    padding: 0.8rem 1.2rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.whatsapp-button:hover .whatsapp-tooltip {
    opacity: 1;
    right: 80px;
}

/* ========================================
   Back to Top
   ======================================== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 102, 204, 0.4);
    z-index: 999;
    transition: all 0.3s ease;
}

.back-to-top.show {
    display: flex;
    animation: fadeInUp 0.5s ease;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 30px rgba(0, 102, 204, 0.6);
}

.back-to-top:active {
    transform: translateY(-2px);
}

.back-to-top i {
    font-size: 1.5rem;
    color: white;
}

/* ========================================
   Progress Bar
   ======================================== */
.progress-bar-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: transparent;
    z-index: 9999;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-color), var(--primary-color));
    width: 0%;
    transition: width 0.1s ease;
    box-shadow: 0 0 10px var(--accent-color);
}

/* ========================================
   Home Preview Sections
   ======================================== */
.home-preview {
    padding: 80px 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.preview-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
}

.preview-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.preview-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.preview-card-content {
    padding: 1.5rem;
}

.preview-card-content h3 {
    font-size: 1.2rem;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.preview-card-content p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
}

.btn-outline {
    display: inline-block;
    padding: 0.9rem 2.5rem;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    text-align: center;
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 102, 204, 0.3);
}

.text-center { text-align: center; }

/* Home compliance banner */
.compliance-banner {
    background: linear-gradient(135deg, var(--light-color), #e8f0fe);
    border-radius: 16px;
    padding: 3rem;
    display: flex;
    align-items: center;
    gap: 3rem;
    margin: 0 auto;
    max-width: 1400px;
    transition: var(--transition);
    border: 1px solid rgba(0, 102, 204, 0.1);
}

.compliance-banner:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.compliance-banner-icon {
    font-size: 4rem;
    color: var(--primary-color);
}

.compliance-banner-text h3 {
    font-size: 1.5rem;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.compliance-banner-text p {
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.7;
}

.btn-primary {
    display: inline-block;
    padding: 0.8rem 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 102, 204, 0.4);
}

/* Home clients strip */
.clients-strip {
    padding: 60px 2rem;
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
}

.clients-strip h3 {
    font-size: 1.5rem;
    color: #999;
    font-weight: 400;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
}

.clients-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.clients-logos img {
    max-width: 140px;
    height: auto;
    filter: grayscale(100%);
    opacity: 0.5;
    transition: var(--transition);
}

.clients-logos img:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

/* ========================================
   Animations
   ======================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes ripple {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    nav {
        padding: 0 1.5rem;
    }

    .nav-links {
        position: fixed;
        left: -100%;
        top: 72px;
        flex-direction: column;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(24px);
        width: 100%;
        text-align: center;
        transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        padding: 1rem 0 1.5rem;
        gap: 0;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
        border-top: 1px solid rgba(0, 0, 0, 0.06);
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links li {
        margin: 0.2rem 0;
        width: 100%;
    }

    .nav-links a {
        display: block;
        padding: 0.9rem 2rem;
        margin: 0 1rem;
        border-radius: 10px;
        font-size: 1rem;
        color: #4b5563;
    }

    .nav-links a::after {
        display: none;
    }

    .nav-links a:hover,
    .nav-links a.active {
        background: rgba(0, 85, 184, 0.06);
        color: var(--primary-color);
    }

    .nav-links a.nav-cta {
        margin: 0.5rem 1.5rem 0;
        text-align: center;
    }

    .logo {
        height: 48px;
    }

    header.scrolled .logo {
        height: 42px;
    }

    /* Page header mobile */
    .page-header {
        padding: 120px 1.5rem 60px;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .page-header p {
        font-size: 1.1rem;
    }

    /* Hero mobile */
    .hero {
        min-height: 500px;
        padding-top: 150px;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .hero-stats {
        gap: 2rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .slider-arrow {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .slider-arrow.prev { left: 10px; }
    .slider-arrow.next { right: 10px; }
    .slider-indicators { bottom: 20px; }

    /* Grid layouts mobile */
    .about-content,
    .contact-wrapper,
    .mappa-container,
    .elearning-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .compliance-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 2rem;
    }

    section {
        padding: 60px 1.5rem;
    }

    /* Timeline mobile */
    .timeline::before {
        left: 20px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 50px;
        padding-right: 0;
    }

    .timeline-item:nth-child(even) {
        margin-left: 0;
        padding-left: 50px;
    }

    .timeline-item::after,
    .timeline-item:nth-child(odd)::after,
    .timeline-item:nth-child(even)::after {
        left: 12px;
        right: auto;
    }

    /* WhatsApp mobile */
    .whatsapp-button {
        width: 55px;
        height: 55px;
        bottom: 20px;
        right: 20px;
    }

    .whatsapp-button i {
        font-size: 1.8rem;
    }

    .whatsapp-tooltip {
        display: none;
    }

    .back-to-top {
        width: 45px;
        height: 45px;
        bottom: 85px;
        right: 20px;
    }

    .back-to-top i {
        font-size: 1.2rem;
    }

    /* E-learning mobile */
    .elearning-text h3 {
        font-size: 1.8rem;
    }

    .elearning-text p {
        font-size: 1rem;
    }

    .elearning-icon {
        font-size: 8rem;
    }

    /* Mappa mobile */
    .italia-map-container {
        max-width: 100%;
        padding: 2rem 1.5rem;
    }

    .region-item {
        padding: 1.2rem;
        gap: 1rem;
    }

    .region-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    .region-content h4 {
        font-size: 1.1rem;
    }

    .region-content p {
        font-size: 0.85rem;
    }

    /* Compliance banner mobile */
    .compliance-banner {
        flex-direction: column;
        text-align: center;
        padding: 2rem;
        gap: 1.5rem;
    }

    .compliance-badge {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
        padding: 1.5rem;
    }

    /* Preview grid mobile */
    .preview-grid {
        grid-template-columns: 1fr;
    }

    .clients-logos {
        gap: 2rem;
    }

    .clients-logos img {
        max-width: 100px;
    }
}

/* ========================================
   Whistleblowing Section
   ======================================== */
.whistleblowing-section {
    background: linear-gradient(180deg, #f0fdf4 0%, #ecfdf5 50%, var(--light-color) 100%);
    padding: 80px 2rem;
    max-width: 100%;
    position: relative;
}

.whistleblowing-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #059669, #10b981, #34d399);
}

.wb-header {
    text-align: center;
}

.wb-icon {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, #059669, #10b981);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2.5rem;
    color: white;
    box-shadow: 0 8px 30px rgba(5, 150, 105, 0.3);
}

.wb-info {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    border-left: 4px solid #059669;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    line-height: 1.8;
    color: #555;
}

.wb-features {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.wb-feature {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.8rem 1.5rem;
    background: white;
    border-radius: 50px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    font-weight: 600;
    color: #059669;
    font-size: 0.9rem;
}

.wb-feature i {
    font-size: 1.2rem;
}

.wb-form {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

@media (max-width: 768px) {
    .wb-features {
        flex-direction: column;
        align-items: center;
    }
}

/* ========================================
   Photo Gallery (Chi Siamo)
   ======================================== */
.photo-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.photo-gallery-item {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    position: relative;
    transition: all 0.4s ease;
}

.photo-gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.18);
}

.photo-gallery-item img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.photo-gallery-item:hover img {
    transform: scale(1.05);
}

.photo-gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.75), transparent);
    color: white;
    padding: 2rem 1.5rem 1.2rem;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Team card with real photo */
.team-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

/* ========================================
   Staggered Fade-in Animations
   ======================================== */
.fade-in-stagger > *:nth-child(1) { transition-delay: 0s; }
.fade-in-stagger > *:nth-child(2) { transition-delay: 0.1s; }
.fade-in-stagger > *:nth-child(3) { transition-delay: 0.2s; }
.fade-in-stagger > *:nth-child(4) { transition-delay: 0.3s; }
.fade-in-stagger > *:nth-child(5) { transition-delay: 0.4s; }
.fade-in-stagger > *:nth-child(6) { transition-delay: 0.5s; }

/* ========================================
   KPI / Numeri Infographic Section
   ======================================== */
.kpi-section {
    background: linear-gradient(135deg, var(--dark-color) 0%, #2d3748 100%);
    padding: 80px 2rem;
    max-width: 100%;
    position: relative;
    overflow: hidden;
}

.kpi-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 163, 224, 0.15), transparent 70%);
    border-radius: 50%;
}

.kpi-section .section-title,
.kpi-section .section-subtitle {
    color: white;
}

.kpi-section .section-subtitle {
    color: rgba(255, 255, 255, 0.7);
}

.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.kpi-item {
    text-align: center;
    padding: 2rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.4s ease;
    position: relative;
}

.kpi-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
    border-color: rgba(0, 163, 224, 0.3);
}

.kpi-item .kpi-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
    color: white;
}

.kpi-item:nth-child(1) .kpi-icon { background: linear-gradient(135deg, #0066cc, #00a3e0); }
.kpi-item:nth-child(2) .kpi-icon { background: linear-gradient(135deg, #059669, #10b981); }
.kpi-item:nth-child(3) .kpi-icon { background: linear-gradient(135deg, #d97706, #f59e0b); }
.kpi-item:nth-child(4) .kpi-icon { background: linear-gradient(135deg, #7c3aed, #a78bfa); }
.kpi-item:nth-child(5) .kpi-icon { background: linear-gradient(135deg, #dc2626, #ef4444); }

.kpi-value {
    font-size: 2.8rem;
    font-weight: 800;
    color: white;
    display: block;
    line-height: 1.1;
    margin-bottom: 0.3rem;
}

.kpi-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

/* ========================================
   Team / Leadership Section
   ======================================== */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.team-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    text-align: center;
}

.team-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

.team-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 2rem auto 1rem;
    font-size: 3rem;
    color: white;
    box-shadow: 0 6px 20px rgba(0, 102, 204, 0.3);
}

.team-card-content {
    padding: 0 2rem 2rem;
}

.team-card-content h3 {
    font-size: 1.3rem;
    color: var(--dark-color);
    margin-bottom: 0.3rem;
}

.team-card-content .team-role {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: block;
}

.team-card-content p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.7;
}

.team-card-social {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    margin-top: 1.2rem;
}

.team-card-social a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--light-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.9rem;
}

.team-card-social a:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* ========================================
   Testimonials Section
   ======================================== */
.testimonials {
    background: var(--light-color);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: white;
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    transition: all 0.4s ease;
    position: relative;
}

.testimonial-card::before {
    content: '\201C';
    font-size: 5rem;
    color: rgba(0, 102, 204, 0.1);
    position: absolute;
    top: 10px;
    left: 20px;
    font-family: Georgia, serif;
    line-height: 1;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.testimonial-text {
    color: #555;
    font-size: 1.05rem;
    line-height: 1.8;
    font-style: italic;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial-author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
}

.testimonial-author-info h4 {
    color: var(--dark-color);
    font-size: 1rem;
    margin-bottom: 0.2rem;
}

.testimonial-author-info span {
    color: #999;
    font-size: 0.85rem;
}

.testimonial-stars {
    color: #f59e0b;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

/* ========================================
   Interactive Italy Map
   ======================================== */
.map-svg-container {
    max-width: 400px;
    margin: 0 auto;
}

.map-svg-container svg {
    width: 100%;
    height: auto;
}

.map-svg-container svg path {
    fill: #c5d5e4;
    stroke: white;
    stroke-width: 1;
    transition: all 0.3s ease;
    cursor: pointer;
}

.map-svg-container svg path:hover {
    fill: var(--accent-color);
    filter: drop-shadow(0 2px 6px rgba(0, 102, 204, 0.3));
}

.map-svg-container svg path.active {
    fill: var(--primary-color);
}

.map-tooltip {
    position: absolute;
    background: var(--dark-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: 10;
    white-space: nowrap;
}

.map-tooltip.show {
    opacity: 1;
}

/* ========================================
   Cookie Banner
   ======================================== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(26, 26, 26, 0.97);
    backdrop-filter: blur(10px);
    color: white;
    padding: 1.2rem 2rem;
    z-index: 10000;
    display: none;
    box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.cookie-banner.show {
    display: block;
    animation: slideUp 0.4s ease;
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.cookie-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.cookie-text {
    flex: 1;
    min-width: 300px;
}

.cookie-text p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
}

.cookie-text a {
    color: var(--accent-color);
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    gap: 0.8rem;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 0.7rem 1.5rem;
    border-radius: 8px;
    border: none;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.cookie-btn-accept {
    background: var(--primary-color);
    color: white;
}

.cookie-btn-accept:hover {
    background: var(--secondary-color);
    transform: translateY(-1px);
}

.cookie-btn-reject {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.cookie-btn-reject:hover {
    background: rgba(255, 255, 255, 0.2);
}

@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }

    .cookie-buttons {
        width: 100%;
        justify-content: center;
    }

    .kpi-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .kpi-value {
        font-size: 2rem;
    }

    .team-grid {
        grid-template-columns: 1fr;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }
}
