/* ReHumain - Dark Theme Styles (Framer-inspired) */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* Orbitron Font */
@font-face {
    font-family: 'Orbitron';
    src: url('resource/font/orbitron-light-webfont.woff') format('woff'),
         url('resource/font/orbitron-light-webfont.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Orbitron';
    src: url('resource/font/orbitron-medium-webfont.woff') format('woff'),
         url('resource/font/orbitron-medium-webfont.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Orbitron';
    src: url('resource/font/orbitron-bold-webfont.woff') format('woff'),
         url('resource/font/orbitron-bold-webfont.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Orbitron';
    src: url('resource/font/orbitron-black-webfont.woff') format('woff'),
         url('resource/font/orbitron-black-webfont.ttf') format('truetype');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

:root {
    /* Blue gradient palette inspired by Framer */
    --primary-gradient: linear-gradient(135deg, #4C9AFF 0%, #0066FF 25%, #0052CC 50%, #003D99 75%, #6366F1 100%);
    --blue-primary: #0066FF;
    --blue-bright: #4C9AFF;
    --blue-medium: #0052CC;
    --blue-dark: #003D99;
    --blue-indigo: #6366F1;
    --blue-glow: rgba(0, 102, 255, 0.3);
    --blue-glow-strong: rgba(0, 102, 255, 0.5);
    --bg-primary: #0a0a0a;
    --bg-secondary: #111111;
    --bg-tertiary: #1a1a1a;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --text-tertiary: #6b7280;
    --border-color: rgba(255, 255, 255, 0.1);
    --hover-bg: rgba(0, 102, 255, 0.1);
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    --blue-shadow: 0 10px 40px rgba(0, 102, 255, 0.3);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    width: 100%;
    max-width: 100vw;
}

/* Assicura che tutti gli elementi rispettino la larghezza del viewport (tranne il video) */
img,
svg,
iframe,
embed,
object,
table {
    max-width: 100%;
    box-sizing: border-box;
}

/* Il video può essere tagliato, quindi non ha max-width */
.hero-video {
    max-width: none !important;
    width: 100% !important;
}

/* Assicura che elementi inline-block e block rispettino la larghezza */
section,
div,
article,
aside,
main {
    box-sizing: border-box;
}

/* Container principali devono rispettare la larghezza */
header,
nav,
section,
footer,
.container,
.page-content,
.hero-text-container,
.features-container,
.stats-container,
.cta-content,
.footer-content {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* Immagini e media */
img,
svg,
video:not(.hero-video),
iframe {
    max-width: 100%;
    height: auto;
    box-sizing: border-box;
}

/* Orbitron for all headings - IMPORTANT: Must be applied to ALL titles */
h1, h2, h3, h4, h5, h6,
.hero h1,
.section-header h2,
.page-header h1,
.content-section h2,
.content-section h3,
.pricing-card-title,
.pricing-page-header h1,
.enterprise-content h3,
.comparison-section h2,
.feature-card h3,
.cta-content h2,
.footer-section h3 {
    font-family: 'Orbitron', sans-serif !important;
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* Page Transition */
.page-transition {
    animation: fadeIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Header Navigation */
/* Apple-style Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    transition: all 0.4s cubic-bezier(0.28, 0.11, 0.32, 1);
    padding: 0;
    pointer-events: all;
}

header.scrolled {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    padding: 12px 22px 0;
    pointer-events: all;
}

.apple-nav {
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    padding: 0;
    transition: all 0.4s cubic-bezier(0.28, 0.11, 0.32, 1);
    box-sizing: border-box;
}

header.scrolled .apple-nav {
    max-width: min(1024px, calc(100% - 44px));
    width: auto;
    margin: 0 auto;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border-radius: 22px;
    padding: 0;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
    box-sizing: border-box;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
    padding: 0 28px;
    position: relative;
    transition: all 0.4s cubic-bezier(0.28, 0.11, 0.32, 1);
    pointer-events: all;
}

header.scrolled .nav-container {
    height: 52px;
    padding: 0 22px;
}

.nav-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: opacity 0.3s ease;
    height: 44px;
    padding: 0 8px;
    margin-left: -8px;
    pointer-events: all;
    cursor: pointer;
    z-index: 10;
}

.nav-logo:hover {
    opacity: 0.8;
}

.nav-logo img {
    height: 28px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
    transition: height 0.4s cubic-bezier(0.28, 0.11, 0.32, 1);
}

header.scrolled .nav-logo img {
    height: 22px;
}

.nav-menu {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    height: 100%;
    pointer-events: all;
    z-index: 10;
}

.nav-menu li {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.nav-menu li a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 16px;
    font-weight: 400;
    padding: 0 16px;
    height: 100%;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    position: relative;
    white-space: nowrap;
    letter-spacing: -0.01em;
    pointer-events: all;
    cursor: pointer;
    z-index: 10;
}

header.scrolled .nav-menu li a {
    font-size: 15px;
    padding: 0 14px;
}

.nav-menu li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: calc(100% - 20px);
    height: 2px;
    background: rgba(255, 255, 255, 0.8);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

.nav-menu li a:hover {
    color: rgba(255, 255, 255, 1);
}

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

.nav-menu li a.active {
    color: rgba(255, 255, 255, 1);
}

.nav-menu li a.active::after {
    transform: translateX(-50%) scaleX(1);
}

.nav-cta-button {
    background: #0071e3;
    color: white;
    padding: 10px 24px;
    border-radius: 980px;
    text-decoration: none;
    font-weight: 400;
    font-size: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    letter-spacing: -0.01em;
    margin-right: -8px;
    pointer-events: all;
    cursor: pointer;
    z-index: 10;
    display: inline-block;
}

header.scrolled .nav-cta-button {
    padding: 8px 20px;
    font-size: 15px;
}

.nav-cta-button:hover {
    background: #0077ed;
    transform: scale(1.05);
}

/* Dropdown Menu */
.nav-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(-5px);
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.5rem;
    min-width: 240px;
    max-width: 280px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease 0.15s, transform 0.2s ease 0.15s, visibility 0.2s ease 0.15s;
    pointer-events: none;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
    z-index: 1000;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.nav-links > li {
    position: relative;
}

/* Bridge area to keep dropdown open when moving mouse */
.nav-dropdown::before {
    content: '';
    position: absolute;
    top: -15px;
    left: 0;
    right: 0;
    height: 15px;
    z-index: -1;
}

.nav-links > li:hover .nav-dropdown,
.nav-dropdown:hover {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    pointer-events: all;
    transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s ease;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem;
    border-radius: 6px;
    text-decoration: none;
    color: var(--text-secondary);
    transition: background-color 0.15s ease, color 0.15s ease;
    cursor: pointer;
    position: relative;
    width: 100%;
}

.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.06);
}

.dropdown-icon {
    width: 36px;
    height: 36px;
    min-width: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    border-radius: 6px;
    transition: background-color 0.15s ease;
    flex-shrink: 0;
}

.dropdown-icon svg {
    width: 18px;
    height: 18px;
    stroke: var(--text-secondary);
    transition: stroke 0.15s ease;
    stroke-width: 1.5;
    fill: none;
}

.dropdown-item:hover .dropdown-icon {
    background: rgba(255, 255, 255, 0.1);
}

.dropdown-item:hover .dropdown-icon svg {
    stroke: var(--text-primary);
}

.dropdown-content {
    flex: 1;
    min-width: 0;
}

.dropdown-title {
    font-weight: 500;
    font-size: 0.875rem;
    color: var(--text-primary);
    margin-bottom: 0.125rem;
    display: block;
    line-height: 1.3;
    transition: color 0.15s ease;
}

.dropdown-item:hover .dropdown-title {
    color: var(--text-primary);
}

.dropdown-description {
    font-size: 0.75rem;
    color: var(--text-secondary);
    display: block;
    line-height: 1.3;
    transition: color 0.15s ease;
}

.dropdown-item:hover .dropdown-description {
    color: var(--text-tertiary);
}

/* Legacy nav-cta for backward compatibility */
.nav-cta {
    background: #0071e3;
    color: white;
    padding: 6px 16px;
    border-radius: 980px;
    text-decoration: none;
    font-weight: 400;
    font-size: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    letter-spacing: -0.01em;
}

.nav-cta:hover {
    background: #0077ed;
    transform: scale(1.05);
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1001;
    padding: 0.5rem;
    pointer-events: all;
    background: transparent;
    border: none;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition);
    border-radius: 2px;
}

/* Nascondi l'hamburger quando il menu è aperto, così c'è solo la X nel menu */
.mobile-menu-toggle.active {
    opacity: 0;
    pointer-events: none;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-primary);
    z-index: 1000;
    padding: 5rem 2rem 2rem;
    flex-direction: column;
    gap: 0;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
}

.mobile-menu.active {
    transform: translateX(0);
}

.mobile-menu-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 2.5rem;
    font-weight: 300;
    line-height: 1;
    cursor: pointer;
    padding: 0.5rem;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
    z-index: 1001;
    pointer-events: all;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.mobile-menu-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--blue-bright);
    transform: scale(1.1);
}

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

.mobile-menu a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1.25rem;
    font-weight: 500;
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
    display: block;
    pointer-events: all;
    cursor: pointer;
    width: 100%;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.mobile-menu a:hover {
    color: var(--blue-bright);
    padding-left: 1rem;
}

.mobile-menu a:last-child {
    border-bottom: none;
}

/* Buttons */
.btn-primary {
    background: var(--primary-gradient);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition);
    display: inline-block;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--blue-shadow);
    filter: brightness(1.1);
}

