/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colors inspired by the new gold and black logo */
    --primary-gold: #D4AF37;
    --light-gold: #F4E4BC;
    --dark-gold: #B8860B;
    --rich-gold: #FFD700;
    --black: #000000;
    --dark-charcoal: #1A1A1A;
    --medium-gray: #2D2D2D;
    --light-gray: #F5F5F5;
    --cream: #FFF8E7;
    --text-dark: #000000;
    --text-light: #666666;
    --text-muted: #999999;
    --white: #FFFFFF;
    --shadow: rgba(212, 175, 55, 0.2);
    --shadow-dark: rgba(0, 0, 0, 0.15);
    --gold-gradient: linear-gradient(135deg, #FFD700, #D4AF37, #B8860B);
    
    /* Typography */
    --font-family: 'Inter', sans-serif;
    --font-size-xs: 0.875rem;
    --font-size-sm: 1rem;
    --font-size-base: 1.125rem;
    --font-size-lg: 1.25rem;
    --font-size-xl: 1.5rem;
    --font-size-2xl: 1.875rem;
    --font-size-3xl: 2.25rem;
    --font-size-4xl: 2.75rem;
    --font-size-5xl: 3.5rem;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    
    /* Layout */
    --container-max-width: 1200px;
    --border-radius: 8px;
    --border-radius-lg: 12px;
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--text-dark);
    background: linear-gradient(135deg, var(--light-gray) 0%, var(--cream) 100%);
}

.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    line-height: 1.3;
    color: var(--text-dark);
    font-weight: 600;
}

/* Override colors for dark sections */
.hero h1, .hero h2, .hero h3, .hero h4, .hero h5, .hero h6 {
    color: var(--white);
}

.guide h1, .guide h2, .guide h3, .guide h4, .guide h5, .guide h6 {
    color: var(--white);
}

.contact h1, .contact h2, .contact h3, .contact h4, .contact h5, .contact h6 {
    color: var(--white);
}

.footer h1, .footer h2, .footer h3, .footer h4, .footer h5, .footer h6 {
    color: var(--white);
}

h1 { font-size: var(--font-size-5xl); }
h2 { font-size: var(--font-size-3xl); }
h3 { font-size: var(--font-size-xl); }

p {
    font-size: var(--font-size-base);
    color: var(--text-light);
    margin-bottom: var(--spacing-sm);
    line-height: 1.6;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-sm) var(--spacing-md);
    border: none;
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: var(--font-size-base);
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    pointer-events: auto;
    position: relative;
    z-index: 1;
}

/* PDF Link specific styles */
.pdf-link {
    pointer-events: auto !important;
    cursor: pointer !important;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important; /* Spazio tra icona e testo */
}

/* Icona download nei PDF link */
.pdf-link svg {
    width: 18px !important;
    height: 18px !important;
    flex-shrink: 0 !important; /* Previene il restringimento dell'icona */
    opacity: 0.9 !important;
    transition: all 0.3s ease !important;
}

.pdf-link:hover svg {
    opacity: 1 !important;
    transform: translateY(2px) !important; /* Effetto "bounce" al hover */
}

.pdf-link:hover {
    text-decoration: none !important;
}

.btn-primary {
    background: var(--gold-gradient);
    color: var(--black);
    box-shadow: 0 4px 15px var(--shadow);
    font-weight: 600;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

/* Miglioramenti per i bottoni PDF con icone */
.btn-primary.pdf-link {
    padding: 12px 20px !important;
    font-size: 16px !important;
    border-radius: 8px !important;
    transition: all 0.3s ease !important;
}

.btn-primary.pdf-link:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px var(--shadow) !important;
    background: linear-gradient(135deg, #FFD700, #F4E4BC, #D4AF37) !important;
}

.btn-primary.pdf-link:active {
    transform: translateY(0) !important;
}

/* Stili responsivi per le icone PDF */
@media (max-width: 768px) {
    .pdf-link {
        gap: 6px !important; /* Gap più piccolo su mobile */
    }
    
    .pdf-link svg {
        width: 16px !important;
        height: 16px !important;
    }
    
    .btn-primary.pdf-link {
        padding: 10px 16px !important;
        font-size: 14px !important;
    }
}

@media (max-width: 480px) {
    .pdf-link svg {
        width: 14px !important;
        height: 14px !important;
    }
    
    .btn-primary.pdf-link {
        padding: 8px 12px !important;
        font-size: 13px !important;
    }
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
    background: var(--rich-gold);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--primary-gold);
}

.btn-secondary:hover {
    background: var(--gold-gradient);
    color: var(--black);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--primary-gold);
    z-index: 1000;
    transition: var(--transition);
}

.nav-container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
    position: relative;
}

.nav-logo {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important; /* Centra il logo */
    z-index: 1001 !important;
}

.logo-link {
    display: inline-block;
    transition: opacity 0.3s ease;
    text-decoration: none;
}

.logo-link:hover {
    opacity: 0.8;
}

.logo {
    height: 55px !important; /* Ingrandito da 40px a 55px */
    width: auto !important;
    transition: all 0.3s ease !important;
}

.logo:hover {
    transform: scale(1.05) !important;
    filter: brightness(1.1) !important;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--spacing-lg);
    margin: 0;
}

.nav-link {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: var(--transition);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold-gradient);
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--rich-gold);
}

.nav-link:hover::after {
    width: 100%;
}

/* Navigation Actions - APPROCCIO RADICALE */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    height: 40px;
}

/* Language Switcher - Dimensioni Fisse */
.language-switcher {
    display: flex;
    gap: 4px;
    align-items: center;
    height: 28px;
}

.lang-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px !important;
    height: 22px !important;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    transition: all 0.2s ease;
    cursor: pointer;
    padding: 0 !important;
    position: relative;
    overflow: hidden;
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.7);
    transform: scale(1.05);
}

.lang-btn.active {
    background: rgba(212, 175, 55, 0.6);
    border-color: var(--primary-gold);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.4);
}

.flag-icon {
    width: 20px !important;
    height: 14px !important;
    object-fit: cover;
    border-radius: 2px;
    display: block !important;
}

/* Social Links - Dimensioni Fisse Bilanciate */
.nav-social {
    display: flex;
    align-items: center;
    gap: 6px;
    height: 28px;
}

.nav-social-link {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 28px !important;
    height: 28px !important;
    border-radius: 50% !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
    background: transparent !important;
    border: 1px solid transparent !important;
    position: relative !important;
}

.nav-social-link svg {
    width: 16px !important;
    height: 16px !important;
    max-width: 16px !important;
    max-height: 16px !important;
    transition: all 0.2s ease !important;
}

.nav-social-link:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.3) !important;
}

/* Telegram */
.nav-social-link[title="Telegram"] {
    color: #0088cc !important;
    border-color: #0088cc !important;
}

.nav-social-link[title="Telegram"]:hover {
    background: #0088cc !important;
    color: white !important;
}

/* Instagram */
.nav-social-link[title="Instagram"] {
    color: #E4405F !important;
    border-color: #E4405F !important;
}

.nav-social-link[title="Instagram"]:hover {
    background: #E4405F !important;
    color: white !important;
    border-color: transparent !important;
}

/* TikTok */
.nav-social-link[title="TikTok"] {
    color: #ffffff !important;
    border-color: #ffffff !important;
}

.nav-social-link[title="TikTok"]:hover {
    background: #ffffff !important;
    color: #000000 !important;
}

