@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Space+Mono:wght@400;700&display=swap');

:root {
    --primary: #043873;
    --secondary: #064b96;
    --accent: #4FA3F7;
    --accent-glow: #2176d2;
    --success: #A0E665;
    --warning: #ffaa00;
    --text-primary: #ffffff;
    --text-secondary: #b9cbe6;
    --text-tertiary: #7a8592;

    --gradient-1: linear-gradient(135deg, #02183b 0%, #043873 50%, #011029 100%);
    --gradient-accent: linear-gradient(135deg, #4FA3F7 0%, #2176d2 100%);
    --gradient-premium: linear-gradient(135deg, #4FA3F7 0%, #A0E665 50%, #2176d2 100%);

    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 4rem;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);

    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'Space Mono', monospace;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background: linear-gradient(135deg, #02183b 0%, #043873 50%, #011029 100%);
    background-attachment: fixed;
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}


.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}


h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
}

h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);
}

h3 {
    font-size: 1.5rem;
}

p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.8;
}

a {
    text-decoration: none;
    color: inherit;
}

.gradient-text {
    background: var(--gradient-premium);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}


.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 2.2rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1.05rem;
    cursor: pointer;
    transition: color 0.2s ease;
    border: 2px solid transparent;
    background: transparent;
    text-decoration: none;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.btn .ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    transform: scale(0);
    opacity: 0.9;
    pointer-events: none;
    will-change: transform, opacity;
    animation: ripple-effect 0.6s ease-out forwards;
}

@keyframes ripple-effect {
    to {
        transform: scale(1);
        opacity: 0;
    }
}

.btn-primary {
    color: var(--text-primary);
    background: transparent;
    border-color: var(--accent);
    transition: border-color 0.4s ease;
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, #4FA3F7, #2176d2);
    clip-path: circle(0% at 50% 50%);
    transition: clip-path 1s ease;
    border-radius: inherit;
    z-index: -1;
}

.btn-primary:hover::before {
    clip-path: circle(150% at 50% 50%);
}

.btn-primary:hover {
    border-color: transparent;
}

.btn-secondary {
    border: 2px solid rgba(185, 203, 230, 0.6);
    color: var(--text-secondary);
    background: transparent;
}

.btn-secondary:hover {
    color: var(--accent);
}

.btn-large {
    padding: 1.5rem 4rem;
    font-size: 1.2rem;
}


.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(4, 56, 115, 0.7);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(79, 163, 247, 0.1);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
    padding: 0 2rem;
}

.site-header .container {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    height: 80px !important;
    padding: 0 2rem !important;
}

.site-header .main-nav {
    display: flex;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.56rem;
    font-weight: 800;
    height: 80px;
}

.logo img {
    height: 60px;
    width: auto;
    object-fit: contain;
    transition: transform var(--transition-base);
}

@media (max-width: 640px) {
    .logo img {
        height: 50px;
    }

    .logo {
        font-size: 1.3rem;
    }
}

.main-nav .nav-link {
    font-size: 1.25rem;
    line-height: 1;
}

.nav-cta {
    font-size: 1.05rem;
}

.logo-partheno {
    background: var(--gradient-premium);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.main-nav {
    display: flex;
    gap: 3rem;
    align-items: center;
}

.nav-link {
    color: var(--text-secondary);
    font-weight: 500;
    transition: color var(--transition-base);
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width var(--transition-base);
}

.nav-link:hover {
    color: var(--accent);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-cta {
    padding: 0.7rem 1.8rem;
    border-radius: 999px;
    background: transparent;
    color: var(--text-primary);
    font-weight: 600;
    border: 2px solid var(--accent);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    transition: border-color 0.4s ease;
}

.nav-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, #4FA3F7, #2176d2);
    clip-path: circle(0% at 50% 50%);
    transition: clip-path 1s ease;
    border-radius: inherit;
    z-index: -1;
}

.nav-cta:hover::before {
    clip-path: circle(150% at 50% 50%);
}

.nav-cta:hover {
    border-color: transparent;
}


.page-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

.hero {
    position: relative;
    padding: 6rem 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-gradient-1 {
    position: absolute;
    top: -50%;
    left: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(60px);
    animation: float 20s ease-in-out infinite;
}

.hero-gradient-2 {
    position: absolute;
    bottom: -30%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 255, 136, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(60px);
    animation: float-reverse 25s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(50px);
    }
}

@keyframes float-reverse {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-50px);
    }
}

