html {
  overflow-x: hidden;
}

body {
  font-family: "Gr", sans-serif;
  margin: 0;
  overflow-x: hidden; /* evita el scroll horitzontal al mòbil provocat pel menú off-canvas (.main-nav amb translateX) */
  -webkit-tap-highlight-color: transparent; /* treu el flaix blau per defecte del mòbil en tocar botons/enllaços */
}

* {
  -webkit-font-smoothing: antialiased;
}

:root {
  --color-blanc: #ffffff;
  --color-blau-clar: #00b3e6;
  --color-blau-fosc: #0e2431;
  --color-gris-fosc: #8a8682;
  --color-gris-mig: #bfbcc1;
  --color-gris-clar: #e9e9e9;
  --color-gris-calid: #f7f7f5;
  --color-hover-neutre: #e9e9e9;
}

.col-blanc {
  color: var(--color-blanc);
}

.fons-blanc {
  background-color: var(--color-blanc);
}

.col-b-clar {
  color: var(--color-blau-clar);
}

.fons-b-clar {
  background-color: var(--color-blau-clar);
}

.col-b-fosc {
  color: var(--color-blau-fosc);
}

.fons-b-fosc {
  background-color: var(--color-blau-fosc);
}

.col-g-fosc {
  color: var(--color-gris-fosc);
}

.fons-g-fosc {
  background-color: var(--color-gris-fosc);
}

.col-g-mig {
  color: var(--color-gris-mig);
}

.fons-g-mig {
  background-color: var(--color-gris-mig);
}

.col-g-clar {
  color: var(--color-gris-clar);
}

.fons-g-clar {
  background-color: var(--color-gris-clar);
}

.col-g-calid {
  color: var(--color-gris-calid);
}

.fons-g-calid {
  background-color: var(--color-gris-calid);
}

/* ENLLAÇOS */

/* ENLLAÇOS AMB CLASSE link-hover */
a.link-hover {
  position: relative;
  display: inline-block;
  /* necessari per poder moure'l */
  text-decoration: none;
  color: var(--color-blau-clar);
  transition:
    color 0.3s ease,
    transform 0.3s ease;
}

a.link-hover::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background: currentColor;
  transition: background 0.3s ease;
}

a.link-hover::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background: var(--color-blau-fosc);
  transform: translateX(-50%) scaleX(0);
  transform-origin: center;
  transition: transform 0.3s ease;
}

a.link-hover:hover {
  color: var(--color-blau-fosc);
  transform: translateY(-1px);
}

a.link-hover:hover::after {
  transform: translateX(-50%) scaleX(1);
}

.site-main a {
  position: relative;
  color: var(--color-blau-clar);
  text-decoration: none;
}

.site-main a:not(:has(img))::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0;
  height: 1px;
  background-color: var(--color-blau-clar);
  transition: width 0.3s ease;
}

.site-main a:not(:has(img)):hover::after {
  width: 100%;
}

.site-main a.vacant-link-icon::after {
  display: none !important;
}

/* ESCALA TIPOGRÀFICA */