/* Body scroll lock quando menu è aperto */
body.menu-open {
    overflow: hidden;
    height: 100vh;
}

/* RESET COMPLETO PER NAV-ACTIONS */
.nav-actions,
.nav-actions *,
.nav-actions *::before,
.nav-actions *::after {
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    outline: 0 !important;
    font-size: 100% !important;
    vertical-align: baseline !important;
    background: transparent !important;
}

/* Ripristino solo gli stili necessari */
.nav-actions {
    display: flex !important;
    align-items: center !important;
    gap: 15px !important; /* Gap uniforme per spazio equilibrato */
    height: 40px !important;
    background: none !important;
}

/* Social Links - Primo elemento */
.nav-social {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    height: 28px !important;
    background: none !important;
    margin: 0 !important;
    order: 1 !important;
}

/* Language Switcher - Elemento centrale */
.language-switcher {
    display: flex !important;
    gap: 6px !important;
    align-items: center !important;
    height: 28px !important;
    background: none !important;
    margin: 0 !important; /* Centrato dal gap del parent */
    order: 2 !important;
}

/* Hamburger DENTRO nav-actions - Ultimo elemento */
.nav-actions .hamburger {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    width: 24px !important;
    height: 24px !important;
    margin: 0 !important;
    padding: 0 !important;
    order: 3 !important;
    position: relative !important;
    cursor: pointer !important;
    background: none !important;
    border: none !important;
    gap: 4px !important;
}

/* Ripristino stili specifici con !important */
.lang-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 30px !important;
    height: 22px !important;
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
    border-radius: 4px !important;
    background: rgba(255, 255, 255, 0.15) !important;
    backdrop-filter: blur(10px) !important;
    cursor: pointer !important;
}

.nav-social-link {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 28px !important;
    height: 28px !important;
    border-radius: 50% !important;
    border: 1px solid transparent !important;
    background: transparent !important;
    text-decoration: none !important;
}
.nav-actions * {
    box-sizing: border-box !important;
}

.nav-social-link,
.nav-social-link:hover,
.nav-social-link:focus,
.nav-social-link:active {
    min-width: 28px !important;
    max-width: 28px !important;
    min-height: 28px !important;
    max-height: 28px !important;
}

.nav-social-link svg,
.nav-social-link:hover svg,
.nav-social-link:focus svg {
    min-width: 16px !important;
    max-width: 16px !important;
    min-height: 16px !important;
    max-height: 16px !important;
}

.lang-btn,
.lang-btn:hover,
.lang-btn:focus,
.lang-btn.active {
    min-width: 30px !important;
    max-width: 30px !important;
    min-height: 22px !important;
    max-height: 22px !important;
}

.flag-icon,
.flag-icon:hover {
    min-width: 20px !important;
    max-width: 20px !important;
    min-height: 14px !important;
    max-height: 14px !important;
}

/* Mobile Overrides Aggressivi */
@media (max-width: 768px) {
    .nav-actions .nav-social-link,
    .nav-actions .nav-social-link:hover {
        min-width: 24px !important;
        max-width: 24px !important;
        min-height: 24px !important;
        max-height: 24px !important;
    }
    
    .nav-actions .nav-social-link svg {
        min-width: 12px !important;
        max-width: 12px !important;
        min-height: 12px !important;
        max-height: 12px !important;
    }
    
    .lang-btn {
        min-width: 26px !important;
        max-width: 26px !important;
        min-height: 18px !important;
        max-height: 18px !important;
    }
    
    .flag-icon {
        min-width: 16px !important;
        max-width: 16px !important;
        min-height: 12px !important;
        max-height: 12px !important;
    }
}
/* HAMBURGER - Solo quello dentro nav-actions è visibile */
.hamburger {
    display: none !important; /* Nasconde tutti gli hamburger di default */
}

/* Solo l'hamburger dentro nav-actions è visibile SU MOBILE */
.nav-actions .hamburger {
    display: none !important; /* NASCOSTO SU DESKTOP */
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    width: 30px !important;
    height: 30px !important;
    cursor: pointer !important;
    background: none !important;
    border: none !important;
    padding: 4px !important;
    margin: 0 !important;
    gap: 4px !important;
    border-radius: 4px !important;
    transition: all 0.3s ease !important;
}

.nav-actions .hamburger:hover {
    background: rgba(212, 175, 55, 0.1) !important;
}

.nav-actions .hamburger span {
    width: 22px !important;
    height: 2px !important;
    background: var(--white) !important;
    border-radius: 1px !important;
    transition: all 0.3s ease !important;
    display: block !important;
    transform-origin: center !important;
}

/* Hamburger Animation */
.nav-actions .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px) !important;
}

.nav-actions .hamburger.active span:nth-child(2) {
    opacity: 0 !important;
}

.nav-actions .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px) !important;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--black) 0%, var(--dark-charcoal) 50%, var(--medium-gray) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 70%, rgba(255, 215, 0, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 70% 30%, rgba(212, 175, 55, 0.1) 0%, transparent 50%);
    opacity: 0.8;
}

.hero-content {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-2xl);
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: var(--font-size-5xl);
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    letter-spacing: 2px;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5); /* Aumentato ombra per maggiore leggibilità */
}

.hero-subtitle {
    font-size: var(--font-size-xl);
    color: var(--light-gray);
    margin-bottom: var(--spacing-md);
    font-weight: 300;
}

.hero-description {
    font-size: var(--font-size-base); /* Ridotto da lg a base per compattezza */
    color: var(--light-gray);
    margin-bottom: var(--spacing-lg); /* Ridotto da xl a lg */
    line-height: 1.5; /* Ridotto da 1.7 a 1.5 per meno spazio */
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-large {
    position: relative;
    animation: float 6s ease-in-out infinite;
}

.logo-hero {
    height: 400px; /* Aumentato da 300px a 400px */
    width: auto;
    filter: drop-shadow(0 10px 30px rgba(255, 215, 0, 0.4));
    border-radius: var(--border-radius-lg);
    background: radial-gradient(circle, rgba(255, 215, 0, 0.1) 0%, transparent 70%);
    padding: var(--spacing-lg);
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* Section Styles */
section {
    padding: var(--spacing-2xl) 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-2xl);
}

.section-header h2 {
    font-size: var(--font-size-3xl);
    margin-bottom: var(--spacing-sm);
}

.section-header p {
    font-size: var(--font-size-xl);
    color: var(--text-light);
    line-height: 1.6;
}

/* About Section */
.about {
    background: var(--white);
}

/* ============================================
   ABOUT CAROUSEL - NUOVA IMPLEMENTAZIONE RADICALE
   ============================================ */

.about-carousel-container {
    margin-top: 2rem;
}

.carousel-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.carousel-btn {
    background: var(--primary-gold);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.carousel-btn:hover {
    background: var(--rich-gold);
    transform: scale(1.1);
}

.carousel-indicators {
    display: flex;
    gap: 0.5rem;
}

.indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: var(--primary-gold);
    transform: scale(1.2);
}

/* CAROUSEL MAIN */
.about-carousel {
    overflow: hidden;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    /* Fix specifici per Firefox Android */
    position: relative;
    -moz-user-select: none;
    -webkit-user-select: none;
    user-select: none;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    /* Fix per Firefox */
    -moz-user-select: none;
    -webkit-user-select: none;
    user-select: none;
}

.carousel-slide {
    flex-shrink: 0;
    padding: 0 10px;
    box-sizing: border-box;
    /* Fix specifici per Firefox */
    min-width: 0;
    -moz-flex-shrink: 0;
}

/* Desktop: 3 cards visibili */
@media (min-width: 1025px) {
    .carousel-track {
        width: 200%; /* 6 slides totali per 3 visibili = 200% */
        /* Fix Firefox */
        min-width: 200%;
    }
    .carousel-slide {
        width: 16.6667%; /* 100% / 6 slides = 16.6667% */
        /* Fix Firefox */
        min-width: 16.6667%;
        max-width: 16.6667%;
    }
}

/* Tablet e Mobile: 2 cards visibili */
@media (max-width: 1024px) {
    .carousel-track {
        width: 300%; /* 6 slides totali per 2 visibili = 300% */
        /* Fix Firefox */
        min-width: 300%;
    }
    .carousel-slide {
        width: 16.6667%; /* Mantieni la stessa larghezza - il track più largo fa il resto */
        /* Fix Firefox */
        min-width: 16.6667%;
        max-width: 16.6667%;
    }
}

/* Fix specifici per Firefox per evitare card duplicate e disposizione errata */
@-moz-document url-prefix() {
    .carousel-track {
        display: -moz-flex;
        display: flex;
        -moz-flex-wrap: nowrap;
        flex-wrap: nowrap;
    }
    
    .carousel-slide {
        -moz-flex: none;
        flex: none;
        -moz-box-sizing: border-box;
        box-sizing: border-box;
    }
}

.carousel-slide .about-card {
    background: linear-gradient(135deg, var(--black) 0%, var(--dark-charcoal) 100%);
    border: 2px solid var(--primary-gold);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: all 0.3s ease;
}

.carousel-slide .about-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.3);
}

