/*
Theme Name: AssicuraTempo
Description: Tema WordPress professionale per landing page assicurazioni temporanee
Version: 1.0
Author: MiniMax Agent
*/

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800;900&display=swap');

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

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

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

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-4 { margin-bottom: 1rem; }
.mb-8 { margin-bottom: 2rem; }
.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 16px;
}

.btn-primary {
    background: #ff6600;
    color: white;
    border: 2px solid #ff6600;
}

.btn-primary:hover {
    background: #e55a00;
    color: white;
    text-decoration: none;
}

.btn-secondary {
    background: transparent;
    color: #1e3a8a;
    border: 2px solid #1e3a8a;
}

.btn-secondary:hover {
    background: #1e3a8a;
    color: white;
}

.btn-pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 102, 0, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(255, 102, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 102, 0, 0); }
}

/* Icons */
.icon-phone::before { content: "📞"; }
.icon-shield::before { content: "🛡️"; }
.icon-clock::before { content: "⏰"; }
.icon-users::before { content: "👥"; }
.icon-check-circle::before { content: "✅"; }
.icon-car::before { content: "🚗"; }
.icon-bike::before { content: "🏍️"; }
.icon-plane::before { content: "✈️"; }
.icon-calendar::before { content: "📅"; }
.icon-mail::before { content: "✉️"; }
.icon-chevron-down::before { content: "⬇️"; }

/* Header */
.site-header {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
}

.site-logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #1e3a8a;
    font-size: 24px;
    font-weight: 700;
}

.site-logo i {
    margin-right: 10px;
    font-size: 28px;
}

.main-navigation ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-navigation li {
    margin: 0 20px;
}

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

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

.header-phone {
    padding: 10px 20px;
    font-size: 14px;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 50%, #60a5fa 100%);
    color: white;
    padding: 80px 0;
    min-height: 600px;
    display: flex;
    align-items: center;
}

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

.trust-signals {
    margin-bottom: 30px;
}

.trust-badge {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    margin-right: 10px;
    display: inline-block;
}

.hero-title {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 20px;
    margin-bottom: 40px;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.hero-buttons .btn {
    padding: 16px 32px;
    font-size: 18px;
}

.hero-image img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

/* Sections */
.section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #1e3a8a;
}

.section-header p {
    font-size: 20px;
    color: #6b7280;
}

/* Benefits Section */
.benefits-section {
    background: #f9fafb;
}

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

.benefit-card {
    background: white;
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.benefit-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 36px;
}

