.visually-hidden, .field--hp { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wrap--narrow { max-width: calc(52rem + 2 * var(--gutter)); }
.section--tight { padding-block: var(--s-7); }
.h3 { font-size: var(--fs-h3); }
.topbar__list { display: flex; gap: var(--s-5); }
.site-nav__list .current-menu-item > a, .site-nav__list .current_page_item > a { box-shadow: inset 0 -2px 0 var(--c-copper); }
.brand--logo img { display: block; max-height: 3rem; width: auto; }
.form__status.is-ok { color: var(--c-ok); font-weight: var(--fw-semi); }
.page-hero { background: var(--c-mist); padding-block: var(--s-8) var(--s-7); }
.page-hero__title { font-size: var(--fs-h2); letter-spacing: var(--ls-head); line-height: var(--lh-head); max-width: 22ch; margin-top: var(--s-3); }
.page-hero__title .accent { display: block; color: var(--c-text-2); }
.page-hero__lead { font-size: var(--fs-lead); color: var(--c-text-2); max-width: var(--measure); margin-top: var(--s-4); }
.page-hero .eyebrow a { color: inherit; text-decoration: none; }
.page-hero .eyebrow a:hover { text-decoration: underline; }
.crumbs { font-size: var(--fs-small); color: var(--c-text-2); }
.crumbs a { color: inherit; }
.prose { max-width: 70ch; font-size: 1.0625rem; }
.prose > * + * { margin-top: 1em; }
.prose h2 { font-size: var(--fs-h3); margin-top: 1.6em; }
.prose h3 { font-size: 1.25rem; margin-top: 1.4em; }
.prose a { color: var(--c-copper-deep); }
.prose ul, .prose ol { padding-left: 1.25em; list-style: revert; }
.prose li + li { margin-top: .35em; }
.prose img, .prose figure { max-width: 100%; height: auto; }
.prose blockquote { border-left: 3px solid var(--c-copper); padding-left: var(--s-4); color: var(--c-text-2); }
.prose .alignleft { float: left; margin: 0 var(--s-5) var(--s-4) 0; }
.prose .alignright { float: right; margin: 0 0 var(--s-4) var(--s-5); }
.prose .aligncenter { margin-inline: auto; }
.wp-caption-text, .prose figcaption { font-size: var(--fs-small); color: var(--c-text-2); margin-top: var(--s-2); }
.list-title { display: flex; align-items: baseline; gap: var(--s-3); margin-bottom: var(--s-5); }
.list-title .count { font-size: var(--fs-small); font-weight: var(--fw-bold); color: var(--c-text-2); background: var(--c-white); border: 1px solid var(--c-line); border-radius: var(--r-round); padding: .1rem .6rem; }
.promos--grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 21rem), 1fr)) !important; }
.promos--grid .promo--half { grid-column: auto; grid-template-columns: 1fr; }
.promos--sold .promo { background: var(--c-mist); }
.promos--sold .promo__media img { filter: saturate(.6); }
.promo-single__head { display: grid; gap: var(--s-6); align-items: end; }
.promo-single__place { display: flex; align-items: center; gap: var(--s-2); margin-top: var(--s-3); color: var(--c-text-2); font-weight: var(--fw-semi); }
.promo-single__place svg { width: 1rem; height: 1rem; color: var(--c-copper); }
.promo-single__summary { display: grid; gap: var(--s-4); justify-items: start; }
.promo-single__summary .promo__price { font-size: 2rem; }
@media (min-width: 64rem) {
.promo-single__head { grid-template-columns: minmax(0, 1fr) auto; }
.promo-single__summary { justify-items: end; text-align: right; }
}
.gallery { background: var(--c-mist); padding-bottom: var(--s-6); }
.gallery__track { display: grid; grid-auto-flow: column; grid-auto-columns: min(86vw, 40rem); gap: var(--s-3); overflow-x: auto; scroll-snap-type: x mandatory; padding-inline: var(--gutter); scrollbar-width: thin; }
.gallery__track:focus-visible { outline: 3px solid var(--c-copper); outline-offset: 2px; }
.gallery__item { scroll-snap-align: start; display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--c-placeholder); }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t-base) var(--ease); }
.gallery__item:hover img { transform: scale(1.03); }
.gallery__item--main { border-radius: var(--r-media); }
.promo-single__grid { display: grid; gap: var(--s-7); padding-block: var(--s-8); }
@media (min-width: 64rem) { .promo-single__grid { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); } }
.promo-single__main { display: grid; gap: var(--s-7); align-content: start; min-width: 0; }
.promo__specs--lg { font-size: 1rem; gap: var(--s-3) var(--s-6); padding-bottom: var(--s-5); border-bottom: 1px solid var(--c-line); }
.promo__specs--lg dd { font-size: 1.5rem; }
.promo__specs--lg div { align-items: baseline; }
.block .h3 { margin-bottom: var(--s-4); }
.table-wrap { overflow-x: auto; border: 1px solid var(--c-line); }
.units-table { width: 100%; border-collapse: collapse; font-size: var(--fs-small); font-variant-numeric: tabular-nums; min-width: 44rem; }
.units-table th, .units-table td { padding: var(--s-3) var(--s-3); text-align: left; border-bottom: 1px solid var(--c-line); white-space: nowrap; }
.units-table thead th { background: var(--c-coal); color: var(--c-white); font-size: var(--fs-eyebrow); letter-spacing: var(--ls-eyebrow); text-transform: uppercase; }
.units-table tbody th { font-weight: var(--fw-bold); }
.units-table tr.is-sold td, .units-table tr.is-sold th { color: var(--c-text-2); }
.units-table a { color: var(--c-copper-deep); font-weight: var(--fw-semi); }
.ticks { display: grid; gap: var(--s-2); }
@media (min-width: 48rem) { .ticks { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--s-6); } }
.ticks li { position: relative; padding-left: 1.6rem; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .45em; width: .9rem; height: .5rem; border-left: 2px solid var(--c-copper); border-bottom: 2px solid var(--c-copper); transform: rotate(-45deg); }
.plans { display: grid; grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr)); gap: var(--s-3); }
.plans a { display: block; border: 1px solid var(--c-line); background: var(--c-white); }
.plans img { width: 100%; height: auto; display: block; }
.promo-single__aside { align-self: start; }
@media (min-width: 64rem) { .promo-single__aside { position: sticky; top: 6rem; } }
.card-info { display: grid; gap: var(--s-4); background: var(--c-mist); padding: var(--s-6); border-radius: var(--r-card); }
.card-info__phone a { display: inline-flex; align-items: center; gap: var(--s-2); font-size: 1.5rem; font-weight: var(--fw-bold); text-decoration: none; }
.card-info__phone svg { width: 1.1rem; height: 1.1rem; color: var(--c-copper); }
.posts { display: grid; gap: var(--s-5); grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr)); }
.post-card__link { display: grid; height: 100%; text-decoration: none; background: var(--c-white); border: 1px solid var(--c-line); border-radius: var(--r-card); overflow: hidden; transition: border-color var(--t-fast); }
.post-card__link:hover { border-color: var(--c-copper); }
.post-card .media { aspect-ratio: 3 / 2; background: var(--c-placeholder); }
.post-card__body { display: grid; gap: var(--s-2); padding: var(--s-5); align-content: start; }
.post-card__date { font-size: var(--fs-eyebrow); font-weight: var(--fw-bold); letter-spacing: var(--ls-eyebrow); text-transform: uppercase; color: var(--c-text-2); }
.post-card__title { font-size: 1.1875rem; line-height: 1.25; }
.post-card__excerpt { font-size: var(--fs-small); color: var(--c-text-2); }
.post-single__img { margin-bottom: var(--s-6); }
.post-single__img img { width: 100%; height: auto; border-radius: var(--r-media); }
.post-nav { display: flex; justify-content: space-between; gap: var(--s-5); margin-top: var(--s-7); padding-top: var(--s-5); border-top: 1px solid var(--c-line); font-weight: var(--fw-semi); }
.post-nav a { text-decoration: none; }
.post-nav__next { margin-left: auto; text-align: right; }
.nav-links { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-7); }
.nav-links .page-numbers { min-width: 2.75rem; height: 2.75rem; display: inline-grid; place-items: center; border: 1px solid var(--c-line); text-decoration: none; font-weight: var(--fw-semi); }
.nav-links .current { background: var(--c-coal); color: var(--c-white); border-color: var(--c-coal); }
.fx-content .fx-section { padding-block: var(--s-7); background-size: cover; background-position: center; }
.fx-content .fx-section.fx-dark { color: var(--c-white); }
.fx-row { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--s-5); align-items: start; }
.fx-row + .fx-row { margin-top: var(--s-6); }
.fx-col { grid-column: span 12; min-width: 0; }
@media (min-width: 48rem) { .fx-col { grid-column: span var(--span, 12); } }
.fx-col > * + * { margin-top: var(--s-4); }
.fx-align-center { text-align: center; }
.fx-hidden { display: none !important; }
.fx-gap { height: var(--s-5); }
.fx-divider { border: 0; border-top: 2px solid var(--c-copper); width: 6rem; margin: var(--s-4) 0; }
.fx-align-center .fx-divider { margin-inline: auto; }
.fx-content h1 { font-size: var(--fs-h2); line-height: var(--lh-head); }
.fx-content h2 { font-size: var(--fs-h3); color: var(--c-text-2); font-weight: var(--fw-semi); }
.fx-content h3 { font-size: var(--fs-h3); }
.fx-content p { max-width: 70ch; }
.fx-align-center p { margin-inline: auto; }
.fx-fbox { display: grid; gap: var(--s-3); grid-template-columns: auto 1fr; align-items: start; }
.fx-fbox__img { width: 3.5rem; height: auto; }
.fx-fbox-link { text-decoration: none; display: block; }
.fx-image img { width: 100%; height: 100%; max-height: 26rem; object-fit: cover; border-radius: var(--r-media); }
.fx-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr)); gap: var(--s-3); }
.fx-gallery a { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--c-placeholder); }
.fx-gallery img { width: 100%; height: 100%; object-fit: cover; }
.fx-video iframe { width: 100%; height: auto; aspect-ratio: 16 / 9; }
.fx-cta { background: var(--c-coal); color: var(--c-white); padding: var(--s-7) var(--gutter); }
.fx-cta .fx-row { max-width: var(--container); margin-inline: auto; align-items: center; }
.fx-banner { position: relative; min-height: 24rem; display: grid; place-items: center; background-size: cover; background-position: center; color: var(--c-white); text-align: center; }
.fx-banner::before { content: ""; position: absolute; inset: 0; background: rgba(26, 30, 34, .45); }
.fx-banner__in { position: relative; padding: var(--s-6); }
.fx-acc { border-bottom: 1px solid var(--c-line); padding-block: var(--s-3); }
.fx-acc summary { cursor: pointer; font-weight: var(--fw-semi); }
.fx-follow { display: flex; gap: var(--s-4); }
.fx-tab + .fx-tab { margin-top: var(--s-6); }
.fx-content > .fx-section:first-child.titupag { display: none; }

