/* ============================================================
   Consell d'Estat de la Confederació Catalana
   Full estil propi — HTML5 + CSS3
   ============================================================ */

/* ---------- Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: #fff;
}

img { max-width: 100%; display: block; }

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--wine); }

h1, h2, h3, h4, h5, h6 {
  font-family: "Outfit", "Inter", sans-serif;
  font-weight: 600;
  line-height: 1.25;
  margin: 0 0 .6em;
  color: var(--navy);
}

p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.3em; }
li { margin-bottom: .35em; }

button, input, textarea, select { font: inherit; }

/* ---------- Tokens ---------- */
:root {
  --blue: #2f5597;
  --blue-dark: #243f73;
  --sky: #5c84b4;
  --sky-soft: #e8eef6;
  --navy: #242666;
  --wine: #880020;
  --red: #be0021;
  --yellow: #fed500;
  --cream: #fffdd0;
  --ink: #1d1e20;
  --muted: #56585e;
  --line: rgba(47, 85, 151, .14);
  --white: #fff;
  --radius: 10px;
  --shadow: 0 18px 40px rgba(20, 30, 60, .12);
  --container: 1224px;
}

/* ---------- Utilitats ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.lead { font-size: 1.15rem; }

/* ---------- Capçalera ---------- */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 30;
}

.header-inner {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--navy);
}
.brand:hover { color: var(--blue); }

.brand__mark { height: 54px; width: auto; }

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.brand__name {
  font-family: "Outfit", sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: .02em;
  color: var(--navy);
}
.brand__sub {
  font-size: .72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--sky);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.menu { position: relative; }

.menu > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: .95rem;
  color: var(--blue);
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: background .15s ease, border-color .15s ease;
}
.menu > summary::-webkit-details-marker { display: none; }
.menu > summary:hover { background: var(--sky-soft); border-color: var(--line); }
.menu[open] > summary { background: var(--sky-soft); border-color: var(--line); }

.menu__dots { font-size: 1.35rem; line-height: 1; transform: translateY(-2px); }

.menu__panel {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: 270px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 10px;
  z-index: 50;
}
.menu__panel a {
  display: block;
  padding: 9px 12px;
  border-radius: 8px;
  color: var(--navy);
  font-size: .95rem;
  font-weight: 500;
}
.menu__panel a:hover { background: var(--sky-soft); color: var(--blue); }
.menu__panel .is-active { background: var(--sky-soft); color: var(--blue); font-weight: 700; }

.socials { display: flex; align-items: center; gap: 12px; }
.socials a {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--blue);
  transition: background .15s ease, color .15s ease;
}
.socials a:hover { background: var(--blue); color: #fff; }
.socials svg { width: 17px; height: 17px; }

/* ---------- Botons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 30px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: "Inter", sans-serif;
  font-size: .95rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.btn:hover { transform: translateY(-1px); }

.btn--solid { background: var(--blue); color: #fff; border-color: var(--blue); }
.btn--solid:hover { background: var(--wine); border-color: var(--wine); color: #fff; }

.btn--white { background: #fff; color: var(--blue); border-color: #fff; }
.btn--white:hover { background: var(--blue); color: #fff; border-color: var(--blue); }

.btn--outline { background: transparent; color: #fff; border-color: #fff; }
.btn--outline:hover { background: #fff; color: var(--blue); }

.btn--red { background: var(--red); color: #fff; border-color: var(--red); }
.btn--red:hover { background: var(--wine); border-color: var(--wine); color: #fff; }

.btn--yellow { background: var(--yellow); color: var(--wine); border-color: var(--yellow); }
.btn--yellow:hover { background: #fff; color: var(--wine); }

.btn--ghost {
  background: #afafb3;
  color: #fff;
  border-color: #afafb3;
  padding: 10px 24px;
  font-size: .85rem;
}
.btn--ghost:hover { background: var(--muted); border-color: var(--muted); color: #fff; }

.btn--sm { padding: 10px 20px; font-size: .85rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  color: #fff;
  min-height: clamp(420px, 60vh, 700px);
  padding: 96px 0;
  background-color: var(--navy);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 22, 48, .55) 0%, rgba(10, 22, 48, .38) 45%, rgba(10, 22, 48, .62) 100%);
}
.hero--soft::before { background: rgba(15, 28, 55, .30); }
.hero--strong::before { background: rgba(12, 20, 40, .62); }

.hero > .container { position: relative; z-index: 1; }

.hero--short { min-height: 300px; padding: 56px 0; }
.hero--medium { min-height: 430px; }

.hero h1, .hero h2, .hero h3 { color: #fff; }
.hero h1 { font-size: clamp(2rem, 4.4vw, 3.5rem); max-width: 22ch; }
.hero p { color: rgba(255, 255, 255, .92); font-size: 1.12rem; max-width: 62ch; }

.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }

.hero__content { max-width: 760px; }

/* Home: graella d'icones */
.home-hero { min-height: min(86vh, 860px); }

.icon-panel {
  background: rgba(0, 0, 0, .56);
  border-radius: 6px;
  padding: clamp(16px, 2.4vw, 30px);
  max-width: 580px;
  margin: 0 auto;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .35);
}
.icon-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(10px, 1.6vw, 20px);
}
.icon-tile {
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 152px;
  align-content: center;
  padding: 8px;
  border-radius: 4px;
  background: transparent;
  transition: background .18s ease, transform .18s ease;
}
.icon-tile:hover { background: rgba(255, 255, 255, .12); transform: translateY(-3px); }
.icon-tile img { width: 100%; max-width: 150px; max-height: 150px; height: auto; object-fit: contain; }
.icon-tile--static { cursor: default; }
.icon-tile--static:hover { transform: none; background: transparent; }

