html, body{
    padding-top: 10px;
    overflow-x: clip;
    font-family: 'Titillium Web', sans-serif;
    background-color: #ebebeb;
}

/* Logo Safenet */

.safenet-logo {
  height: clamp(4rem, 15vw, 10rem); /* clamp(min, responsive, max) */
  margin: 0 0.3vw;
}

.safenet-title {
  color: #993a59;
  font-size: clamp(4rem, 15vw, 10rem);
  font-weight: bold;
  display: flex;
  align-items: center;
}

/* Navbar */

.custom-navbar {
    background-color: #993a59;
}

.custom-navbar .navbar-brand,
.custom-navbar .nav-link {
  color: white;
}

.custom-link {
    position: relative;
    padding-bottom: 4px;
    text-decoration: none;
    transition: border-bottom 0.3s ease;
  }

.custom-link:hover {
    color: yellow !important;
}

.custom-link.active {
    color: white !important;
    border-bottom: 2px solid white;
}

/* Card I nostri valori */

.grid-cards { /* Griglia bootstrap per centrare e adattare le card */
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  padding: 20px 0;
}

.flip-card {
  background-color: transparent;
  width: 100%;
  max-width: 300px;       /* Max larghezza */
  aspect-ratio: 3 / 2;    /* Mantiene proporzione 300x200 */
  perspective: 1000px;
  margin: 20px auto;      /* Centrare e margine */
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.8s;
  transform-style: preserve-3d;
  cursor: pointer;
}

.flip-card:hover .flip-card-inner { 
  transform: rotateY(180deg); /* Ruota al hover */
}

.flip-card-front, .flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 10px;
  backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: white;
  padding: 20px;
  box-sizing: border-box;
  border: 2px solid black;
}

.flip-card-back {
  background-color: #993a59;
  transform: rotateY(180deg);
}

.flip-card-front p, .flip-card-back p {
  font-weight: bold;
  font-size: 1.3rem;
  text-align: center;
}

.cards-row > div {
  flex: 1 1 280px; /* base 280px, si restringe o allarga */
  max-width: 300px;
}

/* Loghi Clienti e Partner */

.inline-aos {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin: 10px;
}

.clienti-wrapper {
  display: flex;
  flex-wrap: wrap;               /* Fa andare a capo quando serve */
  justify-content: center;       /* Centra tutto orizzontalmente */
  align-items: center;
  gap: 20px;                      /* Spazio tra i loghi */
  margin-top: 20px;
}

.logocliente {
  flex: 0 1 auto;                /* Impedisce l'espansione forzata */
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px;
}

/* Immagini responsive */
.logocliente img {
  max-height: 50px;
  height: auto;
  width: auto;
  object-fit: contain;
}

.logopartner img {
  max-height: 120px;
  height: auto;
  width: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.logocliente img:hover {
  transform: scale(1.2); /* Ingrandisce al passaggio mouse */
}

.logopartner img:hover {
  transform: scale(1.2); /* Ingrandisce al passaggio mouse */
}

/* Certificati carosello */

#carouselCert {
  max-width: 100%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-color: rgba(0, 0, 0, 0.6);
  border-radius: 50%;
  padding: 10px;
}

@media (max-width: 576px) {
  .carousel-control-prev-icon,
  .carousel-control-next-icon {
    padding: 6px;
  }
}

.carousel-container {
  position: relative;
  width: 400px;
  margin: auto;
}

.carousel-inner img {
  height: 500px;
  width: 100%;
  object-fit: contain; /* Adatta l’immagine mantenendo proporzioni */
}

.carousel-inner, .carousel-item {
  height: 500px;
}

/* 
  .carousel-control-prev.custom-arrow {
    left: -100px;
  }

  .carousel-control-next.custom-arrow {
    right: -100px;
  } 
*/

/* FORM Messaggio */

.custom-input {
  border: none;
  border-bottom: 2px solid black;
  border-radius: 0;
  background-color: transparent;
  box-shadow: none;
}

.custom-input:focus {
  border-bottom: 2px solid black;
  background-color: transparent;
  outline: none;
  box-shadow: none;
}

.thick-checkbox {
  width: 16px;
  height: 16px;
  border: 1px solid #000 !important;
  appearance: none;
  border-radius: 4px;
}

/* Freccia per tornare a inizio pagina */

.scroll-to-top {
  position: fixed;
  bottom: 20px;
  left: 20px;
  width: 50px;
  height: 50px;
  background-color: #947671;
  color: white;
  border-radius: 50%;
  text-align: center;
  line-height: 50px;
  font-size: 24px;
  text-decoration: none;
  z-index: 999;
  display: none;
  transition: opacity 0.3s ease;
}

.scroll-to-top:hover {
  background-color: #333;
}

/* Footer */

footer {
  background-color: #993a59;
  color: white;
}

.social-links a:hover {
  opacity: 0.7;
  transform: scale(1.1);
  transition: 0.2s;
}