/* path/to/style.css */
:root {
    --bg-dark: #000000;
    --bg-medium: #1A1A1A;
    --bg-light: #2C2C2C;
    --border-color: #333333;
    --text-primary: #FFFFFF;
    --text-secondary: #E0E0E0;
    --text-muted: #A0A0A0;
    --accent-primary: #FF6B00;
    --accent-primary-hover: #E66000;
    --accent-glow: rgba(255, 107, 0, 0.5);
    --font-heading: 'Exo 2', sans-serif;
    --font-body: 'Inter', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); background-color: var(--bg-dark); color: var(--text-primary); line-height: 1.6; overflow-x: hidden; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.text-center { text-align: center; }
.text-accent { color: var(--accent-primary); text-shadow: 0 0 8px var(--accent-glow), 0 0 20px var(--accent-glow); }
.w-full { width: 100%; display: block; text-align: center; } 

/* Watermark Globale */
.global-watermark { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; z-index: 0; background-image: url('alpha-fx-logo.png'); background-repeat: no-repeat; background-position: center 46%; background-size: 450px; opacity: 0.15; pointer-events: none; }
@media (min-width: 768px) { .global-watermark { background-size: 850px; } }

/* Header */
.site-header { background-color: rgba(0, 0, 0, 0.85); backdrop-filter: blur(10px); padding: 1rem 0; position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--border-color); }
.header-content { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; }
.logo { display: flex; align-items: center; text-decoration: none; color: var(--text-primary); font-family: var(--font-heading); font-size: 1.5rem; font-weight: 900; text-shadow: 0 0 5px var(--accent-glow); }
.logo-image { height: 65px; width: auto; margin-right: 0.75rem; filter: drop-shadow(0 0 5px var(--accent-glow)); }

.mobile-menu-btn { display: block; background: none; border: none; color: white; cursor: pointer; padding: 5px; }
.nav-elements { display: none; width: 100%; flex-direction: column; align-items: center; gap: 1rem; padding-top: 1.5rem; padding-bottom: 0.5rem; }
.nav-elements.active { display: flex; } 
.main-nav { display: flex; flex-direction: column; gap: 1.5rem; text-align: center; width: 100%; }

.main-nav a { color: var(--text-secondary); text-decoration: none; transition: color 0.2s ease; font-size: 1.1rem; position: relative; padding-bottom: 4px; }
.main-nav a:hover { color: var(--text-primary); }
.main-nav a::after { content: ''; position: absolute; width: 0; height: 2px; bottom: 0; left: 50%; background-color: var(--accent-primary); transition: all 0.3s ease; transform: translateX(-50%); box-shadow: 0 0 8px var(--accent-glow); }
.main-nav a:hover::after { width: 100%; }

.cta-button { width: 100%; text-align: center; }

@media (min-width: 768px) {
    .logo { font-size: 1.8rem; }
    .logo-image { height: 95px; margin-right: 1rem; }
    .mobile-menu-btn { display: none; }
    .nav-elements { display: flex; width: auto; flex-direction: row; gap: 2rem; padding-top: 0; padding-bottom: 0; }
    .main-nav { flex-direction: row; width: auto; }
    .cta-button { width: auto; }
}

/* Bottoni */
.btn { padding: 0.75rem 1.5rem; border-radius: 8px; text-decoration: none; font-weight: bold; transition: all 0.2s ease; display: inline-block; border: 1px solid transparent; cursor: pointer;}
.btn-primary { background-color: var(--accent-primary); color: white; box-shadow: 0 0 10px var(--accent-glow); }
.btn-primary:hover { background-color: var(--accent-primary-hover); transform: scale(1.05); box-shadow: 0 0 20px var(--accent-glow); }
.pulse-button { animation: pulse-glow 2s infinite; }
@keyframes pulse-glow { 0%, 100% { box-shadow: 0 0 10px var(--accent-glow); } 50% { box-shadow: 0 0 25px var(--accent-glow); } }

.btn-secondary { background-color: transparent; color: white; border: 1px solid var(--border-color); }
.btn-secondary:hover { background-color: var(--accent-primary); border-color: var(--accent-primary); color: white; box-shadow: 0 0 15px var(--accent-glow); }
.btn-lg { padding: 1rem 1.5rem; font-size: 1rem; width: 100%; } 
@media (min-width: 768px) { .btn-lg { padding: 1rem 2rem; font-size: 1.1rem; width: auto; } }

