/* =========================================================
   NEXT · Centre d'Entrenament — full d'estils
   Paleta: negres, grisos i blancs del logotip
   ========================================================= */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --black: #0a0a0a;
  --ink: #141414;
  --g-900: #1e1e1e;
  --g-800: #2a2a2a;
  --g-600: #5a5a5a;
  --g-500: #7a7a7a;
  --g-400: #9a9a9a;
  --g-300: #c4c4c4;
  --g-200: #e2e2e2;
  --g-100: #f2f2f2;
  --white: #ffffff;
  --grad: linear-gradient(90deg, #5a5a5a 0%, #9a9a9a 55%, #ffffff 100%);
  --grad-dark: linear-gradient(90deg, #8a8a8a 0%, #4a4a4a 100%);

  --f-head: "Archivo", "Arial Black", system-ui, sans-serif;
  --f-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --sec: clamp(72px, 10vw, 128px);
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--f-head); font-stretch: 112%; line-height: 1.04; letter-spacing: -0.02em; margin: 0; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--g-500); outline-offset: 3px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Accent: paraula destacada amb el degradat del logo */
.hl { color: var(--g-500); }
.on-dark .hl, .hl--light {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

/* Etiqueta superior amb línia, com a la referència */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--f-head); font-stretch: 120%;
  font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--g-600); margin-bottom: 22px;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.on-dark .eyebrow { color: var(--g-400); }

.lead { font-size: clamp(17px, 1.6vw, 19px); color: var(--g-600); max-width: 34em; }
.on-dark .lead { color: var(--g-300); }

/* Botons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  min-height: 54px; padding: 0 28px;
  font-family: var(--f-head); font-stretch: 115%; font-weight: 700;
  font-size: 13px; letter-spacing: .12em; text-transform: uppercase; text-decoration: none;
  background: var(--black); color: var(--white); border: 2px solid var(--black);
  cursor: pointer; transition: background .2s, color .2s, border-color .2s;
}
.btn::after { content: "→"; font-size: 16px; letter-spacing: 0; transition: transform .2s; }
.btn:hover { background: var(--g-800); border-color: var(--g-800); }
.btn:hover::after { transform: translateX(4px); }
.btn--light { background: var(--white); color: var(--black); border-color: var(--white); }
.btn--light:hover { background: var(--g-200); border-color: var(--g-200); }
.btn--ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,.45); }
.btn--ghost:hover { background: var(--white); color: var(--black); border-color: var(--white); }
.btn--ghost-dark { background: transparent; color: var(--black); border-color: var(--black); }
.btn--ghost-dark:hover { background: var(--black); color: var(--white); }
.btn--sm { min-height: 42px; padding: 0 18px; font-size: 11.5px; }
.btn--plain::after { content: none; }

.micro { font-size: 13.5px; color: var(--g-500); margin-top: 14px; }

/* ---------- Capçalera ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  background: rgba(10,10,10,.92);
  -webkit-backdrop-filter: saturate(140%) blur(10px); backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid rgba(255,255,255,.07);
  color: var(--white);
}
.header .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { display: block; width: 118px; flex: none; }
.logo svg { width: 100%; height: auto; display: block; }
.nav { display: flex; align-items: center; gap: clamp(18px, 2.6vw, 36px); }
.nav a:not(.btn) {
  font-size: 14px; color: var(--g-300); text-decoration: none; transition: color .2s;
}
.nav a:not(.btn):hover { color: var(--white); }
.menu-toggle {
  display: none; width: 46px; height: 46px; border: 0; background: none; color: var(--white); cursor: pointer; padding: 0;
}
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after {
  display: block; width: 24px; height: 2px; background: currentColor; margin: auto; position: relative; transition: transform .25s, background .25s;
}
.menu-toggle span::before, .menu-toggle span::after { content: ""; position: absolute; left: 0; }
.menu-toggle span::before { top: -7px; }
.menu-toggle span::after { top: 7px; }
.menu-open .menu-toggle span { background: transparent; }
.menu-open .menu-toggle span::before { transform: translateY(7px) rotate(45deg); }
.menu-open .menu-toggle span::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
  .menu-toggle { display: block; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--black); padding: 8px var(--gutter) 28px;
    border-bottom: 1px solid var(--g-800);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .2s, transform .2s, visibility .2s;
  }
  .menu-open .nav { transform: none; opacity: 1; visibility: visible; }
  .nav a:not(.btn) { font-size: 18px; padding: 16px 0; border-bottom: 1px solid var(--g-800); color: var(--white); }
  .nav .btn { margin-top: 22px; min-height: 52px; }
}

/* ---------- Hero ---------- */
.hero { padding-top: calc(var(--header-h) + clamp(40px, 6vw, 80px)); padding-bottom: clamp(56px, 8vw, 96px); }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.hero h1 { font-size: clamp(42px, 6.4vw, 84px); font-weight: 800; margin-bottom: 26px; }
.hero .lead { margin-bottom: 34px; }
.hero__media { position: relative; }
.hero__frame { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--g-900); }
.hero__frame video, .hero__frame img { width: 100%; height: 100%; object-fit: cover; }
.hero__badge {
  position: absolute; left: clamp(-28px, -2vw, -12px); bottom: 28px;
  background: var(--white); color: var(--black); padding: 18px 22px; box-shadow: 0 20px 40px -18px rgba(0,0,0,.35);
}
.hero__badge strong { display: block; font-family: var(--f-head); font-stretch: 118%; font-size: 30px; line-height: 1; font-weight: 800; }
.hero__badge span { font-size: 12.5px; color: var(--g-600); }
.hero__pills { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 22px; padding: 0; list-style: none; font-size: 13.5px; color: var(--g-500); }
.hero__pills li::before { content: "✓"; margin-right: 6px; color: var(--black); font-weight: 700; }

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero__media { max-width: 480px; width: 100%; margin-inline: auto; }
  .hero__badge { left: 12px; }
}

