/* Impostazioni generali */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
html, body {
    font-family: 'Arial', sans-serif;
    color: #333;
    height: 100%;
    display: flex;
    flex-direction: column;
    background-color: #f5f5f5;
}

/* HEADER */
header {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    text-align: center;
    padding: 20px 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 10;
}
.header-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}
header h1 {
    font-size: 2.5em;
    font-weight: bold;
}
header h2 {
    font-weight: 300;
    font-size: 1.2em;
    margin-top: 5px;
    opacity: 0.9;
}

/* NAVBAR */
nav {
    background-color: #004080;
    padding: 10px 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.navbar {
    display: flex;
    justify-content: center;
    gap: 15px;
}
.navbar li {
    list-style: none;
}
.navbar a {
    color: #fff;
    padding: 10px 15px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    transition: 0.3s ease;
}
.navbar a:hover {
    background-color: #003366;
    transform: scale(1.05);
}

/* MAIN */
/* MAIN */
main {
    flex: 1;
    padding: 20px;
    background-image: url('immagini/sfondoSito2.webp'); /* Path all'immagine */
    background-size: cover; /* Copre tutta l'area */
    background-position: center; /* Centra l'immagine */
    background-repeat: no-repeat; /* Evita che l'immagine si ripeta */
    color: #333333; /* Colore del testo */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.contact-container {
    display: flex;
    justify-content: flex-end;
    gap: 20px;
    margin-top: 30px;
    width: 100%;
}

.contact-box {
    background-color: #f4f4f4;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 200px;
    text-align: center;
}

.contact-box h3 {
    font-size: 1.2em;
    margin-bottom: 10px;
}

.contact-box p {
    font-size: 1em;
    color: #333;
    margin: 0;
}

@media (max-width: 768px) {
    .contact-container {
        flex-direction: column;
        align-items: flex-end;
    }

    .contact-box {
        width: auto;
        margin-bottom: 15px;
    }
}
.intro {
    background-color: rgba(0, 0, 0, 0.7);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    max-width: 600px;
    color: #d4af37; /* Colore oro per il testo */
}
.intro h3 {
    font-size: 2em;
    margin-bottom: 15px;
    color: #d4af37; /* Colore oro per il testo */
}
.intro p {
    font-size: 1.2em;
    line-height: 1.6;
    color: #d4af37; /* Colore oro per il testo */
}

/* FOOTER */
footer {
    background-color: #003366;
    color: white;
    padding: 15px;
    text-align: center;
}
.footer-info {
    margin-bottom: 10px;
}
.made-in-italy {
    font-size: 1.2em;
    background: linear-gradient(90deg, rgba(255,0,0,0.8), rgba(255,255,255,0.8), rgba(0,128,0,0.8));
    color: #000; /* Imposta il colore del testo su nero */
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    text-transform: uppercase; /* Aggiunge un effetto maiuscolo */
}
/* Aggiungi queste regole in fondo al tuo CSS esistente */
@media (max-width: 768px) {
    /* Header mobile */
    header {
      padding: 10px 0;
      position: relative;
    }
    
    header h1 {
      font-size: 1.5rem !important;
      line-height: 1.2;
    }
    
    header h2 {
      font-size: 0.9rem !important;
      padding: 0 10px;
      line-height: 1.4;
    }
  
    /* Navbar mobile */
    .navbar {
      flex-direction: column;
      gap: 0;
      display: none;
    }
    
    .navbar.active {
      display: flex;
    }
    
    .navbar li {
      width: 100%;
      text-align: center;
      border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    }
    
    .navbar a {
      padding: 12px 10px !important;
      font-size: 0.9rem;
    }
  
    /* Hamburger menu */
    .menu-toggle {
      display: block;
      text-align: center;
      padding: 10px;
      background: rgba(0, 0, 0, 0.2);
      margin-top: 10px;
    }
  
    /* Contenuto principale */
    main {
      padding: 15px !important;
    }
    
    .intro {
      width: 100% !important;
      max-width: 100% !important;
      padding: 15px !important;
      margin: 10px 0 !important;
    }
    
    .intro h3 {
      font-size: 1.2rem !important;
    }
    
    .intro p {
      font-size: 0.9rem !important;
      line-height: 1.4;
    }
  
    /* Footer mobile */
    footer {
      padding: 15px 10px !important;
    }
    
    .made-in-italy {
      font-size: 0.9rem !important;
      margin: 5px 0;
    }
    
    .footer-info p {
      font-size: 0.8rem !important;
      line-height: 1.4;
    }
  }
  
  @media (max-width: 480px) {
    header h1 {
      font-size: 1.3rem !important;
    }
    
    header h2 {
      font-size: 0.8rem !important;
    }
    
    .navbar a {
      font-size: 0.85rem !important;
    }
  }


