/* =================================================================
   SOL VISUAL ACADEMY - CSS AVANZATO
   Designer: Claude AI per Sol Visual Academy
   ================================================================= */

/* === CSS CUSTOM PROPERTIES (VARIABILI) === */
:root {
  /* Colori Brand */
  --primary-color: #50211a;
  --secondary-color: #a57865;
  --accent-color: #f3e7b2;
  --bg-primary: #fef8e6;
  --text-dark: #584338;
  --text-light: #ffffff;
  --gradient-primary: linear-gradient(135deg, #50211a 0%, #a57865 100%);
  --gradient-accent: linear-gradient(135deg, #f3e7b2 0%, #fef8e6 100%);
  --gradient-hero: linear-gradient(135deg, rgba(80, 33, 26, 0.9) 0%, rgba(165, 120, 101, 0.8) 100%);
  
  /* Ombre */
  --shadow-light: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-medium: 0 8px 24px rgba(0, 0, 0, 0.15);
  --shadow-heavy: 0 16px 48px rgba(0, 0, 0, 0.25);
  --shadow-glow: 0 0 30px rgba(165, 120, 101, 0.3);
  
  /* Transizioni */
  --transition-fast: 0.2s ease;
  --transition-medium: 0.3s ease;
  --transition-slow: 0.5s ease;
  --transition-bounce: 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  
  /* Tipografia */
  --font-primary: 'Poppins', sans-serif;
  --font-secondary: 'Playfair Display', serif;
  
  /* Z-index */
  --z-loading: 9999;
  --z-cursor: 9998;
  --z-modal: 1050;
  --z-header: 100;
}

/* === RESET E BASE === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font-primary);
  background-color: var(--bg-primary);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none; /* Per cursor personalizzato */
}

/* === CURSOR PERSONALIZZATO === */
.cursor {
  position: fixed;
  width: 20px;
  height: 20px;
  background: var(--primary-color);
  border-radius: 50%;
  pointer-events: none;
  z-index: var(--z-cursor);
  mix-blend-mode: difference;
  transition: transform var(--transition-fast);
}

.cursor-follower {
  position: fixed;
  width: 40px;
  height: 40px;
  border: 2px solid var(--secondary-color);
  border-radius: 50%;
  pointer-events: none;
  z-index: var(--z-cursor);
  transition: all var(--transition-medium);
  opacity: 0.5;
}

.cursor.expand {
  transform: scale(1.5);
}

.cursor-follower.expand {
  transform: scale(1.2);
}

/* === LOADING SCREEN === */
.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: var(--z-loading);
  opacity: 1;
  visibility: visible;
  transition: all 0.8s ease;
}

.loading-screen.hidden {
  opacity: 0;
  visibility: hidden;
}

.loading-content {
  text-align: center;
  color: var(--text-light);
}

.loading-logo img {
  width: 100px;
  height: auto;
  margin-bottom: 30px;
  animation: logoFloat 2s ease-in-out infinite;
}

.loading-text {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 30px;
}

.loading-text span {
  display: inline-block;
  animation: letterBounce 1.4s ease-in-out infinite;
}

.loading-text span:nth-child(1) { animation-delay: 0.1s; }
.loading-text span:nth-child(2) { animation-delay: 0.2s; }
.loading-text span:nth-child(3) { animation-delay: 0.3s; }
.loading-text span:nth-child(4) { animation-delay: 0.4s; }
.loading-text span:nth-child(5) { animation-delay: 0.5s; }
.loading-text span:nth-child(6) { animation-delay: 0.6s; }
.loading-text span:nth-child(7) { animation-delay: 0.7s; }
.loading-text span:nth-child(8) { animation-delay: 0.8s; }
.loading-text span:nth-child(9) { animation-delay: 0.9s; }
.loading-text span:nth-child(10) { animation-delay: 1s; }
.loading-text span:nth-child(11) { animation-delay: 1.1s; }
.loading-text span:nth-child(12) { animation-delay: 1.2s; }
.loading-text span:nth-child(13) { animation-delay: 1.3s; }
.loading-text span:nth-child(14) { animation-delay: 1.4s; }

.loading-progress {
  width: 200px;
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  overflow: hidden;
}

.progress-bar {
  width: 0%;
  height: 100%;
  background: var(--accent-color);
  border-radius: 2px;
  animation: progressLoad 3s ease-out forwards;
}

/* === HERO SECTION === */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

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

.particles-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 30% 80%, rgba(243, 231, 178, 0.1) 0%, transparent 50%),
              radial-gradient(circle at 80% 20%, rgba(165, 120, 101, 0.1) 0%, transparent 50%);
  animation: particleFloat 20s ease-in-out infinite;
}