/* ---------- Franja fosca 01 / 02 / 03 ---------- */
.band { background: var(--black); color: var(--white); }
.band__grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.band__item { padding: clamp(36px, 5vw, 56px) clamp(20px, 3vw, 40px); border-left: 1px solid var(--g-800); }
.band__item:first-child { border-left: 0; padding-left: 0; }
.band__num { font-family: var(--f-head); font-stretch: 120%; font-size: 34px; font-weight: 800; color: var(--g-600); line-height: 1; margin-bottom: 18px; }
.band__item h3 { font-size: 20px; margin-bottom: 10px; }
.band__item p { color: var(--g-400); font-size: 15px; margin: 0; }
@media (max-width: 760px) {
  .band__grid { grid-template-columns: 1fr; }
  .band__item { padding: 32px 0; border-left: 0; border-top: 1px solid var(--g-800); }
  .band__item:first-child { border-top: 0; }
}

/* ---------- Seccions genèriques ---------- */
.section { padding-block: var(--sec); }
.section--grey { background: var(--g-100); }
.section--dark { background: var(--black); color: var(--white); }
.section__head { display: grid; grid-template-columns: 1fr 1fr; gap: 24px clamp(32px, 6vw, 88px); align-items: end; margin-bottom: clamp(40px, 6vw, 64px); }
.section__head h2 { font-size: clamp(34px, 4.6vw, 58px); font-weight: 800; }
.section__head .lead { margin: 0; }
@media (max-width: 860px) { .section__head { grid-template-columns: 1fr; } }

/* ---------- Serveis ---------- */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--g-200); border: 1px solid var(--g-200); }
.service {
  background: var(--white); padding: clamp(28px, 3.4vw, 42px);
  display: flex; flex-direction: column; min-height: 300px;
  transition: background .25s, color .25s;
}
.service__top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: auto; padding-bottom: 36px; }
.service__icon { width: 46px; height: 46px; color: var(--black); transition: color .25s; }
.service__num { font-family: var(--f-head); font-stretch: 120%; font-weight: 700; font-size: 13px; color: var(--g-400); letter-spacing: .1em; }
.service h3 { font-size: 23px; margin-bottom: 12px; }
.service p { font-size: 15px; color: var(--g-600); margin: 0; transition: color .25s; }
.service:hover { background: var(--black); color: var(--white); }
.service:hover .service__icon { color: var(--white); }
.service:hover p { color: var(--g-400); }
@media (max-width: 960px) { .services { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .services { grid-template-columns: 1fr; } .service { min-height: 0; } }

.services__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 44px; }
.services__cta p { margin: 0; color: var(--g-600); }

