/* ==========================================================================
   Mobilitat Internacional · Sant Just Desvern — fulla d'estil v1.2.1
   Índex: 1 Variables · 2 Base · 3 Utilitats · 4 Capçalera · 5 Components
          6 Portada · 7 Què fem · 8 Projectes · 9 Blog · 10 Contacte · 11 Peu
          12 Moviment i impressió
   ========================================================================== */

/* 1. VARIABLES ----------------------------------------------------------- */
:root {
  --teal: #00a89e;          /* verd del logotip (decoratiu) */
  --teal-d: #0b6f68;        /* verd fosc: botons i text (contrast AA amb blanc) */
  --teal-dd: #08524d;
  --teal-l: #7ee3da;        /* verd clar sobre fons foscos */
  --ink: #27302f;
  --muted: #4f5e5c;
  --soft: #eef6f5;
  --line: #d9e6e4;
  --coral: #e5735c;
  --white: #fff;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(11, 60, 56, .12);
  --f-head: "Raleway", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-body: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1200px;
}

/* 2. BASE ---------------------------------------------------------------- */
@font-face { font-family: Raleway; font-weight: 500; font-display: swap; src: url(../fonts/raleway-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: Raleway; font-weight: 600; font-display: swap; src: url(../fonts/raleway-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: Raleway; font-weight: 700; font-display: swap; src: url(../fonts/raleway-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: Raleway; font-weight: 800; font-display: swap; src: url(../fonts/raleway-latin-800-normal.woff2) format("woff2"); }
@font-face { font-family: Montserrat; font-weight: 400; font-display: swap; src: url(../fonts/montserrat-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: Montserrat; font-weight: 500; font-display: swap; src: url(../fonts/montserrat-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: Montserrat; font-weight: 600; font-display: swap; src: url(../fonts/montserrat-latin-600-normal.woff2) format("woff2"); }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body { margin: 0; font: 400 1rem/1.7 var(--f-body); color: var(--ink); background: var(--white); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-d); text-underline-offset: .2em; }
a:hover { color: var(--teal-dd); }
h1, h2, h3, h4 { font-family: var(--f-head); line-height: 1.15; margin: 0 0 .6em; font-weight: 800; letter-spacing: .01em; }
p { margin: 0 0 1.1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
address { font-style: normal; }
:focus-visible { outline: 3px solid var(--teal-d); outline-offset: 3px; border-radius: 4px; }
.band :focus-visible, .footer :focus-visible, .pagehead :focus-visible, .topbar :focus-visible { outline-color: #fff; }
main:focus { outline: none; }
::selection { background: var(--teal-l); color: #04302d; }

/* 3. UTILITATS ----------------------------------------------------------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(1rem, 4vw, 2rem); }
.narrow { max-width: 860px; }
.center { text-align: center; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; margin: -1px; }
.skip-link { position: absolute; left: .5rem; top: -4rem; z-index: 100; background: var(--teal-d); color: #fff; padding: .7rem 1.1rem; border-radius: 8px; font-weight: 600; transition: top .2s; }
.skip-link:focus { top: .5rem; color: #fff; }
.ico { width: 1.15em; height: 1.15em; fill: currentColor; flex: none; vertical-align: -.2em; }
.flip { transform: scaleX(-1); }
[hidden] { display: none !important; }

/* 4. CAPÇALERA ----------------------------------------------------------- */
.topbar { background: #0b3d3a; color: #d6ebe9; font-size: .8rem; }
.topbar__in { display: flex; align-items: center; gap: 1.2rem; min-height: 40px; flex-wrap: wrap; }
.topbar a { color: #fff; text-decoration: none; display: inline-flex; align-items: center; gap: .4rem; }
.topbar a:hover { text-decoration: underline; }
.topbar__addr { margin: 0 auto 0 0; display: flex; align-items: center; gap: .4rem; }
.topbar__contact { display: flex; gap: 1.2rem; flex-wrap: wrap; }
.social { display: flex; gap: .35rem; }
.social a { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; }
.social .ico { width: 18px; height: 18px; }
.social--top a { color: #fff; }
.social--top a:hover { background: rgba(255, 255, 255, .15); }

.header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .96); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); }
.header__in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 76px; }
.brand { display: flex; align-items: center; gap: .9rem; text-decoration: none; }
.brand img { height: 38px; width: auto; }
.brand__sub { font: 700 .68rem/1.2 var(--f-head); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); border-left: 2px solid var(--line); padding-left: .9rem; max-width: 12rem; }
.nav ul { display: flex; gap: .3rem; }
.nav a { display: block; padding: .6rem 1rem; font: 700 .86rem var(--f-head); letter-spacing: .08em; text-transform: uppercase; color: var(--ink); text-decoration: none; border-radius: 999px; position: relative; }
.nav a:hover { color: var(--teal-d); background: var(--soft); }
.nav a[aria-current="page"] { color: var(--teal-d); }
.nav a[aria-current="page"]::after { content: ""; position: absolute; left: 1rem; right: 1rem; bottom: .25rem; height: 3px; border-radius: 3px; background: var(--teal); }
.nav-toggle { display: none; align-items: center; gap: .6rem; background: var(--teal-d); color: #fff; border: 0; border-radius: 999px; padding: .6rem 1.1rem; font: 700 .85rem var(--f-head); letter-spacing: .08em; text-transform: uppercase; cursor: pointer; }
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .25s; }
.nav-toggle__bars { position: relative; }
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -6px; } .nav-toggle__bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

/* 5. COMPONENTS ---------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; gap: .6rem; background: var(--teal-d); color: #fff; font: 700 .92rem var(--f-head); letter-spacing: .08em; text-transform: uppercase; text-decoration: none; padding: .95rem 1.6rem; border-radius: 999px; border: 2px solid var(--teal-d); cursor: pointer; transition: background .2s, transform .2s, box-shadow .2s; }
.btn:hover { background: var(--teal-dd); border-color: var(--teal-dd); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow); }
.btn__ico { transition: transform .2s; } .btn:hover .btn__ico { transform: translateX(4px); }
.btn--light { background: #fff; color: var(--teal-d); border-color: #fff; }
.btn--light:hover { background: var(--teal-l); border-color: var(--teal-l); color: #04302d; }
.btn--ghost { background: transparent; color: var(--teal-d); }
.btn--ghost:hover { background: var(--teal-d); color: #fff; }
.btn--ig { background: #fff; color: var(--teal-d); }
.btn--ig:hover { background: var(--teal-d); color: #fff; }
.more { display: inline-flex; align-items: center; gap: .5rem; font: 700 .85rem var(--f-head); letter-spacing: .08em; text-transform: uppercase; text-decoration: none; }
.more:hover .ico:not(.flip) { transform: translateX(4px); } .more .ico { transition: transform .2s; }
.eyebrow { display: inline-flex; align-items: center; gap: .7rem; font: 700 .8rem var(--f-head); letter-spacing: .22em; text-transform: uppercase; color: var(--teal-d); margin: 0 0 .9rem; }
.eyebrow::before { content: ""; width: 34px; height: 3px; border-radius: 3px; background: var(--teal); }
.eyebrow--light { color: var(--teal-l); } .eyebrow--light::before { background: var(--teal-l); }
.lead { font-size: 1.1rem; color: var(--muted); }
.lead--light { color: #e4f2f0; }

.section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.section--soft { background: var(--soft); }
.section__head { display: flex; align-items: end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.8rem; }
.section__head .section__title { margin: 0; }
.section__title { font-size: clamp(1.6rem, 3.2vw, 2.3rem); text-transform: uppercase; color: var(--ink); }
.section__title--light { color: #fff; }
.band { position: relative; color: #fff; padding-block: clamp(3rem, 7vw, 5.5rem); background-size: cover; background-position: center; background-color: #0b3d3a; isolation: isolate; }
.band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(120deg, rgba(5, 40, 38, .9), rgba(11, 90, 84, .74)); }

.pagehead { background: linear-gradient(120deg, #08524d, #0b8c83); color: #fff; padding-block: clamp(2.4rem, 6vw, 4.2rem); position: relative; overflow: hidden; }
.pagehead::after { content: ""; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px; border-radius: 50%; background: rgba(255, 255, 255, .07); }
.pagehead h1 { font-size: clamp(2rem, 5vw, 3.2rem); text-transform: uppercase; margin: 0; color: #fff; }
.pagehead .eyebrow { color: var(--teal-l); } .pagehead .eyebrow::before { background: var(--teal-l); }
.pagehead__sub { margin: .7rem 0 0; font-size: 1.1rem; color: #dff3f1; }
.crumbs { font-size: .85rem; margin-bottom: .8rem; color: #cfeae7; }
.crumbs a { color: #fff; }

/* 6. PORTADA ------------------------------------------------------------- */
.hero { background: linear-gradient(180deg, #f2f9f8 0%, #fff 100%); position: relative; overflow: hidden; padding-block: clamp(2.5rem, 6vw, 5rem); }
.hero::before { content: ""; position: absolute; inset: auto -40px -30px auto; width: min(520px, 70%); aspect-ratio: 920 / 595; background: url(../media/senglar.webp) no-repeat right bottom / contain; opacity: .55; mix-blend-mode: multiply; pointer-events: none; }
.hero__in { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; position: relative; }
.hero__title { font-size: clamp(2.3rem, 5.2vw, 3.8rem); text-transform: uppercase; margin: 0 0 1.2rem; display: flex; flex-direction: column; gap: .1em; }
.hero__kicker { display: flex; align-items: center; gap: .8rem; font-size: .5em; font-weight: 700; color: var(--teal-d); letter-spacing: .12em; }
.hero__kicker::after { content: ""; width: 43px; height: 3px; background: var(--line); }
.rotator { display: inline-grid; color: var(--ink); }
.rotator__word { grid-area: 1 / 1; opacity: 0; visibility: hidden; transform: translateY(.35em); transition: opacity .5s, transform .5s, visibility .5s; }
.rotator__word.is-active { opacity: 1; visibility: visible; transform: none; }
.hero .lead { max-width: 60ch; }
.video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: #0b3d3a url(../media/fons-mobi-3.webp) center / cover; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video__play { position: absolute; inset: 0; width: 100%; border: 0; cursor: pointer; display: grid; place-content: center; justify-items: center; gap: .9rem; background: linear-gradient(0deg, rgba(5, 40, 38, .8), rgba(5, 40, 38, .35)); color: #fff; font: 700 1rem var(--f-head); letter-spacing: .06em; }
.video__icon { width: 74px; height: 74px; border-radius: 50%; background: #fff; color: var(--teal-d); display: grid; place-items: center; transition: transform .25s; }
.video__icon .ico { width: 34px; height: 34px; margin-left: 4px; }
.video__play:hover .video__icon { transform: scale(1.1); }
.video__note { font-size: .85rem; margin: .8rem 0 0; text-align: right; }
.video__fallback { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; }

.pgrid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.pgrid--3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.pcard__link { position: relative; display: block; aspect-ratio: 1; overflow: hidden; border-radius: var(--radius); color: #fff; text-decoration: none; background: #0b3d3a; }
.pcard__link img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.pcard__shade { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(5, 40, 38, .92) 0%, rgba(5, 40, 38, .2) 55%, rgba(5, 40, 38, 0) 100%); transition: background .3s; }
.pcard__link:hover img, .pcard__link:focus-visible img { transform: scale(1.07); }
.pcard__link:hover .pcard__shade { background: linear-gradient(0deg, rgba(0, 120, 112, .95) 0%, rgba(5, 40, 38, .35) 70%, rgba(5, 40, 38, .1) 100%); }
.pcard__txt { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.2rem 1.3rem; display: grid; gap: .3rem; }
.pcard__cat { font: 600 .72rem var(--f-body); letter-spacing: .14em; text-transform: uppercase; color: var(--teal-l); }
.pcard__title { font: 800 1.2rem/1.15 var(--f-head); text-transform: uppercase; }

.band--assabenta .split { display: grid; grid-template-columns: 1.3fr 1fr; gap: 2.5rem; align-items: center; }
.floaty { margin-inline: auto; max-width: 340px; filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .35)); }
.advice { position: relative; display: grid; grid-template-columns: 1fr; gap: 2rem; }
.advice__intro { max-width: 760px; }
.advice__intro .section__title { text-transform: none; font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.advice__sub { font: 700 1rem var(--f-head); letter-spacing: .12em; text-transform: uppercase; color: var(--teal-d); }
.advice__list { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); position: relative; z-index: 1; }
.advice__list li { background: #fff; border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow); border-top: 4px solid var(--teal); }
.advice__list h3 { font-size: 1.2rem; text-transform: uppercase; color: var(--teal-d); }
.advice__list p { margin: 0; color: var(--muted); }
.advice__bird { position: absolute; right: 0; top: -2rem; width: 240px; opacity: .55; mix-blend-mode: multiply; pointer-events: none; }

.bgrid { display: grid; gap: 1.4rem; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.bgrid--list { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.bcard { background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s; }
.bcard:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.bcard__img { aspect-ratio: 4 / 3; overflow: hidden; background: var(--soft); }
.bcard__img img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; transition: transform .5s; }
.bcard:hover .bcard__img img { transform: scale(1.05); }
.bcard__body { padding: 1.2rem 1.3rem 1.5rem; }
.bcard__meta { font: 600 .75rem var(--f-body); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0 0 .5rem; }
.bcard__title { font-size: 1.2rem; margin: 0 0 .5rem; }
.bcard__title a { color: var(--ink); text-decoration: none; }
.bcard__title a:hover { color: var(--teal-d); text-decoration: underline; }
.bcard__ex { color: var(--muted); font-size: .95rem; margin: 0; }

.igrid { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); align-items: start; }
.igcard article { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem 1.3rem; display: flex; flex-direction: column; gap: .8rem; height: 100%; }
.igcard__meta { display: flex; align-items: center; gap: .5rem; margin: 0; font: 700 .82rem var(--f-head); color: var(--ink); }
.igcard__meta .ico { color: var(--coral); width: 1.3em; height: 1.3em; }
.igcard__date { margin-left: auto; white-space: nowrap; font: 500 .75rem var(--f-body); color: var(--muted); }
.igrid + p { margin-top: 2.2rem; }
.igcard__text { font-size: .92rem; color: var(--muted); overflow-wrap: anywhere; }
.js .igcard__text:not(.is-open) { display: -webkit-box; -webkit-line-clamp: 7; -webkit-box-orient: vertical; overflow: hidden; }
.igcard__toggle { background: none; border: 0; padding: 0; color: var(--teal-d); font: 700 .8rem var(--f-head); letter-spacing: .06em; text-decoration: underline; cursor: pointer; align-self: flex-start; }
.igcard__link { margin-top: auto; font: 700 .8rem var(--f-head); letter-spacing: .08em; text-transform: uppercase; text-decoration: none; display: inline-flex; gap: .4rem; align-items: center; }
.igcard__link:hover { text-decoration: underline; }

.band--facts .eyebrow { margin-bottom: 2rem; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 2rem; text-align: center; }
.facts__n { display: block; font: 800 clamp(3rem, 7vw, 4.6rem)/1 var(--f-head); color: var(--teal-l); }
.facts span { display: block; max-width: 22ch; margin: .6rem auto 0; color: #e4f2f0; }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2rem 1.6rem; margin-top: 2rem; counter-reset: s; }
.steps li { position: relative; text-align: center; padding-top: .5rem; }
.steps img { width: 150px; height: 150px; margin: 0 auto 1rem; border-radius: 50%; object-fit: cover; box-shadow: var(--shadow); }
.steps__n { position: absolute; top: 0; left: calc(50% + 38px); width: 42px; height: 42px; border-radius: 50%; background: var(--teal-d); color: #fff; font: 800 1.2rem/42px var(--f-head); border: 3px solid #fff; }
.steps h3 { font-size: 1.4rem; text-transform: uppercase; margin-bottom: .2rem; }
.steps__k { font: 700 .78rem var(--f-head); letter-spacing: .14em; color: var(--teal-d); margin-bottom: .6rem; }
.steps li > p:last-child { color: var(--muted); font-size: .95rem; }

.sponsors { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1.4rem; max-width: 820px; margin-inline: auto; }
.sponsors a { display: block; background: #fff; border-radius: var(--radius); padding: 1.1rem; aspect-ratio: 1; transition: transform .25s; }
.sponsors a.on-dark { background: transparent; }
.sponsors a:hover { transform: translateY(-4px) scale(1.03); }
.sponsors img { width: 100%; height: 100%; object-fit: contain; }

.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.4rem; margin-top: 2rem; }
.quotes figure { margin: 0; height: 100%; background: #fff; border-radius: var(--radius); padding: 1.8rem; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 1.2rem; position: relative; }
.quotes figure::before { content: ""; position: absolute; top: 1.2rem; right: 1.4rem; width: 38px; height: 38px; background: var(--teal); opacity: .2; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 18v-5.5C4 8.6 6.2 6 9.5 5.5l.6 1.8C8.5 7.9 7.7 9 7.6 10.5H10V18H4zm10 0v-5.5c0-3.9 2.2-6.5 5.5-7l.6 1.8c-1.6.6-2.4 1.7-2.5 3.2H20V18h-6z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 18v-5.5C4 8.6 6.2 6 9.5 5.5l.6 1.8C8.5 7.9 7.7 9 7.6 10.5H10V18H4zm10 0v-5.5c0-3.9 2.2-6.5 5.5-7l.6 1.8c-1.6.6-2.4 1.7-2.5 3.2H20V18h-6z'/%3E%3C/svg%3E") center / contain no-repeat; }
.quotes blockquote { margin: 0; flex: 1; }
.quotes blockquote p { color: var(--muted); font-size: .98rem; }
.quotes blockquote strong { color: var(--ink); font-family: var(--f-head); }
.quotes figcaption { display: flex; align-items: center; gap: .9rem; }
.quotes figcaption img { width: 56px; height: 56px; border-radius: 50%; }
.quotes figcaption strong { display: block; font-family: var(--f-head); }
.quotes small { color: var(--muted); font-size: .82rem; }

/* 7. QUÈ FEM ------------------------------------------------------------- */
/* «Què fem?» (v1.2.1): seccions amb contenidor, fotos arrodonides i targetes */
.qf { position: relative; padding-block: clamp(3rem, 7vw, 5.5rem); background: #fff; overflow: hidden; }
.qf--b { background: var(--soft); }
.qf--d { color: #fff; background: radial-gradient(circle at 92% 8%, rgba(126, 227, 218, .2), transparent 42%), linear-gradient(120deg, #052826, #0b5a54); }
.qf__in { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(2.2rem, 6vw, 5.5rem); align-items: center; }
.qf--b .qf__in, .qf--c .qf__in { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); }
.qf--b .qf__photo, .qf--c .qf__photo { order: 2; }
.qf__photo { position: relative; isolation: isolate; margin: 0; }
.qf__photo::before { content: ""; position: absolute; z-index: -1; inset: 1.2rem -1.2rem -1.2rem 1.2rem; border-radius: calc(var(--radius) + 10px); background: var(--teal-l); opacity: .5; }
.qf--b .qf__photo::before, .qf--c .qf__photo::before { inset: 1.2rem 1.2rem -1.2rem -1.2rem; }
.qf--b .qf__photo::before { background: var(--teal); opacity: .22; }
.qf--d .qf__photo::before { background: var(--teal); opacity: .45; }
.qf__photo img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: calc(var(--radius) + 10px); box-shadow: var(--shadow); }
.qf__txt .section__title { font-size: clamp(1.8rem, 3.8vw, 2.8rem); }
.qf__txt .section__title::before { content: ""; display: block; width: 34px; height: 3px; margin-bottom: 1rem; border-radius: 3px; background: var(--teal); }
.qf__txt .lead { font-size: 1.15rem; }
.qf__txt .prose p, .qf__txt > p:not(.lead) { color: var(--muted); }
.qf--d .section__title { color: #fff; }
.qf--d .section__title::before { background: var(--teal-l); }
.qf--d .lead { color: #e4f2f0; font-size: 1.2rem; }
.qf--d .lead em { color: #fff; font-weight: 600; }
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 1.8rem; }
.pillars li { display: grid; justify-items: center; align-content: center; gap: .7rem; padding: 1.2rem .6rem; text-align: center; background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--teal); border-radius: var(--radius); box-shadow: 0 6px 18px rgba(11, 60, 56, .07); font: 700 .85rem var(--f-head); text-transform: uppercase; letter-spacing: .1em; color: var(--teal-dd); transition: transform .2s, box-shadow .2s; }
.pillars li:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.pillars .ico { width: 54px; height: 54px; padding: 12px; border-radius: 50%; background: var(--soft); color: var(--teal-d); transition: background .2s, color .2s; }
.pillars li:hover .ico { background: var(--teal-d); color: #fff; }
.goals { counter-reset: g; display: grid; gap: .8rem; margin-top: 1.4rem; }
.goals li { counter-increment: g; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1rem; align-items: start; padding: 1rem 1.2rem; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--teal); border-radius: var(--radius); box-shadow: 0 4px 14px rgba(11, 60, 56, .06); color: var(--muted); transition: transform .2s, box-shadow .2s; }
.goals li:hover { transform: translateX(3px); box-shadow: var(--shadow); }
.goals li::before { content: counter(g); width: 2.3rem; height: 2.3rem; border-radius: 50%; background: var(--teal-d); color: #fff; font: 800 1rem/2.3rem var(--f-head); text-align: center; }

/* 8. PROJECTES ----------------------------------------------------------- */
.chips { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 1.6rem; }
.chip { border: 2px solid var(--line); background: #fff; color: var(--ink); border-radius: 999px; padding: .5rem 1.1rem; font: 700 .8rem var(--f-head); letter-spacing: .08em; text-transform: uppercase; cursor: pointer; transition: all .2s; }
.chip:hover { border-color: var(--teal-d); color: var(--teal-d); }
.chip.is-on { background: var(--teal-d); border-color: var(--teal-d); color: #fff; }
.empty { color: var(--muted); }
.project { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.project__short { font: 800 1.6rem/1.15 var(--f-head); text-transform: uppercase; margin-bottom: .4rem; }
.project__kind { font: 700 italic 1.05rem var(--f-head); color: var(--teal-d); }
.project__lead { background: var(--teal-d); color: #fff; font: 800 1.05rem/1.5 var(--f-head); text-transform: uppercase; padding: 1rem 1.3rem; border-radius: 12px; margin: 1.2rem 0 1.6rem; }
.project__main p:not([class]) { color: var(--muted); font-size: 1.02rem; }
.project__side { position: sticky; top: 100px; display: grid; gap: 1.2rem; }
.project__img { border-radius: var(--radius); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; box-shadow: var(--shadow); }
.card { background: var(--soft); border-radius: var(--radius); padding: 1.5rem; border-top: 4px solid var(--teal); }
.card__t { font-size: 1.05rem; text-transform: uppercase; letter-spacing: .08em; color: var(--teal-d); }
.details { margin: 0; display: grid; gap: .9rem; }
.detail dt { font: 700 .72rem var(--f-body); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.detail dd { margin: .1rem 0 0; font-weight: 500; }
.pager { display: flex; justify-content: space-between; gap: 1rem; margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--line); flex-wrap: wrap; }
.pager a { display: grid; gap: .2rem; text-decoration: none; color: var(--ink); padding: .9rem 1.2rem; border: 2px solid var(--line); border-radius: 12px; min-width: 200px; transition: border-color .2s; }
.pager a:hover { border-color: var(--teal-d); }
.pager span { font: 700 .72rem var(--f-body); letter-spacing: .16em; text-transform: uppercase; color: var(--teal-d); }
.pager__b { text-align: right; margin-left: auto; }

/* 9. BLOG ---------------------------------------------------------------- */
.post__img { width: 100%; max-height: 560px; object-fit: cover; object-position: center 25%; border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 2rem; }
.post__body p { font-size: 1.06rem; color: var(--muted); }

/* 10. CONTACTE ----------------------------------------------------------- */
.contact { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(1.5rem, 5vw, 4rem); align-items: start; }
.infolist { display: grid; gap: 1.3rem; margin: 0 0 1.4rem; }
.infolist dt { display: flex; align-items: center; gap: .5rem; font: 800 .82rem var(--f-head); letter-spacing: .14em; text-transform: uppercase; color: var(--teal-d); }
.infolist dd { margin: .2rem 0 0 1.65rem; font-size: 1.08rem; }
.social--page a, .social--foot a { background: var(--soft); color: var(--teal-d); }
.social--page a:hover { background: var(--teal-d); color: #fff; }
.contact__img { margin-top: 1.6rem; border-radius: var(--radius); width: 100%; box-shadow: var(--shadow); }
.form { background: var(--soft); border-radius: var(--radius); padding: clamp(1.3rem, 3vw, 2.2rem); display: grid; gap: 1.1rem; }
.field label { display: block; font: 700 .85rem var(--f-head); letter-spacing: .06em; margin-bottom: .35rem; }
.field input, .field textarea { width: 100%; font: inherit; color: var(--ink); background: #fff; border: 2px solid var(--line); border-radius: 12px; padding: .8rem 1rem; transition: border-color .2s, box-shadow .2s; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--teal-d); box-shadow: 0 0 0 4px rgba(0, 168, 158, .2); }
.field [aria-invalid="true"] { border-color: #b3261e; }
.form__note { font-size: .85rem; color: var(--muted); margin: 0; }
.form__status { margin: 0; font-weight: 600; color: var(--teal-dd); min-height: 1.5em; }
.form__status.is-err { color: #b3261e; }
.form .btn { justify-self: start; }

/* 11. PEU ---------------------------------------------------------------- */
.footer { background: #0a2f2c; color: #cfe5e3; margin-top: 0; }
.footer a { color: #fff; }
.footer__grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(1.5rem, 5vw, 4rem); padding-block: clamp(2.5rem, 6vw, 4rem); }
.footer h2 { font-size: .95rem; text-transform: uppercase; letter-spacing: .16em; color: var(--teal-l); }
.footer address p { margin: 0 0 .6rem; }
.footer address a { text-decoration: none; display: inline-flex; gap: .5rem; align-items: center; }
.footer address a:hover { text-decoration: underline; }
.social--foot { margin-top: 1rem; }
.social--foot a { background: rgba(255, 255, 255, .1); color: #fff; }
.social--foot a:hover { background: #fff; color: var(--teal-d); }
.partners { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 1.4rem; }
.partners a { display: block; background: #fff; border-radius: 12px; height: 88px; padding: .7rem 1rem; transition: transform .2s; }
.partners a.on-dark { background: transparent; padding-inline: .2rem; }
.partners a:hover { transform: translateY(-3px); }
.partners img { height: 100%; width: auto; max-width: 160px; object-fit: contain; }
.footer__text { font-size: .9rem; max-width: 62ch; color: #b9d4d1; }
.footer__bar { border-top: 1px solid rgba(255, 255, 255, .12); }
.footer__bar-in { padding-block: 1.1rem; }
.footer__bar a { display: inline-flex; align-items: center; gap: .9rem; text-decoration: none; font-size: .85rem; color: #b9d4d1; }
.footer__bar a:hover { color: #fff; }
.footer__bar img { height: 26px; width: auto; filter: brightness(0) invert(1); opacity: .9; }

/* RESPONSIVE ------------------------------------------------------------- */
@media (max-width: 960px) {
  .topbar__addr { display: none; }
  .topbar__in { justify-content: space-between; }
  .nav-toggle { display: inline-flex; }
  .js .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 18px 30px rgba(0, 0, 0, .1); padding: .5rem clamp(1rem, 4vw, 2rem) 1rem; }
  .js .nav.is-open { display: block; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav a { padding: 1rem .4rem; border-radius: 0; border-bottom: 1px solid var(--line); }
  .nav a[aria-current="page"]::after { left: .4rem; right: auto; width: 40px; bottom: .55rem; }
  .brand__sub { display: none; }
  .hero__in, .band--assabenta .split, .contact, .footer__grid, .project { grid-template-columns: 1fr; }
  .project__side { position: static; }
  .qf__in, .qf--b .qf__in, .qf--c .qf__in { grid-template-columns: 1fr; }
  .qf--b .qf__photo, .qf--c .qf__photo { order: 0; }
  .qf__photo { max-width: 560px; margin-inline: auto; width: 100%; }
  .qf__photo img { aspect-ratio: 4 / 3; object-position: 50% 30%; }
  .qf__photo::before, .qf--b .qf__photo::before, .qf--c .qf__photo::before { inset: .8rem -.6rem -.8rem .6rem; }
  .advice__bird { display: none; }
}
@media (max-width: 560px) {
  .topbar__contact span { font-size: .75rem; }
  .btn { padding: .85rem 1.3rem; }
  .steps__n { left: calc(50% + 34px); }
}

/* 12. MOVIMENT I IMPRESSIÓ ---------------------------------------------- */
.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .rotator { display: block; }
  .rotator__word { display: block; opacity: 1; visibility: visible; transform: none; }
}
@media print {
  .topbar, .header, .video, .nav-toggle, .skip-link, .footer__bar, .chips, .form, [data-ig-more] { display: none !important; }
  body { color: #000; }
  .band, .pagehead { background: none !important; color: #000 !important; } .band::before { display: none; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .8em; }
}

/* 13. Formulari: confirmació, camp trampa i enllaços legals (v1.1.0) */
.form__fields { display: grid; gap: 1.1rem; }
.form__fields[hidden], .form__result[hidden] { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__result { background: #fff; border: 2px solid var(--teal-d); border-radius: var(--radius); padding: 1.4rem 1.6rem; }
.form__result:focus { outline: 3px solid var(--teal); outline-offset: 3px; }
.form__result p { margin: 0 0 .8rem; }
.form__ok-title { font: 800 1.25rem var(--f-head); color: var(--teal-dd); }
.form__status:empty { min-height: 0; }
.btn--sm { padding: .65rem 1.2rem; font-size: .8rem; }
.btn--ghost { background: transparent; color: var(--teal-d); }
.btn--ghost:hover { background: var(--teal-d); color: #fff; }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; }
.footer__legal { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; margin: .9rem 0 0; padding: 0; font-size: .85rem; }
.footer__legal a, .footer__legal .linklike { color: #b9d4d1; }
.footer__legal a:hover, .footer__legal .linklike:hover { color: #fff; }
.prose .linklike { color: var(--teal-d); font-weight: 600; }
.table-wrap { overflow-x: auto; margin: 1.2rem 0; }
.table-wrap:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }
.table-wrap table { border-collapse: collapse; width: 100%; min-width: 34rem; font-size: .92rem; }
.table-wrap th, .table-wrap td { text-align: left; padding: .7rem .9rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.table-wrap thead th { background: var(--soft); font-family: var(--f-head); }

/* 14. Avís de galetes i consentiment del vídeo */
.cookies { position: fixed; z-index: 1000; left: 1rem; right: 1rem; bottom: 1rem; max-width: 40rem; margin-inline: auto; background: #fff; color: var(--ink); border: 2px solid var(--teal-d); border-radius: var(--radius); box-shadow: 0 12px 40px rgba(0, 0, 0, .25); padding: 1.2rem 1.4rem; }
.cookies h2 { font-size: 1.05rem; margin: 0 0 .4rem; text-transform: uppercase; letter-spacing: .1em; color: var(--teal-d); }
.cookies p { margin: 0 0 .9rem; font-size: .92rem; }
.cookies__opts { display: grid; gap: .5rem; margin-bottom: .9rem; font-size: .92rem; }
.cookies__opts[hidden] { display: none; }
.cookies__btns { display: flex; flex-wrap: wrap; gap: .6rem; }
.video__ask { position: absolute; inset: 0; display: grid; align-content: center; gap: .8rem; padding: 1.2rem; background: var(--teal-dd); color: #fff; overflow: auto; }
.video__ask p { margin: 0; font-size: .92rem; } .video__ask a:not(.btn) { color: #fff; }
.video__ask-btns { display: flex; flex-wrap: wrap; gap: .6rem; }
.video__ask .btn { background: #fff; color: var(--teal-dd); border-color: #fff; }
.video__ask .btn--ghost { background: transparent; color: #fff; }
@media print { .cookies, .video__ask { display: none !important; } }

/* 15. Instagram en directe (v1.1.0) */
.igcard__img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; border-radius: calc(var(--radius) - 6px); background: var(--soft); display: block; }
.igcard__text--live { white-space: pre-line; }
.ig-consent { background: #fff; border: 2px dashed var(--teal-d); border-radius: var(--radius); padding: 1rem 1.3rem; margin: 0 0 1.5rem; display: flex; flex-wrap: wrap; gap: .8rem 1.4rem; align-items: center; justify-content: space-between; }
.ig-consent p { margin: 0; font-size: .92rem; max-width: 52rem; }

/* 16. Blocs nous: imatge amb peu (v1.2.0) */
.figure { margin: 0; }
.figure__img { width: 100%; height: auto; border-radius: var(--radius); display: block; }
.figure figcaption { margin-top: .6rem; font-size: .9rem; color: var(--muted); text-align: center; }
