@font-face {
  font-family: "massallera";
  src: url("../fonts/massallera.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  --aigua-profunda: #1a4a5c;
  --aigua: #2f7a8a;
  --aigua-clara: #7eb8c4;
  --boira: #e8f2f4;
  --sorra: #d4c4a8;
  --text: #1e2f36;
  --requadre-vora: #3d6b78;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
  overflow: hidden;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  max-height: 100dvh;
  font-family: georgia, serif;
  color: var(--text);
  background: var(--boira);
}

.fons {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 90% 60% at 20% 10%, rgba(126, 184, 196, 0.45), transparent 55%),
    radial-gradient(ellipse 70% 50% at 85% 20%, rgba(212, 196, 168, 0.35), transparent 50%),
    linear-gradient(165deg, #c5dde3 0%, #e8f2f4 40%, #b8d4c8 100%);
  animation: respirar-fons 14s ease-in-out infinite alternate;
}

@keyframes respirar-fons {
  from {
    filter: brightness(1);
  }
  to {
    filter: brightness(1.04);
  }
}

.capcalera {
  position: relative;
  padding: 0.75rem 0.6rem 0.45rem;
  animation: entrar-suau 0.9s ease-out both;
}

.capcalera-fila {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}

.capcalera-controls {
  position: absolute;
  z-index: 2;
  left: 20px;
  right: auto;
  bottom: calc(100% + 22px);
  top: auto;
  display: inline-flex;
  align-items: center;
}

.boto-auto,
.boto-escolta {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  margin: 0;
  padding: 0.1rem;
  color: var(--aigua-profunda);
  background: transparent;
  border: none;
  cursor: pointer;
}

.boto-escolta {
  position: relative;
  left: 10px;
}

.boto-auto {
  position: absolute;
  right: 100%;
  margin-right: 0.55rem;
  font-family: georgia, serif;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

.auto-etiqueta {
  letter-spacing: 0.02em;
}

.boto-auto:focus-visible,
.boto-escolta:focus-visible {
  outline: 2px solid var(--aigua-profunda);
  outline-offset: 3px;
}

.boto-auto[aria-pressed="true"] .radio-escolta::after {
  content: "";
  position: absolute;
  inset: 0.12rem;
  border-radius: 50%;
  background: var(--aigua-profunda);
}

.altaveu {
  display: block;
  width: 1.35rem;
  height: 1.35rem;
}

.altaveu-ona {
  display: none;
}

.boto-escolta[aria-pressed="true"] .altaveu-ona {
  display: inline;
}

.boto-escolta[aria-pressed="true"] .altaveu-ratlla {
  display: none;
}

.radio-escolta {
  box-sizing: border-box;
  width: 0.95rem;
  height: 0.95rem;
  border: 2px solid var(--aigua-profunda);
  border-radius: 50%;
  position: relative;
}

.boto-escolta[aria-pressed="true"] .radio-escolta::after {
  content: "";
  position: absolute;
  inset: 0.12rem;
  border-radius: 50%;
  background: var(--aigua-profunda);
}

.capcalera-web {
  position: relative;
  margin: 0;
  font-family: georgia, serif;
  font-size: clamp(0.72rem, 1.35vw, 0.92rem);
  line-height: 1.2;
  flex-shrink: 0;
  padding-bottom: 0.12rem;
  transform: translate(-20px, 12px);
}

.capcalera-web-enllac {
  color: #1155cc;
  text-decoration: none;
}

.capcalera-web-enllac:hover {
  color: #0d47a1;
  text-decoration: underline;
}

.titol {
  font-family: "massallera", cursive;
  font-size: clamp(1.45rem, 3.2vw, 2.45rem);
  font-weight: normal;
  line-height: 1.35;
  color: var(--aigua-profunda);
  white-space: nowrap;
  overflow: visible;
  letter-spacing: 0.006em;
}

.boto-seccio {
  flex-shrink: 0;
  width: 100%;
  padding: 0.4rem 0.55rem;
  font-family: georgia, serif;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--boira);
  background: var(--aigua);
  border: none;
  border-radius: 2px;
  cursor: pointer;
  transition:
    background 0.25s ease,
    transform 0.2s ease;
  text-align: left;
  line-height: 1.25;
}

.boto-seccio:hover {
  background: var(--aigua-profunda);
  transform: translateY(-1px);
}

.boto-seccio:focus-visible {
  outline: 2px solid var(--aigua-profunda);
  outline-offset: 3px;
}

.boto-seccio.actiu {
  background: var(--aigua-profunda);
}

.cos {
  flex: 1 1 auto;
  display: flex;
  gap: 0.55rem;
  min-height: 0;
  margin-top: 8px;
  padding: 0 0.6rem 0.85rem 0.6rem;
  animation: entrar-suau 1s 0.25s ease-out both;
}

.menu-esquerra {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex: 0 0 9.5rem;
  padding-top: 0.15rem;
  margin-top: 8px;
}

.contingut {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
  margin-top: 8px;
}

.requadre {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 0;
  padding: 0;
  border: 2px solid var(--requadre-vora);
  background: rgba(255, 255, 255, 0.35);
  color: var(--text);
  font-size: 1.05rem;
  line-height: 1.6;
  overflow: hidden;
}

.requadre-cos {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 1.1rem;
  overflow: auto;
  container-type: size;
}

.article-info {
  max-width: 52rem;
  animation: entrar-suau 0.45s ease-out both;
}

.article-info[hidden],
.article-presentacio[hidden],
.article-aigua[hidden],
.article-banyoles[hidden],
.article-info-gral[hidden],
.article-cancons-llegenda[hidden],
.article-agraiments[hidden] {
  display: none;
}

.article-info-gral {
  position: relative;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
  margin: -1.1rem -1.1rem -1.1rem 0;
  width: calc(100% + 1.1rem);
  animation: entrar-suau 0.45s ease-out both;
}

.article-cancons-llegenda {
  position: relative;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
  margin: -1.1rem -1.1rem -1.1rem 0;
  width: calc(100% + 1.1rem);
  animation: entrar-suau 0.45s ease-out both;
}

.article-agraiments {
  max-width: 46rem;
  animation: entrar-suau 0.45s ease-out both;
}

.agraiments-cos h2 {
  font-family: georgia, serif;
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  color: var(--aigua-profunda);
  margin: 0 0 1rem;
}

.agraiments-cos p {
  text-align: justify;
  margin: 0 0 0.95rem;
}

.agraiments-llista {
  margin: 0 0 1.25rem;
  padding-left: 1.2rem;
}

.agraiments-llista li {
  margin: 0 0 0.75rem;
  text-align: justify;
}

.agraiments-tancament {
  margin-top: 1.25rem;
}

.agraiments-firma {
  font-weight: 700;
  color: var(--aigua-profunda);
}

.agraiments-data {
  margin-top: 1.1rem;
  text-align: left;
}

#contingut-cancons-llegenda .sageta-esquerra {
  left: calc(30% - 2.4rem);
  margin-left: 0;
}

