body 
{
  box-sizing: border-box;
}

body, html 
{
  height: 100%; /* Imposta l'altezza di body e html al 100% */
  margin: 0;
  font-family: "normale";
  /* overflow: hidden; */
}

.page-container 
{
  height: 100vh; 
  overflow: auto;  
}

.top-bar 
{
  background-color: #1e56a0;
  color: white;
  padding: 15px 20px;
  height: 100px;
  position: relative;
  text-align: left;
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

.contact-info 
{
  font-size: 15px;
  margin-left: 200px;
  margin-top: -15px;
}

.white-bar 
{
  width: 80%;
  background: white;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  position: absolute;
  top: 60px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 35px 30px;
  z-index: 2;
  border-bottom: 4px solid #1e56a0;
}

.nav-links 
{
  display: flex;
  flex-direction: row; /* Allinea i link orizzontalmente */
  justify-content: flex-start; /* Allinea i link a sinistra */
  gap: 15px; /* Distanza tra i link */
  width: auto;
  margin-top: 0;
  order: 0; /* Ripristina l'ordine normale */
}

.nav-links a 
{
  margin: 0;
  text-decoration: none;
  color: #1e56a0;
  font-weight: bold;
  position: relative;
}

.nav-links a::after 
{
  content: '';
  position: absolute;
  width: 0%;
  height: 3px;
  background-color: #1e56a0;
  left: 0;
  bottom: -5px;
  transition: width 0.3s ease;
}

.nav-links a:hover::after 
{
  width: 100%;
}

.logo 
{
  position: relative;
  top: -40px; /* Fa salire il logo sopra la barra */
}

.logo img {
  height: 100px;
  top: 0;
  animation: pulsate 3s infinite ease-in-out;
  transform-origin: center center;
  will-change: transform;
  image-rendering: smooth; /* Migliora la resa dell'immagine */
  backface-visibility: hidden; /* Prevenzione per artefatti visivi */
  filter: blur(0.2px);
}

@keyframes pulsate {
  0% {
    transform: scale3d(1, 1, 1); /* Usa scale3d per migliori performance */
  }
  50% {
    transform: scale3d(1.2, 1.2, 1); /* Aumenta la dimensione */
  }
  100% {
    transform: scale3d(1, 1, 1); /* Torna alla dimensione normale */
  }
}



.privacy 
{
  max-width: 800px;
  margin: 100px auto 40px auto;
  padding: 0 20px;
  font-size: 18px;
  line-height: 1.6;
  text-align: justify;
}

.social-links 
{
  display: flex;
  justify-content: flex-end;
  align-items: center;
  width: 100px;
}

.iconaInstagram
{
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.iconaInstagram:hover
{
  transform: scale(1.1);
}

@media (max-width: 970px) 
{
  .privacy 
  {
    font-size: 16px;
    margin-top: 60px;
    padding: 0 15px;
  }

  .white-bar 
  {
    flex-direction: row; /* ← cambia da column a row */
    align-items: center;
    justify-content: space-between; /* Spazia tra nav e social */
    width: 95%;
    padding: 20px 10px;
    top: 0;
    position: relative;
    flex-wrap: wrap; /* permette di andare a capo se lo spazio non basta */
  }

  .nav-links 
  {
    flex-direction: column;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 10px;
  }

  .nav-links a 
  {
    margin: 0 15px;
    text-align: left;
    max-width: 100px;
  }

  .logo-container 
  {
    order: 1;
    align-self: center;
    margin-bottom: 10px;
    position: relative;
    transform: none;
  }

  .social-links 
  {
    margin-left: auto; /* Spinge a destra */
    width: auto;
    display: flex;
    justify-content: flex-end;
  }

  .logo-circle 
  {
    width: 100px;
    height: 100px;
    top: 0;
  }

  .logo img 
  {
    height: 80px;
    top: 0;
  }

  .carousel 
  {
    margin-top: 100px; 
  }

  .top-bar 
  {
    height: 60px;
    padding: 10px 15px;
  }

  .contact-info 
  {
    font-size: 13px;
    margin-left: 0;
    margin-top: 0;
  }

  .carousel 
  {
    width: 95% !important; 
    margin: 30px auto !important; 
    border-radius: 15px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;
    position: relative !important;
  }

  .carousel-track 
  {
    width: 100% !important; 
  }

  .carousel-track img 
  {
    width: 100% !important; 
    max-height: 450px !important; 
    object-fit: cover !important; 
  }

  .slogan 
  {
    margin-top: 20px !important;
  }
}

.logo-container 
{
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo-circle 
{
  background: white;
  border-radius: 50%;
  width: 160px;
  height: 160px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  /* box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2); */
  border-bottom: 4px solid #1e56a0;
  top: -20px;
}

.logo img 
{
  height: 120px; /* prima era più alto */
  position: relative; /* Aggiungi la posizione relativa al logo */
  top: 40px; /* Sposta il logo verso il basso */
}

.carousel 
{
  width: 80%;
  margin: 30px auto 50px auto;
  overflow: hidden; /* Nasconde le immagini fuori dalla vista */
  border-radius: 15px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  position: relative;
}

.carousel-track 
{
  display: flex;
  transition: transform 1s ease-in-out; /* Transizione fluida */
}

.carousel-track img 
{
  width: 100%; /* Ogni immagine prende tutta la larghezza del contenitore */
  max-height: 500px;
  display: block;
  flex-shrink: 0; /* Impedisce che le immagini si riducano in larghezza */
}

.carousel-button 
{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0,0,0,0.5);
  color: white;
  padding: 10px;
  border: none;
  cursor: pointer;
  border-radius: 5px;
}

.prev 
{
  left: 0;
}

.next 
{
  right: 0;
}

.footer 
{
  background-color: #1e56a0;
  color: white;
  text-align: center;
  padding-top: 60px;
  padding-right: 20px;
  padding-bottom: 20px;
  padding-left: 20px; 
  font-size: 14px;
  /* position: fixed; */
  bottom: 0;
  left: 0;
  max-width: 100%;
  clip-path: polygon(0 0, 50% 40px, 100% 0, 100% 100%, 0 100%);
  z-index: 2;
}

.footer-content 
{
  position: relative;
  z-index: 1;
}

.footer-piva 
{
  font-size: 15px;
  margin-bottom: 10px;
}

.slogan 
{
  color: #1e56a0;
  font-weight: bolder;
  font-size: 30px;
  margin-left: auto;
  margin-top: 80px;
  text-align: center;
}

.carte 
{
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 20px;
  margin: 60px auto;
  flex-wrap: wrap;
}

.carta 
{
  background: white;
  padding: 25px 20px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  font-weight: bold;
  color: #1e56a0;
  border-bottom: 4px solid #1e56a0;
  min-width: 220px;
  max-width: 300px;
  text-align: center;
  transition: transform 0.3s ease;
  position: relative;
  z-index: 1;
  height: 100px;
}

.carta-sinistra 
{
  margin-right: -60px;
  top: 20px;
}

.carta-centrale 
{
  z-index: 2;
}

.carta-destra 
{
  margin-left: -60px;
  top: 20px;
}

.carta:hover 
{
  transform: translateY(-5px);
  z-index: 3;
}

@media (max-width: 768px) 
{
  .carta 
  {
    flex-direction: column;
    align-items: center;
  }

  .carta-sinistra,
  .carta-destra 
  {
    margin: 0;
    top: 0;
  }
}

.carta img.icon 
{
  width: 84px;
  height: 84px;
  margin-bottom: 0;
}

.carta img.icon-destra 
{
  width: 104px;
  height: 84px;
  margin-bottom: 0;
}
