﻿@import url('intlTelInput.css');
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700;900&display=swap');

/* Colori e Gradienti Base: Rosso Chiaro/Arancione Brillante */
:root {
    --color-primary: #FF5733; /* Rosso Arancione Brillante */
    --color-secondary: #FFC300; /* Giallo Arancio Chiaro */
    --color-dark: #0f172a;
    --color-light: #1e293b;
    --color-text-dim: #cbd5e1;
    --color-text-soft: #94a3b8;
}

/* Base styles */
body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--color-text-dim);
    background-color: var(--color-dark);
    margin: 0;
    padding: 0;
}
html, body { overflow-x: hidden; scroll-behavior: smooth; }

/* Utility Gradients */
.gradient-bg { background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%); }
.gradient-text { background: linear-gradient(135deg, var(--color-primary), var(--color-secondary)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

/* UI */
.page { display: none; }
.page.active { display: block; }
.cookie-banner { position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000; border-color: var(--color-primary); }
.iti { width: 100%; }

/* Mobile menu animation */
@media (max-width: 768px) {
    .mobile-menu { transform: translateX(-100%); transition: transform 0.3s ease; }
    .mobile-menu.active { transform: translateX(0); }
}
@media (min-width: 768px) {
    .mobile-menu { display: none !important; }
}

/* Glassmorphism card */
.glass {
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(255, 87, 51, 0.2); 
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 16px;
}

/* Fancy links */
.neon-link { position: relative; color: var(--color-text-dim); transition: color .2s ease; }
.neon-link::after {
    content: "";
    position: absolute;
    left: 0; bottom: -2px; height: 2px; width: 100%;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary)); 
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .3s ease;
}
.neon-link:hover { color: var(--color-primary); }
.neon-link:hover::after { transform: scaleX(1); }

/* Cards hover */
.card-hover { transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; cursor: pointer; }
.card-hover:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(255, 87, 51, .4); border-color: rgba(255, 87, 51, .5); } 

/* Buttons animation */
.btn-animated { position: relative; overflow: hidden; }
.btn-animated::before {
    content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(255, 87, 51, 0.0), rgba(255, 195, 0, 0.15));
    transform: translateX(-100%);
}
.btn-animated:hover::before { transform: translateX(0); transition: transform .35s ease; }

/* Section decorative pseudo-elements */
.section-decor { position: relative; }
.section-decor::before, .section-decor::after {
    content: ""; position: absolute; pointer-events: none; filter: blur(40px); opacity: .2;
}
.section-decor::before { width: 180px; height: 180px; background: radial-gradient(ellipse at center, rgba(255, 87, 51, .4), rgba(255, 87, 51, 0)); top: -40px; left: -20px; } 
.section-decor::after { width: 220px; height: 220px; background: radial-gradient(circle at center, rgba(255, 195, 0, .35), rgba(255, 195, 0, 0)); bottom: -50px; right: -10px; } 

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--color-dark) 0%, var(--color-light) 25%, #8B0000 50%, #B22222 75%, #4C0000 100%); /* New red gradient */
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    position: relative;
}

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

/* Floating Code Elements */
.floating-code {
    position: absolute;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    font-size: 1.2rem;
    color: rgba(255, 87, 51, 0.4); 
    z-index: 1;
    animation: floatCode 8s ease-in-out infinite;
    cursor: pointer;
    transition: all 0.3s ease;
}

@keyframes floatCode {
    0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.4; }
    50% { transform: translateY(-40px) rotate(-5deg); opacity: 0.8; }
}

.code-tag {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(255, 87, 51, 0.15); 
    backdrop-filter: blur(10px);
    border-radius: 8px;
    border: 1px solid rgba(255, 87, 51, 0.3);
    transition: all 0.3s ease;
}

.floating-code:hover .code-tag {
    background: rgba(255, 87, 51, 0.3);
    transform: scale(1.15);
    color: rgba(255, 87, 51, 1);
    box-shadow: 0 8px 20px rgba(255, 87, 51, 0.4);
    border-color: rgba(255, 87, 51, 0.6);
}

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

.orb-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--color-primary), transparent);
    top: -200px;
    left: -200px;
    animation-delay: 0s;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--color-secondary), transparent);
    bottom: -250px;
    right: -250px;
    animation-delay: 5s;
}

.orb-3 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, var(--color-primary), transparent);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 10s;
}

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(50px, -50px) scale(1.1); }
    66% { transform: translate(-50px, 50px) scale(0.9); }
}

/* Grid Pattern */
.grid-pattern {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 87, 51, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 87, 51, 0.1) 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); }
}

/* Hero Title */
.hero-title {
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    animation: titlePulse 3s ease-in-out infinite;
}

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

.gradient-text-animated {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary), var(--color-primary));
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: textShine 3s ease-in-out infinite;
}

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

/* CTA Buttons */
.hero-cta-btn {
    position: relative;
    box-shadow: 0 10px 30px rgba(255, 87, 51, 0.4);
    transition: all 0.3s ease;
}

.hero-cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(255, 87, 51, 0.6);
}

.hero-cta-btn-secondary {
    transition: all 0.3s ease;
}

.hero-cta-btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 87, 51, 0.3);
}

/* Stats Cards */
.stat-card {
    background: rgba(30, 41, 59, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    border: 1px solid rgba(255, 87, 51, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
}

.stat-card:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 15px 35px rgba(255, 87, 51, 0.5);
    background: rgba(30, 41, 59, 1);
    border-color: rgba(255, 87, 51, 0.6);
}

.stat-icon {
    margin-bottom: 12px;
    animation: iconFloat 3s ease-in-out infinite;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 8px;
}

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

/* Animations */
@keyframes pulse-slow {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.animate-pulse-slow {
    animation: pulse-slow 3s ease-in-out infinite;
}

@keyframes spin-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.animate-spin-slow {
    animation: spin-slow 3s linear infinite;
}

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

@keyframes float {
    0% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
    100% { transform: translateY(0); }
}
.animate-float { animation: float 4s ease-in-out infinite; }