body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  color: #333;
  background: #eef2f5;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

header {
  background: #007BBD;
  color: white;
  padding: 25px 0; /* leggermente più grande */
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.header-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-block {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-img {
  height: 70px;
  width: auto;
}

.logo-text {
  font-size: 1.6rem;
  font-weight: 600;
  color: white;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 25px;
  padding: 0;
  margin: 0;
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: 500;
}

nav a.active {
  text-decoration: underline;
}

/* Sezione descrizione */
.hero-description {
  background: linear-gradient(to right, #e6f3f9, #d6ebf6);
  text-align: center;
  padding: 50px 20px;
}

.hero-description h2 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: #333;
}

.hero-description p {
  font-size: 1.1rem;
  max-width: 900px;
  margin: 0 auto;
  color: #444;
}

/* Cards */
.grid-4 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  margin-top: 40px;
  margin-bottom: 40px;
}

.card {
  background: white;
  padding: 15px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  text-align: center;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 14px rgba(0,0,0,0.15);
}

.card-logo {
  display: block;
  margin: 0 auto 10px auto;
  height: 50px; /* leggermente più piccole */
  width: auto;
}

.card h3 {
  font-size: 1.1rem;
  font-weight: 700;
}

/* Footer */
footer {
  background: #007BBD;
  color: white;
  text-align: center;
  padding: 15px; /* ridotto */
  margin-top: 30px;
  font-size: 0.9rem;
}

footer p {
  margin: 5px 0;
}

/* Responsive */
@media (max-width: 900px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .logo-text {
    font-size: 1.2rem;
  }
}
/* Sfondo con pattern logo */
.patterned-bg {
  position: relative;
  background-color: #e6f3f9;
  background-image: url('images/logo.png');
  background-repeat: repeat;
  background-size: 150px;
  background-position: center;
}

.patterned-bg::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(230, 243, 249, 0.9);
}

.patterned-bg .container {
  position: relative;
  z-index: 1;
}
/* Allinea il contenuto delle card dei servizi a sinistra */
.left-text {
  text-align: left;
}

/* Titoli dei servizi con sfondo pieno */
.service-title {
  background-color: #007BBD;
  color: #fff;
  padding: 8px 12px;
  border-radius: 6px;
  display: inline-block;
  margin-bottom: 15px;
}
/* Griglia team 2 colonne su desktop */
.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
}

@media (max-width: 768px) {
  .team-grid {
    grid-template-columns: 1fr;
  }
}
