/* ===== WEBNOVIS REVOLUTION DESIGN ===== */
/* Ultra-Modern Web Agency Style - Awwwards Inspired */

/* ========== HERO REVOLUTION ========== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: #0a0a0a;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse 100% 80% at 50% 20%, rgba(184, 134, 11, 0.12), transparent 60%),
        radial-gradient(ellipse 80% 60% at 20% 80%, rgba(139, 21, 56, 0.08), transparent 50%),
        radial-gradient(ellipse 60% 50% at 80% 70%, rgba(218, 165, 32, 0.06), transparent 50%);
    pointer-events: none;
}

/* Noise texture overlay per effetto premium */
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    opacity: 0.025;
    pointer-events: none;
    mix-blend-mode: overlay;
}

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

/* Animated Gradient Orbs - Più grandi e fluidi */
.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
    animation: orbFloat 20s ease-in-out infinite;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(184, 134, 11, 0.4) 0%, transparent 70%);
    top: -200px;
    right: -100px;
    animation-delay: 0s;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(139, 21, 56, 0.35) 0%, transparent 70%);
    bottom: -150px;
    left: -100px;
    animation-delay: -7s;
}

.orb-3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(218, 165, 32, 0.3) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -14s;
}

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -30px) scale(1.05); }
    50% { transform: translate(-20px, 20px) scale(0.95); }
    75% { transform: translate(20px, 10px) scale(1.02); }
}

/* Grid Overlay - Più sottile e moderno */
.grid-overlay {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(184, 134, 11, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(184, 134, 11, 0.03) 1px, transparent 1px);
    background-size: 80px 80px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black, transparent);
}

/* Hero Content - Centrato */
.hero-container {
    position: relative;
    z-index: 10;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero-content {
    max-width: 900px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Badge - Più elegante */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 10px 24px;
    background: rgba(184, 134, 11, 0.1);
    border: 1px solid rgba(184, 134, 11, 0.3);
    border-radius: 100px;
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease-out;
}

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

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

.hero-badge span:last-child {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--primary-light);
    letter-spacing: 0.02em;
}

/* Hero Title - Typography Revolution */
.hero-title {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-title .gradient-text {
    background: linear-gradient(135deg, #daa520 0%, #b8860b 40%, #cd853f 70%, #daa520 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 8s ease infinite;
}

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

/* Glitch Effect - Più sottile */
.glitch {
    position: relative;
}

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

.glitch::before {
    left: 2px;
    text-shadow: -2px 0 rgba(139, 21, 56, 0.5);
    clip-path: inset(0 0 0 0);
    animation: glitch-1 4s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: 2px 0 rgba(184, 134, 11, 0.5);
    clip-path: inset(0 0 0 0);
    animation: glitch-2 4s infinite linear alternate-reverse;
}

@keyframes glitch-1 {
    0%, 90%, 100% { clip-path: inset(0 0 100% 0); }
    92% { clip-path: inset(30% 0 40% 0); }
    94% { clip-path: inset(70% 0 10% 0); }
    96% { clip-path: inset(10% 0 60% 0); }
    98% { clip-path: inset(50% 0 30% 0); }
}

@keyframes glitch-2 {
    0%, 90%, 100% { clip-path: inset(100% 0 0 0); }
    91% { clip-path: inset(20% 0 50% 0); }
    93% { clip-path: inset(60% 0 20% 0); }
    95% { clip-path: inset(40% 0 40% 0); }
    97% { clip-path: inset(80% 0 5% 0); }
}

/* Hero Subtitle */
.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 2.5rem;
    max-width: 600px;
    text-align: center;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

/* Hero Visual Elements rimossi - design pulito e centrato */

/* CTA Buttons - Premium Style */
.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 32px;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-decoration: none;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, #b8860b 0%, #daa520 100%);
    color: #0a0a0a;
    box-shadow: 
        0 4px 15px rgba(184, 134, 11, 0.3),
        0 0 30px rgba(184, 134, 11, 0.1);
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #daa520 0%, #cd853f 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 8px 25px rgba(184, 134, 11, 0.4),
        0 0 50px rgba(184, 134, 11, 0.2);
}

.btn-primary:hover::before {
    opacity: 1;
}

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

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-3px);
}

