* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Helvetica Neue", sans-serif;
  line-height: 1.6;
  background-color: #fff;
  color: #111;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ===== NAVBAR ===== */
nav.navbar {
  background-color: #002b55;
  width: 100%;
  z-index: 1000;
}

.container.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  padding: 0.8rem 1.5rem;
  margin: 0 auto;
}

.logo.small {
  height: 70px; /* o prova anche 80px se vuoi qualcosa di più evidente */
}

@media (max-width: 768px) {
  .burger {
    font-size: 50px;
  }
}

.burger {
  display: none;
  font-size: 70px; /* aumentato */
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  position: absolute;
  top: 8px; /* aggiustato per centrare meglio verticalmente */
  right: 16px;
}
@media (max-width: 768px) {
  .burger {
    display: block;
    font-size: 50px; /* leggermente ridotto su mobile */
    top: 12px; /* regola se serve */
  }
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.nav-links li a {
  color: white;
  font-weight: 500;
  font-size: 1rem;
  transition: opacity 0.3s ease;
}

.nav-links li a:hover {
  opacity: 0.8;
}

/* ===== HERO HOME ===== */
.hero.hero-home {
  background: url("img/header-background.png") no-repeat center center/cover;
  color: white;
  text-align: center;
  padding: 7rem 1.5rem 3rem;
}

.hero.hero-home h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero.hero-home p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.cta-button {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  margin: 0.5rem;
  border-radius: 5px;
  font-weight: bold;
  font-size: 1rem;
  border: 2px solid white;
  background-color: white;
  color: #002b55;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.cta-button:hover {
  background-color: #f0f0f0;
}

.cta-button.secondary {
  background-color: transparent;
  color: white;
  border-color: white;
}

.cta-button.secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* ===== HERO SUBPAGE ===== */
.hero.hero-compact {
  background: url("img/header-background.png") no-repeat center center/cover;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  min-height: 30vh;
  padding: 3rem 1rem 2rem;
}
.hero.hero-compact h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.hero.hero-compact p {
  font-size: 1rem;
  font-weight: 500;
}

/* ===== SECTION BASE ===== */
.section {
  padding: 3rem 1.5rem;
}

.section h2 {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 2rem;
  color: #002b55;
}

.section h3 {
  text-align: center;
}

.section p {
  max-width: 800px;
  margin: 0 auto 2rem;
  text-align: center;
  font-size: 1.1rem;
  line-height: 1.6;
}

/* ===== SERVIZI ===== */
.service-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.service-card {
  background-color: #f5f5f5;
  padding: 1.5rem;
  border-radius: 8px;
  max-width: 800px;
  margin: 0 auto;
}

.service-card h3 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: #002b55;
}

@media (min-width: 768px) {
  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ===== TEAM ===== */
.team-card-wrapper {
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.team-card {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
}

.team-photo {
  width: 200px;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.team-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.team-text h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #002b55;
}

.team-text p {
  font-size: 1rem;
  line-height: 1.6;
  color: #000;
  text-align: justify;
}
/* Responsive */
@media (max-width: 768px) {
  .team-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .team-photo {
    width: 60%;
  }

  .team-text h3 {
    margin-top: 1rem;
  }

  .team-text p {
    text-align: center;
  }
}

/* ===== CONTATTI ===== */
.contact-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
}

.contact-links a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #fff;
  font-size: 1rem;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.contact-links a:hover {
  color: #ddd;
}

.contact-links svg {
  fill: currentColor;
}

/* ===== FOOTER ===== */
.footer {
  background-color: #002b55;
  color: white;
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;
}

/* ===== ANIMAZIONI ===== */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.8s ease-out forwards;
}

.fade-up.delay-1 {
  animation-delay: 0.3s;
}
.fade-up.delay-2 {
  animation-delay: 0.6s;
}
.fade-up.delay-3 {
  animation-delay: 0.9s;
}

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

/* ===== MEDIA QUERIES ===== */
@media (max-width: 768px) {
  .burger {
    display: block;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    background-color: #002b55;
    position: absolute;
    top: 60px;
    right: 0;
    width: 200px;
    padding: 1rem;
    box-shadow: -2px 2px 6px rgba(0, 0, 0, 0.2);
    z-index: 99;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links li a {
    padding: 0.5rem 0;
  }

  .buttons {
    flex-direction: column;
    gap: 0.5rem;
  }

  .cta-button {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .hero.hero-home {
    padding-top: 6rem;
    padding-bottom: 2rem;
  }

  .hero.hero-home h1 {
    font-size: 1.8rem;
    line-height: 2.2rem;
  }

  .hero.hero-home p,
  .hero.hero-compact p {
    font-size: 1rem;
  }

  nav.navbar {
    padding: 0.5rem 1rem;
  }

  .service-card {
    padding: 1rem;
  }

  .contact-links {
    padding: 0 1rem;
  }

  .hero.hero-compact {
    min-height: 35vh;
    padding-top: 3rem;
  }

  .hero.hero-compact h1 {
    font-size: 1.6rem;
  }
}

iframe {
  border: none;
  width: 100%;
  height: 1400px; /* scegli un'altezza che copra il form */
  overflow: hidden;
}
