
        :root {
            --primary: #2F6BFF;
            --primary-dark: #1E54D6;
            --primary-light: #E8F1FF;
            --text-dark: #212121;
            --text-medium: #444;
            --text-light: #666;
            --background: #FFFFFF;
            --background-light: #EEF4FF;
            --background-card: #FFFFFF;
            --border: #E0E0E0;
            --shadow: rgba(35, 125, 199, 0.08);
            --shadow-hover: rgba(47, 107, 255, 0.15);
            --border-radius: 16px;
            --transition: all 0.3s ease;
            --section-spacing: 100px;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        html, body {
            margin: 0;
            padding: 0;
        }

        body {
            font-family: 'Poppins', sans-serif;
            color: var(--text-medium);
            background-color: var(--background-light);
            line-height: 1.6;
            overflow-x: hidden;
        }

        h1, h2, h3, h4, h5 {
            font-weight: 700;
            line-height: 1.2;
            color: var(--text-dark);
        }

        h1 {
            font-size: 3.5rem;
            margin-bottom: 20px;
        }

        h2 {
            font-size: 2.5rem;
            margin-bottom: 2rem;
            position: relative;
        }

        h2:after {
            content: '';
            position: absolute;
            bottom: -15px;
            left: 0;
            width: 80px;
            height: 4px;
            background: var(--primary);
            border-radius: 2px;
        }

        h3 {
            font-size: 1.8rem;
            margin-bottom: 1.5rem;
        }

        h4 {
            font-size: 1.5rem;
            margin-bottom: 1rem;
        }

        p {
            margin-bottom: 1.5rem;
            color: var(--text-medium);
        }

        .container {
            width: 90%;
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 15px;
        }

        .btn {
            display: inline-block;
            padding: 15px 35px;
            border-radius: 50px;
            font-weight: 600;
            text-decoration: none;
            text-align: center;
            cursor: pointer;
            transition: var(--transition);
            border: none;
            font-size: 1.1rem;
        }

        .btn-primary {
            display: inline-block;
            padding: 12px 25px;
            border-radius: 50px;
            font-weight: 600;
            text-decoration: none;
            text-align: center;
            cursor: pointer;
            transition: var(--transition);
            border: 2px solid var(--primary);
            font-size: 1.0rem;
            background: var(--primary);
            color: var(--background);
        }
        

        

        .btn-register {
            display: inline-block;
            padding: 12px 25px;
            border-radius: 50px;
            font-weight: 600;
            text-decoration: none;
            text-align: center;
            cursor: pointer;
            transition: var(--transition);
            border: 2px solid var(--primary);
            font-size: 1.0rem;
            background: var(--primary);
            color: var(--background);
        }

        

        .btn-checkout {
            display: inline-block;
            padding: 12px 25px;
            border-radius: 50px;
            font-weight: 600;
            text-decoration: none;
            text-align: center;
            cursor: pointer;
            transition: var(--transition);
            border: 2px solid var(--primary);
            font-size: 1.0rem;
            background: var(--primary);
            color: var(--background);
        }

        

        .btn-secondary {
            background: transparent;
            color: var(--text-dark);
            border: 2px solid var(--text-dark);
        }

        

        .section {
            padding: var(--section-spacing) 0;
        }

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

        .section-header h2:after {
            left: 50%;
            transform: translateX(-50%);
        }

        .section-header p {
            max-width: 700px;
            margin: 0 auto;
        }

        /* HEADER MODIFICATO */
        .navbar {
            position: sticky;
            top: 0;
            left: 0;
            width: 100%;
            background: var(--background);
            box-shadow: 0 0.25rem 1.25rem rgba(0, 0, 0, 0.08); /* 0 4px 20px */
            z-index: 1000;
            padding: 0;
        }

        .navbar .container {
            display: flex;
            justify-content: space-between;
            align-items: center;
            width: 100%;
            min-height: 70px;
            margin-top: 0;
            margin-bottom: 0;
        }
        
        .logo {
            display: flex;
            align-items: center;
            text-decoration: none;
            transition: var(--transition);
        }

        

        .logo-icon {
            width: 40px;
            height: 40px;
            background: var(--primary);
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--background);
            transform: rotate(45deg);
            transition: var(--transition);
        }

        .logo-icon i {
            transform: rotate(-45deg);
            font-size: 1.2rem;
        }

        

        .logo-text {
            font-size: 1.5rem;
            font-weight: 800;
            color: var(--text-dark);
            margin-left: 10px;
        }

        .logo-text span {
            color: var(--primary);
        }

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

        .nav-links li {
            position: relative;
        }

        .nav-links a {
            text-decoration: none;
            color: var(--text-medium);
            font-weight: 500;
            transition: var(--transition);
            display: flex;
            align-items: center;
            padding: 10px 0;
            font-size: 1.05rem;
        }

        .nav-links a i {
            margin-right: 8px;
            font-size: 1rem;
            transition: var(--transition);
        }


        .nav-links a:after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 0;
            height: 3px;
            background: var(--primary);
            transition: var(--transition);
            border-radius: 3px;
        }

        

        .nav-links .highlighted {
            color: var(--primary);
            font-weight: 600;
        }
        
        .nav-links .highlighted i {
            color: var(--primary);
        }
        
        .nav-links .highlighted:after {
            background: var(--primary);
            width: 100%;
        }

        .nav-buttons {
            display: flex;
            align-items: center;
            gap: 15px;
        }

        .btn-login {
            display: inline-block;
            padding: 12px 25px;
            border-radius: 50px;
            font-weight: 600;
            text-decoration: none;
            text-align: center;
            cursor: pointer;
            transition: var(--transition);
            border: 2px solid var(--primary);
            font-size: 1.0rem;
            background: transparent;
            color: var(--primary);
        }

        

        .hamburger {
            display: none;
            cursor: pointer;
            background: none;
            border: none;
            font-size: 1.8rem;
            color: var(--primary);
        }

        /* MOBILE MENU */
        .mobile-menu {
            position: fixed;
            top: 70px;
            left: 0;
            width: 100%;
            background: var(--background);
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
            z-index: 999;
            transform: translateY(-150%);
            transition: transform 0.4s ease;
            padding: 20px;
            display: none;
        }

        .mobile-menu.active {
            transform: translateY(0);
        }

        .mobile-links {
            list-style: none;
        }

        .mobile-links li {
            margin-bottom: 15px;
        }

        .mobile-links a {
            display: flex;
            align-items: center;
            padding: 12px 15px;
            border-radius: 10px;
            text-decoration: none;
            color: var(--text-dark);
            font-weight: 500;
            transition: var(--transition);
            font-size: 1.1rem;
        }

        

        .mobile-links a i {
            margin-right: 12px;
            font-size: 1.2rem;
            width: 24px;
            text-align: center;
        }

        .mobile-links .highlighted {
            color: var(--primary);
            font-weight: 600;
        }
        
        .mobile-links .highlighted i {
            color: var(--primary);
        }
        
        .mobile-auth-buttons {
            display: flex !important;
            flex-direction: column !important;
            gap: 0.9375rem !important; /* 15px */
            margin-top: 1.25rem !important; /* 20px */
            width: 100% !important;
            box-sizing: border-box !important;
        }

        .mobile-login-btn,
        .mobile-register-btn {
            display: block;
            width: 100%;
            padding: 14px;
            text-align: center;
            font-weight: 600;
            text-decoration: none;
            border-radius: 50px;
            transition: var(--transition);
            font-size: 1.05rem;
        }

        .mobile-login-btn {
            background: transparent;
            color: var(--primary);
            border: 2px solid var(--primary);
        }

        

        .mobile-register-btn {
            background: var(--primary);
            color: white;
            box-shadow: 0 4px 15px rgba(47, 107, 255, 0.2);
        }

        

        /* Contenuto Contattaci */
