:root {
  --font: "Roboto", system-ui, -apple-system, Arial, sans-serif;

  --text: #111;
  --border: #e5e7eb;

  --container: 1120px;
}

/* RESET */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(var(--container), calc(100% - 32px));
  margin: auto;
}

/* TOPBAR */

.topbar {
  border-bottom: 1px solid var(--border);
  background: #fff;
}

.topbar__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;

  height: 64px;
}

.topbar__center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.topbar__logo {
  height: 56px;
}

.topbar__langs {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 6px;

  font-size: 18px;
}

.topbar__langs a {
  text-decoration: none;
  color: #111;
}

.topbar__langs .is-active {
  font-weight: 700;
}

/* HERO IMAGE */

.hero-image {
  position: relative;
  width: 100%;

  height: min(78vh, 900px);

  overflow: hidden;

  background: #000;
}

.hero-image__media {
  position: absolute;
  inset: 0;

  width: 100%;
  height: 100%;

  object-fit: cover;
}

/* degradat */

.hero-image__overlay {
  position: absolute;
  inset: 0;

  background: linear-gradient(
    to bottom,

    rgba(0, 0, 0, 0) 45%,
    rgba(0, 0, 0, 0.5) 75%,
    rgba(0, 0, 0, 0.85) 100%
  );
}

.hero-image__content {
  position: relative;
  z-index: 2;

  height: 100%;

  display: flex;
  flex-direction: column;

  justify-content: flex-end;

  align-items: center;

  text-align: center;

  padding: 40px 20px;

  max-width: 990px;

  margin: auto;
}

.hero-image__kicker {
  margin: 0 0 14px;

  font-size: 22px;

  letter-spacing: 0.05em;

  font-weight: 700;

  color: #fff;
}

.hero-image__title {
  margin: 0;

  color: #fff;

  font-weight: 700;

  font-size: clamp(36px, 5vw, 64px);

  line-height: 1.1;
}

/* SECTIONS */

.section {
  padding: 60px 0;
}

/* FOOTER */

.site-footer {
  border-top: 1px solid var(--border);

  padding: 40px 0;

  text-align: center;

  font-size: 14px;
  background: #fff !important;
}
.site-footer .container {
  background: #fff !important;
}

.site-footer__credits {
  margin-bottom: 8px;
}

/* RESPONSIVE */

@media (max-width: 600px) {
  .hero-image {
    height: 65vh;
  }

  .hero-image__kicker {
    font-size: 16px;
  }

  .hero-image__title {
    font-size: clamp(28px, 7vw, 40px);
  }

  .topbar__logo {
    height: 38px;
  }

  .topbar__langs {
    font-size: 14px;
  }
}

/* =====================
   ARTICLE INTRO
===================== */

.article-intro {
  padding: 70px 0 50px;
}

.article-intro__inner {
  max-width: 920px;

  margin: auto;
}

.article-intro__lead {
  margin: 0 0 26px;

  font-size: 26px;

  line-height: 1.35;

  color: #444;

  font-weight: 200;
}

.article-intro__meta {
  margin-bottom: 24px;
}

.article-intro__author {
  font-weight: 700;

  font-size: 16px;

  margin-bottom: 4px;
}

.article-intro__date {
  font-size: 15px;

  color: #333;
}

.article-intro__body p {
  margin: 0 0 20px;

  font-size: 20px;

  line-height: 1.7;

  color: #222;
}

.article-intro__body h3 {
  font-size: 26px;
  margin: 30px 0 15px;
  font-weight: 700;
  color: #111;
}

@media (max-width: 600px) {
  .article-intro {
    padding: 50px 0;
  }

  .article-intro__lead {
    font-size: 22px;
  }

  .article-intro__body p {
    font-size: 18px;
  }
}

/* =====================
STATS CAROUSEL
===================== */

.stats {
  padding: 30px 0;
  background: #f4f4f1;
  text-align: center;
}

.stats__title {
  color: #cf122b;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 40px;
  font-size: 28px;
}

/* estructura */

.stats-carousel {
  position: relative;
  max-width: 1100px;
  margin: auto;
}

.stats-viewport {
  overflow: hidden;
}

