/* ============================================
   Futsal Manager Landing Page - Styles
   ============================================ */

:root {
    /* Palette Colori Futsal Manager */
    --primary-color: #0A1A2F;        /* Blu Navy - colore principale */
    --primary-dark: #050D1A;          /* Blu Navy scuro */
    --primary-light: #2D8CFF;         /* Azzurro Tech - accenti e pulsanti */
    --secondary-color: #36D699;       /* Verde Match - indicatori compatibilità */
    --accent-color: #2D8CFF;          /* Azzurro Tech - accenti */
    --text-dark: #1F1F1F;             /* Grigio Grafite scuro */
    --text-light: #6b7280;
    --bg-light: #f9fafb;
    --bg-white: #FFFFFF;              /* Bianco Puro */
    --bg-dark: #1F1F1F;                /* Grigio Grafite */
    --bg-darker: #2B2B2B;              /* Grigio Grafite chiaro */
    --border-color: #e5e7eb;
    --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);
    --radius: 12px;
    --radius-sm: 8px;
    --transition: all 0.3s ease;
}

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

html {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    position: relative;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    position: relative;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

/* ============================================
   Navigation
   ============================================ */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100vw;
    background: #ffffff;
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: var(--transition);
    overflow-x: hidden;
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
}

/* Assicura che il menu mobile sia sempre sopra tutto */
@media (max-width: 968px) {
    .navbar {
        z-index: 1000;
    }
    
    .nav-links.active {
        z-index: 999999 !important;
        position: fixed !important;
    }
    
    /* Assicura che hero e altre sezioni non coprano il menu */
    .hero,
    section,
    .hero-content,
    .hero-text,
    .hero-visual,
    .hero-title,
    .hero-subtitle,
    .hero-cta,
    .hero-stats {
        position: relative !important;
        z-index: 1 !important;
    }
    
    /* Forza il menu sopra TUTTO */
    body .nav-links.active {
        z-index: 999999 !important;
        position: fixed !important;
        top: 70px !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        max-width: 100vw !important;
    }
    
    /* Assicura che il navbar non limiti il menu */
    .navbar {
        z-index: 1000 !important;
        position: relative;
    }
    
    /* Il menu deve essere estratto dal flusso normale su mobile */
    .nav-content {
        position: relative;
        z-index: auto;
    }
}

.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 48px;
    width: auto;
    object-fit: contain;
}

.logo i {
    font-size: 1.5rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

/* Desktop: mostra il menu nella navbar */
@media (min-width: 969px) {
    .nav-links {
        display: flex !important;
        position: static !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 2rem !important;
        background: transparent !important;
        box-shadow: none !important;
        padding: 0 !important;
        width: auto !important;
        max-width: none !important;
        max-height: none !important;
        overflow: visible !important;
        border-top: none !important;
        margin: 0 !important;
        transform: none !important;
        visibility: visible !important;
        opacity: 1 !important;
        z-index: auto !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
    }
    
    .nav-links a {
        padding: 0 !important;
        border-bottom: none !important;
        text-align: left !important;
    }
    
    .nav-heart-link {
        padding: 0.5rem !important;
        border-bottom: none !important;
    }
    
    /* Nascondi il toggle su desktop */
    .mobile-menu-toggle,
    #navToggle {
        display: none !important;
    }
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--primary-light);
}

.btn-nav {
    background: var(--primary-light);
    color: white !important;
    padding: 0.5rem 1.5rem;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.btn-nav:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

.btn-nav-primary {
    background: var(--primary-color);
    font-weight: 600;
}

.btn-nav-primary:hover {
    background: var(--primary-dark);
}

.nav-heart-link {
    color: #dc2626 !important;
    font-size: 1.25rem;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
}

.nav-heart-link:hover {
    color: #ef4444 !important;
    transform: scale(1.2);
}

.nav-heart-link i {
    animation: heartbeat-nav 2s ease-in-out infinite;
}

@keyframes heartbeat-nav {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.mobile-menu-toggle,
#navToggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-dark);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    user-select: none;
    touch-action: manipulation;
    pointer-events: auto;
    z-index: 1001;
    position: relative;
    padding: 0.5rem;
}

/* ============================================
   Buttons
   ============================================ */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: var(--primary-light);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: white;
    color: var(--primary-light);
    border: 2px solid var(--primary-light);
}

