/* Evita overflow orizzontale */
html, body {
    overflow-x: hidden;
  }
  
  /* Reset di base */
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body {
    font-family: 'Poppins', sans-serif;
    color: #333;
    background: #f9f9f9;
  }
  
  /* Container generico */
  .container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
  }
  
  /* Navbar */
  .navbar {
    background-color: #02366e;
    position: sticky;
    top: 0;
    z-index: 999;
  }
  
  .nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
  }
  
  .logo-img {
    height: 50px;
  }
  
  .nav-links {
    list-style: none;
    display: flex;
    align-items: center;
  }
  
  .nav-links li a {
    color: #fff;
    text-decoration: none;
    margin-left: 20px;
    font-weight: 500;
    transition: color 0.3s, transform 0.3s;
  }
  
  .nav-links li a:hover {
    color: #ffd23f;
    transform: translateX(5px);
  }
  
  /* Toggle menu (mobile) */
  .menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
  }
  
  .menu-toggle .bar {
    height: 3px;
    width: 25px;
    background-color: #fff;
    margin: 4px 0;
    transition: 0.3s;
  }
  
  /* Hero */
  .hero {
    background: url('img/hero-ludo.png') no-repeat center center/cover;
    height: 100vh;
    display: flex;
    align-items: center;
    color: #fff;
    text-align: center;
  }
  
  .hero-content {
    max-width: 700px;
    margin: 0 auto;
    animation: fadeInUp 1s ease-out;
  }
  
  .hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
  }
  
  .hero-content p {
    font-size: 1.1rem;
    margin-bottom: 30px;
  }
  
  .btn-hero {
    background: #f63d2b;
    color: #fff;
    padding: 12px 30px;
    text-decoration: none;
    font-weight: 600;
    border-radius: 5px;
    transition: background 0.3s, transform 0.3s;
  }
  
  .btn-hero:hover {
    background: #d92c1d;
    transform: scale(1.05);
  }
  
  /* Intro Section */
  .intro {
    background: #fff;
    padding: 40px 0;
  }
  
  .intro-flex {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease-out;
  }
  
  .intro-text {
    flex: 1;
    margin-right: 20px;
  }
  
  .intro-text h2 {
    font-size: 2rem;
    margin-bottom: 10px;
    color: #02366e;
  }
  
  .intro-text p {
    font-size: 1rem;
    line-height: 1.6;
  }
  
  .intro-img {
    flex: 1;
    text-align: center;
  }
  
  .intro-img img {
    max-width: 60%;
    height: auto;
    border-radius: 10px;
    transition: transform 0.3s;
  }
  
  .intro-img img:hover {
    transform: scale(1.05);
  }
  
  /* Funzionalità */
  .funzionalita {
    background: #f9f9f9;
    padding: 60px 0;
    text-align: center;
  }
  
  .funzionalita h2 {
    font-size: 2rem;
    color: #02366e;
    margin-bottom: 10px;
  }
  
  .subtitle {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 40px;
  }
  
  .feature-block {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 40px;
    align-items: center;
    justify-content: center;
    animation: fadeInUp 1s ease-out;
  }
  
  .feature-block.reverse {
    flex-direction: row-reverse;
  }
  
  .feature-text, .feature-text-wide {
    flex: 1;
    min-width: 250px;
    margin: 10px 20px;
    text-align: left;
  }
  
  .feature-text h3 {
    color: #f63d2b;
    margin-bottom: 10px;
  }
  
  .feature-img {
    flex: 1;
    min-width: 250px;
    text-align: center;
  }
  
  .feature-img img {
    max-width: 100%;
    border-radius: 8px;
    transition: transform 0.3s;
  }
  
  .feature-img img:hover {
    transform: scale(1.05);
  }
  
  /* Abbonamenti */
  .abbonamenti {
    background: #fff;
    padding: 60px 0;
    text-align: center;
    animation: fadeInUp 1s ease-out;
  }
  
  .abbonamenti-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
  }
  
  .abbon-box {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    text-align: left;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
  }
  
  .abbon-box h3 {
    color: #f63d2b;
    margin-bottom: 10px;
  }
  
  /* Fatturazione */
  .fatturazione {
    background: #f9f9f9;
    padding: 60px 0;
    text-align: center;
    animation: fadeInUp 1s ease-out;
  }
  
  .fatturazione-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 40px;
  }
  
  .fatturazione-text {
    flex: 1;
    min-width: 250px;
    margin: 10px 20px;
    text-align: left;
  }
  
  .fatturazione-img {
    flex: 1;
    min-width: 250px;
    text-align: center;
  }
  
  .fatturazione-img img {
    max-width: 100%;
    border-radius: 8px;
    transition: transform 0.3s;
  }
  
  .fatturazione-img img:hover {
    transform: scale(1.05);
  }
  
  /* Impostazioni */
  .impostazioni {
    background: #fff;
    padding: 60px 0;
    text-align: center;
    animation: fadeInUp 1s ease-out;
  }
  
  .impostazioni-flex {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 40px;
  }
  
  .imp-card {
    background: #f9f9f9;
    margin: 10px 20px;
    padding: 20px;
    border-radius: 8px;
    flex: 1;
    min-width: 250px;
    max-width: 400px;
    text-align: left;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
  }
  
  .imp-card h3 {
    color: #f63d2b;
    margin-bottom: 10px;
  }
  
  /* Gallery */
  .gallery {
    background: #f9f9f9;
    padding: 60px 0;
    text-align: center;
    animation: fadeInUp 1s ease-out;
  }
  
  .gallery h2 {
    font-size: 2rem;
    color: #02366e;
    margin-bottom: 10px;
  }
  
  .gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-top: 40px;
  }
  
  .gallery-grid img {
    width: 100%;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s;
  }
  
  .gallery-grid img:hover {
    transform: scale(1.05);
  }
  
  /* Lightbox */
  .lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
  }
  
  .lightbox-content {
    max-width: 90%;
    max-height: 80%;
    border-radius: 8px;
    animation: fadeInUp 0.5s ease-out;
  }
  
  .lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: #fff;
    cursor: pointer;
    transition: color 0.3s;
  }
  
  .lightbox-close:hover {
    color: #ffd23f;
  }
  
  /* CTA Finale */
  .cta-finale {
    background: #ffdd57;
    color: #02366e;
    padding: 60px 0;
    text-align: center;
    animation: fadeInUp 1s ease-out;
  }
  
  .cta-container {
    max-width: 700px;
    margin: 0 auto;
  }
  
  .cta-container h2 {
    font-size: 2rem;
    margin-bottom: 20px;
  }
  
  .cta-container p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 20px;
  }
  
  .btn-cta {
    display: inline-block;
    background: #f63d2b;
    color: #fff;
    padding: 12px 30px;
    text-decoration: none;
    font-weight: 600;
    border-radius: 5px;
    transition: background 0.3s, transform 0.3s;
    margin-top: 20px;
  }
  
  .btn-cta:hover {
    background: #d92c1d;
    transform: scale(1.05);
  }

  /* Modal Contact Form Styles */