/* ==========================================================================
   Pàgines de serveis i empresa (page.php · cf_page_layouts)
   ========================================================================== */
.hero__accent { display: block; color: var(--c-text-2); }
@media (min-width: 64rem) { .hero--page { min-height: min(34rem, calc(100svh - 7.5rem)); } }
.hero--text { grid-template-columns: 1fr !important; min-height: 0 !important; }
.hero--text .hero__text { padding-block: var(--s-9) var(--s-8); }

/* Tres punts forts */
.features { display: grid; gap: var(--s-6) var(--gutter); }
.feature { display: grid; gap: var(--s-3); align-content: start; padding-top: var(--s-5); border-top: 1px solid var(--c-coal); }
.feature__num { font-size: var(--fs-small); font-weight: var(--fw-bold); color: var(--c-copper-deep); font-variant-numeric: tabular-nums; }
.feature__title { font-size: var(--fs-h3); }
.feature p { color: var(--c-text-2); max-width: 38ch; }
@media (min-width: 48rem) { .features { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Galeria amb visor */
.pgal { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-3); }
@media (min-width: 48rem) { .pgal { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-4); } }
@media (min-width: 48rem) { .pgal li:first-child { grid-column: span 2; grid-row: span 2; } }
.pgal__item { display: block; height: 100%; aspect-ratio: 4 / 3; overflow: hidden; background: var(--c-placeholder); cursor: zoom-in; }
.pgal__item { border-radius: var(--r-btn); }
.pgal__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease), filter var(--t-base) var(--ease); }
@media (hover: hover) { .pgal__item:hover img { transform: scale(1.04); } }
.lightbox { width: min(72rem, calc(100vw - 2rem)); max-height: calc(100dvh - 2rem); padding: 0; border: 0; background: transparent; overflow: visible; }
.lightbox::backdrop { background: rgba(20, 23, 26, .9); }
.lightbox img { display: block; max-width: 100%; max-height: calc(100dvh - 7rem); margin-inline: auto; object-fit: contain; }
.lightbox__bar { display: flex; justify-content: center; gap: var(--s-3); margin-top: var(--s-4); }
.lightbox__bar button { width: 2.75rem; height: 2.75rem; border-radius: var(--r-round); border: 0; background: var(--c-white); color: var(--c-coal); font-size: 1.25rem; line-height: 1; cursor: pointer; transition: background-color var(--t-fast) var(--ease); }
.lightbox__bar button:hover { background: var(--c-sand); }
@media (prefers-reduced-motion: no-preference) {
  .lightbox[open] img { animation: lb-in 260ms var(--ease); }
  @keyframes lb-in { from { opacity: 0; transform: scale(.98); } to { opacity: 1; transform: none; } }
}

