/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Palette Lussuosa - Oro & Rosso Elegante */
    --primary: #b8860b;        /* Oro scuro elegante */
    --primary-dark: #8b6914;   /* Oro bronzo */
    --primary-light: #daa520;  /* Oro chiaro */
    --secondary: #8b1538;      /* Rosso bordeaux profondo */
    --accent: #cd853f;         /* Oro rosa */
    --dark: #0d0d0d;           /* Nero assoluto */
    --dark-light: #1a1a1a;     /* Nero carbone */
    --gray: #6b6b6b;           /* Grigio caldo */
    --gray-light: #c4b5a0;     /* Beige chiaro */
    --white: #faf8f3;          /* Bianco caldo */
    --gradient-1: linear-gradient(135deg, #b8860b 0%, #8b1538 100%);
    --gradient-2: linear-gradient(135deg, #8b1538 0%, #b8860b 100%);
    --gradient-3: linear-gradient(135deg, #daa520 0%, #cd853f 100%);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--dark);
    color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}



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

/* ===== NAVIGATION ===== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(13, 13, 13, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(184, 134, 11, 0.2);
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.3),
        0 0 40px rgba(184, 134, 11, 0.1),
        inset 0 -1px 0 rgba(184, 134, 11, 0.15);
    transition: all 0.3s ease;
}

.nav.scrolled {
    background: rgba(13, 13, 13, 0.98);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.5),
        0 0 60px rgba(184, 134, 11, 0.15),
        inset 0 -1px 0 rgba(184, 134, 11, 0.2);
    border-bottom: 1px solid rgba(184, 134, 11, 0.3);
}

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

.logo {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0;
}

.logo-web {
    color: var(--white);
}

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

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

.nav-link {
    color: var(--gray-light);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-1);
    transition: width 0.3s ease;
}

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

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

.nav-cta {
    background: var(--gradient-1);
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    color: var(--white) !important;
}

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

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.3);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 2px;
    background: var(--white);
    transition: all 0.3s ease;
}

/* ===== HERO SECTION ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.3;
    animation: float 20s infinite ease-in-out;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: var(--gradient-1);
    top: -200px;
    right: -200px;
    animation-delay: 0s;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: var(--gradient-2);
    bottom: -150px;
    left: -150px;
    animation-delay: 5s;
}

.orb-3 {
    width: 400px;
    height: 400px;
    background: var(--gradient-3);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 10s;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(50px, -50px) scale(1.1);
    }

    66% {
        transform: translate(-50px, 50px) scale(0.9);
    }
}

.hero-container {
    position: relative;
    z-index: 1;
    text-align: center;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    font-size: 0.9rem;
    margin-top: 3rem;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
    animation: fadeInUp 0.8s ease;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }
}

.hero-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease 0.2s backwards;
}

.gradient-text {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--gray-light);
    margin-bottom: 3rem;
    line-height: 1.8;
    animation: fadeInUp 0.8s ease 0.4s backwards;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.6s backwards;
}

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

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

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: var(--gradient-1);
    color: var(--white);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(99, 102, 241, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
}

.btn-large {
    padding: 1.2rem 2.5rem;
    font-size: 1.1rem;
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* ===== HERO STATS ===== */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-top: 5rem;
    animation: fadeInUp 0.8s ease 0.8s backwards;
}

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

.stat-number {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 0.5rem;
}

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

.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--gray-light);
    font-size: 0.85rem;
    animation: fadeIn 1s ease 1s backwards;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--primary), transparent);
    animation: scrollDown 2s infinite;
}

@keyframes scrollDown {
    0% {
        transform: translateY(0);
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* ===== SECTIONS ===== */
section {
    padding: 8rem 0;
    position: relative;
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 5rem;
}

.section-tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 50px;
    color: var(--primary-light);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.section-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--gray-light);
    line-height: 1.8;
}

/* ===== TRIADE SECTION ===== */
.triade {
    background: linear-gradient(180deg, var(--dark) 0%, var(--dark-light) 100%);
}

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

.triade-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 3rem 2rem;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.triade-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-1);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.triade-card:hover::before {
    opacity: 0.05;
}

.triade-card:hover {
    transform: translateY(-10px);
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.2);
}

.card-icon {
    width: 80px;
    height: 80px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    color: var(--primary-light);
    transition: all 0.4s ease;
}

.triade-card:hover .card-icon {
    background: var(--gradient-1);
    color: var(--white);
    transform: scale(1.1) rotate(5deg);
}

.card-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.card-description {
    color: var(--gray-light);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-light);
    text-decoration: none;
    font-weight: 600;
    transition: gap 0.3s ease;
}

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

/* ===== SERVICE SECTIONS ===== */
.service-section {
    background: var(--dark);
}

.service-section:nth-child(even) {
    background: var(--dark-light);
}

.service-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.service-layout.reverse {
    direction: rtl;
}

.service-layout.reverse>* {
    direction: ltr;
}