.btn-secondary {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    border: 2px solid var(--border-color);
    transition: var(--transition);
    display: inline-block;
    font-family: inherit;
}

.btn-secondary:hover {
    border-color: var(--blue-primary);
    background: var(--hover-bg);
    color: var(--blue-bright);
    transform: translateY(-3px);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8rem 2rem 4rem;
    position: relative;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    z-index: 0;
    opacity: 1;
    background: #000;
}

/* Mobile: video immersivo full height */
@media (max-width: 768px) {
    .hero {
        padding: 0;
        margin: 0;
        min-height: 100vh;
        height: 100vh;
        width: 100%;
        position: relative;
        overflow: hidden;
        background: #000;
        display: block;
    }
    
    .hero-video {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        min-height: 100vh;
        object-fit: cover;
        object-position: center center;
        display: block;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 0;
        margin: 0;
        min-height: 100vh;
        height: 100vh;
        width: 100%;
        position: relative;
        overflow: hidden;
        background: #000;
        display: block;
    }
    
    .hero-video {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        min-height: 100vh;
        object-fit: cover;
        object-position: center center;
        display: block;
    }
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    z-index: 1;
    pointer-events: none;
    display: none;
}

.hero-content {
    max-width: 1200px;
    text-align: center;
    position: relative;
    z-index: 2;
}

