/* Reset e base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #1a1a1a;
    background-color: #ffffff;
    font-weight: 400;
}

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

/* Typography moderna e pulita */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    color: #000000;
    line-height: 1.1;
}

h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    color: #000000;
    font-weight: 600;
    line-height: 1.2;
}

h3 {
    font-size: 1.25rem;
    color: #000000;
    font-weight: 600;
}

p {
    margin-bottom: 1.5rem;
    font-size: 1rem;
    line-height: 1.7;
    color: #4a4a4a;
}

a {
    color: #000000;
    text-decoration: none;
    transition: all 0.2s ease;
}

a:hover {
    color: #666666;
}

/* Header */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    padding: 1.25rem 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo {
    height: 40px;
    width: 40px;
}

.brand-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: #000000;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-link {
    color: #000000;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s ease;
    position: relative;
}

.nav-link:hover {
    color: #666666;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: #000000;
    transition: width 0.2s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-cta {
    background: #000000;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.nav-cta:hover {
    background: #333333;
    color: white;
}

/* Hero Section */
.hero {
    background: #ffffff;
    padding: 140px 0 100px;
    margin-top: 80px;
}

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

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1.5rem;
    line-height: 1.1;
    color: #000000;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: clamp(1.2rem, 2.5vw, 1.5rem);
    font-weight: 500;
    margin-bottom: 2rem;
    color: #666666;
    line-height: 1.4;
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    color: #4a4a4a;
    line-height: 1.7;
    max-width: 500px;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 6px;
    font-weight: 500;
    text-align: center;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    text-decoration: none;
    font-size: 1rem;
    line-height: 1;
}

.btn-primary {
    background: #000000;
    color: white;
    border: 1px solid #000000;
}

.btn-primary:hover {
    background: #333333;
    color: white;
}

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

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

.btn-large {
    padding: 1.25rem 2.5rem;
    font-size: 1.2rem;
}

/* Button variants per sezioni scure */
.cta-section .btn-primary {
    background: white;
    color: #000000;
    border: 1px solid white;
}

.cta-section .btn-primary:hover {
    background: #f5f5f5;
    color: #000000;
}

.cta-section .btn-secondary {
    background: white;
    color: #000000;
    border: 1px solid white;
}

.cta-section .btn-secondary:hover {
    background: #f5f5f5;
    color: #000000;
}

.btn-full {
    width: 100%;
}

/* Introduction Section */
.intro {
    padding: 100px 0;
    background: #fafafa;
}

.intro-text {
    font-size: 1.2rem;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    color: #4a4a4a;
    line-height: 1.8;
}

/* Services Section */
.services {
    padding: 100px 0;
    background: white;
}

.section-title {
    text-align: center;
    margin-bottom: 5rem;
    font-size: clamp(2rem, 4vw, 2.5rem);
    color: #000000;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.service-card {
    background: white;
    padding: 2.5rem;
    border-radius: 8px;
    border: 1px solid #e5e5e5;
    transition: all 0.2s ease;
}

.service-card:hover {
    border-color: #d4d4d4;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.service-icon {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    opacity: 0.8;
}

.service-title {
    color: #000000;
    margin-bottom: 1rem;
    font-size: 1.25rem;
    font-weight: 600;
}

.service-description {
    color: #666666;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Why Us Section */
.why-us {
    padding: 100px 0;
    background: #fafafa;
}

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

.feature {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid #e5e5e5;
    transition: all 0.2s ease;
}

.feature:hover {
    border-color: #d4d4d4;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    opacity: 0.8;
}

.feature-title {
    color: #000000;
    margin-bottom: 1rem;
    font-size: 1.25rem;
    font-weight: 600;
}

.feature-description {
    color: #666666;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Coverage Section */
.coverage {
    padding: 100px 0;
    background: white;
}

.coverage-intro {
    text-align: center;
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto 4rem;
    color: #666666;
}

.coverage-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
}

.coverage-area {
    background: #fafafa;
    padding: 2.5rem;
    border-radius: 8px;
    border: 1px solid #e5e5e5;
}

.area-title {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: #000000;
    font-weight: 600;
}

.area-list {
    list-style: none;
}

.area-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid #e5e5e5;
    color: #666666;
    font-size: 0.95rem;
}