.service-tag {
    display: inline-block;
    color: var(--primary-light);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.service-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2rem, 3vw, 3rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.service-description {
    font-size: 1.1rem;
    color: var(--gray-light);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.service-features {
    list-style: none;
    margin-bottom: 2rem;
}

.service-features li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
    color: var(--gray-light);
}

.service-features svg {
    flex-shrink: 0;
    color: var(--accent);
    margin-top: 2px;
}

.service-process {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 3rem;
}

.process-item {
    padding: 0.8rem 1.5rem;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--primary-light);
}

.process-arrow {
    color: var(--gray);
    font-size: 1.5rem;
}

/* ===== SERVICE VISUALS ===== */
.visual-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 3rem;
    backdrop-filter: blur(10px);
}

.code-window {
    background: var(--dark-light);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-2xl);
}

.code-header {
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.code-header span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--gray);
}

.code-header span:nth-child(1) {
    background: #ff5f56;
}

.code-header span:nth-child(2) {
    background: #ffbd2e;
}

.code-header span:nth-child(3) {
    background: #27c93f;
}

.code-title {
    flex: 1;
    text-align: center;
    font-size: 0.85rem;
    color: var(--gray-light);
    font-family: 'Courier New', monospace;
}

.code-content {
    padding: 2rem;
    font-family: 'Courier New', monospace;
    font-size: 0.95rem;
    height: 280px;
    max-height: 280px;
    overflow: hidden;
    position: relative;
}

.code-typing-area {
    white-space: pre-wrap;
    line-height: 1.8;
    max-height: 240px;
    overflow: hidden;
}

.code-cursor {
    display: inline-block;
    width: 2px;
    height: 1.2em;
    background: var(--primary);
    animation: blink 1s step-end infinite;
    margin-left: 2px;
    vertical-align: text-bottom;
}

@keyframes blink {

    0%,
    50% {
        opacity: 1;
    }

    51%,
    100% {
        opacity: 0;
    }
}

.code-line {
    margin-bottom: 0.8rem;
    animation: typeIn 0.5s ease forwards;
    opacity: 0;
}

.code-line:nth-child(1) {
    animation-delay: 0.2s;
}

.code-line:nth-child(2) {
    animation-delay: 0.4s;
}

.code-line:nth-child(3) {
    animation-delay: 0.6s;
}

@keyframes typeIn {
    to {
        opacity: 1;
    }
}

.code-tag {
    color: #ec4899;
}

.code-attr {
    color: #14b8a6;
}

.code-value {
    color: #f59e0b;
}

.design-showcase {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    height: 300px;
}

.design-element {
    border-radius: 16px;
    background: var(--gradient-1);
    animation: designFloat 3s infinite ease-in-out;
}

.design-element.element-1 {
    grid-column: 1 / 2;
    grid-row: 1 / 2;
    animation-delay: 0s;
}

.design-element.element-2 {
    grid-column: 2 / 3;
    grid-row: 1 / 3;
    background: var(--gradient-2);
    animation-delay: 0.5s;
}

.design-element.element-3 {
    grid-column: 1 / 2;
    grid-row: 2 / 3;
    background: var(--gradient-3);
    animation-delay: 1s;
}

@keyframes designFloat {

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

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

/* ===== MODERN SOCIAL MOCKUP ===== */
.social-mockup {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
}

.mockup-phone {
    width: 280px;
    height: 550px;
    background: linear-gradient(145deg, rgba(26, 26, 26, 0.8), rgba(13, 13, 13, 0.9));
    border-radius: 40px;
    padding: 12px;
    box-shadow:
        0 0 0 8px rgba(184, 134, 11, 0.1),
        0 20px 60px rgba(0, 0, 0, 0.5),
        inset 0 0 20px rgba(184, 134, 11, 0.15);
    position: relative;
    animation: phoneFloat 6s ease-in-out infinite;
}

@keyframes phoneFloat {

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

    50% {
        transform: translateY(-10px) rotateY(5deg);
    }
}

.phone-notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 24px;
    background: rgba(15, 23, 42, 0.95);
    border-radius: 0 0 20px 20px;
    z-index: 10;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.95);
    border-radius: 32px;
    overflow: hidden;
    position: relative;
}

.social-feed-scroll {
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 16px 12px;
    scroll-behavior: auto;
    scrollbar-width: none;
    /* Firefox */
}

.social-feed-scroll::-webkit-scrollbar {
    width: 0;
    display: none;
}

/* Feed Post Style */
.feed-post {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 14px;
    margin-bottom: 12px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.feed-post:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(184, 134, 11, 0.3);
    transform: translateX(-4px);
    box-shadow: 0 8px 24px rgba(184, 134, 11, 0.15);
}

@keyframes slideInFeed {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

.post-header {
    display: flex;
    align-items: center;
    padding: 12px;
    gap: 10px;
}

.post-avatar {
    position: relative;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--gradient-1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--white);
}