.carousel-slide .card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.carousel-slide .about-card h3 {
    color: var(--primary-gold);
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.carousel-slide .about-card p {
    color: var(--light-gray);
    font-size: 0.9rem;
    line-height: 1.4;
}

/* NASCONDE IL GRID FALLBACK */
.about-grid {
    display: none !important;
}

.card-icon {
    font-size: var(--font-size-3xl);
    margin-bottom: var(--spacing-sm);
    font-weight: 700;
    /* Rimosso colore per mantenere i colori naturali delle emoji */
    /* Rimosso il filtro per mantenere i colori naturali delle emoji */
}

.about-card h3 {
    font-size: var(--font-size-xl);
    margin-bottom: var(--spacing-sm);
    color: var(--white);
}

.about-card p {
    font-size: var(--font-size-base);
    color: var(--light-gray);
    line-height: 1.6;
}

/* Guide Section */
.guide {
    background: linear-gradient(135deg, var(--dark-charcoal) 0%, var(--black) 100%);
    color: var(--white);
}

.guide .section-header h2 {
    color: var(--white);
}

.guide .section-header p {
    color: var(--light-gray);
}

.guide-content {
    max-width: 1000px;
    margin: 0 auto;
}

/* Guide Cards */
.guide-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-2xl);
}

.guide-card {
    background: linear-gradient(135deg, var(--black) 0%, var(--medium-gray) 100%);
    border: 2px solid var(--primary-gold);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-xl);
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.guide-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(255, 215, 0, 0.05) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.guide-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.3);
    border-color: var(--rich-gold);
}

.guide-card:hover::before {
    opacity: 1;
}

.guide-card .card-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--spacing-md);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gold-gradient);
    border-radius: 50%;
    color: var(--black);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.guide-card h3 {
    font-size: var(--font-size-xl);
    margin-bottom: var(--spacing-sm);
    color: var(--white);
}

.guide-card p {
    font-size: var(--font-size-base);
    color: var(--light-gray);
    line-height: 1.6;
    margin-bottom: var(--spacing-lg);
}

.guide-card .btn {
    margin-top: var(--spacing-sm);
}

/* Connection Steps */
.connection-steps {
    margin-bottom: var(--spacing-2xl);
}

.connection-steps h3 {
    text-align: center;
    font-size: var(--font-size-2xl);
    color: var(--white);
    margin-bottom: var(--spacing-xl);
    position: relative;
}

.connection-steps h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--gold-gradient);
    border-radius: 2px;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
}

.step-item {
    display: flex;
    gap: var(--spacing-md);
    padding: var(--spacing-lg);
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius-lg);
    border: 1px solid rgba(255, 215, 0, 0.2);
    transition: var(--transition);
}

.step-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary-gold);
    transform: translateY(-2px);
}

.step-number {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: var(--gold-gradient);
    color: var(--black);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: var(--font-size-lg);
    box-shadow: 0 2px 10px rgba(255, 215, 0, 0.3);
}

.step-text h4 {
    font-size: var(--font-size-lg);
    color: var(--white);
    margin-bottom: var(--spacing-xs);
}

.step-text p {
    font-size: var(--font-size-sm);
    color: var(--light-gray);
    line-height: 1.5;
    margin: 0;
}

/* Support Section */
.support-section {
    margin-top: var(--spacing-2xl);
}

.support-card {
    background: linear-gradient(135deg, var(--primary-gold) 0%, var(--dark-gold) 100%);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-xl);
    display: flex;
    gap: var(--spacing-lg);
    align-items: center;
    box-shadow: 0 5px 20px rgba(255, 215, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.support-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
}

.support-icon {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    position: relative;
    z-index: 1;
}

.support-content {
    position: relative;
    z-index: 1;
}

.support-content h3 {
    font-size: var(--font-size-xl);
    color: var(--black);
    margin-bottom: var(--spacing-sm);
    font-weight: 700;
}

.support-content p {
    font-size: var(--font-size-base);
    color: var(--black);
    line-height: 1.6;
    margin-bottom: var(--spacing-md);
    opacity: 0.9;
}

.support-buttons {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

.support-buttons .btn-primary {
    background: var(--black);
    color: var(--primary-gold);
    border: 2px solid var(--black);
}

.support-buttons .btn-primary:hover {
    background: transparent;
    color: var(--black);
    border-color: var(--black);
    transform: translateY(-2px);
}

.support-buttons .btn-secondary {
    background: transparent;
    color: var(--black);
    border: 2px solid var(--black);
}

.support-buttons .btn-secondary:hover {
    background: var(--black);
    color: var(--primary-gold);
}

/* Results Section */
.results {
    background: var(--white);
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

.result-card {
    background: linear-gradient(135deg, var(--black) 0%, var(--dark-charcoal) 100%);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-xl);
    box-shadow: 0 5px 20px rgba(212, 175, 55, 0.3);
    transition: var(--transition);
    border: 2px solid var(--primary-gold);
}

/* Compact & centered results layout: narrower container and centered single card */
.results .container {
    max-width: 720px; /* further reduce the container width for a compact look */
}

.results-grid {
    grid-template-columns: 1fr; /* single column for a cleaner centered layout */
    justify-items: center;
}

.result-card {
    width: 100%;
    max-width: 640px; /* tighter card width for compact presentation */
    margin: 0 auto;
}

.result-widget {
    min-height: 220px; /* reduce widget height to match compact card */
}

@media (min-width: 1025px) {
    /* If more than one card is present, allow two-column layout on wide screens */
    .results-grid {
        grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
        gap: var(--spacing-xl);
    }
    .result-card {
        max-width: none; /* allow cards to use grid column width */
    }
}

.result-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.5);
    border-color: var(--rich-gold);
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-sm);
    border-bottom: 2px solid var(--primary-gold);
}

.result-header h3 {
    color: var(--white);
    margin: 0;
}

