/* ==========================================================================
   novaprimaries.cat — full de estils (redisseny 24/09/2026)
   Mateix color corporatiu (#0066cc) i mateixa estructura de pàgines.
   L'antic style.css es conserva a private/bak-20260924/style.css
   ========================================================================== */

:root {
  --np-blue: #0066cc;
  --np-blue-dark: #004f9e;
  --np-blue-light: #1e8fff;
  --np-blue-tint: #eaf3fc;
  --np-yellow: #fec12b;
  --np-yellow-dark: #e3a600;
  --np-green: #1a9e5c;
  --np-ink: #1d2733;
  --np-text: #33404d;
  --np-muted: #6b7784;
  --np-line: #dfe5ec;
  --np-bg: #ffffff;
  --np-bg-soft: #f4f7fa;
  --np-radius: 12px;
  --np-radius-sm: 8px;
  --np-shadow: 0 1px 2px rgba(29, 39, 51, .06), 0 8px 24px rgba(29, 39, 51, .08);
  --np-shadow-hover: 0 2px 4px rgba(29, 39, 51, .08), 0 14px 32px rgba(0, 102, 204, .16);
  --np-font: "Goetia", "Custom", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --np-max: 1200px;
}

/* Tipografia pròpia del web: Goetia (fitxers a /fonts/Goetia/) */
@font-face { font-family: "Goetia"; src: url('/fonts/Goetia/GOETIA-Light.woff2') format('woff2'), url('/fonts/Goetia/GOETIA-Light.woff') format('woff'), url('/fonts/Goetia/GOETIA-Light.ttf') format('truetype'); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Goetia"; src: url('/fonts/Goetia/GOETIA-Regular.ttf') format('truetype'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Goetia"; src: url('/fonts/Goetia/GOETIA-Semibold.ttf') format('truetype'); font-weight: 500 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Goetia"; src: url('/fonts/Goetia/GOETIA-Bold.ttf') format('truetype'); font-weight: 700 900; font-style: normal; font-display: swap; }
/* Noms de font que encara usen algunes plantilles antigues */
@font-face { font-family: "Custom-light"; src: url('/fonts/Goetia/GOETIA-Light.woff2') format('woff2'), url('/fonts/Goetia/GOETIA-Light.ttf') format('truetype'); font-weight: lighter; }
@font-face { font-family: "Custom"; src: url('/fonts/Goetia/GOETIA-Regular.ttf') format('truetype'); font-weight: normal; }
@font-face { font-family: "Custom"; src: url('/fonts/Goetia/GOETIA-Semibold.ttf') format('truetype'); font-weight: bold; }
@font-face { font-family: "Custom-bolder"; src: url('/fonts/Goetia/GOETIA-Bold.ttf') format('truetype'); font-weight: bold; }

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  padding: 0 !important;
  font-family: var(--np-font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--np-text);
  background: var(--np-bg);
  -webkit-font-smoothing: antialiased;
}
body, div, a, p, span, li, input, button, select, textarea { font-family: var(--np-font); }
*, *::before, *::after { box-sizing: border-box; }
img { max-width: 100%; height: auto; }

a { color: var(--np-blue) !important; text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--np-blue-dark) !important; text-decoration: underline; }
a.nodec, a.nodec:hover { text-decoration: none !important; }
.page a:hover { text-decoration: underline; }
a:link, a:visited { text-decoration: none; }