/* HERO */
.hero { padding: 6rem 0; position: relative; display: flex; align-items: center; min-height: 75vh; z-index: 10; }
.hero-content { position: relative; width: 100%; }
.hero h1 { font-family: var(--font-heading); font-size: 2.2rem; font-weight: 900; line-height: 1.2; margin-bottom: 1rem; }
.hero .subtitle { font-size: 1rem; color: var(--text-secondary); max-width: 700px; margin: 0 auto 2rem; }
.hero-buttons { display: flex; flex-direction: column; gap: 1rem; align-items: center; }
@media (min-width: 768px) { 
    .hero { padding: 8rem 0; min-height: auto; }
    .hero h1 { font-size: 4.5rem; } 
    .hero .subtitle { font-size: 1.2rem; }
    .hero-buttons { flex-direction: row; justify-content: center; }
}

/* Trust Strip */
.trust-strip { background-color: var(--bg-medium); border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); padding: 1.5rem 0; position: relative; z-index: 10; }
.trust-grid { display: flex; flex-direction: column; gap: 1.5rem; align-items: center; justify-content: space-around; }
.trust-item { display: flex; align-items: center; gap: 0.75rem; color: var(--text-secondary); font-size: 0.95rem; font-weight: 600; }
.trust-item svg { color: var(--accent-primary); }
@media (min-width: 768px) { .trust-grid { flex-direction: row; } }

/* Sezioni */
.section-heading h2 { font-family: var(--font-heading); font-size: 2rem; margin-bottom: 0.5rem; }
.section-heading p { color: var(--text-secondary); font-size: 1rem; }
@media (min-width: 768px) { .section-heading h2 { font-size: 2.8rem; } .section-heading p { font-size: 1.1rem; } }

.features, .testimonials, .faq, .how-it-works { padding: 4rem 0; background-color: rgba(10, 10, 10, 0.3); position: relative; z-index: 10; }
.product-preview, .pricing { padding: 4rem 0; position: relative; z-index: 10; }
.features-grid, .testimonials-grid, .pricing-grid, .steps-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; margin-top: 2.5rem; }

@media (min-width: 768px) { 
    .features, .testimonials, .faq, .product-preview, .pricing, .how-it-works { padding: 5rem 0; }
    .features-grid, .steps-grid { grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-top: 3rem; } 
    .testimonials-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem; margin-top: 3rem; }
}

/* START MODIFICATION: Update pricing-grid per due colonne perfettamente centrate */
@media (min-width: 992px) { 
    .pricing-grid { 
        grid-template-columns: repeat(2, 1fr); 
        gap: 3rem; 
        max-width: 800px; /* Evita che si allarghino troppo */
        margin: 3rem auto 0; /* Centra orizzontalmente nel container */
        align-items: center; 
    } 
}
/* END MODIFICATION */

/* Cards */
.feature-card, .testimonial-card, .pricing-card, .step-card { background-color: var(--bg-medium); padding: 1.5rem; border-radius: 12px; border: 1px solid var(--border-color); transition: all 0.3s ease; text-align: center;}
@media (min-width: 768px) { .feature-card, .testimonial-card, .pricing-card, .step-card { padding: 2rem; } .feature-card {text-align: left;} .testimonial-card{text-align:left;}}
.feature-card:hover, .step-card:hover, .pricing-card:hover { transform: translateY(-5px); border-color: var(--accent-primary); box-shadow: 0 0 20px rgba(255, 107, 0, 0.1); }
.feature-icon { margin-bottom: 1rem; color: var(--accent-primary); }
.feature-card h3, .step-card h3 { font-family: var(--font-heading); font-size: 1.3rem; margin-bottom: 0.5rem; }
.feature-card p, .step-card p { color: var(--text-secondary); font-size: 0.95rem; }
.step-number { width: 50px; height: 50px; background-color: var(--accent-primary); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; font-weight: 900; font-family: var(--font-heading); margin: 0 auto 1.5rem; box-shadow: 0 0 15px var(--accent-glow); }

/* Anteprima */
.video-wrapper { max-width: 800px; margin: 2rem auto 0; }
.preview-video { width: 100%; height: auto; display: block; border-radius: 12px; border: 1px solid var(--border-color); box-shadow: 0 10px 40px rgba(0,0,0,0.6); background-color: var(--bg-dark); }

/* Testimonials */
.stars { display: flex; color: var(--accent-primary); margin-bottom: 1rem; }
.stars svg { filter: drop-shadow(0 0 2px var(--accent-glow)); }
.testimonial-card blockquote { font-size: 1rem; font-style: italic; color: var(--text-secondary); border-left: 3px solid var(--accent-primary); padding-left: 1rem; margin-bottom: 1.5rem; }
.testimonial-card cite { display: flex; align-items: center; gap: 1rem; font-style: normal; }
.testimonial-card cite img { width: 50px; height: 50px; border-radius: 50%; }