.hero-particles {
    position: absolute;
    width: 100%;
    height: 100%;
}

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

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 999px;
    color: var(--accent);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 2rem;
}

.hero-text h1 {
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.hero-text>p {
    margin-bottom: 2.5rem;
    max-width: 500px;
    font-size: 1.2rem;
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 4rem;
    flex-wrap: wrap;
}

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

.stat {
    padding: 2rem;
    background: rgba(0, 212, 255, 0.05);
    border: 1px solid rgba(0, 212, 255, 0.1);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(10px);
    transition: all var(--transition-base);
}

.stat:hover {
    background: rgba(0, 212, 255, 0.1);
    border-color: rgba(0, 212, 255, 0.3);
    transform: translateY(-5px);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 0.5rem;
    font-family: var(--font-mono);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.floating-card {
    position: relative;
    width: 500px;
    height: 600px;
    background: transparent;
    border: none;
    border-radius: var(--radius-xl);
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: none;
    animation: none;
    box-shadow: none;
}

.hero-logo {
    width: 100%;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 30px rgba(0, 212, 255, 0.2));
    transform: scale(1.2);
    transform-origin: center;
    transition: transform var(--transition-base);
}

@media (max-width: 640px) {
    .hero-logo {
        transform: scale(1);
    }
}


.services {
    padding: 6rem 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.section-header p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto;
}

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

.service-card {
    position: relative;
    padding: 2.5rem;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.03) 0%, rgba(0, 255, 136, 0.02) 100%);
    border: 1px solid rgba(0, 212, 255, 0.15);
    border-radius: var(--radius-xl);
    backdrop-filter: blur(20px);
    transition: all var(--transition-base);
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1) 0%, transparent 50%, rgba(0, 255, 136, 0.05) 100%);
    opacity: 0;
    transition: opacity var(--transition-base);
    z-index: 0;
}

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

.service-card:hover {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.08) 0%, rgba(0, 255, 136, 0.05) 100%);
    border-color: rgba(0, 212, 255, 0.4);
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 212, 255, 0.15);
}

.service-icon {
    position: relative;
    z-index: 1;
    width: 70px;
    height: 70px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.15) 0%, rgba(0, 255, 136, 0.08) 100%);
    border: 2px solid rgba(0, 212, 255, 0.3);
    border-radius: var(--radius-md);
    padding: 1rem;
    backdrop-filter: blur(15px);
    transition: all var(--transition-base);
}

.service-card:hover .service-icon {
    transform: scale(1.15) rotateY(10deg);
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.25) 0%, rgba(0, 255, 136, 0.15) 100%);
    border-color: rgba(0, 212, 255, 0.6);
    box-shadow: 0 0 40px rgba(0, 212, 255, 0.3);
}

.service-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.service-card h3 {
    position: relative;
    z-index: 1;
    margin-bottom: 1rem;
    color: var(--text-primary);
    transition: color var(--transition-base);
}

.service-card:hover h3 {
    color: var(--accent);
}