/* ---------- Seccions ---------- */
.section { padding: clamp(48px, 7vw, 88px) 0; }
.section--tight { padding: clamp(36px, 4vw, 56px) 0; }
.section--white { background: #fff; }
.section--paper { background: #f7f9fc; }
.section--sky { background: var(--sky); color: #fff; }
.section--sky h1, .section--sky h2, .section--sky h3,
.section--sky h4, .section--sky h5, .section--sky h6 { color: #fff; }
.section--navy { background: var(--blue); color: #fff; }
.section--navy h1, .section--navy h2, .section--navy h3,
.section--navy h4, .section--navy h5, .section--navy h6 { color: #fff; }
.section--cream { background: var(--cream); }
.section--yellow { background: #fff7c7; }
.section--green { background: #e2f9e9; }

.section-head { max-width: 860px; margin-bottom: 38px; }
.section-head h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.section--navy .section-head p,
.section--sky .section-head p { color: rgba(255, 255, 255, .9); }

/* ---------- Pàgines de document ---------- */
.page-rail {
  position: relative;
  background: #fff;
  padding: clamp(46px, 6vw, 84px) 0;
}
.page-rail::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 14px;
  background: var(--sky);
}

.page-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 30px;
}
.page-head h1 {
  font-size: clamp(2.1rem, 4vw, 3.1rem);
  color: var(--sky);
  margin: 0;
}
.page-head .btn { flex: 0 0 auto; }

/* ---------- Prosa ---------- */
.prose { max-width: 900px; }
.prose--wide { max-width: 100%; }
.prose h1, .prose h2, .prose h3, .prose h4, .prose h5, .prose h6 {
  color: var(--sky);
  margin: 1.6em 0 .5em;
}
.prose h1 { font-size: clamp(1.6rem, 2.8vw, 2.1rem); }
.prose h2 { font-size: clamp(1.4rem, 2.4vw, 1.7rem); }
.prose h3 { font-size: clamp(1.2rem, 2vw, 1.4rem); }
.prose h5 { font-size: 1.05rem; }
.prose h6 { font-size: .95rem; }
.prose p, .prose li { color: var(--muted); }
.prose strong { color: var(--navy); }
.prose a { text-decoration: underline; text-underline-offset: 2px; }
.prose ul { margin-bottom: 1.2em; }
.prose > :first-child { margin-top: 0; }

.prose--light p, .prose--light li { color: rgba(255, 255, 255, .92); }
.prose--light h1, .prose--light h2, .prose--light h3,
.prose--light h4, .prose--light h5, .prose--light h6 { color: #fff; }
.prose--light strong { color: var(--yellow); }
.prose--light a { color: var(--yellow); }

.doc-shot {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.doc-shot img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Graelles i targetes ---------- */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}
.grid-2--start { align-items: start; }
.grid-2--reverse .grid__media { order: 2; }

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 60px);
  align-items: center;
}
.split + .split { margin-top: clamp(36px, 5vw, 64px); }
.split__media img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  object-fit: cover;
}
.split__media--tall img { aspect-ratio: 4 / 5; }
.split--reverse .split__media { order: 2; }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: 0 8px 24px rgba(20, 30, 60, .06);
}
.card h3, .card h4, .card h5 { color: var(--blue); }
.card p:last-child { margin-bottom: 0; }

.feature {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.feature__media img {
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  border-radius: var(--radius);
}
.feature h3, .feature h5 { margin: 0 0 .3em; }
.feature p { margin: 0; }

.info-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(20, 30, 60, .08);
}
.info-card__body { padding: 22px 24px 26px; }
.info-card__body h5 { color: var(--wine); margin-bottom: .35em; }
.info-card__body p { margin: 0; color: var(--muted); }
.info-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }

/* ---------- Llistes de passos ---------- */
.steps { display: grid; gap: clamp(34px, 5vw, 60px); }
.step {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}
.step:nth-child(even) .step__media { order: 2; }
.step__media img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  object-fit: cover;
}
.step__body h2, .step__body h3 { color: var(--blue); }
.step__body p { color: var(--muted); }

.step__num {
  display: inline-grid;
  place-items: center;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-family: "Outfit", sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  margin-bottom: 14px;
}

/* ---------- Formularis ---------- */
.form-card {
  background: #fff;
  border: 2px solid var(--blue);
  border-radius: 15px;
  padding: clamp(20px, 3vw, 32px);
  box-shadow: 0 16px 40px rgba(20, 30, 60, .08);
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 22px;
}
.form-field { display: flex; flex-direction: column; gap: 7px; }
.form-field--full { grid-column: 1 / -1; }
.form-field label {
  font-size: .9rem;
  font-weight: 600;
  color: var(--blue);
}
.form-field input[type="text"],
.form-field input[type="email"],
.form-field input[type="tel"],
.form-field input[type="date"],
.form-field textarea {
  width: 100%;
  min-height: 48px;
  padding: 11px 13px;
  border: 1px solid #cfd4de;
  border-radius: 8px;
  background: #f1f1f1;
  color: var(--navy);
  font-size: .95rem;
}
.form-field textarea { min-height: 130px; resize: vertical; }
.form-field input:focus,
.form-field textarea:focus {
  outline: 2px solid var(--sky);
  outline-offset: 1px;
  background: #fff;
}
.form-field input::placeholder,
.form-field textarea::placeholder { color: #8a8f9c; }

.radio-group { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 2px; }
.radio-group label {
  display: inline-flex;
  align-items: flex-start;
  gap: 8px;
  font-weight: 400;
  color: var(--ink);
  font-size: .93rem;
}
.radio-group input { margin-top: .3em; }

.form-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 22px;
}

.form-note { font-size: .82rem; color: var(--muted); margin-top: 12px; }

/* ---------- Mapa ---------- */
.map {
  position: relative;
  min-height: 320px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background-color: #dde7f2;
  background-image:
    linear-gradient(rgba(255, 255, 255, .75) 2px, transparent 2px),
    linear-gradient(90deg, rgba(255, 255, 255, .75) 2px, transparent 2px),
    linear-gradient(rgba(92, 132, 180, .18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(92, 132, 180, .18) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
}
.map::before {
  content: "";
  position: absolute;
  left: 0; right: 0;
  top: 46%;
  height: 26px;
  background: rgba(255, 255, 255, .9);
  transform: rotate(-8deg);
}
.map::after {
  content: "";
  position: absolute;
  left: 24%; top: 22%;
  width: 52%; height: 56%;
  background: rgba(122, 168, 118, .35);
  border-radius: 40% 60% 55% 45%;
}
.map__pin {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -100%);
  z-index: 2;
  width: 34px; height: 34px;
  background: var(--red);
  border: 3px solid #fff;
  border-radius: 50% 50% 50% 0;
  rotate: -45deg;
  box-shadow: 0 6px 14px rgba(0, 0, 0, .25);
}
.map__label {
  position: absolute;
  z-index: 2;
  left: 50%; bottom: 18px;
  transform: translateX(-50%);
  background: #fff;
  border-radius: 999px;
  padding: 8px 18px;
  font-size: .82rem;
  font-weight: 600;
  color: var(--blue);
  box-shadow: 0 6px 16px rgba(0, 0, 0, .14);
  white-space: nowrap;
}

/* ---------- Insígnies / banderes ---------- */
.flag-card {
  display: block;
  background: #fff;
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: 0 10px 30px rgba(20, 30, 60, .08);
  text-align: center;
  transition: transform .18s ease, box-shadow .18s ease;
}
.flag-card:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(20, 30, 60, .16); }
.flag-card img { margin: 0 auto; width: 100%; max-width: 260px; height: auto; }
.flag-card strong { display: block; margin-top: 12px; color: var(--navy); }
.flag-card span { display: block; font-size: .85rem; color: var(--muted); }

.affiliate {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: rgba(255, 255, 255, .55);
  border-radius: var(--radius);
  padding: 22px 26px;
  border: 1px solid var(--line);
}
.affiliate p { margin: 0; font-family: "Outfit", sans-serif; font-weight: 700; color: var(--red); font-size: 1.05rem; }

/* ---------- Manifest ---------- */
.manifest {
  position: relative;
  color: #fff;
  padding: clamp(48px, 6vw, 84px) 0;
  background-color: #1a2848;
  background-size: cover;
  background-position: center;
}
.manifest::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(10, 18, 36, .92) 0%, rgba(10, 18, 36, .82) 58%, rgba(10, 18, 36, .55) 100%);
}
.manifest > .container { position: relative; z-index: 1; }
.manifest__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}
.manifest__title { font-size: clamp(1.8rem, 3.4vw, 2.7rem); color: #fff; margin-bottom: 26px; }
.manifest .page-head h1 { color: #fff; }
.manifest__aside { position: sticky; top: 24px; display: grid; gap: 18px; }
.manifest__poster { border-radius: 8px; box-shadow: 0 24px 60px rgba(0, 0, 0, .45); }
.manifest__flags { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.manifest__flags .flag-card { box-shadow: 0 14px 30px rgba(0, 0, 0, .35); }
.manifest .prose { max-width: 100%; }
.manifest .prose p { color: rgba(255, 255, 255, .92); }

/* ---------- Galeria ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
  margin: 26px 0 8px;
}
.gallery img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px;
}

/* ---------- Manual ---------- */
.manual-row {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: clamp(18px, 3vw, 32px);
  align-items: center;
  padding: 24px 0;
  border-top: 1px solid var(--line);
}
.manual-row:first-of-type { border-top: 0; }
.manual-row > img { width: 100%; max-width: 100px; height: auto; }
.manual-row .prose h2 { margin-top: 0; }

@media (max-width: 560px) {
  .manual-row { grid-template-columns: 64px minmax(0, 1fr); }
}

/* ---------- Crides ---------- */
.cta-band {
  background: var(--blue);
  color: #fff;
  padding: clamp(30px, 4vw, 48px) 0;
}
.cta-band .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.cta-band h2 { color: #fff; margin: 0 0 .25em; font-size: clamp(1.3rem, 2.2vw, 1.7rem); }
.cta-band p { margin: 0; color: rgba(255, 255, 255, .85); }

/* ---------- Peu ---------- */
.site-footer { background: var(--sky); color: #fff; padding: 56px 0 24px; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--cream); }
.site-footer .btn--white { color: var(--blue); }
.site-footer .btn--white:hover { color: #fff; }

.footer-main {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  padding: 44px 0 34px;
  border-bottom: 1px solid rgba(255, 255, 255, .28);
}
.footer-cta h2 {
  color: #fff;
  font-size: clamp(.95rem, 1.4vw, 1.1rem);
  font-weight: 600;
  line-height: 1.5;
  margin: 0 0 16px;
  max-width: 38ch;
}
.footer-cta h2 span { display: block; font-weight: 400; }

.footer-logos {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: end;
  padding: 0;
}
.footer-logo { text-align: center; }
.footer-logo img {
  height: 62px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  margin: 0 auto 10px;
}
.footer-logo--portrait img { height: 78px; }
.footer-logo p {
  margin: 0;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  line-height: 1.45;
  font-weight: 700;
}
.footer-logo p em { display: block; font-size: .72rem; font-weight: 400; text-transform: none; letter-spacing: 0; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: 22px;
  font-size: .82rem;
}
.footer-bottom p { margin: 0; opacity: .9; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.footer-links a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Responsiu ---------- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .manifest__grid { grid-template-columns: 1fr; }
  .manifest__aside { position: static; grid-template-columns: minmax(0, 320px) minmax(0, 1fr); align-items: start; }
}

@media (max-width: 820px) {
  .brand__sub { display: none; }
  .header-inner { min-height: 74px; }
  .brand__mark { height: 44px; }
  .brand__name { font-size: 1rem; }
  .socials { display: none; }
  .hero { min-height: 440px; padding: 64px 0; }
  .hero--short { min-height: 220px; padding: 44px 0; }
  .grid-2, .grid-3, .split, .step { grid-template-columns: 1fr; }
  .step:nth-child(even) .step__media,
  .split--reverse .split__media,
  .grid-2--reverse .grid__media { order: 0; }
  .split--reverse .split__media { order: 2; }
  .grid-2--reverse .grid__media { order: 2; }
  .footer-logos { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .footer-main { grid-template-columns: 1fr; text-align: left; }
  .footer-cta h2 { max-width: 46ch; }
  .form-grid { grid-template-columns: 1fr; }
  .manifest__aside { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .icon-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .icon-tile { min-height: 136px; }
  .page-rail::before { width: 8px; }
  .footer-logos { gap: 18px; }
  .footer-logo img { height: 54px; }
  .footer-logo--portrait img { height: 68px; }
  .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero h1 { font-size: clamp(1.8rem, 8vw, 2.4rem); }
  .btn { width: 100%; }
  .hero__actions .btn { width: auto; }
}

/* ---------- Accessibilitat ---------- */
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}