/* ---------- Mètode ---------- */
.method .wrap { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(36px, 6vw, 88px); align-items: center; }
.method__img { position: relative; aspect-ratio: 4 / 5; overflow: hidden; }
.method__img img { width: 100%; height: 100%; object-fit: cover; }
.method__img::after {
  content: "N"; position: absolute; right: -0.06em; bottom: -0.22em;
  font-family: var(--f-head); font-stretch: 125%; font-weight: 900; font-size: 260px; line-height: 1;
  color: rgba(255,255,255,.14); pointer-events: none;
}
.method h2 { font-size: clamp(34px, 4.4vw, 56px); font-weight: 800; margin-bottom: 22px; }
.steps { list-style: none; padding: 0; margin: 36px 0 0; counter-reset: s; }
.steps > li { display: grid; grid-template-columns: 56px 1fr; gap: 0 18px; padding: 24px 0; border-top: 1px solid var(--g-800); }
.steps > li:last-child { border-bottom: 1px solid var(--g-800); }
.steps > li::before {
  counter-increment: s; content: counter(s, decimal-leading-zero);
  font-family: var(--f-head); font-stretch: 120%; font-weight: 800; font-size: 26px; color: var(--g-600); line-height: 1.1;
}
.steps h3 { font-size: 20px; margin-bottom: 8px; }
.steps p { color: var(--g-400); font-size: 15.5px; margin: 0; }
.steps .tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; padding: 0; list-style: none; }
.steps .tags li { display: block; padding: 6px 12px; border: 1px solid var(--g-800); font-size: 13px; color: var(--g-300); }
.steps .tags li::before { content: none; }
@media (max-width: 900px) {
  .method .wrap { grid-template-columns: 1fr; }
  .method__img { aspect-ratio: 16 / 11; }
}

/* ---------- Franja amb imatge i cita ---------- */
.quote { position: relative; min-height: clamp(380px, 52vw, 560px); display: grid; place-items: center; color: var(--white); overflow: hidden; background: var(--black); }
.quote picture, .quote img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.quote::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,10,10,.55), rgba(10,10,10,.75)); }
.quote blockquote { position: relative; z-index: 1; margin: 0; text-align: center; max-width: 900px; padding: 0 var(--gutter); }
.quote p { font-family: var(--f-head); font-stretch: 112%; font-weight: 700; font-size: clamp(26px, 3.6vw, 44px); line-height: 1.15; letter-spacing: -0.01em; margin-bottom: 20px; }
.quote cite { font-style: normal; font-size: 12.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--g-300); }

/* ---------- On som ---------- */
.where { display: grid; grid-template-columns: 1fr 1.2fr; gap: 0; border: 1px solid var(--g-200); }
.where__info { padding: clamp(28px, 4vw, 52px); display: flex; flex-direction: column; gap: 26px; background: var(--white); }
.where__info h3 { font-size: 26px; }
.where__row { display: grid; grid-template-columns: 28px 1fr; gap: 14px; align-items: start; }
.where__row svg { width: 24px; height: 24px; margin-top: 2px; }
.where__row strong { display: block; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--g-500); font-weight: 600; margin-bottom: 4px; }
.where__row address, .where__row p { font-style: normal; margin: 0; font-size: 17px; }
.where__row a { text-decoration-color: var(--g-300); text-underline-offset: 3px; }
.where__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: auto; }
.map {
  position: relative; min-height: 420px; overflow: hidden; text-decoration: none;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
  padding: 40px 24px; text-align: center; color: var(--white);
  background:
    radial-gradient(circle at 50% 46%, rgba(255,255,255,.10), transparent 55%),
    repeating-linear-gradient(0deg, transparent 0 46px, rgba(255,255,255,.06) 46px 47px),
    repeating-linear-gradient(90deg, transparent 0 46px, rgba(255,255,255,.06) 46px 47px),
    var(--g-900);
  transition: background-color .25s;
}
.map::before, .map::after {           /* "carreteres" decoratives */
  content: ""; position: absolute; background: rgba(255,255,255,.12); pointer-events: none;
}
.map::before { left: -10%; right: -10%; top: 62%; height: 10px; transform: rotate(-12deg); }
.map::after  { top: -10%; bottom: -10%; left: 30%; width: 6px; transform: rotate(18deg); }
.map > * { position: relative; z-index: 1; }
.map__pin { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--white); color: var(--black); box-shadow: 0 0 0 10px rgba(255,255,255,.12); transition: transform .25s; }
.map__pin svg { width: 30px; height: 30px; }
.map__addr { font-family: var(--f-head); font-stretch: 112%; font-weight: 700; font-size: 20px; line-height: 1.3; }
.map__note { font-size: 13.5px; color: var(--g-400); max-width: 28em; }
.map:hover .map__pin { transform: translateY(-4px); }
.map:hover .map__btn { background: var(--g-200); border-color: var(--g-200); }
.map:focus-visible { outline: 3px solid var(--white); outline-offset: -6px; }
@media (max-width: 860px) { .where { grid-template-columns: 1fr; } .map { min-height: 300px; } }