h1 {
  font-family:
    "Gr",
    system-ui,
    -apple-system,
    sans-serif;
  font-weight: 600;
  font-size: 54px;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

h2 {
  font-family:
    "Gr",
    system-ui,
    -apple-system,
    sans-serif;
  font-weight: 600;
  font-size: 40px;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

h2.titol-gran {
  font-family:
    "Gr",
    system-ui,
    -apple-system,
    sans-serif;
  font-weight: 600;
  font-size: 54px;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

@media (max-width: 1280px) {
  h2.titol-gran {
    font-size: 46px;
    line-height: 1.1;
  }
}


@media (max-width: 920px) {
  h2.titol-gran {
    font-size: 44px;
    line-height: 1.1;
  }
}

h3 {
  font-family:
    "Gr",
    system-ui,
    -apple-system,
    sans-serif;
  font-weight: 400;
  font-size: 34px;
  line-height: 1.4;
  letter-spacing: -0.03em;
}

@media (max-width: 920px) {
  h3 {
    font-size: 24px;
    line-height: 1.4;
  }
}

h4 {
  font-family:
    "Gr",
    system-ui,
    -apple-system,
    sans-serif;
  font-weight: 600;
  font-size: 26px;
  line-height: 1.4;
  letter-spacing: -0.03em;
}

h5 {
  font-family:
    "Gr",
    system-ui,
    -apple-system,
    sans-serif;
  font-weight: 600;
  font-size: 22px;
  line-height: 1.4;
  letter-spacing: -0.02em;
}

h6 {
  font-family:
    "Gr",
    system-ui,
    -apple-system,
    sans-serif;
  font-weight: 400;
  font-size: 20px;
  line-height: 1.4;
  letter-spacing: -0.02em;
}

p {
  font-family:
    "Gr",
    system-ui,
    -apple-system,
    sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.4;
  letter-spacing: -0.005em;
}

p .title,
p.title {
  font-family:
    "Gr",
    system-ui,
    -apple-system,
    sans-serif;
  font-weight: 600;
  font-size: 18px;
  line-height: 1.4;
  letter-spacing: -0.005em;
}

p.destacat {
  font-family:
    "Gr",
    system-ui,
    -apple-system,
    sans-serif;
  font-weight: 400;
  font-size: 20px;
  line-height: 1.4;
  letter-spacing: -0.02em;
}

@media (max-width: 780px) {
p.destacat {
margin-top:2rem !important;
}
}



.small {
  font-family:
    "Gr",
    system-ui,
    -apple-system,
    sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.4;
  letter-spacing: -0.005em;
}

.entrada {
  font-family:
    "Gr",
    system-ui,
    -apple-system,
    sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.4;
  letter-spacing: 0.05em;
}

.caption {
  font-family:
    "Gr",
    system-ui,
    -apple-system,
    sans-serif;
  font-weight: 400;
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: -0.005em;
}

.button {
  font-family:
    "Gr",
    system-ui,
    -apple-system,
    sans-serif;
  font-weight: 600;
  font-size: 14px;
  line-height: 1.4;
  letter-spacing: -0.005em;
}

.keydata {
  font-family:
    "Gr",
    system-ui,
    -apple-system,
    sans-serif;
  font-weight: 600;
  font-size: 54px;
  line-height: 1;
  letter-spacing: -0.03em;
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--color-blau-fosc);
}

.site-logo img {
  max-width: 280px;
  height: auto;
}

/* CONTAINERS RESP */
.container {
  max-width: 1600px;
  width: 100%;
  margin-left: auto !important;
  margin-right: auto !important;
  box-sizing: border-box;
  padding-left: 2.5rem;
  padding-right: 2.5rem;
}

.container-fluid {
  width: 100%;
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
  padding-left: 1rem;
  padding-right: 1rem;
  box-sizing: border-box;
}

.container-fluid.circles {
  background-image: url("../../../uploads/2026/01/circle-provetsa-gc.svg");
  background-repeat: space;
  background-position: center;
  background-size: 32px 32px;
}

footer .container {
  padding: 2.5rem 2.5rem 0 2.5rem;
}

.col-treball h3 {
  font-size: 22px;
  line-height: 1.4;
}

@media (min-width: 468px) and (max-width: 1024px) {
    .col-treball {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 1rem !important;
    }

    .col-treball .wp-block-column {
        flex-basis: calc(50% - 0.5rem) !important;
        max-width: calc(50% - 0.5rem) !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        margin-bottom: 1rem !important;
    }
}

/* SWIPER */

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

.swiper-slide img {
  width: 100%;
  display: block;
}

.swiper-slide {
  position: relative;
}

.swiper-slide img {
  width: 100%;
  display: block;
}

.slide-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  text-align: center;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.slide-text h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.slide-text p {
  font-size: 1rem;
}

/* SWIPER PETIT*/

.swiper-smll {
  position: relative;
  overflow: hidden;
}

/* IMPORTANT: només una regla */
.swiper-smll .swiper-pagination {
  position: relative;
  margin-top: 15px;
  text-align: center;
}

/* SWIPER HERO (.ps-slider): el contenidor no tenia "position", així que
   la paginació (absoluta per defecte al CSS del propi Swiper) s'acabava
   posicionant respecte d'un avantpassat llunyà en lloc del propi slider,
   i per això apareixia a vegades per sobre i a vegades per sota segons
   el contingut. Li donem "position: relative" perquè la paginació sempre
   es col·loqui respecte de la caixa de l'slider, i la baixem una mica
   per sota del propi requadre (mai superposada a la imatge/contingut),
   reservant l'espai amb el marge inferior del contenidor.
*/
/* El contenidor de l'slider porta "overflow: hidden" (CSS del propi
   Swiper), així que qualsevol cosa col·locada fora de la seva caixa
   (per exemple amb un "bottom" negatiu) queda tallada i no es veu —
   això és el que passava al mòbil. En comptes de treure la paginació
   fora de la caixa, li reservem espai propi a dins amb padding-bottom
   i la col·loquem al final d'aquest espai (bottom: 0), així sempre
   queda visible, sota la imatge/contingut i mai superposada. */
.ps-slider {
  position: relative;
  padding-bottom: 2.25rem;
  box-sizing: border-box;
}

.ps-slider .swiper-pagination {
  top: auto;
  bottom: 0;
}

/* bullets visibles sempre */
.swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  background: #000;
  opacity: 0.3;
  margin: 0 4px;
  -webkit-tap-highlight-color: transparent;
}

.swiper-pagination-bullet-active {
  opacity: 1;
}

.swiper-pagination-bullet:hover,
.swiper-pagination-bullet:focus {
  opacity: 0.6;
  outline: none;
  box-shadow: none;
}

/* CAIXES */
.wp-block-columns.col-1200 {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 40px;
}

@media (max-width: 1199px) {
  .wp-block-columns.col-1200 > .wp-block-column {
    flex-basis: 100% !important;
    max-width: 100% !important;
  }
}

.bloc-explotacio {
  gap: 4rem;
}

@media (max-width: 1199px) {
  .bloc-explotacio {
    gap: 2rem;
  }
}

/* CAIXES ROUND */
.box-rounded {
  border-radius: 40px;
  margin-top: 6rem;
  margin-bottom: 6rem;
  padding: 2.5rem;
  max-width: 1600px;
  margin-left: auto;
  margin-right: auto;
  width: calc(100% - 2rem);
}

.box-rnd-cap {
  max-width: 1600px;
  width: 100%;
  margin-left: auto !important;
  margin-right: auto !important;
  box-sizing: border-box;
  padding-left: 2.5rem;
  padding-right: 2.5rem;
}


@media (max-width: 768px) {
  .box-rounded {
    padding: 2rem;
  }

.box-rnd-cap {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
}

  .container {
    padding-left: 0rem;
    padding-right: 0rem;
  }

    .container > div {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    box-sizing: border-box;
  }
      .container > h2 {
    padding-left: 1rem;
    padding-right: 1rem;
    box-sizing: border-box;
  }
}



.box-imgs {
  margin-top: 6rem;
  margin-bottom: 6rem;
  max-width: 1600px;
  margin-left: auto;
  margin-right: auto;
  width: calc(100% - 2rem);
}

.box-imgs img {
  border-radius: 20px;
}

@media (min-width: 768px) {
    .wp-block-columns.grid-2-2 {
        flex-wrap: nowrap !important;
    }
}

@media (max-width: 767px) {
    .wp-block-columns.grid-2-2 {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 1rem !important;
    }

    .wp-block-columns.grid-2-2 .wp-block-column {
        flex-basis: calc(50% - 0.5rem) !important;
        max-width: calc(50% - 0.5rem) !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        margin-bottom: 1rem !important;
    }
}

@media (max-width: 1600px) {
  .box-rounded {
    width: calc(100% - 2rem);
  }
}

.box-rounded h2,
.box-rounded p {
  margin: 0;
}

.box-rounded-img {
  border-radius: 40px;
  margin-top: 6rem;
  margin-bottom: 6rem;
  max-width: 1600px;
  margin-left: auto;
  margin-right: auto;
  width: calc(100% - 2rem);
}


@media (max-width: 430px) {
.box-rounded-img {
  margin-top: 2rem;
  margin-bottom: 2rem;
}
}

.box-rounded-img img {
  width: 100%;
  height: 60vh;
  object-fit: cover;
  object-position: center;
  border-radius: 40px;
  display: block;
}

@media (max-width: 1024px) {
  .box-rounded-img img {
    height: 40vh;
  }
}

@media (max-width: 430px) {
  .box-rounded-img img {
    height: 28vh;
  }
}

.box-round-small {
  position: relative;
  border-radius: 40px;
  margin-top: 2rem;
  margin-bottom: 2rem;
  padding: 2rem;
  margin-left: auto;
  margin-right: auto;
  width: calc(100% - 2rem);
}

/* FOOTER */
footer {
  background-color: var(--color-blau-fosc);
  color: #ffffff;
  padding: 60px 0 0 0;
  font-family: "Gr", sans-serif;
  font-weight: 400;
  border-top-left-radius: 40px;
  border-top-right-radius: 40px;
  margin: 0 1rem;
}

.footer-border {
  padding-bottom: 2rem;
  border-bottom: solid 1px var(--color-blanc);
}

footer h5 {
  margin: 0px 0px 20px 0px;
  border-bottom: solid 1px var(--color-blanc);
  padding-bottom: 4px;
}

.footer-container {
  max-width: 1600px;
  box-sizing: border-box;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-section {
  flex: 1 1 100px;
}

.footer-section ul,
.footer-contact-wrapper ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-section ul li a,
.footer-contact-wrapper ul li a {
  color: var(--color-blanc);
  text-decoration: none;
  opacity: 1;
  transition: opacity 0.3s;
}

.footer-section ul li a:hover,
.footer-contact-wrapper ul li a:hover {
  opacity: 0.5;
}

.footer-contact-wrapper {
  flex: 3 1 600px;
}

footer ul {
  margin: 0;
}

.contact-grid {
  display: flex;
  flex-wrap: nowrap;
  gap: 20px;
}

.contact-col {
  flex: 1;
}

.contact-col p {
  color: var(--color-blanc);
  margin-top: 0px;
  margin-bottom: 8px;
}

.footer-inf {
  display: flex;
  justify-content: space-between;
  padding: 40px 0 10px 0;
}

@media (max-width: 1200px) {
  .footer-container {
    flex-direction: column;
  }

  .footer-section,
  .footer-contact-wrapper {
    flex: 1 1 100%;
    width: 100%;
  }

  .contact-grid {
    flex-wrap: wrap;
  }

  .contact-col {
    flex: 1 1 calc(33.33% - 20px);
    margin-bottom: 20px;
  }
}

@media (max-width: 768px) {
  .contact-col {
    flex: 1 1 100%;
  }
}

.hme-img {
  width: auto;
}

.col-bloc {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.col-bloc-dot {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

@media (max-width: 780px) {
  .thrd-elmnt {
    order: -1;
  align-self: flex-end;
  }
}




.circle {
  position: relative;
  right: -20px;
  top: -20px;
}

.circle-bl {
  margin: 0;
}

.col-dist {
  gap: 80px;
}

.bloc-grow {
  background-color: var(--color-blau-clar);
  transition: background-color 0.4s ease;
}

.bloc-grow.is-hovered {
  background-color: var(--color-blau-fosc);
}

.cta-button {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  gap: 1.5rem;
  background: var(--color-blanc);
  color: var(--color-blau-clar);
  font-weight: 600;
  text-decoration: none;
  padding: 1rem 1.5rem;
  border-radius: 999px;
  transition: gap 0.35s ease;
}

.line-right {
  border-right: solid 1px var(--color-blanc);
}

.cta-text {
  display: inline-block;
  transition: transform 0.35s ease 0.05s;
}

.cta-button:hover .cta-text {
  transform: translateX(4px);
}

.cta-button:hover {
  gap: 2rem;
}

.arrow {
  display: inline-flex;
  align-items: center;
  transition: margin-left 0.35s ease 0.1s;
}

.arrow img {
  display: block;
  height: 1.1em;
}

.cta-button:hover .arrow {
  margin-left: 1rem;
}

/* HEADER */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0;
  max-width: 1600px;
  margin: 0 auto;
  background: var(--color-blanc);
  padding-left: 1rem;
  padding-right: 1rem;
}

.site-logo img {
  height: 45px;
  width: auto;
}

/* MENÚ */

.nav-toggle {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  gap: 4px;
}

.nav-toggle-bar {
  width: 25px;
  height: 3px;
  border-radius: 3px;
  background: var(--color-gris-fosc);
  transition: all 0.3s ease;
}

/* Capçalera del propi menú mòbil (logo + tancar): oculta a escriptori,
   es mostra només dins el panell mòbil. */
.main-nav-top {
  display: none;
}

.main-nav {
  display: flex;
  align-items: center;
}

.main-nav-list,
.nav-cta {
  display: flex;
  list-style: none;
  align-items: center;
  padding: 0;
  gap: 0.1rem;
  background: var(--color-gris-calid);
  border-radius: 40px;
}

.main-nav-list li:first-child a {
  padding: 0.75rem 1.25rem;
}

.main-nav-list a,
.nav-cta {
  display: inline-block;
  text-decoration: none;
  color: var(--color-blau-fosc);
  font-weight: 500;
  font-size: 16px;
  padding: 0.75rem;
  border-radius: 25px;
  transition: all 0.5s ease;
  white-space: nowrap;
}

.main-nav-list .current-menu-item > a {
  background: var(--color-blau-clar);
  color: var(--color-blanc);
  border-radius: 40px;
  padding: 0.75rem;
}

/* ===== LANGUAGE SWITCHER (pastilla independent) ===== */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 0.1rem;
  padding: 0.75rem;
  margin-left: 0.5rem;
  background: var(--color-gris-calid);
  border-radius: 40px;
}

.lang-switcher .lang-item {
  text-decoration: none;
  color: var(--color-blau-fosc);
  font-weight: 500;
  font-size: 16px;
  padding: 0.75rem 1.25rem;
  border-radius: 40px;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.lang-switcher .lang-item.current-lang,
.lang-switcher .lang-item:hover {
  background: var(--color-blau-clar);
  color: var(--color-blanc);
}

@media (min-width: 769px) and (max-width: 1280px) {
  .lang-switcher .lang-item {
    font-size: 12px;
    padding: 0.6rem 0.8rem;
  }
}

/* Al menú mòbil el mostrem al final, en fila */
@media (max-width: 768px) {
  .lang-switcher {
    margin-left: 0;
    margin-top: 1rem;
    align-self: flex-start;
  }
}

/* RESPONSIVE - MOBILE ACTIU */
@media (max-width: 768px) {
  .main-nav-list .current-menu-item > a {
    border-radius: 12px;
    padding: 1rem;
  }
}

/* ===== SELECTOR D'IDIOMA WPML amb aspecte d'ítem de menú ===== */
.nav-lang-switcher {
  display: flex;
  align-items: center;
  margin-left: 0.5rem;
}

/* Pastilla del switcher = mateix fons que el botó de contacte */
.nav-lang-switcher .lang-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  background: var(--color-gris-calid);
  border-radius: 40px;
}

/* Idioma actual (sempre visible, dispara el desplegable) */
.nav-lang-switcher .lang-current {
  display: block;
  text-align: center;
  color: var(--color-blau-fosc);
  font-weight: 500;
  font-size: 16px;
  padding: 0.75rem 1.25rem;
  border-radius: 40px;
  white-space: nowrap;
  cursor: pointer;
}

.nav-lang-switcher .lang-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
  background: var(--color-gris-calid);
  border-radius: 25px;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  z-index: 100;
}

/* En rollover sobre la pastilla, es despleguen les opcions a sota */
.nav-lang-switcher .lang-pill:hover .lang-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-lang-switcher .lang-dropdown .lang-item {
  margin: 0;
  padding: 0;
}

.nav-lang-switcher .lang-dropdown .lang-item a {
  display: block;
  text-align: center;
  text-decoration: none;
  color: var(--color-blau-fosc);
  font-weight: 500;
  font-size: 16px;
  padding: 0.75rem 1.25rem;
  border-radius: 40px;
  white-space: nowrap;
  transition: background-color 0.25s ease, color 0.25s ease;
}

.nav-lang-switcher .lang-dropdown .lang-item a:hover {
  background: var(--color-blau-clar);
  color: var(--color-blanc);
}

@media (min-width: 769px) and (max-width: 1280px) {
  .nav-lang-switcher .lang-current,
  .nav-lang-switcher .lang-dropdown .lang-item a {
    font-size: 12px;
    padding: 0.6rem 0.8rem;
  }
}

@media (min-width: 769px) and (max-width: 1280px) {
  .main-nav-list a,
  .nav-cta {
    font-size: 12px;
  }

  .main-nav-list {
    gap: 0rem;
  }

  .site-logo img {
    max-width: 200px;
  }
}

.main-nav-list a:hover,
.nav-cta.desk-only:hover {
  background: var(--color-hover-neutre);
  color: var(--color-blau-fosc);
}

.nav-cta.desk-only {
  color: var(--color-blau-clar);
  margin-left: 0.8rem;
}

/* RESPONSIVE - MOBILE */
@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .main-nav {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 100%;
    /* box-sizing: sense això el padding lateral s'afegia per sobre del
       100% d'amplada i el panell quedava més ample que la pantalla,
       tallant el logo i el menú pel costat esquerre. */
    box-sizing: border-box;
    background: var(--color-blanc);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    padding: 2.5rem 1.5rem 2rem;
    z-index: 1000;
    overflow-y: auto;
    /* Sobreescriu el flex d'escriptori: columna, ítems a l'amplada
       completa i alineats a dalt (no centrats al mig del panell). */
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
  }

  .main-nav-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 2.5rem;
  }

  .main-nav-logo {
    margin-top: 22px;
  }

  .main-nav-logo img {
    height: 32px;
    width: auto;
  }

  .nav-close {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    padding: 0.5rem;
    margin: -0.5rem;
    cursor: pointer;
    color: var(--color-gris-fosc);
  }

  .main-nav[data-visible="true"] {
    transform: translateX(0);
  }

  .main-nav-list {
    flex-direction: column;
    gap: 1rem;
  }

  .main-nav-list a {
    display: block;
    width: 100%;
    box-sizing: border-box;
    font-size: 1.6rem;
    padding: 1rem;
    border-radius: 12px;
    border-bottom: 1px solid #f0f0f0;
  }

  /* Sense línia divisòria al darrer ítem (Contacte) ni a l'ítem just
     abans de la pastilla blava activa (perquè no es vegi la ratlla
     just per sobre de la pastilla arrodonida). */
  .main-nav-list li:last-child a {
    border-bottom: none;
  }

  .main-nav-list li:has(+ .current-menu-item) a {
    border-bottom: none;
  }

  .main-nav-list li {
    width: 100%;
  }

  /* HAMBURGER ANIMACIÓ */
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
  }

  .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
  }
}