.contact-container {
    max-width: 1200px;
    margin: 5rem auto;
    padding: 0 2rem;
}

/* Disabilita animazioni/transizioni d'ingresso per i contenitori principali */
.contact-container,
.contact-container * {
    animation: none !important;
    transition: none !important;
}

        .contact-hero {
            background: linear-gradient(135deg, #2F6BFF 0%, #1E54D6 100%);
            border-radius: 16px;
            padding: 3rem 2.5rem;
            color: white;
            text-align: center;
            margin-bottom: 2.5rem;
            position: relative;
            overflow: hidden;
            box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
        }

        .contact-hero h1 {
            font-size: 2.5rem;
            margin-bottom: 1rem;
            color: white;
        }

        .contact-hero p {
            font-size: 1.2rem;
            opacity: 0.9;
            max-width: 700px;
            margin: 0 auto 2rem;
            color: rgba(255, 255, 255, 0.9);
        }

        .contact-cards-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
            gap: 1.8rem;
            margin-bottom: 2.5rem;
        }

        .contact-card {
            background: var(--background-card);
            border-radius: 16px;
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
            padding: 2.5rem;
            transition: var(--transition);
            border: 1px solid var(--border);
            position: relative;
            display: flex;
            flex-direction: column;
        }

        

        .contact-card::after {
            content: "";
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 4px;
            background: linear-gradient(90deg, #2F6BFF, #1E54D6);
            border-radius: 16px 16px 0 0;
            transform: scaleY(0);
            transform-origin: top;
            transition: var(--transition);
        }

        

        .card-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 1.5rem;
        }

        .card-title {
            font-size: 1.5rem;
            font-weight: 600;
            color: var(--primary);
            display: flex;
            align-items: center;
            gap: 0.8rem;
        }

        .card-title i {
            color: #2F6BFF;
            font-size: 1.4rem;
        }

        .card-icon {
            width: 50px;
            height: 50px;
            border-radius: 10px;
            background: var(--primary-light);
            color: var(--primary);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.5rem;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
        }

        /* Form Styles */
        .form-group {
            margin-bottom: 1.8rem;
        }

        label {
            display: block;
            margin-bottom: 0.6rem;
            font-weight: 500;
            color: var(--text-dark);
            font-size: 1rem;
        }

        .input-field, textarea, select {
            width: 100%;
            padding: 1rem 1.2rem;
            border: 1px solid #ddd;
            border-radius: 12px;
            font-family: inherit;
            font-size: 1rem;
            transition: var(--transition);
            background-color: var(--background);
        }

        /* Select wrapper to ensure proper width and responsive dropdown trigger */
        .select-wrapper {
            position: relative;
            width: 100%;
            max-width: 100%;
        }

        /* Improve native select cross-browser; keep native behavior on mobile */
        .select-wrapper select.input-field {
            -webkit-appearance: none;
            -moz-appearance: none;
            appearance: none;
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23666' viewBox='0 0 16 16'%3E%3Cpath d='M3.204 5.596a.5.5 0 01.707 0L8 9.685l4.09-4.09a.5.5 0 11.707.707l-4.444 4.444a.75.75 0 01-1.06 0L3.204 6.303a.5.5 0 010-.707z'/%3E%3C/svg%3E");
            background-repeat: no-repeat;
            background-position: right 12px center;
            background-size: 16px 16px;
            padding-right: 2.2rem; /* space for arrow */
            box-sizing: border-box;
            max-width: 100%;
        }

        /* Desktop: reduce only the placeholder "Seleziona un'opzione" size */
        @media (min-width: 1024px) {
            #subject.input-field:required:invalid {
                font-size: 0.90rem;
                color: #6b7280; /* neutral gray for placeholder */
            }
        }

        /* Ensure dropdown is usable on small screens */
        @media (max-width: 480px) {
            #subject.input-field {
                font-size: 1rem; /* keep readable on phones */
            }
        }

        .input-field:focus, textarea:focus, select:focus {
            outline: none;
            border-color: var(--primary);
            box-shadow: 0 0 0 3px rgba(30, 136, 229, 0.2);
        }

        textarea {
            min-height: 150px;
            resize: vertical;
        }

        /* Button Styles */
        .contact-btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 0.8rem;
            background: linear-gradient(135deg, #2F6BFF 0%, #1E54D6 100%);
            color: white;
            padding: 1rem 2.5rem;
            font-size: 1.1rem;
            font-weight: 600;
            border: none;
            border-radius: 12px;
            cursor: pointer;
            transition: var(--transition);
            text-align: center;
            width: 100%;
            margin-top: 0.5rem;
            position: relative;
            overflow: hidden;
            z-index: 1;
        }

        .contact-btn::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(135deg, #1E54D6 0%, #2F6BFF 100%);
            opacity: 0;
            transition: var(--transition);
            z-index: -1;
        }

        

        /* Alternative Contact */
        .contact-item {
            display: flex;
            align-items: center;
            gap: 1.5rem;
            margin-bottom: 1.8rem;
            padding: 1.2rem;
            border-radius: 12px;
            background: var(--background-light);
            transition: var(--transition);
        }

        

        .contact-icon {
            width: 60px;
            height: 60px;
            border-radius: 12px;
            background: var(--primary-light);
            color: var(--primary);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.8rem;
            flex-shrink: 0;
        }

        .contact-text {
            flex: 1;
        }

        .contact-text strong {
            display: block;
            margin-bottom: 0.4rem;
            font-size: 1.1rem;
            color: var(--text-dark);
        }

        .contact-text a {
            color: var(--primary);
            text-decoration: none;
            transition: var(--transition);
            font-weight: 500;
        }

        

        /* FAQ Section */
        .faq-item {
            margin-bottom: 1.5rem;
            border-bottom: 1px solid var(--border);
            padding-bottom: 1.5rem;
        }

        .faq-question {
            font-size: 1.2rem;
            font-weight: 600;
            margin-bottom: 0.8rem;
            color: var(--primary);
            display: flex;
            align-items: center;
            gap: 0.8rem;
            cursor: pointer;
        }

        .faq-question i {
            transition: var(--transition);
        }

        .faq-answer {
            padding-left: 2.2rem;
            color: var(--text-medium);
            line-height: 1.7;
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.3s ease;
        }

        .faq-item.active .faq-answer {
            max-height: 500px;
        }

        .faq-item.active .faq-question i {
            transform: rotate(90deg);
        }

        /* Feedback Message */
        .feedback-message {
            text-align: center;
            padding: 1.5rem;
            background: #e8f5e9;
            color: #2e7d32;
            border-radius: 12px;
            margin-top: 1.5rem;
            display: none;
        }

        /* LEGAL LINKS - Aggiunta conforme alla richiesta */
        .legal-links {
            text-align: center;
            margin-top: 1rem;
            font-size: 0.85rem;
        }

        .legal-links a {
            color: #aaa;
            text-decoration: none;
            margin: 0 0.75rem;
            transition: color 0.3s ease;
        }

        

 /* ============================================================
        DESKTOP MEDIA QUERIES (1920px e oltre)
    ============================================================ */

        /* Very Large Screens (4K/2K) */
        @media only screen and (min-width: 1920px) {
            .container { 
                max-width: 1319px; 
            }
            .university-logos{
                max-width: 1319px;
            }
            .nav-links a{
                font-size: 17px;
            }
            .btn-login {
                font-size: 16px;
                padding: 10px 22px;
                flex-wrap: nowrap;
                text-wrap: nowrap;
            }
            .btn-register {
                font-size: 16px;
                padding: 10px 22px;
            }
            h1 { 
                font-size: 64px; 
            }
            
            h2 { 
                font-size: 48px; 
            }
            
            .section {
                padding: 120px 0;
            }
            
            .hero {
                padding: 200px 0 140px;
            }
        }


        /* Large Desktop Screens */
        @media only screen and (min-width: 1367px) and (max-width: 1919px) {
            .container {
                max-width: 1200px;
            }
            .university-logos {
                max-width: 1200px;
            }
            
            h1 { 
                font-size: 56px; 
            }
            
            h2 { 
                font-size: 40px; 
            }
            
            .section {
                padding: 100px 0;
            }
            
            .hero {
                padding: 180px 0 120px;
            }
        }



        /* ============================================================
        TABLET MEDIA QUERIES
        ============================================================ */
        /* Large Tablet / iPad Pro Landscape */
        @media only screen and (min-width: 1100px) and (max-width: 1366px) {
            .nav-links {
                flex-wrap: wrap;
                gap: 22px;
            }
            .nav-links a {
                font-size: 16px;
            }
            .btn-login {
                font-size: 14.5px;
                padding: 12px 22px;
                flex-wrap: nowrap;
                text-wrap: nowrap;
            }
            .btn-register {
                font-size: 14.5px;
                padding: 12px 22px;
            }
            h1 { 
                font-size: 50px; 
            }
            
            h2 { 
                font-size: 47px; 
            }
            
            h3 { 
                font-size: 36px; 
            }
            
            .contact-hero h1 { 
                font-size: 50px; 
            }
            
            .contact-hero p { 
                font-size: 24px; 
            }
            
            .card-title { 
                font-size: 32px; 
            }
            
            .plans-container,
            .footer-grid {
                flex-direction: column;
                align-items: center;
            }
            
            .plan-card {
                max-width: 520px;
                width: 100%;
            }
            
            .features-grid {
                grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
            }
        }

        /* Large Tablet / iPad Pro Landscape */
        @media only screen and (min-width: 1025px) and (max-width: 1100px) {
            .nav-links {
                flex-wrap: wrap;
                gap: 20px;
            }
            .nav-links a {
                font-size: 14.5px;
            }
            .btn-login {
                font-size: 14px;
                padding: 10px 18px;
                flex-wrap: nowrap;
                text-wrap: nowrap;
            }
            .btn-register {
                font-size: 14px;
                padding: 10px 18px;
            }
            h1 { 
                font-size: 48px; 
            }
            
            h2 { 
                font-size: 45px; 
            }
            
            h3 { 
                font-size: 34px; 
            }
            
            .contact-hero h1 { 
                font-size: 48px; 
            }
            
            .contact-hero p { 
                font-size: 22px; 
            }
            
            .card-title { 
                font-size: 30px; 
            }
            
            .plans-container,
            .footer-grid {
                flex-direction: column;
                align-items: center;
            }
            
            .plan-card {
                max-width: 520px;
                width: 100%;
            }
            
            .features-grid {
                grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
            }
        }

        /* Standard Tablet / iPad Portrait */
        @media only screen and (min-width: 769px) and (max-width: 1025px) {
            .nav-links,
            .nav-buttons {
                display: none;
            }
            
            .hamburger {
                display: block;
            }
            
            .mobile-menu {
                display: block;
                position: fixed;
                top: 70px;
                left: 0;
                width: 100%;
                box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
                z-index: 999;
                transform: translateY(-150%);
                transition: transform 0.4s ease;
                padding: 20px;
            }
                    
            .navbar {
                overflow-x: hidden;
            }
            
            h1 { 
                font-size: 46px; 
            }
            
            h2 { 
                font-size: 43px; 
            }
            
            h3 { 
                font-size: 34px; 
            }
            
            .contact-hero h1 { 
                font-size: 46px; 
            }
            
            .contact-hero p { 
                font-size: 20px; 
            }
            
            .card-title { 
                font-size: 28px; 
            }
            
            .hero .container {
                flex-direction: column;
            }
            
            .hero-content {
                padding-right: 0;
                margin-bottom: 50px;
                text-align: center;
            }
            
            .hero-buttons {
                justify-content: center;
            }
            
            .steps {
                flex-direction: column;
                gap: 25px;
            }
            
            .step {
                margin-bottom: 20px;
            }
            
            .features-container {
                flex-direction: column;
                gap: 25px;
            }
            
            .feature-card {
                margin-bottom: 20px;
            }
            
            .university-logos {
                padding: 25px;
            }
            
            .logos-container {
                gap: 30px;
            }
            
            .university-logo {
                height: 65px;
                max-width: 160px;
            }
            
            .logo-promo-text {
                font-size: 24px;
                padding: 0 15px;
            }
        }

        @media (max-width: 992px) {
            .contact-cards-grid {
                grid-template-columns: 1fr;
            }
            
            /* LEGAL LINKS RESPONSIVE */
            .legal-links a {
                display: block;
                margin: 0.5rem 0;
            }
        }

        @media (max-width: 768px) {
            .contact-hero {
                padding: 2.5rem 1.5rem;
            }
            
            .contact-hero h1 {
                font-size: 2rem;
            }
            
            .contact-hero p {
                font-size: 1.1rem;
            }
            
            .contact-card {
                padding: 2rem;
            }
            
            /* MOBILE HEADER */
            .nav-links {
                display: none;
            }
            
            .nav-buttons {
                display: none;
            }
            
            .hamburger {
                display: block;
            }
            
            .mobile-menu {
                display: block;
            }
        }

        /* Mobile width tuning (~95% screen) */
        @media (max-width: 576px) {
            .contact-container { width: 100%; max-width: none; padding: 0 0.75rem; }
            .contact-cards-grid { grid-template-columns: 1fr; gap: 1.25rem; justify-items: center; }
            .contact-card { width: 100%; max-width: none; margin-left: auto; margin-right: auto; }
        }

        @media (max-width: 576px) {
            .contact-hero h1 {
                font-size: 1.8rem;
            }
            
            .contact-card { padding: 1.5rem; }
            
            .card-title {
                font-size: 1.3rem;
            }
            
            .contact-item {
                flex-direction: column;
                text-align: center;
            }
            
            .contact-icon {
                margin-bottom: 1rem;
            }
        }
        
        /* Footer */
        .footer {
            background: var(--text-dark);
            color: var(--background);
            padding: 80px 0 30px;
        }

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

        .footer-column h3 {
            font-size: 1.3rem;
            margin-bottom: 25px;
            position: relative;
            color: var(--background);
        }

        .footer-column h3:after {
            content: '';
            position: absolute;
            bottom: -10px;
            left: 0;
            width: 40px;
            height: 3px;
            background: var(--primary);
        }

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

        .footer-links li {
            margin-bottom: 12px;
        }

        .footer-links a {
            color: #aaa;
            text-decoration: none;
            transition: var(--transition);
            display: flex;
            align-items: center;
        }

        .footer-links a i {
            margin-right: 10px;
            width: 20px;
        }

        

        .social-links {
            display: flex;
            gap: 15px;
            margin-top: 25px;
        }

        .social-links a {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.1);
            color: var(--background);
            transition: var(--transition);
        }

        

        .copyright {
            text-align: center;
            padding-top: 30px;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
            color: #aaa;
            font-size: 0.9rem;
        }

        .footer-p{
            margin-bottom: 1.5rem;
            color: #9e9494;
        }
        
        /* Fix per eliminare il gap tra header e menu mobile */
        @media (max-width: 48rem) {
            .mobile-menu {
                position: fixed;
                top: 70px;
                left: 0;
                width: 100%;
                background: var(--background);
                box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
                z-index: 999;
                transform: translateY(-150%);
                transition: transform 0.4s ease;
                padding: 20px;
                display: block;
            }
            
            .navbar {
                height: 70px;
                display: flex;
                align-items: center;
                padding: 0;
            }
            
            .navbar .container {
                height: 100%;
                align-items: center;
            }
        }

