
        :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: 1rem; /* 16px */
            --transition: all 0.3s ease;
            --section-spacing: 6.25rem; /* 100px */
        }

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

        html, body {
            margin: 0;
            padding: 0;
            background: #EEF4FF !important;
            background-color: #EEF4FF !important;
        }

        body {
            font-family: 'Poppins', sans-serif;
            color: var(--text-medium);
            line-height: 1.6;
            overflow-x: hidden;
            font-size: 1rem; /* Base font size */
        }

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

        h2 {
            font-size: clamp(2.4rem, 6vw, 4.2rem); /* Responsive font size */
            margin-bottom: 1.25rem; /* 20px */
        }

        h2 {
            font-size: clamp(2.64rem, 6vw, 4.2rem);
            margin-bottom: 2rem;
            position: relative;
        }

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

        h3 {
            font-size: clamp(1.2rem, 3vw, 1.8rem);
            margin-bottom: 1.5rem;
        }

        h4 {
            font-size: clamp(1.1rem, 2.5vw, 1.5rem);
            margin-bottom: 1rem;
        }

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

        .container {
            width: 90%;
            max-width: 75rem; /* 1200px */
            margin: 0 auto;
            padding: 0 0.9375rem; /* 15px */
        }

        .btn {
            display: inline-block;
            padding: 0.9375rem 2.1875rem; /* 15px 35px */
            border-radius: 3.125rem; /* 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-oldprimary {
            background: var(--primary);
            color: var(--background);
            box-shadow: 0 0.5rem 1.25rem var(--shadow-hover); /* 0 8px 20px */
        }

        .btn-primary:hover {
            background: var(--primary-dark);
            transform: translateY(-0.1875rem); /* -3px */
            box-shadow: 0 0.75rem 1.5625rem var(--shadow-hover); /* 0 12px 25px */
        }

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


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

        .section-header {
            text-align: center;
            margin-bottom: 3.75rem; /* 60px */
        }

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

        .section-header p {
            max-width: 43.75rem; /* 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 MODIFICATO - ICONA CAPPELLO DA LAUREA */
        .logo {
            display: flex;
            align-items: center;
            text-decoration: none;
            transition: var(--transition);
        }

        .logo:hover {
            transform: scale(1.03);
        }

        .logo-icon {
            width: 2.5rem; /* 40px */
            height: 2.5rem; /* 40px */
            background: var(--primary);
            border-radius: 0.75rem; /* 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:hover .logo-icon {
            transform: rotate(0);
        }

        .logo:hover .logo-icon i {
            transform: rotate(0);
        }

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

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

        .nav-links {
            display: flex;
            list-style: none;
            margin: 0;
            padding: 0;
            gap: 30px; /* 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; /* 10px */
            font-size: 1.05rem;
        }

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

        .nav-links a:hover {
            color: var(--primary);
        }

        .nav-links a:hover i {
            transform: none; /* -3px */
        }

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

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

        /* CSS esistente rimane invariato */
        /* Aggiunte solo le nuove regole per la nuova sezione */
        
        /* Stile per la nuova sezione "Supporto Completo per Ogni Esercizio" */
        .exercise-features {
            background: linear-gradient(135deg, #2F6BFF 0%, #1E54D6 100%);
            color: #fff;
            padding: 6.25rem 0; /* 100px */
        }
        
        .features-container {
            display: flex;
            justify-content: space-between;
            gap: 1.875rem; /* 30px */
            margin-top: 3.125rem; /* 50px */
        }
        
        .feature-card {
            flex: 1;
            background: rgba(255, 255, 255, 0.15);
            backdrop-filter: blur(0.625rem); /* 10px */
            border-radius: var(--border-radius);
            padding: 2.5rem 1.875rem; /* 40px 30px */
            text-align: center;
            transition: all 0.3s ease;
            border: 0.125rem solid rgba(255, 255, 255, 0.2); /* 2px */
        }
        
        .feature-card:hover {
            transform: translateY(-0.625rem); /* -10px */
            background: rgba(255, 255, 255, 0.2);
            border-color: rgba(255, 255, 255, 0.3);
        }
        
        .feature-icon {
            font-size: 3.5rem;
            margin-bottom: 1.5625rem; /* 25px */
            color: #E8F1FF;
        }
        
        .feature-title {
            font-size: clamp(1.2rem, 3vw, 1.8rem);
            margin-bottom: 1.25rem; /* 20px */
            color: #fff;
            font-weight: 700;
        }
        
        .feature-text {
            color: rgba(255, 255, 255, 0.9);
            font-size: 1.1rem;
            line-height: 1.7;
        }
        
        .highlight-badge {
            display: inline-block;
            background: #E8F1FF;
            color: #2F6BFF;
            padding: 0.3125rem 0.9375rem; /* 5px 15px */
            border-radius: 3.125rem; /* 50px */
            font-weight: 700;
            margin-top: 1.25rem; /* 20px */
            font-size: 0.9rem;
        }
        
        .golden-badge {
            display: inline-block;
            background:linear-gradient(90deg,
              #2F6BFF 0%,  /* ciano acceso */
              #1E54D6 100%);
            color: #ffffff;
            padding: 0.3125rem 0.9375rem; /* 5px 15px */
            border-radius: 3.125rem; /* 50px */
            font-weight: 700;
            margin-top: 1.25rem; /* 20px */
            font-size: 0.9rem;
        }
        

        /* Stile semplice per Abbonamenti */
        .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: 0.9375rem; /* 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);
        }

        .btn-login:hover {
            background: var(--primary);
            color: var(--background);
            box-shadow: 0 0.5rem 1.25rem var(--shadow-hover); /* 0 8px 20px */
            transform: translateY(-0.1875rem); /* -3px */
        }

        .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;
    /* Prevent off-screen menu from catching taps */
    pointer-events: none;
}

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

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

        .mobile-links li {
            margin-bottom: 0.9375rem; /* 15px */
        }

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

        .mobile-links a:hover {
            background: var(--primary-light);
            color: var(--primary);
        }

        .mobile-links a i {
            margin-right: 0.75rem; /* 12px */
            font-size: 1.2rem;
            width: 1.5rem; /* 24px */
            text-align: center;
        }
          /* NUOVO STILE PER BOTTONI MOBILE */
        .mobile-auth-buttons {
            display: flex;
            flex-direction: column;
            gap: 0.9375rem; /* 15px */
            margin-top: 1.25rem; /* 20px */
            width: 100%;
        }

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

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

        .mobile-login-btn:hover {
            background: var(--primary-light);
        }

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

        .mobile-register-btn:hover {
            background: var(--primary-dark);
            transform: translateY(-0.1875rem); /* -3px */
            box-shadow: 0 0.5rem 1.25rem var(--shadow-hover); /* 0 8px 20px */
        }

        /* Logout (Esci) in sidebar/mobile */
        .mobile-auth-buttons .logout-btn{
            display:block;
            width:100%;
            padding:0.9375rem; /* 15px */
            text-align:center;
            font-weight:600;
            text-decoration:none;
            border-radius:3.125rem; /* 50px */
            transition:var(--transition);
            font-size:1.05rem;
            background:transparent;
            color:#c81e1e; /* rosso elegante */
            border:2px solid #c81e1e;
        }
        .mobile-auth-buttons .logout-btn i{ margin-right:0.5rem; }
        .mobile-auth-buttons .logout-btn:hover{ background:#E8F1FF; }

        /* 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:var(--transition);
            font-size:1.05rem;
            background:var(--primary);
            color:white;
            border:2px solid var(--primary);
            margin-top:0.5rem;
        }
        .mobile-auth-buttons .btn-enter:hover{ 
            background:var(--primary-dark);
            border-color:var(--primary-dark);
            transform: translateY(-2px);
            box-shadow: 0 8px 20px rgba(47, 107, 255, 0.3);
        }

        /* Stile per Abbonamenti in mobile */
        .mobile-links .highlighted {
            color: var(--primary);
            font-weight: 600;
        }
        
        .mobile-links .highlighted i {
            color: var(--primary);
        }

        /* Hero Section */
        .hero {
            padding: 11.25rem 0 6.25rem; /* 180px 0 100px */
            background: linear-gradient(135deg, var(--background-light) 0%, var(--primary-light) 100%);
            overflow: hidden;
            position: relative;
        }

.hero:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(238, 244, 255, 0.85) 0%, rgba(238, 244, 255, 0.6) 100%);
    z-index: 1;
    pointer-events: none; /* non intercettare i tap sopra al video */
}

        .hero .container {
            display: flex;
            align-items: center;
            position: relative;
            z-index: 2;
        }

        .hero-content {
            flex: 1;
            padding-right: 3.125rem; /* 50px */
        }

        .hero h2 span {
            color: var(--primary);
        }

        .hero p {
            font-size: 1.2rem;
            max-width: 37.5rem; /* 600px */
            margin-bottom: 1.875rem; /* 30px */
        }

        .hero-buttons {
            display: flex;
            gap: 1.25rem; /* 20px */
        }