#contingut-cancons-llegenda.llegenda-activa .sageta-esquerra {
  left: auto;
  right: calc(32% + 0.15rem);
}

#contingut-cancons-llegenda .sageta-dreta {
  right: 0.6rem;
}

#galeria-cancons-llegenda .aigua-diapo-text {
  grid-template-columns: 1fr;
}

#galeria-cancons-llegenda .aigua-diapo-llegenda {
  grid-template-columns: minmax(0, 1fr) minmax(14rem, 32%);
}

#galeria-cancons-llegenda .cancons-llegenda-text {
  justify-content: flex-start;
  overflow-y: auto;
  max-height: 100%;
  padding-right: 1rem;
}

#galeria-cancons-llegenda .llegenda-cap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  margin: 0 0 0.85rem;
}

#galeria-cancons-llegenda .cancons-llegenda-text h2 {
  font-family: georgia, serif;
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  color: var(--aigua-profunda);
  margin: 0 0 0.85rem;
}

#galeria-cancons-llegenda .llegenda-cap h2 {
  margin: 0;
}

.boto-imprimir-llegenda {
  flex-shrink: 0;
  padding: 0.35rem 0.75rem;
  border: 1px solid rgba(61, 107, 120, 0.45);
  border-radius: 0.35rem;
  background: rgba(255, 255, 255, 0.92);
  color: var(--aigua-profunda);
  font: inherit;
  font-size: 0.92rem;
  cursor: pointer;
}

.boto-imprimir-llegenda:hover {
  background: #fff;
}

#llegenda-print-root {
  display: none;
}

#galeria-cancons-llegenda .cancons-llegenda-text h3 {
  font-family: georgia, serif;
  font-size: 1.15rem;
  color: var(--aigua-profunda);
  margin: 1rem 0 0.45rem;
}

#galeria-cancons-llegenda .cancons-autor {
  margin: 0 0 0.65rem;
  font-style: italic;
}

#galeria-cancons-llegenda .cancons-enllacos {
  list-style: none;
  margin: 0 0 1.1rem;
  padding: 0;
}

#galeria-cancons-llegenda .cancons-enllacos li {
  margin: 0.35rem 0;
}

#galeria-cancons-llegenda .cancons-enllacos a {
  color: #1155cc;
  text-decoration: none;
  font-weight: 600;
}

#galeria-cancons-llegenda .cancons-enllacos a:hover {
  text-decoration: underline;
}

#galeria-cancons-llegenda .cancons-llegenda-text p {
  text-align: justify;
  margin: 0 0 0.75rem;
}

#galeria-cancons-llegenda .veu-remarcada {
  font-style: italic;
  font-weight: 700;
}

#galeria-cancons-llegenda .aigua-foto-llegenda {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  box-sizing: border-box;
  padding: 0.35rem 2.4rem 0.35rem 0.15rem;
  overflow: hidden;
}

#galeria-cancons-llegenda .aigua-foto-llegenda .aigua-img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: right center;
}

.info-gral-cap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex: 0 0 auto;
  padding: 0.4rem 3.5rem 0.45rem 0.35rem;
  border-bottom: 1px solid rgba(61, 107, 120, 0.22);
}

.info-gral-titol {
  margin: 0;
  font-family: georgia, serif;
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--aigua-profunda);
}

#galeria-info-gral {
  flex: 1 1 auto;
  min-height: 0;
}

#contingut-info-gral .sageta-esquerra {
  left: calc(30% - 2.4rem);
  margin-left: 0;
}

#contingut-info-gral .sageta-dreta {
  right: 0.6rem;
}

#galeria-info-gral .aigua-diapo-text {
  grid-template-columns: 1fr;
  min-height: 0;
}

#galeria-info-gral .aigua-text-complet {
  justify-content: flex-start;
  align-items: stretch;
  overflow-x: hidden;
  overflow-y: auto;
  min-height: 0;
  max-height: 100%;
  padding: 0.5rem 3.2rem 1rem 0.35rem;
}

#galeria-info-gral .aigua-text-complet h3,
#galeria-info-gral .aigua-text h3 {
  font-family: georgia, serif;
  font-size: 1.2rem;
  color: var(--aigua-profunda);
  margin: 0 0 0.75rem;
}

#galeria-info-gral .aigua-text-complet p {
  text-align: justify;
  margin: 0 0 0.9rem;
}

#galeria-info-gral .info-gral-figura {
  display: block;
  width: min(100%, 34rem);
  height: auto;
  margin: 0.15rem auto 1.1rem;
}

#galeria-info-gral .dades {
  list-style: none;
  margin: 0;
  padding: 0;
}

#galeria-info-gral .dades li {
  padding: 0.25rem 0;
}

#galeria-info-gral .aigua-foto-estany {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: 0 3.2rem 0 0.5rem;
  overflow: hidden;
}

#galeria-info-gral .aigua-foto-estany .aigua-img {
  width: auto;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
}

#galeria-info-gral .aigua-diapo-text .aigua-text {
  justify-content: flex-start;
}

#galeria-info-gral .aigua-foto:not(.aigua-foto-estany) {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: 0 3.2rem 0 0.5rem;
  overflow: visible;
}

#galeria-info-gral .aigua-foto:not(.aigua-foto-estany) .aigua-img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
}