/* TABLET */
@media (min-width: 769px) and (max-width: 1024px) {
  .main-nav-list a {
    padding: 0.6rem 0.4rem;
  }

  .main-nav-list li:first-child a {
    padding: 0.6rem 0.4rem;
    margin-left: 0.1rem;
  }

  .main-nav-list li:nth-last-child(2) a {
    margin-right: 0.1rem;
    padding: 0.6rem 0.4rem;
  }
}

.desk-only {
  display: inline-flex;
}

.mob-only {
  display: none;
}

@media (max-width: 768px) {
  .desk-only {
    display: none;
  }

  .mob-only {
    display: block;
  }
}

.atencio-img-crcl img {
  width: 540px;
  height: 540px;
  display: block;
}

.atencio-img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 480px;
  height: 480px;
  border-radius: 50%;
  object-fit: cover;
}

.data-gr {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  grid-auto-rows: minmax(240px, auto);
  gap: 20px;
}

.cel-gr {
  background: var(--color-blanc);
  border-radius: 20px;
  padding: 30px;
}

.c1 {
  grid-column: span 3;
}

.c2 {
  grid-column: span 2;
}

.c3 {
  grid-column: span 2;
  grid-row: span 2;
}

.c4 {
  grid-column: span 2;
}

.c5 {
  grid-column: span 3;
}