.floating-elements {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.floating-circle {
  position: absolute;
  border-radius: 50%;
  background: rgba(243, 231, 178, 0.1);
  animation: floatUpDown 6s ease-in-out infinite;
}

.floating-triangle {
  position: absolute;
  width: 0;
  height: 0;
  animation: floatSide 8s ease-in-out infinite;
}

.circle-1 {
  width: 80px;
  height: 80px;
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}

.circle-2 {
  width: 120px;
  height: 120px;
  top: 60%;
  right: 15%;
  animation-delay: 2s;
}

.circle-3 {
  width: 60px;
  height: 60px;
  bottom: 20%;
  left: 20%;
  animation-delay: 4s;
}

.triangle-1 {
  top: 30%;
  right: 20%;
  border-left: 25px solid transparent;
  border-right: 25px solid transparent;
  border-bottom: 40px solid rgba(165, 120, 101, 0.1);
  animation-delay: 1s;
}

.triangle-2 {
  bottom: 30%;
  right: 10%;
  border-left: 35px solid transparent;
  border-right: 35px solid transparent;
  border-bottom: 55px solid rgba(243, 231, 178, 0.1);
  animation-delay: 3s;
}

.hero-content {
  position: relative;
  z-index: 10;
  width: 100%;
}

.hero-logo img {
  max-height: 120px;
  margin-bottom: 30px;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.hero-title {
  font-family: var(--font-secondary);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--text-light);
}

.typing-text {
  display: block;
  margin-bottom: 10px;
}

.highlight-text {
  background: var(--gradient-accent);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: block;
  animation: shimmer 3s ease-in-out infinite;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-cta {
  margin-bottom: 60px;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 60px;
  flex-wrap: wrap;
}

.stat-item {
  text-align: center;
  color: var(--text-light);
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--accent-color);
  display: block;
  line-height: 1;
}

.stat-label {
  font-size: 0.9rem;
  opacity: 0.8;
  margin-top: 5px;
}

.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

.scroll-arrow {
  width: 30px;
  height: 30px;
  border: 2px solid var(--accent-color);
  border-top: none;
  border-left: none;
  transform: rotate(45deg);
  animation: scrollBounce 2s infinite;
}

.typing-text {
  animation: fadeInUp 2s ease-out;
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
/* === BOTTONI PERSONALIZZATI === */
.btn-primary-custom {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  background: var(--gradient-primary);
  color: var(--text-light);
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all var(--transition-medium);
  box-shadow: var(--shadow-medium);
  border: none;
  cursor: none;
  margin: 0 10px 10px 0;
  position: relative;
  overflow: hidden;
}

.btn-primary-custom::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.btn-primary-custom:hover::before {
  left: 100%;
}

.btn-primary-custom:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-heavy);
  color: var(--text-light);
}

.btn-secondary-custom {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  background: transparent;
  color: var(--text-light);
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all var(--transition-medium);
  border: 2px solid var(--accent-color);
  cursor: none;
  margin: 0 10px 10px 0;
}

.btn-secondary-custom:hover {
  background: var(--accent-color);
  color: var(--primary-color);
  transform: translateY(-3px);
  box-shadow: var(--shadow-medium);
}

/* === SEZIONI GENERALI === */
.section-title {
  font-family: var(--font-secondary);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text-dark);
}

.section-description {
  font-size: 1.2rem;
  color: var(--secondary-color);
  margin-bottom: 50px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.highlight {
  background: var(--gradient-primary);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* === ABOUT SECTION === */
.about-section {
  padding: 100px 0;
  background: var(--text-light);
}

.about-content {
  padding-right: 40px;
}

.about-features {
  margin-top: 30px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
  font-size: 1.1rem;
  color: var(--text-dark);
}

.feature-item i {
  color: var(--primary-color);
  font-size: 1.3rem;
  width: 25px;
}

.about-image {
  position: relative;
}

.image-container {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-medium);
  transition: transform var(--transition-medium);
}

.image-container:hover {
  transform: scale(1.05);
}

.founder-image {
  width: 100%;
  height: 400px; /* Altezza fissa per controllare le dimensioni */
  object-fit: cover; /* Mantiene proporzioni e ritaglia se necessario */
  object-position: center top; /* Centra l'immagine e mostra la parte alta */
  display: block;
}

.image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(80, 33, 26, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-medium);
}

.image-container:hover .image-overlay {
  opacity: 1;
}