.boto-imprimir-inf-gral {
  flex-shrink: 0;
  padding: 0.35rem 0.75rem;
  border: 1px solid rgba(61, 107, 120, 0.45);
  border-radius: 0.35rem;
  background: rgba(255, 255, 255, 0.92);
  color: var(--aigua-profunda);
  font: inherit;
  font-size: 0.92rem;
  cursor: pointer;
}

.boto-imprimir-inf-gral:hover {
  background: #fff;
}

#info-gral-print-root {
  display: none;
}

@media print {
  html,
  body {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
    display: block !important;
  }

  body.info-gral-imprimint > :not(#info-gral-print-root) {
    display: none !important;
  }

  body.info-gral-imprimint #info-gral-print-root {
    display: block !important;
    width: 100% !important;
    padding: 0.75cm 1cm !important;
    color: #000 !important;
    background: #fff !important;
  }

  #info-gral-print-root .sageta,
  #info-gral-print-root .boto-imprimir-inf-gral,
  #info-gral-print-root .aigua-final {
    display: none !important;
  }

  #info-gral-print-root .info-gral-cap {
    display: block !important;
    padding: 0 0 0.75rem !important;
    border-bottom: 1px solid #999 !important;
    margin-bottom: 0.75rem !important;
  }

  #info-gral-print-root .info-gral-titol {
    font-size: 1.35rem !important;
  }

  #info-gral-print-root .galeria-info-gral {
    display: block !important;
    position: static !important;
    height: auto !important;
    overflow: visible !important;
  }

  #info-gral-print-root .aigua-diapo {
    position: static !important;
    display: grid !important;
    grid-template-columns: minmax(9rem, 32%) minmax(0, 1fr) !important;
    opacity: 1 !important;
    visibility: visible !important;
    height: auto !important;
    width: 100% !important;
    margin: 0 0 1rem !important;
    page-break-after: always;
    break-after: page;
  }

  #info-gral-print-root .aigua-diapo:last-child {
    page-break-after: auto;
    break-after: auto;
  }

  #info-gral-print-root .aigua-diapo-text {
    grid-template-columns: 1fr !important;
  }

  #info-gral-print-root .aigua-text,
  #info-gral-print-root .aigua-text-complet {
    overflow: visible !important;
    max-height: none !important;
    padding: 0 0.75rem 0 0 !important;
  }

  #info-gral-print-root .aigua-text-complet p {
    text-align: justify;
    margin: 0 0 0.75rem;
  }

  #info-gral-print-root .info-gral-figura {
    width: auto !important;
    max-width: 12cm !important;
    max-height: 8cm !important;
    margin: 0.3rem auto 0.8rem !important;
  }

  #info-gral-print-root .aigua-foto,
  #info-gral-print-root .aigua-foto-estany {
    height: auto !important;
    padding: 0 !important;
    overflow: visible !important;
  }

  #info-gral-print-root .aigua-img {
    width: auto !important;
    height: auto !important;
    max-width: 100% !important;
    max-height: 14cm !important;
    object-fit: contain !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  body.llegenda-imprimint > :not(#llegenda-print-root) {
    display: none !important;
  }

  body.llegenda-imprimint #llegenda-print-root {
    display: block !important;
    width: 100% !important;
    padding: 0.75cm 1cm !important;
    color: #000 !important;
    background: #fff !important;
  }

  #llegenda-print-root .sageta,
  #llegenda-print-root .boto-imprimir-llegenda {
    display: none !important;
  }

  #llegenda-print-root .aigua-diapo-llegenda {
    position: static !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(9rem, 32%) !important;
    opacity: 1 !important;
    visibility: visible !important;
    height: auto !important;
    width: 100% !important;
    margin: 0 !important;
  }

  #llegenda-print-root .llegenda-cap {
    display: block !important;
    margin: 0 0 0.75rem !important;
    padding: 0 0 0.5rem !important;
    border-bottom: 1px solid #999 !important;
  }

  #llegenda-print-root .llegenda-cap h2,
  #llegenda-print-root .cancons-llegenda-text h2 {
    font-size: 1.35rem !important;
    margin: 0 !important;
  }

  #llegenda-print-root .cancons-llegenda-text {
    overflow: visible !important;
    max-height: none !important;
    padding: 0 0.75rem 0 0 !important;
  }

  #llegenda-print-root .cancons-llegenda-text h3 {
    font-size: 1.15rem !important;
    margin: 0.5rem 0 0.65rem !important;
  }

  #llegenda-print-root .cancons-llegenda-text p {
    text-align: justify;
    margin: 0 0 0.75rem;
  }

  #llegenda-print-root .aigua-foto-llegenda {
    height: auto !important;
    padding: 0 !important;
    overflow: visible !important;
    align-items: flex-start !important;
  }

  #llegenda-print-root .aigua-img {
    width: auto !important;
    height: auto !important;
    max-width: 100% !important;
    max-height: 14cm !important;
    object-fit: contain !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}

.article-banyoles {
  position: relative;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
  margin: -1.1rem -1.1rem -1.1rem 0;
  width: calc(100% + 1.1rem);
  animation: entrar-suau 0.45s ease-out both;
}

#contingut-estany-banyoles .sageta-esquerra {
  left: calc(30% - 2.4rem);
  margin-left: 0;
}

#contingut-estany-banyoles .sageta-dreta {
  right: 0.6rem;
}

#galeria-banyoles .aigua-foto {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: 0 3.2rem 0 0.5rem;
  overflow: visible;
}

#galeria-banyoles .aigua-img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
}

#galeria-espolla .aigua-foto {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: 0 3.2rem 0 0.5rem;
  overflow: visible;
}

#galeria-espolla .aigua-img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
}

#galeria-espolla .aigua-foto-mapa .aigua-img {
  object-fit: fill;
}

#contingut-estany-espolla .sageta-esquerra {
  left: calc(30% - 2.4rem);
  margin-left: 0;
}

#contingut-estany-espolla .sageta-dreta {
  right: 0.6rem;
}

#galeria-recs .aigua-diapo {
  grid-template-columns: minmax(16rem, 46%) minmax(0, 1fr);
}