@media (max-width: 1024px) {
  .data-gr {
    grid-template-columns: 1fr;
  }

  .cel-gr {
    grid-column: auto;
    grid-row: auto;
    min-height: 120px;
  }
}

.data-flx {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  height: 100%;
}

div.num-row {
  text-align: left;
  box-sizing: border-box;
}

div.inf-row {
  text-align: left;
  box-sizing: border-box;
  display: flex;
  align-items: flex-end;
}

div.inf-row:nth-child(3) {
  display: flex;
  justify-content: right;
  align-items: flex-end;
}

.num-row {
  flex: 0 0 100%;
}

.inf-row {
  flex: 0 0 calc(50% - 5px);
}

/* Contenidor principal */
.timeline {
  display: flex;
  justify-content: space-between;
  position: relative;
  padding-top: 1rem;
}


.container:has(.timeline) {
padding-left: 0rem;
padding-right: 0rem;

}


.timeline::before {
  content: "";
  position: absolute;
  top: 148px;
  left: 0;
  width: 0;
  height: 6px;
  background: var(--color-blau-clar);
  transition: width 1s ease-in-out;
  z-index: 0;
}

.timeline.animate-line::before {
  width: 100%;
}

/* Ítems individuals */
.timeline-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.6s ease-out,
    transform 0.6s ease-out;
  z-index: 1;
}

