/*
Theme Name: VeloceAssicura Landing Page
Description: Tema WordPress completo per landing page assicurazioni auto e moto con design professionale, form lead integrato e ottimizzazione SEO per Google Ads. Include cookie banner GDPR e pagina ringraziamenti.
Version: 1.0.2
Author: MiniMax Agent
Text Domain: veloceassicura
Tags: insurance, landing-page, lead-generation, responsive, seo-optimized
*/

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

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    line-height: 1.6;
    color: #1f2937;
    background: #ffffff;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.site-header {
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: #1e3a8a;
    text-decoration: none;
}
.site-branding .custom-logo {
    max-height: 50px;
    width: auto;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.main-navigation a {
    text-decoration: none;
    color: #374151;
    font-weight: 500;
    transition: color 0.3s ease;
}

.main-navigation a:hover {
    color: #1e3a8a;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.phone-number {
    color: #1e3a8a;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
}

.cta-button {
    background: #f97316;
    color: white !important;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease;
}
.cta-button:hover {
    background: #ea580c;
}

/* Hero Section */
.hero {
    background: linear-gradient(95deg, #1e3a8a 55%, #f97316 100%);
    color: white;
    padding: 5rem 0;
}

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

.hero-text-content h1 {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.hero-text-content .subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 2.5rem;
}

.hero-features {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.hero-feature-box {
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 1.2rem;
    border-radius: 12px;
    flex: 1;
}

.hero-feature-box strong {
    display: block;
    font-size: 1rem;
    font-weight: 600;
}

.hero-feature-box span {
    font-size: 0.85rem;
    opacity: 0.8;
}

.hero-extra-info {
    display: flex;
    gap: 1.5rem;
    font-size: 0.9rem;
    opacity: 0.8;
}


/* Form Styles */
.quote-form {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    color: #1f2937;
}

.form-title {
    text-align: center;
    color: #1e3a8a;
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.form-subtitle {
    text-align: center;
    font-size: 0.9rem;
    color: #6b7280;
    margin-bottom: 2rem;
}

.form-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-group {
    flex: 1;
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: #374151;
}

.form-group input[type="text"],
.form-group input[type="tel"],
.form-group select {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.radio-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 0.5rem;
}

.radio-label {
    display: block;
    padding: 0.75rem;
    border-radius: 6px;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.3s ease, color 0.3s ease;
}
.radio-label input[type="radio"] {
    display: none;
}
.radio-label span {
    font-size: 0.9rem;
}
.radio-label:has(input[type="radio"]:checked) {
    background-color: #dbeafe;
    color: #1e3a8a;
}
.radio-label:has(input[type="radio"]:checked) span {
    font-weight: 600;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 1.5rem 0;
    font-size: 0.8rem;
}
.checkbox-group label {
    color: #6b7280;
}
.checkbox-group a {
    color: #3b82f6;
    text-decoration: none;
}
.checkbox-group a:hover {
    text-decoration: underline;
}

.submit-btn {
    background: #f97316;
    color: white;
    padding: 1rem;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.submit-btn:hover {
    background: #ea580c;
    transform: translateY(-2px);
}

.form-footer-note {
    text-align: center;
    font-size: 0.75rem;
    color: #9ca3af;
    margin-top: 1rem;
}

/* Features Section */
.features {
    padding: 5rem 0;
    background: #f8fafc;
}

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

.feature-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.07);
    text-align: center;
}

.feature-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    object-fit: cover;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #1e3a8a;
}

/* Testimonials */
.testimonials {
    padding: 5rem 0;
    background: white;
}

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

.testimonial-card {
    background: #f8fafc;
    padding: 2rem;
    border-radius: 15px;
    position: relative;
    border: 1px solid #e5e7eb;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

/* Footer & Cookie Banner */
footer {
    background: #1f2937;
    color: white;
    padding: 2rem 0;
    text-align: center;
}
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #1f2937;
    color: white;
    padding: 1rem;
    z-index: 1000;
    display: none;
}
.cookie-banner.show { display: block; }
.cookie-content { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.cookie-btn { background: #3b82f6; color: white; border: none; padding: 0.5rem 1rem; border-radius: 5px; cursor: pointer; }


/* Responsive Design */
@media (max-width: 992px) {
    .main-navigation, .phone-number {
        display: none; /* Semplificazione per tablet/mobile */
    }
    .header-content {
        justify-content: space-between;
    }
    .header-actions {
        margin-left: auto;
    }
    .hero-grid {
        grid-template-columns: 1fr; /* Una colonna su tablet */
        text-align: center;
    }
    .hero-text-content {
        text-align: center;
    }
    .hero-features, .hero-extra-info {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
        height: auto;
        padding: 1rem;
    }
    .hero h1 {
        font-size: 2.5rem;
    }
    .form-row {
        flex-direction: column;
        gap: 0;
        margin-bottom: 0;
    }
    .cookie-content {
        flex-direction: column;
    }
}

/* Utility Classes */
.text-center { text-align: center; }
.mb-4 { margin-bottom: 2rem; }
.error { color: #ef4444; background: #fee2e2; padding: 0.8rem; border-radius: 8px; text-align: center; margin-bottom: 1rem; }
.success { color: #10b981; margin-bottom: 1rem; }
/* =============================================== */
/* STILI PER LA PAGINA DI RINGRAZIAMENTO */
/* =============================================== */

.thank-you-page .container {
    max-width: 900px; /* Riduci la larghezza per una migliore leggibilità */
}

.thank-you-page {
    padding: 4rem 0;
    text-align: center;
    background-color: #f8fafc; /* Aggiungi uno sfondo leggero */
}

.success-icon {
    font-size: 4rem;
    color: #10b981; /* Verde successo */
    line-height: 1;
    margin-bottom: 1.5rem;
    border: 5px solid #10b981;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
}

.success-content h1 {
    font-size: 2.8rem;
    color: #1e3a8a;
    margin-bottom: 1rem;
}

.success-content .lead {
    font-size: 1.25rem;
    margin-bottom: 3rem;
    color: #6b7280;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.success-content h2 {
    font-size: 2rem;
    color: #1e3a8a;
    margin-top: 3rem;
    margin-bottom: 2rem;
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
    text-align: left;
}

.step {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.07);
    border: 1px solid #e5e7eb;
}

.step-number {
    background: #3b82f6;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.step h3 {
    font-size: 1.2rem;
    color: #1e3a8a;
    margin-bottom: 0.5rem;
}

.contact-info h3 {
    font-size: 1.5rem;
    color: #1e3a8a;
    margin-bottom: 1rem;
}

.contact-methods {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 2rem;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: white;
    color: #1e3a8a;
    padding: 1rem 2rem;
    border-radius: 10px;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid #e5e7eb;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.contact-method:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.contact-method .icon {
    font-size: 1.5rem;
}
.contact-method .details {
    text-align: left;
}
.contact-method .details strong {
    display: block;
}
.contact-method .details span {
    font-size: 0.9rem;
    color: #6b7280;
}

.back-home {
    margin-top: 3rem;
}

.back-home a {
    display: inline-block;
    text-decoration: none;
    background-color: #f97316;
    color: white !important;
    font-weight: 600;
    padding: 0.8rem 2.5rem;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.back-home a:hover {
    background-color: #ea580c;
}

.social-proof {
    margin-top: 3rem;
    color: #6b7280;
}