.logo {
    max-height: 100px;   /* Ajusta la mida segons prefereixis */
    width: auto;
    display: block;
}


.logo-social {
    height: 20px;
    width: auto;
}

.menu-container {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 1rem 2rem;
    }

    /* Menú horitzontal (desktop) */
    .language-menu {
      list-style: none;
      margin-left: 2rem;
      padding: 0;
      display: flex;
      gap: 1rem;
    }
    .language-menu img {
      width: 25px;
      height: auto;
      cursor: pointer;
    }
    .main-menu {
      list-style: none;
      margin: 0;
      padding: 0;
      display: flex;
      gap: 1.5rem;
    }
    .main-menu a {
      color: #F4EFEC;
      text-decoration: none;
      font-size: 1.5rem;
      font-weight: 400;
      transition: color 0.3s ease;
    }
    .main-menu a:hover {
      color: #4fc3b1;
      transition: color 0.3s ease;
    }


.rectangle {
    position: fixed;
    top: 0;
    right: 0;
    width: 200px;
    height: 100vh;
    background: rgba(10, 89, 77, 0.85);
    backdrop-filter: blur(4px);
    padding: 2rem 1.5rem;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 1000;
    display: flex;
    flex-direction: column;
}

/* Quan està actiu */
.rectangle.active {
    transform: translateX(0);
}

/* Banderes a dalt */
.side-lang {
    display: flex;
    gap: 1rem;
    margin: 0 0 2rem 0;
    padding: 0;
    list-style: none;
}
.side-lang img {
    width: 25px;
    height: auto;
    cursor: pointer;
}

/* Pàgines a baix */
.side-pages {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 0;
    margin: 0;
    list-style: none;
}
.side-pages a {
    color: #F4EFEC;
    text-decoration: none;
    font-size: 1.6rem;
    font-weight: 500;
    transition: color 0.3s ease;
    
}
.side-pages a:hover {
    color: #4fc3b1;
    transition: color 0.3s ease;
}

/* Responsive */
@media (max-width: 800px) {
    .menu-toggle { display: block; }
    .main-menu, .language-menu { display: none; }
}

.close-menu {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    font-size: 2rem;
    color: #F4EFEC;
    cursor: pointer;
    z-index: 1100;
    padding: 0;
    transition: color 0.3s ease;
}

.close-menu:hover {
    color:#4fc3b1;
    transition: color 0.3s ease;
}


.slide {
  position: absolute;
  width: 100%;
  height: 600px;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  margin-bottom: 0;
  margin: 0;
}

.slide.active {
  opacity: 1;
}

.main-sponsor {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: nowrap; /* 🔒 No permetre noves files */
  gap: clamp(5px, 5vw, 40px);
  padding: 3rem;
  overflow: hidden; /* O "auto" si vols scroll horitzontal */
  height: auto;
}

.main-sponsor img {
  width: clamp(80px, 15vw, 200px);
  height: auto;
  max-height: 70px;
  object-fit: contain;
  flex: 1 1 0;
  min-width: 40px;
  min-height: 20px;
  transition: all 0.3s ease;
}


.sponsor-info{
    background-color: #F4EFEC;
    padding-top: 3rem;
    display: flex;
    overflow: hidden;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 100%;
    box-sizing: border-box;
  }

  
.sponsor-list-or,
.sponsor-list-plata,
.sponsor-list-bronze {
  position: relative;
  overflow: hidden;
  background-color: #F4EFEC;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 3rem;
  gap: 3rem;
  flex-wrap: wrap;       /* ➤ Permet que les imatges saltin de línia */
  width: 100%;
  box-sizing: border-box;
}

.sponsor-logo {
  max-height: 100px;
  max-width: 250px;
  width: 100%;
  height: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
  flex: 0 1 150px; /* ➤ Cada logo ocupa màxim 150px i es redueix si cal */
}

body{
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    width: 100%;
    min-width: 600px;
}