#contingut-els-recs .sageta-esquerra {
  left: calc(46% - 2.4rem);
  margin-left: 0;
}

#contingut-els-recs .sageta-dreta {
  right: 0.6rem;
}

#galeria-recs .aigua-text {
  padding-right: 4.6rem;
}

#galeria-recs .aigua-text p {
  margin: 0 0 0.75rem;
}

#galeria-recs .aigua-text p:last-child {
  margin-bottom: 0;
}

#galeria-recs .aigua-foto {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: 0.6rem 3.2rem 0.7rem 0.5rem;
  overflow: visible;
}

#galeria-recs .aigua-img {
  flex: 0 0 auto;
  width: min(100%, 28rem);
  height: min(58%, 24rem);
  max-height: calc(100% - 2.8rem);
  object-fit: contain;
  object-position: center;
}

#galeria-recs .aigua-diapo-gran .aigua-img {
  width: min(100%, 38rem);
  height: min(94%, 44rem);
  max-height: calc(100% - 0.6rem);
}

#galeria-recs .aigua-diapo-cabals .aigua-foto {
  padding: 0.6rem 7.4rem 0.7rem 4rem;
}

#galeria-recs .aigua-diapo-cabals .aigua-img {
  width: min(100%, 42rem);
  height: auto;
  max-height: calc(100% - 0.4rem);
}

#galeria-recs .aigua-diapo-mapa .aigua-foto {
  justify-content: center;
  padding-top: 2.6rem;
}

#galeria-recs .aigua-diapo-mapa .aigua-img {
  width: auto;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

#galeria-recs .boto-mapa-recs {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: min(36rem, 100%);
  max-height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  line-height: 0;
}

#galeria-recs .boto-mapa-recs:focus-visible {
  outline: 2px solid var(--aigua-profunda);
  outline-offset: 4px;
}

#galeria-recs .mapa-amb-corrent {
  position: relative;
  display: block;
  height: 100%;
  max-height: 100%;
  width: auto;
  max-width: 100%;
  aspect-ratio: 780 / 1040;
}

#galeria-recs .mapa-amb-corrent .aigua-img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: fill;
}

#galeria-recs .corrent-recs {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

#galeria-recs .corrent-recs path {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#galeria-recs .corrent-fons path {
  stroke: #0e5cad;
  stroke-opacity: 0.82;
  stroke-width: 7.5;
  stroke-dasharray: 12 24;
  animation: corre-aigua 0.75s linear infinite;
}

#galeria-recs .corrent-brillo path {
  stroke: #f4feff;
  stroke-width: 3.4;
  stroke-dasharray: 4 14;
  animation: corre-aigua 0.75s linear infinite;
}

#galeria-recs .corrent-fons path:nth-child(2),
#galeria-recs .corrent-brillo path:nth-child(2) {
  animation-delay: -0.19s;
}

#galeria-recs .corrent-fons path:nth-child(3),
#galeria-recs .corrent-brillo path:nth-child(3) {
  animation-delay: -0.38s;
}

#galeria-recs .corrent-fons path:nth-child(4),
#galeria-recs .corrent-brillo path:nth-child(4) {
  animation-delay: -0.56s;
}

#galeria-recs .corrent-fons path:nth-child(5),
#galeria-recs .corrent-brillo path:nth-child(5) {
  animation-delay: -0.13s;
}

@keyframes corre-aigua {
  to {
    stroke-dashoffset: -36;
  }
}

@media (prefers-reduced-motion: reduce) {
  #galeria-recs .corrent-recs path {
    animation: none;
  }
}

#galeria-recs .aigua-diapo-rodant .aigua-text {
  justify-content: flex-start;
  padding-top: 0.7rem;
  padding-bottom: 0.45rem;
  min-height: 0;
  overflow: hidden;
}

#galeria-recs .aigua-diapo-rodant .aigua-text p {
  flex: 0 0 auto;
}

#galeria-recs .aigua-mapa-fix {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 0;
  width: 100%;
  margin-top: 0.45rem;
}

#galeria-recs .aigua-mapa-fix img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: left center;
}

#galeria-recs .aigua-diapo-rodant .aigua-foto {
  align-items: center;
  justify-content: center;
  padding: 0.35rem 7.4rem 0.4rem 4rem;
}

#galeria-recs .aigua-diapo-rodant .recs-rodant {
  position: relative;
  flex: 0 0 auto;
  width: min(100%, 46rem);
  max-height: calc(100% - 6rem);
  aspect-ratio: 4 / 3;
  height: auto;
  align-self: center;
  background: transparent;
}

#galeria-recs .recs-rodant .carrusel-img {
  object-fit: cover;
  object-position: center center;
  transition: opacity 1.4s ease-in-out;
}

#galeria-recs .recs-rodant .carrusel-img.foto-vertical,
#galeria-recs .recs-rodant .carrusel-img.foto-sencera {
  object-fit: contain;
}

#galeria-recs .recs-rodant .carrusel-img.foto-rentador {
  object-position: 78% center;
}

#galeria-recs .aigua-peu {
  flex: 0 0 auto;
  width: min(100%, 46rem);
  max-width: 100%;
  margin: 0.4rem 0 0;
  font-size: 0.92rem;
  line-height: 1.3;
  text-align: center;
  color: var(--aigua-profunda);
}

#contingut-sempetiteix .sageta-esquerra {
  left: calc(30% - 2.4rem);
  margin-left: 0;
}

#contingut-sempetiteix .sageta-dreta {
  right: 0.6rem;
}

#galeria-espolla .aigua-foto-mapa .aigua-foto-marc {
  position: relative;
  width: 100%;
  height: 100%;
  container-type: size;
}

#galeria-espolla .aigua-foto-mapa .aigua-foto-marc .aigua-img {
  display: block;
}

/* Sageta de la ubicació d'Espolla: més llarga/ampla i proporcional al mapa */
.fletxa-espolla-ubicacio .fletxa-pal {
  width: max(7px, 1.6cqh);
  height: clamp(72px, 22cqh, 200px);
}