.stats-track {
  display: flex;
  gap: 30px;
  transition: transform 0.5s ease;
}

/* targetes */

.stat-card {
  flex: 0 0 320px;
  height: 320px;

  background: #cddc91;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  padding: 30px;

  color: #cf122b;
}

.stat-card p {
  font-size: 22px;
  margin-bottom: 6px;
}

.stat-card h2 {
  font-size: 47px;
  margin: -2px 0;
  font-weight: 900;
}

.stat-card span {
  font-size: 22px;
  line-height: 1.3;
}

/* fletxes */

.stats-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);

  width: 44px;
  height: 44px;

  border-radius: 50%;

  border: none;

  background: #cf122b;
  color: white;

  font-size: 24px;
  cursor: pointer;

  z-index: 5;
}

.stats-arrow--left {
  left: -20px;
}

.stats-arrow--right {
  right: -20px;
}

/* dots */

.stats-dots {
  margin-top: 30px;

  display: flex;
  justify-content: center;
  gap: 10px;
}

.stats-dots button {
  width: 10px;
  height: 10px;

  border-radius: 50%;
  border: none;

  background: #cddc91;

  cursor: pointer;
}

.stats-dots button.active {
  background: #cf122b;
}

@media (max-width: 900px) {
  .stat-card {
    flex: 0 0 320px;
    height: 320px;
  }

  .stat-card h2 {
    font-size: 48px;
  }
}

@media (max-width: 600px) {
  .stats-track {
    gap: 0;
  }

  .stat-card {
    flex: 0 0 85%;

    margin: 0 8px;
  }
}

/* =====================
STORY SECTION
===================== */

.story {
  padding: 90px 0;
}

.story-title {
  color: #cf122b;

  font-size: 34px;

  margin-bottom: 25px;

  font-weight: 700;
}

.story-text {
  max-width: 920px;

  font-size: 20px;

  line-height: 1.7;

  color: #222;

  margin-bottom: 40px;
}

.story-text p {
  margin-bottom: 20px;
}

/* VIDEO */

.video-block {
  display: flex;
  margin-top: 100px;
  justify-content: center;
}

.video-wrapper {
  position: relative;

  width: 100%;

  max-width: 920px;

  margin: 40px auto;

  cursor: pointer;

  aspect-ratio: 16/9;

  overflow: hidden;
}

.video-wrapper img {
  width: 100%;

  height: 100%;

  object-fit: cover;

  display: block;
}

.video-wrapper iframe {
  position: absolute;

  top: 0;
  left: 0;

  width: 100%;
  height: 100%;
}

/* PLAY BUTTON */

.video-play {
  position: absolute;

  top: 50%;
  left: 50%;

  transform: translate(-50%, -50%);

  width: 90px;
  height: 90px;

  border-radius: 50%;

  background: rgba(0, 0, 0, 0.7);

  border: none;

  cursor: pointer;
}

.video-play::before {
  content: "";

  position: absolute;

  left: 36px;
  top: 28px;

  border-style: solid;

  border-width: 16px 0 16px 26px;

  border-color: transparent transparent transparent white;
}

/* =====================
ARTICLE HIGHLIGHT
===================== */

.article-highlight {
  padding: 30px 0;
}

.article-highlight__layout {
  display: grid;

  grid-template-columns: 200px 1fr;

  gap: 40px;

  max-width: 920px;

  margin: auto;

  align-items: center;
}

/* destacat */

.article-highlight__quote {
  font-size: 20px;

  line-height: 1.5;

  font-weight: 600;

  color: #111;
}

.article-highlight__line {
  display: block;

  width: 80px;

  height: 4px;

  background: #cf122b;

  margin-bottom: 18px;
}

/* text */

.article-highlight__text {
  font-size: 20px;

  line-height: 1.7;

  color: #222;
}

.article-highlight__text p {
  margin-bottom: 18px;
}

/* FOTO */

.article-photo {
  margin-top: 50px;

  max-width: 920px;

  margin-left: auto;

  margin-right: auto;
}

.article-photo img {
  width: 100%;

  display: block;
}

.article-photo figcaption {
  margin-top: 8px;

  font-size: 14px;

  color: #222;
}

