/* Classificats (CPT classificat) — Limbic 2026-11 */
:root { --up-verd: #008551; --up-text: #3f3f3f; --up-gris: #afafaf; --up-linia: #e1e1e1; }

/* ---------- Capçalera fitxa (mateix format que la resta del web: imatge + barra #page-title + molla de pa) ---------- */
.up-cl-top { position: relative; width: 100vw; margin-left: calc(50% - 50vw); }
.up-cl-top__img img { display: block; width: 100%; height: auto; aspect-ratio: 1920 / 545; object-fit: cover; }
.up-cl-top .up-cl-top__bar { position: relative; z-index: 200; margin-bottom: 5px; background-color: rgba(0,0,0,.58); }
.up-cl-top__inner, .up-cl-top__bc { max-width: 1200px; margin: 0 auto; box-sizing: border-box; }
.up-cl-top .up-cl-top__title { margin: 0; padding: 7px 0; font-family: 'Roboto Slab', serif; font-size: 48px; font-weight: 300; line-height: 63px; color: #fff; text-align: left; } /* = h1 de #page-title del tema */
.up-cl-top__bc { margin-bottom: 40px; font-size: 18px; }

.up-cl-list-row { margin-top: 51px; margin-bottom: 100px !important; }
.up-cl-search { position: relative; width: 346px; max-width: 100%; margin: 0 0 36px; }
.up-cl-search input[type="text"] {
  width: 100%; height: 45px; box-sizing: border-box; margin: 0;
  border: 1px solid var(--up-verd) !important; border-radius: 30px !important; background: #fff !important;
  padding: 0 52px 0 25px !important; box-shadow: none !important;
  font-family: 'Roboto Slab', serif; font-weight: 700; font-size: 15px; color: var(--up-text);
}
.up-cl-search input[type="text"]::placeholder { color: var(--up-text); opacity: 1; }
.up-cl-search input[type="text"]:focus { outline: none; box-shadow: 0 0 0 2px rgba(0,133,81,.2) !important; }
.up-cl-search__btn {
  position: absolute; top: 2px; right: 2px; width: 41px; height: 41px; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
  background: var(--up-verd) url(images/classificats/cl-arrow.svg) no-repeat center / 13px auto;
}
.up-cl-search__btn:hover { background-color: #006b41; }

/* ---------- Graella targetes ---------- */
.up-cl-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 19px 20px; }
.up-cl-card {
  position: relative; display: block; box-sizing: border-box; min-height: 305px; padding: 25px 25px 22px 29px;
  border: 1px solid var(--up-verd); border-radius: 10px; background: #fff; color: var(--up-text);
  text-decoration: none; transition: box-shadow .2s;
}
.up-cl-card:hover { box-shadow: 0 6px 18px rgba(0,0,0,.08); }
.up-cl-card a.up-cl-card__link { color: inherit; text-decoration: none; }
.up-cl-card a.up-cl-card__link:after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: 10px; }
.up-cl-contact a { position: relative; z-index: 2; color: var(--up-text); text-decoration: none; }
.up-cl-contact a:hover { color: var(--up-verd); text-decoration: underline; }
.up-cl-card .up-cl-card__title, .up-cl-card .up-cl-card__title a { margin: 0; font-size: 17px; line-height: 1.3; } /* estil base: h2.single-title del tema */
.up-cl-card .up-cl-card__date { margin: 6px 0 4px; font-size: 14px; line-height: 21px; } /* estil base: .list_date del tema */
.up-cl-card__excerpt {
  margin: 2px 0 0; font-family: 'Roboto', sans-serif; font-size: 15px; line-height: 1.396; color: var(--up-text);
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
}
ul.up-cl-contact { list-style: none; margin: 10px 0 0; padding: 0; }
ul.up-cl-contact li {
  margin: 0; padding: 0 0 0 19px; list-style: none; background: no-repeat 0 50%;
  font-family: 'Roboto', sans-serif; font-weight: 400; font-size: 15px; line-height: 1.396; color: var(--up-text);
  overflow-wrap: anywhere;
}
ul.up-cl-contact li:before { display: none !important; }
ul.up-cl-contact li.up-cl-contact__nom { background-image: url(images/classificats/cl-user.svg); background-size: 12px auto !important; }
ul.up-cl-contact li.up-cl-contact__email { background-image: url(images/classificats/cl-mail.svg); background-size: 14px auto !important; }
ul.up-cl-contact li.up-cl-contact__tel { background-image: url(images/classificats/cl-phone.svg); background-size: 9px auto !important; background-position: 2px 50% !important; }

/* ---------- Paginació: estil del tema (com Comunicats de premsa) ---------- */
.up-cl-list-row .wpv-pagination-nav-links-container { margin-top: 43px; }
.up-cl-empty { font-family: 'Roboto', sans-serif; font-size: 15px; color: var(--up-text); }

/* ---------- Fitxa ---------- */
.single-classificat .up-cl-single { max-width: 1200px; margin: 0 auto 80px; box-sizing: border-box; }
@media (max-width: 1229px) { .up-cl-top__inner, .up-cl-top__bc, .single-classificat .up-cl-single { padding: 0 15px; } }
.up-cl-single__cols { display: flex; justify-content: space-between; gap: 20px; margin-top: 61px; }
.up-cl-single__main { flex: 0 1 74.65%; min-width: 0; }
.up-cl-single__side { flex: 0 0 23.96%; min-width: 0; }
.up-cl-single .up-cl-single__title { margin: 0; } /* estil base: h1.single-title del tema */
.up-cl-single .up-cl-single__date { margin: 5px 0 0; } /* estil base: .list_date del tema */
.up-cl-single__body { margin-top: 32px; }

.up-cl-single__body .vc_row { margin-bottom: 0; }

/* Bloc imatge + cita (camps imatge-cita + cita) */
.up-cl-cita { display: flex; align-items: center; margin: 30px 0 40px; }
.up-cl-cita__img { flex: 0 0 54.73%; width: 54.73%; }
.up-cl-cita__img img { display: block; width: 100%; height: auto; aspect-ratio: 590 / 442; object-fit: cover; }
.up-cl-cita__text {
  flex: 0 0 50.73%; width: 50.73%; margin-left: -5.46%; position: relative; z-index: 1; box-sizing: border-box;
  background: var(--up-verd); min-height: 305px; display: flex; align-items: center; padding: 40px 35px 40px 66px;
}
.up-cl-cita > .up-cl-cita__text:only-child { flex-basis: 100%; width: 100%; margin-left: 0; min-height: 0; }
.up-cl-single .up-cl-cita__text p {
  margin: 0; font-family: 'Roboto Slab', serif; font-weight: 700; font-size: 25px; line-height: 1.074;
  color: #fff; text-transform: uppercase;
}
.up-cl-single__body--final { margin-top: 0; }

/* Peu: tornar + compartir */
.up-cl-single__foot { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 20px; margin-top: 30px; }
a.up-cl-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 19px; box-sizing: border-box;
  width: 286px; max-width: 100%; padding: 12px 40px; border-radius: 44px; background: var(--up-verd);
  font-family: 'Roboto', sans-serif; font-size: 16px; line-height: 1.5; color: #fff !important;
  text-transform: uppercase; text-decoration: none; white-space: nowrap;
}
a.up-cl-btn:before { content: ""; flex: 0 0 13px; width: 13px; height: 13px; background: url(images/classificats/cl-arrow.svg) no-repeat center / contain; transform: rotate(180deg); }
a.up-cl-btn:hover { background: #006b41; }
.up-cl-share { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 6px; max-width: 230px; }
.up-cl-share__label {
  flex: 0 0 100%; text-align: right; margin-bottom: 10px;
  font-family: 'Roboto Slab', serif; font-weight: 700; font-size: 15px; line-height: 1.396; color: var(--up-verd); text-transform: uppercase;
}
a.up-cl-share__i { display: block; width: 40px; height: 40px; background: no-repeat center / contain; transition: opacity .2s; }
a.up-cl-share__i:hover { opacity: .75; }
a.up-cl-share__i.up-cl-share__i--whatsapp { background-image: url(images/classificats/cl-share-whatsapp.svg); }
a.up-cl-share__i.up-cl-share__i--instagram { background-image: url(images/classificats/cl-share-instagram.svg); }
a.up-cl-share__i.up-cl-share__i--linkedin { background-image: url(images/classificats/cl-share-linkedin.svg); }
a.up-cl-share__i.up-cl-share__i--x { background-image: url(images/classificats/cl-share-x.svg); }
a.up-cl-share__i.up-cl-share__i--facebook { background-image: url(images/classificats/cl-share-facebook.svg); }

/* Sidebar últims */
.up-cl-single .up-cl-single__side-title {
  margin: 0; padding: 0 0 18px; border-bottom: 1px solid var(--up-verd);
  font-family: 'Roboto Slab', serif; font-weight: 700; font-size: 17px; line-height: 1.2; color: var(--up-verd); text-transform: uppercase;
}
ul.up-cl-ultims { list-style: none; margin: 0; padding: 0; }
ul.up-cl-ultims li { margin: 0; padding: 0; list-style: none; border-bottom: 1px solid var(--up-linia); }
ul.up-cl-ultims li:before { display: none !important; }
ul.up-cl-ultims li a {
  display: block; padding: 18px 0 14px; font-family: 'Roboto Slab', serif; font-size: 14px; line-height: 1.2;
  color: var(--up-verd); text-decoration: none;
}
ul.up-cl-ultims li a:hover { text-decoration: underline; }

/* ---------- Responsive ---------- */
@media (max-width: 1199px) {
  .up-cl-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 991px) {
  .up-cl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .up-cl-single__cols { flex-direction: column; gap: 50px; }
  .up-cl-single .up-cl-cita__text p { font-size: 22px; }
}
@media (max-width: 767px) {
  .up-cl-grid { grid-template-columns: minmax(0, 1fr); }
  .up-cl-card { min-height: 0; }
  .up-cl-single__cols { margin-top: 35px; }
  .up-cl-cita { flex-direction: column; align-items: stretch; margin: 25px 0 30px; }
  .up-cl-cita__img, .up-cl-cita__text { flex-basis: auto; width: 100%; }
  .up-cl-cita__text { margin: 0; min-height: 0; padding: 30px 25px; }
  .up-cl-single .up-cl-cita__text p { font-size: 20px; }
  .up-cl-single__foot { flex-direction: column; align-items: flex-start; }
  .up-cl-share { justify-content: flex-start; }
  .up-cl-share__label { text-align: left; }
}

/* ---------- Prefooter logos (classificats) ---------- */
.up-prefooter { background: #1e7d4c; border-bottom: 1px solid rgba(255,255,255,.75); }
.up-prefooter__inner {
  max-width: 1200px; margin: 0 auto; padding: 42px 15px; box-sizing: border-box;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 30px 80px;
}
.up-prefooter__logo img { display: block; max-width: 100%; height: auto; }
@media (max-width: 991px) { .up-prefooter__inner { gap: 30px 50px; } }
@media (max-width: 767px) { .up-prefooter__inner { gap: 25px 35px; padding: 35px 15px; } .up-prefooter__logo img { max-height: 40px; width: auto; } }

/* 25-11-2026: capçalera de la pàgina a tot l'ample (la foto fa 1900px; en pantalles més amples quedaven franges blanques) */
.up-cl-hero .wpb_single_image,
.up-cl-hero .wpb_single_image .vc_figure,
.up-cl-hero .wpb_single_image .vc_single_image-wrapper { display: block; width: 100%; }
.up-cl-hero .wpb_single_image img { display: block; width: 100%; height: auto; }