.hero-content-hidden {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-content-hidden h1,
.hero-content-hidden .tagline,
.hero-content-hidden .hero-buttons {
    opacity: 0;
    transform: translateY(20px);
    transition: none;
}

.hero-content-visible {
    opacity: 1;
    transform: translateY(0);
}

.hero-content-visible h1 {
    opacity: 1;
    transform: translateY(0);
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.1s forwards;
}

.hero-content-visible .tagline {
    opacity: 1;
    transform: translateY(0);
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.3s forwards;
}

.hero-content-visible .hero-buttons {
    opacity: 1;
    transform: translateY(0);
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.5s forwards;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 5.5rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

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

.hero .tagline {
    font-size: clamp(1.25rem, 3vw, 2rem);
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    font-weight: 400;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Hero Text Section - Nuova area sotto il video */
.hero-text-section {
    padding: 6rem 2rem;
    background: var(--bg-primary);
    position: relative;
    overflow: hidden;
}

.hero-text-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-color), transparent);
}

.hero-text-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
    box-sizing: border-box;
    padding: 0 2rem;
}

.hero-text-hidden {
    opacity: 0;
    transform: translateY(50px);
}

.hero-text-visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1), transform 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-text-visible h1 {
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.2s forwards;
}

.hero-text-visible .tagline {
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.4s forwards;
}

.hero-text-visible .hero-buttons {
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.6s forwards;
}

