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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
}

.brand-color {
    color: #4A90E2;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background-color: #4A90E2;
    color: white;
}

.btn-primary:hover {
    background-color: #357ABD;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: #E74C3C;
    color: white;
    padding: 15px 30px;
    font-size: 16px;
}

.btn-secondary:hover {
    background-color: #C0392B;
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    color: #E74C3C;
    border: 2px solid #E74C3C;
}

.btn-outline:hover {
    background-color: #E74C3C;
    color: white;
}

.btn-full {
    width: 100%;
}

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

/* Menu hamburger nascosto su desktop */
.mobile-menu-toggle {
    display: none;
}

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

.logo-img {
    height: 60px;
    width: auto;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-item.active {
    background-color: #90EE90;
    border-radius: 5px;
}

.nav-item.active .nav-link {
    color: #333;
    padding: 8px 12px;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 14px;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #4A90E2;
}

.header-social {
    display: flex;
    gap: 15px;
    align-items: center;
}

.social-icon {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
}

.social-link:hover .social-icon {
    transform: scale(1.1);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: -1;
}

.hero-content {
    max-width: 800px;
    padding: 0 20px;
    z-index: 1;
}
.hero-title {
    font-size: 2.2rem;
    font-weight: 650;
    margin-bottom: 2rem;
    text-shadow: 2px 2px 6px rgba(0,0,0,0.7);
    line-height: 1.25;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    letter-spacing: -0.4px;
    font-family: 'Inter', sans-serif;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2.8rem;
    font-style: italic;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.6);
    font-weight: 400;
    line-height: 1.4;
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.94;
}

.hero-cta {
    margin-top: 2rem;
}

/* Why Choose Section */
.why-choose {
    padding: 100px 0;
    background-color: #f8f9fa;
}

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

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #333;
}

