/* CSS Mobile Dedicato - Versione Funzionante */

@media (max-width: 768px) {
    /* Reset e base mobile */
    * {
        box-sizing: border-box;
    }
    
    body {
        font-size: 16px;
        line-height: 1.5;
    }
    
    .container {
        padding: 0 20px;
        max-width: 100%;
    }
    
    /* Header mobile compatto */
    .header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        background: white;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        z-index: 1000;
    }
    
    .header-content {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 12px 20px;
        min-height: 60px;
    }
    
    .logo-img {
        height: 70px;
        width: auto;
    }
    
    /* Menu hamburger visibile */
    .mobile-menu-toggle {
        display: flex !important;
        flex-direction: column;
        justify-content: center;
        width: 30px;
        height: 30px;
        background: none;
        border: none;
        cursor: pointer;
        padding: 0;
        z-index: 1001;
        position: relative;
    }
    
    .hamburger-line {
        width: 25px;
        height: 3px;
        background-color: #333;
        margin: 3px 0;
        transition: 0.3s;
        border-radius: 2px;
        display: block;
    }
    
    /* Animazione hamburger */
    .mobile-menu-toggle.active .hamburger-line:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    
    .mobile-menu-toggle.active .hamburger-line:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active .hamburger-line:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }
    
    /* Menu desktop nascosto su mobile */
    .nav-list {
        position: fixed;
        top: 0;
        left: -100%;
        width: 280px;
        height: 100vh;
        background: white;
        display: flex !important;
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        padding: 80px 30px 30px;
        transition: left 0.3s ease;
        box-shadow: 2px 0 15px rgba(0,0,0,0.2);
        z-index: 999;
        overflow-y: auto;
    }
    
    .nav-list.active {
        left: 0;
    }
    
    .nav-item {
        margin: 0;
        width: 100%;
    }
    
    .nav-link {
        display: block;
        padding: 15px 0;
        font-size: 16px;
        color: #333;
        text-decoration: none;
        border-bottom: 1px solid #eee;
        transition: color 0.3s;
    }
    
    .nav-link:hover {
        color: #4A90E2;
    }
    
    /* Header CTA nascosto su mobile */
    .header-cta {
        display: none;
    }
    
    /* Hero section mobile */
    .hero {
        margin-top: 60px;
        min-height: 80vh;
        padding: 30px 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .hero-content {
        text-align: center;
        padding: 20px;
        max-width: 100%;
    }
    
    .hero-title {
        font-size: 1.8rem !important;
        line-height: 1.3;
        margin-bottom: 1.5rem;
        font-weight: 600;
        text-shadow: 2px 2px 6px rgba(0,0,0,0.7);
    }
    
    .hero-subtitle {
        font-size: 1.1rem !important;
        margin-bottom: 2rem;
        font-style: italic;
        opacity: 0.9;
        line-height: 1.5;
    }
    
    .btn-secondary {
        padding: 14px 28px;
        font-size: 16px;
        border-radius: 5px;
        display: inline-block;
        margin-top: 10px;
    }
    
    /* Sezioni mobile */
    .section {
        padding: 50px 0;
    }
    
    .section-title {
        font-size: 2rem;
        text-align: center;
        margin-bottom: 2rem;
    }
    
    .advantages-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .advantage-item {
        text-align: center;
        padding: 30px 20px;
    }
    
    .advantage-icon {
        width: 60px;
        height: 60px;
        margin: 0 auto 20px;
    }
    
    .info-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .info-text {
        order: 2;
    }
    
    .info-image {
        order: 1;
    }
    
    .proposal-card {
        margin: 0 20px;
        padding: 30px 20px;
    }
    
    .contact-form {
        margin: 0 20px;
        padding: 30px 20px;
    }
    
    .form-group {
        margin-bottom: 20px;
    }
    
    .form-input,
    .form-textarea {
        font-size: 16px; /* Previene zoom su iOS */
        padding: 12px;
    }
    
    .btn-full {
        padding: 15px;
        font-size: 16px;
    }
}

/* Schermi molto piccoli */
@media (max-width: 360px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 1.6rem !important;
    }
    
    .hero-subtitle {
        font-size: 1rem !important;
    }
    
    .nav-list {
        width: 250px;
        padding: 70px 20px 20px;
    }
    
    .mobile-menu-toggle {
        width: 28px;
        height: 28px;
    }
    
    .hamburger-line {
        width: 22px;
        height: 2px;
    }
}
