.servei-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
                url('/ruta/fons.jpg') center/cover no-repeat;
    height: 350px;
  }
  
  .servei-hero h1, .servei-hero p {
    color: white;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.5);
  }
  
  body {
    font-family: 'Montserrat', sans-serif;
    background: linear-gradient(to right, #e3f2fd, #ffffff);
  }
  
  .serveis-section {
    max-width: 1200px;
    margin: auto;
    padding: 60px 20px;
    background: linear-gradient(to right, #e3f2fd, #ffffff);
  }
  
  .serveis-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: #0d47a1;
  }
  
  .cards-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 30px;
  }
  
  .card-servei {
    background: #ffffffcc;
    border-radius: 15px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    flex: 1 1 45%;
    max-width: 500px;
    transition: transform 0.3s ease;
  }
  
  .card-servei:hover {
    transform: translateY(-5px);
  }
  
  .card-servei h3 {
    color: #01579b;
    font-size: 1.5rem;
    margin-bottom: 15px;
  }
  
  .card-servei ul {
    padding-left: 20px;
    margin: 0;
  }
  
  .card-servei ul li {
    margin-bottom: 10px;
    font-size: 1rem;
  }
  
  .highlight {
    color: #0277bd;
    font-weight: bold;
  }
  
  @media (max-width: 768px) {
    .cards-container {
      flex-direction: column;
      align-items: center;
    }
  }
  

  .card-servei img {
    width: 100%;
    max-height: 350px;
    object-fit: contain;
    padding: 10px;
    margin-bottom: auto;
    border-radius: 10px;
  }
  
  .card-servei img:hover {
    transform: scale(1.30);
    transition: 0.3s ease;
    box-shadow: 0 0 10px rgba(0, 123, 255, 0.2);
  }
  .card-servei hr {
    border: none;
    height: 1px;
    background: linear-gradient(to right, #0056b3, #00c6ff);
    margin: 10px 0 15px;
    width: 100%;
  }
  
  .coverflow-wrapper {
    width: 100%;
    overflow: hidden;
    /* background-color: #f4f8fc; */
    background: linear-gradient(to right, #e3f2fd, #ffffff);

    padding: 60px 60px;
  }
  
  .coverflow-carousel {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
  }
  
  .coverflow-container {
    display: flex;
    transition: transform 0.5s ease;
    padding: 0 10vw;
    gap: 100px;
  }
  
  .valla-card {
    width: 280px;
    background: white;
    border-radius: 16px;
    overflow: visible; /* Permet que la imatge sobresurti */
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    transition: transform 0.4s ease, opacity 0.4s ease;
    opacity: 0.5;
    transform: scale(0.9);
    text-align: left;
    position: relative;
    flex-shrink: 0;
  }


  .valla-card.active {
    opacity: 1;
    transform: scale(1.05);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
    z-index: 2;
  }

  .valla-card.active .img-wrapper img {
    pointer-events: auto; /* Només activa el hover si és la card activa */
  }

.valla-card.active .img-wrapper img:hover {
  transform: scale(1.4);
  z-index: 10;
  position: relative;
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.3);
  border-radius: 10px;
}

.valla-card .img-wrapper img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.4s ease;
  z-index: 1;
  pointer-events: none;
}

  .valla-card.active {
    transform: scale(1.1);
    opacity: 1;
  }
  
  .valla-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
  }

  .valla-card.active {
    opacity: 1;
    transform: scale(1.05);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
    z-index: 2;
  }

  .valla-card .info {
    padding: 20px;
    font-size: 14px;
  }
  
  .valla-card .info h5 {
    font-size: 18px;
    color: #003b80;
    margin-bottom: 10px;
    font-weight: bold;
  }
  
  .coverflow-nav {
    background: white;
    border: none;
    font-size: 26px;
    color: #003b80;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    transition: all 0.3s ease;
  }
  
  .coverflow-nav:hover {
    background: #0056b3;
    color: white;
  }
  
  .coverflow-nav.left {
    left: 10px;
  }
  
  .coverflow-nav.right {
    right: 10px;
  }

  .valles-carousel-section {
    position: relative;
    padding: 60px 0;
    overflow: hidden;
    z-index: 1;
  }
  
  .valles-carousel-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(-45deg, #e3f2fd, #f0f4fa, #ffffff, #e8f0fe);
    background-size: 400% 400%;
    animation: gradientMove 15s ease infinite;
    z-index: -1;
    opacity: 0.5;
    pointer-events: none;
    transition: opacity 0.5s ease-in-out;
  }
  
  @keyframes gradientMove {
    0% {
      background-position: 0% 50%;
    }
    50% {
      background-position: 100% 50%;
    }
    100% {
      background-position: 0% 50%;
    }
  }
  