h1, h2, h3, h4, h5, h6 { color: var(--np-ink); font-weight: 700; line-height: 1.2; letter-spacing: -.01em; }
h1 {
  font-size: 2.4rem;
  color: var(--np-blue) !important;
  text-transform: uppercase;
  text-align: center;
  letter-spacing: .01em;
  margin: 2.5rem 0 2rem !important;
  padding: 0 !important;
}
h2 { font-size: 1.75rem; font-weight: 700; }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.15rem; }
h6 { margin-bottom: 0; font-weight: 700 !important; font-size: 15px !important; }
p { margin: 0 0 1rem; text-align: left; }
p, body { font-size: 17px; }
li { list-style-type: disc; }
::selection { color: #fff; background: var(--np-blue); }

.white, h3.white, a.white { color: #fff !important; }
a.white:hover { color: var(--np-yellow) !important; }
.red { color: var(--np-blue) !important; }
.black { color: #444 !important; }
.upper { text-transform: uppercase; }
.bold, .bold font { font-weight: 700 !important; }
.left { float: left; }
.right { float: right; text-align: right; }
.center { text-align: center; margin-left: auto; margin-right: auto; }
.aleft { text-align: left !important; }
.clearleft { clear: left; }
.nopad { padding: 0 !important; }
.nomargin { margin: 0 !important; }
.nomargins, .nomargins div { margin: 0 !important; padding: 0 !important; }
.pad20 { padding: 40px 0 30px; }
.small, .small div, .small div span { font-size: 12px !important; }
.small { font-weight: 700; line-height: 1.1 !important; }
.small div, .small div span { background: none !important; }
.small2 { font-size: 14px !important; }
.small3 { font-size: 16px; }
.size1 { font-size: 19px; }
.size2 { font-size: 23px; }
.size3 { font-size: 32px; line-height: 1.25; }
.size4 { font-size: 44px; }
.size5 { font-size: 55px; }
.bigger { font-size: 1.1em; }
.cap { font-size: 14px; letter-spacing: 1px; text-transform: uppercase; }
span.section { font-size: 16px; text-transform: uppercase; color: #000; font-weight: 400; letter-spacing: 1px; }
.line { margin: 10px 0 40px; border-top: 1px solid var(--np-line); }
.addspace { padding-top: 40px; }
.desktop_only { display: block; }
.mobile_only { display: none; }

/* --------------------------------------------------------------------------
   Contenidor i pàgina
   -------------------------------------------------------------------------- */
.maxpage { max-width: var(--np-max); margin-left: auto; margin-right: auto; }
.container-fluid { padding: 0 !important; }
div.page { clear: both; min-height: 500px; max-width: 100%; margin: 0 auto; padding-bottom: 2rem; }
body.home div.page { padding-top: 0; padding-bottom: 0; }
#wrapper { overflow-x: clip; }
.page-center { max-width: 800px; margin: auto; }

/* --------------------------------------------------------------------------
   Capçalera
   -------------------------------------------------------------------------- */
header.header { background: #fff; position: relative; z-index: 50; }
header .top { display: none; }
.headbar {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1rem 1.25rem;
}
.headbar .logo { flex: 0 0 auto; line-height: 0; }
.headbar .logo img { height: 100px; width: auto; max-width: none; display: block; }
.headbar .botonera {
  display: flex;
  gap: .6rem;
  margin: 0 0 0 auto;
  padding: 0;
  list-style: none;
}
.headbar .botonera li { list-style: none; margin: 0; }
.topbut {
  display: inline-block;
  padding: .55rem 1.25rem;
  border-radius: 999px;
  border: 2px solid var(--np-blue);
  color: var(--np-blue) !important;
  font-weight: 600;
  font-size: .95rem;
  line-height: 1.2;
  white-space: nowrap;
  transition: background .15s ease, color .15s ease, transform .15s ease;
}
.topbut:hover { background: var(--np-blue-tint); text-decoration: none; transform: translateY(-1px); }
.topbut.invert { background: var(--np-blue); color: #fff !important; }
.topbut.invert:hover { background: var(--np-blue-dark); }
.topbut.groc, .groc {
  background: var(--np-yellow) !important;
  border-color: var(--np-yellow) !important;
  color: var(--np-ink) !important;
}
.topbut.groc:hover { background: var(--np-yellow-dark) !important; border-color: var(--np-yellow-dark) !important; }

/* Botó hamburguesa */
.navbar-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 48px;
  height: 48px;
  padding: 10px;
  margin: 0;
  border: 2px solid var(--np-blue);
  border-radius: var(--np-radius-sm);
  background: #fff;
  cursor: pointer;
  flex: 0 0 auto;
}
.navbar-toggle .icon-bar { display: block; width: 100%; height: 3px; border-radius: 3px; background: var(--np-blue); transition: transform .2s ease, opacity .2s ease; }
.navbar-toggle:focus { outline: 3px solid rgba(0, 102, 204, .35); outline-offset: 2px; }

/* Barra de menú */
.mainnav { background: var(--np-blue); }
.mainnav .maxpage { padding: 0 1.25rem; }
#menu_visible { display: block; }
#menu_visible ul.menu {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-start;
  gap: .25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
#menu_visible ul.menu li { list-style: none; margin: 0; padding: 0; float: none; }
#menu_visible ul.menu li a {
  display: block;
  padding: .9rem 1rem;
  color: #fff !important;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: .01em;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  transition: background .15s ease, border-color .15s ease;
}
#menu_visible ul.menu li a:hover,
#menu_visible ul.menu li a:focus { background: rgba(255, 255, 255, .12); text-decoration: none; border-bottom-color: var(--np-yellow); }
#menu_visible ul.menu li.active a { border-bottom-color: var(--np-yellow); }
#menu_visible ul.menu li a span.bg { display: inline; }

/* Menú lateral (mòbil i tauleta) */
.sidebar {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  height: 100dvh;
  width: min(320px, 88vw);
  background: #fff;
  z-index: 1000;
  overflow-y: auto;
  padding: 4.5rem 0 2rem;
  box-shadow: -8px 0 32px rgba(0, 0, 0, .18);
  transform: translateX(105%);
  transition: transform .28s ease;
}
body.nav-open .sidebar { transform: translateX(0); }
.sidebar a {
  display: block;
  padding: .85rem 1.75rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--np-ink) !important;
  border-left: 4px solid transparent;
}
.sidebar a:hover, .sidebar a:focus { background: var(--np-blue-tint); border-left-color: var(--np-blue); text-decoration: none; }
.sidebar a.sidebar-title { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--np-muted) !important; font-weight: 700; pointer-events: none; padding-bottom: .25rem; }
.sidebar a.sidebar-cta { margin: 1rem 1.75rem 0; padding: .8rem 1.25rem; border-radius: 999px; background: var(--np-yellow); text-align: center; border-left: 0; }
.sidebar a.sidebar-cta:hover { background: var(--np-yellow-dark); }
.sidebar hr { margin: 1rem 1.75rem; border: 0; border-top: 1px solid var(--np-line); }
.sidebar .closebtn {
  position: absolute;
  top: .75rem;
  right: .75rem;
  width: 44px;
  height: 44px;
  padding: 0;
  font-size: 2rem;
  line-height: 44px;
  text-align: center;
  border-radius: 50%;
  border-left: 0;
}
.sidebar .closebtn:hover { background: var(--np-blue-tint); }
.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(29, 39, 51, .45);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity .28s ease;
}
body.nav-open .nav-backdrop { opacity: 1; pointer-events: auto; }
body.nav-open { overflow: hidden; }
.explore { display: none; }

/* --------------------------------------------------------------------------
   Hero / carrusel
   -------------------------------------------------------------------------- */
.carousel { margin-bottom: 0; }
.carousel-indicators { display: none; }
.carousel-control-prev, .carousel-control-next { width: 8%; opacity: .7; }
.carousel-control-prev-icon, .carousel-control-next-icon { width: 2rem; height: 2rem; }

/* Home */
body.home .carousel-item { height: clamp(380px, 52vw, 600px); background: var(--np-ink); overflow: hidden; }
body.home .carousel-item > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
body.home .carousel-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 40, 90, .78) 0%, rgba(0, 40, 90, .45) 45%, rgba(0, 40, 90, .05) 100%);
}
body.home .carousel-item .container { position: relative; z-index: 2; height: 100%; max-width: var(--np-max); padding: 0 1.25rem; }
body.home .carousel-caption {
  position: absolute;
  left: 1.25rem;
  right: auto;
  top: 50%;
  bottom: auto;
  transform: translateY(-50%);
  width: min(680px, 90%);
  padding: 0;
  margin: 0;
  float: none;
  background: none;
  text-align: left;
  color: #fff;
  z-index: 3;
}
body.home .carousel-caption h1, body.home .carousel-caption h2 {
  color: #fff !important;
  font-size: clamp(2rem, 4.5vw, 3.4rem) !important;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -.02em;
  text-transform: none;
  text-align: left;
  margin: 0 0 1.5rem !important;
  padding: 0 !important;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .25);
}
body.home .carousel-caption p { margin: 0; }
body.home .carousel-caption a.btn {
  display: inline-block;
  float: none;
  margin: 0 !important;
  padding: .85rem 1.75rem !important;
  border-radius: 999px;
  background: var(--np-yellow) !important;
  color: var(--np-ink) !important;
  font-weight: 700;
  font-size: 1.05rem;
  border: 0;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .2);
  transition: transform .15s ease, background .15s ease;
}
body.home .carousel-caption a.btn:hover { background: var(--np-yellow-dark) !important; transform: translateY(-2px); text-decoration: none; }

/* Pàgines interiors: franja amb caixa blava a l'esquerra i foto a la dreta */
/* El fons blau va a .carousel-inner (no a .carousel): la-candidatura i fes-te-voluntari no tanquen el div #myCarousel */
body:not(.home) .carousel-inner { display: flex; flex-wrap: wrap; align-items: stretch; background: var(--np-blue); }
body:not(.home) .carousel-inner > .carousel-item { display: block; float: none; margin: 0; }
.destacatbox,
body:not(.home) .carousel-inner > div[style*="width:375px"] {
  float: none !important;
  width: 375px !important;
  height: auto !important;
  min-height: 300px;
  padding: 2rem 2rem 2rem 1.25rem !important;
  background: var(--np-blue);
  color: #fff;
  line-height: 1.45 !important;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.destacatbox h4, body:not(.home) .carousel-inner > div[style*="width:375px"] h4 { color: #fff; font-size: 1.6rem; font-weight: 800; padding-bottom: .75rem !important; }
.destacatbox span, body:not(.home) .carousel-inner > div[style*="width:375px"] span { line-height: 1.45 !important; }
body:not(.home) .carousel-item[style*="calc(100% - 375px)"] { flex: 1 1 0; width: auto !important; min-width: 0; }
body:not(.home) .carousel-item[style*="calc(100% - 375px)"] > div { height: 100% !important; min-height: 300px; }
body:not(.home) .carousel-item > div[class$="-slide"] { background-position: center !important; }
/* Caixa de títol sobre fons blau (llista de candidats, suports) */
body:not(.home) #myCarousel[style*="background-color:#0066cc"] { padding: 2.5rem 1.25rem; }
body:not(.home) #myCarousel[style*="background-color:#0066cc"] .carousel-item { width: 100%; }
body:not(.home) #myCarousel[style*="background-color:#0066cc"] h1 { color: #fff !important; margin: 0 0 1.5rem !important; }
body:not(.home) #myCarousel[style*="background-color:#0066cc"] div[class$="-slide"] { height: auto !important; padding: 1rem 0 !important; font-size: clamp(2rem, 4vw, 3rem) !important; text-transform: uppercase; }
#bannerprimaries {
  background-size: cover; background-position: center; height: 300px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800; font-size: clamp(2rem, 5vw, 3.2rem); text-align: center; text-transform: uppercase;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .35);
}

