/**
 * @file landing-paragraphs.css
 * Estils per als LP paragraph types del content type Landing.
 * Font: scss/paragraphs/ (compilar amb sass per futurs canvis)
 */

/* ── Classes de color de fons + text ──────────────────────────────────── */
.paragraph--bg-white {
  background-color: #ffffff;
  color: #111111;
  --lp-text: #111111;
  --lp-text-muted: #555;
  --lp-accent: #CC2929;
  --lp-link-arrow: #CC2929;
}
.paragraph--bg-black {
  background-color: #111111;
  color: #ffffff;
  --lp-text: #ffffff;
  --lp-text-muted: rgba(255,255,255,0.6);
  --lp-accent: #CC2929;
  --lp-link-arrow: #ffffff;
}
.paragraph--bg-red {
  background-color: #CC2929;
  color: #ffffff;
  --lp-text: #ffffff;
  --lp-text-muted: rgba(255,255,255,0.7);
  --lp-accent: #ffffff;
  --lp-link-arrow: #ffffff;
}
.paragraph--bg-grey {
  background-color: #ccc9c3;
  color: #111111;
  --lp-text: #111111;
  --lp-text-muted: #555;
  --lp-accent: #CC2929;
  --lp-link-arrow: #CC2929;
}
.paragraph--bg-beige {
  background-color: #f5f4f1;
  color: #111111;
  --lp-text: #111111;
  --lp-text-muted: #555;
  --lp-accent: #CC2929;
  --lp-link-arrow: #CC2929;
}
.paragraph--bg-broken {
  background-color: #faf6f2;
  color: #111111;
  --lp-text: #111111;
  --lp-text-muted: #555;
  --lp-accent: #CC2929;
  --lp-link-arrow: #CC2929;
}

/* ── Botons ───────────────────────────────────────────────────────────── */
.lp-btn {
  display: inline-block;
  padding: 0.75em 2.2em;
  border-radius: 100px;
  font-family: -apple-system, "system-ui", "Segoe UI", Roboto, sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}
.lp-btn--light { background: #fff; color: #111; }
.lp-btn--light:hover { background: #e8e8e8; transform: translateY(-2px); }
.lp-btn--ghost { background: transparent; border: 2px solid rgba(255,255,255,0.55); color: #fff; }
.lp-btn--ghost:hover { border-color: #fff; background: rgba(255,255,255,0.08); transform: translateY(-2px); }

/* ── Link arrow ───────────────────────────────────────────────────────── */
.lp-link-arrow {
  font-family: -apple-system, "system-ui", "Segoe UI", Roboto, sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--lp-link-arrow, #CC2929);
  text-decoration: none;
  transition: opacity 0.15s;
}
.lp-link-arrow:hover { opacity: 0.7; }
.lp-link-arrow--light { color: #fff; }

/* ═══════════════════════════════════════════════════════════════════════
   lp_hero
   ═══════════════════════════════════════════════════════════════════════ */
.lp-hero {
  position: relative;
  min-height: 100vh;
  background-color: #111;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
}
.lp-hero--h100 { min-height: 100vh; }
.lp-hero--h75  { min-height: 75vh; }
.lp-hero--h50  { min-height: 50vh; }
.lp-hero--h25  { min-height: 25vh; }
.lp-hero--no-image {
  background: linear-gradient(145deg, #0d0d0d 0%, #2a0a0a 60%, #a8102a 100%);
}
.lp-hero__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  width: 100%;
}
.lp-hero__inner {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding: 4rem 1.25rem;
  padding-top: calc(4rem + 94px);
  color: #fff;
  text-align: center;
}
.lp-hero__eyebrow {
  font-family: -apple-system, "system-ui", "Segoe UI", Roboto, sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(255,255,255,0.55);
  margin: 0 0 1.25rem;
}
.lp-hero__title {
  font-family: -apple-system, "system-ui", "Segoe UI", Roboto, sans-serif;
  font-size: 3rem;
  font-weight: 900;
  line-height: 0.92;
  margin: 0 0 2rem;
  color: #fff;
}
.lp-hero__title em { font-style: italic; color: #CC2929; display: block; }

.lp-hero--title-gran    .lp-hero__title { font-size: clamp(3rem, 14vw, 7.5rem) !important; }
.lp-hero--title-mitjana .lp-hero__title { font-size: 2rem !important; }
.lp-hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 0.5rem;
}

/* Stats bar */
.lp-hero__stats {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(4px);
  padding: 1.1rem 2rem;
  flex-wrap: wrap;
}
.lp-hero__stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
  padding-inline: 2.5rem;
  text-align: center;
}
.lp-hero__stat-value {
  font-family: -apple-system, "system-ui", "Segoe UI", Roboto, sans-serif;
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 900;
  color: #fff;
  line-height: 1;
  letter-spacing: -0.01em;
}
.lp-hero__stat-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.65);
}
.lp-hero__stat-sep {
  width: 1px;
  height: 2.5rem;
  background: rgba(255,255,255,0.2);
  flex-shrink: 0;
}
@media (max-width: 600px) {
  .lp-hero__stats { gap: 0.5rem; padding: 0.9rem 1rem; }
  .lp-hero__stat { padding-inline: 1rem; }
  .lp-hero__stat-sep { display: none; }
}

/* ═══════════════════════════════════════════════════════════════════════
   lp_capcalera
   ═══════════════════════════════════════════════════════════════════════ */
.lp-capcalera {
  position: relative;
  min-height: 320px;
  background-color: #111;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: flex-end;
}
.lp-capcalera--no-image {
  background: linear-gradient(145deg, #0d0d0d 0%, #2a0a0a 60%, #a8102a 100%);
}
.lp-capcalera__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.65) 100%);
  display: flex;
  align-items: flex-end;
  width: 100%;
}
.lp-capcalera__inner {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding: 2.5rem 1.25rem;
  padding-top: calc(2.5rem + 64px);
  color: #fff;
}
.lp-capcalera__title {
  font-family: -apple-system, "system-ui", "Segoe UI", Roboto, sans-serif;
  font-size: 3.2rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.05;
  margin: 0 0 0.6rem;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0,0,0,0.45);
}
.lp-capcalera__subtitle {
  margin: 0;
  font-size: 1rem;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  line-height: 1.5;
  max-width: 640px;
}