.broker-logo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: var(--font-size-sm);
    color: white;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.broker-logo img {
    width: 100%;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

.broker-logo svg {
    width: 100%;
    height: auto;
    max-width: 45px;
    max-height: 22px;
}

.broker-logo:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.broker-logo.fp-markets {
    background: white;
    border-color: #e5e7eb;
    border-radius: 8px;
    width: 80px;
    height: 45px;
    padding: 6px;
}

.broker-logo.fp-markets:hover {
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.2);
    border-color: #0ea5e9;
}

.broker-logo.fp-markets img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.broker-logo.robo-forex {
    background: white;
    border-color: #e5e7eb;
    border-radius: 8px;
    width: 80px;
    height: 45px;
    padding: 6px;
}

.broker-logo.robo-forex:hover {
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.2);
    border-color: #0ea5e9;
}

.broker-logo.robo-forex img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.result-status {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: 20px;
    font-size: var(--font-size-sm);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.7); }
    50% { box-shadow: 0 0 0 10px rgba(76, 175, 80, 0); }
}

.result-content p {
    color: var(--text-light);
    margin-bottom: var(--spacing-md);
}

.result-widget {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: var(--spacing-md);
    border: 2px solid var(--primary-gold);
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.widget-placeholder {
    color: var(--text-light);
    text-align: center;
    font-style: italic;
}

.results-footer {
    text-align: center;
    margin-top: var(--spacing-xl);
    padding-top: var(--spacing-xl);
    border-top: 2px solid var(--primary-gold);
}

.results-footer p {
    color: var(--text-dark);
}

.results-disclaimer {
    max-width: 600px;
    margin: 0 auto;
    font-size: var(--font-size-sm);
    color: var(--text-dark);
    background: var(--light-gold);
    padding: var(--spacing-md);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-gold);
}

/* Footer Social Links */
.footer-social {
    display: flex;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
}

.footer-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
}

.footer-social-link:hover {
    transform: translateY(-2px);
}

.footer-social-link[title="Telegram"]:hover {
    background: #0088cc;
    color: white;
}

/* TikTok */
.contact-link[id="contact-tiktok"]:hover {
    color: #ff0050;
}

.nav-social-link[title="TikTok"] {
    background: linear-gradient(135deg, #ff0050, #00f2ea);
    color: white;
}

.nav-social-link[title="TikTok"]:hover {
    transform: scale(1.1);
}

.footer-social-link[title="TikTok"]:hover {
    background: linear-gradient(135deg, #ff0050, #00f2ea);
    color: white;
}

.footer-social-link[title="Instagram"]:hover {
    background: linear-gradient(45deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%);
    color: white;
}

.footer-social-link[title="TikTok"]:hover {
    background: #000000;
    color: white;
}

.footer-social-link svg {
    width: 16px;
    height: 16px;
}

/* Footer Social Links - correct class */
.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(243, 176, 22, 0.1);
    color: var(--rich-gold);
    text-decoration: none;
    transition: all 0.3s ease;
    margin: 0 var(--spacing-xs);
}

.social-link:hover {
    transform: translateY(-2px);
}

.social-link[id="footer-telegram"]:hover {
    background: #0088cc;
    color: white;
}

.social-link[id="footer-instagram"]:hover {
    background: linear-gradient(45deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%);
    color: white;
}

.social-link[id="footer-tiktok"]:hover {
    background: linear-gradient(135deg, #ff0050, #00f2ea);
    color: white;
}

.social-link svg {
    width: 16px !important;
    height: 16px !important;
    max-width: 16px;
    max-height: 16px;
}

/* Contact Section */
.contact {
    background: linear-gradient(135deg, var(--dark-charcoal) 0%, var(--black) 100%);
    color: var(--white);
}

.contact .section-header h2 {
    color: var(--white);
}

.contact .section-header p {
    color: var(--light-gray);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-2xl);
}

.contact-item {
    display: flex;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
}

.contact-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: var(--gold-gradient);
    color: var(--black);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-icon svg {
    width: 24px !important;
    height: 24px !important;
    max-width: 24px;
    max-height: 24px;
}

.contact-item h3 {
    margin-bottom: var(--spacing-xs);
    color: var(--white);
}

.contact-item p {
    color: var(--light-gray);
    margin-bottom: var(--spacing-xs);
}

.contact-link {
    color: var(--rich-gold);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.contact-link:hover {
    color: var(--primary-gold);
}

/* Contact Restructured Layout */
.contact-restructured {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    max-width: 1200px;
    margin: 0 auto;
}

.contact-support-section,
.collaborate-card {
    background: var(--black);
    padding: var(--spacing-lg);
    border-radius: var(--border-radius);
    border: 2px solid var(--primary-gold);
    box-shadow: 0 4px 15px var(--shadow-dark);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.contact-support-section h3,
.collaborate-card h3 {
    color: var(--white);
    margin-bottom: var(--spacing-sm);
    font-size: var(--font-size-xl);
    text-align: center;
}

.contact-support-section p,
.collaborate-card > p {
    color: var(--light-gray);
    margin-bottom: var(--spacing-md);
    font-size: var(--font-size-base);
    flex-grow: 1;
}

.collaborate-card {
    background: var(--dark-charcoal);
}

.support-buttons {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
    margin-top: auto;
}

/* Support buttons vertical layout */
.support-buttons-vertical {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    align-items: center;
    justify-content: center;
    margin-top: var(--spacing-lg);
}

.support-buttons-vertical .btn {
    width: 100%;
    max-width: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 24px;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
}


.btn-telegram,
.btn-support {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-md) var(--spacing-lg);
    background: var(--gold-gradient);
    color: var(--black);
    text-decoration: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: var(--font-size-base);
    transition: var(--transition);
    border: none;
    cursor: pointer;
    flex: 1;
    justify-content: center;
    min-width: 0;
}

.btn-telegram:hover,
.btn-support:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
}

.btn-support {
    background: linear-gradient(135deg, #28a745, #20c997);
}

.btn-support:hover {
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.4);
}

.collaborate-benefits {
    margin-bottom: var(--spacing-lg);
    flex-grow: 1;
}

.collaborate-benefits ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.collaborate-benefits li {
    color: var(--light-gray);
    margin-bottom: var(--spacing-xs);
    font-size: var(--font-size-sm);
    padding-left: var(--spacing-xs);
}

.btn-collaborate {
    width: 100%;
    justify-content: center;
    padding: var(--spacing-md) var(--spacing-lg);
    font-size: var(--font-size-lg);
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    background: var(--gold-gradient);
    color: var(--black);
    text-decoration: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    flex: 1;
    min-width: 0;
    box-shadow: var(--shadow-md);
}

.btn-collaborate:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
}

.social-separator {
    color: var(--text-muted);
    font-size: var(--font-size-lg);
    opacity: 0.5;
}

/* Footer */
.footer {
    background: var(--black);
    color: var(--white);
    padding: var(--spacing-xl) 0;
    border-top: 2px solid var(--primary-gold);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: var(--spacing-lg);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
}

.footer-logo .logo {
    filter: brightness(0) invert(1);
}

.footer-logo .logo-text {
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-left p {
    color: rgba(255, 255, 255, 0.7);
}

.footer-right {
    text-align: right;
}

.footer-right p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: var(--spacing-xs);
    font-size: var(--font-size-sm);
}

.footer-links {
    display: flex;
    gap: var(--spacing-lg);
    align-items: center;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--rich-gold);
}

