.container{
  max-width: 999px;
}
.center-search{
  margin-left: 25%;
}
.border_silver{
  border-color: #dbdbdb!important;
}
.item{
  width: 100px;
}
.container-article {
  position: relative;
}
.container-article > a::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1; /* Copre tutta l'immagine per il click */
}

.image {
  display: block;
  width: 100%;
  height: auto;
}
.overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: #1776e43f;
  overflow: hidden;
  width: 100%;
  height: 0;
  transition: .5s ease;
  opacity: 0.9;
}

.container-article:hover .overlay {
  height: 100%;
}

.text {
  color: white;
  font-size: 20px;
  /* Posizionamento assoluto per coprire TUTTO l'overlay */
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;

  /* Flexbox per centrare testo e bottone perfettamente */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  
  /* Importante: ereditiamo il cursore a manina */
  cursor: pointer;
}
a:link {
  color: #000;
  text-decoration: none;

}
a:visited {
  color: #000;
  text-decoration: none;

}
a:hover {
  color: black;
  text-decoration: none;

}
.footer-font{
  font-size: small;
}
.modal-image{
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.modal-body {
  position: relative;
  flex: 1 1 auto;
  padding: 0!important;
  padding-right: 1rem!important;
}
.navbar-light .navbar-nav .nav-link {
  color: rgb(0 0 0);
}
.comment-widgets .comment-row:hover {
  background: rgba(0, 0, 0, 0.02);
  cursor: pointer
}

.comment-widgets .comment-row {
  border-bottom: 1px solid rgba(120, 130, 140, 0.13);
  padding: 15px
}

.comment-text:hover {
  visibility: hidden
}

.comment-text:hover {
  visibility: visible
}

.label {
  padding: 3px 10px;
  line-height: 13px;
  color: #ffffff;
  font-weight: 400;
  border-radius: 4px;
  font-size: 75%
}

.round img {
  border-radius: 100%
}

.label-info {
  background-color: #1976d2
}

.label-success {
  background-color: green
}

.label-danger {
  background-color: #ef5350
}

.action-icons a {
  padding-left: 7px;
  vertical-align: middle;
  color: #99abb4
}

.action-icons a:hover {
  color: #1976d2
}

.mt-100 {
  margin-top: 100px
}

@media screen and (max-width: 768px) {
  .center-search{
    margin-left: 0;
  }
  .item{
    width: 40px;
  }
  .navbar-nav {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-direction: row!important;
     flex-direction: row!important; 
    padding-left: 0;
    margin-bottom: 0;
    list-style: none;
  }
}

.btn-amazon {
    position: relative;
    /* Usiamo un valore altissimo per forzare la posizione sopra ogni altro elemento */
    z-index: 999 !important; 
    
    display: inline-block;
    margin-top: 15px;
    padding: 8px 20px;
    
    background-color: #ff9900 !important;
    color: #000 !important;
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
    text-decoration: none !important;
    border-radius: 4px;
    
    /* Questo assicura che il bottone risponda ai click ignorando i livelli sottostanti */
    pointer-events: auto !important; 
    
    transition: transform 0.2s ease;
    cursor: pointer;
}

.btn-amazon:hover {
    background-color: #e68a00 !important; /* Arancione più scuro al passaggio */
    transform: scale(1.05);               /* Leggero ingrandimento */
    color: #000 !important;
}

/* Centra l'intero blocco dello slider */
.gear-slider-container {
  width: 100%;
  max-width: 1200px; /* O la larghezza del tuo sito */
  margin: 40px auto; 
  position: relative;
  text-align: center; /* Aiuta a centrare i componenti interni */
}

.myGearSwiper {
  width: 100%;
  padding: 50px 0 !important; /* Spazio per le ombre e i bottoni */
}

/* Forza la slide a occupare solo lo spazio del cerchio */
.swiper-slide {
  width: auto !important; 
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Stile del cerchio (per evitare sovrapposizioni) */
.circle-link {
  width: 160px; /* Dimensione dei tuoi cerchi */
  height: 160px;
  border-radius: 50%;
  border: 2px solid #eee;
  overflow: hidden;
  transition: all 0.3s ease;
  display: block;
  position: relative;
  background: white;
}

/* Effetto sulla foto attiva al centro */
.swiper-slide-active .circle-link {
  border-color: #007bff;
  transform: scale(1.1);
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  z-index: 2;
}

.circle-link img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* Mantiene l'attrezzatura intera senza tagliarla */
  padding: 10px; /* Distanza dal bordo del cerchio */
}

/* Allontana la freccia destra */
.swiper-button-next {
  right: -5px !important; /* Valore negativo per portarla verso il bordo della pagina */
}

/* Allontana la freccia sinistra */
.swiper-button-prev {
  left: -5px !important; /* Valore negativo per portarla verso il bordo della pagina */
}

/* Cambia il colore o la dimensione della freccia blu */
.swiper-button-next:after, 
.swiper-button-prev:after {
  font-size: 30px !important; /* La rende più piccola e meno invasiva */
  color: #007bff;            /* Questo è il blu che vedi ora */
}
@media (max-width: 768px) {
  .swiper-button-next, 
  .swiper-button-prev {
    display: none !important;
  }
}




/* Contenitore della foto per evitare l'effetto ovale */
.profile-pic-container {
    width: 150px; 
    height: 150px;
    flex-shrink: 0; /* Impedisce al cerchio di restringersi e diventare ovale */
    display: block;
    margin: 0 auto;
}

.profile-pic-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

/* FIX PER MOBILE */
@media (max-width: 768px) {
    .profile-pic-container {
        width: 120px;  /* Dimensione ottimale su smartphone */
        height: 120px;
        /* Aggiungi questa riga: */
        margin-top: -60px !important;
    }
}