.avatar-ring {
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background: var(--gradient-1);
    opacity: 0.5;
    animation: ringPulse 2s ease-in-out infinite;
}

@keyframes ringPulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

.post-info {
    flex: 1;
}

.post-username {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--white);
}

.post-location {
    font-size: 0.75rem;
    color: var(--gray-light);
}

.post-menu {
    font-size: 1.2rem;
    color: var(--gray-light);
    cursor: pointer;
}

.post-image {
    position: relative;
    height: 180px;
    background: var(--gradient-1);
    overflow: hidden;
}

.image-placeholder {
    width: 100%;
    height: 100%;
    position: relative;
}

.image-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
}

.image-icon {
    font-size: 3rem;
    animation: iconFloat 3s ease-in-out infinite;
}

@keyframes iconFloat {

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

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

.post-actions {
    display: flex;
    justify-content: space-between;
    padding: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.action-left,
.action-right {
    display: flex;
    gap: 12px;
}

.action-icon {
    font-size: 1.2rem;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.action-icon:hover {
    transform: scale(1.2);
}

.post-likes {
    padding: 8px 12px;
    font-size: 0.85rem;
    color: var(--white);
}

.post-caption {
    padding: 0 12px 8px;
    font-size: 0.85rem;
    color: var(--gray-light);
}

.post-caption strong {
    color: var(--white);
    margin-right: 4px;
}

.caption-more {
    color: var(--gray);
    cursor: pointer;
}

.post-comments {
    padding: 0 12px 8px;
    font-size: 0.8rem;
    color: var(--gray);
    cursor: pointer;
}

.post-time {
    padding: 0 12px 12px;
    font-size: 0.75rem;
    color: var(--gray);
    text-transform: uppercase;
}

/* Story Style */
.social-story {
    position: relative;
    height: 120px;
    border-radius: 16px;
    overflow: hidden;
    background: var(--gradient-2);
    animation: slideInFeed 0.6s ease 0.2s backwards;
}

.story-ring {
    position: absolute;
    inset: -2px;
    border-radius: 16px;
    background: var(--gradient-1);
    opacity: 0.3;
    animation: storyPulse 3s ease-in-out infinite;
}

@keyframes storyPulse {

    0%,
    100% {
        opacity: 0.3;
    }

    50% {
        opacity: 0.6;
    }
}

.story-content {
    position: relative;
    height: 100%;
    padding: 12px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.story-header {
    display: flex;
    align-items: center;
    gap: 8px;
}

.story-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
}

.story-username {
    font-size: 0.8rem;
    font-weight: 600;
    flex: 1;
}

.story-time {
    font-size: 0.75rem;
    opacity: 0.8;
}

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

.story-emoji {
    font-size: 2rem;
    margin-bottom: 8px;
}

.story-title {
    font-size: 0.9rem;
    font-weight: 600;
}

/* Reel Style */
.social-reel {
    position: relative;
    height: 100px;
    border-radius: 16px;
    background: var(--gradient-3);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    animation: slideInFeed 0.6s ease 0.4s backwards;
}

.reel-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.reel-icon {
    font-size: 2rem;
    animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

.reel-views {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 600;
}

.reel-info {
    text-align: right;
}

.reel-title {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.reel-audio {
    font-size: 0.75rem;
    opacity: 0.8;
}

/* Responsive */
@media (max-width: 768px) {
    .social-feed {
        max-height: 400px;
    }

    .post-image {
        height: 140px;
    }

    .social-story {
        height: 100px;
    }

    .social-reel {
        height: 80px;
    }
}

/* ===== CTA SECTION ===== */
.cta-section {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(236, 72, 153, 0.1) 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.cta-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.cta-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.cta-subtitle {
    font-size: 1.2rem;
    color: var(--gray-light);
    margin-bottom: 2.5rem;
}

/* ===== CONTACT SECTION ===== */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 5rem;
    align-items: start;
}

.contact-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.contact-description {
    font-size: 1.1rem;
    color: var(--gray-light);
    margin-bottom: 3rem;
    line-height: 1.8;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--gray-light);
}

.contact-item svg {
    color: var(--primary-light);
}

.contact-form {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 3rem;
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--white);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.08);
}

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

/* ===== FOOTER ===== */
.footer {
    background: var(--dark-light);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-brand p {
    color: var(--gray-light);
    margin-top: 1rem;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer-column h3 {
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-column a {
    display: block;
    color: var(--gray-light);
    text-decoration: none;
    margin-bottom: 0.8rem;
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: var(--primary-light);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: #9a9a9a; /* Grigio più chiaro per contrasto WCAG AA */
    font-size: 0.9rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .service-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .service-layout.reverse {
        direction: ltr;
    }

    .contact-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: rgba(15, 23, 42, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: flex-start;
        padding: 3rem 2rem;
        transition: left 0.3s ease;
    }

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

    .nav-toggle {
        display: flex;
    }

    .hero-stats {
        gap: 2rem;
        flex-wrap: wrap;
    }

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

    .stat-label {
        font-size: 0.85rem;
    }

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

    .footer-content {
        grid-template-columns: 1fr;
    }

    .footer-links {
        grid-template-columns: 1fr;
    }

    section {
        padding: 5rem 0;
    }

    /* Mantieni le animazioni hero su mobile */
    .hero-badge {
        margin-top: 2rem;
    }

    .hero-title {
        font-size: clamp(2rem, 8vw, 3rem);
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    /* Mantieni il canvas particelle su mobile */
    #particlesCanvas {
        opacity: 0.5;
    }

    /* Mantieni la grid overlay su mobile */
    .grid-overlay {
        opacity: 0.5;
        background-size: 30px 30px;
    }

    /* Scroll indicator più piccolo */
    .scroll-indicator {
        bottom: 2rem;
        font-size: 0.75rem;
    }

    .scroll-line {
        height: 30px;
    }
}

@media (max-width: 480px) {
    .hero-cta {
        flex-direction: column;
        width: 100%;
    }

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

    .hero-stats {
        flex-direction: column;
        gap: 2rem;
    }

    /* Mantieni le animazioni anche su schermi piccoli */
    .floating-card {
        padding: 0.6rem 0.8rem;
        font-size: 0.7rem;
    }

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

    /* Riduci leggermente gli orb su schermi molto piccoli */
    .orb-1 {
        width: 300px;
        height: 300px;
    }

    .orb-2 {
        width: 250px;
        height: 250px;
    }

    .orb-3 {
        width: 200px;
        height: 200px;
    }
}


/* ===== CLAMOROSI EFFETTI AVANZATI ===== */

/* Particelle Canvas */
#particlesCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

/* Grid Overlay Futuristico */
.grid-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(99, 102, 241, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99, 102, 241, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
    pointer-events: none;
}

@keyframes gridMove {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(50px, 50px);
    }
}

/* Effetto Glitch sul Testo */
.glitch {
    position: relative;
    animation: glitchAnimation 5s infinite;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: inherit;
    -webkit-background-clip: text;
    background-clip: text;
}

.glitch::before {
    animation: glitchTop 3s infinite;
    clip-path: polygon(0 0, 100% 0, 100% 33%, 0 33%);
    -webkit-text-stroke: 2px rgba(236, 72, 153, 0.8);
}

.glitch::after {
    animation: glitchBottom 2.5s infinite;
    clip-path: polygon(0 67%, 100% 67%, 100% 100%, 0 100%);
    -webkit-text-stroke: 2px rgba(20, 184, 166, 0.8);
}

@keyframes glitchTop {

    0%,
    90%,
    100% {
        transform: translate(0);
    }

    92% {
        transform: translate(-2px, -2px);
    }

    94% {
        transform: translate(2px, 2px);
    }
}

@keyframes glitchBottom {

    0%,
    90%,
    100% {
        transform: translate(0);
    }

    91% {
        transform: translate(2px, 2px);
    }

    93% {
        transform: translate(-2px, -2px);
    }
}

@keyframes glitchAnimation {

    0%,
    90%,
    100% {
        opacity: 1;
    }

    91% {
        opacity: 0.8;
    }

    92% {
        opacity: 1;
    }

    93% {
        opacity: 0.9;
    }
}

/* Floating Cards nella Hero */
.hero-visual {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 0;
}

.floating-card {
    position: absolute;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    animation: floatCard 6s ease-in-out infinite;
}

.card-glow {
    position: absolute;
    inset: -2px;
    background: var(--gradient-1);
    border-radius: 16px;
    opacity: 0;
    filter: blur(20px);
    transition: opacity 0.3s ease;
    z-index: -1;
}

.floating-card:hover .card-glow {
    opacity: 0.6;
}

.card-1 {
    top: 20%;
    right: 10%;
    animation-delay: 0s;
}

.card-2 {
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

.card-3 {
    top: 40%;
    left: 10%;
    animation-delay: 4s;
}

@keyframes floatCard {

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

    25% {
        transform: translateY(-20px) rotate(2deg);
    }

    50% {
        transform: translateY(-10px) rotate(-2deg);
    }

    75% {
        transform: translateY(-30px) rotate(1deg);
    }
}

/* Effetto Magnetico sulle Card */
.magnetic {
    transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Card Shine Effect */
.card-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.1),
            transparent);
    transition: left 0.5s ease;
    pointer-events: none;
}

.triade-card:hover .card-shine {
    left: 100%;
}

/* Effetto 3D Floating sulle Visual Card */
.floating-3d {
    transform-style: preserve-3d;
    transition: transform 0.5s ease;
}

.floating-3d:hover {
    transform: perspective(1000px) rotateY(5deg) rotateX(5deg) translateZ(20px);
}

/* Holographic Overlay */
.holographic-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg,
            rgba(99, 102, 241, 0.1) 0%,
            rgba(236, 72, 153, 0.1) 25%,
            rgba(20, 184, 166, 0.1) 50%,
            rgba(245, 158, 11, 0.1) 75%,
            rgba(99, 102, 241, 0.1) 100%);
    background-size: 200% 200%;
    animation: holographicShift 3s ease infinite;
    border-radius: 24px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.floating-3d:hover .holographic-overlay {
    opacity: 1;
}

@keyframes holographicShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* CTA Particles */
.cta-particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.cta-particles::before,
.cta-particles::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.2) 0%, transparent 70%);
    animation: particleFloat 15s infinite ease-in-out;
}