.footer-social {
    display: flex;
    gap: var(--spacing-sm);
    align-items: center;
}

.footer-bottom {
    text-align: center;
    margin-top: var(--spacing-lg);
    padding-top: var(--spacing-lg);
    border-top: 1px solid var(--primary-gold);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.7);
    font-size: var(--font-size-sm);
}

.disclaimer {
    max-width: 800px;
    margin: var(--spacing-md) auto 0;
    font-size: var(--font-size-xs);
    line-height: 1.4;
    text-align: left;
    padding: var(--spacing-sm);
    background: rgba(212, 175, 55, 0.1);
    border-radius: var(--border-radius);
    border: 1px solid var(--primary-gold);
}

.disclaimer p {
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
}

.disclaimer strong {
    color: var(--rich-gold);
}

/* Responsive Design */
@media (max-width: 1024px) {
    :root {
        --font-size-5xl: 2.5rem;
        --font-size-4xl: 2rem;
        --font-size-3xl: 1.5rem;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--spacing-xl);
    }
    
    .logo-hero {
        height: 267px; /* Aumentato da 200px a 267px */
    }
    
    .contact-restructured {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
        max-width: 800px;
    }
    
    .contact-support-section,
    .collaborate-card {
        padding: var(--spacing-md);
    }
    
    .social-links-simple {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
    
    .social-separator {
        display: none;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }
}