.fletxa-espolla-ubicacio .fletxa-linia {
  width: max(7px, 1.6cqh);
  height: calc(100% - max(14px, 3.2cqh));
  margin-top: max(14px, 3.2cqh);
  border-radius: max(3px, 0.7cqh);
}

.fletxa-espolla-ubicacio .fletxa-punta {
  border-left-width: max(10px, 2.2cqh);
  border-right-width: max(10px, 2.2cqh);
  border-bottom-width: max(15px, 3.2cqh);
}

#galeria-espolla .aigua-diapo:nth-child(1) .aigua-foto-marc {
  position: relative;
  width: 100%;
  height: 100%;
}

#galeria-espolla .aigua-diapo:nth-child(1) .aigua-foto-marc .aigua-img {
  display: block;
}

.efecte-pluja-espolla-garrotxa {
  top: 22%;
  right: 1%;
  width: 43%;
  height: 54%;
  z-index: 2;
  -webkit-clip-path: polygon(
    38% 8%,
    100% 10%,
    100% 100%,
    56% 100%,
    18% 78%,
    38% 8%
  );
  clip-path: polygon(
    38% 8%,
    100% 10%,
    100% 100%,
    56% 100%,
    18% 78%,
    38% 8%
  );
  -webkit-mask-image: none;
  mask-image: none;
  animation:
    pluja-caiguda 0.26s linear infinite,
    pluja-intensitat-mapa 8s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .efecte-pluja-espolla-garrotxa {
    animation: none;
    opacity: 0.65;
  }
}

.fletxa-mapa {
  position: absolute;
  z-index: 3;
  width: 0;
  height: 0;
  pointer-events: none;
}

.fletxa-mapa .fletxa-pal {
  pointer-events: none;
  cursor: default;
  transform: rotate(var(--fx-angle, 180deg));
  animation: fletxa-batec 1.1s ease-in-out infinite;
  transform-origin: center bottom;
}

@keyframes fletxa-batec {
  0%,
  100% {
    transform: rotate(var(--fx-angle, 180deg)) scale(1);
    opacity: 1;
  }

  50% {
    transform: rotate(var(--fx-angle, 180deg)) scale(1.15);
    opacity: 0.55;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fletxa-mapa .fletxa-pal {
    animation: none;
  }
}

.fletxa-interactiva {
  position: absolute;
  z-index: 3;
  width: 0;
  height: 0;
  pointer-events: none;
}

.fletxa-interactiva.arrossegant,
.fletxa-interactiva:focus-within {
  z-index: 5;
}

.fletxa-pal {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 5px;
  height: var(--fx-length, 80px);
  transform-origin: center bottom;
  pointer-events: auto;
  cursor: grab;
  touch-action: none;
}

.fletxa-interactiva.arrossegant .fletxa-pal,
.fletxa-interactiva.arrossegant .fletxa-maneta {
  cursor: grabbing;
}

.fletxa-linia {
  display: block;
  width: 5px;
  height: calc(100% - 11px);
  margin: 11px auto 0;
  background: #2b78e4;
  border-radius: 3px;
  box-shadow: 0 0 0 1px rgb(255 255 255 / 70%);
  pointer-events: none;
}

.fletxa-punta {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 12px solid #2b78e4;
  filter: drop-shadow(0 0 1px rgb(255 255 255 / 80%));
  pointer-events: none;
}

.fletxa-maneta {
  position: absolute;
  z-index: 2;
  padding: 0;
  border: 2px solid #fff;
  pointer-events: auto;
  touch-action: none;
  cursor: grab;
  box-shadow: 0 1px 4px rgb(0 0 0 / 35%);
}

.fletxa-maneta-cua {
  left: 0;
  top: 0;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #2b78e4;
  transform: translate(-50%, -50%);
}

.fletxa-maneta-cap {
  top: -7px;
  left: 50%;
  width: 14px;
  height: 14px;
  border-radius: 3px;
  background: #fff;
  border-color: #2b78e4;
  transform: translateX(-50%) rotate(45deg);
}

.fletxa-interactiva:hover .fletxa-maneta,
.fletxa-interactiva.arrossegant .fletxa-maneta {
  opacity: 1;
}

.fletxa-maneta {
  opacity: 0.85;
}

.fletxa-coords {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.2rem;
  z-index: 4;
  margin: 0;
  padding: 0.2rem 0.45rem;
  font-size: 0.68rem;
  line-height: 1.3;
  text-align: center;
  color: #1a1a1a;
  background: rgb(255 255 255 / 88%);
  border-radius: 0.25rem;
  pointer-events: auto;
  cursor: copy;
}

.fletxa-vermella .fletxa-linia {
  background: #d62828;
}

.fletxa-vermella .fletxa-punta {
  border-bottom-color: #d62828;
}

.fletxa-vermella .fletxa-maneta-cua {
  background: #d62828;
}

.fletxa-vermella .fletxa-maneta-cap {
  border-color: #d62828;
}

/* Sageta del riu al Pla de Martís: blanc amb contorn fosc i aigua que avança */
.fletxa-blanca .fletxa-linia {
  width: 7px;
  background-color: #fff;
  background-image: repeating-linear-gradient(
    to top,
    #1f6fbf 0 3px,
    #fff 3px 9px
  );
  background-size: 100% 12px;
  box-shadow: 0 0 0 1.5px rgb(0 0 0 / 75%);
  animation: fletxa-aigua-avanca 0.7s linear infinite;
}

.fletxa-blanca .fletxa-punta {
  border-left-width: 9px;
  border-right-width: 9px;
  border-bottom-width: 13px;
  border-bottom-color: #1f6fbf;
  filter: drop-shadow(0 0 1.5px rgb(0 0 0 / 85%));
}

@keyframes fletxa-aigua-avanca {
  from {
    background-position: 0 0;
  }

  to {
    background-position: 0 -12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fletxa-blanca .fletxa-linia {
    animation: none;
    background-image: none;
    background-color: #fff;
  }

  .fletxa-blanca .fletxa-punta {
    border-bottom-color: #fff;
  }
}

.article-presentacio {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 100%;
  margin: -1.1rem -1.1rem -1.1rem 0;
  width: calc(100% + 1.1rem);
  animation: entrar-suau 0.45s ease-out both;
}

.presentacio-panell {
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: minmax(12.5rem, 34%) minmax(0, 1fr);
  gap: 0.75rem;
  min-height: 0;
  height: 100%;
  width: 100%;
  align-items: stretch;
  padding: 0 0.35rem 0 0.2rem;
  box-sizing: border-box;
}

.presentacio-text {
  margin: 0;
  padding: 0.55rem 0.45rem 0.55rem 0.15rem;
  align-self: center;
  font-size: clamp(0.92rem, 1.35vw, 1.05rem);
  line-height: 1.42;
  text-align: justify;
  color: var(--aigua-profunda);
  overflow: hidden;
}

.carrusel {
  position: relative;
  flex: 1 1 auto;
  width: 100%;
  min-height: 0;
  min-width: 0;
  overflow: hidden;
  background: #1e2f36;
}

.carrusel-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  opacity: 0;
  z-index: 0;
  transition: opacity 1.6s ease-in-out;
  pointer-events: none;
}

.carrusel-img.actiu {
  opacity: 1;
  z-index: 1;
}

.article-aigua {
  position: relative;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 100%;
  margin: -1.1rem -1.1rem -1.1rem 0;
  width: calc(100% + 1.1rem);
  animation: entrar-suau 0.45s ease-out both;
}

.galeria-aigua {
  flex: 1 1 auto;
  position: relative;
  min-height: 0;
  width: 100%;
  height: 100%;
}

.aigua-diapo {
  display: grid;
  grid-template-columns: minmax(11rem, 30%) minmax(0, 1fr);
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  min-height: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 0;
  transition: opacity 2s ease-in-out, visibility 2s ease-in-out;
}

.aigua-diapo.actiu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 1;
}