.cta-particles::before {
    top: -150px;
    left: 20%;
    animation-delay: 0s;
}

.cta-particles::after {
    bottom: -150px;
    right: 20%;
    animation-delay: 7s;
}

@keyframes particleFloat {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(100px, -100px) scale(1.2);
    }

    66% {
        transform: translate(-100px, 100px) scale(0.8);
    }
}

/* CTA Glow Effect */
.cta-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.3) 0%, transparent 70%);
    filter: blur(60px);
    animation: glowPulse 4s ease-in-out infinite;
    pointer-events: none;
    z-index: -1;
}

@keyframes glowPulse {

    0%,
    100% {
        opacity: 0.5;
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(1.2);
    }
}

/* Effetto Neon sui Bottoni */
.btn-primary {
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn-primary:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary span,
.btn-primary svg {
    position: relative;
    z-index: 1;
}

/* Rimosso - Ora usiamo effetto typing dinamico con JavaScript */

/* Effetto Liquid sui Design Elements */
.design-element {
    position: relative;
    overflow: hidden;
}

.design-element::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    animation: liquidMove 8s ease-in-out infinite;
}

@keyframes liquidMove {

    0%,
    100% {
        transform: translate(0, 0);
    }

    25% {
        transform: translate(20%, 20%);
    }

    50% {
        transform: translate(-20%, 20%);
    }

    75% {
        transform: translate(20%, -20%);
    }
}