.hero-image {
    flex: 1;
    position: relative;
    animation: float 6s ease-in-out infinite;
}

/* Ensure video wrapper renders predictably */
.hero-image, .hero-image .video-wrapper {
    width: 100%;
}
.hero-image .video-wrapper { 
    max-width: 100%; 
    margin: 0 auto; 
    position: relative;
    z-index: 2;
    touch-action: manipulation;
    overscroll-behavior: contain;
    border-radius: 12px; /* smussa i lati come desktop */
    border: 1px solid #7aaef0;
    background: #f5f9ff;
    box-shadow: 0 0 0 1px rgba(122, 174, 240, 0.24) !important;
}

.tw-homepage .hero-image .video-wrapper {
    box-shadow: 0 0 0 1px rgba(122, 174, 240, 0.24) !important;
    border: 1px solid #7aaef0 !important;
    background: #f5f9ff !important;
}

/* Prefer modern aspect-ratio when supported, keep padding-top fallback in template */
@supports (aspect-ratio: 16/9) {
  .hero-image .video-wrapper { padding-top: 0; aspect-ratio: 16 / 9; }
  .hero-image .video-wrapper iframe { position: absolute; inset: -2px; width: calc(100% + 4px); height: calc(100% + 4px); display:block; background:transparent; }
}

.hero-image .video-wrapper iframe { display:block; background:transparent; border-radius: inherit; }

/* Own fullscreen button: mostrato solo su device problematici */
.fs-toolbar { display: none; position: relative; z-index: 7; }
.fs-own-btn {
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(28,28,28,0.65);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.3);
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 6;
  pointer-events: auto;
}
.fs-own .fs-own-btn { display: flex; }
.fs-own-btn i { font-size: 18px; }
.fs-own-btn:active { transform: scale(0.98); }
.fs-own-btn:hover { background: rgba(28,28,28,0.8); }

/* In fullscreen: sposta il bottone in alto a sinistra e sovrapponilo sopra il player
   per evitare conflitti con la barra controlli di YouTube sui tablet Android */