.aigua-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  box-sizing: border-box;
  padding: 1rem 1.1rem 4.2rem 0.35rem;
  margin: 0;
  font-size: 1rem;
  line-height: 1.45;
  text-align: left;
  color: var(--aigua-profunda);
}

.aigua-final {
  display: block;
  margin-top: 1.35rem;
  font-size: 0.88rem;
  line-height: 1.35;
  color: #b01010;
}

.aigua-final[hidden] {
  display: none;
}

#contingut-sempetiteix .aigua-text {
  padding-bottom: 1rem;
}

.aigua-ajuda {
  position: absolute;
  left: 0.35rem;
  bottom: 0.35rem;
  z-index: 4;
  width: min(28%, 16rem);
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.35;
  color: var(--aigua-profunda);
}

#contingut-sempetiteix .aigua-ajuda-auto {
  width: min(26%, 23rem);
}

#contingut-sempetiteix .aigua-ajuda-linia {
  display: block;
}

.aigua-foto {
  position: relative;
  min-width: 0;
  min-height: 0;
  height: 100%;
  overflow: hidden;
}

.aigua-foto-mapa {
  display: flex;
  align-items: center;
  justify-content: center;
}

.aigua-foto-esquema {
  display: flex;
  align-items: center;
  justify-content: center;
}

.aigua-foto-marc {
  position: relative;
  height: 100%;
  width: auto;
  max-width: 100%;
  aspect-ratio: 956 / 840;
}

.aigua-foto-marc-5 {
  aspect-ratio: 623 / 336;
  width: 100%;
  height: auto;
  max-height: 100%;
}

.aigua-foto-draga {
  display: flex;
  align-items: center;
  justify-content: center;
}

.aigua-foto-marc-draga {
  aspect-ratio: 1 / 1;
  width: auto;
  height: 100%;
  max-width: 100%;
}

.aigua-foto-marc-draga .aigua-img {
  object-fit: fill;
}

.efecte-aigua-draga {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(
      180deg,
      rgba(46, 140, 180, 0.45) 0%,
      rgba(30, 110, 160, 0.55) 45%,
      rgba(20, 90, 140, 0.62) 100%
    );
  -webkit-clip-path: polygon(
    0% 29.7%,
    4.4% 29.5%,
    8.7% 29.5%,
    13.1% 28.2%,
    17.4% 27.7%,
    23.8% 27.7%,
    28.2% 26.7%,
    33.1% 26.4%,
    40% 26.4%,
    46.4% 26.7%,
    51.8% 27.2%,
    56.2% 27.2%,
    60.5% 27.4%,
    64.9% 25.9%,
    69.2% 24.9%,
    73.8% 25.1%,
    78.2% 25.1%,
    82.6% 24.6%,
    88.5% 23.6%,
    93.6% 23.6%,
    100% 23.6%,
    100% 100%,
    0% 100%
  );
  clip-path: polygon(
    0% 29.7%,
    4.4% 29.5%,
    8.7% 29.5%,
    13.1% 28.2%,
    17.4% 27.7%,
    23.8% 27.7%,
    28.2% 26.7%,
    33.1% 26.4%,
    40% 26.4%,
    46.4% 26.7%,
    51.8% 27.2%,
    56.2% 27.2%,
    60.5% 27.4%,
    64.9% 25.9%,
    69.2% 24.9%,
    73.8% 25.1%,
    78.2% 25.1%,
    82.6% 24.6%,
    88.5% 23.6%,
    93.6% 23.6%,
    100% 23.6%,
    100% 100%,
    0% 100%
  );
  animation: aigua-brillo 4s ease-in-out infinite alternate;
}

.aigua-foto-inundacio {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.canvas-inundacio {
  width: 100%;
  height: 100%;
  object-fit: fill;
  image-rendering: auto;
}

/* 1a i 3a de «Cada cop més gros»: ocupen tot el requadre, sense franges */
#galeria-gros .aigua-diapo:nth-child(1) .aigua-foto,
#galeria-gros .aigua-foto-inundacio,
#galeria-petit .aigua-foto-inundacio {
  display: block;
  background: transparent;
}

#galeria-gros .aigua-diapo:nth-child(1) .aigua-img,
#galeria-gros .canvas-inundacio,
#galeria-petit .canvas-inundacio,
#galeria-petit .aigua-foto-inundacio .aigua-img {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: fill;
  object-position: center;
}