.hero-text-section h1 {
    font-size: clamp(2.5rem, 6vw, 5.5rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    opacity: 0;
    transform: translateY(30px);
}

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

.hero-text-section .tagline {
    font-size: clamp(1.25rem, 3vw, 2rem);
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    font-weight: 400;
    opacity: 0;
    transform: translateY(30px);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-text-section .hero-buttons {
    opacity: 0;
    transform: translateY(30px);
}

/* Features Section */
.features {
    padding: 8rem 2rem;
    background: var(--bg-secondary);
}

.features-container {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
    padding: 0 2rem;
}

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

.section-header h2 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

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

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.feature-card {
    padding: 2.5rem;
    border-radius: 20px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    opacity: 0;
    transform: translateY(30px);
}

.feature-card.visible {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow), 0 0 30px var(--blue-glow);
    border-color: var(--blue-primary);
    background: var(--bg-secondary);
}

.feature-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 1.5rem;
    background: var(--primary-gradient);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.feature-icon svg {
    width: 32px;
    height: 32px;
    stroke: white;
    box-shadow: 0 0 20px var(--blue-glow);
    transition: var(--transition);
}

.feature-card:hover .feature-icon {
    box-shadow: 0 0 30px var(--blue-glow-strong);
    transform: scale(1.1);
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.8;
}

/* Stats Section */
.stats {
    padding: 6rem 2rem;
    background: var(--bg-primary);
}

.stats-container {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    box-sizing: border-box;
    padding: 0 2rem;
}

.stat-item {
    text-align: center;
    opacity: 0;
    transform: translateY(30px);
}

.stat-item.visible {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
    filter: drop-shadow(0 0 10px var(--blue-glow));
}

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

/* CTA Section */
.cta-section {
    padding: 8rem 2rem;
    background: var(--primary-gradient);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.cta-content {
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    box-sizing: border-box;
    padding: 0 2rem;
}

.cta-content h2 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.cta-content p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
}

/* Page Header */
.page-header {
    padding: 10rem 2rem 4rem;
    text-align: center;
    background: radial-gradient(ellipse at top, var(--blue-glow) 0%, transparent 50%);
    position: relative;
}

.page-header h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

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

/* Page Content */
.page-content {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 4rem 2rem;
    box-sizing: border-box;
}

.content-section {
    margin-bottom: 5rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.content-section:nth-child(1) { animation-delay: 0.1s; }
.content-section:nth-child(2) { animation-delay: 0.2s; }
.content-section:nth-child(3) { animation-delay: 0.3s; }
.content-section:nth-child(4) { animation-delay: 0.4s; }
.content-section:nth-child(5) { animation-delay: 0.5s; }

.content-section h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.content-section h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
    margin-top: 2rem;
    letter-spacing: -0.01em;
}

.content-section p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.content-section ul {
    margin-left: 2rem;
    margin-bottom: 1.5rem;
}

.content-section li {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 0.5rem;
}

/* Contact Form */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: var(--bg-tertiary);
    padding: 3rem;
    border-radius: 20px;
    margin-top: 3rem;
    border: 1px solid var(--border-color);
}

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

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    background: var(--bg-secondary);
    color: var(--text-primary);
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--blue-primary);
    box-shadow: 0 0 0 3px var(--blue-glow);
}

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

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.contact-card {
    background: var(--bg-tertiary);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.contact-card:hover {
    transform: translateY(-5px);
    border-color: var(--blue-primary);
    box-shadow: 0 10px 30px var(--blue-glow);
}

.contact-card h3 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.contact-card p {
    color: var(--text-secondary);
}

/* Pricing Cards */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.pricing-card {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2.5rem;
    transition: var(--transition);
    position: relative;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow), 0 0 40px var(--blue-glow);
    border-color: var(--blue-primary);
}

.pricing-card.featured {
    border: 2px solid;
    border-image: var(--primary-gradient) 1;
    background: linear-gradient(135deg, rgba(22, 181, 166, 0.1) 0%, rgba(248, 188, 58, 0.1) 100%);
}

.pricing-card.featured::before {
    content: 'Più Popolare';
    position: absolute;
    top: -15px;
    right: 20px;
    background: var(--primary-gradient);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    box-shadow: 0 0 20px var(--blue-glow);
}

