:root {
  --apple-blue: #0066cc;
  --soft-blue: #e8f2ff;
}

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

body {
  font-family: "Inter", sans-serif;
  color: #1d1d1f;
  background-color: #ffffff;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding-inline: 3rem;
}

footer {
  background-color: #f5f5f7;
  font-size: 0.85rem;
  color: #6e6e73;
  border-top: 1px solid #d2d2d7;
  padding-inline: 3rem;
  padding-block: 3rem;
}

/* --- SEZIONE HERO --- */
.hero {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 100dvh;
}

.content-wrapper {
  max-width: 900px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.main-logo-img {
  width: 1200px;
  height: 350px;
}

.main-title {
  font-family: "Comic Sans MS", "Comic Sans", cursive;
  font-size: 2rem;
  font-weight: 600;
  color: rgb(14, 61, 139);
  line-height: 1.2;
  font-style: italic;
  margin-top: -3rem;
  margin-bottom: 4rem;
}

/* Badge Animato */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 2rem;
  background-color: var(--soft-blue);
  color: var(--apple-blue);
  border-radius: 2rem;
  font-size: 1rem;
  font-weight: 600;
  animation: pulse-blue 3s infinite ease-in-out;
}

@keyframes pulse-blue {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(0, 102, 204, 0.4);
  }
  70% {
    transform: scale(1.03);
    box-shadow: 0 0 0 15px rgba(0, 102, 204, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(0, 102, 204, 0);
  }
}

/* --- FOOTER --- */

.footer-content {
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
}

.footer-section {
  width: 30%;
  text-align: center;
}

.footer-section strong {
  color: #1d1d1f;
  display: inline-block;
  margin-bottom: 10px;
}

.footer-section a {
  color: var(--apple-blue);
  text-decoration: none;
}

.contacts-central {
  text-align: center;
  border-inline: 1px solid #d2d2d7;
}
.hours {
  display: block;
  margin-top: 10px;
  color: #86868b;
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
  .main-logo-img {
    width: 90%;
  }
  .main-title {
    font-size: 1.5rem;
  }
  .footer-content {
    flex-direction: column;
    text-align: center;
  }
}

/* --- RESPONSIVE (Smartphone) --- */
@media (max-width: 768px) {
  /* 1. Riduciamo i margini laterali del main e del footer (3rem è troppo su mobile) */
  main,
  footer {
    padding-inline: 1.5rem;
  }

  /* 2. Sistemiamo l'immagine del logo */
  .main-logo-img {
    width: 100%; /* Occupa la larghezza disponibile */
    height: auto; /* Impedisce che l'immagine si schiacci */
    max-height: 250px; /* Evita che diventi troppo alta occupando tutto lo schermo */
    object-fit: contain;
  }

  /* 3. Adattiamo il titolo in Comic Sans */
  .main-title {
    font-size: 1.2rem; /* Più piccolo per non andare a capo troppe volte */
    margin-top: -1rem; /* Riduciamo il margine negativo per evitare sovrapposizioni */
    margin-bottom: 3rem;
    padding: 0 10px;
  }

  /* 4. Rimpiccioliamo leggermente il badge per farlo stare su una riga */
  .badge {
    font-size: 0.9rem;
    padding: 0.8rem 1.5rem;
    gap: 0.7rem;
  }

  .footer-section {
    width: 100%;
    text-align: center;
  }

  /* 5. Footer: Incolonniamo le tre sezioni */
  .footer-content {
    flex-direction: column;
    text-align: center;
    gap: 2.5rem; /* Aumentiamo lo spazio tra i blocchi di testo per leggibilità */
    font-size: 0.8rem;
  }

  /* Allineiamo i contatti centrali come gli altri blocchi nel footer mobile */
  .contacts-central {
    text-align: center;
    border-inline: none;
    border-block: 1px solid #d2d2d7;
    padding-block: 1.5rem;
  }
}