.article-photo span {
  color: #666;
}

@media (max-width: 700px) {
  .article-highlight__layout {
    grid-template-columns: 1fr;

    gap: 30px;
  }

  .article-highlight__quote {
    max-width: 420px;
  }
}

/* =====================
ARTICLE TEXT BLOCK
===================== */

.article-text {
  padding: 30px 0;
}

.article-text__inner {
  max-width: 920px;

  margin: auto;

  font-size: 20px;

  line-height: 1.7;

  color: #222;
}

.article-text__title {
  color: #cf122b;

  font-size: 28px;

  margin-bottom: 20px;

  font-weight: 700;
}

.article-text__inner p {
  margin-bottom: 20px;
}

@media (max-width: 600px) {
  .article-text__inner {
    font-size: 18px;
  }

  .article-text__title {
    font-size: 24px;
  }
}

/* =====================
PARKS CAROUSEL
===================== */

.parks {
  padding: 50px 0;
  text-align: center;
}

.parks-title {
  color: #cf122b;
  font-size: 28px;
  margin-bottom: 10px;
}

.parks-intro {
  max-width: 920px;
  margin: auto;
  margin-bottom: 40px;
  font-size: 22px;
  line-height: 1.3;
  font-weight: 600;
}

/* carrusel */

.parks-carousel {
  position: relative;
  max-width: 1100px;
  margin: auto;
}

.parks-viewport {
  overflow: hidden;
}

.parks-track {
  display: flex;
  gap: 30px;
  transition: transform 0.5s ease;
}

/* CARD */

.park-card {
  flex: 0 0 320px;
}

.park-image {
  position: relative;
}

.park-image img {
  width: 100%;
  display: block;
}

/* títol sobre foto */

.park-label {
  position: absolute;

  left: 50%;
  bottom: -18px;

  transform: translateX(-50%);

  background: #cf122b;

  color: white;

  padding: 15px 18px;

  font-weight: 700;

  width: 250px;
}

/* text */

.park-text {
  background: #dfdad9;
  height: stretch;
  padding: 30px 18px 22px;

  font-size: 16px;

  line-height: 28px;
}

/* fletxes */

.parks-arrow {
  position: absolute;
  top: 40%;

  z-index: 200;

  width: 44px;
  height: 44px;

  border-radius: 50%;
  border: none;

  background: #cf122b;
  color: white;

  cursor: pointer;
}

.parks-arrow--left {
  left: -20px;
}

.parks-arrow--right {
  right: -20px;
}

/* dots */

.parks-dots {
  margin-top: 30px;

  display: flex;
  justify-content: center;
  gap: 10px;
}

.parks-dots button {
  width: 10px;
  height: 10px;

  border-radius: 50%;
  border: none;

  background: #cddc91;
}

.parks-dots button.active {
  background: #cf122b;
}

.article-section-title {
  max-width: 920px;

  margin: 0 auto 30px auto;

  color: #cf122b;

  font-size: 28px;

  font-weight: 700;
}

/* =========================
PROMO BANNER
========================= */

.promo {
  padding: 30px 0;
}

.promo-card {
  display: grid;

  grid-template-columns: 1fr 1fr;

  cursor: pointer;

  max-width: 900px;

  margin: auto;
}

.promo-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.promo-content {
  background: #dfdad9;

  display: flex;

  flex-direction: column;

  justify-content: center;

  align-items: center;

  text-align: center;

  padding: 40px;
}

.promo-content h3 {
  color: #000;

  font-size: 32px;

  line-height: 1.3;

  margin-bottom: 30px;
}

/* CTA */

.promo-btn {
  display: flex;

  align-items: center;

  gap: 12px;

  background: #cf122b;

  color: white;

  border: none;

  padding: 12px 24px;

  border-radius: 30px;

  font-weight: 700;

  cursor: pointer;
}

.promo-arrow {
  background: #96121c;

  padding: 8px 12px;

  border-radius: 20px;
}
/* =========================
MODAL GREEN
========================= */

.modal-green {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 999;
}

.modal-green.is-open {
  display: block;
}

.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
}

/* contenidor modal */