/* Pricing */
.pricing-card.recommended { border-color: var(--accent-primary); box-shadow: 0 0 20px var(--accent-glow); position: relative; }
@media (min-width: 992px) { .pricing-card.recommended { transform: scale(1.05); box-shadow: 0 0 30px var(--accent-glow); } }
.pricing-card h3 { font-family: var(--font-heading); font-size: 1.5rem; }
.pricing-card .price { font-family: var(--font-heading); font-size: 2.5rem; font-weight: 900; margin: 1rem 0; color: var(--accent-primary); }
.pricing-card .price span { font-size: 1rem; color: var(--text-muted); }
.pricing-card ul { list-style: none; margin: 1.5rem 0; text-align: left; }
.pricing-card ul li { margin-bottom: 0.8rem; display: flex; align-items: center; gap: 0.5rem; font-size: 0.95rem; }
.pricing-card ul li svg { color: var(--accent-primary); flex-shrink: 0; }
.pricing-card .badge { background-color: var(--accent-primary); color: white; padding: 0.25rem 0.75rem; border-radius: 20px; font-size: 0.8rem; font-weight: bold; display: inline-block; margin-bottom: 1rem; }

/* FAQ */
.faq-container { max-width: 700px; margin: 2rem auto 0; }
.faq-item { background-color: var(--bg-medium); border: 1px solid var(--border-color); border-radius: 8px; margin-bottom: 1rem; transition: border-color 0.3s; }
.faq-item:hover { border-color: var(--accent-primary); }
.faq-item summary { font-size: 1rem; font-weight: 600; padding: 1.2rem; cursor: pointer; position: relative; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; position: absolute; right: 1.2rem; top: 1.2rem; font-size: 1.5rem; transition: transform 0.2s ease; line-height: 1; color: var(--accent-primary); }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding: 0 1.2rem 1.2rem; color: var(--text-secondary); font-size: 0.95rem; }