.fs-own .video-wrapper:fullscreen,
.fs-own #heroVideoWrapper:-webkit-full-screen {
  display: flex;
  flex-direction: column;
}
.fs-own .video-wrapper:fullscreen .fs-toolbar,
.fs-own #heroVideoWrapper:-webkit-full-screen .fs-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 6px 10px;
  background: rgba(0,0,0,0.55);
}
.fs-own .video-wrapper:fullscreen .fs-own-btn,
.fs-own #heroVideoWrapper:-webkit-full-screen .fs-own-btn {
  position: fixed;
  top: calc(env(safe-area-inset-top, 0px) + 12px);
  left: calc(env(safe-area-inset-left, 0px) + 12px);
  right: auto;
  bottom: auto;
  z-index: 2147483646;
}
.fs-own .video-wrapper:fullscreen iframe,
.fs-own #heroVideoWrapper:-webkit-full-screen iframe {
  flex: 1 1 auto;
  width: 100%;
  height: auto;
}
.fs-own .video-wrapper:fullscreen .fs-own-btn:not(.active) i { content: '\f065'; }
.fs-own .video-wrapper:fullscreen .fs-own-btn.active i { content: '\f066'; }

/* Nascondi il pulsante flottante bottom-right quando siamo in fullscreen toolbar */
.fs-own .video-wrapper:fullscreen .fs-own-btn[style],
.fs-own #heroVideoWrapper:-webkit-full-screen .fs-own-btn[style] {
  display: flex !important;
}

/* (rimosso assist overlay: usiamo solo controlli nativi YouTube) */

/* Fullscreen: lascia gestione nativa del browser/YouTube per massima compatibilità */

/* Touch devices: disattiva qualsiasi trasformazione hover che può bloccare fullscreen su iOS */
@media (hover: none) {
  .hero-image .video-wrapper { will-change: auto; transform: none !important; overflow: visible !important; }
  .hero-image .video-wrapper:hover { transform: none; box-shadow: none !important; }
  /* Evita che il container clipperi il fullscreen su iOS */
  .hero { overflow: visible; }
  .hero-image { position: relative; z-index: 2; }
  .hero-image .video-wrapper iframe { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 5; pointer-events: auto; }
  /* Rimuovi completamente l'overlay grafico sopra il video su touch */
  .hero:before { display: none !important; }
}

/* Reimposta layout del player su touch per allineamento click perfetto */
/* Mobile: mantieni iframe assoluto a piena copertura per coerenza del target tap */
@media (hover: none) {
  .hero-image .video-wrapper { padding-top: 56.25%; }
  @supports (aspect-ratio: 16/9) {
    .hero-image .video-wrapper { aspect-ratio: 16 / 9; padding-top: 0; }
  }
  .hero-image .video-wrapper iframe { position: absolute; inset: 0; width: 100%; height: 100%; }
}

/* Migliora l'isolamento dello stacking context su Safari iOS */
@supports (-webkit-touch-callout: none) {
  .hero { isolation: isolate; }
}

/* In fullscreen, rimuovi solo i bordi arrotondati per evitare crop/zoom su alcuni device */
.video-wrapper:fullscreen, #heroVideo:fullscreen { border-radius: 0 !important; }

/* Fix mirato Android/Chromium: assicurati che l'elemento fullscreen copra lo schermo */
.fs-fix-android .video-wrapper:fullscreen,
.fs-fix-android #heroVideo:fullscreen,
.fs-fix-android .video-wrapper:-webkit-full-screen,
.fs-fix-android #heroVideo:-webkit-full-screen {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  max-width: 100vw !important;
  max-height: 100vh !important;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
  background: #000 !important;
}
.fs-fix-android .video-wrapper:fullscreen iframe,
.fs-fix-android #heroVideo:fullscreen,
.fs-fix-android .video-wrapper:-webkit-full-screen iframe,
.fs-fix-android #heroVideo:-webkit-full-screen {
  width: 100% !important;
  height: 100% !important;
  display: block !important;
}

/* Universal fullscreen sizing: prevenire overflow su tutti i device */
.video-wrapper:fullscreen,
#heroVideo:fullscreen,
.video-wrapper:-webkit-full-screen,
#heroVideo:-webkit-full-screen,
.video-wrapper:-moz-full-screen,
#heroVideo:-moz-full-screen,
.video-wrapper:-ms-fullscreen,
#heroVideo:-ms-fullscreen {
  width: 100vw !important;
  height: 100vh !important;
  max-width: 100vw !important;
  max-height: 100vh !important;
  overflow: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
  background: #000 !important;
}

