#activitats {
    text-align: center;
  }
  
  #activitats h2 {
    color: #5b6754; /* mateix to que altres títols */
    margin-bottom: 1em;
    font-size: 2em;
  }
  
  #activitats > p {
    max-width: 800px;
    margin: 0 auto 3em auto;
    font-size: 1.1em;
    color: #717e6a;
    line-height: 1.6;
  }
  
  .activitats-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2em;
    margin-top: 1em;
  }
  
  .activitat {
    background-color: #fffbf4; /* fons suau coherent amb el global */
    border: 1px solid #bbcbb7;
    border-radius: 12px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.1);
    overflow: hidden;
    width: 280px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  
  
  .activitat:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 14px rgba(0,0,0,0.15);
  }
  
  .activitat img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid #bbcbb7;
  }
  
  .activitat h3 {
    text-align: center;
    color: #717e6a;
    margin: 15px 10px 10px 10px;
  }
  
  .activitat p {
    font-size: 0.95em;
    color: #717e6a;
    line-height: 1.4em;
    padding: 0 15px 10px 15px;
  }
  
  .activitat button {
    display: block;
    margin: 0 auto 20px auto;
    background-color: #604a33;
    color: #c2a88f;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    padding: 10px 20px;
    transition: background-color 0.3s ease;
  }
  
  .activitat button:hover {
    background-color: #717e6a;
    color: #fff;
  }
  
  /* Animació d’aparició suau (si uses el JS d’scroll) */
  .activitat {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease;
  }



  /*modal container*/

.modal-container {
  display: flex;
  background-color: rgb(0, 0, 0, 0.63);
  align-items: center;
  justify-content: center;
  position: fixed;
  pointer-events: none;
  opacity: 0;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  z-index: 9999
}

.modalact {
  background-color: #717e6a;
  width: 500px;
  max-width: 100%;
  padding: 30px 50px;
  border-radius: 5px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  text-align: center;
}

.modalact h1 {
  color: #604a33;
  text-align: center;
  font-size: large;
  margin-bottom: 1em;
}
.modalact h2{
  color: #604a33;
}
.modalact p {
  color: #bbcbb7;
  padding-bottom: 1em;
}

#foto3 {
  width: 300px;
  height: auto;
  align-items: center;
}

   /*Botons per ensenyar*/
   .show{
    opacity: 1;
    pointer-events: auto;
  }