/* ==============================================
   WEBTRUCK - MOBILE RESPONSIVE CSS
   ============================================== */

/* Mobile (smartphone) */
@media (max-width: 768px) {
    
    /* LANDING CONTAINER */
    .landing-container {
        flex-direction: column !important;
        height: auto !important;
        min-height: 100vh !important;
    }
    
    /* VIDEO SECTION - Aumenta altezza */
    .video-section {
        height: 45vh !important;
        min-height: 300px !important;
        flex: none !important;
    }
    
    .video-section video {
        object-fit: cover !important;
        height: 100% !important;
    }
    
    /* CONTENT SECTION */
    .content-section {
        flex: 1 !important;
        height: auto !important;
        min-height: 55vh !important;
        padding: 30px 20px !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: space-between !important;
    }
    
    /* LOGO CONTAINER - Centra meglio */
    .logo-container {
        margin-bottom: 25px !important;
        margin-top: 10px !important;
        text-align: center !important;
    }
    
    .logo-container img {
        max-width: 110px !important;
        height: auto !important;
        margin: 0 auto 15px !important;
        display: block !important;
    }
    
    .logo-container h1 {
        font-size: 1.8rem !important;
        margin: 0 !important;
    }
    
    /* WELCOME TEXT */
    .welcome-text {
        margin-bottom: 25px !important;
        padding: 0 10px !important;
    }
    
    .welcome-text h2 {
        font-size: 1.5rem !important;
        line-height: 1.3 !important;
        margin-bottom: 15px !important;
    }
    
    .welcome-text p {
        font-size: 0.95rem !important;
        line-height: 1.5 !important;
    }
    
    /* BOTTONE ACCEDI - Alza e ingrandisce */
    .btn-accedi {
        width: calc(100% - 40px) !important;
        max-width: 350px !important;
        margin: 0 auto 30px !important;
        padding: 16px 30px !important;
        font-size: 1.1rem !important;
        display: block !important;
    }
    
    /* MODAL OVERLAY */
    .modal-overlay {
        padding: 15px !important;
    }
    
    /* MODAL CONTENT */
    .modal-content {
        width: 95% !important;
        max-width: 95% !important;
        padding: 25px 20px !important;
        max-height: 90vh !important;
        overflow-y: auto !important;
    }
    
    /* MODAL HEADER */
    .modal-header {
        margin-bottom: 25px !important;
    }
    
    .modal-header img {
        max-width: 90px !important;
        margin-bottom: 15px !important;
    }
    
    .modal-header h3 {
        font-size: 1.3rem !important;
    }
    
    /* CLOSE BUTTON */
    .modal-close {
        top: 10px !important;
        right: 10px !important;
        font-size: 1.8rem !important;
        padding: 5px 10px !important;
    }
    
    /* FORM GROUPS */
    .form-group {
        margin-bottom: 18px !important;
    }
    
    .form-group label {
        font-size: 0.95rem !important;
        margin-bottom: 6px !important;
    }
    
    .form-group input {
        font-size: 16px !important;
        padding: 13px 15px !important;
        height: 48px !important;
    }
    
    /* REMEMBER GROUP */
    .remember-group {
        margin-bottom: 18px !important;
        font-size: 0.95rem !important;
    }
    
    /* BUTTON LOGIN */
    .btn-login {
        padding: 14px !important;
        font-size: 1.05rem !important;
        height: 50px !important;
    }
    
    /* DEMO CREDENTIALS */
    .demo-credentials {
        margin-top: 18px !important;
        padding-top: 18px !important;
    }
    
    .demo-credentials p {
        font-size: 0.85rem !important;
    }
    
    /* PASSWORD DIMENTICATA */
    .content-section a,
    .modal-content a {
        font-size: 0.9rem !important;
    }
}

/* Tablet portrait */
@media (min-width: 769px) and (max-width: 991px) {
    .video-section {
        height: 40vh !important;
    }
    
    .content-section {
        padding: 40px !important;
    }
    
    .modal-content {
        width: 80% !important;
        max-width: 500px !important;
    }
}

/* Fix per iPhone (landscape) */
@media (max-width: 768px) and (orientation: landscape) {
    .video-section {
        height: 100vh !important;
        position: absolute !important;
        width: 100% !important;
        z-index: 1 !important;
    }
    
    .content-section {
        position: relative !important;
        z-index: 2 !important;
        background: rgba(244, 246, 249, 0.95) !important;
    }
}