/* ========== NAVIGATION REVOLUTION ========== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.nav::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 10, 0);
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    border-bottom: 1px solid transparent;
    transition: all 0.4s ease;
}

.nav.scrolled::before {
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(184, 134, 11, 0.15);
}

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

.logo-image {
    height: 45px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo:hover .logo-image {
    transform: scale(1.05);
}

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

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    position: relative;
    padding: 8px 0;
    transition: color 0.3s ease;
}

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

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

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

.nav-cta {
    background: rgba(184, 134, 11, 0.15);
    border: 1px solid rgba(184, 134, 11, 0.3);
    padding: 10px 24px !important;
    border-radius: 10px;
    color: var(--primary-light) !important;
}

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

.nav-cta:hover {
    background: var(--primary);
    color: var(--dark) !important;
    border-color: var(--primary);
}

/* ========== SECTIONS REVOLUTION ========== */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(184, 134, 11, 0.1);
    border: 1px solid rgba(184, 134, 11, 0.2);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-light);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--white);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ========== CARDS REVOLUTION ========== */
.service-card,
.card,
.testimonial-card {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 24px;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.service-card::before,
.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(184, 134, 11, 0.5), transparent);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.service-card:hover,
.card:hover {
    transform: translateY(-8px);
    border-color: rgba(184, 134, 11, 0.2);
    box-shadow: 
        0 30px 60px rgba(0, 0, 0, 0.3),
        0 0 40px rgba(184, 134, 11, 0.1);
}

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

/* Card Icon */
.card-icon,
.service-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(184, 134, 11, 0.2), rgba(139, 21, 56, 0.1));
    border-radius: 16px;
    margin-bottom: 1.5rem;
    color: var(--primary-light);
}

.card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1rem;
}

.card-description {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ========== FOOTER REVOLUTION ========== */
.footer {
    background: #0a0a0a;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 5rem 0 2rem;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(184, 134, 11, 0.5), transparent);
}

/* ========== SCROLL ANIMATIONS ========== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children */
.reveal-stagger > * {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.reveal-stagger.active > *:nth-child(1) { transition-delay: 0.1s; }
.reveal-stagger.active > *:nth-child(2) { transition-delay: 0.2s; }
.reveal-stagger.active > *:nth-child(3) { transition-delay: 0.3s; }
.reveal-stagger.active > *:nth-child(4) { transition-delay: 0.4s; }

.reveal-stagger.active > * {
    opacity: 1;
    transform: translateY(0);
}

/* ========== CURSOR GLOW EFFECT ========== */
.cursor-glow {
    position: fixed;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(184, 134, 11, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s ease;
    opacity: 0;
}

body:hover .cursor-glow {
    opacity: 1;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
    .hero-title {
        font-size: clamp(2.5rem, 6vw, 4rem);
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        gap: 2rem;
        transition: right 0.4s ease;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-link {
        font-size: 1.5rem;
    }
    
    .nav-toggle {
        display: flex;
        flex-direction: column;
        gap: 6px;
        background: none;
        border: none;
        cursor: pointer;
        padding: 10px;
        z-index: 1001;
    }
    
    .nav-toggle span {
        width: 28px;
        height: 2px;
        background: var(--white);
        transition: all 0.3s ease;
    }
    
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }
    
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 100px 0 60px;
        min-height: auto;
    }
    
    .hero-title {
        font-size: clamp(2rem, 8vw, 3rem);
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .section-title {
        font-size: clamp(1.75rem, 5vw, 2.5rem);
    }
    
    .gradient-orb {
        opacity: 0.3;
    }
    
    .orb-1 { width: 300px; height: 300px; }
    .orb-2 { width: 250px; height: 250px; }
    .orb-3 { width: 200px; height: 200px; }
}

/* ========== SMOOTH SCROLL INDICATOR ========== */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.8rem;
    animation: fadeInUp 1s ease-out 1s both;
}

.scroll-indicator::after {
    content: '';
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--primary), transparent);
    animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
    0% { transform: scaleY(0); transform-origin: top; }
    50% { transform: scaleY(1); transform-origin: top; }
    50.1% { transform: scaleY(1); transform-origin: bottom; }
    100% { transform: scaleY(0); transform-origin: bottom; }
}