/* Effetto Ripple sui Social Posts */
.social-post {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.social-post::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(99, 102, 241, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.social-post:hover::after {
    width: 300px;
    height: 300px;
}

/* Animazione Gradient sui Link */
.card-link {
    background: linear-gradient(90deg, var(--primary-light), var(--secondary), var(--accent), var(--primary-light));
    background-size: 300% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientFlow 3s ease infinite;
}

@keyframes gradientFlow {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

/* Effetto Parallax Avanzato sulle Sezioni */
.service-section {
    position: relative;
}

.service-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
            transparent,
            rgba(99, 102, 241, 0.5),
            transparent);
    animation: lineGlow 3s ease-in-out infinite;
}

@keyframes lineGlow {

    0%,
    100% {
        opacity: 0.3;
    }

    50% {
        opacity: 1;
    }
}

/* Effetto Tilt 3D sui Process Items */
.process-item {
    transform-style: preserve-3d;
    transition: transform 0.3s ease;
}

.process-item:hover {
    transform: perspective(500px) rotateY(10deg) translateZ(10px);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
}

/* Animazione Smooth per le Features */
.service-features li {
    animation: slideInLeft 0.6s ease forwards;
    opacity: 0;
    transform: translateX(-30px);
}

.service-features li:nth-child(1) {
    animation-delay: 0.1s;
}

.service-features li:nth-child(2) {
    animation-delay: 0.2s;
}

.service-features li:nth-child(3) {
    animation-delay: 0.3s;
}

.service-features li:nth-child(4) {
    animation-delay: 0.4s;
}

@keyframes slideInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Effetto Glow sui Form Inputs */
.form-group input:focus,
.form-group textarea:focus {
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2),
        0 0 20px rgba(99, 102, 241, 0.3);
}

/* Animazione Bounce sui Nav Links */
.nav-link {
    display: inline-block;
}

.nav-link:hover {
    animation: bounce 0.6s ease;
}

@keyframes bounce {

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

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

/* Effetto Rainbow sul Logo */
.logo:hover .logo-novis {
    animation: rainbowText 2s linear infinite;
}

@keyframes rainbowText {
    0% {
        filter: hue-rotate(0deg);
    }

    100% {
        filter: hue-rotate(360deg);
    }
}

/* Cursore normale per tutti - Rimosso custom cursor */
body,
a,
button,
.nav-link,
.btn,
input,
textarea,
select {
    cursor: auto;
}

a:hover,
button:hover,
.nav-link:hover,
.btn:hover {
    cursor: pointer;
}

/* Effetto Scan Line Futuristico */
.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg,
            transparent,
            rgba(99, 102, 241, 0.8),
            transparent);
    animation: scanLine 4s linear infinite;
    pointer-events: none;
}

