.navbar {
    transition: background-color 0.3s ease-in-out;
}
.navbar.scrolled {
    background-color: rgba(0, 0, 0, 0.8); /* Colore più soft */
}

.welcome-message {
    position: relative;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 1.2rem;
    z-index: 1000;
    transition: opacity 0.5s ease-in-out;
}

#scrollToTop {
    position: relative;
    bottom: 20px;
    right: 20px;
    background: #ff4500;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 50%;
    cursor: pointer;
    transition: opacity 0.3s ease-in-out, visibility 0.3s;
    opacity: 0;
    visibility: hidden;
}

.navbar {
    background: transparent;
    transition: background-color 0.4s ease-in-out;
}
.navbar.scrolled {
    background-color: #333;
    transition: background-color 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px); /* Per supporto su Safari */
    transition: all 0.4s ease-in-out;
}

#scrollToTop {
    transition: transform 0.3s ease-in-out;
}
#scrollToTop:hover {
    transform: rotate(360deg);
}

    .barra {
      width: 100%;
      padding: 40px 5%;
      box-sizing: border-box;
      color: #092743; /* testo blu profondo */
      text-align: center;
      backdrop-filter: blur(10px);
      -webkit-backdrop-filter: blur(10px);
      background-color: rgba(188, 140, 0, 0.90); /* sfondo dorato trasparente */
      border: 1px solid rgba(188, 140, 0, 0.4);
      border-radius: 20px;
      margin: 30px 0;
      transition: box-shadow 0.4s ease, transform 0.3s ease;
     }

    .barra:hover {
      box-shadow: 0 0 20px rgba(188, 140, 0, 0.6); /* glow dorato */
      transform: translateY(-5px); /* sollevamento leggero */
    }

/* Optional: animazioni diverse per destra e sinistra */
.barra-sinistra {
    transform: translateX(-100px);
}
.barra-destra {
    transform: translateX(100px);
}

.barra h2 {
  color: #092743;
  font-size: 2rem;
  margin-bottom: 15px;
  font-weight: bold; /* <-- grassetto */
}

.barra p {
  font-size: 1.2rem;
  line-height: 1.6;
  margin: 0 auto;
  max-width: 900px;
  color: #092743;
    }

    @media (max-width: 768px) {
      .barra {
        padding: 30px 20px;
      }

      .barra h2 {
        font-size: 1.6rem;
      }

      .barra p {
        font-size: 1rem;
      }
    }

.hero-centered {
    display: flex;
    flex-direction: column;
    justify-content: center; /* centra verticalmente */
    align-items: center;     /* centra orizzontalmente */
    text-align: center;
    height: 50vh;
    padding: 40px;
    background-color: transparent; /* opzionale, se vuoi uno sfondo */
}

footer {
    margin-top: 60px;
    background-color: #041a30;
    color: #BC8C00;
    padding: 30px 20px;
    text-align: center;
    width: 100%;
    z-index: 500;
}

footer p {
    margin: 8px 0; /* margine verticale ridotto */
}

/* Aggiungi una classe specifica se vuoi un margine più ampio solo sopra la P.IVA */
footer .piva {
    margin-top: 20px; /* spazio più grande sopra la P.IVA */
    margin-bottom: 8px;
}

footer .footer-links a {
    color: #BC8C00;
    text-decoration: none;
    margin: 0 10px;
}

footer .footer-links a:hover {
    text-decoration: underline;
}

footer a {
  color: #bc8c00; /* oro scuro come il testo */
  text-decoration: none; /* togli la sottolineatura */
}

footer a:hover {
  color: #ffcc00; /* oro più chiaro quando passi sopra */
  text-decoration: underline; /* opzionale: sottolinea al passaggio del mouse */
}