header {
    background-color: #0a594d;
    padding: 0rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100px;
    z-index: 1000; /* opcional, per assegurar que no quedi darrere d’altres elements */
}


.footer {
  background-color: #0a594d;
  color: #F4EFEC;
  padding: 40px 5%;
  font-family: 'Montserrat', sans-serif;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* tres columnes iguals */
  gap: 20px;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
}


/* Columna esquerra */
.footer-left h3 {
  margin: 0 0 15px 0;
  font-size: 1.8rem;
  font-weight: bold;
}
.footer-social a {
  margin-right: 10px;
  text-decoration: none;
}

.footer-social img {
  width: 30px;
  height: 30px;
  display: inline-block;
  margin-right: 1rem;
}

/* Columna dreta */
.footer-right a {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  color: #F4EFEC;
  text-decoration: none;
  margin-bottom: 8px;
  text-align: right;
  transition: color 0.3s ease;
}

.footer-right a:hover {
  color: #4fc3b1;
  transition: color 0.3s ease;
}

.footer-copy {
  text-align: bottom;
  font-size: 0.9rem;
  color: #F4EFEC;
}


.fotopaginafiltre {
        position: relative;
        width: 100%;
        height: 600px;
        overflow: hidden;
        margin-bottom: 0;
        z-index: 1;
    }

    .fotopaginafiltre img {
        position: absolute;
        width: 100%;
        height: 600px;
        object-fit: cover;
        margin-bottom: 0;
        margin: 0;
    }

    .fotopaginafiltre::after {
        content: "";
        position: absolute;
        inset: 0;
        pointer-events: none;
        background: rgba(10, 89, 77, 0.5);
        pointer-events: none; /* perquè no bloquegi clics */
        z-index: 2;
    }

    .fotopaginafiltre h1 {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -30%);
        z-index: 3;
        text-align: center;
        color: #F4EFEC;
        font-family: 'Montserrat', sans-serif;
        font-weight: bold;
        font-size: 5rem;
        margin: 0;
    }


.fotopagina {
        position: relative;
        width: 100%;
        height: 600px;
        overflow: hidden;
        margin-bottom: 0;
        z-index: 1;
    }

    .fotopagina img {
        position: absolute;
        width: 100%;
        height: 600px;
        object-fit: cover;
        margin-bottom: 0;
        margin: 0;
    }

.fonsverd {
        position: relative;
        background-color: #0a594d;
        padding: 2rem;
        padding-left: 5rem;
        padding-right: 5rem;
        text-align: center;
}
    .fonsverd h1{
        color: #F4EFEC;
        margin: 0;
        font-family: 'Montserrat', sans-serif;
        font-weight: bold;
        font-size: 3rem;
    }

    .fonsverd p{
        color: #F4EFEC;
        margin: 0;
        font-family: 'Montserrat', sans-serif;
        font-weight: 400;
        font-size: 1.5rem;
        line-height: 1.5;
    }

.fonsblanc {
        position: relative;
        background-color: #F4EFEC;
        padding: 2rem;
        padding-left: 5rem;
        padding-right: 5rem;
        text-align: center;
}
    .fonsblanc h1{
        color: #0a594d;
        margin: 0;
        font-family: 'Montserrat', sans-serif;
        font-weight: bold;
        font-size: 3rem;
    }

    .fonsblanc p{
        color: #0a594d;
        margin: 0;
        font-family: 'Montserrat', sans-serif;
        font-weight: 400;
        font-size: 1.5rem;
        line-height: 1.5;
    }