/* iPhone 12/14 Pro Max (430px) */
@media (max-width: 430px) {
    .contact-container { width: 100%; max-width: none; padding: 0 0.5rem; }
    
    .contact-cards-grid { grid-template-columns: 1fr; gap: 1.25rem; justify-items: center; padding: 0 0.5rem; }
    
    .contact-card { padding: 2rem 1.5rem; text-align: center; width: 100%; max-width: none; margin: 0 auto; }
    
    .contact-hero h1 {
        font-size: 1.8rem;
        text-align: center;
    }
    
    .contact-hero {
        padding: 2rem 1rem;
    }
}

/* iPhone 12/14 Pro (393px) */
@media (max-width: 393px) {
    .contact-card {
        padding: 1.8rem 1.2rem;
    }
    
    .contact-hero h1 {
        font-size: 1.7rem;
    }
    
    .contact-hero {
        padding: 1.8rem 0.8rem;
    }
}

/* iPhone 12/14 Standard (390px) */
@media (max-width: 390px) {
    .contact-card {
        padding: 1.6rem 1rem;
    }
    
    .contact-hero h1 {
        font-size: 1.6rem;
    }
    
    .contact-container {
        padding: 0 0.8rem;
    }
}

/* iPhone SE (375px) */
@media (max-width: 375px) {
    .contact-card {
        padding: 1.4rem 0.8rem;
    }
    
    .contact-hero h1 {
        font-size: 1.5rem;
    }
    
    .contact-hero {
        padding: 1.5rem 0.6rem;
    }
}