/* ========== DESIGN SHOWCASE IMAGE ========== */
.design-showcase {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 350px;
    border-radius: 20px;
    overflow: hidden;
}

.design-preview-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.design-showcase:hover .design-preview-img {
    transform: scale(1.05);
}

.design-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
}

.design-label {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--white);
}

/* ========== SECTION CTA BUTTON ========== */
.section-cta {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
    padding-top: 2rem;
}

.section-cta .btn {
    padding: 18px 40px;
    font-size: 1rem;
}

@media (max-width: 768px) {
    .design-showcase {
        min-height: 280px;
    }
    
    .section-cta {
        margin-top: 2rem;
    }
    
    .section-cta .btn {
        width: 100%;
        max-width: 300px;
    }
}


/* ========== DESIGN STUDIO - SEZIONE GRAFICA FANTASTICA ========== */
.design-studio {
    position: relative;
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, rgba(184, 134, 11, 0.05), rgba(139, 21, 56, 0.05));
    border-radius: 24px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Canvas principale */
.design-canvas {
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid rgba(184, 134, 11, 0.3);
    border-radius: 20px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.canvas-grid {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(184, 134, 11, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(184, 134, 11, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
    border-radius: 18px;
    opacity: 0.5;
}

.logo-preview {
    display: flex;
    gap: 5px;
    z-index: 1;
}

.logo-letter {
    font-size: 4rem;
    font-weight: 800;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: letterPulse 3s ease-in-out infinite;
}

.logo-letter:nth-child(2) {
    animation-delay: 0.5s;
}

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

/* Tool fluttuanti */
.design-tool {
    position: absolute;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    animation: toolFloat 4s ease-in-out infinite;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.design-tool span {
    font-size: 1.5rem;
}

.tool-label {
    font-size: 0.7rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.tool-1 {
    top: 15%;
    left: 10%;
    animation-delay: 0s;
}

.tool-2 {
    top: 20%;
    right: 10%;
    animation-delay: -1.5s;
}

.tool-3 {
    bottom: 15%;
    left: 15%;
    animation-delay: -3s;
}

@keyframes toolFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-10px) rotate(2deg); }
    75% { transform: translateY(5px) rotate(-2deg); }
}

/* Color Palette */
.color-palette {
    position: absolute;
    bottom: 20%;
    right: 10%;
    display: flex;
    gap: 8px;
    padding: 12px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.color-swatch {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    cursor: pointer;
    transition: transform 0.2s ease;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.color-swatch:hover {
    transform: scale(1.2);
}

/* Cursor animato */
.design-cursor {
    position: absolute;
    animation: cursorMove 8s ease-in-out infinite;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

@keyframes cursorMove {
    0% { top: 30%; left: 40%; }
    25% { top: 50%; left: 60%; }
    50% { top: 40%; left: 70%; }
    75% { top: 60%; left: 45%; }
    100% { top: 30%; left: 40%; }
}

/* Responsive */
@media (max-width: 768px) {
    .design-studio {
        height: 320px;
    }
    
    .design-canvas {
        width: 150px;
        height: 150px;
    }
    
    .logo-letter {
        font-size: 3rem;
    }
    
    .design-tool {
        padding: 8px 12px;
    }
    
    .design-tool span {
        font-size: 1.2rem;
    }
    
    .tool-label {
        display: none;
    }
    
    .color-palette {
        padding: 8px;
        gap: 6px;
    }
    
    .color-swatch {
        width: 18px;
        height: 18px;
    }
}