.play-button {
  width: 80px;
  height: 80px;
  background: var(--accent-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  font-size: 2rem;
  cursor: none;
  transition: transform var(--transition-bounce);
}

.play-button:hover {
  transform: scale(1.1);
}

/* === COURSES SECTION === */
.courses-section {
  padding: 100px 0;
  background: var(--bg-primary);
}

.filter-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 60px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 12px 25px;
  background: transparent;
  border: 2px solid var(--secondary-color);
  border-radius: 25px;
  color: var(--secondary-color);
  font-weight: 600;
  cursor: none;
  transition: all var(--transition-medium);
}

.filter-btn.active,
.filter-btn:hover {
  background: var(--secondary-color);
  color: var(--text-light);
  transform: translateY(-2px);
}

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

.course-card {
  background: var(--text-light);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-light);
  transition: all var(--transition-medium);
  cursor: none;
  opacity: 1;
  transform: scale(1);
}

.course-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: var(--shadow-heavy);
}

.course-card.featured {
  border: 3px solid var(--accent-color);
  position: relative;
}

.course-card.featured::before {
  content: '';
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;

background: rgba(165, 120, 101,0.4);  
border-radius: 20px;
  z-index: -1;
  animation: borderGlow 2s ease-in-out infinite;
}

.card-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.course-card:hover .card-image img {
  transform: scale(1.1);
}

.card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.7) 100%);
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 20px;
}

.card-badge {
  background: var(--primary-color);
  color: var(--text-light);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
}

.featured-badge {
  background: rgba(255, 255, 255, 0.95);
  color: var(--primary-color);
  animation: pulse 2s infinite;
  font-weight: 700;
  border: 2px solid var(--primary-color);
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.card-content {
  padding: 25px;
}

.card-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.card-description {
  color: var(--text-dark);
  margin-bottom: 20px;
  line-height: 1.6;
}

.card-features {
  display: flex;
  gap: 15px;
  margin-bottom: 25px;
  flex-wrap: wrap;
}

.card-features span {
  font-size: 0.85rem;
  color: var(--secondary-color);
  display: flex;
  align-items: center;
  gap: 5px;
}

.card-features i {
  font-size: 0.8rem;
}

.card-btn {
  width: 100%;
  padding: 15px;
  background: var(--gradient-primary);
  color: var(--text-light);
  border: none;
  border-radius: 12px;
  font-weight: 600;
  cursor: none;
  transition: all var(--transition-medium);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.card-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

/* Animazioni di filtro */
.course-card.hide {
  opacity: 0;
  transform: scale(0.8);
  pointer-events: none;
}

.course-card.show {
  opacity: 1;
  transform: scale(1);
  pointer-events: all;
}

/* === TESTIMONIALS SECTION === */
.testimonials-section {
  padding: 100px 0;
  background: var(--text-light);
  overflow: hidden;
}



.testimonial-card {
  min-width: 400px;
  width: 400px;
  background: var(--bg-primary);
  padding: 30px;
  border-radius: 20px;
  box-shadow: var(--shadow-light);
  display: inline-flex;
  flex-direction: column;
  gap: 20px;
  flex-shrink: 0;
  white-space: normal;
}

.testimonial-content .stars {
  color: #ffd700;
  margin-bottom: 15px;
}

.testimonial-content p {
  font-style: italic;
  color: var(--text-dark);
  line-height: 1.6;
  margin: 0;
}

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

.avatar-placeholder {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--secondary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 1.5rem;
  flex-shrink: 0;
}

.author-info h4 {
  margin: 0;
  color: var(--primary-color);
  font-weight: 600;
}

.author-info span {
  color: var(--secondary-color);
  font-size: 0.9rem;
}


/* Pausa al hover */
.testimonials-row:hover .testimonial-track {
  animation-play-state: paused;
}

.testimonials-carousel {
  position: relative;
  margin-top: 60px;
  overflow: hidden;
}

.testimonial-track {
  display: flex;
  gap: 30px;
  animation: testimonialSlide 25s linear infinite;
}

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

.testimonials-carousel:hover .testimonial-track {
  animation-play-state: paused;
}

/* Responsive */
@media (max-width: 767px) {
  .testimonial-card {
    min-width: 300px;
    width: 300px;
    padding: 25px;
  }
 
}
/* === CTA SECTION === */
.cta-section {
  padding: 100px 0;
  background: var(--gradient-primary);
  text-align: center;
}

.cta-title {
  font-family: var(--font-secondary);
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--text-light);
  margin-bottom: 20px;
}

.cta-description {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 40px;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* === SOCIAL SECTION === */
.social-section {
  padding: 80px 0;
  background: var(--bg-primary);
}

.social-title {
  font-size: 1.8rem;
  color: var(--primary-color);
  margin-bottom: 40px;
}

.social-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.social-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 25px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: all var(--transition-medium);
  cursor: none;
}

.social-btn.instagram {
  background: linear-gradient(45deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%);
  color: var(--text-light);
}

.social-btn.telegram {
  background: #0088cc;
  color: var(--text-light);
}

.social-btn.chat {
  background: #25d366;
  color: var(--text-light);
}

.social-btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-medium);
}