/* --- HEADER RESPONSIVE OVERRIDES (coerenti con homepage) --- */
@media only screen and (min-width: 1300px) and (max-width: 1439px) {
  .nav-links { flex-wrap: nowrap; white-space: nowrap; gap: 18px; }
  .nav-links a { font-size: 15px; }
  .nav-user .user-greeting { display: none; }
  .btn-login, .btn-register { font-size: 14px; padding: 10px 18px; text-wrap: nowrap; }
}

@media only screen and (min-width: 1025px) and (max-width: 1301px) {
  .nav-links, .nav-buttons { display: none; }
  .hamburger { display: block; }
  .mobile-menu { display: block; }
  .navbar { overflow-x: hidden; }
}

@media only screen and (min-width: 769px) and (max-width: 1024px) {
  .nav-links, .nav-buttons { display: none; }
  .hamburger { display: block; }
  .mobile-menu { display: block; }
}

/* Logout (Esci) in sidebar/mobile */
.mobile-auth-buttons {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.9375rem !important; /* 15px */
    margin-top: 1.25rem !important; /* 20px */
    width: 100% !important;
    box-sizing: border-box !important;
}

.mobile-auth-buttons .logout-btn{
  display:block; width:100%; padding:0.9375rem; text-align:center; font-weight:600; text-decoration:none;
  border-radius:3.125rem; transition:all .3s ease; font-size:1.05rem; background:transparent; color:#c81e1e; border:2px solid #c81e1e;
}
.mobile-auth-buttons .logout-btn i{ margin-right:.5rem; }
        

/* Stile unificato per bottone Entra nella piattaforma mobile */
.mobile-auth-buttons .btn-enter{
    display:block;
    width:100%;
    padding:0.9375rem; /* 15px */
    text-align:center;
    font-weight:600;
    text-decoration:none;
    border-radius:3.125rem; /* 50px */
    transition:all .3s ease;
    font-size:1.05rem;
    background:var(--primary);
    color:white;
    border:2px solid var(--primary);
    margin-top:0.5rem;
}
        