.aigua-foto-retirada-final {
  position: relative;
}

.aigua-foto-primera-inundacio {
  position: relative;
}


.aigua-foto-enfonsament {
  position: relative;
  background: #e6e1d6;
}

.enfonsament-fotograma {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  opacity: 0;
  z-index: 0;
  transition: opacity 1.6s ease-in-out;
  pointer-events: none;
}

.enfonsament-fotograma.visible {
  opacity: 1;
}

.enfonsament-corrent {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 6;
}
.mes-petit-3-marc {
  position: relative;
  width: 100%;
  height: 100%;
  --neolitic-aigua-alcada: 45%;
}

.mes-petit-3-marc > .aigua-img:not(.mes-petit-3-superposat) {
  display: block;
}

.mes-petit-3-marc .fletxa-coords {
  z-index: 6;
  bottom: 0.35rem;
  left: 0.35rem;
  right: 0.35rem;
  font-size: 0.72rem;
}

.fletxa-draga {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.fletxa-draga.visible {
  opacity: 1;
  visibility: visible;
}

.fletxa-draga.visible .fletxa-pal,
.fletxa-draga.visible .fletxa-maneta {
  pointer-events: auto;
}

.mes-petit-3-superposat {
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: 0;
  transition: opacity 2s ease-in-out;
  pointer-events: none;
}

.mes-petit-3-superposat.visible {
  opacity: 1;
}

.mes-petit-3-neolitic {
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: 0;
  transition: opacity 2s ease-in-out;
  pointer-events: none;
}

.mes-petit-3-neolitic .aigua-img {
  width: 100%;
  height: 100%;
  object-fit: fill;
}

.efecte-inundacio-neolitic {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  height: 0;
  pointer-events: none;
  background:
    linear-gradient(
      180deg,
      rgba(72, 158, 198, 0.35) 0%,
      rgba(38, 118, 168, 0.62) 38%,
      rgba(22, 88, 138, 0.78) 100%
    );
  box-shadow: inset 0 10px 18px rgb(255 255 255 / 18%);
}

.efecte-inundacio-neolitic::before {
  content: "";
  position: absolute;
  top: -0.45rem;
  left: -8%;
  width: 116%;
  height: 0.9rem;
  border-radius: 45% 55% 52% 48%;
  background: rgb(118 188 228 / 55%);
  filter: blur(1px);
  animation: ona-neolitic 2.8s ease-in-out infinite;
}

.mes-petit-3-neolitic.inundacio-activa .efecte-inundacio-neolitic {
  animation: inundacio-neolitic-pujar 3s ease-out forwards;
}

.mes-petit-3-neolitic.inundacio-activa .efecte-inundacio-neolitic::before {
  animation: ona-neolitic 2.8s ease-in-out infinite, aigua-brillo-neolitic 4s ease-in-out infinite alternate;
}

@keyframes inundacio-neolitic-pujar {
  from {
    height: 0;
  }

  to {
    height: var(--neolitic-aigua-alcada, 45%);
  }
}

@keyframes ona-neolitic {
  0%,
  100% {
    transform: translateY(0) scaleX(1);
  }

  50% {
    transform: translateY(-2px) scaleX(1.03);
  }
}

@keyframes aigua-brillo-neolitic {
  from {
    opacity: 0.7;
  }

  to {
    opacity: 1;
  }
}

.aigua-foto-retirada-final .canvas-inundacio {
  position: relative;
  z-index: 1;
  transition: opacity 2.5s ease-in-out;
}

.aigua-foto-retirada-final.fusionat .canvas-inundacio {
  opacity: 0;
}

.aigua-foto-retirada-final .mes-petit-5-superposat {
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: 0;
  transition: opacity 2.5s ease-in-out;
  pointer-events: none;
}

.aigua-foto-retirada-final .mes-petit-5-superposat.visible {
  opacity: 1;
}

@keyframes aigua-brillo {
  from {
    opacity: 0.85;
    filter: brightness(1);
  }
  to {
    opacity: 1;
    filter: brightness(1.08);
  }
}

.aigua-foto-marc .aigua-img {
  width: 100%;
  height: 100%;
  object-fit: fill;
}

.aigua-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.aigua-diapo:nth-child(1) .aigua-img,
.aigua-diapo:nth-child(5) .aigua-img,
.aigua-diapo:nth-child(7) .aigua-img {
  object-fit: contain;
}

.aigua-diapo:nth-child(1) .aigua-foto-marc .aigua-img,
.aigua-diapo:nth-child(5) .aigua-foto-marc .aigua-img {
  object-fit: fill;
}

/* D'on ve l'aigua: 1a i última omplen tot l'espai de la foto */
#galeria-aigua .aigua-diapo:nth-child(1) .aigua-foto,
#galeria-aigua #diapo-aigua-sifons .aigua-foto {
  display: block;
}

#galeria-aigua .aigua-diapo:nth-child(1) .aigua-img,
#galeria-aigua #diapo-aigua-sifons .aigua-img {
  width: 100%;
  height: 100%;
  object-fit: fill;
  object-position: center;
}

#galeria-aigua .aigua-diapo:nth-child(5) .aigua-img {
  object-fit: cover;
}

#galeria-aigua .aigua-diapo:nth-child(5) .aigua-foto-marc .aigua-img {
  object-fit: fill;
}