@keyframes scanLine {
    0% {
        transform: translateY(0);
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    100% {
        transform: translateY(100vh);
        opacity: 0;
    }
}

/* Responsive per effetti avanzati */
@media (max-width: 768px) {

    /* Mantieni le floating cards ma riducile e riposizionale */
    .floating-card {
        padding: 0.7rem 1rem;
        font-size: 0.75rem;
    }

    .card-1 {
        top: 15%;
        right: 5%;
    }

    .card-2 {
        top: 65%;
        right: 5%;
    }

    .card-3 {
        top: 40%;
        left: 5%;
    }

    /* Mantieni l'effetto glitch ma riducilo */
    .glitch::before,
    .glitch::after {
        -webkit-text-stroke: 1px rgba(236, 72, 153, 0.6);
    }

    /* Mantieni gli orb gradient ma riducili */
    .orb-1 {
        width: 400px;
        height: 400px;
    }

    .orb-2 {
        width: 350px;
        height: 350px;
    }

    .orb-3 {
        width: 300px;
        height: 300px;
    }
}

/* Performance Optimization */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}


/* ===== STUNNING SHOWCASE NUMBERS ===== */
.showcase-numbers {
    padding: 6rem 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(236, 72, 153, 0.05) 100%);
    position: relative;
    overflow: hidden;
}

.showcase-numbers::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

.numbers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
}

.number-item {
    text-align: center;
    position: relative;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.number-item:hover {
    transform: translateY(-10px) scale(1.05);
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: 0 20px 60px rgba(99, 102, 241, 0.3);
}

.number-value {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 4rem;
    font-weight: 800;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 1rem;
}

.number-label {
    font-size: 1rem;
    color: var(--gray-light);
    font-weight: 500;
}

.number-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.2) 0%, transparent 70%);
    filter: blur(40px);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.number-item:hover .number-glow {
    opacity: 1;
}

/* ===== TESTIMONIALS SECTION ===== */
.testimonials-section {
    padding: 8rem 0;
    background: var(--dark-light);
    position: relative;
    overflow: hidden;
}

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

.testimonial-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 2.5rem;
    position: relative;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    overflow: hidden;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 1rem;
    left: 1.5rem;
    font-size: 8rem;
    font-family: 'Space Grotesk', sans-serif;
    color: rgba(99, 102, 241, 0.1);
    line-height: 1;
    pointer-events: none;
}

.testimonial-card:hover {
    transform: translateY(-10px);
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
}

.testimonial-stars {
    color: #f59e0b;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    letter-spacing: 2px;
}

.testimonial-text {
    color: var(--gray-light);
    line-height: 1.8;
    margin-bottom: 2rem;
    font-size: 1.05rem;
    position: relative;
    z-index: 1;
}

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

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gradient-1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--white);
}

.author-name {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.author-role {
    font-size: 0.9rem;
    color: #9a9a9a; /* Grigio più chiaro per contrasto WCAG AA */
}

.testimonial-glow {
    position: absolute;
    bottom: -50%;
    right: -50%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.2) 0%, transparent 70%);
    filter: blur(60px);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.testimonial-card:hover .testimonial-glow {
    opacity: 1;
}

/* ===== TECH STACK SECTION ===== */
.tech-stack-section {
    padding: 8rem 0;
    background: var(--dark);
    position: relative;
}

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

.tech-item {
    text-align: center;
    padding: 2rem 1rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    cursor: pointer;
}

.tech-item:hover {
    transform: translateY(-10px) rotate(2deg);
    border-color: rgba(99, 102, 241, 0.3);
    background: rgba(99, 102, 241, 0.05);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.2);
}

.tech-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: techFloat 3s ease-in-out infinite;
}

.tech-item:nth-child(1) .tech-icon {
    animation-delay: 0s;
}

.tech-item:nth-child(2) .tech-icon {
    animation-delay: 0.5s;
}

.tech-item:nth-child(3) .tech-icon {
    animation-delay: 1s;
}

.tech-item:nth-child(4) .tech-icon {
    animation-delay: 1.5s;
}

.tech-item:nth-child(5) .tech-icon {
    animation-delay: 2s;
}

.tech-item:nth-child(6) .tech-icon {
    animation-delay: 2.5s;
}

@keyframes techFloat {

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

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

.tech-name {
    font-weight: 600;
    color: var(--gray-light);
    transition: color 0.3s ease;
}

.tech-item:hover .tech-name {
    color: var(--white);
}

/* ===== WEBY CHAT BUTTON ===== */
.weby-chat-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1rem;
    pointer-events: none;
}

.weby-chat-container > * {
    pointer-events: all;
}

/* Weby Bubble Message */
.weby-bubble {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    opacity: 0;
    transform: translateY(20px) scale(0.8);
    animation: webyBubbleIn 0.6s ease 2s forwards;
    pointer-events: none;
}

.weby-bubble.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: all;
}

.weby-bubble.hidden {
    animation: webyBubbleOut 0.4s ease forwards;
}

@keyframes webyBubbleIn {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        pointer-events: all;
    }
}

