/* ==========================================================================
   Polítiques d'igualtat · Ajuntament de Sant Just Desvern
   Full d'estils únic del web estàtic (igualtat.santjust.net)

   Índex
   1. Tipografia (Roboto allotjada al mateix servidor)
   2. Variables de disseny (colors, mides)
   3. Base i accessibilitat
   4. Capçalera: barra negra, banda gris, cercador i menú
   5. Bandes de color (telèfons i recursos)
   6. Contingut: títols, targetes, imatges
   7. Components: bàners, activitats, desplegables, comptador
   8. Peu de pàgina
   9. Cercador (resultats)
   10. Avís de galetes i pàgines legals
   11. Adaptació a mòbil
   12. Impressió
   ========================================================================== */

/* 1. Tipografia ----------------------------------------------------------- */
@font-face { font-family: "Roboto"; font-style: normal; font-weight: 300; font-display: swap; src: url("../fonts/roboto-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "Roboto"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/roboto-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Roboto"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/roboto-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Roboto"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/roboto-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Roboto"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/roboto-latin-700-normal.woff2") format("woff2"); }

/* 2. Variables ------------------------------------------------------------ */
:root {
  --c-black: #000;
  --c-band: #424242;          /* banda gris de la capçalera i peu */
  --c-band-dark: #333;
  --c-text: #2a2530;
  --c-muted: #5d5566;
  --c-head: #3f2386;          /* títols (lila fosc de l'original) */
  --c-purple: #6b3fa0;        /* bandes de color (contrast AA amb text blanc) */
  --c-purple-dark: #55308a;
  --c-lilac: #b48be0;         /* detalls: subratllat del menú actiu */
  --c-bg: #ebe4f2;            /* fons general lila clar */
  --c-soft: #f5f1f9;
  --c-card: #fff;
  --c-line: #ddd3e8;
  --c-link: #4b2a99;
  --c-focus: #ffbf47;
  --c-mark: #fff1a8;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 6px 24px rgba(63, 35, 134, .08);
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 32px);
}

/* 3. Base ----------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 16px; }
body {
  margin: 0; background: var(--c-bg); color: var(--c-text);
  font: 400 1.0625rem/1.65 "Roboto", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--c-link); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--c-purple); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--c-focus); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, h4 { color: var(--c-head); line-height: 1.22; margin: 0 0 .55em; font-weight: 700; }
h1 { font-size: clamp(1.9rem, 1.4rem + 1.8vw, 2.6rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.4rem, 1.15rem + 1vw, 1.85rem); }
h3 { font-size: 1.22rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.3em; }
li + li { margin-top: .35em; }
strong { font-weight: 700; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
[hidden] { display: none !important; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--c-focus); color: #000; padding: 10px 16px; border-radius: 8px; font-weight: 700; }
.skip:focus { top: 12px; }
.ico { width: 1em; height: 1em; fill: currentColor; flex: none; }
mark { background: var(--c-mark); color: inherit; padding: 0 .1em; border-radius: 3px; }

/* 4. Capçalera ------------------------------------------------------------ */
.topbar { background: var(--c-black); color: #fff; }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 56px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; font-weight: 700; font-size: 1.3rem; letter-spacing: -.01em; }
.brand:hover { color: #fff; }
.brand img { width: 34px; height: 34px; }
.social { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.social li + li { margin: 0; }
.social a { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; color: #fff; }
.social a:hover { background: rgba(255, 255, 255, .14); color: #fff; }
.social .ico { width: 17px; height: 17px; }

.band { background: var(--c-band); color: #fff; }
.band-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 22px; }
.site-title { margin: 0; font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.6rem); font-weight: 300; letter-spacing: -.015em; line-height: 1.15; color: #ececec; }
.site-title a { color: inherit; text-decoration: none; }
.site-title a:hover { color: #fff; }

.search { position: relative; flex: 0 1 400px; }
.search form { display: flex; align-items: center; background: #fff; border-radius: 999px; padding: 0 8px 0 18px; height: 48px; }
.search .ico { width: 17px; height: 17px; color: #555; }
.search input {
  flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; outline: 0;
  font: inherit; font-size: 1rem; color: #222; padding: 0 10px;
}
.search input::-webkit-search-cancel-button { cursor: pointer; }
.search form:focus-within { box-shadow: 0 0 0 3px var(--c-focus); }
.search button[type="submit"] {
  border: 0; background: var(--c-purple); color: #fff; font: inherit; font-weight: 700; font-size: .9rem;
  border-radius: 999px; padding: 8px 14px; cursor: pointer;
}
.search button[type="submit"]:hover { background: var(--c-purple-dark); }
.suggest {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 50;
  background: #fff; color: var(--c-text); border-radius: var(--radius-sm);
  box-shadow: 0 18px 48px rgba(0, 0, 0, .3); padding: 6px; max-height: 70vh; overflow: auto;
}
.suggest ul { list-style: none; margin: 0; padding: 0; }
.suggest li + li { margin: 0; }
.suggest a { display: block; padding: 10px 12px; border-radius: 8px; text-decoration: none; color: inherit; }
.suggest a:hover, .suggest a[aria-selected="true"] { background: var(--c-soft); }
.suggest .s-sec { display: block; font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--c-purple); font-weight: 700; }
.suggest .s-tit { display: block; font-weight: 700; color: var(--c-head); }
.suggest .s-snip { display: block; font-size: .88rem; color: var(--c-muted); line-height: 1.45; }
.suggest .s-all { font-weight: 700; color: var(--c-link); text-align: center; border-top: 1px solid var(--c-line); margin-top: 4px; }
.suggest .s-empty { padding: 12px; font-size: .95rem; color: var(--c-muted); }

.nav { margin-top: 18px; }
.nav ul { display: flex; flex-wrap: wrap; gap: 0 22px; list-style: none; margin: 0; padding: 0; }
.nav li + li { margin: 0; }
.nav a {
  position: relative; display: block; padding: 10px 0 16px; color: #fff; text-decoration: none;
  font-weight: 700; font-size: .95rem; white-space: nowrap;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px;
  border-radius: 4px 4px 0 0; background: transparent; transition: background .15s;
}
.nav a:hover::after { background: rgba(255, 255, 255, .35); }
.nav a[aria-current="page"]::after { background: var(--c-lilac); }
.nav-tools { display: none; }

/* 5. Bandes de color -------------------------------------------------------- */
.phones {
  background: var(--c-purple); color: #fff; text-align: center;
  padding: 22px 0 64px; border-radius: 0 0 50% 50% / 0 0 72px 72px;
}
.phones-intro { font-weight: 500; margin: 0 0 18px; }
.phones ul { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; list-style: none; margin: 0; padding: 0; }
.phones li + li { margin: 0; }
.phones .ico { width: 30px; height: 30px; color: #e8dcf6; margin: 0 auto 8px; }
.phones .ph-label { display: block; text-transform: uppercase; font-weight: 700; font-size: .92rem; letter-spacing: .02em; }
.phones .ph-org { display: block; font-weight: 300; font-size: 1.2rem; }
.phones a { display: inline-block; color: #fff; font-weight: 700; font-size: 1.45rem; text-decoration: none; padding: 2px 10px; border-radius: 8px; }
.phones a:hover { background: rgba(255, 255, 255, .15); color: #fff; }

.resources {
  background: var(--c-purple); color: #fff; margin-top: clamp(40px, 6vw, 72px);
  padding: 76px 0 40px; border-radius: 50% 50% 0 0 / 72px 72px 0 0;
}
.resources ul { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; list-style: none; margin: 0; padding: 0; }
.resources li + li { margin: 0; }
.res { display: flex; gap: 14px; align-items: flex-start; color: #fff; text-decoration: none; padding: 10px; border-radius: var(--radius-sm); height: 100%; }
a.res:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.res .ico { width: 34px; height: 34px; color: #e8dcf6; margin-top: 2px; }
.res-t { display: block; font-size: 1.25rem; font-weight: 500; text-transform: uppercase; line-height: 1.2; }
.res-d { display: block; font-size: .95rem; line-height: 1.35; color: #f1eaf9; }
.res-d strong { color: #fff; }

/* 6. Contingut -------------------------------------------------------------- */
main { display: block; }
.page-head { padding-top: clamp(30px, 5vw, 52px); padding-bottom: 8px; }
.page-head h1 { margin: 0; }
.section { padding-top: clamp(22px, 3.5vw, 36px); }
.card {
  background: var(--c-card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: clamp(22px, 3.5vw, 40px);
}
.card > :last-child, .card-body > :last-child { margin-bottom: 0; }
.card h2 { font-size: clamp(1.3rem, 1.1rem + .8vw, 1.65rem); }
.grid-2 { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(20px, 3vw, 32px); align-items: start; }
.grid-2--even { grid-template-columns: 1fr 1fr; }
.grid-2--side { grid-template-columns: 1.7fr 1fr; }
.figure { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: #fff; }
.figure img { width: 100%; }
.figure--plain { box-shadow: none; background: transparent; border-radius: 0; }
.lead { font-size: 1.12rem; }
.center { text-align: center; }
.symbol { width: 74px; margin: clamp(26px, 4vw, 40px) auto 0; }
.doc-link {
  display: inline-flex; align-items: center; gap: 10px; font-weight: 700; text-decoration: none;
  background: var(--c-soft); border: 1px solid var(--c-line); border-radius: 999px; padding: 9px 18px 9px 14px;
  margin: 0 0 1em;
}
.doc-link .ico { width: 18px; height: 18px; color: var(--c-purple); }
.doc-link:hover { background: #fff; border-color: var(--c-lilac); }
.ext-note { font-size: .82rem; color: var(--c-muted); }
.kicker { font-size: 1.12rem; font-weight: 500; color: var(--c-head); line-height: 1.5; }
.dash-list { list-style: none; padding: 0; }
.dash-list li { position: relative; padding-left: 1.2em; }
.dash-list li::before { content: "–"; position: absolute; left: 0; color: var(--c-purple); font-weight: 700; }
.float-img { float: right; width: min(42%, 220px); margin: 4px 0 12px 22px; border-radius: var(--radius-sm); }
.clear::after { content: ""; display: table; clear: both; }
.stack > * + * { margin-top: clamp(20px, 3vw, 28px); }

/* 7. Components ------------------------------------------------------------- */
/* Bàners de la portada */
.banners { margin-top: clamp(26px, 4vw, 40px); }
.banners ul { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; list-style: none; margin: 0; padding: 0; }
.banners li + li { margin: 0; }
.banners a { display: block; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: #fff; transition: transform .15s, box-shadow .15s; }
.banners a:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(63, 35, 134, .18); }
.banners img { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; }

/* Activitats i miscel·lànies (imatge + text) */
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(18px, 3vw, 28px); }
.tile { display: flex; flex-direction: column; background: var(--c-card); border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(20px, 3vw, 30px); }
.tile-img { width: 160px; margin: 0 auto 14px; }
.tile-img img { width: 100%; }
.tile h2, .tile h3 { font-size: 1.35rem; text-align: center; }
.tile h2 a, .tile h3 a { text-decoration: none; }
.tile h2 a:hover, .tile h3 a:hover { text-decoration: underline; }
.tile p:last-child { margin-bottom: 0; }
.tile--wide { grid-column: 1 / -1; }
.tile--wide .tile-in { display: grid; grid-template-columns: 160px 1fr; gap: 26px; align-items: start; }
.tile--wide .tile-img { margin: 0; }
.tile--wide h2 { text-align: left; }

/* Comptador destacat */
.counter {
  display: flex; gap: 18px; align-items: center; background: var(--c-purple); color: #fff;
  border-radius: var(--radius); padding: 26px 26px; box-shadow: var(--shadow);
}
.counter .ico { width: 56px; height: 56px; color: #fff; }
.counter .res-t { font-size: 1.35rem; }
.counter .res-d { font-size: 1.05rem; }

/* Desplegables (Participació) */
.acc { border-radius: var(--radius-sm); background: var(--c-card); box-shadow: var(--shadow); }
.acc + .acc { margin-top: 12px; }
.acc summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 22px; font-weight: 700; color: var(--c-head); font-size: 1.1rem; border-radius: var(--radius-sm);
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after {
  content: ""; flex: none; width: 12px; height: 12px; border-right: 3px solid var(--c-purple); border-bottom: 3px solid var(--c-purple);
  transform: rotate(45deg) translate(-2px, -2px); transition: transform .2s;
}
.acc[open] summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
.acc summary:hover { background: var(--c-soft); }
.acc-body { padding: 4px 22px 20px; }
.acc-body > :last-child { margin-bottom: 0; }
.acc-tools { display: flex; justify-content: flex-end; margin-bottom: 10px; }
.btn-link { font: inherit; font-weight: 700; color: var(--c-link); background: none; border: 0; cursor: pointer; padding: 6px 4px; text-decoration: underline; text-underline-offset: .18em; }

/* 8. Peu ---------------------------------------------------------------------- */
.footer { background: var(--c-band); color: #e2e2e2; font-size: .93rem; }
.footer a { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 0; padding: 0; }
.footer-col { padding: 34px 26px 30px; }
.footer-col + .footer-col { border-left: 1px solid #555; }
.footer-col:first-child { padding-left: 0; display: flex; flex-direction: column; justify-content: center; gap: 16px; }
.footer h2 { color: #c9a8ee; font-size: 1.15rem; font-weight: 500; margin-bottom: 16px; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li + li { margin-top: 4px; }
.footer .social li + li { margin-top: 0; }
.footer .links a { text-decoration: none; }
.footer .links a:hover { text-decoration: underline; }
.footer .social { gap: 8px; }
.footer .social a { background: #5a5a5a; border-radius: 6px; width: 36px; height: 36px; }
.footer .social a:hover { background: var(--c-purple); }
.footer .brand { font-size: 1.15rem; }
.footer .brand img { width: 30px; height: 30px; }
.footer address { font-style: normal; }
.footer-bottom { border-top: 1px solid #555; background: var(--c-band-dark); font-size: .84rem; }
.footer-bottom .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; padding-block: 16px; }
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.footer-bottom li + li { margin: 0; }
.link-btn { font: inherit; color: #fff; background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: .18em; }

/* 9. Cercador: pàgina de resultats ------------------------------------------------ */
.results { list-style: none; padding: 0; margin: 0; }
.results li + li { margin-top: 14px; }
.results a { display: block; background: var(--c-card); border-radius: var(--radius-sm); box-shadow: var(--shadow); padding: 16px 20px; text-decoration: none; color: inherit; }
.results a:hover { outline: 2px solid var(--c-lilac); }
.results .s-sec { font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--c-purple); font-weight: 700; }
.results .s-tit { display: block; font-size: 1.15rem; font-weight: 700; color: var(--c-head); margin: 2px 0 4px; }
.results .s-snip { display: block; color: var(--c-muted); font-size: .95rem; }
.search-page form { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.search-page input { flex: 1 1 260px; font: inherit; padding: 12px 18px; border: 2px solid var(--c-line); border-radius: 999px; background: #fff; }
.search-page input:focus { border-color: var(--c-purple); outline: 0; box-shadow: 0 0 0 3px var(--c-focus); }
.btn { font: inherit; font-weight: 700; cursor: pointer; padding: 12px 22px; border-radius: 999px; border: 2px solid var(--c-purple); background: var(--c-purple); color: #fff; text-decoration: none; display: inline-block; }
.btn:hover { background: var(--c-purple-dark); border-color: var(--c-purple-dark); color: #fff; }
.btn--ghost { background: #fff; color: var(--c-purple); }
.btn--ghost:hover { background: var(--c-soft); color: var(--c-purple-dark); }
.flash { animation: flash 2.4s ease-out 1; }
@keyframes flash { 0%, 30% { box-shadow: 0 0 0 4px var(--c-lilac); } 100% { box-shadow: var(--shadow); } }

/* 10. Avís de galetes --------------------------------------------------------------
   Criteris (LSSI art. 22.2, RGPD i Guia sobre l'ús de galetes de l'AEPD, actualització 2023):
   el consentiment no s'infereix de seguir navegant; «Acceptar» i «Rebutjar» tenen el mateix
   pes visual a la primera capa; les opcions no necessàries surten desmarcades; l'elecció es
   pot canviar en qualsevol moment des del peu («Configuració de galetes»). */
.cc {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 80;
  max-width: 820px; margin-inline: auto; max-height: calc(100vh - 32px); overflow: auto;
  background: #fff; color: var(--c-text); border-radius: var(--radius);
  box-shadow: 0 16px 48px rgba(0, 0, 0, .3); border-top: 5px solid var(--c-purple);
}
.cc[hidden] { display: none; }
.cc-inner { padding: 20px 22px 18px; }
.cc-title { font-size: 1.15rem; margin: 0 0 8px; }
.cc-text { font-size: .93rem; margin: 0 0 14px; }
.cc-prefs fieldset { border: 1px solid var(--c-line); border-radius: var(--radius-sm); margin: 0 0 14px; padding: 6px 14px 4px; }
.cc-prefs legend { font-weight: 700; font-size: .9rem; padding: 0 6px; }
.cc-opt { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; font-size: .9rem; }
.cc-opt + .cc-opt { border-top: 1px solid var(--c-line); }
.cc-opt input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: var(--c-purple); }
.cc-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cc-actions .btn { flex: 1 1 180px; padding: 11px 18px; font-size: .93rem; }
.legal { max-width: 880px; }
.legal h2 { font-size: 1.25rem; margin-top: 1.8em; }
.legal-date { color: var(--c-muted); font-size: .95rem; }
.table-wrap { overflow-x: auto; margin: 0 0 1em; }
.legal table { width: 100%; border-collapse: collapse; font-size: .93rem; min-width: 560px; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--c-line); }
.legal th { background: var(--c-soft); }

/* 11. Mòbil --------------------------------------------------------------------- */
@media (max-width: 1180px) {
  .nav ul { gap: 0 16px; }
  .nav a { font-size: .9rem; }
}
@media (max-width: 960px) {
  .band-row { padding-top: 16px; padding-bottom: 14px; }
  .nav-tools { display: flex; gap: 8px; }
  .nav-tools button {
    display: inline-flex; align-items: center; gap: 8px; font: inherit; font-weight: 700; font-size: .95rem;
    color: #fff; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 999px; padding: 9px 14px; cursor: pointer;
  }
  .nav-tools button[aria-expanded="true"] { background: var(--c-purple); border-color: var(--c-purple); }
  .nav-tools .ico { width: 17px; height: 17px; }
  .js .search { display: none; flex-basis: 100%; }
  .js .search.is-open { display: block; padding-bottom: 14px; }
  .band-row { flex-wrap: wrap; gap: 12px; }
  .site-title { flex: 1 1 auto; min-width: 0; }
  .js .nav { display: none; margin-top: 0; padding-bottom: 12px; }
  .js .nav.is-open { display: block; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav a { padding: 12px 4px; border-top: 1px solid rgba(255, 255, 255, .12); white-space: normal; }
  .nav a::after { top: 10px; bottom: 10px; left: auto; right: 0; width: 5px; height: auto; border-radius: 4px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-col:first-child { grid-column: 1 / -1; padding: 30px 0 6px; }
  .footer-col { padding: 22px 0; }
  .footer-col + .footer-col { border-left: 0; }
  .resources ul { grid-template-columns: 1fr 1fr; }
  .banners ul { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .grid-2, .grid-2--even, .grid-2--side { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: 1fr; }
  .tile--wide .tile-in { grid-template-columns: 1fr; }
  .tile--wide .tile-img { margin: 0 auto; }
  .tile--wide h2 { text-align: center; }
  .phones { padding-bottom: 50px; border-radius: 0 0 50% 50% / 0 0 40px 40px; }
  .phones ul { grid-template-columns: 1fr; gap: 10px; text-align: left; }
  .phones li {
    display: grid; grid-template-columns: auto 1fr auto; grid-template-rows: auto auto; column-gap: 12px; align-items: center;
    background: rgba(255, 255, 255, .1); border-radius: 12px; padding: 10px 12px;
  }
  .phones li .ico { grid-row: 1 / 3; margin: 0; width: 26px; height: 26px; }
  .phones .ph-label { grid-column: 2; font-size: .8rem; }
  .phones .ph-org { grid-column: 2; font-size: 1rem; }
  .phones li a { grid-column: 3; grid-row: 1 / 3; font-size: 1.3rem; white-space: nowrap; }
  .phones li:last-child .ph-label { grid-row: 1 / 3; }
  .resources { padding-top: 56px; border-radius: 50% 50% 0 0 / 40px 40px 0 0; }
  .float-img { float: none; width: 100%; max-width: 300px; margin: 0 0 14px; }
}
@media (max-width: 520px) {
  body { font-size: 1rem; }
  .topbar .wrap { min-height: 50px; }
  .brand { font-size: 1.12rem; gap: 9px; }
  .brand img { width: 28px; height: 28px; }
  .social a { width: 34px; height: 34px; }
  .resources ul, .banners ul { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cc { left: 8px; right: 8px; bottom: 8px; max-height: calc(100vh - 16px); }
  .cc-inner { padding: 16px 16px 14px; }
  .cc-text { font-size: .87rem; }
  .cc-actions .btn { flex-basis: 100%; }
  .site-title { font-size: 1.6rem; }
  .nav-tools button { padding: 8px 12px; }
}
@media (max-width: 430px) {
  .site-title { font-size: 1.38rem; }
  .nav-tools { gap: 6px; }
  .nav-tools button { padding: 7px 11px; font-size: .9rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* 12. Impressió ------------------------------------------------------------------ */
@media print {
  .topbar .social, .search, .nav, .nav-tools, .resources, .cc, .footer .social, .skip, .banners { display: none !important; }
  body { background: #fff; }
  .card, .tile, .acc, .figure { box-shadow: none; border: 1px solid #ccc; }
  .acc-body { display: block !important; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .8em; word-break: break-all; }
}