.efecte-pluja {
  position: absolute;
  top: 3%;
  right: 1%;
  width: 34%;
  height: 36%;
  pointer-events: none;
  overflow: hidden;
  opacity: 0.12;
  background-image:
    linear-gradient(
      155deg,
      transparent 0 38%,
      rgba(55, 95, 160, 0.85) 44%,
      rgba(55, 95, 160, 0.25) 52%,
      transparent 58% 100%
    ),
    linear-gradient(
      155deg,
      transparent 0 36%,
      rgba(70, 115, 185, 0.75) 43%,
      transparent 52% 100%
    ),
    linear-gradient(
      155deg,
      transparent 0 40%,
      rgba(45, 85, 150, 0.8) 46%,
      transparent 54% 100%
    ),
    linear-gradient(
      155deg,
      transparent 0 42%,
      rgba(80, 125, 195, 0.7) 47%,
      transparent 53% 100%
    );
  background-size:
    8px 20px,
    11px 26px,
    7px 16px,
    13px 24px;
  background-position:
    0 0,
    5px 3px,
    2px 9px,
    8px 6px;
  -webkit-mask-image: radial-gradient(ellipse 85% 75% at 55% 35%, #000 25%, transparent 78%);
  mask-image: radial-gradient(ellipse 85% 75% at 55% 35%, #000 25%, transparent 78%);
  animation:
    pluja-caiguda 0.32s linear infinite,
    pluja-intensitat 10s ease-in-out infinite;
}

#galeria-aigua .aigua-diapo:nth-child(1) .aigua-foto-mapa .aigua-foto-marc {
  position: relative;
  width: 100%;
  height: 100%;
}

#galeria-aigua .aigua-diapo:nth-child(1) .aigua-foto-mapa .aigua-foto-marc .aigua-img {
  display: block;
}

.efecte-pluja-garrotxa {
  top: 1%;
  right: 1%;
  width: 30%;
  height: 42%;
  -webkit-mask-image: radial-gradient(ellipse 75% 70% at 60% 40%, #000 30%, transparent 78%);
  mask-image: radial-gradient(ellipse 75% 70% at 60% 40%, #000 30%, transparent 78%);
}

.efecte-pluja-mapa {
  inset: 0;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  -webkit-clip-path: polygon(
    0% 4%,
    35% 2%,
    70% 2%,
    88% 6%,
    91% 12%,
    91% 20%,
    91% 24%,
    89% 29%,
    84% 33%,
    75% 36%,
    68% 38%,
    55% 39%,
    35% 36%,
    15% 30%,
    0% 22%,
    0% 10%
  );
  clip-path: polygon(
    0% 4%,
    35% 2%,
    70% 2%,
    88% 6%,
    91% 12%,
    91% 20%,
    91% 24%,
    89% 29%,
    84% 33%,
    75% 36%,
    68% 38%,
    55% 39%,
    35% 36%,
    15% 30%,
    0% 22%,
    0% 10%
  );
  -webkit-mask-image: none;
  mask-image: none;
  animation:
    pluja-caiguda 0.26s linear infinite,
    pluja-intensitat-mapa 8s ease-in-out infinite;
}

@keyframes pluja-intensitat-mapa {
  0%,
  100% {
    opacity: 0.35;
  }

  30% {
    opacity: 0.85;
  }

  50% {
    opacity: 1;
  }

  70% {
    opacity: 0.55;
  }
}

@media (prefers-reduced-motion: reduce) {
  .efecte-pluja-mapa {
    animation: none;
    opacity: 0.65;
  }
}

@keyframes pluja-caiguda {
  from {
    background-position:
      0 0,
      5px 3px,
      2px 9px,
      8px 6px;
  }
  to {
    background-position:
      -10px 26px,
      -7px 34px,
      -9px 22px,
      -11px 30px;
  }
}

@keyframes pluja-intensitat {
  0% {
    opacity: 0.12;
  }
  20% {
    opacity: 0.45;
  }
  40% {
    opacity: 1;
  }
  55% {
    opacity: 0.7;
  }
  70% {
    opacity: 0.18;
  }
  85% {
    opacity: 0.55;
  }
  100% {
    opacity: 0.12;
  }
}

.sageta {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  transform: translateY(-50%);
  width: auto;
  height: auto;
  padding: 0.15rem 0.25rem;
  border: none;
  border-radius: 0;
  background: transparent;
  color: #b01010;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  text-shadow: 0 0 1px rgba(255, 255, 255, 0.45);
  box-shadow: none;
  transition: opacity 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.sageta-simbol {
  font-size: 3.4rem;
  line-height: 0.85;
}

.sageta-etiqueta {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.1;
  white-space: nowrap;
}

.sageta-esquerra {
  left: 30%;
  margin-left: 0.15rem;
  flex-direction: row;
}

.sageta-dreta {
  right: 0.35rem;
  flex-direction: row;
}

.sageta:hover {
  color: #7a0808;
  background: transparent;
  transform: translateY(-50%) scale(1.06);
}

.sageta:focus-visible {
  outline: 2px solid #b01010;
  outline-offset: 2px;
  background: transparent;
}

.sageta:disabled {
  opacity: 0.28;
  cursor: default;
}

.article-info h2 {
  font-family: georgia, serif;
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  color: var(--aigua-profunda);
  margin-bottom: 1rem;
}

.article-info h3 {
  font-family: georgia, serif;
  font-size: 1.2rem;
  color: var(--aigua-profunda);
  margin: 1.5rem 0 0.75rem;
}

.article-info p {
  text-align: justify;
  margin-bottom: 0.9rem;
}

.dades {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
}

.dades li {
  padding: 0.25rem 0;
}

.figura {
  margin: 1.25rem 0 1.75rem;
}

.figura img {
  display: block;
  width: 100%;
  max-width: 42rem;
  height: auto;
  border: 1px solid rgba(61, 107, 120, 0.35);
}

@keyframes entrar-suau {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 740px) {
  .capcalera {
    padding: 0.7rem 0.55rem 0.4rem;
  }

  .capcalera-fila {
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0.35rem 0.75rem;
  }

  .capcalera-web {
    margin-left: auto;
    padding-bottom: 0.08rem;
  }

  .titol {
    font-size: clamp(1.15rem, 4.8vw, 1.7rem);
  }

  .cos {
    flex-direction: column;
    padding: 0 0.55rem 0.55rem;
  }

  .menu-esquerra {
    flex: none;
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .boto-seccio {
    width: auto;
    flex: 1 1 auto;
  }

  .presentacio-panell {
    grid-template-columns: minmax(9.5rem, 36%) minmax(0, 1fr);
    gap: 0.45rem;
  }

  .presentacio-text {
    font-size: clamp(0.78rem, 2.8vw, 0.92rem);
    line-height: 1.35;
    padding: 0.25rem 0.25rem 0.25rem 0;
  }
}