.modal {
    display: none; /* Nascosto di default */
    position: fixed;
    z-index: 1100; /* Al di sopra della lightbox e navbar */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    background-color: rgba(0,0,0,0.8);
    align-items: center;
    justify-content: center;
    padding: 20px;
  }
  
  .modal-content {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    max-width: 500px;
    width: 100%;
    position: relative;
    animation: fadeInUp 0.5s ease-out;
  }
  
  .modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 30px;
    color: #333;
    cursor: pointer;
    transition: color 0.3s;
  }
  
  .modal-close:hover {
    color: #f63d2b;
  }
  
  .modal h2 {
    margin-bottom: 20px;
    color: #02366e;
  }
  
  .form-group {
    margin-bottom: 15px;
    text-align: left;
  }
  
  .form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
  }
  
  .form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
  }
  
  .btn-submit {
    display: block;
    width: 100%;
    padding: 12px;
    background: #f63d2b;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
  }
  
  .btn-submit:hover {
    background: #d92c1d;
    transform: scale(1.02);
  }
  
  
  /* Footer */
  footer {
    background: #02366e;
    color: #fff;
    text-align: center;
    padding: 20px 0;
    font-size: 10px;
  }
  
  .footer-content p {
    margin: 0;
  }
  
  /* Animazione Fade In Up */
  @keyframes fadeInUp {
    from {
      opacity: 0;
      transform: translateY(20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  /* Responsive */
  @media (max-width: 768px) {
    .menu-toggle {
      display: flex;
    }
  
    nav {
      position: absolute;
      top: 70px;
      right: 0;
      background-color: #02366e;
      width: 200px;
      transform: translateX(100%);
      transition: transform 0.3s ease-in-out;
    }
  
    nav.show {
      transform: translateX(0%);
    }
  
    .nav-links {
      flex-direction: column;
      align-items: flex-start;
      padding: 20px;
    }
  
    .nav-links li {
      margin: 15px 0;
    }
  
    .hero {
      height: auto;
      padding: 60px 0;
    }
  
    .feature-block,
    .fatturazione-content,
    .intro-flex {
      flex-direction: column !important;
    }
  
    .feature-text,
    .feature-text-wide,
    .fatturazione-text,
    .intro-text {
      margin-right: 0;
      text-align: center;
    }
  
    .feature-block.reverse {
      flex-direction: column !important;
    }
  }
  