/* Reset & Base */
* { box-sizing: border-box; margin: 0; padding: 0; }
body { 
    font-family: 'Open Sans', sans-serif; 
    line-height: 1.6; 
    color: #333; 
    background-color: #fff; 
    overflow-x: hidden;
}
h1, h2, h3, .logo, .btn-cta, .btn-submit { font-family: 'Montserrat', sans-serif; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
a { text-decoration: none; color: inherit; }

/* Pulsante Back per Agente */
.agent-back-btn {
    position: fixed;
    top: 20px;
    left: 20px;
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 8px 15px;
    border-radius: 50px;
    font-size: 12px;
    z-index: 9999;
    font-weight: bold;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    transition: 0.3s;
}
.agent-back-btn:hover { background: #000; transform: translateY(-2px); }

/* Header */
.lp-header { padding: 20px 0; background: #fff; box-shadow: 0 2px 15px rgba(0,0,0,0.05); position: sticky; top: 0; z-index: 100; }
.header-container { display: flex; justify-content: space-between; align-items: center; }
.logo { font-weight: 800; font-size: 1.5rem; color: #2c3e50; }
.logo span { color: #3498db; }
.lp-header nav { display: none; } /* Nascosto su mobile */
.lp-header nav a { margin: 0 15px; font-weight: 600; color: #555; transition: 0.3s; }
.lp-header nav a:hover { color: #3498db; }
.btn-header { background: transparent; color: #3498db; font-weight: 700; border: 2px solid #3498db; padding: 8px 20px; border-radius: 5px; transition: 0.3s; }
.btn-header:hover { background: #3498db; color: #fff; }

/* Hero Section */
.hero { padding: 80px 0; background: linear-gradient(135deg, #fdfbfb 0%, #ebedee 100%); display: flex; align-items: center; min-height: 80vh; }
.hero-container { display: flex; align-items: center; gap: 50px; }
.hero-text { flex: 1; }
.hero-text h1 { font-size: 3rem; line-height: 1.2; margin-bottom: 20px; color: #2c3e50; font-weight: 800; }
.hero-text p { font-size: 1.2rem; margin-bottom: 30px; color: #666; max-width: 90%; }
.hero-cta-group { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.btn-cta { 
    display: inline-block; 
    background: #e74c3c; 
    color: white; 
    padding: 18px 40px; 
    border-radius: 50px; 
    font-size: 1.1rem; 
    font-weight: 700; 
    box-shadow: 0 10px 20px rgba(231, 76, 60, 0.3); 
    transition: transform 0.2s, box-shadow 0.2s; 
}
.btn-cta:hover { transform: translateY(-3px); box-shadow: 0 15px 25px rgba(231, 76, 60, 0.4); background: #c0392b; }
.promo-text { font-size: 0.85rem; color: #e67e22; font-weight: 600; }
.hero-image { flex: 1; position: relative; }
.hero-image img { width: 100%; border-radius: 20px; box-shadow: 0 20px 50px rgba(0,0,0,0.15); transform: rotate(2deg); transition: 0.5s; }
.hero-image:hover img { transform: rotate(0deg) scale(1.02); }

/* Features */
.features { padding: 100px 0; text-align: center; background: #fff; }
.section-title { margin-bottom: 60px; max-width: 700px; margin-left: auto; margin-right: auto; }
.section-title h2 { font-size: 2.5rem; margin-bottom: 15px; color: #2c3e50; }
.section-title p { font-size: 1.1rem; color: #777; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px; }
.feature-card { padding: 40px 30px; border-radius: 15px; background: #fff; border: 1px solid #f0f0f0; transition: 0.3s; }
.feature-card:hover { box-shadow: 0 15px 40px rgba(0,0,0,0.08); transform: translateY(-10px); border-color: transparent; }
.feature-card .icon { font-size: 3.5rem; margin-bottom: 25px; display: inline-block; }
.feature-card h3 { margin-bottom: 15px; color: #2c3e50; font-size: 1.3rem; }
.feature-card p { color: #666; font-size: 0.95rem; }

/* Testimonial */
.testimonial { background: #2c3e50; color: white; padding: 80px 0; text-align: center; position: relative; overflow: hidden; }
.testimonial::before { content: '"'; position: absolute; top: 20px; left: 50%; transform: translateX(-50%); font-size: 20rem; color: rgba(255,255,255,0.05); font-family: serif; line-height: 1; pointer-events: none; }
.testimonial blockquote { font-size: 1.8rem; font-style: italic; margin-bottom: 40px; max-width: 900px; margin-left: auto; margin-right: auto; line-height: 1.4; position: relative; z-index: 2; }
.testimonial .author { display: flex; align-items: center; justify-content: center; gap: 15px; position: relative; z-index: 2; }
.testimonial .author img { width: 60px; height: 60px; border-radius: 50%; border: 3px solid rgba(255,255,255,0.3); }
.testimonial .author div { text-align: left; }
.testimonial .author strong { display: block; font-size: 1.1rem; }
.testimonial .author span { font-size: 0.9rem; color: #bdc3c7; }

/* Contact Form */
.contact-section { padding: 100px 0; background: #f4f7f6; }
.form-wrapper { max-width: 600px; margin: 0 auto; background: white; padding: 50px; border-radius: 20px; box-shadow: 0 20px 60px rgba(0,0,0,0.05); text-align: center; }
.form-wrapper h2 { margin-bottom: 15px; color: #2c3e50; font-size: 2rem; }
.form-wrapper p { margin-bottom: 30px; color: #666; }
.lp-form { display: flex; flex-direction: column; gap: 15px; }
.lp-form input, .lp-form select { 
    width: 100%; 
    padding: 15px; 
    border: 2px solid #eee; 
    border-radius: 8px; 
    font-size: 1rem; 
    transition: 0.3s; 
    font-family: inherit;
}
.lp-form input:focus, .lp-form select:focus { border-color: #3498db; outline: none; }
.btn-submit { 
    width: 100%; 
    padding: 18px; 
    background: #3498db; 
    color: white; 
    border: none; 
    border-radius: 8px; 
    font-size: 1.1rem; 
    font-weight: 700; 
    cursor: pointer; 
    transition: 0.3s; 
    margin-top: 10px;
}
.btn-submit:hover { background: #2980b9; }
.privacy-note { font-size: 0.8rem; margin-top: 15px; color: #999; }
.privacy-note a { color: #3498db; text-decoration: underline; }

/* Footer */
footer { background: #fff; padding: 40px 0; border-top: 1px solid #eee; color: #777; font-size: 0.9rem; }
.footer-content { display: flex; flex-direction: column; align-items: center; gap: 15px; }
.footer-logo { font-weight: 800; font-size: 1.2rem; color: #2c3e50; }
.footer-logo span { color: #3498db; }

/* Mobile Responsive */
@media (min-width: 768px) {
    .lp-header nav { display: block; }
}

@media (max-width: 768px) {
    .hero-container { flex-direction: column; text-align: center; padding-top: 40px; }
    .hero-text h1 { font-size: 2.2rem; }
    .hero-cta-group { align-items: center; }
    .hero-image { order: -1; width: 100%; }
    .testimonial blockquote { font-size: 1.3rem; }
    .form-wrapper { padding: 30px 20px; }
}