.benefit-icon.orange { background: #ff6600; color: white; }
.benefit-icon.blue { background: #1e3a8a; color: white; }
.benefit-icon.green { background: #10b981; color: white; }
.benefit-icon.purple { background: #8b5cf6; color: white; }

.benefit-card h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #1f2937;
}

.benefit-card p {
    color: #6b7280;
    line-height: 1.6;
}

/* Products Section */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.product-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.product-icon {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 64px;
    color: white;
}

.product-icon.blue { background: linear-gradient(135deg, #3b82f6, #1e3a8a); }
.product-icon.red { background: linear-gradient(135deg, #ef4444, #dc2626); }
.product-icon.green { background: linear-gradient(135deg, #10b981, #059669); }
.product-icon.purple { background: linear-gradient(135deg, #8b5cf6, #7c3aed); }

.product-content {
    padding: 30px;
}

.product-content h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #1f2937;
}

.product-content p {
    color: #6b7280;
    margin-bottom: 20px;
    line-height: 1.6;
}

.btn-blue { background: #1e3a8a; color: white; }
.btn-red { background: #dc2626; color: white; }
.btn-green { background: #059669; color: white; }
.btn-purple { background: #7c3aed; color: white; }

/* Process Section */
.process-section {
    background: #f9fafb;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 50px;
    position: relative;
}

.process-step {
    text-align: center;
    position: relative;
}

.step-number {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 700;
    color: white;
    margin: 0 auto 20px;
}

.step-number.orange { background: #ff6600; }
.step-number.blue { background: #1e3a8a; }
.step-number.green { background: #10b981; }

.process-step h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #1f2937;
}

.process-step p {
    color: #6b7280;
    line-height: 1.6;
}

/* Testimonials Section */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.stars {
    margin-bottom: 20px;
}

.star {
    color: #fbbf24;
    font-size: 20px;
    margin-right: 5px;
}

.star.filled {
    color: #fbbf24;
}

.testimonial-card p {
    font-style: italic;
    color: #6b7280;
    margin-bottom: 20px;
    line-height: 1.6;
}

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

.customer-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: white;
    margin-right: 15px;
}

.customer-avatar.blue { background: #3b82f6; }
.customer-avatar.pink { background: #ec4899; }
.customer-avatar.green { background: #10b981; }

.customer-info strong {
    display: block;
    color: #1f2937;
}

.customer-info span {
    color: #6b7280;
    font-size: 14px;
}

/* FAQ Section */
.faq-section {
    background: #f9fafb;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.faq-question {
    width: 100%;
    padding: 25px;
    background: none;
    border: none;
    text-align: left;
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s ease;
}

.faq-question:hover {
    background: #f9fafb;
}

.faq-answer {
    padding: 0 25px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-answer.active {
    max-height: 200px;
    padding: 0 25px 25px;
}

.faq-answer p {
    color: #6b7280;
    line-height: 1.6;
}

/* Final CTA Section */
.final-cta-section {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
    color: white;
    padding: 80px 0;
}

.cta-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 20px;
    margin-bottom: 40px;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.cta-buttons .btn {
    padding: 16px 32px;
    font-size: 18px;
}

/* Footer */
.site-footer {
    background: #1f2937;
    color: white;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    color: white;
}

.footer-logo {
    display: flex;
    align-items: center;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
}

.footer-logo i {
    margin-right: 10px;
    color: #3b82f6;
}

.footer-description {
    color: #9ca3af;
    margin-bottom: 20px;
    line-height: 1.6;
}

.trust-badges .trust-badge {
    display: inline-block;
    margin-right: 10px;
    margin-bottom: 5px;
    font-size: 12px;
    padding: 5px 12px;
}

.contact-info .contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info .contact-item:hover {
    color: #ff6600;
}

.contact-info i {
    margin-right: 10px;
    width: 20px;
}

.footer-menu {
    list-style: none;
}

.footer-menu li {
    margin-bottom: 10px;
}

.footer-menu a {
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 30px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 30px;
    align-items: center;
}

.footer-legal {
    color: #9ca3af;
    font-size: 14px;
    line-height: 1.5;
}

.footer-badges {
    display: flex;
    gap: 15px;
}

.security-badge {
    height: 50px;
    width: auto;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 40px;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    position: relative;
}

.close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #9ca3af;
}

.close:hover {
    color: #333;
}

.modal h3 {
    margin-bottom: 30px;
    color: #1f2937;
    font-size: 24px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #374151;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3b82f6;
}

/* Mobile Sticky CTA */
.mobile-sticky-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ff6600;
    padding: 15px;
    z-index: 1000;
    display: none;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
}

.mobile-cta {
    width: 100%;
    padding: 15px;
    font-size: 18px;
    font-weight: 700;
    background: transparent;
    border: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    .main-navigation {
        display: none;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .section {
        padding: 50px 0;
    }
    
    .section-header h2 {
        font-size: 28px;
    }
    
    .benefits-grid,
    .products-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .process-steps {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-bottom {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .mobile-sticky-cta {
        display: block;
    }
    
    body {
        padding-bottom: 80px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-section {
        padding: 50px 0;
    }
    
    .hero-title {
        font-size: 24px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .section-header h2 {
        font-size: 24px;
    }
    
    .benefit-card,
    .product-content,
    .testimonial-card {
        padding: 20px;
    }
}

/* FIX: Migliora la visibilità del bottone secondario nella Hero Section */
.hero-section .btn-secondary {
    color: #ffffff; /* Testo bianco */
    border-color: #ffffff; /* Bordo bianco */
}

.hero-section .btn-secondary:hover {
    background: #ffffff; /* Sfondo bianco al passaggio del mouse */
    color: #1e3a8a; /* Testo blu scuro al passaggio del mouse */
}