@import url(Styles/hero.css);
@import url(Styles/card_section.css);
@import url(Styles/Section_3.css);
@import url(Styles/Partner-section.css);
@import url(Styles/form-section.css);
@import url(Styles/Foteer.css);
@import url(Styles/pages.css); 
@import url(Styles/pages_chisiamo.css);
@import url(Styles/blog.css);
@import url(Styles/formazione_sottopg\(1\).css);
@import url(Styles/sezione_presentativa.css);
@import url(Styles/eventi.css);
@import url(Styles/regione-campania.css);

/* RESET & GENERAL STYLES START */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Forum', serif;
  color: #1a1a1a;
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
/* RESET & GENERAL STYLES END */

.separator{
  border: 1px solid #B7061A;
}

/* RESPONSIVE STYLES START */
@media screen and (max-width: 1024px) {
  .navbar-center {
    gap: 20px;
  }
  
  .hero-title {
    font-size: 56px;
  }
  
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (max-width: 768px) {
  .navbar-center {
    display: none;
  }
  
  .navbar-right {
    flex-direction: column;
    gap: 8px;
  }
  
  .btn-outline,
  .btn-primary {
    padding: 8px 16px;
    font-size: 12px;
  }
  
  .hero-content {
    padding: 0 20px;
  }
  
  .hero-title {
    font-size: 40px;
  }
  
  .hero-description {
    font-size: 16px;
  }
  
  .hero-cta {
    padding: 14px 24px;
    font-size: 14px;
  }
  
  .section-title {
    font-size: 36px;
  }
  
  .cards-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .training-section {
    padding: 60px 0;
  }
}

@media screen and (max-width: 480px) {
  .navbar-container {
    padding: 0 20px;
  }
  
  .hero-title {
    font-size: 32px;
  }
  
  .section-title {
    font-size: 28px;
  }
}
/* RESPONSIVE STYLES END */

/* ========================================
   MOBILE OPTIMIZATIONS
   ======================================== */

@media screen and (max-width: 768px) {
  /* Prevent horizontal scroll */
  html, body {
    overflow-x: hidden;
    width: 100%;
  }
  
  /* Migliora touch targets */
  a, button {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
  
  /* Ottimizza immagini per mobile */
  img {
    max-width: 100%;
    height: auto;
  }
  
  /* Rimuovi animazioni per performance su mobile */
  @media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0.01ms !important;
    }
  }
}

/* Migliora leggibilità su schermi piccoli */
@media screen and (max-width: 480px) {
  body {
    font-size: 14px;
    line-height: 1.5;
  }
  
  p {
    margin-bottom: 16px;
  }
  
  h1, h2, h3, h4, h5, h6 {
    line-height: 1.2;
  }
}

/* Fix per iOS Safari */
@supports (-webkit-touch-callout: none) {
  .hero {
    min-height: -webkit-fill-available;
  }
}