/* === FOOTER === */
.footer {
  background: var(--primary-color);
  color: var(--text-light);
  padding: 60px 0 30px;
}

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

.footer-logo img {
  width: 120px;
  margin-bottom: 20px;
}

.footer-logo p {
  color: rgba(255, 255, 255, 0.8);
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
}

.footer-column h4 {
  color: var(--accent-color);
  margin-bottom: 20px;
  font-size: 1.2rem;
}

.footer-column ul {
  list-style: none;
}

.footer-column ul li {
  margin-bottom: 10px;
}

.footer-column ul li a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-column ul li a:hover {
  color: var(--accent-color);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 30px;
  color: rgba(255, 255, 255, 0.7);
}

.footer-bottom a {
  color: var(--accent-color);
  text-decoration: none;
}

/* === MODAL PERSONALIZZATA === */
.modal-iframe {
  width: 100%;
  height: 80vh;
  border: none;
  border-radius: 0 0 15px 15px;
}

.modal-content {
  border-radius: 20px;
  border: none;
  overflow: hidden;
}

.modal-header {
  background: var(--gradient-primary);
  color: var(--text-light);
  border: none;
  padding: 20px 30px;
}

.modal-title {
  font-weight: 700;
  font-size: 1.3rem;
}

.btn-close {
  filter: invert(1);
  opacity: 0.8;
}

/* === ANIMAZIONI === */
@keyframes particleFloat {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  33% { transform: translateY(-20px) rotate(120deg); }
  66% { transform: translateY(10px) rotate(240deg); }
}

@keyframes floatUpDown {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}

@keyframes floatSide {
  0%, 100% { transform: translateX(0px) rotate(0deg); }
  50% { transform: translateX(20px) rotate(180deg); }
}

@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

@keyframes scrollBounce {
  0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
  40% { transform: translateX(-50%) translateY(-10px); }
}

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

@keyframes borderGlow {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

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

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes zoomIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* === RESPONSIVE DESIGN === */

/* Large Desktop */
@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
  
  .hero-title {
    font-size: 4.5rem;
  }
  
  .courses-grid {
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  }
}