/* ---------- Primera cita (formulari) ---------- */
.booking .wrap { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(36px, 6vw, 88px); align-items: start; }
.booking h2 { font-size: clamp(34px, 4.4vw, 56px); font-weight: 800; margin-bottom: 22px; }
.booking__list { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 16px; }
.booking__list li { display: grid; grid-template-columns: 34px 1fr; gap: 12px; color: var(--g-300); font-size: 15.5px; }
.booking__list li b { color: var(--white); display: block; font-weight: 600; }
.booking__list svg { width: 26px; height: 26px; color: var(--g-400); }
.booking__img { margin-top: 36px; aspect-ratio: 16 / 10; overflow: hidden; }
.booking__img img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 960px) { .booking .wrap { grid-template-columns: 1fr; } .booking__img { display: none; } }

.form { background: var(--white); color: var(--ink); padding: clamp(24px, 4vw, 48px); }
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 18px; }
.form__full { grid-column: 1 / -1; }
@media (max-width: 600px) { .form__grid { grid-template-columns: 1fr; } }
.field label, .fieldset legend { display: block; font-size: 13px; font-weight: 600; letter-spacing: .02em; margin-bottom: 8px; color: var(--g-800); }
.req { color: var(--g-500); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 12px 14px;
  font: inherit; font-size: 16px; color: var(--ink);
  background: var(--g-100); border: 1px solid var(--g-200); border-radius: 0;
  -webkit-appearance: none; appearance: none;
  transition: border-color .2s, background .2s;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23141414' stroke-width='1.8'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--black); background: var(--white); }
.field input:user-invalid, .field select:user-invalid { border-color: var(--g-600); background: #fafafa; }
.fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.fieldset__hint { font-weight: 400; color: var(--g-500); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: center; min-height: 42px; padding: 0 16px;
  border: 1px solid var(--g-300); font-size: 14.5px; cursor: pointer; user-select: none;
  transition: background .15s, color .15s, border-color .15s;
}
.chip input:checked + span { background: var(--black); color: var(--white); border-color: var(--black); }
.chip input:focus-visible + span { outline: 2px solid var(--g-500); outline-offset: 2px; }
.check { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; font-size: 14.5px; color: var(--g-600); }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--black); }
.check a { color: var(--black); }
.hp { position: absolute !important; left: -9999px !important; }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 28px; }
.form__foot small { color: var(--g-500); font-size: 13px; }
.form__msg { display: none; margin-top: 20px; padding: 16px 18px; font-size: 15px; border-left: 3px solid var(--black); background: var(--g-100); }
.form__msg.is-visible { display: block; }
.form__msg.is-error { border-left-color: var(--g-500); }
.form.is-sent .form__grid, .form.is-sent .form__foot { display: none; }
.form__ok { display: none; text-align: center; padding: 40px 10px; }
.form.is-sent .form__ok { display: block; }
.form__ok h3 { font-size: 30px; margin-bottom: 12px; }
.form__ok p { color: var(--g-600); }
.btn[disabled] { opacity: .6; cursor: progress; }

/* ---------- Peu ---------- */
.footer { background: var(--black); color: var(--g-400); padding: 72px 0 32px; border-top: 1px solid var(--g-900); }
.footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; }
.footer .logo { width: 150px; margin-bottom: 18px; }
.footer h4 { font-family: var(--f-head); font-stretch: 120%; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--white); margin: 0 0 16px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: 15px; }
.footer a { text-decoration: none; color: var(--g-300); }
.footer a:hover { color: var(--white); }
.footer address { font-style: normal; font-size: 15px; line-height: 1.6; }
.footer__bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--g-900); display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; font-size: 13px; color: var(--g-500); }
@media (max-width: 760px) { .footer__grid { grid-template-columns: 1fr; } }