.pricing-header {
    margin-bottom: 2rem;
}

.pricing-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.pricing-header .price {
    font-size: 3rem;
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

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

.pricing-features {
    list-style: none;
    margin: 2rem 0;
}

.pricing-features li {
    padding: 0.75rem 0;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-features li::before {
    content: '✓';
    color: var(--blue-primary);
    font-weight: bold;
    margin-right: 0.5rem;
}

/* Footer */
footer {
    background: var(--bg-secondary);
    color: white;
    padding: 4rem 2rem 2rem;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
    box-sizing: border-box;
    padding: 0 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-section a {
    color: var(--text-secondary);
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--blue-bright);
    transform: translateX(5px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
}

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

/* Responsive */
@media (max-width: 1024px) {
    .nav-links {
        gap: 0;
    }

    .nav-links > li > a {
        padding: 0 0.75rem;
        font-size: 0.875rem;
    }

    .nav-dropdown {
        min-width: 220px;
        max-width: 260px;
    }

    .hero {
        padding: 7rem 2rem 4rem;
    }

    .features {
        padding: 6rem 2rem;
    }

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

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

    .nav-dropdown {
        display: none;
    }

    .nav-cta-button,
    .nav-cta {
        display: none;
    }
    
    .nav-container {
        padding: 0 16px;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .mobile-menu {
        display: flex;
    }
    
    .mobile-menu-close {
        display: flex;
    }

    .nav-container {
        padding: 0 16px;
        height: 44px;
    }
    
    .nav-logo {
        height: 36px;
    }
    
    .nav-logo img {
        height: 18px;
    }

    /* Hero già gestito nelle media queries sopra - non sovrascrivere */

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

    .hero .tagline {
        font-size: 1.25rem;
    }

    .features {
        padding: 4rem 1rem;
    }

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

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        text-align: center;
    }

    .page-content {
        padding: 2rem 1rem;
    }

    .page-header {
        padding: 8rem 1rem 3rem;
    }

    .section-header {
        margin-bottom: 3rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .section-header p {
        font-size: 1.125rem;
    }

    .stats {
        padding: 4rem 1rem;
    }

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

    .cta-section {
        padding: 4rem 1rem;
    }

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

    .contact-form {
        padding: 2rem 1.5rem;
    }

    .contact-info {
        grid-template-columns: 1fr;
    }

    .footer {
        padding: 3rem 1rem 1.5rem;
    }

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

    .content-section {
        margin-bottom: 3rem;
    }

    .content-section h2 {
        font-size: 2rem;
    }

    .content-section h3 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    nav {
        padding: 0.75rem;
    }

    .logo {
        height: 35px;
    }
    
    .logo img {
        max-height: 35px;
    }

    /* Hero già gestito nelle media queries sopra - non sovrascrivere */

    .hero h1 {
        font-size: 1.75rem;
        line-height: 1.2;
    }

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

    .hero-buttons {
        gap: 0.75rem;
    }

    .btn-primary,
    .btn-secondary {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }

    .features {
        padding: 3rem 1rem;
    }

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

    .section-header p {
        font-size: 1rem;
    }

    .feature-card {
        padding: 1.5rem;
    }

    .feature-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }

    .feature-card h3 {
        font-size: 1.25rem;
    }

    .stats {
        padding: 3rem 1rem;
    }

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

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

    .cta-section {
        padding: 3rem 1rem;
    }

    .cta-content h2 {
        font-size: 1.75rem;
    }

    .cta-content p {
        font-size: 1rem;
    }

    .page-header {
        padding: 6rem 1rem 2rem;
    }

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

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

    .page-content {
        padding: 1.5rem 1rem;
    }

    .content-section h2 {
        font-size: 1.75rem;
    }

    .content-section h3 {
        font-size: 1.25rem;
    }

    .content-section p {
        font-size: 1rem;
    }

    .pricing-card {
        padding: 1.5rem;
    }

    .pricing-header .price {
        font-size: 2.5rem;
    }

    .contact-form {
        padding: 1.5rem 1rem;
    }

    .contact-card {
        padding: 1.5rem;
    }

    .footer {
        padding: 2rem 1rem 1rem;
    }
}
