/* --- Hero Banner --- */
.prob-hero {
  position: relative;
  background:
    linear-gradient(var(--overlay-medium), var(--overlay-strong)),
    url("/img/fotos/foto2.webp") center/cover no-repeat;
  color: var(--white);
  text-align: center;
  padding: 3.5rem 1.25rem 3rem;
}

.prob-hero__content {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.prob-hero__title {
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  font-weight: 800;
  letter-spacing: 0.05em;
  margin: 0;
  line-height: 1;
  text-transform: uppercase;
}

.prob-hero__leaf {
  margin: 0.5rem 0 1rem;
  color: var(--accent-soft);
}

.prob-hero__leaf .material-symbols-outlined {
  font-size: 2rem;
}

.prob-hero__description {
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  line-height: 1.5;
  color: var(--text-on-dark);
  margin: 0;
  font-weight: 300;
}

/* --- Secció Impactes --- */
.prob-impacts {
  padding: 2.5rem 1rem;
  max-width: 1320px;
  margin: 0 auto;
}

.prob-impacts__header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 2rem;
  position: relative;
}

.prob-impacts__header::before,
.prob-impacts__header::after {
  content: "";
  height: 1px;
  background: var(--border);
  flex: 1;
  max-width: 80px;
}

.prob-impacts__badge {
  background: var(--green-card);
  color: var(--white);
  border-radius: 50%;
  padding: 0.35rem;
  font-size: 1.2rem;
}

.prob-impacts__title {
  font-size: clamp(1.4rem, 4vw, 2rem);
  font-weight: 800;
  color: var(--text-card);
  margin: 0;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

/* --- MÒBIL FIRST (Disposició Mòbil per defecte) --- */
.prob-impacts__grid {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.prob-card {
  background: var(--surface-soft);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px var(--shadow-soft);
}

.prob-card__content {
  padding: 1.25rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.prob-card__header-mobile {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.prob-card__icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--green-dark);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.prob-card__title {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-dark);
  margin: 0;
  line-height: 1.1;
  text-transform: uppercase;
}

.prob-card__text {
  font-size: 1rem;
  color: var(--text-soft);
  margin: 0;
  line-height: 1.35;
}

.prob-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--green-card);
  text-transform: uppercase;
}

.prob-card__image {
  width: 100%;
  height: 100%;
  min-height: 140px;
  background-size: cover;
  background-position: center;
  border-radius: 0 12px 12px 0;
}

/* --- Secció Tresor (Mòbil) --- */
.prob-tresor {
  padding: 1rem 1rem 2.5rem;
  max-width: 1320px;
  margin: 0 auto;
}

.prob-tresor__card {
  background: var(--surface-soft);
  border-radius: 12px;
  padding: 1.5rem;
}

.prob-tresor__main {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.prob-tresor__illustration {
  width: 100%;
  height: 140px;
  overflow: hidden;
  border-radius: 8px;
  background: var(--surface-placeholder);
  display: flex;
  align-items: center;
  justify-content: center;
}

.prob-tresor__svg {
  width: 100%;
  height: 100%;
}

.prob-tresor__title {
  font-size: clamp(1.2rem, 3.5vw, 1.8rem);
  font-weight: 800;
  color: var(--text-deep);
  margin: 0 0 1rem;
  text-transform: uppercase;
  line-height: 1.15;
}

.prob-tresor__pillars {
  display: flex;
  justify-content: space-around;
  align-items: flex-start;
  gap: 0.5rem;
}

.prob-pillar {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.4rem;
}

.prob-pillar__icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--green-card);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
}

.prob-pillar__name {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--text-deep);
  margin: 0;
  text-transform: uppercase;
}

.prob-pillar__desc {
  display: none; /* Es mostra només en desktop */
}

.prob-tresor__action-box {
  border-top: 1px solid var(--border);
  padding-top: 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.6rem;
}

.prob-tresor__callout {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--text-deep);
  margin: 0;
  text-transform: uppercase;
}

.prob-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--green-deep);
  color: var(--white);
  padding: 0.6rem 1.5rem;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  width: fit-content;
}

.prob-tresor__help-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--green-deep);
  text-transform: uppercase;
}

/* --- Banner Citació --- */
.prob-quote {
  background: var(--quote-bg);
  color: var(--white);
  padding: 1.75rem 1.25rem;
  text-align: center;
}

.prob-quote__container {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

.prob-quote__icon {
  font-size: 2.2rem;
  color: var(--accent-muted);
}

.prob-quote__text {
  margin: 0;
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.4;
  font-weight: 300;
}

.prob-quote__text strong {
  display: block;
  margin-top: 0.3rem;
  font-weight: 700;
}

/* --- DESKTOP BREAKPOINT (768px) --- */
@media (min-width: 768px) {
  /* Passa les 5 targetes a 5 columnes */
  .prob-impacts__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
  }

  .prob-card {
    display: flex;
    flex-direction: column;
    border-radius: 8px;
  }

  .prob-card__content {
    padding: 1.2rem 1rem;
    gap: 0.6rem;
    height: 100%;
  }

  .prob-card__header-mobile {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
  }

  .prob-card__image {
    height: 130px;
    border-radius: 0;
    order: 2;
  }

  .prob-card__link {
    justify-content: center;
    width: 100%;
    padding: 0.75rem 0;
    margin-top: auto;
    border-top: 1px solid var(--border-soft);
    order: 3;
  }

  /* Distribueix la secció Tresor en 3 blocs horitzontals */
  .prob-tresor__main {
    display: grid;
    grid-template-columns: 1fr 240px;
    align-items: center;
    gap: 1.5rem;
  }

  .prob-tresor__illustration {
    height: 100%;
  }

  .prob-tresor__pillars {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 1rem;
  }

  .prob-pillar {
    align-items: flex-start;
    text-align: left;
    gap: 0.5rem;
  }

  .prob-pillar__name {
    font-size: 0.85rem;
  }

  .prob-pillar__desc {
    display: block;
    font-size: 0.8rem;
    color: var(--muted);
    margin: 0;
    line-height: 1.35;
  }

  .prob-tresor__action-box {
    border-top: none;
    border-left: 1px solid var(--border);
    padding-top: 0;
    padding-left: 1.25rem;
    align-items: flex-start;
    text-align: left;
  }
}