.area-list li:last-child {
    border-bottom: none;
}

.area-list li:before {
    content: "•";
    color: #000000;
    font-weight: bold;
    margin-right: 0.75rem;
}

/* How It Works Section */
.how-it-works {
    padding: 100px 0;
    background: #fafafa;
}

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

.step {
    text-align: center;
    padding: 2rem;
}

.step-number {
    width: 50px;
    height: 50px;
    background: #000000;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 auto 1.5rem;
}

.step-title {
    color: #000000;
    margin-bottom: 1rem;
    font-weight: 600;
}

.step-description {
    color: #666666;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* CTA Section */
.cta-section {
    padding: 100px 0;
    background: #000000;
    color: white;
    text-align: center;
}

.cta-title {
    font-size: clamp(2rem, 4vw, 2.5rem);
    margin-bottom: 1.5rem;
    color: white;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.cta-description {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 2.5rem;
    color: rgba(255,255,255,0.8);
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Contact Section */
.contact {
    padding: 100px 0;
    background: white;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.contact-icon {
    font-size: 2rem;
    width: 50px;
    text-align: center;
}

.contact-details h3 {
    color: #2d3748;
    margin-bottom: 0.5rem;
}

.contact-details p {
    color: #4a5568;
    margin-bottom: 0.25rem;
}

.contact-note {
    font-size: 0.9rem;
    color: #718096;
    font-style: italic;
}

.contact-form {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.contact-form h3 {
    margin-bottom: 2rem;
    color: #2d3748;
}

.quote-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.quote-form input,
.quote-form select,
.quote-form textarea {
    padding: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.quote-form input:focus,
.quote-form select:focus,
.quote-form textarea:focus {
    outline: none;
    border-color: #667eea;
}

.quote-form textarea {
    resize: vertical;
    min-height: 120px;
}

/* Footer */
.footer {
    background: #000000;
    color: white;
    padding: 60px 0 20px;
}

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

.footer-section h4 {
    color: white;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-section p,
.footer-section li {
    color: #999999;
    line-height: 1.6;
    font-size: 0.95rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    padding: 0.25rem 0;
}

.footer-section a {
    color: #999999;
    transition: color 0.2s ease;
}

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

.footer-bottom {
    border-top: 1px solid #333333;
    padding-top: 2rem;
    text-align: center;
    color: #999999;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .hero .container {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .nav-links {
        display: none;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .coverage-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .steps-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .cta-title {
        font-size: 1.8rem;
    }
    
    .service-card,
    .contact-item,
    .contact-form {
        padding: 1.5rem;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-card,
.feature,
.step {
    animation: fadeInUp 0.6s ease-out;
}

/* Hover effects for interactive elements */
.contact-item:hover {
    transform: translateY(-2px);
    transition: transform 0.3s ease;
}

/* Focus styles for accessibility */
.btn:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* WhatsApp Button */
.whatsapp-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #000000;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    z-index: 1000;
    text-decoration: none;
}

.whatsapp-btn:hover {
    background: #333333;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    color: white;
}

.whatsapp-btn svg {
    width: 28px;
    height: 28px;
}

@media (max-width: 768px) {
    .whatsapp-btn {
        bottom: 20px;
        right: 20px;
        width: 55px;
        height: 55px;
    }
    
    .whatsapp-btn svg {
        width: 24px;
        height: 24px;
    }
}

/* Print styles */
@media print {
    .header,
    .footer,
    .cta-section,
    .whatsapp-btn {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    .hero {
        background: none;
        color: black;
    }
}