.btn-secondary:hover {
    background: var(--primary-light);
    color: white;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* ============================================
   Hero Section
   ============================================ */

.hero {
    position: relative;
    padding: 150px 0 80px;
    background: linear-gradient(135deg, #0A1A2F 0%, #2D8CFF 100%);
    color: white;
    overflow: hidden;
    border-bottom: none;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    z-index: 1;
}

.hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 120px;
    overflow: hidden;
    pointer-events: none;
}

.hero-wave svg {
    width: 100%;
    height: 100%;
    display: block;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
}

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

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.highlight {
    color: var(--secondary-color);
    text-shadow: 0 2px 10px rgba(54, 214, 153, 0.3);
}

.hero-subtitle {
    font-size: 1.25rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    gap: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

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

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
    min-width: 3ch;
    text-align: center;
    display: inline-block;
    will-change: contents;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

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

.hero-card {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    width: 100%;
    max-width: 400px;
    animation: float 3s ease-in-out infinite;
}

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

.card-header {
    background: var(--primary-color);
    color: white;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
}

.card-content {
    padding: 1.5rem;
}

.match-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.match-item:last-child {
    border-bottom: none;
}

.match-score {
    background: var(--secondary-color);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
}

.match-info {
    flex: 1;
}

.match-info strong {
    display: block;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.match-info span {
    font-size: 0.875rem;
    color: var(--text-light);
}


/* ============================================
   Section Styles
   ============================================ */

section {
    padding: 80px 0;
}

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

.section-badge {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: var(--bg-light);
    color: var(--primary-color);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}

.section-badge-primary {
    background: var(--primary-color);
    color: white;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
}

/* ============================================
   Problem Section
   ============================================ */

.problem-section {
    background: var(--bg-light);
    position: relative;
    z-index: 2;
    margin-top: -1px;
}

.problem-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.problem-card {
    background: white;
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.problem-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.problem-icon {
    width: 60px;
    height: 60px;
    background: #fee2e2;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    color: #dc2626;
    font-size: 1.5rem;
}

.problem-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.problem-card p {
    color: var(--text-light);
    line-height: 1.6;
}

.problem-result {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    font-size: 1.25rem;
}

.problem-result i {
    font-size: 2rem;
    color: var(--primary-light);
}

/* ============================================
   Solution Section
   ============================================ */

.solution-section {
    background: white;
}

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

.feature-item {
    text-align: center;
    padding: 2rem 1rem;
    background: var(--bg-light);
    border-radius: var(--radius);
    transition: var(--transition);
}

.feature-item:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-5px);
}

.feature-item:hover .feature-icon {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 2rem;
    color: var(--primary-color);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.feature-item h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.feature-item p {
    font-size: 0.9rem;
    opacity: 0.8;
}

.solution-highlight {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    padding: 2rem;
    background: var(--primary-color);
    color: white;
    border-radius: var(--radius);
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
}

.highlight-item i {
    font-size: 1.5rem;
}

/* ============================================
   How It Works Section
   ============================================ */

.how-it-works-section {
    background: var(--bg-light);
}

.how-it-works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
}

.how-card {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.how-card-header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.how-number {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
}

.how-card-header h3 {
    font-size: 1.5rem;
}

.how-card-content {
    padding: 2rem;
}

.how-step {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.how-step:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.how-step i {
    font-size: 1.5rem;
    color: var(--primary-light);
    margin-top: 0.25rem;
}

.how-step strong {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.how-step p {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* ============================================
   Unique Features Section
   ============================================ */

.unique-section {
    background: white;
}

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

.unique-card {
    background: var(--bg-light);
    padding: 2.5rem;
    border-radius: var(--radius);
    text-align: center;
    transition: var(--transition);
    border: 2px solid transparent;
}

.unique-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.unique-icon {
    width: 80px;
    height: 80px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
}

.unique-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.unique-card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* ============================================
   Pricing Section
   ============================================ */

.pricing-section {
    background: var(--bg-light);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.pricing-card {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 2.5rem;
    position: relative;
    transition: var(--transition);
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.pricing-card.pricing-featured {
    border: 3px solid var(--primary-light);
    transform: scale(1.05);
}

.pricing-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--secondary-color);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
}

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

.pricing-header i {
    font-size: 3rem;
    color: var(--primary-light);
    margin-bottom: 1rem;
}

.pricing-header h3 {
    font-size: 1.5rem;
    color: var(--text-dark);
}

.pricing-price {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--border-color);
}

.price-amount {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-light);
    display: block;
}

.price-period {
    font-size: 1rem;
    color: var(--text-light);
}

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

.pricing-features li {
    padding: 0.75rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-dark);
}

.pricing-features i {
    color: var(--secondary-color);
}

.pricing-note {
    padding: 1rem;
    background: var(--bg-light);
    border-radius: var(--radius-sm);
    display: flex;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-light);
}

.pricing-note i {
    color: var(--primary-light);
}

/* ============================================
   Benefits Section
   ============================================ */

.benefits-section {
    background: white;
}

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

.benefits-title {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.benefits-title i {
    color: var(--primary-light);
    font-size: 2rem;
}

.benefits-list {
    list-style: none;
}

.benefits-list li {
    padding: 1rem 0;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    font-size: 1.1rem;
    color: var(--text-dark);
}

.benefits-list i {
    color: var(--secondary-color);
    margin-top: 0.25rem;
}

/* ============================================
   Market Section
   ============================================ */

.market-section {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
}

.market-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.market-text .section-badge {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.market-text .section-title {
    color: white;
}

.market-text p {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

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

.market-list li {
    padding: 1rem 0;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.market-list i {
    color: var(--secondary-color);
    font-size: 1.5rem;
}

.market-conclusion {
    margin-top: 2rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

.market-visual {
    display: flex;
    justify-content: center;
}

.market-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 3rem;
    border-radius: var(--radius);
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.market-card i {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.market-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* ============================================
   Technology Section
   ============================================ */

.tech-section {
    background: var(--bg-light);
}

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

.tech-item {
    background: white;
    padding: 2.5rem;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.tech-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.tech-item i {
    font-size: 3rem;
    color: var(--primary-light);
    margin-bottom: 1.5rem;
}

.tech-item h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.tech-item p {
    color: var(--text-light);
}

/* ============================================
   Demo Credentials Section
   ============================================ */

.demo-section {
    background: var(--bg-light);
    padding: 80px 0;
}

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

.demo-card {
    background: white;
    padding: 2.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 2px solid transparent;
}

.demo-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.demo-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--bg-light);
}

.demo-card-header i {
    font-size: 2.5rem;
    color: var(--primary-light);
}

.demo-card-header h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin: 0;
}

.demo-credential-item {
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: var(--bg-light);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
}

.demo-credential-item strong {
    color: var(--text-dark);
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.demo-credential-item code {
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    display: inline-block;
    word-break: break-all;
}

.demo-note {
    margin-top: 1.5rem;
    padding: 1rem;
    background: rgba(45, 140, 255, 0.1);
    border-left: 3px solid var(--primary-light);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    color: var(--text-dark);
}

.demo-note i {
    color: var(--primary-light);
    margin-right: 0.5rem;
}

.demo-card .btn {
    width: 100%;
    margin-top: 1.5rem;
}

.demo-info {
    margin-top: 3rem;
    padding: 1.5rem;
    background: rgba(45, 140, 255, 0.1);
    border-radius: var(--radius);
    text-align: center;
}

.demo-info p {
    margin: 0;
    color: var(--text-dark);
}

.demo-info a {
    color: var(--primary-light);
    font-weight: 600;
    text-decoration: none;
}

.demo-info a:hover {
    text-decoration: underline;
}

/* ============================================
   Vision Section
   ============================================ */

.vision-section {
    background: white;
    text-align: center;
}

.vision-icon {
    font-size: 4rem;
    color: var(--primary-light);
    margin-bottom: 2rem;
}

.vision-text {
    font-size: 1.5rem;
    line-height: 1.8;
    color: var(--text-dark);
    max-width: 800px;
    margin: 0 auto 2rem;
}

.vision-future {
    font-size: 1.25rem;
    color: var(--text-light);
}

/* ============================================
   Contact Section
   ============================================ */

.contact-section {
    background: var(--bg-light);
    padding: 80px 0;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    margin-top: 3rem;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
}

.contact-info-item i {
    font-size: 1.5rem;
    color: var(--primary-light);
    margin-top: 0.25rem;
}

.contact-info-item strong {
    display: block;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.contact-info-item p {
    color: var(--text-dark);
    margin: 0;
}

.contact-form {
    background: white;
    padding: 2.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
}

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

.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    background: var(--bg-light);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-light);
    background: white;
}

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

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

/* ============================================
   CTA Section
   ============================================ */

.cta-section {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    text-align: center;
    padding: 100px 0;
}

.cta-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.cta-subtitle {
    font-size: 1.5rem;
    margin-bottom: 3rem;
    opacity: 0.95;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.cta-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    opacity: 0.9;
}

/* ============================================
   Supporter Wall Section
   ============================================ */

.supporter-section {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 50%, #fcd34d 100%);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

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

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

.supporter-icon-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.supporter-icon {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #dc2626, #ef4444);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(220, 38, 38, 0.3);
    position: relative;
    z-index: 2;
    animation: heartbeat 2s ease-in-out infinite;
}

.supporter-icon i {
    font-size: 3rem;
    color: white;
}

.supporter-pulse {
    position: absolute;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(220, 38, 38, 0.3);
    animation: pulse 2s ease-in-out infinite;
    z-index: 1;
}

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

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

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

.supporter-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.9);
    color: #d97706;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.supporter-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.supporter-description {
    font-size: 1.125rem;
    color: #78350f;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.btn-supporter {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, #dc2626, #ef4444);
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.125rem;
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.4);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-supporter::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.btn-supporter:hover::before {
    left: 100%;
}

.btn-supporter:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.5);
}

.btn-supporter i {
    transition: transform 0.3s ease;
}

.btn-supporter:hover i {
    transform: translateX(5px);
}

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

.supporter-card-preview {
    background: white;
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.supporter-card-preview:hover {
    transform: translateY(-5px);
}

.supporter-shine {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

.supporter-card-preview i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.supporter-card-preview p {
    color: var(--text-dark);
    font-weight: 600;
    margin: 0;
}

/* ============================================
   Footer
   ============================================ */

.footer {
    background: var(--bg-dark);
    color: white;
    padding: 4rem 0 2rem;
}

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

.footer-brand .logo {
    color: white;
    margin-bottom: 1rem;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
}

.footer-column h4 {
    margin-bottom: 1rem;
    color: white;
}

.footer-column a {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    margin-bottom: 0.75rem;
    transition: var(--transition);
}

.footer-column a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
}

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 968px) {
    html, body {
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden;
    }
    
    .container {
        padding: 0 20px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        margin-left: 0;
        margin-right: 0;
    }
    
    .hero {
        padding: 100px 0 60px;
        margin-left: 0;
        margin-right: 0;
    }
    
    .hero-content {
        margin-left: 0;
        margin-right: 0;
    }
    
    .hero-wave {
        left: 0;
        right: 0;
        width: 100%;
        max-width: 100%;
    }
    
    .hero-wave svg {
        width: 100%;
        min-width: 100%;
        left: 0;
        right: 0;
    }
    
    .nav-links {
        display: none;
        flex-direction: column;
        align-items: stretch;
        position: fixed !important;
        top: 70px !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        max-width: 100vw !important;
        background: #ffffff !important;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3) !important;
        padding: 2rem 0 !important;
        z-index: 999999 !important;
        border-top: 1px solid var(--border-color) !important;
        overflow-y: auto !important;
        max-height: calc(100vh - 70px) !important;
        margin: 0 !important;
        transform: none !important;
        /* Estrai dal flusso del parent */
        position: fixed !important;
    }
    
    .nav-links.active {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        z-index: 999999 !important;
        position: fixed !important;
        top: 70px !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        max-width: 100vw !important;
        transform: none !important;
    }
    
    /* Assicura che nav-content non limiti il posizionamento del menu su mobile */
    .nav-content {
        position: relative;
        z-index: 1;
    }
    
    .nav-links a {
        padding: 1rem;
        border-bottom: 1px solid var(--border-color);
        text-align: center;
        pointer-events: auto !important;
        cursor: pointer !important;
        z-index: 1002;
        position: relative;
    }
    
    .nav-heart-link {
        padding: 1rem !important;
        border-bottom: 1px solid var(--border-color);
    }
    
    .nav-links a:last-child {
        border-bottom: none;
    }
    
    .mobile-menu-toggle,
    #navToggle {
        display: block !important;
        z-index: 1001 !important;
        position: relative !important;
        pointer-events: auto !important;
        cursor: pointer !important;
        -webkit-tap-highlight-color: transparent !important;
        touch-action: manipulation !important;
        user-select: none !important;
    }
    
    .mobile-menu-toggle.active {
        color: var(--primary-light);
    }
    
    .hero {
        padding: 100px 0 60px;
        margin-left: 0;
        margin-right: 0;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        margin-left: 0;
        margin-right: 0;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-stats {
        justify-content: center;
        gap: 1.5rem;
        flex-wrap: nowrap;
        flex-direction: row;
    }
    
    .stat-item {
        flex: 1;
        min-width: 0;
    }
    
    .hero-wave {
        left: 0;
        right: 0;
        width: 100%;
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
    }
    
    .hero-wave svg {
        width: 100%;
        min-width: 100%;
        left: 0;
        right: 0;
        margin-left: 0;
        margin-right: 0;
    }
    
    .how-it-works-grid {
        grid-template-columns: 1fr;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .market-content {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .supporter-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .supporter-icon-wrapper {
        order: 1;
    }
    
    .supporter-text {
        order: 2;
    }
    
    .supporter-visual {
        order: 3;
    }
}

@media (max-width: 640px) {
    .supporter-section {
        padding: 60px 0;
    }
    
    .supporter-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .supporter-icon {
        width: 100px;
        height: 100px;
    }
    
    .supporter-icon i {
        font-size: 2.5rem;
    }
    
    .supporter-pulse {
        width: 100px;
        height: 100px;
    }
    
    .supporter-title {
        font-size: 2rem;
    }
    
    .supporter-description {
        font-size: 1rem;
    }
    
    .btn-supporter {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
    
    .supporter-card-preview {
        padding: 1.5rem;
    }
    
    .supporter-card-preview i {
        font-size: 2.5rem;
    }
}

/* Fix overflow su iPhone e mobile */
html, body {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    position: relative;
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 640px) {
    html, body {
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden;
        position: relative;
        -webkit-overflow-scrolling: touch;
    }
    
    .container {
        padding: 0 20px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        margin-left: 0;
        margin-right: 0;
        overflow-x: hidden;
    }
    
    .hero {
        padding: 100px 0 50px;
        margin-left: 0;
        margin-right: 0;
        padding-left: 0;
        padding-right: 0;
    }
    
    .hero-content {
        margin-left: 0;
        margin-right: 0;
        padding-left: 0;
        padding-right: 0;
    }
    
    .hero-title {
        font-size: 2rem;
        padding-left: 0;
        padding-right: 0;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        padding-left: 0;
        padding-right: 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .cta-title {
        font-size: 2rem;
    }
    
    .hero-cta {
        flex-direction: column;
        margin-left: 0;
        margin-right: 0;
    }
    
    .hero-cta .btn {
        width: 100%;
        justify-content: center;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .cta-buttons .btn {
        width: 100%;
        justify-content: center;
    }
    
    .hero-stats {
        gap: 1rem;
        flex-wrap: nowrap;
        flex-direction: row;
        justify-content: space-between;
        padding-left: 0;
        padding-right: 0;
    }
    
    .stat-item {
        flex: 1;
        min-width: 0;
        text-align: center;
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
    
    .stat-label {
        font-size: 0.75rem;
    }
    
    .hero-wave {
        left: 0;
        right: 0;
        width: 100%;
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
    }
    
    .hero-wave svg {
        width: 100%;
        min-width: 100%;
        left: 0;
        right: 0;
        margin-left: 0;
        margin-right: 0;
    }
    
    /* Prevenire overflow su mobile */
    * {
        max-width: 100%;
    }
    
    img, svg, video {
        max-width: 100%;
        height: auto;
    }
    
    /* Stabilizzare le statistiche per evitare "ballare" */
    .stat-number {
        min-width: 3ch;
        text-align: center;
        display: inline-block;
    }
    
    /* Evitare reflow durante animazioni */
    .hero-stats {
        will-change: auto;
    }
    
    /* Assicurare che tutte le sezioni non escano */
    section {
        margin-left: 0;
        margin-right: 0;
        padding-left: 0;
        padding-right: 0;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    /* Assicurare che tutti gli elementi rispettino i margini */
    * {
        box-sizing: border-box;
    }
    
    /* Prevenire elementi che escono a sinistra */
    body > *:not(.nav-links):not(.nav-links.active) {
        margin-left: 0;
        padding-left: 0;
        max-width: 100vw;
        overflow-x: hidden;
    }
    
    /* Il menu mobile deve essere visibile */
    .nav-links,
    .nav-links.active {
        overflow-x: visible !important;
    }
    
    .container > * {
        margin-left: 0;
        margin-right: 0;
        max-width: 100%;
    }
    
    /* Fix specifico per iPhone Chrome */
    .navbar,
    .nav-content,
    .hero,
    section {
        max-width: 100vw;
        overflow-x: hidden;
    }
    
    /* Assicura che il menu mobile funzioni */
    .nav-links.active {
        overflow-x: visible !important;
        overflow-y: auto !important;
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        transform: translateY(0) !important;
        pointer-events: auto !important;
    }
    
    /* Assicura che il pulsante hamburger sia cliccabile */
    .mobile-menu-toggle {
        position: relative;
        z-index: 1002 !important;
        pointer-events: auto !important;
        cursor: pointer !important;
    }
    
    /* Assicura che tutti i contenuti siano dentro il viewport */
    .hero-content,
    .hero-text,
    .hero-visual,
    .section-header,
    .problem-grid,
    .solution-features,
    .how-it-works-grid,
    .unique-grid,
    .pricing-grid,
    .benefits-grid,
    .market-content,
    .tech-grid,
    .contact-content,
    .cta-content,
    .supporter-content {
        max-width: 100%;
        overflow-x: hidden;
    }
}

/* ============================================
   Animations
   ============================================ */

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

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
}

/* Prevenire overflow su tutti gli elementi */
section {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

/* Stabilizzare le animazioni per evitare reflow */
.hero-card,
.stat-number,
.fade-in-up {
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