/* CHATBOT */
.hidden { display: none !important; }
.chatbot { position: fixed; bottom: 20px; right: 20px; z-index: 1000; }
.chat-bubble { background-color: var(--accent-primary); color: white; width: 55px; height: 55px; border-radius: 50%; border: none; cursor: pointer; display: flex; justify-content: center; align-items: center; box-shadow: 0 0 20px var(--accent-glow); transition: transform 0.2s ease, box-shadow 0.2s ease; }
.chat-bubble:hover { background-color: var(--accent-primary-hover); transform: scale(1.1); box-shadow: 0 0 30px var(--accent-glow); }
.chat-window { width: calc(100vw - 40px); max-width: 350px; height: 65vh; max-height: 500px; background-color: var(--bg-medium); border-radius: 12px; box-shadow: 0 10px 40px rgba(0,0,0,0.5); display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--border-color); position: absolute; bottom: 70px; right: 0; animation: fade-in-up 0.3s ease-out; }
@media (max-width: 400px) { .chatbot { right: 15px; bottom: 15px; } .chat-window { width: calc(100vw - 30px); right: 0; } }
@keyframes fade-in-up { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.chat-header { background-color: var(--bg-dark); padding: 1rem; display: flex; align-items: center; border-bottom: 1px solid var(--border-color); }
.chat-header svg { color: var(--accent-primary); margin-right: 0.75rem; }
.chat-header h3 { font-family: var(--font-heading); font-size: 1.1rem; font-weight: bold; }
.chat-messages { flex-grow: 1; padding: 1rem; overflow-y: auto; display: flex; flex-direction: column; gap: 1rem; }
.message { display: flex; align-items: flex-end; gap: 0.5rem; max-width: 85%; }
.message-bubble { padding: 0.7rem 0.9rem; border-radius: 18px; font-size: 0.9rem; line-height: 1.4; word-break: break-word; }
.message.user { align-self: flex-end; }
.message.user .message-bubble { background-color: var(--accent-primary); color: white; border-bottom-right-radius: 4px; }
.message.bot { align-self: flex-start; }
.message.bot .message-bubble { background-color: var(--bg-light); color: var(--text-primary); border-bottom-left-radius: 4px; }
.message.bot .avatar { width: 30px; height: 30px; border-radius: 50%; background-color: var(--accent-primary); display: flex; justify-content: center; align-items: center; flex-shrink: 0; }
.message.bot .avatar svg { width: 16px; height: 16px; color: white; }
.typing-indicator-container { padding: 0 1rem 1rem; }
.typing-indicator { display: flex; align-items: center; gap: 0.5rem; }
.typing-indicator .message-bubble { display: flex; gap: 5px; padding: 0.8rem 1rem; }
.typing-indicator .dot { width: 6px; height: 6px; background-color: var(--text-muted); border-radius: 50%; animation: bounce 1.2s infinite ease-in-out; }
.typing-indicator .dot:nth-child(2) { animation-delay: -0.15s; }
.typing-indicator .dot:nth-child(3) { animation-delay: -0.3s; }
@keyframes bounce { 0%, 80%, 100% { transform: scale(0); } 40% { transform: scale(1.0); } }

.chat-form { display: flex; align-items: center; padding: 0.5rem; margin: 0.5rem; border: 1px solid var(--border-color); border-radius: 999px; background-color: var(--bg-light); transition: all 0.2s ease; }
.chat-form:focus-within { border-color: var(--accent-primary); box-shadow: 0 0 0 2px var(--accent-glow); }
#chat-input { flex-grow: 1; background: transparent; border: none; color: var(--text-primary); padding: 0.5rem 0.75rem; font-size: 0.9rem; }
#chat-input:focus { outline: none; box-shadow: none; }
#chat-input::placeholder { color: var(--text-muted); }
.chat-form button { background: transparent; border: none; padding: 0.5rem; margin-left: 0.25rem; cursor: pointer; color: var(--text-muted); display: flex; align-items: center; justify-content: center; border-radius: 50%; transition: color 0.2s ease; }
.chat-form button:hover { color: var(--accent-primary); }
.chat-form button:disabled { color: var(--border-color); cursor: not-allowed; }

/* Scroll Reveal */
.reveal { opacity: 0; transform: translateY(30px); transition: all 0.8s ease-out; }
.reveal.active { opacity: 1; transform: translateY(0); }

/* Gradiente Titolo */
.text-gradient { background: linear-gradient(135deg, #FF6B00 0%, #FFB347 50%, #FF6B00 100%); background-size: 200% auto; color: transparent; -webkit-background-clip: text; background-clip: text; animation: shine 3s linear infinite; text-shadow: none; }
@keyframes shine { to { background-position: 200% center; } }

/* Marquee Broker */
.broker-marquee-container { background-color: var(--bg-dark); padding: 2rem 0; border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); overflow: hidden; position: relative; z-index:10;}
.marquee-title { text-align: center; color: var(--text-muted); font-size: 0.8rem; letter-spacing: 2px; margin-bottom: 1.5rem; font-family: var(--font-heading); }
.broker-marquee { width: 100%; overflow: hidden; white-space: nowrap; position: relative; }
.broker-marquee::before, .broker-marquee::after { content: ''; position: absolute; top: 0; width: 100px; height: 100%; z-index: 2; }
.broker-marquee::before { left: 0; background: linear-gradient(to right, var(--bg-dark), transparent); }
.broker-marquee::after { right: 0; background: linear-gradient(to left, var(--bg-dark), transparent); }
.marquee-content { display: inline-block; animation: scroll-left 20s linear infinite; }
.marquee-content span { font-family: var(--font-heading); font-size: 1.5rem; font-weight: 700; color: var(--text-secondary); margin: 0 20px; opacity: 0.6; }
.marquee-content span.dot { color: var(--accent-primary); opacity: 1; }
@keyframes scroll-left { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* Footer e Sticky CTA */
.risk-warning { font-size: 0.75rem; color: var(--text-muted); text-align: justify; line-height: 1.5; margin-bottom: 1.5rem; padding: 1rem; background-color: rgba(255,255,255,0.02); border-radius: 8px; border: 1px solid var(--border-color); }
.copyright { font-weight: bold; color: var(--text-secondary); }
.mobile-sticky-cta { display: none; }
@media (max-width: 767px) {
    .mobile-sticky-cta { display: block; position: fixed; bottom: 0; left: 0; width: 100%; background: rgba(10, 10, 10, 0.9); backdrop-filter: blur(10px); padding: 15px 20px; border-top: 1px solid var(--border-color); z-index: 998; }
    body { padding-bottom: 80px; }
    .chatbot { bottom: 90px; }
}

/* =========================================================
   PAGINE REGISTRAZIONE E CHECKOUT
   ========================================================= */
.auth-page { display: flex; align-items: center; justify-content: center; min-height: 100vh; background-color: var(--bg-dark); }
.auth-container { width: 100%; max-width: 450px; padding: 20px; z-index: 10; position: relative; }
.auth-logo { justify-content: center; margin-bottom: 2rem; }
.auth-box { background-color: var(--bg-medium); padding: 2.5rem 2rem; border-radius: 16px; border: 1px solid var(--border-color); box-shadow: 0 10px 40px rgba(0,0,0,0.5); text-align: center; }
.auth-subtitle { color: var(--text-secondary); font-size: 0.95rem; margin-bottom: 2rem; }

.auth-form { text-align: left; }
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--text-secondary); margin-bottom: 0.5rem; text-transform: uppercase; letter-spacing: 1px; }
.form-group input { width: 100%; background-color: var(--bg-dark); border: 1px solid var(--border-color); color: var(--text-primary); padding: 1rem; border-radius: 8px; font-family: var(--font-body); font-size: 1rem; transition: border-color 0.3s; }
.form-group input:focus { outline: none; border-color: var(--accent-primary); box-shadow: 0 0 0 2px rgba(255, 107, 0, 0.2); }
.auth-switch { text-align: center; margin-top: 1.5rem; font-size: 0.9rem; color: var(--text-muted); }
.auth-switch a { color: var(--accent-primary); text-decoration: none; font-weight: bold; }
.auth-switch a:hover { text-decoration: underline; }

.checkout-page { padding-bottom: 5rem; }
.checkout-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; margin-top: 2rem; z-index: 10; position: relative; }
@media (min-width: 992px) { .checkout-grid { grid-template-columns: 1fr 1fr; gap: 4rem; max-width: 1000px; margin: 3rem auto; } }