.timeline-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.icon-wrapper {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  transition: transform 1s ease;
}

.icon-wrapper:hover {
  transform: scale(1.3);
}

.timeline-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
}

/* El punt de la línia */
.dot {
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: var(--color-blanc);
  border: 6px solid var(--color-blau-clar);
}

.timeline-item h3 {
  margin: 20px 0 15px 0;
  font-weight: bold;
  line-height: 1;
  color: var(--color-blau-fosc);
}

.timeline-item p {
  margin-top: 0.5rem;
  text-align: center;
  color: var(--color-blau-fosc);
  max-width: 130px;
  line-height: 1.3;
}

/* Responsivitat: Tablet */
@media (max-width: 1024px) {
  .timeline::before {
    display: none;
  }

  .timeline {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  .timeline-item {
    flex-direction: row;
    background: var(--color-blanc);
    padding: 1rem;
    border-radius: 1rem;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 1rem;
  }

  .icon-wrapper {
    width: 60px;
    height: 60px;
    margin-bottom: 0;
    flex-shrink: 0;
  }

  .timeline-icon {
    width: 50px;
    height: 50px;
  }

  .dot {
    display: none;
  }

  .timeline-item h3 {
    margin-top: 0.5rem;
  }

  .timeline-item p {
    text-align: left;
    max-width: none;
    margin-top: 0.5rem;
  }
}

/* Responsivitat: Mòbil */
@media (max-width: 640px) {
  .timeline {
    grid-template-columns: 1fr;
  }
}

.title-sec {
  display: flex;
  flex-direction: column;
  justify-content: end;
  height: 100%;
}

.title-sec .destacat {
  margin-bottom: 8px;
}

/* Treballa amb nosaltres (CA/ES/EN): el bloc de text s'alinea a l'esquerra
   i a dalt, a l'alçada del títol de la columna esquerra. */
.page-id-999 .title-sec,
.page-id-1589 .title-sec,
.page-id-1429 .title-sec {
  justify-content: flex-start;
  align-items: flex-start;
  padding-top: 84px; /* alçada del bloc H5 de la columna esquerra */
}

/* Anul·la el centrat que hi posa el layout "constrained" de Gutenberg */
.page-id-999 .title-sec > *,
.page-id-1589 .title-sec > *,
.page-id-1429 .title-sec > * {
  margin-left: 0;
  margin-right: 0;
  width: 100%;
}

@media (max-width: 780px) {
  .page-id-999 .title-sec,
  .page-id-1589 .title-sec,
  .page-id-1429 .title-sec {
    padding-top: 0;
  }
}

.title h1 {
  margin-bottom: 0;
}

.mb-0 {
  margin-bottom: 0;
}

.mb-10 {
  margin-bottom: 10px;
}

.mb-20 {
  margin-bottom: 20px;
}

.mt-0 {
  margin-top: 0;
}

.mt-0 {
  margin-top: 0px;
}

.mt-5 {
  margin-top: 5px;
}

.mt-10 {
  margin-top: 10px;
}

.mt-15 {
  margin-top: 15px;
}

.mt-20 {
  margin-top: 20px;
}

.mt-25 {
  margin-top: 25px;
}

.rnd {
  border-radius: 20px;
}

.rnd img {
  border-radius: 20px;
}

.rnd-vid {
  border-radius: 20px;
  overflow: hidden;
}

.contact-block {
  gap: 60px;
}

.social-block {
  gap: 80px;
}

.work-bloc {
  width: 100%;
  min-height: 350px;
  padding: 2rem;
  height: 100%;
}

.work-bloc h3 {
  margin: 0;
  /* Mateixa mida que el títol de les vacants (h4) */
  font-weight: 600;
  font-size: 26px;
  line-height: 1.4;
  letter-spacing: -0.03em;
}

@media (max-width: 1024px) {
  .work-bloc h3 {
    font-size: 22px;
    line-height: 1.2;
  }
}

/* Descripció de la caixa: text normal de la pàgina */
.work-bloc p.small {
  font-size: 16px;
  line-height: 1.4;
  letter-spacing: -0.005em;
}

.work-bloc .icon-work {
  margin-bottom:2rem;
}

.area-block {
  border-radius: 20px;
  margin-top: 6rem;
  margin-bottom: 3rem;
}

.area-block h4 {
  padding: 1rem 2rem;
  margin: 15px 0px;
  letter-spacing: 0.01pt;
}

.p-ramader-block {
  gap: 25px;
  padding-left: 2rem;
  padding-right: 2rem;
}

.contact-block {
  gap: 60px;
}

@media (max-width: 1024px) and (min-width: 600px) {
  .cols-tablet-2.wp-block-columns {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 599px) {
  .cols-tablet-2.wp-block-columns {
    grid-template-columns: 1fr !important;
  }
}

.img-blur {
  transition:
    filter 0.3s ease,
    transform 0.3s ease,
    opacity 0.3s ease;
}

.img-blur:hover {
  filter: blur(1px);
  transform: scale(1.02);
  opacity: 0.9;
}

/* Formulari Contacte Home */
.custom-contact-form {
  width: 100%;
  font-family: sans-serif;
}

.custom-contact-form input,
.custom-contact-form textarea {
  font-size: 14px;
}

.custom-contact-form input,
.custom-contact-form textarea {
  font-family:
    "Gr",
    system-ui,
    -apple-system,
    sans-serif;
  border: 1px solid var(--color-gris-fosc);
  border-radius: 10px;
  padding: 15px 10px;
  color: var(--color-blau-fosc);
  margin-bottom: 15px;
  outline: none;
}

form textarea {
  font-family:
    "Gr",
    system-ui,
    -apple-system,
    sans-serif;
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--color-blau-fosc);
  border-radius: 10px;
  padding: 15px 20px;
  color: var(--color-blau-fosc);
  margin-bottom: 15px;
  outline: none;
  font-size: 12px;
}

.form-row-top {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 15px;
  margin-bottom: 10px;
}

@media (min-width: 640px) {
  .form-row-top {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 1024px) {
  .form-row-top {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

.form-row-bottom textarea {
  width: 100%;
  min-height: 150px;
}

.form-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 30px;
  margin-top: 5px;
}

.legal-text {
  margin-top: 5px;
}

.legal-text p {
  flex: 1;
  font-size: 12px;
  line-height: 1.2;
  color: var(--color-blau-fosc);
}

.legal-text a {
  color: var(--color-blau-clar);
  text-decoration: none;
}

.legal-label {
  color: var(--color-blau-clar);
}

.submit-btn {
  background-color: var(--color-blau-clar);
  min-width: 150px;
  color: var(--color-blanc);
  border: none;
  border-radius: 30px;
  padding: 12px 20px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.9s ease;
}

.submit-btn:hover {
  background-color: var(--color-blau-fosc);
}

@media (max-width: 768px) {
  .form-row-top {
    grid-template-columns: 1fr;
  }

  .form-footer {
    flex-direction: column;
    align-items: center;
  }

  .submit-btn {
    width: 100%;
    order: -1;
    margin-bottom: 20px;
  }
}

.bloc-contact-home {
  gap: 0;
}

.bloc-form {
  display: flex;
  flex-direction: column;
  justify-content: end;
}

@media (max-width: 768px) {
  .bloc-form {
    margin-top: 2rem !important;
  }
}

.custom-contact-form {
  position: relative;
  width: 100%;
  z-index: 1;
}

.cercle-decoratiu {
  position: absolute;
  width: 250px;
  height: 250px;
  background-color: var(--color-blau-clar);
  border-radius: 50%;
  top: 0;
  right: 0;
  transform: translate(30%, -30%);
  z-index: -1;
  pointer-events: none;
}

.custom-contact-form form {
  position: relative;
  z-index: 2;
}

.hme-map {
  position: relative;
}

.prov-van {
  position: relative;
  min-width: 540px;
  bottom: -40px;
  left: -20px;
}

.prov-van img {
  position: absolute;
  max-width: 80%;
  top: -200px;
}


@media (min-width: 769px) and (max-width: 1024px) {
.prov-van  {
    min-width: 420px;
    bottom: -158px;
}
}


@media (max-width: 768px) {
.prov-van img {
    max-width: 75vw;
}
.prov-van  img {
position: relative;
top: 0;
}
.hme-map {
    margin-bottom: -100px;
}
}

.row-logos {
  min-height: 80px;
}

@media (max-width: 768px) {
  /* Els logos de productors es distribueixen en columnes flexibles a
     parts iguals (flex-grow:1, flex-basis:0) amb un gap de 80px pensat
     per escriptori. En mòbil, amb 5-7 columnes per fila, el gap sobra
     amplada i els logos acaben reduint-se fins a desaparèixer. Forcem
     que s'apilin en files de mínim 3 logos, amb un gap més petit. */
  .wp-block-columns.row-logos {
    flex-wrap: wrap !important;
    row-gap: 2rem !important;
    column-gap: 1.25rem !important;
    justify-content: center !important;
  }

  .wp-block-columns.row-logos > .wp-block-column {
    flex: 0 0 calc(33.333% - 0.9rem) !important;
    max-width: calc(33.333% - 0.9rem) !important;
    width: calc(33.333% - 0.9rem) !important;
  }
}

.bloc-contact {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.bloc-logistic {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.bloc-seus {
  gap: 50px;
  margin-top: 6rem;
}

.bloc-nosaltres {
  padding: 0 8rem;
  gap: 6rem;
}

@media (max-width: 1024px) {
.bloc-nosaltres {
  gap: 2rem;
  padding: 0 2rem;
}
}

@media (min-width: 768px) {
    .bloc-nosaltres {
        display: flex; 
        flex-direction: row;
        flex-wrap: nowrap !important;
    }
    
    .bloc-nosaltres .wp-block-column {
        flex: 1 !important;
    }

}

@media (max-width: 768px) {

    .bloc-nosaltres div {
      margin-top:4rem;
    }
}

@media (max-width: 768px) {

    .animate-line {
      padding-left: 0rem !important;
            padding-RIGHT: 0rem !important;
    }
    .timeline-item p {
          margin-top: 0rem;
    }
}



.bloc-vacant {
  margin-top: 6rem;
  margin-bottom: 6rem;
}

.titol-gamma {
  margin: 0 0 10px 0;
}

.bloc-gamma {
  border-top: solid 1px var(--color-gris-mig);
  border-bottom: solid 1px var(--color-gris-mig);
  padding: 20px 0px;
  margin-bottom: -1px;
}

.bloc-gamma figure {
  margin-top: 5px;
}

.pestanya-blava {
  width: 90px;
  height: 90px;
  background-color: var(--color-blau-clar);
  border-radius: 0 0 45px 45px;
  position: absolute;
  right: 60px;
  top: 0;
  padding: 1.2rem;
  z-index: 100;
}

.social-lnk img {
  transition:
    transform 0.6s ease,
    opacity 0.3s ease;
}

.social-lnk img:hover {
  transform: scale(1.1);
  opacity: 0.8;
}

/* Llistat de Vacants */
.provetsa-llista-vacants {
  width: 100%;
  margin: 20px 0;
  font-family: sans-serif;
}

.vacant-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  border-bottom: 1px solid var(--color-blau-clar);
  padding: 20px 0;
  gap: 80px;
}



.vacant-item > div:nth-child(3) {
  display: flex;
  align-items: center;
}

.vacant-item:first-child {
  border-top: 1px solid var(--color-blau-clar);
}

.vacant-col {
  flex: 1;
}

.vacant-data {
  max-width: 120px;
  color: var(--color-blau-clar);
  font-size: 22px;
}

.vacant-titol {
  max-width: 400px;
}

.vacant-titol h4 {
  margin: 0;
  color: var(--color-blau-fosc);
  margin-top: -4px;
}

.vacant-descripcio {
  flex: 2;
  color: var(--color-blau-fosc);
}

.vacant-descripcio p {
  margin: 0;
}

.vacant-boto {
  max-width: 50px;
  display: flex;
  justify-content: flex-end;
  height: stretch;
  align-items: center;
}


@media (max-width: 1024px) {
.vacant-item {
  gap: 20px;
}
.vacant-titol h4 {
font-size: 22px;
line-height: 1.2;
}
}

.icon-circle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  background-color: var(--color-blau-clar);
  color: var(--color-blanc);
  border-radius: 50%;
  transition:
    background-color 0.5s ease,
    transform 0.3s ease;
  cursor: pointer;
  font-size: 24px;
  font-weight: 100;
  padding-bottom: 4px;
  box-sizing: border-box;
  margin-top: 4px;
  margin-right: 2px;
}

.icon-circle:hover {
  background-color: var(--color-blau-fosc);
  transform: scale(1.15);
}

@media (max-width: 768px) {
  .vacant-item {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 0;
  }

  .vacant-col {
    max-width: 100%;
    width: 100%;
  }

  .vacant-boto {
    justify-content: flex-start;
  }
}
/* Configurar el contenidor pare */
.blc-tres-colmns {
    display: flex !important;
    flex-wrap: wrap !important; /* Permet que saltin a la següent línia */
    gap: 20px !important;       /* Espaiat entre targetes */
}

/* Configurar cada targeta (columna) */
.blc-tres-colmns .wp-block-column {
    /* 33.33% significa 3 per fila. Restem el gap per evitar que saltin */
    flex: 0 0 calc(33.33% - 14px) !important; 
    max-width: calc(33.33% - 14px) !important;
    margin: 0 !important; /* Eliminem marges per no trencar el càlcul */
    box-sizing: border-box !important;
}

/* Adaptació a 2 columnes per a tauletes (entre 480px i 1024px) */
@media (max-width: 1024px) {
    .blc-tres-colmns .wp-block-column {
        flex: 0 0 calc(50% - 10px) !important;
        max-width: calc(50% - 10px) !important;
    }
}

/* Adaptació a 1 columna per a mòbils (menys de 480px) */
@media (max-width: 480px) {
    .blc-tres-colmns .wp-block-column {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
}

/* ==========================================================
   ESTAT ACTIU DEL MENÚ (CONNEXIÓ REAL AMB L'HTML)
   ========================================================== */
.main-nav .main-nav-list li.current-menu-item > a,
.main-nav .main-nav-list li.current_page_item > a,
.main-nav .main-nav-list li.current-menu-ancestor > a,
.main-nav .main-nav-list li.current-page-ancestor > a {
  background: var(--color-blau-clar) !important;
  color: var(--color-blanc) !important;
  border-radius: 40px !important;
  padding: 0.75rem !important;
}

/* RESPONSIVE - MOBILE ACTIU */
@media (max-width: 768px) {
  .main-nav .main-nav-list li.current-menu-item > a,
  .main-nav .main-nav-list li.current_page_item > a,
  .main-nav .main-nav-list li.current-menu-ancestor > a,
  .main-nav .main-nav-list li.current-page-ancestor > a {
    border-radius: 12px !important;
    padding: 1rem !important;
  }
}

/* CARROUSSEL LOGOS */

.slider-logos-auto {
  overflow: hidden !important;
  width: 100%;
  padding: 2rem 0;
  -webkit-mask-image: linear-gradient(
    to right,
    transparent,
    black 5%,
    black 95%,
    transparent
  );
  mask-image: linear-gradient(
    to right,
    transparent,
    black 5%,
    black 95%,
    transparent
  );
}

.slider-track {
  display: flex;
  flex-wrap: nowrap;
  gap: 3rem;
  width: max-content;
  animation: scrollLogos 80s linear infinite;
}

/* Els logos venen dins d'un grup de Gutenberg (wp-block-group__inner-container
   amb is-layout-constrained) que els apilava en vertical -> "dues piles".
   Amb display:contents el grup deixa de ser una caixa i cada imatge passa a
   ser un ítem flex directe de la pista, tornant a quedar en fila. */
.slider-track > .wp-block-group__inner-container {
  display: contents;
}

/* Format per a cada bloc d'imatge (logo) */
.slider-track .wp-block-image {
  flex: 0 0 auto !important;
  width: 200px;
  margin: 0 !important;
}

.slider-track .wp-block-image img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

@keyframes scrollLogos {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-50% - 1.5rem));
  } /* -1.5rem compensa la meitat del 'gap' */
}

@media (max-width: 768px) {
  .slider-track .wp-block-image {
    width: 120px;
  }
  .slider-track {
    gap: 1rem;
  }

  .slider-logos-auto {
    padding-top: 0;
    padding-bottom: 0;
  }
}

.actualitat-vid > div {
  gap: 5rem;
  margin-bottom: 5rem;
}

.actualitat-vid > div {
  gap: 5rem;
  margin-bottom: 5rem;
}

.actualitat-vid .wp-block-columns:first-of-type {
  margin-top: 2rem;
}

.actualitat-vid .wp-block-embed iframe {
  border-radius: 10px;
}


/* ==========================================
   VACANTS — "+ informació" i popup
   ========================================== */

/* El botó "+" del llistat obre el popup */
button.vacant-link-icon {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  cursor: pointer;
  line-height: 0;
}

button.vacant-link-icon:hover .icon-circle,
button.vacant-link-icon:focus-visible .icon-circle {
  background-color: var(--color-blau-fosc);
  transform: scale(1.08);
}

.vacant-contingut-ocult {
  display: none;
}

/* --- Popup --- */

body.vacant-modal-obert {
  overflow: hidden;
}

.vacant-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.vacant-modal[hidden] {
  display: none;
}

.vacant-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(14, 36, 49, 0.6);
  cursor: pointer;
}