.section-description {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.advantage-item {
    background: white;
    padding: 40px 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.advantage-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.advantage-icon {
    margin-bottom: 20px;
}

.advantage-icon .icon {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.advantage-title {
    font-size: 1.3rem;
    color: #333;
    margin-bottom: 20px;
}

.advantage-content p {
    font-size: 0.95rem;
    color: #666;
    text-align: left;
    margin-bottom: 15px;
}

.advantage-content p:last-child {
    margin-bottom: 0;
}

/* Info Section */
.info-section {
    padding: 100px 0;
    background-color: white;
}

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

.info-img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.info-title {
    font-size: 2.2rem;
    margin-bottom: 30px;
    color: #333;
}

.info-description p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 20px;
}

.info-offer {
    margin-top: 40px;
    padding: 30px;
    background-color: #f8f9fa;
    border-radius: 10px;
}

.offer-title {
    font-size: 1.2rem;
    color: #4A90E2;
    margin-bottom: 20px;
}

/* Proposal Section */
.proposal-section {
    position: relative;
    padding: 100px 0;
    color: white;
    text-align: center;
    overflow: hidden;
}

.proposal-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.proposal-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.proposal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(44, 95, 138, 0.85);
    z-index: -1;
}

.proposal-content {
    max-width: 800px;
    margin: 0 auto;
}

.proposal-title {
    font-size: 2.5rem;
    margin-bottom: 40px;
}

.proposal-card {
    background: rgba(255, 255, 255, 0.95);
    color: #333;
    padding: 50px 40px;
    border-radius: 15px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

.proposal-subtitle {
    font-size: 1.8rem;
    color: #666;
    margin-bottom: 30px;
}

.proposal-price {
    margin: 30px 0;
}

.price-text {
    display: block;
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 10px;
}

.price-amount {
    display: block;
    font-size: 3rem;
    font-weight: 700;
    color: #4A90E2;
    margin: 20px 0;
}

.price-description {
    display: block;
    font-size: 1.2rem;
    color: #4A90E2;
    margin-bottom: 20px;
}

.proposal-description {
    font-size: 1.1rem;
    color: #666;
}

/* Contact Section */
.contact-section {
    padding: 100px 0;
    background-color: #f8f9fa;
}

.contact-content {
    max-width: 600px;
    margin: 0 auto;
}

.contact-header {
    text-align: center;
    margin-bottom: 50px;
}

.contact-icon {
    margin-bottom: 20px;
}

.email-icon {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.contact-title {
    font-size: 2.2rem;
    color: #333;
}

.contact-form {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

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

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

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

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: #4A90E2;
}

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

/* Footer */
.footer {
    background-color: #2C5F8A;
    color: white;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-title {
    font-size: 1.1rem;
    margin-bottom: 10px;
    font-weight: 400;
}

.company-name {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.company-address p {
    margin-bottom: 5px;
    font-size: 1rem;
}

.contact-info {
    margin-bottom: 30px;
}

.contact-label {
    font-size: 1rem;
    margin-bottom: 10px;
    font-weight: 400;
}

.contact-email {
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 500;
}

.contact-email:hover {
    color: #4A90E2;
}

.company-details {
    margin-top: 20px;
}

.company-info {
    margin-bottom: 8px;
    font-size: 0.95rem;
    color: rgba(255,255,255,0.9);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 30px;
    text-align: center;
}

.copyright {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.8);
}

.footer-link {
    color: white;
    text-decoration: none;
}

.footer-link:hover {
    color: #4A90E2;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    .nav-list {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    
    .hero-title {
        font-size: 1.9rem;
        line-height: 1.25;
        margin-bottom: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .advantages-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .info-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .proposal-title {
        font-size: 2rem;
    }
    
    .proposal-card {
        padding: 30px 20px;
    }
    
    .price-amount {
        font-size: 2.5rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .contact-form {
        padding: 30px 20px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    /* Header mobile compatto */
    .header-content {
        padding: 10px 0;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 10px;
    }
    
    .logo-img {
        height: 45px;
    }
    
    /* Menu Hamburger funzionante */
    .mobile-menu-toggle {
        display: flex;
        flex-direction: column;
        background: none;
        border: none;
        cursor: pointer;
        padding: 8px;
        position: relative;
        z-index: 1001;
    }
    
    .hamburger-line {
        width: 22px;
        height: 2px;
        background-color: #333;
        margin: 2px 0;
        transition: all 0.3s ease;
        border-radius: 1px;
    }
    
    .mobile-menu-toggle.active .hamburger-line:nth-child(1) {
        transform: rotate(45deg) translate(4px, 4px);
    }
    
    .mobile-menu-toggle.active .hamburger-line:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active .hamburger-line:nth-child(3) {
        transform: rotate(-45deg) translate(4px, -4px);
    }
    
    /* Menu mobile overlay */
    .nav-list {
        position: fixed;
        top: 0;
        left: -100%;
        width: 75%;
        height: 100vh;
        background-color: white;
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        padding: 70px 20px 20px;
        transition: left 0.3s ease;
        box-shadow: 2px 0 15px rgba(0,0,0,0.2);
        z-index: 1000;
        overflow-y: auto;
    }
    
    .nav-list.active {
        left: 0;
    }
    
    .nav-item {
        margin: 0;
    }
    
    .nav-link {
        font-size: 16px;
        padding: 15px 10px;
        display: block;
        border-bottom: 1px solid #f0f0f0;
        color: #333;
        text-decoration: none;
    }
    
    .nav-link:hover {
        background-color: #f8f9fa;
        color: #4A90E2;
    }
    
    /* Header CTA nascosto su mobile */
    .header-cta {
        display: none;
    }
    
    /* Hero section mobile ottimizzata */
    .hero {
        min-height: 85vh;
        padding: 20px 0 40px;
        margin-top: 65px;
    }
    
    .hero-content {
        padding: 20px 10px;
        text-align: center;
    }
    
    .hero-title {
        font-size: 1.6rem;
        line-height: 1.3;
        margin-bottom: 1.2rem;
        max-width: 100%;
        padding: 0 5px;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1.8rem;
        max-width: 100%;
        padding: 0 5px;
        line-height: 1.5;
    }
    
    .btn-secondary {
        padding: 12px 24px;
        font-size: 14px;
        margin-top: 10px;
    }
    
    /* Sezioni mobile ottimizzate */
    .section {
        padding: 40px 0;
    }
    
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }
    
    .advantages-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .advantage-item {
        padding: 25px 15px;
        text-align: center;
    }
    
    .advantage-icon {
        width: 50px;
        height: 50px;
        margin-bottom: 15px;
    }
    
    .info-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .proposal-card {
        padding: 20px 15px;
        margin: 0 10px;
    }
    
    .contact-form {
        padding: 20px 15px;
        margin: 0 10px;
    }
    
    .form-group {
        margin-bottom: 15px;
    }
    
    .form-input, .form-textarea {
        font-size: 16px; /* Previene zoom su iOS */
    }
}

/* Media query per schermi molto piccoli */
@media (max-width: 360px) {
    .hero-title {
        font-size: 1.6rem;
        line-height: 1.15;
        padding: 0 5px;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        padding: 0 5px;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .nav-list {
        gap: 15px;
    }
    
    .nav-link {
        font-size: 13px;
        padding: 6px 10px;
    }
}

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

/* Loading animation */
.loading {
    opacity: 0;
    animation: fadeIn 0.5s ease-in-out forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* reCAPTCHA styling */
.g-recaptcha {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

/* Accessibility improvements */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus styles */
a:focus,
button:focus,
input:focus,
textarea:focus {
    outline: 2px solid #4A90E2;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .header,
    .footer,
    .contact-section {
        display: none;
    }
    
    .hero,
    .proposal-section {
        background: white;
        color: black;
    }
    
    .hero-overlay,
    .proposal-overlay {
        display: none;
    }
}
