/* Aislamientos Luesda · v3 (06/12/2026)
   Forma: el motlle (_motlle/, reconstrucció neta de la portada d'un calorifugador de referència): franja fosca, capçalera blanca amb botó,
   portada fosca amb foto de canonada folrada, empresa a dues columnes, serveis en targetes amb foto, franja fosca amb rajoles de foto,
   obres, marques i banda final. Fons: tot de Luesda.
   Canvis respecte al motlle: verd del logo de Luesda en lloc del vermell; Barlow Condensed + Barlow (sector oficis) en lloc
   d'Oswald + IBM Plex; sense franja de xifres, sense etiquetes numerades amb ratlla, sense ombres ni cantonades rodones;
   barra fixa de trucar al mòbil. */

@font-face { font-family: "Barlow Condensed"; src: url("/static/fonts/barlow-condensed-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("/static/fonts/barlow-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root {
  /* verd del compàs del logo (#3d9e21, mesurat) fosquejat per al text blanc dels botons (5,4:1);
     el clar és per a detalls i text sobre fosc (7,4:1) */
  --verd: #2e7a1e;
  --verd-fosc: #25651a;
  --verd-logo: #3d9e21;
  --verd-clar: #5cbf43;
  --fosc: #161b1f;          /* grafit, una mica tenyit del blau de la planxa */
  --tinta: #171b1e;
  --text: #3a4146;
  --gris: #5b6469;
  --apagat: #a3acb1;
  --clar: #f3f5f4;          /* gris alumini */
  --blanc: #fff;
  --ratlla: #e1e4e3;
  --ratlla-fosca: #2f383e;

  --f-titol: "Barlow Condensed", "Arial Narrow", "Segoe UI", Roboto, Arial, sans-serif;
  --f-text: "Barlow", "Segoe UI", Roboto, Arial, sans-serif;

  --contenidor: 1240px;
  --marge: clamp(18px, 4.5vw, 56px);
  --sec: clamp(64px, 9vw, 124px);
  --sec-p: clamp(44px, 5.6vw, 80px);
}

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; -webkit-text-size-adjust: 100%; scroll-padding-top: 20px; }
body { margin: 0; font-family: var(--f-text); font-size: 17px; line-height: 1.6; color: var(--tinta); background: var(--blanc); overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, dl { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, p, dd, figure, blockquote { margin: 0; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
svg { fill: currentColor; }
:focus-visible { outline: 3px solid var(--verd-clar); outline-offset: 2px; }

.contenidor { width: 100%; max-width: var(--contenidor); margin: 0 auto; padding: 0 var(--marge); }
.estret { max-width: 860px; }

.salta { position: absolute; left: -999px; top: 0; background: var(--tinta); color: #fff; padding: 12px 18px; z-index: 100; }
.salta:focus { left: 8px; }

.demo-franja { background: #fff4c2; color: #3d3200; font-size: 14px; line-height: 1.4; text-align: center; padding: 8px 16px; }

/* ---------------------------------------------------------------- franja de dalt + capçalera */
.topbar { background: var(--fosc); color: #c9d0d3; font-size: 14px; }
.topbar .contenidor { display: flex; align-items: center; justify-content: space-between; min-height: 40px; gap: 12px; }
.topbar-contacte { display: flex; align-items: center; gap: 22px; }
.topbar-contacte a { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; }
.topbar-contacte svg { width: 14px; height: 14px; color: var(--verd-clar); }
.topbar-contacte a:hover { color: #fff; }
.topbar-xarxes { display: flex; gap: 2px; }
.topbar-xarxes a { display: grid; place-items: center; width: 40px; height: 40px; color: #c9d0d3; }
.topbar-xarxes a:hover { color: #fff; }
.topbar-xarxes svg { width: 15px; height: 15px; }

.site-header { position: relative; z-index: 20; background: #fff; border-bottom: 1px solid var(--ratlla); }
.site-header .contenidor { display: flex; align-items: center; gap: 24px; min-height: 104px; }
.logo { flex: none; display: block; width: 196px; }
.logo img { width: 100%; height: auto; }
.main-nav { flex: 1 1 auto; display: flex; align-items: center; justify-content: flex-end; gap: 24px; }
.main-nav > ul { display: flex; align-items: center; gap: 2px; }
.main-nav > ul > li { position: relative; }
.main-nav > ul > li > a {
  display: flex; align-items: center; min-height: 48px; padding: 0 13px;
  font-family: var(--f-titol); font-weight: 600; font-size: 17px; letter-spacing: .03em; text-transform: uppercase; color: var(--text);
  position: relative;
}
.main-nav > ul > li > a:hover, .main-nav a[aria-current] { color: var(--tinta); }
.main-nav > ul > li > a[aria-current]::after { content: ""; position: absolute; left: 13px; right: 13px; bottom: 8px; height: 2px; background: var(--verd-logo); }
.te-sub > a::before { content: ""; order: 2; width: 7px; height: 7px; margin-left: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); }
.sub { position: absolute; left: 0; top: 100%; min-width: 290px; background: #fff; border: 1px solid var(--ratlla); border-top: 2px solid var(--verd-logo);
  padding: 8px 0; visibility: hidden; opacity: 0; transition: opacity .15s, visibility .15s; }
.te-sub:hover .sub, .te-sub:focus-within .sub { visibility: visible; opacity: 1; }
.sub a { display: flex; align-items: center; min-height: 44px; padding: 6px 20px; font-size: 16px; color: var(--text); }
.sub a:hover { background: var(--clar); color: var(--tinta); }

.boto {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border: 1px solid transparent;
  font-family: var(--f-titol); font-weight: 600; font-size: 18px; letter-spacing: .04em; text-transform: uppercase; line-height: 1.1;
  white-space: nowrap; transition: background .15s, border-color .15s, color .15s;
}
.boto svg { width: 18px; height: 18px; flex: none; }
.boto-verd { background: var(--verd); color: #fff; }
.boto-verd:hover { background: var(--verd-fosc); }
.boto-linia-clara { border-color: rgba(255, 255, 255, .55); color: #fff; }
.boto-linia-clara:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }
.boto-linia { border-color: #c9cecc; color: var(--tinta); background: #fff; }
.boto-linia:hover { border-color: var(--tinta); }
.boto.petit { min-height: 46px; padding: 0 20px; font-size: 16px; }
.fletxa::after { content: "→"; font-family: var(--f-text); margin-left: 2px; }

.burger { display: none; margin-left: auto; width: 48px; height: 48px; align-items: center; justify-content: center; flex-direction: column; gap: 6px; }
.burger span { display: block; width: 26px; height: 2px; background: var(--tinta); }
.menu-tanca { display: none; }
.menu-fons { position: fixed; inset: 0; z-index: 55; background: rgba(22, 27, 31, .55); opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
.menu-fons.oberta { opacity: 1; visibility: visible; }
body.menu-obert { overflow: hidden; }

/* ---------------------------------------------------------------- peces comunes */
.seccio { padding: var(--sec) 0; }
.seccio-p { padding: var(--sec-p) 0; }
.fons-gris { background: var(--clar); }
.fons-fosc { background: var(--fosc); color: #e9ecee; }

.h2 { font-family: var(--f-titol); font-weight: 600; text-transform: uppercase; font-size: clamp(32px, 3.6vw, 46px); line-height: 1.02; color: var(--tinta); max-width: 18em; }
.fons-fosc .h2 { color: #fff; }
.lead { font-size: clamp(17px, 1.36vw, 19.5px); line-height: 1.6; color: var(--text); margin-top: 20px; max-width: 40em; }
.fons-fosc .lead { color: #c3cacd; }
.cos p { color: var(--text); margin-top: 16px; }
.cos p:first-child { margin-top: 0; }
.cos strong { color: var(--tinta); font-weight: 400; font-family: var(--f-titol); font-size: 1.08em; letter-spacing: .02em; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 80px); align-items: center; }
.split .media { position: relative; }
.split .media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.placa { position: absolute; left: 0; bottom: 0; background: var(--verd); color: #fff; padding: 12px 16px; font-family: var(--f-titol); font-weight: 600; font-size: 17px; line-height: 1.15; letter-spacing: .02em; max-width: 85%; }
a.placa:hover { background: var(--verd-fosc); }
.accions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }

.enllac-fletxa { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-family: var(--f-titol); font-weight: 600; font-size: 17px; letter-spacing: .04em; text-transform: uppercase; color: var(--verd); }
.enllac-fletxa::after { content: "→"; font-family: var(--f-text); }
.enllac-fletxa:hover { color: var(--verd-fosc); }
.fons-fosc .enllac-fletxa { color: var(--verd-clar); }

/* ---------------------------------------------------------------- portada: primera pantalla */
.hero { position: relative; display: flex; align-items: flex-end; min-height: min(760px, calc(100svh - 150px)); color: #fff; overflow: hidden; background: var(--fosc); }
.hero .bg-img, .page-hero .bg-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(22, 27, 31, .92) 0%, rgba(22, 27, 31, .74) 48%, rgba(22, 27, 31, .42) 100%),
    linear-gradient(0deg, rgba(22, 27, 31, .6) 0%, rgba(22, 27, 31, 0) 45%);
}
.hero .contenidor { position: relative; z-index: 1; padding-top: 72px; padding-bottom: 76px; }
.hero-barra { display: block; width: 64px; height: 4px; background: var(--verd-logo); margin-bottom: 18px; }
.hero-on { font-family: var(--f-titol); font-weight: 600; font-size: clamp(18px, 1.6vw, 21px); letter-spacing: .02em; color: #dfe5e2; }
.hero h1 { font-family: var(--f-titol); font-weight: 600; text-transform: uppercase; font-size: clamp(46px, 6.6vw, 92px); line-height: .98; max-width: 10.5em; margin-top: 14px; }
.hero p.hero-text { margin-top: 22px; max-width: 34em; font-size: clamp(17px, 1.4vw, 20px); line-height: 1.55; color: rgba(255, 255, 255, .9); }
.hero .accions { margin-top: 34px; }

/* ---------------------------------------------------------------- empresa (dues columnes) */
.empresa .cos { margin-top: 22px; }
.empresa .accions { margin-top: 40px; }

/* ---------------------------------------------------------------- capes (aïllant + xapa) */
.capes .split { align-items: center; }
.capes-dibuix { max-width: 470px; margin: 0 auto; width: 100%; }
.capes-dibuix svg { width: 100%; height: auto; display: block; }
.capes-llista { margin-top: 30px; border-top: 1px solid var(--ratlla); }
.capes-llista li { display: grid; grid-template-columns: 26px 1fr; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--ratlla); }
.capa-mostra { width: 26px; height: 26px; margin-top: 3px; border: 1px solid rgba(0, 0, 0, .25); }
.capa-mostra.tub { background: #6b757b; }
.capa-mostra.aillant { background: #e7c36b; background-image: repeating-linear-gradient(45deg, rgba(0,0,0,.12) 0 2px, transparent 2px 6px); }
.capa-mostra.xapa { background: linear-gradient(135deg, #f4f6f7, #b9c1c5 55%, #e9eef0); }
.capes-llista h3 { font-family: var(--f-titol); font-weight: 600; font-size: 22px; line-height: 1.05; text-transform: uppercase; }
.capes-llista p { margin-top: 6px; color: var(--text); font-size: 16.5px; }

/* ---------------------------------------------------------------- targetes de serveis */
.targetes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; margin-top: 44px; }
.targetes.tres { grid-template-columns: repeat(3, 1fr); }
.targeta { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--ratlla); }
.targeta-foto { display: block; overflow: hidden; }
.targeta-foto img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .4s; }
.targeta:hover .targeta-foto img { transform: scale(1.03); }
.targeta-cos { display: flex; flex-direction: column; flex: 1; padding: 24px 24px 18px; }
.targeta h3 { font-family: var(--f-titol); font-weight: 600; text-transform: uppercase; font-size: 24px; line-height: 1.02; }
.targeta h3 a:hover { color: var(--verd); }
.targeta p { margin-top: 10px; font-size: 16px; line-height: 1.55; color: var(--text); }
.targeta .enllac-fletxa { margin-top: auto; padding-top: 10px; }

/* ---------------------------------------------------------------- franja fosca amb rajoles */
.rajoles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 40px; }
.rajola { position: relative; min-height: 340px; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; padding: 24px; background: #2a3237; }
.rajola img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.rajola::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(22, 27, 31, .05) 20%, rgba(22, 27, 31, .9) 78%); }
.rajola > div { position: relative; z-index: 1; }
.rajola h3 { font-family: var(--f-titol); font-weight: 600; text-transform: uppercase; font-size: 25px; line-height: 1.02; color: #fff; }
.rajola p { margin-top: 8px; font-size: 15.5px; line-height: 1.5; color: rgba(255, 255, 255, .88); }
.franja-peu { margin-top: 36px; }

/* ---------------------------------------------------------------- obres */
.obres .split { align-items: start; }
.clients { margin-top: 26px; border-top: 1px solid var(--ratlla); }
.clients li { display: flex; align-items: center; gap: 12px; min-height: 50px; border-bottom: 1px solid var(--ratlla); font-family: var(--f-titol); font-weight: 600; font-size: 19px; letter-spacing: .03em; text-transform: uppercase; color: var(--tinta); }
.clients li::before { content: ""; width: 8px; height: 8px; background: var(--verd-logo); flex: none; }
.obres .media img { aspect-ratio: 749 / 971; max-height: 620px; object-fit: cover; }
.obres .media { max-width: 480px; justify-self: end; width: 100%; }

/* ---------------------------------------------------------------- marques */
.marques .h2, .marques .lead { text-align: center; margin-left: auto; margin-right: auto; }
.marques-graella { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 40px; }
.marques-graella li { min-height: 104px; display: grid; place-items: center; background: #fff; border: 1px solid var(--ratlla); padding: 12px;
  font-family: var(--f-titol); font-weight: 600; font-size: 23px; letter-spacing: .03em; color: var(--tinta); text-align: center; }

/* ---------------------------------------------------------------- banda final */
.cta .contenidor { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.cta .h2 { color: #fff; }
.cta-text { margin-top: 14px; color: #c3cacd; font-size: 18px; }
.cta .accions { margin-top: 30px; }
.cta-dades { border-left: 1px solid var(--ratlla-fosca); padding-left: 40px; }
.cta-tels li a { display: flex; flex-direction: column; justify-content: center; min-height: 64px; border-bottom: 1px solid var(--ratlla-fosca); }
.cta-tels small { font-size: 14.5px; color: #b5bec2; }
.cta-tels strong { font-family: var(--f-titol); font-weight: 600; font-size: 28px; line-height: 1.1; color: #fff; font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.cta-tels a:hover strong { color: var(--verd-clar); }
.cta-horari { margin-top: 18px; font-size: 15.5px; color: #c3cacd; }
.cta-horari b { font-weight: 400; color: #fff; }

/* ---------------------------------------------------------------- peu */
.site-footer { background: var(--fosc); color: #b5bec2; border-top: 1px solid var(--ratlla-fosca); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 40px; padding-top: 72px; padding-bottom: 64px; }
.footer-logo { display: block; width: 210px; }
.footer-marca p { margin-top: 18px; font-size: 15px; line-height: 1.6; }
.footer-marca a:hover, .site-footer li a:hover { color: #fff; }
.site-footer h2 { font-family: var(--f-titol); font-weight: 600; font-size: 18px; letter-spacing: .05em; color: #fff; text-transform: uppercase; line-height: 1.1; }
.peu-dl { margin-top: 14px; font-size: 15px; }
.peu-dl dt { color: #fff; margin-top: 10px; }
.peu-dl dd a { display: inline-flex; align-items: center; min-height: 40px; }
.peu-posts { margin-top: 10px; }
.peu-posts a { display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 6px 0; }
.peu-posts img { width: 56px; height: 56px; object-fit: cover; flex: none; }
.peu-posts strong { display: block; font-family: var(--f-titol); font-weight: 600; font-size: 16px; line-height: 1.15; color: #e5e9eb; text-transform: uppercase; letter-spacing: .02em; }
.peu-posts small { font-size: 13.5px; color: #b5bec2; }
.xarxes { display: flex; gap: 4px; margin-top: 12px; }
.xarxes a { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--ratlla-fosca); color: #dfe4e6; }
.xarxes a:hover { border-color: var(--verd-clar); color: #fff; }
.xarxes svg { width: 17px; height: 17px; }
.footer-sota { border-top: 1px solid var(--ratlla-fosca); }
.footer-sota .contenidor { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; padding-top: 16px; padding-bottom: 16px; font-size: 14px; }
.footer-sota nav { display: flex; flex-wrap: wrap; gap: 0 20px; }
.footer-sota a { display: inline-flex; align-items: center; min-height: 44px; }
.footer-sota a:hover { color: #fff; }

/* barra fixa del mòbil */
.barra-mobil { display: none; }

/* ---------------------------------------------------------------- pàgines interiors */
.page-hero { position: relative; display: flex; align-items: flex-end; min-height: 340px; color: #fff; overflow: hidden; background: var(--fosc); }
.page-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(22, 27, 31, .92) 0%, rgba(22, 27, 31, .72) 55%, rgba(22, 27, 31, .5) 100%); }
.page-hero .contenidor { position: relative; z-index: 1; padding-top: 56px; padding-bottom: 52px; }
.molles { display: flex; flex-wrap: wrap; align-items: center; font-size: 15px; color: rgba(255, 255, 255, .82); }
.molles a { display: inline-flex; align-items: center; min-height: 44px; }
.molles a:hover { color: #fff; }
.molles span { color: var(--verd-clar); margin: 0 9px; }
.page-hero h1 { margin-top: 6px; max-width: 16em; font-family: var(--f-titol); font-weight: 600; text-transform: uppercase; font-size: clamp(38px, 4.8vw, 62px); line-height: 1; }
.page-hero .capcalera-text { margin-top: 14px; max-width: 40em; color: rgba(255, 255, 255, .88); font-size: 18px; }
.page-hero .meta { margin-top: 14px; color: rgba(255, 255, 255, .85); font-size: 15px; }
.page-hero .meta a { display: inline-flex; min-height: 44px; align-items: center; text-decoration: underline; text-underline-offset: 3px; }

.text-bloc .split { align-items: start; }
.text-bloc.invers .media { order: -1; }
.text-bloc .h2 { font-size: clamp(30px, 3vw, 40px); }
.text-bloc .cos { margin-top: 22px; }

/* fets (llista amb ratlles, com la del motlle) */
.fets { margin-top: 30px; border-top: 1px solid var(--ratlla); }
.fets > div { display: grid; grid-template-columns: 220px 1fr; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--ratlla); }
.fets dt { font-family: var(--f-titol); font-weight: 600; font-size: 21px; line-height: 1.1; text-transform: uppercase; color: var(--tinta); }
.fets dd { color: var(--text); font-size: 16.5px; }

/* materials */
.materials .split { align-items: start; }
.materials-fotos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 30px; }
.materials-fotos.n1 { grid-template-columns: 1fr; }
.materials-fotos.n2 { grid-template-columns: 1fr 1fr; }
.materials-fotos img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.materials-fotos.n1 img { aspect-ratio: 16 / 9; }

/* polítiques */
.politiques { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.politiques li { display: grid; grid-template-columns: 120px 1fr; gap: 24px; padding: 26px; background: #fff; border: 1px solid var(--ratlla); }
.politiques img { width: 120px; border: 1px solid var(--ratlla); }
.politiques h3 { font-family: var(--f-titol); font-weight: 600; text-transform: uppercase; font-size: 24px; line-height: 1.05; }
.politiques p { margin-top: 8px; color: var(--text); font-size: 16px; }

/* blog */
.xips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 36px; }
.xips a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid var(--ratlla); background: #fff; font-family: var(--f-titol); font-weight: 600; font-size: 16px; letter-spacing: .03em; text-transform: uppercase; color: var(--text); }
.xips a:hover { border-color: var(--tinta); color: var(--tinta); }
.xips a[aria-current] { background: var(--fosc); border-color: var(--fosc); color: #fff; }
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.post { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--ratlla); }
.post-foto { display: block; overflow: hidden; background: var(--fosc); }
.post-foto img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.post-foto span { display: flex; align-items: flex-end; aspect-ratio: 16 / 10; padding: 20px; font-family: var(--f-titol); font-weight: 600; font-size: 22px; text-transform: uppercase; color: #fff; border-bottom: 4px solid var(--verd-logo); }
.post-cos { display: flex; flex-direction: column; flex: 1; padding: 20px 24px 14px; }
.post .meta { font-size: 14.5px; color: var(--gris); }
.post .meta a { display: inline-flex; align-items: center; min-height: 44px; color: var(--verd); }
.post h3 { font-family: var(--f-titol); font-weight: 600; text-transform: uppercase; font-size: 23px; line-height: 1.05; }
.post h3 a:hover { color: var(--verd); }
.post p { margin-top: 10px; font-size: 16px; color: var(--text); }
.post .enllac-fletxa { margin-top: auto; padding-top: 10px; }
.titol-petit { font-family: var(--f-titol); font-weight: 600; text-transform: uppercase; font-size: 30px; line-height: 1.05; margin-bottom: 28px; }

/* article */
.article .prosa { margin-top: 0; }
.article-foto { margin-bottom: 36px; }
.article-foto img { width: 100%; max-height: 560px; object-fit: contain; background: var(--clar); }
.prosa { color: var(--text); }
.prosa > * + * { margin-top: 18px; }
.prosa h2 { font-family: var(--f-titol); font-weight: 600; text-transform: uppercase; font-size: 32px; line-height: 1.05; color: var(--tinta); margin-top: 40px; }
.prosa h3 { font-family: var(--f-titol); font-weight: 600; text-transform: uppercase; font-size: 24px; line-height: 1.1; color: var(--tinta); margin-top: 32px; }
.prosa strong { color: var(--tinta); }
.prosa ul { padding-left: 0; }
.prosa li { position: relative; padding-left: 22px; margin-top: 10px; }
.prosa li::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 8px; background: var(--verd-logo); }
.prosa a { color: var(--verd); text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.prosa blockquote { border-left: 4px solid var(--verd-logo); padding: 6px 0 6px 22px; font-size: 19px; color: var(--tinta); }
.prosa figure img { width: 100%; height: auto; }
.legal .pendent { background: #fff4c2; color: #3d3200; padding: 2px 6px; }
.legal h2 { font-size: 26px; }

/* contacte */
.contacte { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(36px, 6vw, 80px); align-items: start; }
.contacte-dades .h2 { font-size: clamp(30px, 3vw, 40px); }
.telefons { margin-top: 24px; border-top: 1px solid var(--ratlla); }
.telefons a { display: flex; align-items: center; gap: 16px; min-height: 72px; border-bottom: 1px solid var(--ratlla); }
.telefons svg { width: 22px; height: 22px; color: var(--verd); flex: none; }
.telefons small { display: block; font-size: 14.5px; color: var(--gris); }
.telefons strong { display: block; font-family: var(--f-titol); font-weight: 600; font-size: 27px; line-height: 1.1; color: var(--tinta); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.telefons a:hover strong { color: var(--verd); }
.horari-titol { margin-top: 32px; font-family: var(--f-titol); font-weight: 600; text-transform: uppercase; font-size: 22px; }
.horari { margin-top: 8px; color: var(--text); }
.horari dt { color: var(--tinta); margin-top: 8px; }
.formulari { background: #fff; border: 1px solid var(--ratlla); border-top: 4px solid var(--verd-logo); padding: clamp(24px, 3.4vw, 40px); }
.formulari .h2 { font-size: clamp(28px, 2.8vw, 36px); }
.camps { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; margin-top: 24px; }
.camps label { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 6px; font-size: 15px; color: var(--text); }
.camps label.mig { grid-column: auto; }
.camps input, .camps textarea { font: inherit; font-size: 17px; color: var(--tinta); border: 1px solid #c4cac8; border-radius: 0; padding: 11px 13px; min-height: 50px; background: #fff; width: 100%; }
.camps input:focus, .camps textarea:focus { outline: 2px solid var(--verd); outline-offset: 0; border-color: var(--verd); }
.accepto { display: flex; align-items: center; gap: 12px; margin-top: 18px; min-height: 44px; font-size: 15.5px; color: var(--text); }
.accepto input { width: 22px; height: 22px; accent-color: var(--verd); flex: none; }
.formulari .boto { margin-top: 18px; }
.nota { margin-top: 14px; font-size: 14.5px; color: var(--gris); }
.nota.avis { color: #6b3d00; background: #fff4c2; padding: 8px 12px; }
.llocs { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.lloc { background: #fff; border: 1px solid var(--ratlla); padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.lloc h3 { font-family: var(--f-titol); font-weight: 600; text-transform: uppercase; font-size: 26px; line-height: 1.05; }
.lloc p { color: var(--text); }
.lloc p a { display: inline-flex; align-items: center; min-height: 44px; color: var(--verd); }
.lloc .boto { align-self: flex-start; margin-top: 6px; }

.document { background: #fff; border: 1px solid var(--ratlla); padding: 14px; }
.enllac .lead { margin-top: 0; }
.enllac .lead + .lead { margin-top: 14px; }
.enllac .accions { margin-top: 26px; }

/* ---------------------------------------------------------------- mides */
@media (max-width: 1140px) {
  .burger { display: flex; }
  .header-cta { display: none; }
  .main-nav {
    position: fixed; top: 0; right: 0; z-index: 60; width: min(360px, calc(100% - 50px)); height: 100vh; height: 100dvh;
    background: #fff; padding: 20px 26px 40px; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 0;
    transform: translateX(100%); transition: transform .3s ease; overflow-y: auto; visibility: hidden;
  }
  .main-nav.oberta { transform: none; visibility: visible; }
  .menu-tanca { display: grid; place-items: center; align-self: flex-end; width: 48px; height: 48px; font-size: 30px; line-height: 1; }
  .main-nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .main-nav > ul > li > a { min-height: 60px; padding: 0; font-size: 24px; color: var(--tinta); border-bottom: 1px solid var(--ratlla); }
  .main-nav > ul > li > a[aria-current] { color: var(--verd); }
  .main-nav > ul > li > a[aria-current]::after, .te-sub > a::before { display: none; }
  .sub { position: static; visibility: visible; opacity: 1; border: 0; padding: 4px 0 10px 14px; min-width: 0; border-bottom: 1px solid var(--ratlla); }
  .sub a { padding: 4px 0; font-size: 16.5px; }
  .main-nav .boto { margin-top: 24px; }
  .targetes { grid-template-columns: 1fr 1fr; }
  .rajoles { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .split, .contacte, .cta .contenidor { grid-template-columns: 1fr; }
  .text-bloc.invers .media { order: 0; }
  .obres .media { justify-self: start; }
  .cta-dades { border-left: 0; padding-left: 0; border-top: 1px solid var(--ratlla-fosca); padding-top: 8px; }
  .footer-grid { grid-template-columns: 1fr 1fr; row-gap: 40px; padding-top: 56px; padding-bottom: 48px; }
  .marques-graella { grid-template-columns: repeat(2, 1fr); }
  .posts, .targetes.tres { grid-template-columns: 1fr 1fr; }
  .politiques, .llocs { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  body { font-size: 16.5px; padding-bottom: 68px; }
  .topbar-xarxes, .topbar-contacte .correu { display: none; }
  .site-header .contenidor { min-height: 76px; }
  .logo { width: 150px; }
  .hero { min-height: 0; }
  .hero .contenidor { padding-top: 48px; padding-bottom: 44px; }
  .hero h1 { font-size: 44px; }
  .hero .accions { flex-direction: column; align-items: stretch; }
  .targetes, .targetes.tres, .rajoles, .posts, .footer-grid, .marques-graella { grid-template-columns: 1fr; }
  .marques-graella { grid-template-columns: 1fr 1fr; }
  .marques-graella li { min-height: 76px; font-size: 20px; }
  .rajola { min-height: 260px; }
  .accions { flex-direction: column; align-items: stretch; }
  .fets > div { grid-template-columns: 1fr; gap: 6px; }
  .camps { grid-template-columns: 1fr; }
  .camps label.mig { grid-column: 1 / -1; }
  .politiques li { grid-template-columns: 84px 1fr; gap: 16px; padding: 18px; }
  .politiques img { width: 84px; }
  .page-hero { min-height: 240px; }
  .page-hero .contenidor { padding-top: 32px; padding-bottom: 34px; }
  .boto { white-space: normal; text-align: center; }
  .barra-mobil {
    display: grid; grid-template-columns: 1.2fr 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    background: var(--fosc); border-top: 1px solid var(--ratlla-fosca);
  }
  .barra-mobil a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 60px; padding: 0 8px; color: #fff;
    font-family: var(--f-titol); font-weight: 600; font-size: 17px; letter-spacing: .03em; text-transform: uppercase; border-left: 1px solid var(--ratlla-fosca); }
  .barra-mobil a:first-child { background: var(--verd); border-left: 0; }
  .barra-mobil svg { width: 18px; height: 18px; flex: none; }
}

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* el botó de dins del menú només surt al panell del mòbil */
.main-nav > .boto { display: none; }
@media (max-width: 1140px) { .main-nav > .boto { display: inline-flex; } }
.article-meta { margin-bottom: 18px; font-size: 15px; color: var(--gris); }
.article-meta a { display: inline-flex; align-items: center; min-height: 44px; color: var(--verd); }
.obres .placa { top: 0; bottom: auto; }
@media (max-width: 640px) {
  .barra-mobil { grid-template-columns: 1fr 1.2fr 1.25fr; }
  .barra-mobil a { font-size: 15.5px; gap: 6px; padding: 0 6px; white-space: nowrap; letter-spacing: .01em; }
  .barra-mobil svg { width: 16px; height: 16px; }
}
.topbar .contenidor, .topbar-contacte a { min-height: 44px; }
.peu-dl dd a { min-height: 44px; }
.targeta h3 a, .post h3 a { display: flex; align-items: center; min-height: 44px; }
.footer-marca p a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; }
.peu-mapa { color: #fff; }
.peu-mapa svg { width: 16px; height: 16px; color: var(--verd-clar); }
.molles a, .article-meta a, .post .meta a, .page-hero .meta a, .footer-sota a { min-width: 44px; justify-content: center; }

/* ---------------------------------------------------------------- ronda 2 (director d'art, 06/12) */
.footer-marca .xarxes a { display: grid; place-items: center; width: 44px; height: 44px; gap: 0; }
.visualment-amagat { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Soluciones: Calorifugado gran + les altres tres en fitxes de llista */
.solucions { display: grid; grid-template-columns: 1.15fr 1fr; gap: 40px; margin-top: 44px; align-items: start; }
.solucio-gran { background: var(--fosc); color: #fff; }
.solucio-gran-foto { display: block; overflow: hidden; }
.solucio-gran-foto img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.solucio-gran-cos { padding: 28px 30px 32px; border-top: 4px solid var(--verd-logo); }
.solucio-gran h3 { font-family: var(--f-titol); font-weight: 600; text-transform: uppercase; font-size: clamp(32px, 3vw, 42px); line-height: 1; }
.solucio-gran h3 a { display: inline-flex; min-height: 44px; align-items: center; }
.solucio-gran p { margin-top: 12px; color: #c9d0d3; font-size: 17px; max-width: 34em; }
.solucio-gran .boto { margin-top: 24px; }
.solucions-llista { border-top: 2px solid var(--tinta); }
.solucions-llista a { display: grid; grid-template-columns: 150px 1fr; gap: 22px; padding: 22px 0; border-bottom: 1px solid var(--ratlla); align-items: start; }
.solucions-llista img { width: 150px; height: 112px; object-fit: cover; }
.solucions-llista strong { display: block; font-family: var(--f-titol); font-weight: 600; font-size: 24px; line-height: 1.02; text-transform: uppercase; color: var(--tinta); }
.solucions-llista small { display: block; margin-top: 8px; font-size: 15.5px; line-height: 1.5; color: var(--text); }
.solucions-llista em { font-style: normal; min-height: 0; margin-top: 8px; }
.solucions-llista a:hover strong { color: var(--verd); }
@media (max-width: 900px) { .solucions { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .solucions-llista a { grid-template-columns: 96px 1fr; gap: 16px; }
  .solucions-llista img { width: 96px; height: 96px; }
  .solucions-llista strong { font-size: 21px; }
  .solucions-llista em { display: none; }
  /* telèfons i horari ja són al bloc de pressupost o de contacte just abans: el peu no els repeteix */
  body.te-telefons .peu-horari, body.te-telefons .peu-contacte { display: none; }
}
.footer-marca .peu-lloc { margin-top: 18px; }
.peu-lloc b { font-weight: 400; color: #fff; }
.footer-marca .peu-lloc + p { margin-top: 2px; }