/* --------------------------------------------------------------------------
   Home: targetes, preguntes i xarxes
   -------------------------------------------------------------------------- */
.home-section { max-width: var(--np-max); margin: 0 auto; padding: 0 1.25rem; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; margin: 3rem auto; }
.card-np {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 320px;
  padding: 2rem;
  background: #fff;
  border: 1px solid var(--np-line);
  border-radius: var(--np-radius);
  box-shadow: var(--np-shadow);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card-np:hover { transform: translateY(-4px); box-shadow: var(--np-shadow-hover); border-color: rgba(0, 102, 204, .35); }
.card-np .card-kicker { font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--np-blue); margin-bottom: .5rem; }
.card-np h2, .card-np h3 { font-size: 1.6rem; font-weight: 800; margin: 0 0 .75rem; color: var(--np-ink); }
.card-np p { color: var(--np-muted); font-size: 1rem; margin: 0 0 1rem; }
.card-np .card-actions { margin-top: auto; padding-top: 1.25rem; }
.card-np.card-primary { background: var(--np-blue); border-color: var(--np-blue); color: #fff; }
.card-np.card-primary .card-kicker { color: rgba(255, 255, 255, .8); }
.card-np.card-primary h2, .card-np.card-primary h3, .card-np.card-primary p { color: #fff; }
.card-np.card-primary:hover { box-shadow: 0 14px 32px rgba(0, 102, 204, .35); }
.card-np .card-quote { font-weight: 600; color: var(--np-ink); font-size: 1rem; line-height: 1.5; }
.card-np .card-quote img { display: block; width: 88px; margin: 1rem auto; border-radius: var(--np-radius-sm); }
.card-np .card-meta { color: var(--np-muted); font-size: .9rem; margin-top: .5rem; }
.card-np a.card-link { display: block; color: inherit !important; }
.card-np a.card-link:hover { text-decoration: none; }
.card-np .card-icon { width: 52px; height: 52px; border-radius: 14px; background: var(--np-blue-tint); color: var(--np-blue); display: flex; align-items: center; justify-content: center; font-size: 1.4rem; margin-bottom: 1.25rem; }

/* Botons comuns (inclou els <input type=button> de les pàgines antigues) */
.btn-np,
input[type=submit], input[type=button], button.btn-np,
.btn-primary, .bcolor1, .bcolor2, .button {
  display: inline-block;
  padding: .7rem 1.4rem;
  border-radius: 999px;
  border: 2px solid var(--np-blue);
  background: var(--np-blue);
  color: #fff !important;
  font-weight: 700;
  font-size: .95rem;
  line-height: 1.2;
  cursor: pointer;
  text-align: center;
  text-decoration: none !important;
  transition: background .15s ease, color .15s ease, transform .15s ease, box-shadow .15s ease;
  margin: 0;
  width: auto;
  float: none;
}
.btn-np:hover, input[type=submit]:hover, input[type=button]:hover,
.btn-primary:hover, .btn-primary:focus, .btn-primary:active, .bcolor1:hover, .bcolor2:hover, .button:hover {
  background: var(--np-blue-dark) !important;
  border-color: var(--np-blue-dark) !important;
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 102, 204, .25);
}
.btn-np.btn-outline, .but1 {
  background: #fff !important;
  color: var(--np-blue) !important;
  border-color: var(--np-blue) !important;
}
.btn-np.btn-outline:hover, .but1:hover { background: var(--np-blue-tint) !important; color: var(--np-blue-dark) !important; }
.card-primary .btn-np.btn-outline, .card-primary .but1 { background: #fff !important; color: var(--np-blue) !important; border-color: #fff !important; }
.btn-np.btn-yellow { background: var(--np-yellow) !important; border-color: var(--np-yellow) !important; color: var(--np-ink) !important; }
.btn-np.btn-yellow:hover { background: var(--np-yellow-dark) !important; border-color: var(--np-yellow-dark) !important; }
.but2 { float: none; margin: 0 !important; }
.btn-lg, .btn-group-lg > .btn { border-radius: 999px; padding: .8rem 1.6rem; font-size: 1rem; }
.btn-block { display: block; width: 100%; }
form input[type=submit], form input[type=button] { width: 100%; }
.bcolor2 { background: #fff; color: var(--np-blue) !important; }
.bcolor2:hover { background: var(--np-blue) !important; }

/* Dues preguntes */
.preguntes { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; margin: 3.5rem auto; padding: 0 1.25rem; max-width: var(--np-max); }
.pregunta { margin: 0 !important; padding: 0 !important; display: flex; flex-direction: column; }
.pregunta .small3 { font-size: 1.05rem; color: var(--np-text); margin-bottom: 1.25rem; }
.pregunta strong.strong { display: block; margin-top: auto; padding-top: 0; padding: 1.25rem 1.5rem; border-left: 5px solid var(--np-yellow); background: var(--np-bg-soft); border-radius: 0 var(--np-radius-sm) var(--np-radius-sm) 0; font-size: 1.1rem; line-height: 1.45; color: var(--np-blue) !important; }
.borderright { border-right: 0; }

/* Xarxes */
.socials { text-align: center; margin: 2rem auto 4rem; padding: 0 1.25rem; }
.socials a { display: inline-flex; flex-direction: column; align-items: center; gap: .6rem; padding: 1.5rem 2.5rem; border-radius: var(--np-radius); transition: background .15s ease; }
.socials a:hover { background: var(--np-bg-soft); text-decoration: none; }
.socials a i { font-size: 3rem; }
.socials .size1 { font-size: 1.05rem; line-height: 1.3; }
.mom { max-width: var(--np-max); margin: 0 auto; }

/* --------------------------------------------------------------------------
   Pàgines interiors
   -------------------------------------------------------------------------- */
.article_body, .pagina { padding: 0 1.25rem; }
div.article_body, div.article_body p { font-size: 1.05rem; line-height: 1.65; }
.article_body > p { display: block; }
.article_body a { color: var(--np-blue) !important; font-weight: 500; }
.article_body u a { text-decoration: none !important; }
.article_body h1 u, .article_body h2 u, .article_body h3 u, .article_body h4 u { text-decoration: underline !important; }
.pagina h1 { margin: 2.5rem 0 2rem !important; }
.page .article_header h2 { text-transform: uppercase !important; }
div.article_body h2, .page h2 a, div.article div.article h2, div.article h2 a { text-transform: inherit !important; }
div.article { max-width: 100%; margin: auto; }
.text { display: block; }
.greybox { padding: 1.75rem !important; background: var(--np-bg-soft); border: 1px solid var(--np-line); border-radius: var(--np-radius); margin-bottom: 2rem; text-align: left; }
.destaca { border: 2px solid var(--np-blue); border-radius: var(--np-radius); margin: 1.25rem; padding: 1.25rem 1.25rem 0 !important; color: var(--np-blue); font-weight: 700; }
.note { padding: 1.25rem; color: #444; font-size: 14px; border: 1px solid var(--np-line); border-radius: var(--np-radius-sm); }
div.grey { background: var(--np-ink); padding: 10px 20px; color: #fff; font-weight: 700; border-radius: var(--np-radius-sm); }
div.grey div { padding-left: 15px; }
.border3 { padding: 10px; }
.border4 { width: 100%; border: 2px solid var(--np-blue); border-radius: var(--np-radius-sm); height: auto; min-height: 72px; padding: .9rem; display: flex; align-items: center; justify-content: center; background: #fff; }
.tblau { text-align: center; border: 2px solid var(--np-blue); border-radius: var(--np-radius-sm); color: var(--np-blue); min-height: 90px; height: auto !important; font-weight: 700; font-size: 1.15rem; display: flex; align-items: center; justify-content: center; background: #fff; transition: background .15s ease; }
a.nodec:hover .tblau { background: var(--np-blue-tint); }
.tgroc { border: 2px solid var(--np-yellow) !important; }
.obert, .tancat { display: inline-block; padding: .35rem 1.25rem; border-radius: 999px; font-weight: 800; font-size: .85rem; letter-spacing: .1em; color: #fff; }
.obert { background: var(--np-green); border: 1px solid var(--np-green); }
.tancat { background: var(--np-muted); border: 1px solid var(--np-muted); }
div[style*="background-color:#1e8fff"] { border-radius: var(--np-radius-sm); line-height: 1.4; }
#contacte-primaries { background: var(--np-bg-soft); border-radius: var(--np-radius); }
#bprimaries form br { display: none; }
#bprimaries form input { margin-bottom: .75rem; }

/* Quadrats (reglament, documents) */
.square { margin: 10px; border: 1px solid var(--np-line); border-radius: var(--np-radius); box-shadow: var(--np-shadow); width: 100%; min-height: 0; padding: 1.5rem 1.75rem; background: #fff; }
.square.centrat { margin: 20px auto; float: none; display: table; text-align: center; }
.square.nobox, .nobox { border: 0 !important; }
.squarebut { margin: 0 0 1rem; border: 1px solid var(--np-line); border-radius: var(--np-radius); box-shadow: var(--np-shadow); padding: 1.5rem 1.75rem; background: #fff; }
.square .icopdf, .square:hover .icopdf { background: url('/files/pictures/pdf_icon.png') no-repeat -10px; width: 80px; height: 80px; }
.square.color2, .color2 { color: #fff; background: var(--np-blue); }
.color2 .text { color: #fff !important; }
.destacat:hover { background: #8cb7d9; }
.destacat.color2 { background: #bbc; font-weight: 700; font-size: 19px; text-decoration: none !important; }
.destacat.color2:hover { background: #aab; }
.destacatform { font-weight: 700; color: var(--np-blue) !important; }
.image { background: #eee; width: 100%; margin: 10px 0 20px; }

/* Acordió de preguntes freqüents */
.acordion, [class^="acordion"] { margin-bottom: 1rem; }
div.q {
  display: flex;
  align-items: center;
  padding: .9rem 1.25rem;
  border-radius: var(--np-radius-sm);
  margin-bottom: .75rem;
  cursor: pointer;
  background: var(--np-blue);
  color: #fff !important;
  transition: background .15s ease;
}
div.q:hover { background: var(--np-blue-dark); }
div.q p { margin: 0; text-align: left !important; }
div.q span, div.q font { color: #fff !important; }
div.q h2 { color: #fff !important; font-size: 1.1rem !important; font-weight: 600; line-height: 1.35; margin: 0 0 0 .5rem; text-align: left !important; float: none; display: inline; }
.acordion div.a, [class^="acordion"] div.a { display: none; padding: .25rem 1.25rem 1rem; border-left: 3px solid var(--np-blue-tint); margin: 0 0 1rem .5rem; }
.acordion span, .acordion font, [class^="acordion"] span, [class^="acordion"] font { font-weight: 400; }
p.section h2 { font-size: 1.5rem !important; margin-top: 2.5rem; }

/* Llista de candidats */
div#llista-candidats div.candidat { margin-bottom: 2.5rem; }
.candidatbox1 { margin-bottom: 15px; text-align: center; font-weight: 700; border: 2px solid var(--np-ink); border-radius: var(--np-radius-sm); padding: .5rem; }
.candidatbox2 { margin-bottom: 15px; padding: .75rem 1rem; text-align: center; font-size: clamp(1.5rem, 3vw, 2.4rem); font-weight: 800; border: 2px solid var(--np-ink); border-radius: var(--np-radius-sm); line-height: 1.15; }
.candidatbox3 div { padding: 3px 10px; text-align: center; background: var(--np-blue); font-weight: 700; color: #fff; margin: 5px; border-radius: var(--np-radius-sm); }
.candidatbox4 { margin: 5px 0; padding: 1px 10px; border: 2px solid var(--np-ink); border-radius: var(--np-radius-sm); }
div#mapa_municipals { background: url('/files/pictures/Mapa_municipal_de_Catalunya.png?k=1') no-repeat; background-size: contain; height: 800px; }
div#mapa_municipals:hover { background-image: url('/files/pictures/Mapa_municipal_de_Catalunya_bcn.png?k=1') !important; cursor: pointer; }
svg#mapacat { width: 100%; }
.pic-gallery img { width: auto; height: 200px; }
.galeria-page { padding: 10px; background: #fff; }
.mini img { width: 30px; }
.mini, .mini div { border: 0; padding: 5px; font-size: 14px; }
.miniatura img { max-width: 100%; height: 50px; }
.tip { margin: 0 0 20px; color: #fff; background: var(--np-green); font-weight: 700; font-size: 14px; text-align: center; padding: 3px 20px; width: 100%; border-radius: 0 0 5px 5px; }
.withtip { margin-bottom: 0 !important; border-radius: 6px 6px 0 0; }
#promo { position: absolute; right: 20px; top: 10px; border-radius: 100px; width: 150px; height: 150px; padding: 40px 20px; text-align: center; font-size: 18px; background: var(--np-green); color: #fff; font-weight: 700; line-height: 19px; }
#promo .preu { font-size: 24px; line-height: 25px; padding-bottom: 10px; }
.imatgeportada { margin-top: 10px; height: 650px; background-position: center; background-size: cover; }
#homeHeader { font-size: 36px; color: #000; padding: 40px; width: 100%; text-align: center; }
.peufoto { margin: auto; text-align: right; font-size: 10px; padding: 3px 90px 0 0 !important; }
.index_peu_foto { vertical-align: top; text-align: right; padding-right: 80px; padding-top: 5px; }
.data { text-transform: uppercase; font-size: 12px; padding-bottom: 10px; }
.block { padding: 40px !important; }
.column1, .column2 { padding-top: 40px; margin-bottom: 10px; }
.unbreakable { width: 33% !important; float: left !important; display: table; margin: 0; break-inside: avoid; list-style: none; }
.unbreakable li { list-style: none; padding-bottom: 5px; }
a.premsalink { text-decoration: none !important; }
a.premsalink:hover { text-decoration: underline !important; }
section.footnotes { padding-top: 40px; }
section.footnotes header { display: none !important; }
section.footnotes cite { font-style: normal; }
section.footnotes li { padding: 5px 0; list-style-type: lower-roman !important; }
.sdfootnoteanc { font-size: 100% !important; }
[id^="sdfootnote"] a, [id^="sdfootnote"] u, [id^="sdfootnote"] p, [id^="ftn"] span, .article_body section.footnotes li { font-size: 12px !important; line-height: 1 !important; }
#avis_legal a, #avis_legal span { font-weight: 300 !important; }
#avis_legal a { text-decoration: underline; }
.compartir { padding-top: 6px; text-transform: uppercase; font-size: 12px; cursor: pointer; }
.a2a_dd { display: none !important; }
.a2a_menu { border-radius: 0 !important; border: 0 !important; }
.a2a_menu a.a2a_i:hover { background: none !important; border: 1px solid #fff !important; }
.a2a_svg svg path { fill: #000 !important; }
.a2a_svg { width: 23px !important; height: 23px !important; background: #fff !important; }
.a2a_menu, .a2a_menu a { text-transform: uppercase !important; font-size: 0 !important; color: #fff !important; }
#a2apage_show_more_less, #a2apage_show_more_less svg, #a2apage_show_more_less .a2a_s__default { display: none !important; }
a.a2a_i, i.a2a_i { width: auto !important; padding: 5px 0 !important; }
div#a2apage_mini_services { padding-left: 3px !important; }
.a2a_mini { width: auto !important; min-width: auto !important; }
#a2apage_dropdown { margin-left: -172px; margin-top: -29px; }
.socialico { height: 25px !important; width: auto !important; margin: 0 0 0 16px; }
.page .socialico { width: auto !important; height: auto !important; }
#socialnet { padding: 0 10px 0 0 !important; float: right; }
.authors a { font-weight: 400 !important; }
.languageSelector { position: relative; top: 0; right: 10px; z-index: 999; float: right; margin-top: 3px; margin-right: 20px; }
#sel { float: left; cursor: pointer; font-size: 11px; padding-top: 2px; }
#current_lang { background: none; padding: 3px 0 0 5px; float: left; width: 30px; font-size: 10px; border: 0; }
ul#selector { display: block; top: -2px; position: absolute; left: -60px; padding: 5px 0 0 5px; width: 50px; font-size: 10px; }
ul#selector li { list-style: none; }
ul#selector a { color: #000; }

/* Formularis */
form input[type=text], form input[type=email], form input[type=date], form select { width: 100%; }
.form-control { margin-bottom: 10px; border-radius: var(--np-radius-sm); border: 1px solid #c9d2dc; padding: .6rem .8rem; font-size: 1rem; height: auto; }
.form-control:focus, input[type=text]:focus, input[type=email]:focus { outline: none !important; border-color: var(--np-blue) !important; box-shadow: 0 0 0 3px rgba(0, 102, 204, .18) !important; }
select, #login input[type=text], #afiliat input[type=text] { width: 100%; margin-bottom: 20px; }
input[type=checkbox] { margin-right: 10px; margin-bottom: 10px; }
#login input[type=submit], #afiliat input[type=submit] { width: 100%; }
a.link { color: #ffd93a; line-height: 25px; font-size: 15px; text-decoration: underline !important; }
body.login { background: #444; }
div#login { width: 250px; height: 440px; padding: 30px; margin: 10% auto 0; background: #fff; border-radius: var(--np-radius); }
div#afiliat { width: 700px; }
#login img { text-align: center; }
.loginbox .button { margin-top: 20px; }
body.login .page a, body.register .page a, body.forgot .page a, .loginbox .page a { color: #444; }
body.newsletter .page a, body.lopd .page a { color: var(--np-blue); text-decoration: none; }
body.lopd .page a { font-size: 17px !important; }
.wrapper { margin-top: 80px; margin-bottom: 80px; }
.form-signin { max-width: 380px; padding: 15px 35px 45px; margin: 0 auto; }
.item-form { margin-bottom: .75rem; }

/* Modal (jquery-modal) */
.blocker { position: fixed; inset: 0; width: 100%; height: 100%; overflow: auto !important; z-index: 1; padding: 20px; box-sizing: border-box; background: rgba(0, 0, 0, .6) !important; text-align: center; }
.modal { display: none; vertical-align: middle; position: relative; z-index: 2; max-width: 700px !important; box-sizing: border-box; width: 90%; background: #fff !important; padding: 15px 30px; border-radius: var(--np-radius) !important; box-shadow: 0 20px 60px rgba(0, 0, 0, .3) !important; text-align: left; overflow: visible !important; height: auto !important; }
.modal a { color: var(--np-blue) !important; }
.modal a.close-modal { background-image: url('/img/close-modal.png') !important; top: 6.5px !important; right: 5.5px !important; }
.modal-body { position: relative; padding: 15px; text-align: center; }
.modal-dialog { display: inline-block; text-align: left; vertical-align: middle; }
img#imagepreview { width: initial !important; height: initial !important; margin: 0 auto; }
#page-videos .video-container { cursor: pointer; background: #fff; padding: 20px; min-height: 370px; }
#page-videos .video-info { color: #888; text-transform: uppercase; }
#page-videos .video-thumb { margin: 10px 0; position: relative; display: inline-block; }
#page-videos .video-title { color: #000; font-size: 16px; }
#page-videos .playBtn { position: absolute; width: 96px; height: 96px; left: 50%; top: 50%; transform: translate(-50%, -50%); }
#main { transition: margin-left .5s; padding: 16px; }

/* --------------------------------------------------------------------------
   Pàgina de les primàries (les-primaries-acces.php)
   -------------------------------------------------------------------------- */
.primaries-page { padding: 0 1.25rem 2rem; }
.primaries-intro { max-width: 860px; margin: 0 auto 3rem; text-align: center; }
.primaries-intro h1 { margin: 2.5rem 0 1.25rem !important; }
.primaries-lead { font-size: 1.1rem; color: var(--np-text); text-align: center; margin: 0 auto 1.75rem; }
.primaries-actions { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; }
.primaries-h2 { text-align: center; color: var(--np-blue); font-size: 1.5rem; margin: 0 0 1.5rem; }
.fases { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; margin: 0 0 3.5rem; }
.fase {
  display: flex; flex-direction: column;
  padding: 1.5rem;
  background: #fff;
  border: 1px solid var(--np-line);
  border-top: 5px solid var(--np-blue);
  border-radius: var(--np-radius);
  box-shadow: var(--np-shadow);
  transition: transform .18s ease, box-shadow .18s ease;
}
.fase-oberta:hover { transform: translateY(-4px); box-shadow: var(--np-shadow-hover); }
.fase-tancada { border-top-color: #c3ccd5; background: var(--np-bg-soft); }
.fase-tancada h3, .fase-tancada p { color: var(--np-muted); }
.fase-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.fase-num { width: 40px; height: 40px; border-radius: 50%; background: var(--np-blue); color: #fff; font-weight: 800; font-size: 1.1rem; display: flex; align-items: center; justify-content: center; }
.fase-tancada .fase-num { background: #c3ccd5; }
.fase h3 { font-size: 1.3rem; font-weight: 800; margin: 0 0 .6rem; }
.fase p { font-size: .98rem; color: var(--np-text); margin: 0 0 1rem; }
.fase-actions { margin-top: auto; padding-top: .5rem; }
.fase-actions .btn-np { width: 100%; }
.fase-closed-note { display: inline-block; color: var(--np-muted); font-weight: 600; font-size: .95rem; padding: .7rem 0; }
.primaries-contacte { max-width: 960px; margin: 0 auto; padding: 2rem 1.5rem; background: var(--np-bg-soft); border-radius: var(--np-radius); }
.primaries-contacte .primaries-h2 { margin-bottom: 1.25rem; }
.contacte-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; text-align: center; }
.contacte-item { display: flex; flex-direction: column; align-items: center; gap: .25rem; }
.contacte-item i { font-size: 1.5rem; color: var(--np-blue); margin-bottom: .35rem; }
.contacte-item b { color: var(--np-ink); }
.contacte-item a { font-weight: 600; }

/* --------------------------------------------------------------------------
   Llista de candidats (llista-de-candidats-barcelona.php)
   -------------------------------------------------------------------------- */
#llista-candidats #myCarousel { padding: 3rem 1.25rem; }
#llista-candidats #myCarousel .carousel-inner { display: block; }
#llista-candidats #myCarousel h1 { color: #fff !important; margin: 0 0 1rem !important; }
.cand-lead { max-width: 760px; margin: 0 auto; text-align: center; color: rgba(255, 255, 255, .92); font-size: 1.1rem; }
.cand-page { padding: 2.5rem 1.25rem 2rem; max-width: 900px; }
.cand-intro { text-align: center; color: var(--np-muted); margin: 0 auto 2rem; max-width: 720px; }
.cand-list { display: flex; flex-direction: column; gap: 1.25rem; }
.cand {
  display: flex; align-items: stretch; gap: 1.5rem;
  background: #fff; border: 1px solid var(--np-line); border-radius: var(--np-radius);
  box-shadow: var(--np-shadow); overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease;
}
.cand:hover { transform: translateY(-3px); box-shadow: var(--np-shadow-hover); }
.cand-num { flex: 0 0 120px; display: flex; flex-direction: column; align-items: center; justify-content: center; background: var(--np-blue); color: #fff; padding: 1.25rem; }
.cand-num-label { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; opacity: .85; }
.cand-num-val { font-size: 3rem; font-weight: 800; line-height: 1; }
.cand-body { flex: 1 1 auto; padding: 1.5rem 1.5rem 1.5rem 0; display: flex; flex-direction: column; gap: .5rem; min-width: 0; }
.cand-tag { font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--np-blue); }
.cand-name { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 800; margin: 0; color: var(--np-ink); line-height: 1.1; }
.cand-meta { display: flex; flex-wrap: wrap; gap: .5rem; }
.cand-chip { display: inline-block; padding: .3rem .9rem; border-radius: 999px; background: var(--np-blue-tint); color: var(--np-blue); font-weight: 600; font-size: .9rem; }
.cand-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .75rem; }
.cand-nodoc { color: var(--np-muted); font-size: .95rem; padding: .7rem 0; }
.cand-back { text-align: center; margin: 2.5rem 0 1rem; }

/* --------------------------------------------------------------------------
   Formularis d'inscripció (fes-te-candidat, fes-te-elector)
   -------------------------------------------------------------------------- */
.np-form-page { padding: 0 1.25rem 2rem; max-width: 1000px; }
.np-form-page h1 { margin: 2.5rem 0 1.5rem !important; }
.np-intro { max-width: 800px; margin: 0 auto 2rem; text-align: center; }
.np-step { display: grid; grid-template-columns: 1.2fr 1fr; gap: 2rem; align-items: start; margin-bottom: 3rem; }
.np-step-text p { font-size: 1.02rem; }
.np-step-card { background: #fff; border: 1px solid var(--np-line); border-radius: var(--np-radius); box-shadow: var(--np-shadow); padding: 1.75rem; border-top: 5px solid var(--np-blue); }
.np-callout { display: flex; gap: 1rem; align-items: flex-start; padding: 1.1rem 1.25rem; margin: 1rem 0 1.25rem; background: var(--np-blue-tint); border-left: 5px solid var(--np-blue); border-radius: 0 var(--np-radius-sm) var(--np-radius-sm) 0; font-size: .98rem; line-height: 1.5; }
.np-callout > i { color: var(--np-blue); font-size: 1.3rem; margin-top: .15rem; flex: 0 0 auto; }
.np-alert { display: flex; gap: .75rem; align-items: flex-start; padding: 1rem 1.25rem; margin: 1rem 0; border-radius: var(--np-radius-sm); font-weight: 600; line-height: 1.45; }
.np-alert > i { margin-top: .2rem; }
.np-alert-ok { background: #e6f6ec; color: #146c43; border: 1px solid #b6e2c4; }
.np-alert-info { background: var(--np-blue-tint); color: var(--np-blue-dark); border: 1px solid #bcd6f0; }
.np-alert-err { background: #fdecec; color: #a12622; border: 1px solid #f3c1c1; }
.np-done { text-align: center; max-width: 620px; margin: 3rem auto; padding: 2.5rem 2rem; background: #fff; border: 1px solid var(--np-line); border-radius: var(--np-radius); box-shadow: var(--np-shadow); }
.np-done > i { font-size: 3.5rem; color: var(--np-green); margin-bottom: 1rem; }
.np-done h2 { margin-bottom: .75rem; }
.np-done p { text-align: center; margin-bottom: 1.5rem; }

.np-form { display: block; }
.np-section { background: #fff; border: 1px solid var(--np-line); border-radius: var(--np-radius); box-shadow: var(--np-shadow); padding: 1.75rem; margin-bottom: 1.5rem; }
.np-section-title { display: flex; align-items: center; gap: .75rem; font-size: 1.25rem; margin: 0 0 1.25rem; color: var(--np-ink); text-transform: none; }
.np-section-num { width: 34px; height: 34px; border-radius: 50%; background: var(--np-blue); color: #fff; font-size: 1rem; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.np-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.5rem; }
.np-field { display: flex; flex-direction: column; min-width: 0; }
.np-field-full { grid-column: 1 / -1; }
.np-field label, .np-label { font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--np-blue); margin-bottom: .4rem; }
.np-field .form-control { margin-bottom: 0; }
.np-field .form-control[readonly] { background: var(--np-bg-soft); color: var(--np-muted); }
.np-field .invalid-feedback { font-size: .85rem; margin-top: .3rem; }
.np-field select.form-control { height: auto; padding: .6rem .8rem; }
.np-file { padding: .45rem .8rem; }
.np-help { font-size: .88rem; color: var(--np-muted); margin: .4rem 0 0; }
.np-opt { font-weight: 500; text-transform: none; letter-spacing: 0; color: var(--np-muted); }
.np-radios { display: flex; gap: 1.5rem; padding: .35rem 0; }
.np-radios label { display: flex; align-items: center; gap: .5rem; font-size: 1rem; font-weight: 500; text-transform: none; letter-spacing: 0; color: var(--np-text); margin: 0; cursor: pointer; }
.np-radios input, .np-check input, .np-option input { width: 20px; height: 20px; accent-color: var(--np-blue); margin: 0; flex: 0 0 auto; }
.np-check { display: flex; align-items: flex-start; gap: .75rem; margin: 0 0 .9rem; font-size: 1rem; cursor: pointer; }
.np-check input { margin-top: .2rem; }
.np-check-toggle { font-weight: 600; }
.np-subform { margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid var(--np-line); }
.np-options { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; margin: 1rem 0 1.25rem; }
.np-option { display: flex; gap: .75rem; align-items: flex-start; padding: .9rem 1rem; border: 1px solid var(--np-line); border-radius: var(--np-radius-sm); cursor: pointer; margin: 0; transition: border-color .15s ease, background .15s ease; }
.np-option:hover { border-color: var(--np-blue); background: var(--np-blue-tint); }
.np-option input { margin-top: .2rem; }
.np-option span { display: flex; flex-direction: column; gap: .2rem; }
.np-option small { color: var(--np-muted); font-size: .88rem; line-height: 1.4; }
.np-section-accept { background: var(--np-bg-soft); }
.np-section-accept .invalid-feedback { margin: -.5rem 0 .75rem 2rem; }
button.np-submit, .np-submit { width: 100%; margin: 1.5rem 0 0; }
button.np-submit-lg, .np-submit-lg { padding: 1rem 1.5rem; font-size: 1.05rem; margin-top: 1.75rem; }
.np-legal { margin: 2.5rem 0 0; padding: 1.5rem 1.75rem; background: var(--np-bg-soft); border: 1px solid var(--np-line); border-radius: var(--np-radius); font-size: .9rem; color: var(--np-muted); }
.np-legal h3 { font-size: 1rem; color: var(--np-ink); margin: 1rem 0 .5rem; }
.np-legal h3:first-child { margin-top: 0; }
.np-legal p, .np-legal li { font-size: .9rem; line-height: 1.5; }
.np-legal ul { padding-left: 1.25rem; }
.np-legal-inline { margin-top: 1rem; }

/* --------------------------------------------------------------------------
   Peu
   -------------------------------------------------------------------------- */
.footer { background: var(--np-blue); color: #fff; width: 100%; padding: 3.5rem 0 2.5rem; font-size: 15px !important; margin-top: 3rem; }
body.home .footer { margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1.2fr 1fr 1.1fr .8fr; gap: 2rem; max-width: var(--np-max); margin: 0 auto; padding: 0 1.25rem; }
.footer h6 { color: #fff; font-size: .85rem !important; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 1rem; opacity: .85; }
.footer a { font-size: 15px; color: #fff !important; display: inline-block; padding: .15rem 0; }
.footer a:hover { color: var(--np-yellow) !important; text-decoration: none; }
.footer .footer-links a { display: block; }
.footer .footer-brand img { width: 120px !important; height: auto; margin: 0 0 1rem; }
.footer .footer-brand p { font-size: .95rem; opacity: .85; max-width: 280px; }
.footer .size2 { font-size: 1.6rem; }
.footer .mini { font-size: 12px !important; }
.footer-bottom a { font-size: inherit; text-decoration: underline; }
.footer-bottom { max-width: var(--np-max); margin: 2.5rem auto 0; padding: 1.5rem 1.25rem 0; border-top: 1px solid rgba(255, 255, 255, .2); font-size: .85rem; opacity: .8; display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; }
#logofooter img { width: 120px !important; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1279px) {
  #menu_visible ul.menu li a { padding: .85rem .75rem; font-size: .95rem; }
}

@media (max-width: 1023px) {
  .mainnav { display: none; }
  .navbar-toggle { display: flex; }
  .headbar { gap: 1rem; }
  .headbar .botonera { margin-left: auto; }
  .headbar .logo img { height: 80px; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .fases { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .unbreakable { width: 50% !important; }
  div#mapa_municipals { height: 500px; }
  .destacatbox, body:not(.home) .carousel-inner > div[style*="width:375px"] { width: 320px !important; }
}

@media (max-width: 767px) {
  body, p { font-size: 16px; }
  h1 { font-size: 1.75rem; margin: 2rem 0 1.25rem !important; }
  h2 { font-size: 1.4rem; }
  .size3 { font-size: 26px !important; }
  .headbar { padding: .75rem 1rem; }
  .headbar .logo img { height: 64px; }
  .headbar .botonera { display: none; }
  .navbar-toggle { margin-left: auto; }
  .mobile_only { display: block; }
  .desktop_only { display: none; }

  body.home .carousel-item { height: 420px; }
  body.home .carousel-item::after { background: linear-gradient(180deg, rgba(0, 40, 90, .15) 0%, rgba(0, 40, 90, .8) 100%); }
  body.home .carousel-caption { left: 1.25rem; right: 1.25rem; top: auto; bottom: 2.5rem; transform: none; width: auto; }
  .carousel-control-prev, .carousel-control-next { display: none; }

  .cards { grid-template-columns: 1fr; gap: 1.25rem; margin: 2rem auto; }
  .card-np { min-height: 0; padding: 1.5rem; }
  .preguntes { grid-template-columns: 1fr; gap: 2rem; margin: 2.5rem auto; }
  .socials a { padding: 1rem 1.5rem; }

  .destacatbox, body:not(.home) .carousel-inner > div[style*="width:375px"] { width: 100% !important; min-height: 0; padding: 1.75rem 1.25rem !important; }
  body:not(.home) .carousel-item[style*="calc(100% - 375px)"] { flex: 1 1 100%; width: 100% !important; }
  body:not(.home) .carousel-item[style*="calc(100% - 375px)"] > div { min-height: 220px; height: 220px !important; }
  body:not(.home) .carousel-item > div[class$="-slide"][style*="height:500px"] { height: 260px !important; }
  #bannerprimaries { height: 220px; }
  #bprimaries { padding-left: 15px !important; }
  .border3 { padding: 10px 0; }
  .pregunta { padding: 0 !important; }
  .row { margin-left: 0 !important; margin-right: 0 !important; }
  .nopadmob { padding: 0 !important; }
  .no-gutters-mob div.col-xs-12 { margin: 0 !important; padding: 0 !important; }
  .article_body { padding: 0 1rem; }
  .article_body p[style*="justify"], .article_body div[style*="justify"], p[align="justify"] { text-align: left !important; }
  .article_body iframe, .article_body img { display: block; margin: auto; width: 100% !important; height: auto !important; }
  iframe { width: 100% !important; height: 250px !important; }
  iframe#video { height: 227px !important; }
  .unbreakable { width: 100% !important; clear: left !important; }
  .unbreakable li { padding-bottom: 20px; }
  div#mapa_municipals { height: 300px; }
  .modal img { width: 95% !important; }
  .modal { top: 0 !important; }
  div#login { padding: 10px 30px 20px; margin-top: 0; width: auto; }
  #login img { width: 100px; }
  div#afiliat { width: auto; }
  input#newsletter { max-width: calc(100% - 55px); margin-bottom: 15px; }
  .peufoto { padding: 3px 15px 0 !important; }
  .index_peu_foto { padding-right: 5px !important; margin-top: -81px !important; padding-top: 0 !important; }
  .pagina h1 .subtitle, div.article h1 .subtitle { font-size: 20px !important; }
  .imatgeportada { height: 350px; }
  #promo { right: 20px; top: 50px; width: 100px; height: 100px; padding: 24px 7px; font-size: 13px; }
  .fases { grid-template-columns: 1fr; }
  .contacte-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .primaries-intro { margin-bottom: 2rem; }
  .primaries-actions .btn-np { width: 100%; }
  /* Formularis (fes-te-elector, fes-te-candidat, voluntari...) */
  .maxpage[class*="col-"] { padding-left: 1rem; padding-right: 1rem; }
  .inputbox, .bgbut { padding-left: 0 !important; padding-right: 0 !important; }
  .bgbut { text-align: left !important; }
  span.cap.destacatform, span.cap.right, span.cap.left { float: none !important; text-align: left !important; display: block; margin-top: .75rem; }
  form input[type=submit][style*="float:right"], form input[type=submit][style*="max-width"] { float: none !important; max-width: none !important; width: 100%; margin-top: .5rem; }
  .page div[style*="padding-left:40px"], .page div[style*="padding-left:25px"] { padding-left: 0 !important; }
  .page div[style*="padding-left:40px"] { margin-top: 1.5rem; }
  /* Blocs flotants de text (cites del reglament) */
  .article_body div[style*="float:right"], .article_body div[style*="width:60%"] { width: 100% !important; float: none !important; }
  .cand { flex-direction: column; gap: 0; }
  .cand-num { flex: 0 0 auto; flex-direction: row; gap: .75rem; padding: .75rem 1.25rem; justify-content: flex-start; }
  .cand-num-val { font-size: 1.6rem; }
  .cand-body { padding: 1.25rem; }
  .cand-actions .btn-np { width: 100%; }
  #llista-candidats #myCarousel { padding: 2rem 1rem; }
  .np-step { grid-template-columns: 1fr; gap: 1.25rem; }
  .np-grid { grid-template-columns: 1fr; }
  .np-options { grid-template-columns: 1fr; }
  .np-section, .np-step-card { padding: 1.25rem; }
  .np-form-page { padding: 0 1rem 2rem; }
  .footer { padding: 2.5rem 0 2rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.75rem; text-align: center; }
  .footer .footer-brand img { margin: 0 auto 1rem; }
  .footer .footer-brand p { margin: 0 auto; }
  .footer-bottom { justify-content: center; text-align: center; }
}

@media (max-width: 420px) {
  .headbar .logo img { height: 56px; }
  body.home .carousel-caption h1, body.home .carousel-caption h2 { font-size: 1.8rem !important; }
}

@media print {
  header, .footer, .sidebar, .nav-backdrop, .navbar-toggle { display: none !important; }
}

/* --------------------------------------------------------------------------
   Votacions, pantalles d'estat, voluntaris, candidatura i FAQ (24/09/2026)
   -------------------------------------------------------------------------- */
.np-done-actions { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; }
.np-done.np-wait > i { color: var(--np-blue); }
.np-done.np-closed > i { color: var(--np-muted); }
.np-help-center { text-align: center; color: var(--np-muted); font-size: .95rem; margin: 0 auto 2rem; max-width: 720px; }
.np-ballot { max-width: 760px; margin: 0 auto 3rem; background: #fff; border: 1px solid var(--np-line); border-radius: var(--np-radius); box-shadow: var(--np-shadow); padding: 1.75rem; border-top: 5px solid var(--np-blue); }
.np-ballot-head p { font-size: 1.05rem; margin-bottom: .5rem; }
.np-options-1 { grid-template-columns: 1fr; }
.np-cand { display: flex; align-items: stretch; gap: .75rem; }
.np-cand .np-option { flex: 1 1 auto; align-items: center; min-height: 64px; }
.np-cand .np-option input { margin-top: 0; width: 24px; height: 24px; }
.np-cand .np-option b { font-size: 1.1rem; line-height: 1.3; }
.np-option.is-checked { border-color: var(--np-blue); background: var(--np-blue-tint); box-shadow: inset 0 0 0 1px var(--np-blue); }
.np-option.is-disabled { opacity: .55; cursor: not-allowed; }
.np-cand-pdf { flex: 0 0 auto; display: inline-flex; align-items: center; padding: 0 1rem; border: 1px solid var(--np-line); border-radius: var(--np-radius-sm); font-size: .9rem; font-weight: 600; color: var(--np-blue) !important; white-space: nowrap; text-decoration: none !important; }
.np-cand-pdf:hover { background: var(--np-blue-tint); border-color: var(--np-blue); }
.np-ballot-count { text-align: center; color: var(--np-muted); font-weight: 600; margin: .25rem 0 0; }
.np-card-title { font-size: 1.2rem; margin: 0 0 1rem; color: var(--np-ink); }
.np-contact-list { display: flex; flex-direction: column; gap: .75rem; }
.np-contact { display: flex; align-items: center; gap: 1rem; padding: .9rem 1rem; border: 1px solid var(--np-line); border-radius: var(--np-radius-sm); text-decoration: none !important; color: var(--np-text) !important; }
.np-contact:hover { border-color: var(--np-blue); background: var(--np-blue-tint); }
.np-contact i { font-size: 1.4rem; color: var(--np-blue); flex: 0 0 auto; }
.np-contact span { display: flex; flex-direction: column; font-size: 1.05rem; font-weight: 600; }
.np-contact span b { font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--np-muted); }
.fases-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.fases-3 .fase-num { font-size: 1rem; }
.faq-page .np-intro { text-align: center; }
.faq-nav { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; margin: 0 0 2.5rem; }
.faq-h2 { text-align: center; color: var(--np-blue); font-size: 1.75rem; margin: 3rem 0 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--np-line); scroll-margin-top: 90px; }
@media (max-width: 1023px) {
  .fases-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .fases-3 { grid-template-columns: 1fr; }
  .np-ballot { padding: 1.25rem; margin-bottom: 1.5rem; }
  .np-ballot-head p { font-size: 1rem; }
  .np-cand { flex-direction: column; gap: .4rem; }
  .np-cand .np-option { min-height: 56px; }
  .np-cand-pdf { justify-content: center; padding: .6rem 1rem; }
  .np-step { margin-bottom: 1.5rem; }
  .np-callout { padding: 1rem; gap: .75rem; }
  .np-alert { padding: .9rem 1rem; }
  .np-done { padding: 2rem 1.25rem; margin: 1.5rem auto; }
  .np-done > i { font-size: 3rem; }
  .np-done-actions .btn-np, .faq-nav .btn-np { width: 100%; }
  .np-help-center { font-size: .9rem; margin-bottom: 1rem; }
  button.np-submit-lg, .np-submit-lg { margin-top: 1.25rem; }
}
@media (max-width: 420px) {
  .np-done h2 { font-size: 1.3rem; }
  .np-ballot, .np-step-card, .np-done { padding-left: 1rem; padding-right: 1rem; }
}

/* Resultats de les primaries (24/09/2026) */
.np-results { text-align: center; padding-bottom: 40px; }
.np-results .primaries-intro { max-width: 820px; margin: 0 auto; }
.np-results .primaries-h2 { text-align: center; margin: 36px 0 18px; }
.np-results .np-center { max-width: 820px; margin-left: auto; margin-right: auto; }
.np-results .np-alert.np-center { text-align: left; }
.np-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; max-width: 900px; margin: 24px auto 12px; }
.np-stats.np-stats-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 560px; }
.np-stat { background: #f3f7fc; border-top: 4px solid #0066cc; padding: 18px 12px 14px; border-radius: 8px; }
.np-stat b { display: block; font-size: 2em; color: #0066cc; line-height: 1.05; }
.np-stat span { display: block; color: #444; font-size: 0.92em; margin-top: 6px; }
.np-cal { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; max-width: 900px; margin: 0 auto 22px; }
.np-cal-item { background: #fff; border: 1px solid #dde5ef; border-radius: 8px; padding: 18px 12px; }
.np-cal-item i { font-size: 1.5em; color: #0066cc; display: block; margin-bottom: 8px; }
.np-cal-item b { display: block; color: #0066cc; }
.np-cal-item span { display: block; color: #333; margin-top: 4px; }
.np-cal-item em { display: inline-block; font-style: normal; font-size: 0.8em; font-weight: 700; margin-top: 8px; padding: 2px 10px; border-radius: 12px; background: #e6eef8; color: #0066cc; }
.np-cal-item.is-now { border-color: #fec12b; background: #fffbe6; }
.np-cal-item.is-now em { background: #fec12b; color: #222; }
.np-cal-item.is-done { opacity: 0.75; }
.np-table-wrap { max-width: 900px; margin: 0 auto; overflow-x: auto; }
.np-results table { width: 100%; border-collapse: collapse; background: #fff; text-align: left; }
.np-results th, .np-results td { padding: 12px 14px; border-bottom: 1px solid #dde5ef; vertical-align: middle; }
.np-results th { background: #0066cc; color: #fff; font-weight: 600; }
.np-results td.num, .np-results th.num { text-align: right; white-space: nowrap; }
.np-results td.pos { width: 70px; font-weight: 700; color: #0066cc; text-align: center; }
.np-results th.pos { text-align: center; }
.np-results tr.top td { background: #fffbe6; }
.np-results .np-cand-nom { font-weight: 600; }
.np-results .np-bar-wrap { display: inline-block; width: 120px; height: 8px; background: #e6eef8; border-radius: 4px; vertical-align: middle; margin-left: 10px; overflow: hidden; }
.np-results .np-bar { display: block; height: 100%; background: #0066cc; border-radius: 4px; }
.np-results .np-note { color: #555; font-size: 0.9em; margin: 12px auto 0; text-align: center; }
.np-results .np-altres { margin: 34px auto 0; color: #555; font-size: 0.92em; text-align: center; }
.np-results .np-altres a { color: #0066cc; text-decoration: underline; }
@media (max-width: 800px) { .np-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .np-cal { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .np-results th, .np-results td { padding: 10px 8px; } .np-results .np-bar-wrap { display: none; } .np-stat b { font-size: 1.6em; } }
