.navbar-expand-lg .navbar-nav .nav-link {
    border-bottom: 5px solid transparent;
}
.navbar-expand-lg .navbar-nav .nav-link:hover{
    border-bottom: 5px solid #0a71b4;
}

.nav-link.active{
    border-bottom: 5px solid #0a71b4 !important;
}

.dropdown-item.active, .dropdown-item:active {
    background-color: #0a71b4;
}

header.sticky .header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1050; /* sopra tutto */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); /* ombra opzionale */
    animation: slideDown 0.3s ease-in-out;
}

body {
    font-weight: 300;
}

/* Evita che il contenuto "salti" verso l'alto */
body.has-sticky .header-trought {
    height: [altezza_header]; /* es: 100px, o usa js per calcolare dinamico */
}

/* Animazione opzionale */
@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}

.btn-red:hover,
.btn-red:focus,
.btn-red:focus-visible,
.btn-red:focus-within  {
    background-color: white;
    border: 1px solid #ea0f00;
    color: #ea0f00;
}
span[style*="color:#0000ff;"]{
    color: var(--blu) !important;
}

.line-blu hr {
    color: var(--blu) !important;
    opacity: 1;
}

b, strong {
    font-weight: 500;
}
/**/

.homeSwiper .swiper-pagination-horizontal .swiper-pagination-bullet {
    width: var(--swiper-pagination-bullet-width, var(--swiper-pagination-bullet-size, 25px));
    height: var(--swiper-pagination-bullet-height, var(--swiper-pagination-bullet-size, 25px));
}
.homeSwiper .swiper-pagination-horizontal .swiper-pagination-bullet-active {
    background: var(--dark-red);
}


.swiperVerticale picture,
.icon-cards__item picture {
    display: flex !important;
    justify-content: center !important;

}


.swiperTimeLine .swiper-slide span::after {
    margin: 0 0 0 1.5rem;
}



.swiper-container {
    left: 0;
}



.line-right {
  position: relative;
}

.line-right:after {
  content: "";
  position: absolute;
  top: 0;
  right: 40px;
  width: 1px;
  height: 100%;
  background-color: white;
}

.swiperTimeLine .swiper-slide-active span {
    font-size: 40px !important;
}

.swiperTimeLine .swiper-slide-active span::after {
   /* height: 14px;
    width: 14px;*/
    box-shadow: 0 0 0 0.25rem rgba(255, 255, 255, 0.50);
}
.swiperTimeLine .swiper-slide span::after {
    height: 10px;
    width: 10px;
}


.swiper .swiperInterventi {
   width: 100%;
   padding-top: 50px;
   padding-bottom: 50px;
}

.swiperInterventi .swiper-slide {
    background-position: center;
    background-color: white;
    background-size: cover;
    width: 300px;
    height: 300px;
}

.swiperInterventi .swiper-slide img {
 display: block;
 width: 120px;
}

.swiper-3d .swiper-slide-shadow-left {
    background-image : linear-gradient(to left, rgba(89, 162, 211,.4),rgba(0,0,0,0)) !important;
}

.swiper-3d .swiper-slide-shadow-right {
    background-image: linear-gradient(to right, rgba(89, 162, 211,.4), rgba(0, 0, 0, 0)) !important;
}

.link-underline a {
    text-decoration: underline !important;
}

.header nav ul li {
    margin: 0 !important;
}

.offcanvas-backdrop.show {
    opacity: 0;
}

footer p {
    font-size: 20px;
}

.w-70-px {
    width: 50px;
}

.swiperDettaglioSlide {
  width: 100%;
  height: 100%;
}

.swiperDettaglioSlide .swiper-slide {
  text-align: center;
  font-size: 18px;
  background: #444;
  display: flex;
  justify-content: center;
  align-items: center;
}

.swiperDettaglioSlide .swiper-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hover-card {
    transition: all 0.3s ease-in-out;
    opacity: 0;   
}

.hover-card {
    opacity: 1;
}

.overlay-container {
  display: block;
  position: relative;
}

.overlay-container .overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  color: white;
  opacity: 0;
  transition: opacity 0.3s ease;
  text-align: center;
  font-size: 1.2rem;
}

.overlay-container:hover .overlay {
  opacity: 1;
}

.swiperImpiantiHome {
  width: 100%;
  height: 100%;
}

.swiperImpiantiHome .swiper-slide {
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
}