/* Botó flotant mòbil */
.sticky-cta { display: none; }
@media (max-width: 760px) {
  .sticky-cta {
    position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 40;
    display: flex; transform: translateY(140%); transition: transform .3s;
  }
  .sticky-cta.is-visible { transform: none; }
  .sticky-cta .btn { width: 100%; box-shadow: 0 12px 30px -10px rgba(0,0,0,.5); }
}

/* Aparició suau en fer scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Pàgina legal ---------- */
.legal { padding: calc(var(--header-h) + 64px) 0 96px; }
.legal .wrap { max-width: 820px; }
.legal h1 { font-size: clamp(34px, 5vw, 52px); font-weight: 800; margin-bottom: 14px; }
.legal h2 { font-size: 22px; margin: 44px 0 12px; }
.legal p, .legal li { color: var(--g-800); }
.legal ul { padding-left: 1.2em; }
.legal table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 8px 0; }
.legal th, .legal td { text-align: left; padding: 12px 14px; border: 1px solid var(--g-200); vertical-align: top; }
.legal th { background: var(--g-100); width: 34%; font-weight: 600; }
.todo { background: var(--g-200); padding: 1px 6px; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .9em; }

/* ---------- Idiomes, logo pujat i barra d'admin ---------- */
.logo img { width: 100%; height: auto; display: block; }
.header__right { display: flex; align-items: center; gap: 6px; order: 3; }
.header .nav { order: 2; margin-left: auto; }
.lang { display: flex; align-items: center; gap: 2px; }
.lang a {
  display: inline-flex; align-items: center; justify-content: center; min-width: 34px; height: 34px; padding: 0 6px;
  font-family: var(--f-head); font-stretch: 115%; font-size: 12px; font-weight: 700; letter-spacing: .08em;
  color: var(--g-400); text-decoration: none; border: 1px solid transparent; transition: color .2s, border-color .2s;
}
.lang a:hover { color: var(--white); }
.lang a[aria-current="true"] { color: var(--white); border-color: rgba(255,255,255,.35); }
@media (min-width: 901px) { .header__right { margin-left: 18px; } }
@media (max-width: 900px) { .header .nav { margin-left: 0; } .header__right { margin-left: auto; } }
.adminbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: flex; flex-wrap: wrap; gap: 6px 16px;
  align-items: center; justify-content: space-between; padding: 8px 16px;
  background: #fff; color: #111; font-size: 13px; border-top: 1px solid #ddd;
}
.adminbar a { font-weight: 600; color: #111; }
.legal h2 + ul, .legal ul { margin: 0 0 1em; }
@media (max-width: 760px) { .adminbar ~ .sticky-cta, body:has(.adminbar) .sticky-cta { bottom: 56px; } }

/* ---------- Avís de galetes ---------- */
.cookie {
  position: fixed; z-index: 55; left: 16px; bottom: 16px; max-width: 440px;
  display: flex; align-items: center; gap: 14px 18px; padding: 16px 18px;
  background: var(--black); color: var(--g-200); border: 1px solid var(--g-800);
  box-shadow: 0 18px 40px -16px rgba(0,0,0,.55); font-size: 14px; line-height: 1.5;
}
.cookie[hidden] { display: none; }
.cookie p { margin: 0; }
.cookie a { color: var(--white); text-underline-offset: 3px; }
.cookie .btn { flex: none; }
@media (max-width: 760px) {
  .cookie { left: 12px; right: 12px; bottom: 12px; max-width: none; flex-direction: column; align-items: stretch; }
  body.has-avis .sticky-cta { display: none; }
}
body:has(.adminbar) .cookie { bottom: 64px; }

/* ---------- Notícies ---------- */
.section + .news, .news + .section:not(.section--dark):not(.section--grey) { border-top: 1px solid var(--g-200); }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 2.6vw, 32px); }
.news-grid--1 { grid-template-columns: minmax(0, 560px); }
.news-grid--2 { grid-template-columns: repeat(2, 1fr); }
.news-card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--g-200); transition: border-color .25s, box-shadow .25s; }
.news-card:hover { border-color: var(--g-300); box-shadow: 0 22px 44px -28px rgba(0,0,0,.35); }
.news-card__img { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--black); }
.news-card__img picture, .news-card__img img { width: 100%; height: 100%; }
.news-card__img img { object-fit: cover; transition: transform .5s ease; }
.news-card:hover .news-card__img img { transform: scale(1.035); }
.news-card__ph { display: grid; place-items: center; height: 100%; padding: 22%; }
.news-card__ph svg, .news-card__ph img { width: 100%; height: auto; }
.news-card__body { display: flex; flex-direction: column; flex: 1; padding: clamp(22px, 2.4vw, 30px); }
.news-card__date, .article__date {
  font-family: var(--f-head); font-stretch: 115%; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--g-500);
}
.news-card__date { margin-bottom: 10px; }
.news-card__title { font-size: clamp(20px, 1.9vw, 24px); line-height: 1.12; margin-bottom: 12px; }
.news-card__title a { text-decoration: none; }
.news-card__title a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.news-card__body p { font-size: 15px; color: var(--g-600); margin: 0 0 22px; }
.news-card__more {
  margin-top: auto; align-self: flex-start; display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-head); font-stretch: 115%; font-size: 12.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  text-decoration: none; color: var(--black); border-bottom: 2px solid var(--black); padding-bottom: 4px;
}
.news-card__more::after { content: "→"; font-size: 15px; letter-spacing: 0; transition: transform .2s; }
.news-card__more:hover::after { transform: translateX(4px); }
.news__all { margin-top: clamp(32px, 4vw, 48px); text-align: center; }
@media (max-width: 960px) { .news-grid, .news-grid--2 { grid-template-columns: repeat(2, 1fr); } .news-grid--1 { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .news-grid, .news-grid--2 { grid-template-columns: 1fr; } }

.news-page { padding: calc(var(--header-h) + clamp(48px, 7vw, 88px)) 0 var(--sec); }
.news-page__head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 64px); }
.news-page__head h1 { font-size: clamp(38px, 5.6vw, 68px); font-weight: 800; margin-bottom: 18px; }
.news-empty { color: var(--g-600); }
.news-pager { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 48px; }
.news-pager__n { font-size: 14px; color: var(--g-500); }