@keyframes webyBubbleOut {
    to {
        opacity: 0;
        transform: translateY(10px) scale(0.9);
        pointer-events: none;
    }
}

.weby-avatar {
    position: relative;
    width: 50px;
    height: 50px;
    flex-shrink: 0;
}

.weby-avatar-inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--gradient-1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
    animation: webyBounce 2s ease-in-out infinite;
}

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

.weby-pulse {
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    animation: webyPulse 2s ease-out infinite;
}

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

.weby-message {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 14px 16px;
    border-radius: 16px 16px 4px 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    max-width: 240px;
    position: relative;
    animation: webyMessageFloat 3s ease-in-out infinite;
}

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

.weby-text {
    color: var(--dark);
    font-size: 0.85rem;
    line-height: 1.5;
}

.weby-text strong {
    display: block;
    margin-bottom: 4px;
    color: var(--dark);
    font-size: 0.9rem;
}

.weby-text span {
    color: var(--gray);
}

.weby-close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    cursor: pointer;
    opacity: 0.6;
    transition: all 0.2s ease;
}

.weby-close:hover {
    opacity: 1;
    background: rgba(0, 0, 0, 0.2);
    transform: rotate(90deg);
}

/* Main Weby Button */
.weby-button {
    background: var(--gradient-1);
    border: none;
    border-radius: 50px;
    padding: 14px 24px;
    cursor: pointer;
    box-shadow: 
        0 8px 24px rgba(99, 102, 241, 0.4),
        0 0 0 0 rgba(99, 102, 241, 0.4);
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    overflow: visible;
    animation: webyButtonPulse 3s ease-in-out infinite;
}

@keyframes webyButtonPulse {
    0%, 100% {
        box-shadow: 
            0 8px 24px rgba(99, 102, 241, 0.4),
            0 0 0 0 rgba(99, 102, 241, 0.4);
    }
    50% {
        box-shadow: 
            0 12px 32px rgba(99, 102, 241, 0.6),
            0 0 0 8px rgba(99, 102, 241, 0.1);
    }
}

.weby-button::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.weby-button:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 
        0 16px 40px rgba(99, 102, 241, 0.6),
        0 0 0 12px rgba(99, 102, 241, 0.1);
}

.weby-button:hover::before {
    opacity: 1;
}

.weby-button:active {
    transform: translateY(-2px) scale(1.02);
}

.weby-button-content {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    z-index: 1;
}

.weby-icon {
    color: var(--white);
    transition: transform 0.3s ease;
}

.weby-button:hover .weby-icon {
    transform: rotate(15deg) scale(1.1);
}

.weby-label {
    color: var(--white);
    font-weight: 600;
    font-size: 0.95rem;
    white-space: nowrap;
}

.weby-notification {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 24px;
    height: 24px;
    background: #ef4444;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    border: 3px solid var(--dark);
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    animation: webyNotificationBounce 2s ease-in-out infinite;
    z-index: 10;
}

@keyframes webyNotificationBounce {
    0%, 100% { transform: scale(1) rotate(0deg); }
    25% { transform: scale(1.1) rotate(-10deg); }
    75% { transform: scale(1.1) rotate(10deg); }
}



/* ===== CHAT POPUP ===== */
.fab-notification {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 22px;
    height: 22px;
    background: #ef4444;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--white);
    border: 2px solid var(--dark);
    animation: notificationPulse 2s infinite;
}

@keyframes notificationPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

.chat-popup {
    position: fixed;
    bottom: 100px;
    right: 2rem;
    width: 380px;
    max-width: calc(100vw - 4rem);
    height: 550px;
    max-height: calc(100vh - 150px);
    background: rgba(15, 23, 42, 0.98);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.95);
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    z-index: 1001;
    overflow: hidden;
}

.chat-popup.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: all;
}

.chat-popup::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: var(--gradient-1);
    border-radius: 24px;
    opacity: 0.3;
    filter: blur(20px);
    z-index: -1;
}

.chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.chat-header-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.chat-avatar {
    position: relative;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--gradient-1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    color: var(--white);
}

.chat-status {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 12px;
    height: 12px;
    background: #10b981;
    border: 2px solid var(--dark);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.chat-header-text h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.chat-header-text p {
    font-size: 0.8rem;
    color: var(--gray-light);
}

.chat-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    cursor: pointer;
    transition: all 0.3s ease;
}

.chat-close:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(90deg);
}

.chat-messages {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.chat-messages::-webkit-scrollbar {
    width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: rgba(99, 102, 241, 0.5);
    border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: rgba(99, 102, 241, 0.7);
}

.chat-message {
    display: flex;
    gap: 0.75rem;
    animation: messageSlideIn 0.4s ease;
}

@keyframes messageSlideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

.message-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--gradient-1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.8rem;
    flex-shrink: 0;
}

.message-content {
    flex: 1;
}