.modal__dialog {
  position: relative;

  width: min(920px, calc(100% - 40px));

  margin: 40px auto;

  background: #dfdad9;

  max-height: 90vh;

  display: flex;

  flex-direction: column;

  overflow: hidden;
}

/* botó tancar */

.modal-close {
  position: absolute;

  top: 5px;
  right: 5px;

  width: 44px;
  height: 44px;

  border-radius: 50%;

  background: #cf122b;

  color: white;

  border: none;

  font-size: 22px;

  cursor: pointer;
}

/* imatge fixa */

.modal-image {
  width: 100%;

  display: block;

  flex-shrink: 0;
}

/* text scroll */

.modal-text {
  flex: 1;

  overflow-y: auto;

  padding: 40px;

  font-size: 20px;

  line-height: 1.7;
}

/* mòbil */

@media (max-width: 700px) {
  .modal__dialog {
    margin: 20px auto;
  }

  .modal-text {
    padding: 24px;
    font-size: 18px;
  }
}

@media (max-width: 700px) {
  .video-wrapper {
    aspect-ratio: 9/16;

    max-width: 420px;

    margin: auto;
  }
}

@media (max-width: 700px) {
  .stat-card {
    flex: 0 0 90%;
  }

  .stats-track {
    gap: 0;
  }
}

@media (max-width: 700px) {
  .promo-card {
    grid-template-columns: 1fr;
  }

  .promo-image {
    height: 260px;

    overflow: hidden;
  }

  .promo-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;
  }

  .promo-content {
    padding: 30px 20px;
  }

  .promo-content h3 {
    font-size: 26px;
  }
}

@media (max-width: 700px) {
  .video-wrapper {
    aspect-ratio: 9/16;

    max-width: 420px;
  }
}

.article-photo {
  padding: 40px 0;
}

.article-photo figure {
  max-width: 920px;
  margin: 0 auto;
}

.article-photo img {
  width: 100%;
  display: block;
}

.article-photo figcaption {
  margin-top: 10px;
  font-size: 14px;
  color: #222;
}

.article-photo span {
  color: #666;
}

.text-highlight {
  padding: 0px 0;
}

.text-highlight__layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 40px;

  max-width: 920px;
  margin: auto;

  align-items: center; /* 👈 AIXÒ ÉS LA CLAU */
}

/* ASIDE */

.text-highlight__aside {
  font-size: 200px;
  line-height: 1.5;
  font-weight: 600;
  color: #111;
}
.text-highlight__aside p {
  font-size: 26px !important;
  line-height: 1.5;
  font-weight: 600;
  color: #111;
}
.text-highlight__line {
  display: block;
  width: 80px;
  height: 4px;
  background: #d7262e; /* vermell com a la referència */
  margin-bottom: 18px;
}

/* CONTINGUT */

.text-highlight__content {
  font-size: 20px;
  line-height: 1.7;
  color: #222;
}

.text-highlight__content h3 {
  font-size: 26px;
  margin: 20px 0 15px;
  font-weight: 700;
  color: #111;
}

.text-highlight__content p {
  margin-bottom: 18px;
}

/* RESPONSIVE */

@media (max-width: 700px) {
  .text-highlight__layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .text-highlight__aside {
    max-width: 420px;
  }
}

.infografia {
  padding: 20px 0;
}

/* més ample que el text */
.infografia__wrapper {
  width: min(1400px, calc(100% - 32px));
  margin: 0 auto;

  position: relative;
  overflow: hidden;
}

/* 👉 contenidor que escala proporcionalment */
.infografia__wrapper::before {
  content: "";
  display: block;
  padding-top: 120%; /* 👈 RELACIÓ REAL (clau) */
}

/* iframe */
.infografia__wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;

  width: 1200px;
  height: 100%;

  border: 0;

  transform: scale(0.85);
  transform-origin: top left;
}

@media (max-width: 600px) {
  .infografia__wrapper iframe {
    transform: scale(0.4);
    height: 266%;
    left: -49px;
  }

  .infografia__wrapper {
    width: min(400px, calc(100% - -55px));
  }

  .infografia__wrapper::before {
    padding-top: 80%;
  }
}