.video-wrapper:fullscreen iframe,
.video-wrapper:-webkit-full-screen iframe,
.video-wrapper:-moz-full-screen iframe,
.video-wrapper:-ms-fullscreen iframe {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
}

        .hero-image .main-img {
            width: 100%;
            max-width: 37.5rem; /* 600px */
            border-radius: var(--border-radius);
            box-shadow: 0 1.5625rem 3.125rem rgba(0, 0, 0, 0.15); /* 0 25px 50px */
        }
        
        /* University Logos */
        .university-logos {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 1.5625rem; /* 25px */
            margin: 3.125rem auto 0; /* 50px */
            padding: 2.1875rem; /* 35px */
            background: var(--background-card);
            border-radius: var(--border-radius);
            box-shadow: 0 0.625rem 1.875rem rgba(0, 0, 0, 0.05); /* 0 10px 30px */
            max-width: 75rem; /* 1200px */
            width: 100%;
        }

        .logos-container {
            display: flex;
            justify-content: center;
            flex-wrap: wrap;
            gap: 2.5rem; /* 40px */
            width: 100%;
        }

        .logo-promo-text {
            font-size: clamp(1.2rem, 3vw, 1.7rem);
            font-weight: 600;
            text-align: center;
            color: #403d3d;
            line-height: 1.4;
            max-width: 50rem; /* 800px */
            margin-bottom: 1.25rem; /* 20px */
        }

        .university-logo {
            height: 5rem; /* 80px */
            max-width: 12.5rem; /* 200px */
            object-fit: contain;
            transition: var(--transition);
            filter: none;
            opacity: 1;
        }

        .university-logo:hover {
            transform: translateY(-0.625rem) scale(1.05); /* -10px */
            filter: none;
            opacity: 1;
        }

        /* How It Works Section */
        .how-it-works {
            background: var(--background-light);
        }

        .steps {
            display: flex;
            justify-content: space-between;
            gap: 1.875rem; /* 30px */
        }

        .step {
            flex: 1;
            background: var(--background-card);
            border-radius: var(--border-radius);
            padding: 3.125rem 1.875rem 1.875rem; /* 50px 30px 30px */
            text-align: center;
            box-shadow: 0 0.625rem 1.875rem var(--shadow); /* 0 10px 30px */
            transition: var(--transition);
            position: relative;
            overflow: hidden;
        }

        .step:hover {
            transform: translateY(-0.625rem); /* -10px */
            box-shadow: 0 0.9375rem 2.5rem var(--shadow-hover); /* 0 15px 40px */
        }

        .step-number {
            position: absolute;
            top: 0.625rem; /* 10px */
            left: 0.9375rem; /* 15px */
            font-size: 4rem;
            font-weight: 800;
            color: var(--primary-light);
            z-index: 0;
            opacity: 0.4;
        }

        .step-icon {
            font-size: 3rem;
            color: var(--primary);
            margin-bottom: 1.25rem; /* 20px */
            position: relative;
            z-index: 1;
        }

        .step h3 {
            margin-bottom: 0.9375rem; /* 15px */
            position: relative;
            z-index: 1;
        }

        .step p {
            position: relative;
            z-index: 1;
        }

        /* Benefits Section */
        .benefits {
            background: var(--background-light);
        }

        .benefits-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(18.75rem, 1fr)); /* 300px */
            gap: 1.875rem; /* 30px */
        }

        .benefit-card {
            background: var(--background-card);
            border-radius: var(--border-radius);
            padding: 2.5rem 1.875rem; /* 40px 30px */
            box-shadow: 0 0.625rem 1.875rem var(--shadow); /* 0 10px 30px */
            transition: var(--transition);
            position: relative;
            overflow: hidden;
        }

        .benefit-card:hover {
            transform: translateY(-0.625rem); /* -10px */
            box-shadow: 0 0.9375rem 2.5rem var(--shadow-hover); /* 0 15px 40px */
        }

        .benefit-icon {
            font-size: 3rem;
            color: var(--primary);
            margin-bottom: 1.25rem; /* 20px */
        }

        .benefit-card h4 {
            margin-bottom: 0.9375rem; /* 15px */
        }

        /* Quiz Preview Section - CORREZIONI APPLICATE */
        .quiz-preview {
            background: var(--background-light);
        }

        .quiz-container {
            max-width: 50rem; /* 800px */
            margin: 0 auto;
            background: var(--background-card);
            border-radius: var(--border-radius);
            box-shadow: 0 1.25rem 3.125rem var(--shadow); /* 0 20px 50px */
            overflow: hidden;
        }

        .quiz-header {
            background: var(--primary);
            color: var(--background);
            padding: 1.25rem 1.875rem; /* 20px 30px */
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .quiz-timer {
            display: flex;
            align-items: center;
            font-weight: 600;
            font-size: 1.2rem;
        }

        .quiz-timer i {
            margin-right: 0.625rem; /* 10px */
            animation: pulse 1.5s infinite;
        }

        .quiz-content {
            padding: 1rem; /* 40px */
        }

        .quiz-question {
            font-size: 1.4rem;
            font-weight: 600;
            margin-bottom: 1.875rem; /* 30px */
        }

        .quiz-options {
            margin-bottom: 2.5rem; /* 40px */
        }

        .quiz-option {
            display: block;
            padding: 0.9375rem 1.1rem 0.9375rem 3rem; /* 15px 16px 15px 44px */
            margin-bottom: 0.9375rem; /* 15px */
            background: var(--background-light);
            border-radius: var(--border-radius);
            cursor: pointer;
            transition: var(--transition);
            position: relative;
        }

        .quiz-option:hover {
            background: var(--primary-light);
        }

        .quiz-option:before {
            content: 'A';
            position: absolute;
            left: 0.75rem; /* Ridotto da 1.25rem a 0.75rem (da 20px a 12px) */
            top: 50%;
            transform: translateY(-50%);
            width: 1.75rem; /* 28px, leggermente più compatto */
            height: 1.75rem; /* 28px */
            background: var(--background-card);
            border: 0.125rem solid var(--border); /* 2px */
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 600;
            font-size: 0.9rem;
        }

        .quiz-option:nth-child(2):before {
            content: 'B';
        }

        .quiz-option:nth-child(3):before {
            content: 'C';
        }

        .quiz-option:nth-child(4):before {
            content: 'D';
        }


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

        .explanation-btn {
            display: flex;
            align-items: center;
            color: var(--primary);
            font-weight: 600;
            text-decoration: none;
            padding: 0.625rem 0.9375rem; /* 10px 15px */
            border-radius: 0.5rem; /* 8px */
            transition: background-color 0.3s;
        }

        .explanation-btn:hover {
            background-color: var(--primary-light);
        }

        .explanation-btn i {
            margin-right: 0.625rem; /* 10px */
        }

.quiz-img {
  text-align: center;
  width: 100%;
  margin-bottom: 0;
}

.quiz-img img {
  border-radius: 0%;
  width: min(100%, 84rem);
  height: auto;
  display: inline-block;
}



        /* Testimonials Section */
        .testimonials {
            background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
            color: var(--background);
        }

        .testimonials .section-header h2 {
            color: var(--background);
        }

        .testimonials .section-header h2:after {
            background: var(--background);
        }

        .testimonials .section-header p {
            color: rgba(255, 255, 255, 0.8);
        }

        .testimonials-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(18.75rem, 1fr)); /* 300px */
            gap: 1.875rem; /* 30px */
        }

        .testimonial-card {
            background: rgba(255, 255, 255, 0.1);
            backdrop-filter: blur(0.625rem); /* 10px */
            border-radius: var(--border-radius);
            padding: 1.875rem; /* 30px */
            transition: var(--transition);
        }

        .testimonial-card:hover {
            transform: translateY(-0.625rem); /* -10px */
            background: rgba(255, 255, 255, 0.15);
        }

        .testimonial-text {
            font-style: italic;
            margin-bottom: 1.25rem; /* 20px */
            position: relative;
            color: var(--background);
            padding: 0 1.25rem; /* 20px */
        }

        .testimonial-text:before,
        .testimonial-text:after {
            content: '"';
            font-size: 2rem;
            color: rgba(255, 255, 255, 0.3);
            position: absolute;
        }

        .testimonial-text:before {
            top: -0.9375rem; /* -15px */
            left: -0.3125rem; /* -5px */
        }

        .testimonial-text:after {
            bottom: -2.1875rem; /* -35px */
            right: -0.3125rem; /* -5px */
        }

        .testimonial-author {
            display: flex;
            align-items: center;
        }

        .author-avatar {
            width: 3.125rem; /* 50px */
            height: 3.125rem; /* 50px */
            border-radius: 50%;
            background: var(--background);
            margin-right: 0.9375rem; /* 15px */
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--primary);
            font-weight: 600;
        }

        .author-info h4 {
            margin-bottom: 0.3125rem; /* 5px */
            color: var(--background);
        }

        .author-info p {
            color: rgba(255, 255, 255, 0.8);
            margin: 0;
        }

        /* Gamification Section */
        .gamification {
            background: var(--background-light);
        }

        .gamification-container {
            max-width: 50rem; /* 800px */
            margin: 0 auto;
            background: var(--background-light);
            border-radius: var(--border-radius);
            padding: 2.5rem; /* 40px */
            box-shadow: 0 0.625rem 1.875rem rgba(0, 0, 0, 0.05); /* 0 10px 30px */
        }

        .progress-container {
            margin-bottom: 1.875rem; /* 30px */
        }

        .progress-header {
            display: flex;
            justify-content: space-between;
            margin-bottom: 0.625rem; /* 10px */
        }

        .progress-bar {
            height: 1.25rem; /* 20px */
            background: var(--background-card);
            border-radius: 0.625rem; /* 10px */
            overflow: hidden;
        }

        .progress-fill {
            height: 100%;
            width: 75%;
            background: linear-gradient(90deg, var(--primary) 0%, var(--primary-dark) 100%);
            border-radius: 0.625rem; /* 10px */
            position: relative;
            animation: fillAnimation 2s ease-out;
        }

        .xp-container {
            display: flex;
            justify-content: space-around;
            margin: 2.5rem 0; /* 40px */
        }

        .xp-item {
            text-align: center;
        }

        .xp-value {
            font-size: 2.5rem;
            font-weight: 800;
            color: var(--primary);
            margin-bottom: 0.3125rem; /* 5px */
        }

        .xp-label {
            font-weight: 600;
        }

        .badges-container {
            margin-top: 2.5rem; /* 40px */
        }

        .badges-grid {
            display: flex;
            justify-content: center;
            gap: 1.25rem; /* 20px */
            flex-wrap: wrap;
        }

        .badge {
            width: 5rem; /* 80px */
            height: 5rem; /* 80px */
            border-radius: 50%;
            background: var(--background-card);
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 0.5rem 1.25rem var(--shadow); /* 0 8px 20px */
            position: relative;
            transition: var(--transition);
        }

        .badge:hover {
            transform: translateY(-0.625rem); /* -10px */
        }

        .badge i {
            font-size: 2rem;
            color: var(--primary);
        }

        .badge:after {
            content: '';
            position: absolute;
            top: -0.3125rem; /* -5px */
            left: -0.3125rem; /* -5px */
            right: -0.3125rem; /* -5px */
            bottom: -0.3125rem; /* -5px */
            border-radius: 50%;
            border: 0.125rem solid var(--primary); /* 2px */
            opacity: 0;
            transition: var(--transition);
        }

        .badge:hover:after {
            opacity: 1;
            top: -0.5rem; /* -8px */
            left: -0.5rem; /* -8px */
            right: -0.5rem; /* -8px */
            bottom: -0.5rem; /* -8px */
        }

        /* Daily Tip Section */
        .daily-tip {
            background: var(--background-light);
        }

        .tip-container {
            max-width: 50rem; /* 800px */
            margin: 0 auto;
            background: var(--background-card);
            border-radius: var(--border-radius);
            padding: 2.5rem; /* 40px */
            box-shadow: 0 0.625rem 1.875rem var(--shadow); /* 0 10px 30px */
            text-align: center;
            position: relative;
            overflow: hidden;
        }

        .tip-icon {
            font-size: 3rem;
            color: var(--primary);
            margin-bottom: 1.25rem; /* 20px */
        }

        .tip-content {
            font-size: 1.3rem;
            font-style: italic;
            margin-bottom: 1.25rem; /* 20px */
            position: relative;
            padding: 0 1.25rem; /* 20px */
        }

        .tip-content:before,
        .tip-content:after {
            content: '"';
            font-size: 3rem;
            color: var(--primary-light);
            position: absolute;
            opacity: 0.3;
        }

        .tip-content:before {
            top: -1.25rem; /* -20px */
            left: -0.3125rem; /* -5px */
        }

        .tip-content:after {
            bottom: -2.5rem; /* -40px */
            right: -0.3125rem; /* -5px */
        }

        .tip-author {
            font-weight: 600;
            color: var(--text-light);
        }

        /* Footer */
        .footer {
            background: var(--text-dark);
            color: var(--background);
            padding: 5rem 0 1.875rem; /* 80px 0 30px */
        }

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

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

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

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

        .footer-links li {
            margin-bottom: 0.75rem; /* 12px */
        }

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

        .footer-links a i {
            margin-right: 0.625rem; /* 10px */
            width: 1.25rem; /* 20px */
        }

        .footer-links a:hover {
            color: var(--primary-light);
            padding-left: 0.3125rem; /* 5px */
        }

        .social-links {
            display: flex;
            gap: 0.9375rem; /* 15px */
            margin-top: 1.5625rem; /* 25px */
        }

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

        .social-links a:hover {
            background: var(--primary);
            transform: translateY(-0.3125rem); /* -5px */
        }

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


        /* 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;
        }

        .legal-links a:hover {
            color: var(--primary-light);
        }

        .footer-p{
            margin-bottom: 1.5rem;
            color: #9e9494;
        }
        

        /* Animations */
        @keyframes float {
            0% { transform: translateY(0px); }
            50% { transform: translateY(-1.25rem); } /* -20px */
            100% { transform: translateY(0px); }
        }

        @keyframes pulse {
            0% { transform: scale(1); }
            50% { transform: scale(1.1); }
            100% { transform: scale(1); }
        }

        @keyframes fillAnimation {
            0% { width: 0%; }
            100% { width: 75%; }
        }

 /* ============================================================
   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-primary {
        font-size: 16px;
        padding: 10px 22px;
    }
    h1 { 
        font-size: 64px; 
    }
    
    h2 { 
        font-size: 58.8px; 
    }
    
    .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: 52.8px; 
    }
    
    .section {
        padding: 100px 0;
    }
    
    .hero {
        padding: 180px 0 120px;
    }
}

/* ============================================================
   TABLET MEDIA QUERIES
   ============================================================ */