/* Targetes de 2 o 3 */
@media (min-width: 64rem) { .projects--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Història */
.story { display: grid; gap: var(--s-6); }
.story .section-head { margin: 0; }
.story__text { display: grid; gap: var(--s-4); color: var(--c-text-2); max-width: 62ch; }
.story__lead { font-size: var(--fs-lead); color: var(--c-coal); }
@media (min-width: 64rem) { .story { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: var(--s-8); } }

/* Pas a pas en fila */
@media (min-width: 64rem) {
  .steps--row { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .steps--row .step { grid-template-columns: 1fr; align-content: start; }
  .steps--row .step__num { grid-row: auto; }
  .steps--row .step:first-child { border-radius: 0; }
  .steps--row .step:last-child { border-radius: var(--r-card); }
}

/* Clients */
.clients { display: grid; gap: var(--s-7) var(--gutter); }
@media (min-width: 48rem) { .clients { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.client { display: grid; gap: var(--s-5); align-content: start; }
.client__video { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0; overflow: hidden; background: var(--c-coal); border-radius: var(--r-card); cursor: pointer; }
.client__video img { width: 100%; height: 100%; object-fit: cover; opacity: .9; transition: transform 700ms var(--ease), opacity var(--t-base) var(--ease); }
.client__video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.client__play { position: absolute; left: 50%; top: 50%; width: 4rem; height: 4rem; margin: -2rem 0 0 -2rem; border-radius: var(--r-round); background: var(--c-copper-deep); box-shadow: 0 8px 24px rgba(0, 0, 0, .3); transition: transform var(--t-base) var(--ease), background-color var(--t-fast); }
.client__play::before { content: ""; position: absolute; left: 54%; top: 50%; transform: translate(-50%, -50%); border-left: 14px solid var(--c-white); border-top: 9px solid transparent; border-bottom: 9px solid transparent; }
@media (hover: hover) {
  .client__video:hover img { transform: scale(1.03); opacity: 1; }
  .client__video:hover .client__play { transform: scale(1.08); background: var(--c-copper-hover); }
}
.client__video:focus-visible { outline: 3px solid var(--c-copper); outline-offset: 3px; }
.client__video--empty { display: grid; place-items: center; cursor: default; background: var(--c-mist); color: var(--c-text-2); font-weight: var(--fw-bold); font-size: var(--fs-h3); }
.client__body { display: grid; gap: var(--s-2); justify-items: start; }
.client__meta { font-size: var(--fs-eyebrow); font-weight: var(--fw-bold); letter-spacing: var(--ls-eyebrow); text-transform: uppercase; color: var(--c-text-2); }
.client__name { font-size: var(--fs-h3); }
.client__body > p:not(.client__meta) { color: var(--c-text-2); }

/* Mapa */
.pg-map iframe { display: block; width: 100%; height: clamp(20rem, 40vw, 30rem); border: 0; filter: saturate(.85); }

/* Visites virtuals i vídeos dins del text de les promocions */
.prose iframe { display: block; width: 100% !important; height: auto !important; aspect-ratio: 16 / 10; border: 0; border-radius: var(--r-card); background: var(--c-mist); }

.client--text { padding: var(--s-6); background: var(--c-sand); border-radius: var(--r-card); }
@media (min-width: 48rem) { .client--text { grid-column: 1 / -1; } .client--text .client__body { grid-template-columns: minmax(0, 1fr) auto; column-gap: var(--s-6); align-items: end; } .client--text .client__body > :not(.link-plus) { grid-column: 1; } .client--text .link-plus { grid-column: 2; grid-row: 1 / span 3; align-self: end; } }
@media (min-width: 64rem) { .story { align-items: start; } }