/* Desktop */
@media (max-width: 1199px) {
  .hero-stats {
    gap: 40px;
  }
  
  .courses-grid {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* Tablet */
@media (max-width: 991px) {
  .hero {
    padding: 60px 0;
    min-height: auto;
  }
  
  .hero-stats {
    gap: 30px;
    margin-top: 40px;
  }
  
  .stat-number {
    font-size: 2.5rem;
  }
  
  .about-content {
    padding-right: 0;
    margin-bottom: 40px;
  }
  
  .about-section {
    padding: 80px 0;
  }
  
  .courses-section,
  .testimonials-section,
  .cta-section {
    padding: 80px 0;
  }
  
  .social-section {
    padding: 60px 0;
  }
  
  .filter-buttons {
    gap: 15px;
  }
  
  .filter-btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
  
  .testimonial-card {
    min-width: 350px;
  }
  
  .footer {
    padding: 50px 0 20px;
  }
  
  .footer-links {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }
}

/* Mobile Large */
@media (max-width: 767px) {
  /* Cursor personalizzato disabilitato su mobile */
  body {
    cursor: auto;
  }
  
  .cursor,
  .cursor-follower {
    display: none;
  }
  
  .btn-primary-custom,
  .btn-secondary-custom,
  .filter-btn,
  .card-btn,
  .social-btn,
  .play-button {
    cursor: pointer;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .hero-cta {
    margin-bottom: 40px;
  }
  
  .btn-primary-custom,
  .btn-secondary-custom {
    width: 100%;
    justify-content: center;
    margin: 10px 0;
    padding: 18px 20px;
  }
  
  .hero-stats {
    flex-direction: column;
    gap: 20px;
    align-items: center;
  }
  
  .hero-stats .stat-item {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-direction: row;
  }
  
  .stat-number {
    font-size: 2rem;
  }
  
  .section-title {
    font-size: 2.2rem;
  }
  
  .section-description {
    font-size: 1.1rem;
  }
  
  .courses-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  
  .course-card {
    margin: 0 10px;
  }
  
  .filter-buttons {
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 40px;
  }
  
  .filter-btn {
    flex: 1;
    min-width: 120px;
    text-align: center;
  }
  
  .card-features {
    flex-direction: column;
    gap: 8px;
  }
  
  .testimonial-card {
    min-width: 300px;
    margin: 0 10px;
  }
  
  .testimonial-track {
    gap: 20px;
  }
  
  .cta-buttons {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }
  
  .cta-buttons .btn-primary-custom,
  .cta-buttons .btn-secondary-custom {
    width: auto;
    min-width: 200px;
  }
  
  .social-buttons {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }
  
  .social-btn {
    width: 250px;
    justify-content: center;
  }
  
  .footer-links {
    grid-template-columns: 1fr;
    gap: 25px;
    text-align: center;
  }
  
  .footer-bottom {
    text-align: center;
  }
  
  .footer-bottom .row {
    flex-direction: column;
    gap: 10px;
  }
  
  .modal-iframe {
    height: 70vh;
  }
  
  .floating-elements {
    display: none; /* Nasconde elementi decorativi su mobile */
  }
}

/* Mobile Small */
@media (max-width: 575px) {
  .hero {
    padding: 40px 0;
  }
  
  .hero-logo img {
    max-height: 80px;
  }
  
  .hero-title {
    font-size: 2rem;
    line-height: 1.3;
  }
  
  .section-title {
    font-size: 1.8rem;
  }
  
  .btn-primary-custom,
  .btn-secondary-custom {
    padding: 15px 20px;
    font-size: 1rem;
  }
  
  .course-card {
    margin: 0 5px;
  }
  
  .card-content {
    padding: 20px;
  }
  
  .card-title {
    font-size: 1.2rem;
  }
  
  .testimonial-card {
    min-width: 280px;
    padding: 25px;
  }
  
  .loading-logo img {
    width: 80px;
  }
  
  .loading-text {
    font-size: 1rem;
  }
  
  .about-section,
  .courses-section,
  .testimonials-section,
  .cta-section {
    padding: 60px 0;
  }
  
  .social-section {
    padding: 50px 0;
  }
  
  .footer {
    padding: 40px 0 15px;
  }
}

/* Mobile Extra Small */
@media (max-width: 375px) {
  .hero-title {
    font-size: 1.8rem;
  }
  
  .section-title {
    font-size: 1.6rem;
  }
  
  .btn-primary-custom,
  .btn-secondary-custom {
    padding: 12px 16px;
    font-size: 0.95rem;
  }
  
  .course-card {
    margin: 0 2px;
  }
  
  .testimonial-card {
    min-width: 260px;
    padding: 20px;
  }
  
  .social-btn {
    width: 220px;
    padding: 12px 20px;
  }
  
  .modal-iframe {
    height: 65vh;
  }
}

/* === PERFORMANCE OPTIMIZATION === */

/* Reduce motion per utenti che preferiscono meno animazioni */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .scroll-indicator,
  .floating-elements,
  .particles-container {
    display: none;
  }
}

/* Dark mode support (se necessario in futuro) */
@media (prefers-color-scheme: dark) {
  /* Qui possono essere aggiunti stili per dark mode se richiesto */
}

/* Print styles */
@media print {
  .loading-screen,
  .cursor,
  .cursor-follower,
  .floating-elements,
  .scroll-indicator,
  .filter-buttons,
  .social-section,
  .cta-section {
    display: none !important;
  }
  
  * {
    color: black !important;
    background: white !important;
  }
  
  .hero,
  .about-section,
  .courses-section,
  .testimonials-section,
  .footer {
    background: white !important;
  }
}

/* === UTILITY CLASSES === */
.text-gradient {
  background: var(--gradient-primary);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.bg-gradient {
  background: var(--gradient-primary);
}

.shadow-custom {
  box-shadow: var(--shadow-medium);
}

.rounded-custom {
  border-radius: 20px;
}

.transition-all {
  transition: all var(--transition-medium);
}

/* Accessibilità - Focus states */
.btn-primary-custom:focus,
.btn-secondary-custom:focus,
.filter-btn:focus,
.card-btn:focus,
.social-btn:focus {
  outline: 3px solid var(--accent-color);
  outline-offset: 2px;
}

/* Skip link per accessibilità */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--primary-color);
  color: var(--text-light);
  padding: 8px;
  text-decoration: none;
  z-index: 1000;
}

.skip-link:focus {
  top: 6px;
}