@media (max-width: 768px) {
    /* Mobile Navigation - Layout Ottimizzato */
    .nav-container {
        padding: 0 1rem;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(0, 0, 0, 0.98);
        flex-direction: column;
        justify-content: flex-start;
        padding: var(--spacing-xl);
        transition: var(--transition);
        box-shadow: 0 5px 20px var(--shadow-dark);
        border-right: 2px solid var(--primary-gold);
        z-index: 999;
        overflow-y: auto; /* Aggiunto scroll verticale */
        overflow-x: hidden; /* Nasconde scroll orizzontale */
        -webkit-overflow-scrolling: touch; /* Smooth scrolling su iOS */
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu .nav-link {
        color: var(--white);
        font-size: var(--font-size-lg);
        padding: var(--spacing-sm) 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        width: 100%;
        text-align: center;
    }
    
    .nav-menu .nav-link:hover {
        color: var(--rich-gold);
    }
    
    /* MOBILE HEADER - HAMBURGER DENTRO NAV-ACTIONS */
    .nav-actions .hamburger {
        display: flex !important; /* VISIBILE SOLO SU MOBILE */
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        width: 24px !important;
        height: 24px !important;
        order: 3 !important; /* Sempre all'estrema destra */
        margin: 0 !important;
        padding: 0 !important;
        cursor: pointer !important;
        background: none !important;
        border: none !important;
        gap: 3px !important;
    }
    
    /* Hamburger spans */
    .nav-actions .hamburger span {
        display: block !important;
        width: 20px !important;
        height: 2px !important;
        background: var(--white) !important;
        border-radius: 1px !important;
        transition: var(--transition) !important;
    }
    
    /* Nav Actions Mobile - Nuovo Layout: Social → Bandierine → Hamburger */
    .nav-actions {
        gap: 12px !important; /* Gap aumentato per spazio equilibrato */
        margin-right: 8px !important;
        order: 2;
        height: 32px !important;
    }
    
    /* Social Links - Primo elemento mobile */
    .nav-actions .nav-social {
        gap: 4px !important;
        height: 24px !important;
        order: 1 !important;
        margin: 0 !important;
    }
    
    /* Language Switcher - Elemento centrale mobile */
    .language-switcher {
        gap: 3px !important;
        height: 24px !important;
        order: 2 !important;
        margin: 0 !important; /* Centrato dal gap del parent */
    }
    
    .lang-btn {
        width: 26px !important;
        height: 18px !important;
        border-width: 1px !important;
        border-radius: 3px !important;
    }
    
    .flag-icon {
        width: 16px !important;
        height: 12px !important;
    }
    
    .nav-actions .nav-social-link {
        width: 24px !important;
        height: 24px !important;
        border-width: 1px !important;
    }
    
    .nav-actions .nav-social-link svg {
        width: 12px !important;
        height: 12px !important;
        max-width: 12px !important;
        max-height: 12px !important;
    }
    
    /* Social Links Mobile nel Menu */
    .nav-social {
        order: -1;
        justify-content: center;
        padding: var(--spacing-md) 0;
        border-bottom: 1px solid var(--primary-gold);
        margin-bottom: var(--spacing-lg);
        gap: var(--spacing-lg);
    }
    
    .nav-social-link {
        width: 44px;
        height: 44px;
    }
    
    .nav-social-link svg {
        width: 22px !important;
        height: 22px !important;
    }
    
    /* Hero Section mobile */
    .hero {
        min-height: 80vh;
        padding: var(--spacing-xl) 0;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--spacing-xl);
    }
    
    .hero-title {
        font-size: 3rem;
        line-height: 1.1;
        margin-bottom: var(--spacing-sm);
        padding-top: var(--spacing-xl);
    }
    
    .hero-subtitle {
        font-size: var(--font-size-lg);
        margin-bottom: var(--spacing-md);
    }
    
    .hero-description {
        font-size: var(--font-size-sm);
        line-height: 1.4;
        margin-bottom: var(--spacing-md);
        max-width: none;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: var(--spacing-md);
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 280px;
        padding: var(--spacing-md) var(--spacing-lg);
    }
    
    /* Logo hero mobile */
    .logo-hero {
        height: 267px;
        width: auto;
        margin: var(--spacing-lg) 0;
    }
    
    /* About Section mobile */
    .about-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .about-card {
        padding: var(--spacing-md);
        margin-bottom: var(--spacing-sm);
    }
    
    .card-icon {
        font-size: var(--font-size-2xl);
        margin-bottom: var(--spacing-xs);
    }
    
    .about-card h3 {
        font-size: var(--font-size-lg);
        margin-bottom: var(--spacing-xs);
    }
    
    .about-card p {
        font-size: var(--font-size-sm);
        line-height: 1.5;
    }
    
    /* Results Section mobile */
    .results-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .result-card {
        padding: var(--spacing-lg);
    }
    
    .result-header {
        flex-direction: column;
        text-align: center;
        gap: var(--spacing-sm);
        border-bottom: none;
        padding-bottom: 0;
        margin-bottom: var(--spacing-md);
    }
    
    .broker-logo {
        order: -1;
        margin-bottom: var(--spacing-xs);
    }
    
    /* Guide Section mobile */
    .guide-cards {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .guide-card {
        padding: var(--spacing-lg);
    }
    
    .guide-card .card-icon {
        width: 60px;
        height: 60px;
        margin-bottom: var(--spacing-sm);
    }
    
    .guide-card h3 {
        font-size: var(--font-size-lg);
    }
    
    .guide-card p {
        font-size: var(--font-size-sm);
    }
    
    .connection-steps h3 {
        font-size: var(--font-size-xl);
        margin-bottom: var(--spacing-lg);
    }
    
    .steps-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .step-item {
        padding: var(--spacing-md);
    }
    
    .step-number {
        width: 35px;
        height: 35px;
        font-size: var(--font-size-base);
    }
    
    .step-text h4 {
        font-size: var(--font-size-base);
    }
    
    .step-text p {
        font-size: var(--font-size-xs);
    }
    
    .support-card {
        flex-direction: column;
        text-align: center;
        padding: var(--spacing-lg);
    }
    
    .support-icon {
        width: 60px;
        height: 60px;
        margin-bottom: var(--spacing-sm);
    }
    
    .support-buttons {
        justify-content: center;
        flex-direction: column;
        align-items: center;
    }
    
    .support-buttons .btn {
        width: 100%;
        max-width: 280px;
    }
    
    /* Contact Section mobile */
    .contact-restructured {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .contact-support-section,
    .collaborate-card {
        padding: var(--spacing-sm);
    }
    
    .support-buttons {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
    
    .support-buttons-vertical {
        gap: var(--spacing-sm);
    }
    
    .support-buttons-vertical .btn {
        max-width: 100%;
        padding: 14px 20px;
        font-size: 0.9rem;
    }
    
    .btn-telegram,
    .btn-support {
        justify-content: center;
        width: 100%;
        padding: var(--spacing-md);
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }
    
    .contact-form {
        padding: var(--spacing-lg);
    }
    
    .form-group input,
    .form-group textarea {
        font-size: var(--font-size-base);
        padding: var(--spacing-sm);
    }
    
    /* Footer mobile */
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: var(--spacing-lg);
    }
    
    .footer-links {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .disclaimer {
        max-width: 100%;
        margin: var(--spacing-md) 0 0;
        font-size: 0.7rem;
        line-height: 1.3;
    }
    
    .nav-social-link svg {
        width: 16px !important;
        height: 16px !important;
        max-width: 16px;
        max-height: 16px;
    }
    
    .nav-logo {
        align-items: center;
        justify-content: flex-start;
    }
    
    .nav-social-link {
        width: 32px;
        height: 32px;
    }
    
    .hamburger {
        display: flex;
        z-index: 1001;
        position: relative;
        width: 24px;
        height: 20px;
        align-items: center;
        justify-content: center;
    }
    
    .hamburger span {
        position: absolute;
        width: 20px;
        height: 2px;
        background: var(--rich-gold);
        border-radius: 2px;
        transition: all 0.3s ease;
    }
    
    .hamburger span:nth-child(1) {
        top: 0;
    }
    
    .hamburger span:nth-child(2) {
        top: 9px;
    }
    
    .hamburger span:nth-child(3) {
        top: 18px;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg);
        top: 9px;
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
        transform: translateX(-20px);
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg);
        top: 9px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-right {
        text-align: center;
    }
    
    .disclaimer {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    :root {
        --spacing-xs: 0.5rem;
        --spacing-sm: 0.75rem;
        --spacing-md: 1rem;
        --spacing-lg: 1.25rem;
        --spacing-xl: 1.75rem;
        --spacing-2xl: 2.5rem;
        --font-size-xs: 0.7rem;
        --font-size-sm: 0.8rem;
        --font-size-base: 0.9rem;
    }
    
    /* Extra Small Mobile Navigation */
    .nav-container {
        padding: 0 0.75rem;
        height: 60px;
    }
    
    .navbar {
        border-bottom: 1px solid var(--primary-gold);
    }
    
    .logo {
        height: 45px !important; /* Ingrandito anche su mobile */
    }
    
    /* EXTRA SMALL MOBILE - APPROCCIO ULTRA RADICALE */
    .nav-container {
        padding: 0 0.5rem !important;
        height: 56px !important;
    }
    
    .navbar {
        border-bottom: 1px solid var(--primary-gold) !important;
    }
    
    .logo {
        height: 28px !important;
    }
    
    .logo-text {
        font-size: 0.9rem !important;
    }
    
    .nav-actions {
        gap: 6px !important;
        margin-right: 6px !important;
        height: 28px !important;
    }
    
    .language-switcher {
        gap: 2px !important;
        margin-right: 4px !important;
        height: 20px !important;
    }
    
    .lang-btn {
        width: 24px !important;
        height: 16px !important;
        border-radius: 2px !important;
    }
    
    .flag-icon {
        width: 14px !important;
        height: 10px !important;
    }
    
    /* Social Links Ultra Compatte */
    .nav-actions .nav-social {
        gap: 2px !important;
        height: 20px !important;
    }
    
    .nav-actions .nav-social-link {
        width: 20px !important;
        height: 20px !important;
        border-width: 1px !important;
    }
    
    .nav-actions .nav-social-link svg {
        width: 10px !important;
        height: 10px !important;
        max-width: 10px !important;
        max-height: 10px !important;
    }
    
    .hamburger {
        padding: 3px !important;
        gap: 2px !important;
        width: 20px !important;
        height: 16px !important;
    }
    
    .hamburger span {
        width: 16px !important;
        height: 2px !important;
    }
    
    .nav-menu {
        top: 56px !important;
        height: calc(100vh - 56px) !important;
        padding: 1rem !important;
        overflow-y: auto !important; /* Scroll interno */
        overflow-x: hidden !important;
        -webkit-overflow-scrolling: touch !important;
    }
    
    .container {
        padding: 0 var(--spacing-sm);
    }
    
    /* Hero ultra mobile */
    .hero {
        min-height: 70vh;
        padding: var(--spacing-lg) 0;
    }
    
    .hero-title {
        font-size: 2.8rem;
        line-height: 1.1;
        margin-bottom: var(--spacing-xs);
        padding-top: var(--spacing-2xl); /* Ripristinato per evitare il taglio su mobile */
    }
    
    .hero-subtitle {
        font-size: var(--font-size-base);
        margin-bottom: var(--spacing-sm);
    }
    
    .hero-description {
        font-size: var(--font-size-xs); /* Più piccolo su mobile per risparmiare spazio */
        line-height: 1.3; /* Molto compatto */
        margin-bottom: var(--spacing-sm); /* Margine minimo */
    }
    
    .btn {
        width: 100%;
        max-width: 240px;
        padding: var(--spacing-sm) var(--spacing-md);
        font-size: var(--font-size-sm);
    }
    
    .logo-hero {
        height: 200px; /* Aumentato da 150px a 200px */
        margin: var(--spacing-md) 0;
    }
    
    /* Navbar ultra mobile */
    .navbar {
        height: 60px;
    }
    
    .nav-menu {
        top: 60px;
        height: calc(100vh - 60px);
        padding: var(--spacing-lg);
        position: fixed;
        left: -100%;
        flex-direction: column;
        background: rgba(13, 15, 23, 0.98);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.3);
        border-top: 2px solid var(--rich-gold);
        z-index: 9999;
        overflow-y: auto;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        margin: 1.5rem 0;
        opacity: 1;
        transform: translateY(0);
        transition: all 0.3s ease;
    }
    
    .nav-menu.active li {
        animation: slideIn 0.5s ease forwards;
    }
    
    .nav-menu.active li:nth-child(1) { animation-delay: 0.1s; }
    .nav-menu.active li:nth-child(2) { animation-delay: 0.2s; }
    .nav-menu.active li:nth-child(3) { animation-delay: 0.3s; }
    .nav-menu.active li:nth-child(4) { animation-delay: 0.4s; }
    .nav-menu.active li:nth-child(5) { animation-delay: 0.5s; }
    
    .nav-menu a {
        font-size: 1.2rem;
        display: block;
        padding: 1rem 2rem;
        border-radius: 8px;
        margin: 0 1rem;
        transition: all 0.3s ease;
    }
    
    /* Results mobile optimization */
    .result-widget {
        min-height: 200px;
        padding: var(--spacing-sm);
        overflow: hidden;
    }
    
    .result-widget img {
        width: 100% !important;
        height: auto !important;
        max-width: 100%;
        object-fit: contain;
        border-radius: 4px;
    }
    
    .result-widget a {
        display: block;
        width: 100%;
    }
    
    .results-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .result-card {
        margin-bottom: var(--spacing-md);
    }
    
    .nav-logo .logo {
        height: 30px; /* Ripristinato a 30px */
    }
    
    .nav-logo {
        align-items: center;
        justify-content: flex-start;
    }
    
    .logo-text {
        font-size: 1.5rem;
        line-height: 1;
    }
    
    /* About cards ultra mobile */
    /* Results ultra mobile */
    .result-widget {
        min-height: 150px;
        padding: var(--spacing-xs);
    }
    
    .result-widget img {
        max-height: 120px;
    }
    
    .result-header h3 {
        font-size: var(--font-size-md);
    }
    
    /* Mobile menu overflow fix */
    body.menu-open {
        overflow: hidden;
    }
    
    /* Ensure nav menu is above all other content */
    .nav-menu {
        z-index: 9999;
    }
    
    /* Fix for very small screens */
    .hamburger {
        min-width: 44px;
        min-height: 44px;
        touch-action: manipulation;
    }
    
    /* Better touch targets for mobile */
    .nav-menu a {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        touch-action: manipulation;
    }
    
    .card-icon {
        font-size: var(--font-size-xl);
    }
    
    .about-card h3 {
        font-size: var(--font-size-base);
        margin-bottom: var(--spacing-xs);
    }
    
    .about-card p {
        font-size: var(--font-size-xs);
        line-height: 1.4;
    }
    
    /* Results ultra mobile */
    .result-card {
        padding: var(--spacing-md);
    }
    
    .result-header h3 {
        font-size: var(--font-size-base);
    }
    
    .broker-logo {
        width: 40px;
        height: 40px;
        font-size: var(--font-size-xs);
    }
    
    .broker-logo.fp-markets {
        width: 50px;
        height: 28px;
    }
    
    .broker-logo svg {
        max-width: 38px;
        max-height: 18px;
    }
}

/* Mobile Landscape Orientation */
@media screen and (max-width: 768px) and (orientation: landscape) {
    .result-widget {
        min-height: 100px;
        max-height: 100px;
        padding: 4px;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
        box-sizing: border-box;
        position: relative;
    }
    
    .result-widget img {
        width: auto !important;
        height: auto !important;
        max-width: 95% !important;
        max-height: 90px !important;
        object-fit: contain !important;
        object-position: center !important;
        transform: scale(0.8);
    }
    
    .result-widget a {
        display: block !important;
        width: 100% !important;
        height: 100% !important;
        max-width: 100% !important;
        overflow: hidden !important;
        text-align: center;
        line-height: 0;
    }
    
    .results-grid {
        gap: var(--spacing-xs);
    }
    
    .result-card {
        margin-bottom: var(--spacing-xs);
        overflow: hidden;
    }
    
    .result-header {
        padding: var(--spacing-xs);
        min-height: 40px;
    }
    
    .result-header h3 {
        font-size: var(--font-size-sm);
        margin: 0;
        line-height: 1.2;
    }
    
    .result-content {
        overflow: hidden;
        padding: 0;
    }
}

/* Ultra Small Mobile Landscape */
@media screen and (max-width: 480px) and (orientation: landscape) {
    .result-widget {
        min-height: 80px;
        max-height: 80px;
        padding: 2px;
    }
    
    .result-widget img {
        max-height: 70px !important;
        transform: scale(0.7);
    }
    
    .result-header {
        padding: 4px var(--spacing-xs);
        min-height: 30px;
    }
    
    .result-header h3 {
        font-size: 0.8rem;
    }
    
    .broker-logo {
        width: 30px;
        height: 30px;
        font-size: 0.7rem;
    }
    
    .broker-logo.fp-markets {
        width: 40px;
        height: 22px;
    }
    
    .broker-logo svg {
        max-width: 30px;
        max-height: 15px;
    }
}

    /* Guide ultra mobile */
    .guide-cards {
        gap: var(--spacing-md);
    }
    
    .guide-card {
        padding: var(--spacing-md);
    }
    
    .guide-card .card-icon {
        width: 50px;
        height: 50px;
    }
    
    .guide-card h3 {
        font-size: var(--font-size-base);
        margin-bottom: var(--spacing-xs);
    }
    
    .guide-card p {
        font-size: var(--font-size-xs);
        line-height: 1.4;
        margin-bottom: var(--spacing-sm);
    }
    
    .connection-steps h3 {
        font-size: var(--font-size-lg);
        margin-bottom: var(--spacing-md);
    }
    
    .step-item {
        padding: var(--spacing-sm);
    }
    
    .step-number {
        width: 30px;
        height: 30px;
        font-size: var(--font-size-sm);
    }
    
    .step-text h4 {
        font-size: var(--font-size-sm);
        margin-bottom: 4px;
    }
    
    .step-text p {
        font-size: 0.75rem;
        line-height: 1.3;
    }
    
    .support-card {
        padding: var(--spacing-md);
    }
    
    .support-icon {
        width: 50px;
        height: 50px;
    }
    
    .support-content h3 {
        font-size: var(--font-size-base);
    }
    
    .support-content p {
        font-size: var(--font-size-xs);
        line-height: 1.4;
    }
    
    .support-buttons .btn {
        padding: var(--spacing-sm) var(--spacing-md);
        font-size: var(--font-size-sm);
        max-width: 240px;
    }
    
    /* Contact ultra mobile */
    .contact-form {
        padding: var(--spacing-md);
    }
    
    .form-group input,
    .form-group textarea {
        font-size: var(--font-size-sm);
        padding: var(--spacing-xs) var(--spacing-sm);
    }
    
    /* Footer ultra mobile */
    .footer-content {
        gap: var(--spacing-md);
    }
    
    .footer-logo .logo {
        height: 25px;
    }
    
    .disclaimer {
        font-size: 0.65rem;
        line-height: 1.2;
        padding: var(--spacing-xs);
    }
    
    /* Section headers mobile */
    .section-header h2 {
        font-size: var(--font-size-xl);
        margin-bottom: var(--spacing-sm);
    }
    
    .section-header p {
        font-size: var(--font-size-sm);
        line-height: 1.5;
    }

/* Animations and Effects */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Smooth scrolling for older browsers */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

/* Focus styles for accessibility */
button:focus,
.btn:focus,
input:focus,
textarea:focus {
    outline: 2px solid var(--primary-gold);
    outline-offset: 2px;
}

/* Loading animation */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.loading {
    animation: pulse 2s infinite;
}

/* ============================================
   EMAILJS FORM ENHANCEMENTS
   ============================================ */

/* Loading spinner */
.loading-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 8px;
    vertical-align: middle;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Form validation states */
.contact-form input:invalid,
.contact-form textarea:invalid {
    border-color: #ff4444;
    box-shadow: 0 0 10px rgba(255, 68, 68, 0.3);
}

.contact-form input:valid,
.contact-form textarea:valid {
    border-color: var(--primary-gold);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
}

/* Button disabled state */
.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.btn-primary:disabled:hover {
    transform: none !important;
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
}

/* Form messages */
.form-message {
    padding: 1.2rem 1.5rem;
    margin: 1.5rem 0;
    border-radius: 12px;
    font-weight: 500;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid;
    font-family: 'Inter', sans-serif;
}

.form-message--success {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(184, 134, 11, 0.1));
    color: var(--primary-gold);
    border-color: var(--primary-gold);
}

.form-message--error {
    background: linear-gradient(135deg, rgba(255, 68, 68, 0.1), rgba(204, 0, 0, 0.1));
    color: #ff4444;
    border-color: #ff4444;
}

/* Enhanced notification styles */
.notification {
    font-family: 'Inter', sans-serif !important;
    font-weight: 500;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* reCAPTCHA Styling */
.form-submit-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    margin-top: 2rem;
    flex-wrap: nowrap;
}

.g-recaptcha {
    transform: scale(0.9);
    transform-origin: left center;
    flex-shrink: 0;
}

/* Button alignment in row */
.form-submit-row .btn-primary {
    flex-shrink: 0;
    min-width: 180px;
}

/* reCAPTCHA responsive */
@media (max-width: 900px) {
    .form-submit-row {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }
    
    .g-recaptcha {
        transform: scale(0.85);
        transform-origin: center;
    }
}

@media (max-width: 480px) {
    .g-recaptcha {
        transform: scale(0.77);
        transform-origin: center;
    }
    
    .form-submit-row {
        gap: 1rem;
    }
}

/* Dark theme compatibility */
.g-recaptcha iframe {
    border-radius: 8px;
}

/* Backtest Buttons Styles */
.backtest-buttons {
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin-top: 2rem;
}

.backtest-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 380px;
}