/* 1300–1439px: compatta l'header per evitare wrap (da 1440 in giù) */
@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; }
    .navbar .btn-enter { font-size: .95rem; padding: .5rem .9rem; }
    .btn-login { font-size: 14px; padding: 10px 18px; text-wrap: nowrap; }
    .btn-primary { font-size: 14px; padding: 10px 18px; }
}

/* Smart breakpoint desktop→mobile menu: 1025–1299 = hamburger */
@media only screen and (min-width: 1025px) and (max-width: 1368px) {
    .nav-links,
    .nav-buttons { display: none; }
    .hamburger { display: block; }
    .mobile-menu { display: block; }
    .navbar { overflow-x: hidden; }
    h1 { font-size: 50px; }
    h2 { font-size: 48.6px; }
    h3 { font-size: 36px; }
    .logo-promo-text { font-size: 34px; }
    .footer-grid { flex-direction: column; align-items: center; }

    /* Center hero paragraph on large tablets (iPad Pro and similar) */
    .hero-content { text-align: center; }
    .hero p { margin: 0 auto 25px; text-align: center; }
}

/* Standard Tablet / iPad Portrait */
@media only screen and (min-width: 769px) and (max-width: 1024px) {
    .nav-links,
    .nav-buttons {
        display: none;
    }
    
    .hamburger {
        display: block;
    }
    
    .mobile-menu {
        display: block;
    }
    
    .navbar {
        overflow-x: hidden;
    }
    
    h1 { 
        font-size: 46px; 
    }
    
    h2 { font-size: 51.6px; }
    
    h3 { font-size: 34px; }
    
    .hero .container {
        flex-direction: column;
    }
    
    .hero-content {
        padding-right: 0;
        margin-bottom: 50px;
        text-align: center;
    }
    /* Ensure hero paragraph block centers within container on tablets */
    .hero p { margin-left: auto; margin-right: auto; 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: 30px;
        padding: 0 15px;
    }
}