.textfoto {
        display: flex;
        justify-content: space-between;
        align-items: center;
        height: 650px;
        background-color: #F4EFEC;
        padding: 0;
        margin: 0;
    }

    .textfoto .txt {
        flex: 1;
        padding-left: 5rem;
        padding-right: 5rem;
        text-align: justify;
        display: flex;
        flex-direction: column;
        justify-content: center; /* Centra verticalment el text */
        gap: 2rem;
    }
        .textfoto .txt h1{
            color: #0a594d;
            margin: 0;
            font-family: 'Montserrat', sans-serif;
            font-weight: bold;
            font-size: 3rem;
            text-align: left;
        }
        .textfoto .txt p{
            color: #0a594d;
            margin: 0;
            font-family: 'Montserrat', sans-serif;
            font-weight: 400;
            font-size: 1.2rem;
            line-height: 1.5;
        }
        .textfoto .txt .logo {
            margin-top: 1rem;
            gap: 3rem;
            display: flex;
            justify-content: center;
            align-items: center;
        }
        .textfoto .txt .logo img {
            max-height: 50px;
            width: auto;
            height: auto;
            object-fit: contain;
            margin-top: 1rem;
        }

    .textfoto .img {
        flex: 1;
        display: flex;            /* ara sí que fem servir flex per centrar la foto */
        justify-content: center;
        align-items: center;
        padding-right: 2rem;
        overflow: hidden;
    }

    .textfoto .img img {
        max-width: 100%;
        height: auto;
        border-radius: 20px;
    }

.graellasponsors{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  row-gap: 0px; /* ajusta aquí la distància entre files */
  column-gap: 40px;
  justify-items: center; /* centra logos horitzontalment */
  align-items: center;
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.graellamembres{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  row-gap: 0px; /* ajusta aquí la distància entre files */
  column-gap: 40px;
  justify-items: center; /* centra logos horitzontalment */
  align-items: start;
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.mainsponsor img{
        width: auto;
        height: 150px;
        object-fit: cover;
        margin-bottom: 15px;
    }
    .mainsponsor img:hover {
        transform: scale(1.05);
        transition: transform 0.3s ease;
    }

.gransponsor img{
        width: auto;
        height: 120px;
        object-fit: cover;
        margin-bottom: 15px;
    }
    .gransponsor img:hover {
        transform: scale(1.05);
        transition: transform 0.3s ease;
    }

.mitjasponsor img{
        width: auto;
        height: 100px;
        object-fit: cover;
        margin-bottom: 15px;
    }
    .mitjasponsor img:hover {
        transform: scale(1.05);
        transition: transform 0.3s ease;
    }

.petitsponsor img{
        width: auto;
        height: 80px;
        object-fit: cover;
        margin-bottom: 15px;
    }
    .petitsponsor img:hover {
        transform: scale(1.05);
        transition: transform 0.3s ease;
    }



.logocompeti img{
        display: flex;
        height: auto;
        max-width: 150px;
        object-fit: cover;
        margin-bottom: 30px;
    }
    .logocompeti img:hover {
        transform: scale(1.05);
        transition: transform 0.3s ease;
    }

.membre img {
        width: 180px;
        height: 180px;
        object-fit: cover;
        border-radius: 20px;
        margin-bottom: 15px;
        border: 5px solid #F4EFEC;
        }

    .membre h1 {
      color: #F4EFEC;
      font-family: 'Montserrat', sans-serif;
      font-weight: bold;
      font-size: 1.2rem;
      line-height: 1.5;
        }

    .membre p {
      color: #F4EFEC;
      font-family: 'Montserrat', sans-serif;
      font-weight: 400;
      font-size: 1.2rem;
        }

    .membre .linkedin {
      margin-top: 0.5rem;
      width: 24px;
      height: 24px;
      transition: filter 0.3s ease;
      border-radius: 0px;
      border: none;
        }
    .membre .linkedin:hover {
        filter: brightness(0.8);
        transition: filter 0.3s ease;
      }


.menu-toggle {
            background: none;
            border: none;
            cursor: pointer;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            height: 100%;
            box-sizing: content-box;
        }
        .menu-toggle .bar {
            display: block;
            width: 30px;
            height: 3px;
            margin: 3.5px 0;
            background-color: #F4EFEC;
            border-radius: 2px;
            transition: 0.3s;
        }
        @media (max-width: 800px) {
            .menu-toggle { display: flex !important; }
            .main-menu, .language-menu { display: none; }
            .main-menu.active, .language-menu.active { display: block; }
        }