.backtest-btn-wrapper {
    position: relative;
    display: inline-block;
}

.backtest-buttons {
    display: flex;
    gap: 2rem;
    justify-content: center;
    align-items: stretch; /* ensure child items match height */
    margin-top: 2rem;
}
.backtest-item {
    display: flex;
    flex-direction: column;
    align-items: stretch; /* allow inner .backtest-settings to fill horizontally */
    flex: 1 1 380px; /* flexible but with a sensible base width */
    max-width: 380px;
    box-sizing: border-box;
}

.backtest-settings {
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid var(--primary-gold);
    border-radius: var(--border-radius);
    padding: 1.8rem;
    width: 100%;
    box-shadow: 0 2px 10px rgba(212, 175, 55, 0.1);
    display: flex;
    flex-direction: column;
    height: 100%; /* fill parent so all settings boxes equalize height */
}

.backtest-settings h4 {
    color: var(--primary-gold);
    font-size: 1rem;
    margin-bottom: 0.8rem;
    font-weight: 600;
    text-align: center;
}

.backtest-settings ul {
    list-style: none;
    margin: 0 0 1.5rem 0;
    padding: 0;
    flex-grow: 1;
}

.backtest-settings li {
    padding: 0.5rem 0;
    font-size: 0.9rem;
    color: var(--text-dark);
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    display: flex;
    align-items: center;
    text-align: left;
    line-height: 1.4;
}