/* ============================================================
   TABLET HORIZONTAL ORIENTATION - SPECIFIC STYLING
   ============================================================ */

/* Tablet Horizontal (landscape) - iPad and similar tablets in landscape mode */
@media only screen and (min-width: 1024px) and (max-width: 1366px) and (orientation: landscape) {
    .hero-buttons {
        justify-content: center;
        text-align: center;
        margin: 0 auto;
    }
    
    .hero-content {
        text-align: center;
    }
    
    .hero p {
        margin-left: auto;
        margin-right: auto;
        text-align: center;
    }
}

/* ============================================================
   MOBILE MEDIA QUERIES (max-width: 768px)
   ============================================================ */

/* Large Mobile / Small Tablet Portrait */
@media only screen and (max-width: 768px) {
    :root {
        --section-spacing: 70px;
    }
    
    h1 {
        font-size: 37px;
    }
    
    h2 {
        font-size: 32.4px;
        margin-bottom: 24px;
    }
    
    h2:after {
        bottom: -10px;
    }
    
    h3 {
        font-size: 34px;
    }
    
    .section {
        padding: 70px 0;
    }
    
    .section-header {
        margin-bottom: 40px;
    }
    
    .section-header p {
        max-width: 90%;
    }
    
    .hero {
        padding: 130px 0 60px;
    }
    
    .hero .container {
        flex-direction: column;
    }
    
    .hero-content {
        padding-right: 0;
        margin-bottom: 50px;
        text-align: center;
    }
    
    .hero p {
        font-size: 18px;
        max-width: 90%;
        margin: 0 auto 25px;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 15px;
        max-width: none;
        margin: 0 auto;
        justify-content: center;
    }
    
    .btn {
        width: 100%;
        padding: 14px 25px;
    }
    
    .xp-container {
        flex-direction: column;
        gap: 25px;
    }
    
    .university-logos {
        gap: 15px;
        padding: 20px 15px;
        margin-top: 40px;
    }
    
    .logo-promo-text {
        font-size: 19px;
        margin-bottom: 15px;
        padding: 0 15px;
    }
    
    .logos-container {
        gap: 15px;
    }
    
    .university-logo {
        height: 50px;
        max-width: 130px;
    }
    
    .testimonial-text:before,
    .testimonial-text:after {
        font-size: 34px;
    }
    
    .steps {
        flex-direction: column;
        gap: 25px;
    }
    
    .step {
        padding: 40px 25px 25px;
        margin-bottom: 20px;
    }
    
    .step-icon {
        font-size: 27px;
    }
    
    .step h3 {
        font-size: 30px;
    }
    
    .benefit-card,
    .support-card {
        padding: 30px 20px;
        width: 100%;
        margin: 0;
    }
    
    .benefit-icon {
        font-size: 27px;
    }
    
    .gamification-container {
        padding: 30px 15px;
        width: 100%;
        margin: 0;
    }
    
    .xp-value {
        font-size: 34px;
    }
    
    .badge {
        width: 70px;
        height: 70px;
    }
    
    .badge i {
        font-size: 27px;
    }
    
    .tip-container {
        padding: 30px 15px;
        width: 100%;
        margin: 0;
    }
    
    .tip-content {
        font-size: 18px;
    }
    
    .tip-content:before,
    .tip-content:after {
        font-size: 27px;
    }
    
    .nav-links {
        display: none;
    }
    
    .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 {
        height: 70px;
        display: flex;
        align-items: center;
        padding: 0;
    }
    
    .navbar .container {
        height: 100%;
        align-items: center;
    }
    
    .exercise-features {
        padding: 70px 0;
    }
    
    .features-container {
        flex-direction: column;
        gap: 25px;
    }
    
    .feature-card {
        padding: 30px 20px;
        margin-bottom: 20px;
        width: 100%;
        margin-left: 0;
        margin-right: 0;
    }
    
    .feature-icon {
        font-size: 24px;
    }
    
    .feature-title {
        font-size: 34px;
    }
    
    .legal-links a {
        display: block;
        margin: 8px 0;
    }
    
    .quiz-img {
        padding: 0 20px;
    }
    
    .quiz-img img {
        width: 100%;
        height: auto;
    }
    h2 {
        font-size: 60px;
    }
}