.vacant-modal__box {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 720px;
  max-height: 85vh;
  overflow-y: auto;
  background: var(--color-blanc);
  border-radius: 12px;
  padding: 48px 48px 40px;
  box-shadow: 0 20px 60px rgba(14, 36, 49, 0.25);
}

.vacant-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: var(--color-gris-clar);
  color: var(--color-blau-fosc);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.vacant-modal__close:hover {
  background: var(--color-blau-clar);
  color: var(--color-blanc);
}

.vacant-modal__data {
  margin: 0 0 4px;
  color: var(--color-blau-clar);
  font-size: 18px;
}

.vacant-modal__titol {
  margin: 0 0 20px;
  color: var(--color-blau-fosc);
}

.vacant-modal__contingut {
  color: var(--color-blau-fosc);
}

.vacant-modal__contingut > *:first-child {
  margin-top: 0;
}

.vacant-modal__contingut > *:last-child {
  margin-bottom: 0;
}

.vacant-modal__cta {
  display: inline-block;
  margin-top: 28px;
  padding: 12px 28px;
  border-radius: 40px;
  background: var(--color-blau-clar);
  color: var(--color-blanc);
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.vacant-modal__cta:hover {
  background: var(--color-blau-fosc);
  color: var(--color-blanc);
}

.site-main a.vacant-modal__cta::after {
  display: none !important;
}

@media (max-width: 767px) {
  .vacant-modal {
    padding: 12px;
  }

  .vacant-modal__box {
    padding: 56px 24px 32px;
    max-height: 90vh;
  }
}

/* === Pàgines legals (Avís legal, Privacitat, Cookies, Xarxes socials) === */
/* Fan servir el mateix ample que la resta del site (classe .container, 1600px) */
.pv-legal {
    max-width: 100%;
}
.pv-legal h1 {
    margin-bottom: 1rem;
}
.pv-legal h2 {
    color: var(--color-blau-fosc);
    font-size: 30px;
    margin-top: 4rem;
    margin-bottom: .75rem;
}
.pv-legal p,
.pv-legal li {
    line-height: 1.7;
}
.pv-legal ul {
    padding-left: 1.25rem;
    margin-bottom: 1rem;
}
.pv-legal a {
    color: var(--color-blau-clar);
    text-decoration: underline;
}
.pv-legal em {
    color: var(--color-gris-fosc);
}
.pv-legal .wp-block-table {
    overflow-x: auto;
    margin: 1.5rem 0;
}
.pv-legal table {
    width: 100%;
    border-collapse: collapse;
    font-size: .875rem;
}
.pv-legal th,
.pv-legal td {
    border: 1px solid var(--color-gris-clar);
    padding: .625rem .75rem;
    text-align: left;
    vertical-align: top;
}
.pv-legal th {
    background: var(--color-gris-calid);
    color: var(--color-blau-fosc);
}

/* ==========================================
   TEXT NOMÉS PER A LECTORS DE PANTALLA
   ========================================== */
.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ==========================================
   PÀGINA 404
   ========================================== */
.error-404 {
  padding-top: 6rem;
  padding-bottom: 8rem;
}

.error-404-inner {
  max-width: 780px;
}

.error-404-eyebrow {
  color: var(--color-blau-clar);
  margin-bottom: 1rem;
}

.error-404-title {
  margin-top: 0;
  margin-bottom: 2rem;
}

.error-404-text {
  margin-bottom: 2.5rem;
}

.error-404-actions {
  margin-bottom: 4rem;
}

.site-main a.error-404-btn {
  color: var(--color-blanc);
}

.site-main .error-404-links a {
  color: var(--color-blau-fosc);
}

.site-main .error-404-links a:hover {
  color: var(--color-blanc);
}

.site-main a.error-404-btn::after,
.site-main .error-404-links a::after {
  display: none;
}

.error-404-btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 500;
  font-size: 16px;
  color: var(--color-blanc);
  background: var(--color-blau-clar);
  padding: 0.9rem 1.75rem;
  border-radius: 40px;
  transition: background-color 0.3s ease;
}

.site-main a.error-404-btn:hover {
  background: var(--color-blau-fosc);
  color: var(--color-blanc);
}

.error-404-links h5 {
  margin-bottom: 1rem;
}

.error-404-links ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.error-404-links a {
  display: inline-block;
  text-decoration: none;
  color: var(--color-blau-fosc);
  font-weight: 500;
  font-size: 16px;
  background: var(--color-gris-calid);
  padding: 0.75rem 1.25rem;
  border-radius: 40px;
  transition: all 0.3s ease;
}

.error-404-links a:hover {
  background: var(--color-blau-clar);
  color: var(--color-blanc);
}

@media (max-width: 768px) {
  .error-404 {
    padding-top: 3rem;
    padding-bottom: 4rem;
  }
}
