/* Stile base */
body {
  font-family: 'Arial', sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f8f8f8;
  color: #333;
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Header */
header {
  background-color: rgba(0, 0, 0, 0.8);
  color: #fff;
  padding: 10px 20px;
  position: sticky;
  top: 0;
  z-index: 1000;  
  display: flex;
  overflow-x: auto;
  white-space: nowrap;
  box-shadow: inset -20px 0 10px -10px rgba(255,165,0, 0.6), /* Ombra destra */
              inset 20px 0 10px -10px rgba(255,165,0, 0.6); /* Ombra sinistra */
}


main {
  flex-grow: 1;      /* Per garantire che il contenuto principale occupi tutto lo spazio disponibile */
  padding-top: 0px; /* Per lasciare spazio alla barra di navigazione */
}



/* home page */
#home {
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
  position: relative;
}

/* Sfondo sfocato */
#home::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  filter: blur(2px) brightness(70%);
  z-index: 1;
}

/* Overlay per trasparenza */
#home::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.2); /* Trasparenza overlay */
  z-index: 2;
}


/* Contenuto */
.home-content {
  position: relative;
  z-index: 3; /* Sopra lo sfondo */
  background-color: rgba(0, 0, 0, 0.2); /* Colore di sfondo con trasparenza */
  padding: 20px;
  border-radius: 15px;
  width: 90%;
  margin-top: auto;
}


.description h1 {
  font-size: 2.5em;
  margin-bottom: 10px;
}

.description p, ul, li {
  font-size: 1em;
  line-height: 1;
  text-align: left;
}

.description a {
  color:  #D78E09;
}



/* FORM CONTATTI*/
/* Stile per la form */
.contact-form {
  // background-color: rgba(0, 0, 0, 0.2);
  padding: 20px;
  border-radius: 15px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  max-width: 600px;
  margin: auto;
  text-align: left;
}

.contact-form h2 {
  font-size: 1.8em;
  margin-bottom: 20px;
  color: #D78E09;
  text-align: center;
}

.contact-form label {
  font-weight: bold;
  margin-bottom: 5px;
  display: block;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1em;
  background-color: #fff;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #D78E09;
  outline: none;
}

.contact-form button {
  width: 100%;
  background-color: #D78E09;
  color: #fff;
  border: none;
  padding: 12px;
  border-radius: 8px;
  font-size: 1.1em;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.contact-form button:hover {
  background-color: #f5a623;
}


/*visualizzazione alert mail*/
.alert-success {
  color: #155724;
  background-color: #d4edda;
  padding: 10px;
  margin-bottom: 10px;
  border-radius: 5px;
}

.alert-error {
  color: #721c24;
  background-color: #f8d7da;
  padding: 10px;
  margin-bottom: 10px;
  border-radius: 5px;
}