/* iPhone 12/14 Pro Max (430px) */
@media only screen and (max-width: 430px) {
    :root {
        --section-spacing: 50px;
    }
    
    h1 {
        font-size: 32px;
        text-align: center;
    }
    
    h2 {
        font-size: 40.8px;
        text-align: center;
    }
    
    .container {
        padding: 0 0.2rem;
    }
    
    .section {
        padding: 50px 0;
    }
    
    .hero {
        padding: 80px 0 40px;
        text-align: center;
    }
    
    .hero-content {
        text-align: center;
        padding: 0 1rem;
    }
    
    .university-logos {
        gap: 8px;
        padding: 12px 8px;
        margin-top: 25px;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .university-logo {
        height: 40px;
        max-width: 100px;
    }
    
    .steps {
        flex-direction: column;
        gap: 20px;
        padding: 0;
    }
    
    .step {
        padding: 30px 15px 15px;
        margin: 0 auto;
        max-width: none;
        text-align: center;
    }
    
    .step-number {
        font-size: 30px;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
        padding: 0;
        justify-items: center;
    }
    
    .benefit-card {
        width: 100%;
        max-width: none;
        margin: 0 auto;
        padding: 1.5rem 1rem;
        text-align: center;
    }
    
    .tip-content {
        font-size: 15px;
        padding: 0 8px;
        text-align: center;
    }
    
    .footer {
        padding: 50px 0 15px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 25px;
        margin-bottom: 30px;
        text-align: center;
    }
    
    .footer-column {
        text-align: center;
    }
}

/* iPhone 12/14 Pro (393px) */
@media only screen and (max-width: 393px) {
    h1 {
        font-size: 34px;
    }
    
    h2 {
        font-size: 36px;
    }
    
    .hero {
        padding: 75px 0 35px;
    }
    
    .step {
        max-width: none;
        padding: 28px 12px 12px;
    }
    
    .benefit-card {
        max-width: none;
        padding: 1.3rem 0.8rem;
    }
    
    .university-logo {
        height: 38px;
        max-width: 95px;
    }
}

/* iPhone 12/14 Standard (390px) */
@media only screen and (max-width: 390px) {
    h1 {
        font-size: 27px;
    }
    
    h2 {
        font-size: 34px;
    }
    
    .container {
        padding: 0 0.8rem;
    }
    
    .hero {
        padding: 70px 0 30px;
    }
    
    .step {
        max-width: none;
        padding: 25px 10px 10px;
    }
    
    .benefit-card {
        max-width: none;
        padding: 1.2rem 0.8rem;
    }
    
    .university-logo {
        height: 36px;
        max-width: 90px;
    }
}

/* iPhone SE (375px) */
@media only screen and (max-width: 375px) {
    h1 {
        font-size: 24px;
    }
    
    .container {
        padding: 0 0.5rem;
    }
    
    .step {
        max-width: none;
        padding: 22px 8px 8px;
    }
    
    .benefit-card {
        max-width: none;
        padding: 1rem 0.8rem;
    }
    
    .university-logo {
        height: 34px;
        max-width: 85px;
    }
}

/* Standard Mobile */
@media only screen and (max-width: 480px) {
    :root {
        --section-spacing: 60px;
    }
    
    h1 {
        font-size: 34px;
    }
    
    h2 {
        font-size: 36.7px;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .hero {
        padding: 100px 0 50px;
    }
    
    .university-logos {
        gap: 10px;
        padding: 15px 10px;
        margin-top: 30px;
    }
    
    .university-logo {
        height: 45px;
        max-width: 110px;
    }
    
    .step {
        padding: 35px 20px 20px;
    }
    
    .step-number {
        font-size: 34px;
    }
    
    .tip-content {
        font-size: 16px;
        padding: 0 10px;
    }
    
    .tip-content:before,
    .tip-content:after {
        font-size: 34px;
    }
    
    .footer {
        padding: 60px 0 20px;
    }
    
    .footer-grid {
        gap: 30px;
        margin-bottom: 35px;
    }
    
    .footer-column h3 {
        margin-bottom: 20px;
    }
    
    .copyright {
        padding-top: 20px;
    }
    
    .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;
    }
}

/* Small Mobile */
@media only screen and (max-width: 360px) {
    h1 {
        font-size: 29px;
    }
    
    .logo-promo-text {
        font-size: 18px;
    }
    
    .university-logo {
        height: 40px;
        max-width: 90px;
    }
    
    .step {
        padding: 30px 15px 15px;
    }
    
    .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;
    }
}