.service-card p {
    position: relative;
    z-index: 1;
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

.service-link {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    color: var(--accent);
    font-weight: 600;
    transition: gap var(--transition-base);
    gap: 0.5rem;
}

.service-link:hover {
    gap: 1rem;
}



.features {
    padding: 6rem 0;
    position: relative;
}

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

.feature-item {
    padding: 2rem;
    background: linear-gradient(135deg, rgba(79, 163, 247, 0.06) 0%, rgba(160, 230, 101, 0.03) 100%);
    border: 1px solid rgba(79, 163, 247, 0.10);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(10px);
    text-align: center;
    color: var(--text-primary);
    box-shadow: 0 6px 30px rgba(10, 20, 30, 0.35);
    transform: translateY(0) scale(1) perspective(800px) translateZ(0);
    transform-origin: center center;

    transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275),
        background 0.2s ease-out,
        border-color 0.2s ease-out,
        box-shadow 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

.feature-item:hover {
    background: linear-gradient(135deg, rgba(79, 163, 247, 0.12) 0%, rgba(160, 230, 101, 0.06) 100%) !important;
    border-color: rgba(79, 163, 247, 0.25) !important;

    transform: translateY(-12px) scale(1.10) perspective(800px) translateZ(20px) !important;

    box-shadow:
        0 20px 60px rgba(10, 20, 30, 0.50),
        0 8px 25px rgba(79, 163, 247, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;

    transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275),
        background 0.2s ease-out,
        border-color 0.2s ease-out,
        box-shadow 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

.feature-item:not(:hover) {
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
        background 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.4s ease !important;
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-icon i {
    font-size: 4rem;
    color: #4FA3F7;
}

.feature-item h4 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.feature-item p {
    color: var(--text-secondary);
    font-size: 1rem;
}


.cta-section {
    padding: 6rem 0;
    position: relative;
}

.cta-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 3.5rem;
    background: linear-gradient(135deg, rgba(79, 163, 247, 0.08) 0%, rgba(160, 230, 101, 0.04) 100%);
    border: 1px solid rgba(79, 163, 247, 0.12);
    border-radius: var(--radius-xl);
    backdrop-filter: blur(30px);
    box-shadow: 0 24px 80px rgba(10, 20, 30, 0.55);
    color: var(--text-primary);

    transform: translateY(0) scale(1) perspective(800px) translateZ(0);
    transform-origin: center center;
    transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275),
        background 0.2s ease-out,
        border-color 0.2s ease-out,
        box-shadow 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

.cta-content:hover {
    background: linear-gradient(135deg, rgba(79, 163, 247, 0.14) 0%, rgba(160, 230, 101, 0.07) 100%) !important;
    border-color: rgba(79, 163, 247, 0.30) !important;
    transform: translateY(-10px) scale(1.03) perspective(800px) translateZ(15px) !important;
    box-shadow:
        0 30px 80px rgba(10, 20, 30, 0.55),
        0 10px 30px rgba(79, 163, 247, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
    transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275),
        background 0.2s ease-out,
        border-color 0.2s ease-out,
        box-shadow 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

.cta-content:not(:hover) {
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
        background 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.4s ease !important;
}

.cta-text h2 {
    margin: 0 0 0.5rem 0;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    line-height: 1.05;
    color: var(--text-primary);
}

.cta-text p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 1.05rem;
    max-width: 680px;
}

.cta-actions {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    align-items: flex-end;
}

.cta-note {
    font-size: 0.92rem;
    color: var(--text-tertiary);
    text-align: right;
}

.btn-primary.btn-large {
    padding: 1.1rem 3rem;
    font-size: 1.15rem;
    border-radius: 12px;
}


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

    .cta-actions {
        align-items: center;
    }

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


@media (max-width: 900px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-cta {
        flex-direction: column;
    }

    .nav-toggle {
        display: block;
    }
}

@media (max-width: 640px) {
    .container {
        padding: 0 1.5rem;
    }

    .hero {
        padding: 3rem 0;
        min-height: auto;
    }

    .hero-text h1 {
        font-size: 2rem;
        line-height: 1.3;
        margin-bottom: 1rem;
    }

    .hero-text p {
        font-size: 1rem;
        line-height: 1.6;
        margin-bottom: 1.5rem;
    }

    .btn {
        padding: 0.9rem 1.8rem;
        font-size: 1rem;
        min-height: 48px;
        min-width: 48px;
        transition: color 0.2s ease;
    }

    .btn-large {
        padding: 1rem 2rem;
        font-size: 1.05rem;
        width: 100%;
    }

    .services {
        padding: 3rem 0;
    }

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

    .section-header h2 {
        font-size: 1.75rem;
        margin-bottom: 0.75rem;
    }

    .section-header p {
        font-size: 1rem;
        color: var(--text-secondary);
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .feature-item {
        padding: 1.5rem;
    }

    .cta-content {
        padding: 2rem;
    }

    /* Typography improvements */
    h3 {
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }

    h4 {
        font-size: 1.1rem;
    }

    p {
        font-size: 1rem;
        line-height: 1.6;
    }

    /* Touch-friendly adjustments */
    a,
    button {
        min-height: 48px;
    }

    body {
        scroll-behavior: smooth;
    }
}


.cookie-banner {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(120%);
    width: min(1100px, 95%);
    max-width: 1100px;
    background: rgba(6, 27, 54, 0.88);
    color: var(--text-primary);
    border: 1px solid rgba(79, 163, 247, 0.12);
    padding: 1rem 1.25rem;
    border-radius: 12px;
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
    z-index: 10000;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s;
    opacity: 0;
    pointer-events: none;
}

.cookie-banner.visible {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.cookie-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    max-width: calc(100% - 180px);
}

.cookie-content h3 {
    margin: 0;
    font-size: 1rem;
    color: var(--text-primary);
}

.cookie-content p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.cookie-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    justify-content: flex-end;
}

.cookie-banner .nav-link {
    color: var(--accent);
    padding: 0;
    border-bottom: none;
}

.btn-accept {
    background: transparent;
    border: 2px solid var(--accent);
    color: var(--text-primary);
    padding: 0.6rem 1rem;
    border-radius: 999px;
    cursor: pointer;
}

.btn-accept:hover {
    color: var(--accent);
}

@media (max-width: 640px) {
    .cookie-banner {
        left: 10px !important;
        right: 10px !important;
        bottom: 10px !important;
        width: auto !important;
        max-width: none !important;
        transform: translateY(120%) !important;
    }

    .cookie-banner.visible {
        transform: translateY(0) !important;
        opacity: 1 !important;
        pointer-events: auto !important;
    }

    .cookie-actions {
        flex-direction: column;
        justify-content: stretch;
        width: 100%;
        gap: 0.5rem;
    }

    .cookie-content {
        max-width: 100%;
    }

    .btn-accept {
        width: 100%;
        padding: 0.75rem 1rem;
    }
}


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

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

.service-card {
    opacity: 0;
    transform: translateY(30px);
}

body:not(.aos-init) .service-card {
    opacity: 1;
    transform: none;
}

.service-card.fade-in {
    animation: fadeInUp 0.6s ease-out forwards;
}


@media (max-width: 900px) {

    /* Nasconde il logo hero su mobile */
    .hero-visual {
        display: none;
    }

    /* ---- Override dots Splide: cerchi indicatori ---- */
    .services-carousel .splide__pagination {
        bottom: -1.5rem;
        gap: 0.6rem;
    }

    /* DENTRO @media (max-width: 900px) — sostituisci SOLO queste due regole: */

    /* ── Pagination dots: pallini rotondi piccoli ── */
    /* ── Pagination: pallini tondi piccoli ── */
    .services-carousel .splide__pagination {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 8px;
        bottom: 0;
        padding: 0;
        margin-top: 1.5rem;
        /* ← stacca dai card */
    }

    .services-carousel .splide__pagination__page {
        display: block;
        width: 8px !important;
        height: 8px !important;
        min-width: 8px !important;
        min-height: 8px !important;
        border-radius: 50% !important;
        background: rgba(255, 255, 255, 0.3) !important;
        border: none !important;
        padding: 0 !important;
        margin: 0 !important;
        opacity: 1 !important;
        transform: none !important;
        transition: background 0.3s;
        cursor: pointer;
    }

    .services-carousel .splide__pagination__page.is-active {
        width: 8px !important;
        height: 8px !important;
        background: var(--accent) !important;
        transform: none !important;
        opacity: 1 !important;
    }

    /* Spazio sotto per i dots */
    .services-carousel {
        padding-bottom: 3.5rem;
        /* ← più spazio sotto */
    }
}

@media (min-width: 901px) {

    /* Quando Splide è destroy:true, splide__list diventa una normale ul.
       La griglia CSS la trasforma in layout a colonne. */
    .services-carousel .splide__list {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
        flex-wrap: wrap;
        transform: none !important;
    }

    .services-carousel .splide__slide {
        width: auto !important;
        min-width: 0;
        display: flex;
    }

    .services-carousel .splide__slide .service-card {
        flex: 1;
    }

    .services-carousel {
        max-width: 1200px;
        margin-left: auto;
        margin-right: auto;
    }

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

    .service-card {
        position: relative;
        padding: 2.5rem;
        background: linear-gradient(135deg, rgba(0, 212, 255, 0.03) 0%, rgba(0, 255, 136, 0.02) 100%);
        border: 1px solid rgba(0, 212, 255, 0.15);
        border-radius: var(--radius-xl);
        backdrop-filter: blur(20px);
        transition: all var(--transition-base);
        overflow: hidden;
        min-width: 0;
        width: 100%;
        margin: 0;
        box-sizing: border-box;
        opacity: 1;
        transform: none;
    }

    .service-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(135deg, rgba(0, 212, 255, 0.1) 0%, transparent 50%, rgba(0, 255, 136, 0.05) 100%);
        opacity: 0;
        transition: opacity var(--transition-base);
        z-index: 0;
    }

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

    .service-card:hover {
        background: linear-gradient(135deg, rgba(0, 212, 255, 0.08) 0%, rgba(0, 255, 136, 0.05) 100%);
        border-color: rgba(0, 212, 255, 0.4);
        transform: translateY(-10px);
        box-shadow: 0 20px 60px rgba(0, 212, 255, 0.15);
    }

    /* Nasconde elementi Splide residui su desktop */
    .services-carousel .splide__pagination,
    .services-carousel .splide__arrows {
        display: none !important;
    }
}



/* ═══════════════════════════════════════════
   HAMBURGER MENU MOBILE
   ═══════════════════════════════════════════ */

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.8rem;
    cursor: pointer;
    padding: 0.5rem 1rem;
    transition: all var(--transition-base);
    z-index: 10000;
    min-height: 48px;
    min-width: 48px;
}

