html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Open Sans', sans-serif;
  margin: 0;
  background: #f7f9fb;
  color: #333;
  scroll-behavior: smooth;
}

header {
  background: #0074D9;
  color: white;
  padding: 1em;
  text-align: center;
  position: sticky;
  top: 0;
  z-index: 1000;
}

nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  margin-top: 0.5em;
}

nav a {
  color: white;
  text-decoration: none;
  padding: 0.5em 1em;
  font-weight: bold;
  transition: background-color 0.3s, color 0.3s;
  border-radius: 5px;
}

nav a:hover {
  background-color: rgba(255, 255, 255, 0.2);
  color: #ffd700;
}

nav a.btn {
  background: white;
  color: #0074D9;
  border-radius: 5px;
}

.hero {
  display: flex;
  flex-direction: column; 
  align-items: center;
  text-align: center;
  padding: 2em;
  background: #e8f4fd;
}

.hero-text {
  flex: 1;
  padding: 1em;
}

.hero-img {
  max-width: 400px;
  width: 100%;
  margin-top: 1em;
}

.btn-cta {
  background: #0074D9;
  color: white;
  padding: 0.7em 1.5em;
  border-radius: 25px;
  text-decoration: none;
  display: inline-block;
  margin-top: 1em;
}

section {
  padding: 2em;
  margin-bottom: 1em;
  background: white;
}

.servizi .cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1em;
}

.card {
  background: #ecf7ff;
  padding: 1em;
  border-radius: 10px;
  width: 250px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  text-align: center;
}

.testimonials {
  display: flex;
  flex-wrap: wrap;
  gap: 1em;
  justify-content: center;
}

blockquote {
  background: #f0f8ff;
  border-left: 5px solid #0074D9;
  padding: 1em;
  max-width: 400px;
  font-style: italic;
}

blockquote cite {
  display: block;
  margin-top: 0.5em;
  text-align: right;
  font-weight: bold;
}

form {
  display: flex;
  flex-direction: column;
  max-width: 400px;
  margin: auto;
  gap: 10px;
}

input, textarea, button {
  padding: 10px;
  font-size: 1em;
  border: 1px solid #ccc;
  border-radius: 5px;
}

button {
  background: #0074D9;
  color: white;
  border: none;
  cursor: pointer;
}

button:hover {
  background: #005fa3;
}

footer {
  background: #0074D9;
  color: white;
  text-align: center;
  padding: 1em;
}

.logout {
  text-decoration: none;
  text-align: center;
  margin-top: 20px;
}
.center {
  text-align: center;
}

/* Animazioni */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s ease forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