/* ═══════════════════════════════════════════════════════════════════════
   lp_text
   ═══════════════════════════════════════════════════════════════════════ */
.lp-text {
  padding-block: 3rem;
}
/* Estret: mateix contenidor que Numbered Cards (1200px + padding) */
.lp-text--narrow .lp-text__container {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 1.25rem;
}
/* Ample complet: edge-to-edge com Intro Bicolor, amb padding generós */
.lp-text--full .lp-text__container {
  padding-inline: clamp(1.5rem, 5vw, 5rem);
}
.lp-text__body {
  font-size: 1.05rem;
  line-height: 1.75;
}
.lp-text__body p { margin: 0 0 1.2em; }
.lp-text__body p:last-child { margin-bottom: 0; }
.lp-text__body strong { font-weight: 700; }
.lp-text__body em { font-style: italic; }
.lp-text__body a { color: #CC2929; text-decoration: underline; }
.lp-text__body h2 { font-size: 1.6rem; font-weight: 800; margin: 0.7em 0 0.5em; }
.lp-text__body h3 { font-size: 1.25rem; font-weight: 700; margin: 1.3em 0 0.4em; }

/* Colors de fons — text */
.paragraph--bg-white.lp-text { background: #fff; color: #1a1a1a; }
.paragraph--bg-grey.lp-text  { background: #f5f5f0; color: #1a1a1a; }
.paragraph--bg-beige.lp-text  { background: #f5f4f1; color: #1a1a1a; }
.paragraph--bg-broken.lp-text { background: #faf6f2; color: #1a1a1a; }
.paragraph--bg-black.lp-text { background: #111; color: #fff; }
.paragraph--bg-red.lp-text   { background: #CC2929; color: #fff; }
.paragraph--bg-black.lp-text .lp-text__body a,
.paragraph--bg-red.lp-text   .lp-text__body a { color: #fff; }

/* ═══════════════════════════════════════════════════════════════════════
   lp_marquee
   ═══════════════════════════════════════════════════════════════════════ */
.lp-marquee {
  overflow: hidden;
  padding-block: 0.6rem;
  white-space: nowrap;
  line-height: 1;
}
.lp-marquee__track {
  display: inline-flex;
  align-items: center;
  animation: lp-marquee-scroll 30s linear infinite;
}
@keyframes lp-marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.lp-marquee__item {
  font-family: -apple-system, "system-ui", "Segoe UI", Roboto, sans-serif;
  font-size: 9rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #ffffff;
  padding-inline: 1.25rem;
  line-height: 1;
}
.paragraph--bg-white .lp-marquee__item,
.paragraph--bg-grey  .lp-marquee__item { color: #111; }
.paragraph--bg-beige  .lp-marquee__item { color: #111; }
.paragraph--bg-broken .lp-marquee__item { color: #111; }
.lp-marquee__sep {
  font-size: clamp(1.2rem, 2.5vw, 2rem);
  color: rgba(245,234,214,0.45);
  line-height: 1;
  padding-inline: 0.25rem;
}

/* ═══════════════════════════════════════════════════════════════════════
   lp_intro_bicolor
   ═══════════════════════════════════════════════════════════════════════ */
.lp-intro { display: flex; flex-direction: column; }
@media (min-width: 768px) { .lp-intro { flex-direction: row; min-height: 520px; } }

.lp-intro__left {
  background-color: #CC2929;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2.5rem 2rem;
  overflow: hidden;
  min-height: 400px;
}
.paragraph--bg-white .lp-intro__left { background-color: #fff; }
.paragraph--bg-black .lp-intro__left { background-color: #111; }
.paragraph--bg-grey  .lp-intro__left { background-color: #ccc9c3; }
.paragraph--bg-beige  .lp-intro__left { background-color: #e8e6e1; }
.paragraph--bg-broken .lp-intro__left { background-color: #ede9e4; }

@media (min-width: 768px) {
  .lp-intro__left { width: 30%; flex-shrink: 0; padding: 3rem 2.5rem; }
}

.lp-intro__title {
  font-family: -apple-system, "system-ui", "Segoe UI", Roboto, sans-serif;
  font-weight: 900;
  font-style: italic;
  color: rgba(255,255,255,0.93);
  margin: 0;
  line-height: 0.88;
  letter-spacing: -0.02em;
  flex: 1;
  font-size: 3.2rem;
}
@media (min-width: 768px) {
  .lp-intro__title {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-size: 3.2rem;
    align-self: flex-start;
  }
}
.paragraph--bg-white .lp-intro__title,
.paragraph--bg-grey  .lp-intro__title { color: #111; }
.paragraph--bg-beige  .lp-intro__title { color: #111; }
.paragraph--bg-broken .lp-intro__title { color: #111; }

.lp-intro__desc {
  font-family: -apple-system, "system-ui", "Segoe UI", Roboto, sans-serif;
  font-size: 1.6875rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.5;
  margin: 1.5rem 0 0;
  width: 50%;
  align-self: flex-end;
  text-align: right;
}
@media (min-width: 768px) { .lp-intro__desc { margin: 0; } }
.paragraph--bg-white .lp-intro__desc,
.paragraph--bg-grey  .lp-intro__desc { color: #555; }
.paragraph--bg-beige  .lp-intro__desc { color: #555; }
.paragraph--bg-broken .lp-intro__desc { color: #555; }

.lp-intro__right {
  flex: 1;
  background-color: #EDECEA;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.lp-intro-card:nth-child(n+5) { display: none; }

.lp-intro-card {
  display: flex;
  flex-direction: column;
  padding: 3.5rem 3rem 3.5rem 3.5rem;
  text-decoration: none;
  color: #111;
  border-right: 1px solid #ccc9c3;
  border-bottom: 1px solid #ccc9c3;
  transition: background 0.18s ease;
  min-height: 260px;
}
.lp-intro-card:hover { background: #e4e1dc; }
.lp-intro-card:nth-child(2n)        { border-right: none; }
.lp-intro-card:nth-last-child(-n+2) { border-bottom: none; }
.lp-intro-card__icon { width: 72px; height: 72px; color: #999; margin-bottom: 1.75rem; flex-shrink: 0; }
.lp-intro-card__icon svg { width: 100%; height: 100%; }
.lp-intro-card__title { font-family: -apple-system, "system-ui", "Segoe UI", Roboto, sans-serif; font-size: 2.25rem; font-weight: 800; color: #111; margin: 0 0 0.75rem; line-height: 1.2; }
.lp-intro-card__desc  { font-family: -apple-system, "system-ui", "Segoe UI", Roboto, sans-serif; font-size: 1.5rem; color: #666; line-height: 1.65; margin: 0; max-width: 36ch; }

/* ═══════════════════════════════════════════════════════════════════════
   lp_numbered_cards
   ═══════════════════════════════════════════════════════════════════════ */
.lp-numbered-cards { padding: 3rem 0; }
.lp-numbered-cards__container { max-width: 1200px; margin-inline: auto; padding-inline: 1.25rem; }
.lp-numbered-cards__eyebrow {
  font-family: -apple-system, "system-ui", "Segoe UI", Roboto, sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--lp-accent, #CC2929);
  margin: 0 0 1.5rem;
}
.lp-numbered-cards__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px;
}
@media (min-width: 600px) {
  .lp-numbered-cards__grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 768px) {
  .lp-numbered-cards__grid { grid-template-columns: repeat(4, 1fr); }
  .lp-numbered-cards__grid[data-count="1"] { grid-template-columns: 1fr; }
  .lp-numbered-cards__grid[data-count="2"] { grid-template-columns: repeat(2, 1fr); }
  .lp-numbered-cards__grid[data-count="3"] { grid-template-columns: repeat(3, 1fr); }
}

.lp-ncard {
  display: flex;
  flex-direction: column;
  padding: 2.5rem 2rem;
  text-decoration: none;
  color: var(--lp-text, #111);
  transition: background 0.2s ease;
  min-height: 260px;
}
.lp-ncard:hover { background: rgba(0,0,0,0.06); }
.paragraph--bg-black .lp-ncard:hover,
.paragraph--bg-red   .lp-ncard:hover { background: rgba(255,255,255,0.06); }
.lp-ncard--accent { border-top: 4px solid #CC2929; }
.lp-ncard__num { font-family: -apple-system, "system-ui", "Segoe UI", Roboto, sans-serif; font-size: 3.5rem; font-weight: 900; line-height: 1; color: rgba(0,0,0,0.08); margin: 0 0 auto; }
.paragraph--bg-black .lp-ncard__num,
.paragraph--bg-red   .lp-ncard__num { color: rgba(255,255,255,0.1); }
.lp-ncard__title { font-family: -apple-system, "system-ui", "Segoe UI", Roboto, sans-serif; font-size: 2rem; font-weight: 900; letter-spacing: 0.02em; margin: 1rem 0 0.5rem; color: var(--lp-text, #111); }
.lp-ncard__desc  { font-family: -apple-system, "system-ui", "Segoe UI", Roboto, sans-serif; font-size: 0.85rem; color: var(--lp-text-muted, #555); line-height: 1.55; margin: 0 0 1.25rem; flex: 1; }
.lp-ncard__arrow { font-size: 1.4rem; color: var(--lp-text, #111); align-self: flex-end; transition: transform 0.2s ease; }
.lp-ncard:hover .lp-ncard__arrow { transform: translate(3px,-3px); }

/* ═══════════════════════════════════════════════════════════════════════
   lp_content_grid
   ═══════════════════════════════════════════════════════════════════════ */
.lp-content-grid { padding: 6rem 0; }
.lp-content-grid__container { max-width: 1200px; margin-inline: auto; padding-inline: 1.25rem; }
.lp-content-grid__header { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 2.5rem; }
.lp-content-grid__title { font-family: -apple-system, "system-ui", "Segoe UI", Roboto, sans-serif; font-size: 3.2rem; font-weight: 900; color: var(--lp-text, #111); margin: 0; line-height: 1; }
.lp-content-grid__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px; }
@media (min-width: 600px) { .lp-content-grid__grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .lp-content-grid__grid { grid-template-columns: repeat(4, 1fr); } }

.lp-grid-card { display: flex; flex-direction: column; text-decoration: none; color: #fff; overflow: hidden; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.lp-grid-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,0.15); }
.lp-grid-card__img-wrap { aspect-ratio: 3/4; overflow: hidden; background: #2a2a2a; }
.lp-grid-card__img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.lp-grid-card:hover .lp-grid-card__img { transform: scale(1.06); }
.lp-grid-card__placeholder { width:100%; height:100%; display:flex; align-items:center; justify-content:center; font-size:2.5rem; color:#555; }
.lp-grid-card__body { padding: 1rem 1rem 1.25rem; display: flex; flex-direction: column; gap: 3px; background: #1e1e1e; flex: 1; }
.lp-grid-card__title   { font-family: -apple-system, "system-ui", "Segoe UI", Roboto, sans-serif; font-size: 1.25rem; font-weight: 900; letter-spacing: 0.02em; margin: 0; line-height: 1.2; color: #fff; }
.lp-grid-card__subtitle { font-family: -apple-system, "system-ui", "Segoe UI", Roboto, sans-serif; font-size: 0.75rem; font-weight: 700; color: #CC2929; }
.paragraph--bg-white .lp-grid-card__body,
.paragraph--bg-grey  .lp-grid-card__body  { background: #fff; }
.paragraph--bg-white .lp-grid-card__title,
.paragraph--bg-grey  .lp-grid-card__title { color: #111; }

/* ═══════════════════════════════════════════════════════════════════════
   lp_cta
   ═══════════════════════════════════════════════════════════════════════ */
.lp-cta { padding: 4rem 0; border-bottom: 6px solid #fff; }
.paragraph--bg-white.lp-cta,
.paragraph--bg-grey.lp-cta  { border-bottom-color: #111; }
.paragraph--bg-beige.lp-cta  { border-bottom-color: #111; }
.paragraph--bg-broken.lp-cta { border-bottom-color: #111; }
.lp-cta__container { max-width: 1200px; margin-inline: auto; padding-inline: 1.25rem; text-align: center; }
.lp-cta__title { font-family: -apple-system, "system-ui", "Segoe UI", Roboto, sans-serif; font-size: 3.2rem; font-weight: 900; line-height: 0.95; color: var(--lp-text, #fff); margin: 0 0 2.5rem; }
.lp-cta__title em { font-style: italic; color: rgba(255,255,255,0.75); display: block; }
.paragraph--bg-white .lp-cta__title em,
.paragraph--bg-grey  .lp-cta__title em { color: #CC2929; }
.lp-cta__text { max-width: 640px; margin: 0 auto 2rem; font-size: 1.05rem; line-height: 1.7; opacity: 0.85; }
.lp-cta__btns { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }

/* ── lp_search: colors de text del hero segons el color de fons ── */
.paragraph--bg-black .cami-search__hero-title,
.paragraph--bg-black .cami-search__hero-sub,
.paragraph--bg-red   .cami-search__hero-title,
.paragraph--bg-red   .cami-search__hero-sub { color: #fff; }

.paragraph--bg-white .cami-search__hero-title,
.paragraph--bg-white .cami-search__hero-sub,
.paragraph--bg-grey  .cami-search__hero-title,
.paragraph--bg-grey  .cami-search__hero-sub { color: #111; }

/* ── lp_download ─────────────────────────────────────────────────────────── */
.lp-download {
  padding-block: 2.5rem;
}
.lp-download__container {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 1.25rem;
}
.lp-download__card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.25rem 1.5rem;
  border: 2px solid var(--lp-accent, #CC2929);
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  max-width: 640px;
  transition: background .2s, box-shadow .2s;
}
.lp-download__card:hover {
  background: rgba(0,0,0,.04);
  box-shadow: 0 4px 16px rgba(0,0,0,.1);
}
.paragraph--bg-black .lp-download__card:hover,
.paragraph--bg-red   .lp-download__card:hover {
  background: rgba(255,255,255,.08);
}
.lp-download__icon {
  flex-shrink: 0;
  color: var(--lp-accent, #CC2929);
  display: flex;
}
.lp-download__info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.lp-download__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--lp-text, #111);
  line-height: 1.3;
}
.lp-download__desc {
  font-size: 0.875rem;
  color: var(--lp-text-muted, #555);
  line-height: 1.4;
}
.lp-download__meta {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--lp-accent, #CC2929);
}
.lp-download__cta {
  flex-shrink: 0;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--lp-accent, #CC2929);
  border: 1.5px solid var(--lp-accent, #CC2929);
  padding: 0.4em 0.9em;
  border-radius: 100px;
  white-space: nowrap;
}

/* ── lp_icones ───────────────────────────────────────────────────────────── */
.lp-icones {
  padding-block: 4rem;
}
.lp-icones__container {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 1.25rem;
}
.lp-icones__heading {
  font-weight: 800;
  text-align: center;
  color: var(--lp-text, #111);
  margin: 0 0 3rem;
}

/* Grid */
.lp-icones__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 600px) {
  .lp-icones__grid { grid-template-columns: repeat(2, 1fr); }
  .lp-icones__grid:has(> .lp-icones__card:only-child) { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .lp-icones__grid:has(> .lp-icones__card:first-child:nth-last-child(3)) { grid-template-columns: repeat(3, 1fr); }
}

/* Card */
.lp-icones__card {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 1.5rem;
  background: #fff;
  border-radius: 12px;
  padding: 2rem 2rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.lp-icones__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.12);
}

/* Icona */
.lp-icones__card-icon {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  background: #fff5f5;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem;
}
.lp-icones__card-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Cos de text */
.lp-icones__card-body {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}
.lp-icones__card-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--lp-text, #111);
  margin: 0;
  line-height: 1.2;
}
.lp-icones__card-text {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--lp-text-muted, #555);
}
.lp-icones__card-text p { margin: 0 0 0.5em; }
.lp-icones__card-text p:last-child { margin-bottom: 0; }

/* Variants de fons */
.paragraph--bg-grey  .lp-icones__card { background: #fff; }
.paragraph--bg-beige  .lp-icones__card { background: #fff; }
.paragraph--bg-broken .lp-icones__card { background: #fff; }
.paragraph--bg-black .lp-icones__card { background: #2a2a2a; }
.paragraph--bg-black .lp-icones__card-title { color: #fff; }
.paragraph--bg-black .lp-icones__card-text  { color: rgba(255,255,255,0.65); }
.paragraph--bg-black .lp-icones__card-icon  { background: rgba(204,41,41,0.2); }

/* =========================================================
   lp-bloc — Bloc editorial (títol + text + imatge)
   ========================================================= */
.lp-bloc {
  padding: 4rem 1.5rem;
}
.lp-bloc__container {
  max-width: 1200px;
  margin: 0 auto;
}

/* Títol */
.lp-bloc__title {
  font-size: 3.2rem;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 1.25rem;
  color: var(--lp-text, #111);
}

/* Cos de text */
.lp-bloc__body {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--lp-text, #111);
}
.lp-bloc__body p:first-child { margin-top: 0; }
.lp-bloc__body p:last-child  { margin-bottom: 0; }

/* Imatge */
.lp-bloc__media img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
}
.lp-bloc__caption {
  font-size: 0.82rem;
  color: var(--lp-text-muted, #666);
  margin: 0.5rem 0 0;
  font-style: italic;
}

/* -------------------------------------------------------
   A / B — img-left / img-right: dues columnes 50/50
   ------------------------------------------------------- */
@media (min-width: 768px) {
  .lp-bloc--img-left .lp-bloc__container,
  .lp-bloc--img-right .lp-bloc__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
  }
  /* img-left: imatge al primer lloc (ordre natural) */
  .lp-bloc--img-left .lp-bloc__media  { order: 1; }
  .lp-bloc--img-left .lp-bloc__text   { order: 2; }
  /* img-right: text primer, imatge a la dreta */
  .lp-bloc--img-right .lp-bloc__media { order: 2; }
  .lp-bloc--img-right .lp-bloc__text  { order: 1; }
}

/* -------------------------------------------------------
   E — feature-left: imatge gran (60%), text estret (40%)
   ------------------------------------------------------- */
@media (min-width: 768px) {
  .lp-bloc--feature-left .lp-bloc__container {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 3rem;
    align-items: center;
  }
  .lp-bloc--feature-left .lp-bloc__media { order: 1; }
  .lp-bloc--feature-left .lp-bloc__text  { order: 2; }
}

/* -------------------------------------------------------
   C / D — img-top / text-top: stack vertical centrat
   ------------------------------------------------------- */
.lp-bloc--img-top .lp-bloc__container,
.lp-bloc--text-top .lp-bloc__container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2rem;
  max-width: 800px;
}
.lp-bloc--img-top .lp-bloc__media,
.lp-bloc--text-top .lp-bloc__media {
  width: 100%;
}
.lp-bloc--img-top .lp-bloc__media img,
.lp-bloc--text-top .lp-bloc__media img {
  border-radius: 8px;
  height: auto;
}

/* -------------------------------------------------------
   F — text-center: text centrat, imatge decorativa petita
   ------------------------------------------------------- */
.lp-bloc--text-center .lp-bloc__container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.5rem;
  max-width: 720px;
}
.lp-bloc--text-center .lp-bloc__media img {
  max-width: 240px;
  height: auto;
  border-radius: 8px;
}

/* Mòbil: totes les disposicions en columna */
@media (max-width: 767px) {
  .lp-bloc--img-left .lp-bloc__container,
  .lp-bloc--img-right .lp-bloc__container,
  .lp-bloc--feature-left .lp-bloc__container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }
  .lp-bloc--img-left .lp-bloc__media,
  .lp-bloc--img-right .lp-bloc__media,
  .lp-bloc--feature-left .lp-bloc__media {
    order: 1;
  }
  .lp-bloc--img-left .lp-bloc__text,
  .lp-bloc--img-right .lp-bloc__text,
  .lp-bloc--feature-left .lp-bloc__text {
    order: 2;
  }
}

/* =========================================================
   lp-view — Vista incrustada (bloc de Drupal Views)
   ========================================================= */
.lp-view {
  padding: 3rem 1.5rem;
}
.lp-view__container {
  max-width: 1200px;
  margin: 0 auto;
}
.lp-view__title {
  font-size: 3.2rem;
  font-weight: 700;
  color: var(--lp-text, #111);
  margin: 0 0 2rem;
}
.lp-view__content,
.lp-view__content .views-element-container,
.lp-view__content .view,
.lp-view__content .view-content,
.lp-view__content .views-infinite-scroll-content-wrapper {
  width: 100%;
  box-sizing: border-box;
}

/* ─── Graella de targetes (activitats + novetats) ───────────────────────── */
.activitats-grid .view-content,
.novetats-grid .view-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 640px) {
  .activitats-grid .view-content,
  .novetats-grid .view-content { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .activitats-grid .view-content,
  .novetats-grid .view-content { grid-template-columns: repeat(3, 1fr); }
}

.activitats-grid .views-row,
.novetats-grid .views-row {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.activitats-grid .views-row .activ-card,
.novetats-grid .views-row .activ-card {
  flex: 1;
  min-width: 0;
}

/* Targeta individual */
.activ-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
  transition: box-shadow .2s ease;
}
.activ-card:hover { box-shadow: 0 6px 24px rgba(0,0,0,.14); }

/* Imatge */
.activ-card__link { display: block; }
.activ-card__img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}
.activ-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .35s ease;
}
.activ-card:hover .activ-card__img { transform: scale(1.04); }
.activ-card__img--placeholder { background: #e8e4de; }

/* Distintiu de data */
.activ-card__date {
  position: absolute;
  top: .75rem;
  right: .75rem;
  background: #CC2929;
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
  padding: .25rem .6rem;
  border-radius: 3px;
  letter-spacing: .03em;
}

/* Cos de la targeta */
.activ-card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 1.25rem 1.25rem 1.5rem;
}
.activ-card__title {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 .75rem;
}
.activ-card__title a {
  color: #CC2929;
  text-decoration: none;
}
.activ-card__title a:hover { text-decoration: underline; }
.activ-card__excerpt {
  font-size: .9rem;
  color: #555;
  line-height: 1.6;
  margin: 0 0 1rem;
  flex: 1;
}
.activ-card__more {
  font-size: .85rem;
  font-weight: 600;
  color: #CC2929;
  text-decoration: none;
  align-self: flex-start;
}
.activ-card__more:hover { text-decoration: underline; }

/* Badge de tipus de contingut */
.activ-card__type {
  display: inline-block;
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #888;
  margin-bottom: .4rem;
}

/* Variant sense imatge: fons gris neutre */
.activ-card--no-img .activ-card__img-wrap--placeholder {
  background: #e8e4de;
  aspect-ratio: 16 / 9;
  position: relative;
}

/* ═══════════════════════════════════════════════════════════════════════
   lp_promo — imatge-card esquerra + text + franja banner
   ═══════════════════════════════════════════════════════════════════════ */
.lp-promo {
  overflow: hidden;
}

/* Contenidor centrat */
.lp-promo__container {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 1.25rem;
}

/* Part superior */
.lp-promo__top {
  display: flex;
  flex-direction: column;
  gap: 0;
}
@media (min-width: 640px) {
  .lp-promo__top {
    flex-direction: row;
    align-items: stretch;
    min-height: 420px;
  }
}

/* Card imatge (esquerra) */
.lp-promo__card {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  overflow: hidden;
}
@media (min-width: 640px) {
  .lp-promo__card { width: 42%; }
}

.lp-promo__card-img {
  flex: 1;
  background: #e8e4de;
  overflow: hidden;
}
.lp-promo__card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.lp-promo__card-caption {
  background: #CC2929;
  color: #fff;
  font-family: -apple-system, "system-ui", "Segoe UI", Roboto, sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  padding: 0.85rem 1.25rem;
  text-align: center;
  letter-spacing: 0.01em;
}

/* Text dreta */
.lp-promo__body {
  flex: 1;
  padding: 2.5rem 2.75rem;
  background: #f5f4f1;
  display: flex;
  align-items: center;
}
.lp-promo__body p {
  font-family: -apple-system, "system-ui", "Segoe UI", Roboto, sans-serif;
  font-size: 1rem;
  line-height: 1.75;
  color: #333;
  margin: 0 0 1em;
}
.lp-promo__body p:last-child { margin-bottom: 0; }

/* Franja banner inferior */
.lp-promo__banner {
  background: #CC2929;
}
.lp-promo__banner-inner {
  max-width: 1200px;
  margin-inline: auto;
  padding: 1.1rem 1.25rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem 2rem;
}

.lp-promo__brand {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  flex-shrink: 0;
}
.lp-promo__brand-name {
  font-family: -apple-system, "system-ui", "Segoe UI", Roboto, sans-serif;
  font-size: 1.6rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.lp-promo__brand-badge {
  font-family: -apple-system, "system-ui", "Segoe UI", Roboto, sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  color: rgba(255,255,255,0.65);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 0.1rem;
}

.lp-promo__tagline {
  font-family: -apple-system, "system-ui", "Segoe UI", Roboto, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  margin: 0;
  flex: 1;
  line-height: 1.4;
}

.lp-promo__cta {
  display: inline-block;
  background: #fff;
  color: #CC2929;
  font-family: -apple-system, "system-ui", "Segoe UI", Roboto, sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.65em 1.5em;
  text-decoration: none;
  border-radius: 2px;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
  flex-shrink: 0;
}
.lp-promo__cta:hover { background: #111; color: #fff; }

/* Colors de fons per la part superior */
.paragraph--bg-white .lp-promo__body  { background: #ffffff; }
.paragraph--bg-grey  .lp-promo__body  { background: #f5f4f1; }
.paragraph--bg-beige  .lp-promo__body  { background: #eae8e3; }
.paragraph--bg-broken .lp-promo__body  { background: #f0ece7; }
.paragraph--bg-black .lp-promo__body  { background: #1e1e1e; }
.paragraph--bg-black .lp-promo__body p { color: rgba(255,255,255,0.8); }

@media (max-width: 639px) {
  .lp-promo__card-img { aspect-ratio: 4/3; }
  .lp-promo__body { padding: 1.75rem 1.25rem; }
  .lp-promo__banner-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 1.25rem 1.25rem;
    gap: 0.75rem;
  }
  .lp-promo__brand-name { font-size: 1.25rem; }
  .lp-promo__tagline { flex: none; }
}

/* ── Autocomplete dropdown de municipi ───────────────────── */
.cami-ac-wrap {
  position: relative;
}
.cami-ac-list {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 200;
  margin: 2px 0 0;
  padding: 0;
  list-style: none;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 6px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.10);
  max-height: 240px;
  overflow-y: auto;
}
.cami-ac-item {
  padding: 0.6rem 0.875rem;
  font-size: 0.9375rem;
  color: #111;
  cursor: pointer;
}
.cami-ac-item:hover,
.cami-ac-item.is-active {
  background: #f5f4f1;
  color: #cc2929;
}

/* ── Vista Camipèdia — filtres exposats ──────────────────── */
.view-camipedia-grid .views-exposed-form {
  margin-bottom: 2rem;
}
.view-camipedia-grid .views-exposed-form .form--inline {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  gap: 1rem;
  align-items: flex-end;
}
.view-camipedia-grid .views-exposed-form .form-item {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin: 0;
}
.view-camipedia-grid .views-exposed-form label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #555;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.view-camipedia-grid .views-exposed-form input[type="text"],
.view-camipedia-grid .views-exposed-form input[type="search"],
.view-camipedia-grid .views-exposed-form select {
  width: 100%;
  height: 44px;
  padding: 0 0.875rem;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 0.9375rem;
  color: #111;
  background: #fff;
  box-sizing: border-box;
  appearance: none;
  -webkit-appearance: none;
  outline: none;
  transition: border-color 0.15s;
}
.view-camipedia-grid .views-exposed-form input[type="text"]:focus,
.view-camipedia-grid .views-exposed-form input[type="search"]:focus,
.view-camipedia-grid .views-exposed-form select:focus {
  border-color: #cc2929;
}
.view-camipedia-grid .views-exposed-form .form-item--select {
  position: relative;
}
.view-camipedia-grid .views-exposed-form .form-item--select::after {
  content: '';
  position: absolute;
  right: 0.875rem;
  bottom: 14px;
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid #555;
  pointer-events: none;
}
.view-camipedia-grid .views-exposed-form .form-actions {
  display: flex;
  align-items: flex-end;
  margin: 0;
}
.view-camipedia-grid .views-exposed-form .form-submit {
  height: 44px;
  padding: 0 1.5rem;
  background: #cc2929;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s;
}
.view-camipedia-grid .views-exposed-form .form-submit:hover {
  background: #a81e1e;
}

@media (max-width: 768px) {
  .view-camipedia-grid .views-exposed-form .form--inline {
    grid-template-columns: 1fr;
  }
  .view-camipedia-grid .views-exposed-form .form-actions {
    align-items: stretch;
  }
  .view-camipedia-grid .views-exposed-form .form-submit {
    width: 100%;
  }
}

/* ── Vista Camipèdia graella ─────────────────────────────── */
.view-camipedia-grid .views-infinite-scroll-content-wrapper {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  width: 100%;
  margin: 0;
  padding: 0;
}
.view-camipedia-grid .views-row {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s;
}
.view-camipedia-grid .views-row:hover {
  box-shadow: 0 4px 24px rgba(0,0,0,0.14);
}
.view-camipedia-grid .views-field-field-aportacio-fotografies {
  aspect-ratio: 4/3;
  overflow: hidden;
}
.view-camipedia-grid .views-field-field-aportacio-fotografies .field-content,
.view-camipedia-grid .views-field-field-aportacio-fotografies a {
  display: block;
  height: 100%;
}
.view-camipedia-grid .views-field-field-aportacio-fotografies img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 0;
}
.view-camipedia-grid .views-field-title {
  padding: 0.75rem 1rem 0.25rem;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.3;
}
.view-camipedia-grid .views-field-title a {
  color: #111;
  text-decoration: none;
}
.view-camipedia-grid .views-field-title a:hover { color: #cc2929; }
.view-camipedia-grid .views-field-field-text-complet {
  padding: 0.25rem 1rem 1rem;
  font-size: 0.875rem;
  color: #555;
  flex: 1;
}
.view-camipedia-grid .views-field-field-text-complet p { margin: 0; }
.view-camipedia-grid .views-field-view-node {
  padding: 0 1rem 1rem;
}
.view-camipedia-grid .views-field-view-node a {
  display: inline-block;
  padding: 0.45rem 1.1rem;
  background: transparent;
  color: #cc2929;
  border: 1.5px solid #cc2929;
  border-radius: 6px;
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.view-camipedia-grid .views-field-view-node a:hover {
  background: #cc2929;
  color: #fff;
}

@media (max-width: 900px) {
  .view-camipedia-grid .views-infinite-scroll-content-wrapper {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 560px) {
  .view-camipedia-grid .views-infinite-scroll-content-wrapper {
    grid-template-columns: 1fr;
  }
}
