/* Stile generale */

html {
  background-color: #fff;
  height: 100vh;
}

body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  height: 100vh;
}

.main-bg {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  top: 0;
  background: url('assets/images/main-bg.jpg') center / cover no-repeat;
  z-index: -2;
}

.overlay {
  background: linear-gradient(180deg, #ffa500 10px, #ffa5001E 99%);
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  top: 0;
  z-index: -1;
}

header {
  background: #f9f9f9 linear-gradient(180deg, #fff 60%, #ffa500);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: start;
  align-items: center;
  color: #333;
  min-height: 20rem;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  max-height: 200px;
  margin-right: 10px;
}

.language-switcher button {
  background: none;
  border: none;
  font-size: 1rem;
  cursor: pointer;
}

main {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  color: #fff;
}

#hero {
  text-align: center;
  margin-bottom: 2rem;
}

#features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
  color: #333;
}

.feature {
  background-color: #fff;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.feature h3 {
  color: #ffa500;
  margin-bottom: 0.5rem;
}

#cta {
  text-align: center;
}

#cta button {
  background-color: #ffa500;
  color: #fff;
  border: none;
  padding: 1rem 2rem;
  font-size: 1rem;
  border-radius: 5px;
  cursor: pointer;
}

#cta button:hover {
  background-color: #cc8400;
}

/* Stile per il modulo di contatto */
#info-form {
  background-color: #ffffff;
  border-radius: 8px;
  padding: 20px;
  display: flex;
  margin: 0 auto;
  max-width: 70%;
  min-width: 60%;
  margin-top: 3rem;
  flex-direction: column;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

#info-form h2 {
  font-size: 1.5rem;
  color: #333;
  margin-bottom: 10px;
  text-align: center;
}

#info-form form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

#info-form label {
  font-size: 1rem;
  color: #555;
}

#info-form input,
#info-form textarea {
  padding: 10px;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 5px;
  width: 100%;
  box-sizing: border-box;
}

#info-form textarea {
  resize: vertical;
  min-height: 100px;
}

.cta {
  position: absolute;
  top: 1rem;
  right: 1rem;
}

#info-form button,
.cta {
  background-color: #ffa500;
  color: #fff;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#info-form button:hover {
  background-color: #cc8400;
}


footer {
  background-color: #333;
  color: #fff;
  text-align: center;
  padding: 1rem 0;
}
