/* =========================================================
   Persianes Metàl·liques Barcelona — full d'estils
   Llenguatge visual "ARC I FERRO":
     sorra càlida + verd ampolla + terracota,
     titulars amb serif, arcs de mig punt i escates de reixa.
   Sense llibreries externes. Mòbil primer.
   ========================================================= */

/* ---------- 1. Variables ---------- */
:root {
  --sorra: #f7f3ec;
  --sorra-2: #efe7d9;
  --blanc: #fff;

  --verd-900: #0c332c;
  --verd-700: #12493e;
  --verd-500: #1c6a59;

  --terra: #b8461a;
  --terra-fosc: #9a3a14;
  --terra-clar: #f0d5c6;

  --tinta: #201f1c;
  --tinta-suau: #565a53;
  --vora: #e2d9c8;

  --ombra-1: 0 1px 2px rgba(32, 31, 28, .05), 0 4px 14px rgba(32, 31, 28, .05);
  --ombra-2: 0 10px 34px rgba(12, 51, 44, .14);
  --ombra-3: 0 22px 60px rgba(12, 51, 44, .2);

  --serif: Georgia, "Times New Roman", "Nimbus Roman", serif;
  --sans: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;

  --ample: 1180px;
  --radi: 16px;
  --radi-gran: 26px;
  --arc: 999px 999px 26px 26px;      /* la forma signatura: arc de mig punt */

  --transicio: .45s cubic-bezier(.22, .8, .28, 1);
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--tinta);
  background: var(--sorra);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, svg, video { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -.015em;
  color: var(--verd-900);
  margin: 0 0 .5em;
  text-wrap: balance;
}

h1 { font-size: clamp(1.95rem, 6.9vw, 3.9rem); }
h2 { font-size: clamp(1.65rem, 4.6vw, 2.65rem); }
h3 { font-size: clamp(1.18rem, 2.6vw, 1.42rem); }
h4 { font-size: 1.05rem; }

p { margin: 0 0 1.05em; }
p:last-child { margin-bottom: 0; }

a { color: var(--verd-700); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--terra); }

strong { color: var(--verd-900); }

:focus-visible {
  outline: 3px solid var(--terra);
  outline-offset: 3px;
  border-radius: 6px;
}

.contenidor { width: 100%; max-width: var(--ample); margin: 0 auto; padding: 0 20px; }