.message-content p {
    background: rgba(255, 255, 255, 0.05);
    padding: 0.75rem 1rem;
    border-radius: 12px;
    margin-bottom: 0.5rem;
    line-height: 1.5;
    font-size: 0.9rem;
}

.bot-message .message-content p {
    border-bottom-left-radius: 4px;
}

.user-message {
    flex-direction: row-reverse;
}

.user-message .message-avatar {
    background: var(--gradient-2);
}

.user-message .message-content p {
    background: var(--gradient-1);
    border-bottom-right-radius: 4px;
    border-bottom-left-radius: 12px;
}

.message-time {
    font-size: 0.75rem;
    color: var(--gray);
    padding-left: 1rem;
}

.user-message .message-time {
    text-align: right;
    padding-right: 1rem;
    padding-left: 0;
}

.chat-quick-replies {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.quick-reply {
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    padding: 0.75rem 1rem;
    border-radius: 12px;
    color: var(--primary-light);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
}

.quick-reply:hover {
    background: rgba(99, 102, 241, 0.2);
    border-color: rgba(99, 102, 241, 0.5);
    transform: translateX(5px);
}

.chat-input-container {
    display: flex;
    gap: 0.75rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.chat-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    color: var(--white);
    font-family: inherit;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.chat-input:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.08);
}

.chat-input::placeholder {
    color: var(--gray);
}

.chat-send {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    background: var(--gradient-1);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    cursor: pointer;
    transition: all 0.3s ease;
}

.chat-send:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.4);
}

.chat-send:active {
    transform: scale(0.95);
}

/* Typing indicator */
.typing-indicator {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.typing-indicator .message-content {
    display: flex;
    gap: 0.3rem;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border-bottom-left-radius: 4px;
}

.typing-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gray-light);
    animation: typingBounce 1.4s infinite;
}

.typing-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typingBounce {

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

    30% {
        transform: translateY(-8px);
    }
}

/* Mobile responsive */
@media (max-width: 768px) {
    .chat-popup {
        right: 1rem;
        left: 1rem;
        bottom: 80px;
        width: auto;
        height: calc(100vh - 150px);
        max-height: 500px;
    }

    .fab-container {
        bottom: 1rem;
        right: 1rem;
        display: block !important;
        z-index: 1000;
    }

    .fab-button {
        width: 56px;
        height: 56px;
    }
}

/* ===== BACK TO TOP BUTTON ===== */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    z-index: 998;
}

.back-to-top.visible {
    opacity: 1;
    pointer-events: all;
}

.back-to-top:hover {
    background: var(--gradient-1);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.4);
}

/* ===== ENHANCED ANIMATIONS ===== */
@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-100px);
    }

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

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }

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

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ===== ENHANCED HOVER EFFECTS ===== */
.service-title {
    position: relative;
    display: inline-block;
}

.service-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 0;
    height: 4px;
    background: var(--gradient-1);
    border-radius: 2px;
    transition: width 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.service-section:hover .service-title::after {
    width: 100%;
}

/* ===== ENHANCED CARD EFFECTS ===== */
.triade-card {
    position: relative;
}

.triade-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 24px;
    padding: 2px;
    background: var(--gradient-1);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.triade-card:hover::after {
    opacity: 1;
}

/* ===== SCROLL PROGRESS BAR ===== */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--gradient-1);
    z-index: 9999;
    transition: width 0.1s ease;
}

/* ===== ENHANCED FORM STYLING ===== */
.contact-form {
    position: relative;
}

.contact-form::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: var(--gradient-1);
    border-radius: 24px;
    opacity: 0;
    filter: blur(20px);
    transition: opacity 0.4s ease;
    z-index: -1;
}

.contact-form:hover::before {
    opacity: 0.3;
}

/* ===== LOADING ANIMATION ===== */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }

    100% {
        background-position: 1000px 0;
    }
}

.loading-shimmer {
    background: linear-gradient(90deg,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.1) 50%,
            rgba(255, 255, 255, 0) 100%);
    background-size: 1000px 100%;
    animation: shimmer 2s infinite;
}

/* ===== RESPONSIVE ENHANCEMENTS ===== */
@media (max-width: 768px) {
    .back-to-top {
        bottom: 1rem;
        left: 1rem;
    }

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

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

    .numbers-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .number-value {
        font-size: 3rem;
    }
}

@media (max-width: 480px) {
    .numbers-grid {
        grid-template-columns: 1fr;
    }

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

/* ===== ACCESSIBILITY IMPROVEMENTS ===== */
.skip-to-content {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary);
    color: var(--white);
    padding: 0.5rem 1rem;
    text-decoration: none;
    z-index: 10000;
}

.skip-to-content:focus {
    top: 0;
}

/* Focus visible for keyboard navigation */
*:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* ===== PRINT STYLES ===== */
@media print {

    .nav,
    .fab-container,
    .back-to-top,
    .scroll-indicator,
    .hero-bg {
        display: none !important;
    }
}