.nav-toggle:hover {
    color: var(--accent);
}

.nav-toggle.open {
    color: var(--accent);
}

@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }

    .main-nav {
        display: flex;
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background: rgba(4, 56, 115, 0.98);
        backdrop-filter: blur(20px);
        border-bottom: 2px solid rgba(79, 163, 247, 0.2);
        flex-direction: column;
        gap: 0;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
            opacity 0.3s ease;
        z-index: 9999;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
        opacity: 0;
        pointer-events: none;
    }

    .main-nav.active {
        max-height: 400px;
        opacity: 1;
        pointer-events: auto;
    }

    /* ── Link nel menu (tutti uguali e semplici) ── */
    .main-nav .nav-link,
    .main-nav .nav-cta {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        padding: 1.1rem 2rem;
        font-size: 1.05rem;
        font-weight: 500;
        letter-spacing: 0;
        text-transform: none;
        margin: 0;
        width: 100%;
        box-sizing: border-box;
        color: var(--text-secondary);
        text-decoration: none;
        background: transparent;
        border-radius: 0;
        border: none;
        min-height: 48px;
        transition: color 0.2s ease;
        box-shadow: none;
    }

    .main-nav .nav-link::after {
        display: none;
        /* ← rimuovi underline animato nel menu */
    }

    .main-nav .nav-link:hover,
    .main-nav .nav-cta:hover {
        color: var(--accent);
        background: transparent;
        transform: none;
        box-shadow: none;
    }

    /* ── Link della pagina attiva ── */
    .main-nav .nav-link.active {
        color: var(--text-secondary);
        background: transparent;
        border-left: none;
    }

    /* Animazione al click */
    .main-nav .nav-link:active,
    .main-nav .nav-cta:active {
        color: var(--accent);
        background: transparent;
        transform: none;
        box-shadow: none;
    }
}