.backtest-settings li:last-child {
    border-bottom: none;
}

.backtest-settings li::before {
    content: "▸";
    color: var(--primary-gold);
    font-weight: bold;
    margin-right: 0.5rem;
}

.backtest-settings .backtest-btn {
    margin-top: auto;
    padding: 1rem 2rem;
    text-align: center;
    line-height: 1.2;
    font-weight: 600;
    border-radius: var(--border-radius);
    text-decoration: none;
    display: block;
    transition: var(--transition);
    width: 100%;
    box-shadow: 0 4px 15px var(--shadow-dark);
    cursor: pointer;
    /* Touch-friendly improvements */
    min-height: 44px;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    /* Centramento forzato */
    margin-left: auto;
    margin-right: auto;
}

.backtest-settings .backtest-btn:hover,
.backtest-settings .backtest-btn:focus {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--shadow-dark);
}

.backtest-settings .backtest-btn:active {
    transform: translateY(0);
}

.backtest-settings .backtest-btn-wrapper {
    position: relative;
    width: 100%;
    margin-top: auto;
    display: flex;
    justify-content: center;
}

.backtest-settings .backtest-btn-wrapper .backtest-btn {
    margin-left: 0;
    margin-right: 0;
}

.backtest-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--shadow-dark);
}

/* Responsive Backtest Buttons */
@media (max-width: 768px) {
    .backtest-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
        padding: 0 1rem;
    }
    
    .backtest-item {
        width: 100%;
        max-width: 420px;
    }
    
    .backtest-settings {
        padding: 1.2rem;
        font-size: 0.9rem;
        border-radius: 12px;
    }
    
    .backtest-settings h4 {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
    
    .backtest-settings li {
        padding: 0.6rem 0;
        font-size: 0.9rem;
        line-height: 1.4;
    }
    
    .backtest-settings li::before {
        margin-right: 0.8rem;
        font-size: 1.1rem;
    }
    
    .backtest-settings .backtest-btn {
        width: 100%;
        padding: 1rem 1.5rem;
        font-size: 1rem;
        margin-top: 1.5rem;
        border-radius: 8px;
        }

        /* Centra il pulsante Backtest solo su mobile */
        .backtest-settings .btn-telegram {
            display: block !important;
            margin: 1.2rem auto 0 auto !important;
            text-align: center !important;
            max-width: 280px;
        }
        }

        /* Centra il pulsante Diventa Affiliato solo su mobile */
        .collaborate-card .btn-telegram {
            display: block !important;
            margin: 0 auto !important;
            text-align: center !important;
        }
    }
    
    .backtest-settings .backtest-btn-wrapper {
        display: flex;
        justify-content: center;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .backtest-buttons {
        padding: 0 0.5rem;
        gap: 1.2rem;
    }
    
    .backtest-item {
        max-width: none;
    }
    
    .backtest-settings {
        padding: 1rem;
        font-size: 0.85rem;
        border-radius: 8px;
    }
    
    .backtest-settings h4 {
        font-size: 0.95rem;
        margin-bottom: 0.8rem;
    }
    
    .backtest-settings li {
        padding: 0.5rem 0;
        font-size: 0.85rem;
        line-height: 1.3;
    }
    
    .backtest-settings li::before {
        margin-right: 0.6rem;
        font-size: 1rem;
    }
    
    .backtest-settings .backtest-btn {
        padding: 0.9rem 1.2rem;
        font-size: 0.95rem;
        margin-top: 1.2rem;
        display: block;
        text-align: center;
        margin-left: auto;
        margin-right: auto;
        width: 100%;
    }
    
    .backtest-settings .backtest-btn-wrapper {
        width: 100%;
        display: flex;
        justify-content: center;
    }
}

/* Miglioramenti specifici per dispositivi molto piccoli */
@media (max-width: 360px) {
    .backtest-buttons {
        padding: 0 0.25rem;
    }
    
    .backtest-settings {
        padding: 0.8rem;
        font-size: 0.8rem;
    }
    
    .backtest-settings h4 {
        font-size: 0.9rem;
    }
    
    .backtest-settings li {
        font-size: 0.8rem;
        padding: 0.4rem 0;
    }
    
    .backtest-settings .backtest-btn {
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
        display: block;
        text-align: center;
        margin-left: auto;
        margin-right: auto;
        width: 100%;
    }
    
    .backtest-settings .backtest-btn-wrapper {
        display: flex;
        justify-content: center;
        width: 100%;
    }
}

/* ==========================================
   LANGUAGE SWITCHER - VERSIONE RADICALE
   ========================================== */

/* Rimuovo tutte le regole precedenti e ricostruisco */

/* Language transition effect */
[data-i18n] {
    transition: opacity 0.2s ease;
}

.language-switching [data-i18n] {
    opacity: 0.7;
}