/* Fix per immagini responsive */
img {
    max-width: 100%;
    height: auto;
}

/* Hide video content from search engines while keeping it functional for users */
[data-nosnippet] {
    /* This attribute tells Google not to use this content in snippets */
}

/* Additional SEO protection for video content */
.video-wrapper iframe {
    /* Ensure video content doesn't interfere with SEO */
    user-select: none;
}

.fs-own-btn {
    /* Hide fullscreen button content from search crawlers but keep icon visible */
    user-select: none;
}

.fs-own-btn i {
    /* Ensure icon is always visible and properly sized */
    font-size: 18px !important;
    text-indent: 0 !important;
}

/* Final override: trusted-by style marquee for university logos */
.university-logos .logos-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    display: block;
    mask-image: linear-gradient(to right, transparent 0%, #000 8%, #000 92%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 8%, #000 92%, transparent 100%);
}

.university-logos .logos-track {
    display: flex;
    align-items: center;
    gap: 2.4rem;
    width: max-content;
    animation: logos-marquee 28s linear infinite;
}

.university-logos .university-logo {
    flex: 0 0 auto;
    height: 4.2rem;
    width: auto;
    max-width: 10.5rem;
    object-fit: contain;
}

@keyframes logos-marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@media (max-width: 768px) {
    .university-logos .logos-track {
        gap: 1.6rem;
        animation-duration: 22s;
    }

    .university-logos .university-logo {
        height: 3.2rem;
        max-width: 8.5rem;
    }
}

/* Final hard override for hero YouTube frame: visible branding border, no shadow */
.tw-homepage #heroVideoWrapper,
.tw-homepage .hero-image .video-wrapper {
    border: 1px solid #7aaef0 !important;
    box-shadow: none !important;
    filter: none !important;
    outline: 0 !important;
    background: transparent !important;
}

.tw-homepage #heroVideo,
.tw-homepage #heroVideoWrapper iframe,
.tw-homepage .hero-image .video-wrapper iframe {
    border: 0 !important;
    box-shadow: none !important;
    filter: none !important;
    outline: 0 !important;
    background: transparent !important;
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    display: block !important;
    transform: scale(1.01);
    transform-origin: center center;
}

/* LOGO_HOVER_DISABLED_GLOBAL */
.logo,
.logo *,
.brand-logo,
.brand-logo * {
  transition: none !important;
  animation: none !important;
}

.logo:hover,
.logo:hover .logo-icon,
.logo:hover .logo-icon i,
.logo:hover .logo-text,
.logo-icon:hover,
.logo-icon i:hover,
.brand-logo:hover,
.brand-logo:hover .brand-logo-icon,
.brand-logo:hover .brand-logo-icon i,
.brand-logo:hover .brand-logo-text,
.brand-logo-icon:hover,
.brand-logo-icon i:hover {
  transform: none !important;
  box-shadow: none !important;
  filter: none !important;
}