.salta-al-contingut {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--verd-900); color: #fff; padding: 12px 20px; border-radius: 0 0 12px 0;
}
.salta-al-contingut:focus { left: 0; color: #fff; }

.nomes-lectors {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* ---------- 3. Capçalera ---------- */
.capcalera {
  position: sticky; top: 0; z-index: 90;
  background: rgba(247, 243, 236, .88);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, box-shadow .3s ease, background .3s ease;
}
.capcalera.compacta {
  border-bottom-color: var(--vora);
  box-shadow: 0 6px 24px rgba(12, 51, 44, .07);
}
.capcalera__fila {
  display: flex; align-items: center; gap: 14px;
  min-height: 72px; padding-top: 10px; padding-bottom: 10px;
  transition: min-height .3s ease;
}
.capcalera.compacta .capcalera__fila { min-height: 62px; }

.marca { display: flex; align-items: center; gap: 11px; text-decoration: none; margin-right: auto; }
.marca__icona { width: 40px; height: 40px; flex: none; transition: transform var(--transicio); }
.marca:hover .marca__icona { transform: rotate(-6deg) scale(1.05); }
.marca__text { display: flex; flex-direction: column; line-height: 1.1; }
.marca__nom {
  font-family: var(--serif); font-weight: 700; font-size: 1.06rem;
  color: var(--verd-900); letter-spacing: -.02em;
}
.marca__lloc {
  font-size: .68rem; letter-spacing: .19em; text-transform: uppercase;
  color: var(--terra); font-weight: 700;
}

.menu { display: none; gap: 4px; }
.menu a {
  position: relative; padding: 9px 13px; border-radius: 999px;
  font-size: .95rem; font-weight: 600; color: var(--tinta); text-decoration: none;
  transition: color .25s ease, background .25s ease;
}
.menu a::after {
  content: ""; position: absolute; left: 50%; bottom: 3px;
  width: 0; height: 2px; background: var(--terra); border-radius: 2px;
  transform: translateX(-50%); transition: width var(--transicio);
}
.menu a:hover { color: var(--verd-900); background: rgba(28, 106, 89, .07); }
.menu a:hover::after, .menu a[aria-current="page"]::after { width: 20px; }
.menu a[aria-current="page"] { color: var(--verd-900); }

/* selector d'idioma */
.idiomes {
  display: flex; align-items: center; gap: 2px;
  background: var(--sorra-2); border: 1px solid var(--vora);
  border-radius: 999px; padding: 3px;
}
.idiomes a {
  display: block; padding: 5px 11px; border-radius: 999px;
  font-size: .78rem; font-weight: 700; letter-spacing: .06em;
  color: var(--tinta-suau); text-decoration: none;
  transition: background .25s ease, color .25s ease, transform .25s ease;
}
.idiomes a:hover { color: var(--verd-900); transform: translateY(-1px); }
.idiomes a[aria-current="true"] { background: var(--verd-900); color: #fff; }

.capcalera__tel {
  display: none; align-items: center; gap: 8px;
  padding: 11px 19px; border-radius: 999px;
  background: var(--terra); color: #fff !important; text-decoration: none;
  font-weight: 700; font-size: .95rem; white-space: nowrap;
  box-shadow: 0 6px 18px rgba(184, 70, 26, .28);
  transition: transform var(--transicio), box-shadow var(--transicio), background .25s ease;
}
.capcalera__tel:hover {
  background: var(--terra-fosc); transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(184, 70, 26, .34);
}
.capcalera__tel svg { width: 17px; height: 17px; flex: none; }

.hamburguesa {
  width: 46px; height: 46px; flex: none; display: grid; place-content: center; gap: 5px;
  background: var(--blanc); border: 1px solid var(--vora); border-radius: 14px;
  cursor: pointer; padding: 0;
}
.hamburguesa span {
  display: block; width: 20px; height: 2px; background: var(--verd-900); border-radius: 2px;
  transition: transform .35s ease, opacity .25s ease;
}
.hamburguesa[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburguesa[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburguesa[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.menu-mobil {
  display: grid; overflow: hidden;
  grid-template-rows: 0fr;
  background: var(--blanc); border-top: 1px solid transparent;
  transition: grid-template-rows var(--transicio), border-color .3s ease;
}
.menu-mobil.obert { grid-template-rows: 1fr; border-top-color: var(--vora); }
.menu-mobil__interior { min-height: 0; }
.menu-mobil a {
  display: block; padding: 15px 20px; border-bottom: 1px solid var(--sorra-2);
  font-weight: 600; color: var(--tinta); text-decoration: none;
  opacity: 0; transform: translateY(-8px);
  transition: opacity .3s ease, transform .3s ease, background .2s ease;
}
.menu-mobil.obert a { opacity: 1; transform: none; }
.menu-mobil.obert a:nth-child(1) { transition-delay: .04s; }
.menu-mobil.obert a:nth-child(2) { transition-delay: .08s; }
.menu-mobil.obert a:nth-child(3) { transition-delay: .12s; }
.menu-mobil.obert a:nth-child(4) { transition-delay: .16s; }
.menu-mobil.obert a:nth-child(5) { transition-delay: .2s; }
.menu-mobil a:hover { background: var(--sorra); }
.menu-mobil a[aria-current="page"] { color: var(--terra); }

/* ---------- 4. Botons ---------- */
.boto {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 15px 27px; border-radius: 999px; border: 1.5px solid transparent;
  font-family: var(--sans); font-size: 1rem; font-weight: 700; line-height: 1.2;
  text-decoration: none; cursor: pointer; text-align: center;
  transition: transform var(--transicio), box-shadow var(--transicio),
              background .25s ease, color .25s ease, border-color .25s ease;
}
.boto svg { width: 19px; height: 19px; flex: none; }
.boto--gran { padding: 17px 32px; font-size: 1.06rem; }
.boto:active { transform: translateY(1px) scale(.985); }

.boto--principal { background: var(--terra); color: #fff; box-shadow: 0 8px 22px rgba(184, 70, 26, .3); }
.boto--principal:hover {
  background: var(--terra-fosc); color: #fff;
  transform: translateY(-3px); box-shadow: 0 14px 32px rgba(184, 70, 26, .38);
}

.boto--verd { background: var(--verd-900); color: #fff; box-shadow: 0 8px 22px rgba(12, 51, 44, .26); }
.boto--verd:hover {
  background: var(--verd-700); color: #fff;
  transform: translateY(-3px); box-shadow: 0 14px 32px rgba(12, 51, 44, .32);
}

.boto--contorn { background: transparent; color: var(--verd-900); border-color: var(--verd-900); }
.boto--contorn:hover { background: var(--verd-900); color: #fff; transform: translateY(-3px); }

.boto--clar { background: var(--blanc); color: var(--verd-900); border-color: var(--vora); }
.boto--clar:hover { background: var(--blanc); color: var(--terra); transform: translateY(-3px); box-shadow: var(--ombra-2); }

.boto--wa { background: #1fa855; color: #fff; box-shadow: 0 8px 22px rgba(31, 168, 85, .28); }
.boto--wa:hover { background: #178944; color: #fff; transform: translateY(-3px); }

.botonera { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

/* fletxa que llisca dins l'enllaç de targeta */
.enllac-fletxa {
  display: inline-flex; align-items: center; gap: 7px;
  font-weight: 700; font-size: .95rem; color: var(--terra); text-decoration: none;
}
.enllac-fletxa svg { width: 17px; height: 17px; transition: transform var(--transicio); }
.enllac-fletxa:hover svg { transform: translateX(5px); }

/* ---------- 5. Seccions i rètols ---------- */
.seccio { padding: 66px 0; position: relative; }
.seccio--ajustada { padding: 46px 0; }

.seccio--blanca { background: var(--blanc); }
.seccio--sorra { background: var(--sorra-2); }
.seccio--verda { background: var(--verd-900); color: #e8efe9; }
.seccio--verda h1, .seccio--verda h2, .seccio--verda h3 { color: #fff; }
.seccio--verda a:not(.boto) { color: #f0d5c6; }
.seccio--verda strong { color: #fff; }
.seccio--verda .entradeta { color: #bcd0c7; }

.antetitol {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: .74rem; font-weight: 800; letter-spacing: .17em; text-transform: uppercase;
  color: var(--terra); margin-bottom: 14px;
}
.antetitol::before {
  content: ""; width: 22px; height: 22px; flex: none;
  border: 2px solid currentColor; border-bottom-color: transparent; border-right-color: transparent;
  border-radius: 999px 0 0 0; transform: rotate(45deg); margin-right: 2px;
}
.seccio--verda .antetitol { color: #e8a884; }

.centrat { text-align: center; max-width: 720px; margin: 0 auto 40px; }
.centrat .antetitol { justify-content: center; }

.entradeta { font-size: 1.09rem; color: var(--tinta-suau); }

/* separador d'escates: motiu tret de les reixes de ferro forjat */
.escates {
  height: 18px; width: 100%;
  background-repeat: repeat-x; background-position: center bottom; background-size: 34px 18px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='34' height='18' viewBox='0 0 34 18'%3E%3Cpath d='M0 18 A17 17 0 0 1 34 18 Z' fill='%23ffffff'/%3E%3C/svg%3E");
}
.escates--sorra { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='34' height='18' viewBox='0 0 34 18'%3E%3Cpath d='M0 18 A17 17 0 0 1 34 18 Z' fill='%23f7f3ec'/%3E%3C/svg%3E"); }
.escates--verd { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='34' height='18' viewBox='0 0 34 18'%3E%3Cpath d='M0 18 A17 17 0 0 1 34 18 Z' fill='%230c332c'/%3E%3C/svg%3E"); }

/* ---------- 6. Portada ---------- */
.portada { position: relative; padding: 32px 0 52px; overflow: hidden; }
.portada::before {
  content: ""; position: absolute; inset: auto -30% 30% 45%;
  height: 520px; border-radius: 999px;
  background: radial-gradient(closest-side, rgba(28, 106, 89, .13), transparent 72%);
  pointer-events: none;
}
.portada__graella { display: grid; gap: 34px; position: relative; }

.marca-lloc {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--blanc); border: 1px solid var(--vora); border-radius: 999px;
  padding: 7px 16px 7px 11px; font-size: .82rem; font-weight: 600; color: var(--verd-700);
  box-shadow: var(--ombra-1); margin-bottom: 16px;
}
.marca-lloc__punt {
  width: 9px; height: 9px; border-radius: 999px; background: var(--terra); flex: none;
  box-shadow: 0 0 0 0 rgba(184, 70, 26, .5); animation: batec 2.4s infinite;
}
@keyframes batec {
  0% { box-shadow: 0 0 0 0 rgba(184, 70, 26, .45); }
  70% { box-shadow: 0 0 0 11px rgba(184, 70, 26, 0); }
  100% { box-shadow: 0 0 0 0 rgba(184, 70, 26, 0); }
}

.portada h1 { margin-bottom: .38em; }
.portada h1 em { font-style: normal; color: var(--terra); }
.portada__text { font-size: clamp(1rem, 3.6vw, 1.12rem); color: var(--tinta-suau); max-width: 33em; }

.avals { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 30px; }
.avals span { display: inline-flex; align-items: center; gap: 8px; font-size: .9rem; font-weight: 600; color: var(--verd-700); }
.avals svg { width: 18px; height: 18px; flex: none; color: var(--terra); }

/* la imatge en arc: la forma que identifica la web */
.arc-foto { position: relative; }
.arc-foto__marc {
  position: relative; overflow: hidden;
  border-radius: var(--arc);
  border: 1px solid var(--vora);
  background: var(--sorra-2);
  box-shadow: var(--ombra-3);
}
.arc-foto__marc img { width: 100%; height: 100%; object-fit: cover; }
.arc-foto--portada .arc-foto__marc { aspect-ratio: 4 / 5; }

.arc-foto__segell {
  position: absolute; left: -10px; bottom: 24px; z-index: 2;
  background: var(--blanc); border: 1px solid var(--vora); border-radius: 18px;
  padding: 13px 18px; box-shadow: var(--ombra-2); max-width: 230px;
}
.arc-foto__segell strong { display: block; font-family: var(--serif); font-size: 1.15rem; color: var(--verd-900); }
.arc-foto__segell span { font-size: .82rem; color: var(--tinta-suau); line-height: 1.4; display: block; }

/* ---------- 7. Cinta de sectors ---------- */
.cinta { background: var(--verd-900); color: #cfe0d8; overflow: hidden; padding: 15px 0; }
.cinta__pista { display: flex; width: max-content; gap: 0; animation: rodar 34s linear infinite; }
.cinta:hover .cinta__pista { animation-play-state: paused; }
.cinta__grup { display: flex; align-items: center; gap: 34px; padding-right: 34px; }
.cinta__grup span {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: .88rem; font-weight: 600; letter-spacing: .04em; white-space: nowrap;
}
.cinta__grup span::before {
  content: ""; width: 7px; height: 7px; border-radius: 999px; background: #e8a884; flex: none;
}
@keyframes rodar { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- 8. Graelles i targetes ---------- */
.graella { display: grid; gap: 22px; }
.graella--2 { grid-template-columns: 1fr; }
.graella--3 { grid-template-columns: 1fr; }
.graella--4 { grid-template-columns: repeat(2, 1fr); }

.targeta {
  background: var(--blanc); border: 1px solid var(--vora); border-radius: var(--radi-gran);
  padding: 26px; box-shadow: var(--ombra-1);
  transition: transform var(--transicio), box-shadow var(--transicio), border-color .3s ease;
}
.targeta:hover { transform: translateY(-6px); box-shadow: var(--ombra-2); border-color: var(--terra-clar); }
.targeta h3 { margin-bottom: .45em; }
.targeta p { color: var(--tinta-suau); font-size: .97rem; }

/* targeta de servei, amb foto en arc a dalt */
.servei { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.servei__foto { position: relative; overflow: hidden; aspect-ratio: 16 / 11; background: var(--sorra-2); }
.servei__foto img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1s cubic-bezier(.22, .8, .28, 1);
}
.servei:hover .servei__foto img { transform: scale(1.07); }
.servei__foto::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 20px;
  background: var(--blanc);
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='34' height='20' viewBox='0 0 34 20'%3E%3Cpath d='M0 20 A17 17 0 0 1 34 20 Z' fill='%23000'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='34' height='20' viewBox='0 0 34 20'%3E%3Cpath d='M0 20 A17 17 0 0 1 34 20 Z' fill='%23000'/%3E%3C/svg%3E");
  -webkit-mask-size: 34px 20px; mask-size: 34px 20px;
  -webkit-mask-repeat: repeat-x; mask-repeat: repeat-x;
}
.servei__cos { padding: 22px 26px 26px; display: flex; flex-direction: column; flex: 1; }
.servei__cos p { flex: 1; }
.servei__cos .enllac-fletxa { margin-top: 16px; }
.servei__icona {
  width: 44px; height: 44px; border-radius: 14px; display: grid; place-content: center;
  background: var(--sorra-2); color: var(--verd-700); margin-bottom: 14px;
  transition: background .3s ease, color .3s ease, transform var(--transicio);
}
.servei__icona svg { width: 23px; height: 23px; }
.servei:hover .servei__icona { background: var(--verd-900); color: #fff; transform: rotate(-5deg); }

/* ---------- 9. Llistes ---------- */
.llista { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 13px; }
.llista li { position: relative; padding-left: 34px; }
.llista li::before {
  content: ""; position: absolute; left: 0; top: 5px;
  width: 20px; height: 20px; border-radius: 999px;
  background: var(--terra-clar);
}
.llista li::after {
  content: ""; position: absolute; left: 6px; top: 11px;
  width: 8px; height: 4px; border-left: 2px solid var(--terra); border-bottom: 2px solid var(--terra);
  transform: rotate(-45deg);
}
.seccio--verda .llista li::before { background: rgba(232, 168, 132, .25); }
.seccio--verda .llista li::after { border-color: #e8a884; }

.etiquetes { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 22px; }
.etiquetes span, .etiquetes a {
  display: inline-block; padding: 8px 15px; border-radius: 999px;
  background: var(--blanc); border: 1px solid var(--vora);
  font-size: .88rem; font-weight: 600; color: var(--verd-700); text-decoration: none;
  transition: transform var(--transicio), background .25s ease, color .25s ease, border-color .25s ease;
}
.etiquetes span:hover, .etiquetes a:hover {
  transform: translateY(-3px); background: var(--verd-900); color: #fff; border-color: var(--verd-900);
}
.seccio--verda .etiquetes span { background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .16); color: #e8efe9; }
.seccio--verda .etiquetes span:hover { background: #fff; color: var(--verd-900); }

/* zones de servei */
.zona h3 { font-size: 1.15rem; margin-bottom: .35em; }
.zona .etiquetes { margin-top: 14px; }
.zona .etiquetes span { font-size: .84rem; padding: 6px 13px; }
.nota-zones {
  max-width: 640px; margin: 30px auto 0; text-align: center;
  font-size: .96rem; color: var(--tinta-suau);
  background: var(--blanc); border: 1px dashed var(--vora); border-radius: var(--radi);
  padding: 16px 20px;
}
.seccio--verda .nota-zones { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .2); color: #cfe0d8; }

/* ---------- 10. Passos ---------- */
.passos { display: grid; gap: 8px; counter-reset: pas; margin-top: 10px; }
.pas {
  display: grid; grid-template-columns: 52px 1fr; gap: 18px; align-items: start;
  padding: 20px 0; border-bottom: 1px solid var(--vora);
}
.pas:last-child { border-bottom: 0; }
.pas__num {
  counter-increment: pas; width: 52px; height: 52px; flex: none;
  display: grid; place-content: center;
  border: 1.5px solid var(--terra-clar); border-radius: 999px 999px 14px 14px;
  font-family: var(--serif); font-size: 1.3rem; font-weight: 700; color: var(--terra);
  background: var(--blanc);
  transition: background .3s ease, color .3s ease, transform var(--transicio);
}
.pas__num::before { content: counter(pas, decimal-leading-zero); }
.pas:hover .pas__num { background: var(--terra); color: #fff; transform: translateY(-3px); }
.pas h3 { font-size: 1.13rem; margin-bottom: .3em; }
.pas p { color: var(--tinta-suau); font-size: .97rem; margin: 0; }

/* sobre fons verd el text ha de ser clar, si no no es llegeix */
.seccio--verda .pas { border-bottom-color: rgba(255, 255, 255, .14); }
.seccio--verda .pas p { color: #c3d6cd; }
.seccio--verda .figura figcaption { color: #9db6ab; }
.seccio--verda .figura__marc { border-color: rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .05); }
.seccio--verda p { color: #cfe0d8; }
.seccio--verda .llista li { color: #cfe0d8; }

/* ---------- 11. Xifres ---------- */
.xifres { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.xifra {
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 999px 999px 20px 20px; padding: 26px 16px; text-align: center;
  transition: transform var(--transicio), background .3s ease;
}
.xifra:hover { transform: translateY(-5px); background: rgba(255, 255, 255, .1); }
.xifra__num { font-family: var(--serif); font-size: 2.2rem; font-weight: 700; color: #fff; line-height: 1; }
.xifra__txt { font-size: .84rem; color: #bcd0c7; margin-top: 8px; display: block; }

/* ---------- 12. Desplegables ---------- */
.desplegables { display: grid; gap: 12px; max-width: 820px; margin: 0 auto; }
.desplegable {
  background: var(--blanc); border: 1px solid var(--vora); border-radius: var(--radi);
  overflow: hidden; transition: border-color .3s ease, box-shadow .3s ease;
}
.desplegable:has(.desplegable__boto[aria-expanded="true"]) { border-color: var(--terra-clar); box-shadow: var(--ombra-1); }
.desplegable__titol { margin: 0; }
.desplegable__boto {
  width: 100%; display: flex; align-items: center; gap: 14px; text-align: left;
  background: none; border: 0; cursor: pointer;
  padding: 18px 20px; font-family: var(--serif); font-size: 1.05rem; font-weight: 700;
  color: var(--verd-900); line-height: 1.35;
  transition: background .25s ease;
}
.desplegable__boto:hover { background: var(--sorra); }
.desplegable__boto span:first-child { flex: 1; }
.desplegable__fletxa {
  width: 26px; height: 26px; flex: none; border-radius: 999px;
  background: var(--sorra-2); position: relative;
  transition: transform var(--transicio), background .3s ease;
}
.desplegable__fletxa::before, .desplegable__fletxa::after {
  content: ""; position: absolute; top: 50%; left: 50%; background: var(--verd-900);
  transform: translate(-50%, -50%); border-radius: 2px; transition: opacity .3s ease;
}
.desplegable__fletxa::before { width: 11px; height: 2px; }
.desplegable__fletxa::after { width: 2px; height: 11px; }
.desplegable__boto[aria-expanded="true"] .desplegable__fletxa { background: var(--terra); transform: rotate(180deg); }
.desplegable__boto[aria-expanded="true"] .desplegable__fletxa::before { background: #fff; }
.desplegable__boto[aria-expanded="true"] .desplegable__fletxa::after { opacity: 0; }

.desplegable__panell { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--transicio); }
.desplegable__panell.obert { grid-template-rows: 1fr; }
.desplegable__interior { min-height: 0; overflow: hidden; }
.desplegable__interior > div { padding: 0 20px 20px; color: var(--tinta-suau); }

/* ---------- 13. Figures ---------- */
.figura { margin: 0; }
.figura__marc {
  overflow: hidden; border-radius: var(--radi-gran); border: 1px solid var(--vora);
  background: var(--sorra-2); box-shadow: var(--ombra-1);
}
.figura__marc img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.figura--arc .figura__marc { border-radius: var(--arc); }
.figura--arc .figura__marc img { aspect-ratio: 3 / 4; }
.figura figcaption { font-size: .87rem; color: var(--tinta-suau); margin-top: 11px; padding: 0 4px; }

.galeria { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.galeria .figura__marc img { aspect-ratio: 1 / 1; }

/* ---------- 14. Avaries (llista amb símptoma i solució) ---------- */
.avaries {
  display: grid; gap: 18px;
  /* el min() evita que es desbordi en mòbils molt estrets (320 px) */
  grid-template-columns: repeat(auto-fit, minmax(min(310px, 100%), 1fr));
}
.avaria {
  position: relative; overflow: hidden;
  background: var(--blanc); border: 1px solid var(--vora);
  border-radius: var(--radi-gran); padding: 26px 26px 24px;
  transition: transform var(--transicio), box-shadow var(--transicio), border-color var(--transicio);
}
/* filet de color a dalt: creix en passar-hi per sobre */
.avaria::before {
  content: ""; position: absolute; inset: 0 auto auto 0;
  width: 100%; height: 3px; background: var(--grau);
  transform: scaleX(.22); transform-origin: left;
  transition: transform var(--transicio);
}
.avaria:hover, .avaria:focus-within {
  transform: translateY(-6px); box-shadow: var(--ombra-2); border-color: transparent;
}
.avaria:hover::before, .avaria:focus-within::before { transform: scaleX(1); }

.avaria__cap { display: flex; align-items: center; gap: 13px; margin-bottom: 15px; }
/* la icona va dins d'un arc de mig punt, la forma signatura de la web */
.avaria__icona {
  flex: none; width: 46px; height: 46px; display: grid; place-items: center;
  border-radius: 999px 999px 12px 12px;
  background: var(--grau-fons); color: var(--grau);
  transition: background var(--transicio), color var(--transicio), transform var(--transicio);
}
.avaria__icona svg { width: 23px; height: 23px; }
.avaria:hover .avaria__icona { background: var(--grau); color: var(--blanc); transform: rotate(-4deg); }

.avaria__marca {
  font-size: .68rem; font-weight: 800; letter-spacing: .13em;
  text-transform: uppercase; color: var(--grau);
  padding: 5px 11px; border-radius: 999px;
  background: var(--grau-fons); border: 1px solid var(--grau-vora);
}
.avaria h3 { font-size: 1.12rem; margin-bottom: .45em; line-height: 1.28; }
.avaria p { margin: 0; color: var(--tinta-suau); font-size: .95rem; line-height: 1.62; }

/* els tres graus de gravetat, perquè es distingeixin d'un cop d'ull */
.avaria--urgent    { --grau: var(--terra);   --grau-fons: #fbeade; --grau-vora: #f2d3bf; }
.avaria--revisable { --grau: #a8781c;        --grau-fons: #f9f0dc; --grau-vora: #eddcb8; }
.avaria--preventiu { --grau: var(--verd-500); --grau-fons: #e4f0eb; --grau-vora: #c6ded4; }

@media (max-width: 560px) {
  .avaria { padding: 22px 20px 20px; border-radius: var(--radi); }
  .avaria__icona { width: 42px; height: 42px; }
  .avaria::before { transform: scaleX(1); }
}
@media (prefers-reduced-motion: reduce) {
  .avaria, .avaria::before, .avaria__icona { transition: none; }
  .avaria:hover { transform: none; }
  .avaria:hover .avaria__icona { transform: none; }
}

/* ---------- 15. Formulari ---------- */
.formulari {
  background: var(--blanc); border: 1px solid var(--vora); border-radius: var(--radi-gran);
  padding: 28px 24px; box-shadow: var(--ombra-1);
}
.camp { margin-bottom: 17px; }
.camp label { display: block; font-weight: 700; font-size: .92rem; margin-bottom: 7px; color: var(--verd-900); }
.camp input, .camp select, .camp textarea {
  width: 100%; padding: 13px 15px; font: inherit; font-size: 1rem; color: var(--tinta);
  background: var(--sorra); border: 1.5px solid var(--vora); border-radius: 13px;
  transition: border-color .25s ease, box-shadow .25s ease, background .25s ease;
}
.camp textarea { min-height: 118px; resize: vertical; }
.camp input:focus, .camp select:focus, .camp textarea:focus {
  outline: 0; background: var(--blanc);
  border-color: var(--verd-500); box-shadow: 0 0 0 4px rgba(28, 106, 89, .13);
}
.camp__ajuda { font-size: .82rem; color: var(--tinta-suau); margin-top: 6px; }
.camp--consentiment { display: flex; gap: 11px; align-items: flex-start; font-size: .88rem; color: var(--tinta-suau); }
.camp--consentiment input { width: 20px; height: 20px; flex: none; margin-top: 2px; accent-color: var(--terra); }
.camp--consentiment label { font-weight: 400; font-size: .88rem; color: var(--tinta-suau); margin: 0; }
.mel { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }

.avis-enviament {
  margin-top: 16px; padding: 14px 17px; border-radius: 13px; font-size: .94rem; font-weight: 600;
  animation: entra-avis .4s ease both;
}
@keyframes entra-avis { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.avis-enviament--ok { background: #e4f3e9; color: #10633a; border: 1px solid #b9dfc8; }
.avis-enviament--error { background: #fbe9e4; color: #8f2f10; border: 1px solid #f1c8bb; }

/* ---------- 16. Caixa de contacte ---------- */
.contacte-dades { display: grid; gap: 12px; }
.contacte-item {
  display: flex; gap: 15px; align-items: flex-start;
  background: var(--blanc); border: 1px solid var(--vora); border-radius: var(--radi);
  padding: 18px 20px; text-decoration: none; color: inherit;
  transition: transform var(--transicio), box-shadow var(--transicio), border-color .3s ease;
}
.contacte-item:hover { transform: translateY(-4px); box-shadow: var(--ombra-2); border-color: var(--terra-clar); color: inherit; }
.contacte-item__icona {
  width: 44px; height: 44px; flex: none; border-radius: 999px 999px 13px 13px;
  display: grid; place-content: center; background: var(--sorra-2); color: var(--verd-700);
}
.contacte-item__icona svg { width: 21px; height: 21px; }
.contacte-item strong { display: block; font-family: var(--serif); font-size: 1.14rem; color: var(--verd-900); }
.contacte-item span { font-size: .87rem; color: var(--tinta-suau); }

/* ---------- 17. Crida final ---------- */
.crida { background: var(--verd-900); color: #e8efe9; padding: 62px 0; position: relative; overflow: hidden; }
.crida::before {
  content: ""; position: absolute; width: 460px; height: 460px; border-radius: 999px;
  border: 1px solid rgba(232, 168, 132, .22); top: -190px; right: -120px;
}
.crida::after {
  content: ""; position: absolute; width: 300px; height: 300px; border-radius: 999px;
  border: 1px solid rgba(232, 168, 132, .14); bottom: -160px; left: -90px;
}
.crida__contingut { position: relative; text-align: center; max-width: 660px; margin: 0 auto; }
.crida h2 { color: #fff; }
.crida p { color: #bcd0c7; font-size: 1.08rem; }
.crida .botonera { justify-content: center; }

/* ---------- 18. Peu ---------- */
.peu { background: var(--verd-900); color: #a9c2b8; padding: 52px 0 108px; border-top: 1px solid rgba(255, 255, 255, .08); }
.peu__graella { display: grid; gap: 32px; }
.peu h4 { color: #fff; font-family: var(--sans); font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 15px; }
.peu ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.peu a { color: #a9c2b8; text-decoration: none; transition: color .25s ease, padding-left .25s ease; }
.peu a:hover { color: #fff; padding-left: 4px; }
.peu .marca__nom { color: #fff; }
.peu .marca__lloc { color: #e8a884; }
.peu__empresa { font-size: .9rem; line-height: 1.7; }
.peu__legal {
  margin-top: 36px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .1);
  display: flex; flex-wrap: wrap; gap: 10px 22px; justify-content: space-between;
  font-size: .83rem; color: #8aa79c;
}

/* ---------- 19. Barra mòbil fixa ---------- */
.barra-mobil {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 95;
  display: grid; grid-template-columns: repeat(3, 1fr);
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--vora);
  box-shadow: 0 -6px 24px rgba(12, 51, 44, .09);
  padding-bottom: env(safe-area-inset-bottom);
}
.barra-mobil a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  padding: 10px 4px; font-size: .72rem; font-weight: 700; color: var(--verd-900); text-decoration: none;
  transition: background .2s ease, color .2s ease;
}
.barra-mobil a svg { width: 21px; height: 21px; }
.barra-mobil a:active { background: var(--sorra-2); }
.barra-mobil .bm-tel { color: var(--terra); }
.barra-mobil .bm-wa { color: #1fa855; }

.puja-amunt {
  position: fixed; right: 16px; bottom: 84px; z-index: 94;
  width: 46px; height: 46px; border-radius: 999px; border: 1px solid var(--vora);
  background: var(--blanc); color: var(--verd-900); cursor: pointer;
  display: grid; place-content: center; box-shadow: var(--ombra-2);
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .3s ease, transform .3s ease, visibility .3s;
}
.puja-amunt.visible { opacity: 1; visibility: visible; transform: none; }
.puja-amunt svg { width: 21px; height: 21px; }
.puja-amunt:hover { color: var(--terra); }

/* ---------- 20. Pàgines legals i 404 ---------- */
.text-llarg { max-width: 780px; }
.text-llarg h2 { font-size: clamp(1.35rem, 3.4vw, 1.75rem); margin-top: 1.8em; }
.text-llarg h2:first-of-type { margin-top: 0; }
.text-llarg ul { padding-left: 22px; }
.text-llarg li { margin-bottom: 8px; }
.text-llarg table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: .93rem; }
.text-llarg th, .text-llarg td { border: 1px solid var(--vora); padding: 10px 12px; text-align: left; vertical-align: top; }
.text-llarg th { background: var(--sorra-2); font-weight: 700; color: var(--verd-900); }

.error-404 { text-align: center; padding: 80px 0; }
.error-404__num {
  font-family: var(--serif); font-size: clamp(5rem, 22vw, 10rem); line-height: .9;
  color: var(--verd-900); opacity: .12; margin-bottom: -.15em;
}

/* ---------- 21. Animacions de revelat ---------- */
.revela {
  opacity: 0; transform: translateY(22px);
  transition: opacity .7s cubic-bezier(.22, .8, .28, 1), transform .7s cubic-bezier(.22, .8, .28, 1);
  transition-delay: var(--retard, 0s);
  will-change: opacity, transform;
}
.revela.vista { opacity: 1; transform: none; }

/* entrada de la portada, sense saltar la maquetació */
@keyframes puja-suau { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes obre-arc { from { opacity: 0; transform: translateY(30px) scale(.97); } to { opacity: 1; transform: none; } }
.entra-1 { animation: puja-suau .8s cubic-bezier(.22, .8, .28, 1) .05s both; }
.entra-2 { animation: puja-suau .8s cubic-bezier(.22, .8, .28, 1) .16s both; }
.entra-3 { animation: puja-suau .8s cubic-bezier(.22, .8, .28, 1) .27s both; }
.entra-4 { animation: puja-suau .8s cubic-bezier(.22, .8, .28, 1) .38s both; }
.entra-arc { animation: obre-arc 1s cubic-bezier(.22, .8, .28, 1) .2s both; }

/* ---------- 22. Pantalles grans ---------- */
@media (min-width: 620px) {
  .graella--2 { grid-template-columns: repeat(2, 1fr); }
  .xifres { gap: 16px; }
  .formulari { padding: 34px 32px; }
  .galeria { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 860px) {
  body { font-size: 17.5px; }
  .seccio { padding: 88px 0; }
  .seccio--ajustada { padding: 58px 0; }
  .menu { display: flex; }
  .hamburguesa { display: none; }
  .menu-mobil { display: none; }
  .capcalera__tel { display: inline-flex; }
  .graella--3 { grid-template-columns: repeat(3, 1fr); }
  .graella--4 { grid-template-columns: repeat(4, 1fr); }
  .portada { padding: 62px 0 84px; }
  .portada__graella { grid-template-columns: 1.05fr .95fr; align-items: center; gap: 50px; }
  .peu__graella { grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
  .peu { padding-bottom: 52px; }
  .barra-mobil { display: none; }
  .puja-amunt { bottom: 24px; right: 24px; }
  .avaries { grid-template-columns: repeat(2, 1fr); }
  .contacte-dades { grid-template-columns: repeat(2, 1fr); }
  .desplegable__boto { font-size: 1.1rem; padding: 20px 24px; }
  .desplegable__interior > div { padding: 0 24px 22px; }
}

@media (min-width: 1040px) {
  .arc-foto__segell { left: -34px; }
}

/* ---------- 23. Qui no vol moviment ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .revela { opacity: 1; transform: none; }
  .cinta__pista { animation: none; }
}

/* ---------- 24. Impressió ---------- */
@media print {
  .capcalera, .barra-mobil, .puja-amunt, .cinta, .crida, .menu-mobil { display: none !important; }
  body { background: #fff; font-size: 12pt; }
  .revela { opacity: 1; transform: none; }
}