.article__head { padding: calc(var(--header-h) + clamp(40px, 6vw, 72px)) 0 clamp(28px, 4vw, 44px); }
.article__head .wrap, .article .article__body { max-width: 820px; }
.article__back { display: inline-block; font-size: 14px; color: var(--g-600); text-decoration: none; margin-bottom: 28px; }
.article__back:hover { color: var(--black); }
.article__date { display: block; margin-bottom: 14px; }
.article__head h1 { font-size: clamp(34px, 5vw, 58px); font-weight: 800; }
.article__draft { background: var(--g-100); border-left: 3px solid var(--black); padding: 10px 14px; font-size: 14px; }
.article__img .wrap { max-width: 1040px; }
.article__img img { width: 100%; max-height: min(78vh, 760px); object-fit: cover; }
.article__img { margin: 0 0 clamp(32px, 5vw, 56px); }
.article__body { margin-inline: auto; font-size: 18px; line-height: 1.7; padding-bottom: clamp(56px, 8vw, 96px); }
.article__body h2 { font-size: clamp(22px, 2.4vw, 28px); margin: 1.8em 0 .6em; }
.article__body p, .article__body li { color: var(--g-800); }
.article__body ul { padding-left: 1.2em; margin: 0 0 1.2em; }
.article__body li { margin-bottom: .45em; }
.article__body li::marker { color: var(--g-400); }
.article__body a { text-underline-offset: 3px; }
.article__cta { background: var(--black); color: var(--white); padding: clamp(44px, 6vw, 72px) 0; }
.article__cta .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px 48px; flex-wrap: wrap; }
.article__cta h2 { font-size: clamp(26px, 3.4vw, 40px); font-weight: 800; margin-bottom: 10px; }
.article__cta p { color: var(--g-300); margin: 0; max-width: 34em; }
.article__more { padding: clamp(40px, 6vw, 64px) 0; border-bottom: 1px solid var(--g-200); }
.article__more .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.article__nav { display: block; padding: 22px 24px; border: 1px solid var(--g-200); text-decoration: none; transition: border-color .2s, background .2s; }
.article__nav:hover { border-color: var(--black); }
.article__nav small { display: block; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--g-500); margin-bottom: 6px; font-weight: 600; }
.article__nav strong { font-family: var(--f-head); font-stretch: 110%; font-size: 18px; line-height: 1.2; }
.article__more .wrap > :last-child { text-align: right; }
@media (max-width: 640px) { .article__more .wrap { grid-template-columns: 1fr; } .article__more .wrap > :last-child { text-align: left; } }
.nav a[aria-current="page"]:not(.btn) { color: var(--white); }