.order-summary { background: linear-gradient(145deg, rgba(31, 31, 31, 0.8) 0%, rgba(0, 0, 0, 0.8) 100%); padding: 2.5rem; border-radius: 16px; border: 1px solid var(--border-color); }
.order-summary h3, .payment-section h3 { font-family: var(--font-heading); font-size: 1.5rem; margin-bottom: 1.5rem; border-bottom: 1px solid var(--border-color); padding-bottom: 1rem; }
.plan-details { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem; }
.plan-name h4 { font-family: var(--font-heading); font-size: 1.8rem; margin: 0.5rem 0 0 0; }
.plan-price { font-family: var(--font-heading); font-size: 2rem; font-weight: 900; color: var(--accent-primary); }
.plan-price span { font-size: 1rem; color: var(--text-muted); font-weight: normal; }
.checkout-features { list-style: none; padding: 0; margin-bottom: 2rem; }
.checkout-features li { display: flex; align-items: center; gap: 10px; margin-bottom: 1rem; color: var(--text-secondary); font-size: 0.95rem; }
.total-row { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--border-color); padding-top: 1.5rem; font-size: 1.2rem; }
.total-row strong { font-size: 1.8rem; color: white; font-family: var(--font-heading); }

.payment-section { padding: 1rem 0; }


/* Sfondo scuro e profondo */
body {
    background-color: #000000;
    background-image: radial-gradient(circle at center, #1a0a00 0%, #000000 80%);
}

/* Contenitore generale dei Lens Flare */
.flare-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1; /* Sopra lo sfondo, sotto il contenuto */
    overflow: hidden;
}

/* La linea orizzontale del Lens Flare */
.lens-flare-line {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    /* Gradiente che sfuma ai lati */
    background: linear-gradient(90deg, 
        rgba(255, 107, 0, 0) 0%, 
        rgba(255, 107, 0, 0.4) 15%, 
        rgba(255, 200, 0, 1) 50%, 
        rgba(255, 107, 0, 0.4) 85%, 
        rgba(255, 107, 0, 0) 100%);
    box-shadow: 0 0 15px rgba(255, 80, 0, 0.6);
}

/* Il punto di luce intenso al centro (l'effetto "stella") */
.lens-flare-line::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 250px; /* Larghezza del bagliore centrale */
    height: 6px;
    background: #fff; /* Cuore bianco per la massima luminosità */
    border-radius: 50%;
    filter: blur(2px);
    box-shadow: 
        0 0 20px 5px #ff6b00, 
        0 0 50px 15px #ff4500,
        0 0 100px 30px rgba(255, 107, 0, 0.3);
}

/* Posizionamento delle due barre come nella foto */
.flare-top { top: 20%; opacity: 0.8; }
.flare-bottom { top: 75%; opacity: 0.8; }

/* Effetto di pulsazione lenta per rendere la luce "viva" */
@keyframes flare-pulse {
    0%, 100% { opacity: 0.7; transform: scaleX(1); }
    50% { opacity: 1; transform: scaleX(1.05); }
}

.lens-flare-line {
    animation: flare-pulse 4s ease-in-out infinite;
}