/* ═══════════════════════════════════════════════════════
   SIÓ VIU – Full Stylesheet
   ═══════════════════════════════════════════════════════ */

/* ─── RESET ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
img { display: block; max-width: 100%; height: auto; }
ul { list-style: none; }
a { text-decoration: none; }

/* ─── VARIABLES ─── */
:root {
  --blau:       #0000CC;
  --blau-fosc:  #001f6b;
  --groc:       #00E87A;
  --verd-logo:  #00E87A;
  --vermell:    #CC0000;
  --blanc:      #ffffff;
  --gris-clar:  #f5f5f5;
  --gris-text:  #333333;
  --gris-mid:   #888888;
  --container:  1060px;
}

/* ─── BASE ─── */
body { font-family: Arial, Helvetica, sans-serif; font-size: 15px; color: var(--gris-text); background: #fff; line-height: 1.6; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 1.5rem; }
section { padding: 3.5rem 0; }
.img-fluid { width: 100%; }
.img-manifest { border: 3px solid var(--blau); margin-top: 1rem; }

/* ─── BUTTONS ─── */
.btn {
  display: inline-block; font-size: .78rem; font-weight: 700;
  letter-spacing: .07em; text-transform: uppercase;
  padding: .45rem 1rem; cursor: pointer;
  transition: opacity .15s, transform .15s;
}
.btn:hover { opacity: .85; transform: translateY(-1px); }
.btn-blue         { background: var(--blau); color: #fff; }
.btn-outline-blue { border: 2px solid var(--blau); color: var(--blau); background: transparent; }
.btn-outline-blue:hover { background: var(--blau); color: #fff; }
.btn-blue-outline-card {
  display: inline-block; margin-top: 1rem;
  border: 2px solid var(--blau); color: var(--blau);
  font-size: .72rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; padding: .4rem .8rem;
  transition: background .15s, color .15s;
}
.btn-blue-outline-card:hover { background: var(--blau); color: #fff; }

/* ─── SECTION TITLES ─── */
.section-h {
  font-family: 'Antonio', 'Arial Narrow', Arial, sans-serif;
  font-size: 3.2rem; font-weight: 700; text-transform: uppercase;
  color: var(--blau); letter-spacing: .02em; margin-bottom: 1.5rem;
}
.col-h {
  font-family: 'Antonio', 'Arial Narrow', Arial, sans-serif;
  font-size: 1.8rem; font-weight: 700; color: var(--blau);
  text-transform: none; letter-spacing: .02em;
  margin-bottom: .8rem;
}


/* ═══════════════════════════════════════════
   NAVBAR
   ═══════════════════════════════════════════ */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: transparent;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2rem; height: 58px;
  transition: background .3s, box-shadow .3s;
}
#navbar.scrolled {
  background: rgba(255,255,255,0.97);
  box-shadow: 0 2px 14px rgba(0,0,40,.12);
  backdrop-filter: blur(8px);
}
#navbar.scrolled .nav-desc { color: var(--blau); text-shadow: none; }
.nav-left { display: flex; align-items: center; gap: .8rem; }
.nav-left img { height: 120px; mix-blend-mode: multiply; }
.nav-desc { font-family: 'Montserrat', sans-serif; font-size: .72rem; font-weight: 700; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.45); line-height: 1.4; max-width: 420px; white-space: nowrap; }
.br-mobile { display: none; }
.hero-brand { display: none; }
.nav-links { display: flex; gap: 2rem; align-items: center; }
.nav-links li a {
  font-family: 'Antonio', 'Arial Narrow', Arial, sans-serif;
  color: var(--blau); font-size: 1rem; font-weight: 700;
  letter-spacing: .07em; text-transform: uppercase;
  padding: .2rem 0; border-bottom: 2px solid transparent; transition: color .15s, border-color .15s;
}
.nav-links li a:hover { color: var(--verd-logo); border-color: var(--verd-logo); }
.nav-links li a.nav-active { color: var(--blau); border-color: var(--blau); }
.nav-burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: .3rem; }
.nav-burger span { display: block; width: 24px; height: 2px; background: var(--blau); border-radius: 2px; transition: transform .2s, opacity .2s; }


/* ═══════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════ */
.hero {
  position: relative; min-height: 500px;
  display: flex; flex-direction: column; overflow: hidden;
  padding-top: 58px;
}
.hero-slide {
  position: absolute; inset: 0; z-index: 0;
  background-size: cover; background-position: center;
  opacity: 0; transition: opacity 1.2s ease-in-out;
}
.hero-slide::after {
  content: ''; position: absolute; inset: 0;
  background: rgba(0, 0, 0, 0.35);
}
.hero-slide.active { opacity: 1; }
.hero-slide:nth-child(1) { background-image: url('../images/hero-1.jpg'); }
.hero-slide:nth-child(2) { background-image: url('../images/hero-2.jpg'); }
.hero-slide:nth-child(3) { background-image: url('../images/hero-3.jpg'); }
.hero-slide:nth-child(4) { background-image: url('../images/hero-4.jpg'); }
.hero-text {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: flex-start;
  text-align: left; padding: 2.5rem 33%;
  flex: 1; justify-content: center;
}
.hero-text span {
  display: block;
  font-family: 'Antonio', 'Arial Narrow', Arial, sans-serif;
  font-weight: 700; color: #fff; text-transform: uppercase;
  line-height: .92; letter-spacing: .01em;
  text-shadow: 1px 1px 0 rgba(0,0,0,.1);
  white-space: nowrap;
}
/* font-size ajustat per JS (fitHeroText) — aquests valors són el fallback */
.hero-text span:nth-child(1) { font-size: clamp(5.5rem, 18vw, 13rem); }
.hero-text span:nth-child(2) { font-size: clamp(2.5rem,  9vw, 6.5rem); }
.hero-text span:nth-child(3) { font-size: clamp(3.8rem, 13vw, 9.5rem); }
.hero-title-img { width: 100%; max-width: 480px; height: auto; display: block; margin: 0 auto; }
.hero-sub-bar {
  background: var(--blau); color: #fff;
  font-family: 'Montserrat', sans-serif;
  text-align: center; font-size: 1.1rem; font-weight: 700;
  letter-spacing: .04em; padding: .75rem 2rem;
}
.hero-ajudans { color: var(--groc); font-weight: 700; margin-left: .5rem; }
.hero-ajudans:hover { text-decoration: underline; }


/* ═══════════════════════════════════════════
   QUI SOM
   ═══════════════════════════════════════════ */
.qui-som { background: #fff; }
.qui-som .section-h { font-size: 3.2rem; }
.qui-som-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.qui-som-grid p { font-family: 'Montserrat', sans-serif; font-size: .88rem; line-height: 1.75; color: var(--blau); }
.qui-som-grid img { margin-top: 1rem; width: 100%; height: 260px; object-fit: cover; }
.qui-som-grid .territori-slides img { margin-top: 0; }

/* ─── Territori carousel ─── */
.territori-carousel { position: relative; margin-top: 1rem; width: 100%; height: 260px; }
.territori-slides { position: relative; width: 100%; height: 100%; overflow: hidden; }
.territori-slide {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity .7s ease;
  margin-top: 0;
}
.territori-slide.active { opacity: 1; }
.territori-dots {
  position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 7px; z-index: 2;
}
.t-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: rgba(255,255,255,.5); border: 1.5px solid rgba(255,255,255,.8);
  cursor: pointer; padding: 0; transition: background .2s, transform .2s;
}
.t-dot:hover { background: rgba(255,255,255,.8); }
.t-dot.active { background: #fff; transform: scale(1.25); }


/* ═══════════════════════════════════════════
   EL PROJECTE
   ═══════════════════════════════════════════ */
.projecte { background: var(--blau); color: #fff; }
.projecte-grid { display: grid; grid-template-columns: 180px 1fr; gap: 2rem; align-items: start; }
.projecte-label { display: flex; flex-direction: column; }
.projecte-label span {
  font-family: 'Antonio', 'Arial Narrow', Arial, sans-serif;
  font-size: 3.2rem; font-weight: 700; line-height: 1.05; text-transform: uppercase; color: #fff;
}
.projecte-body { padding-top: 3.4rem; }
.projecte-body p { font-family: 'Montserrat', sans-serif; font-size: .88rem; line-height: 1.75; margin-bottom: 1rem; color: #fff; }
.projecte-body strong { color: var(--groc); }

.projecte-images { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1.5rem; align-items: start; }
.projecte-images img { width: 100%; height: 280px; object-fit: cover; border: 2px solid rgba(255,255,255,.2); }
.projecte-mapa-wrap { position: relative; }
#mapa { width: 100%; height: 280px; }
/* Evita les línies blanques entre tessel·les (escletxes de subpíxel) */
#mapa .leaflet-tile-container img.leaflet-tile {
  width: 260px !important;
  height: 260px !important;
  image-rendering: -webkit-optimize-contrast;
  backface-visibility: hidden;
}
/* Amaga el control d'atribució (peu "Leaflet | ...") */
#mapa .leaflet-control-attribution { display: none; }

.img-caption {
  font-size: .7rem; color: rgba(255,255,255,.6);
  margin-top: .3rem; font-style: italic;
}
.projecte-mapa-wrap .img-caption {
  color: var(--groc);
  font-style: normal;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
  display: inline-block;
}
.projecte-mapa-wrap .img-caption:hover { opacity: .85; }
.projecte-links { margin-top: 1rem; }
.arrow-link { color: var(--groc); font-size: .85rem; font-weight: 700; letter-spacing: .04em; }
.arrow-link:hover { text-decoration: underline; }


/* ═══════════════════════════════════════════
   PER QUÈ
   ═══════════════════════════════════════════ */
.perque { background: #fff; }
.perque-h {
  font-family: 'Antonio', 'Arial Narrow', Arial, sans-serif;
  font-size: 3.2rem; font-weight: 700; color: var(--blau);
  text-transform: uppercase; letter-spacing: .02em; margin-bottom: 1.5rem; line-height: 1.2;
}
.raons-list { display: flex; flex-direction: column; }
.rao { display: grid; grid-template-columns: 160px 1fr; gap: 1.5rem; padding: 1rem 0; border-bottom: 1px solid #e5e5e5; align-items: start; }
.rao:last-child { border-bottom: none; }
.perque-link { font-family: 'Montserrat', sans-serif; font-size: .9rem; font-weight: 700; color: var(--blau); text-decoration: underline; }
.perque-link:hover { color: var(--blau-fosc); }
.rao-titol { font-size: 1.4rem; font-weight: 700; color: var(--blau); text-transform: none; letter-spacing: 0; line-height: 1.2; font-family: 'Antonio', 'Arial Narrow', Arial, sans-serif; }
.rao p { font-size: .82rem; line-height: 1.7; color: var(--blau); font-family: 'Montserrat', sans-serif; font-weight: 400; }


/* ═══════════════════════════════════════════
   IMPLICA'T
   ═══════════════════════════════════════════ */
.implicat { background: #fff; color: var(--blau); }
.implicat-title { color: var(--blau); text-align: left; display: block; }
.implicat-intro {
  font-family: 'Montserrat', sans-serif;
  font-size: .95rem; line-height: 1.75; max-width: 760px;
  margin: .5rem 0 2.5rem; text-align: left; color: var(--blau); font-weight: 700;
}
.implicat-intro strong { color: var(--blau); font-weight: 900; }

.implicat-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }

.icard {
  background: #fff; color: var(--blau);
  border: 1.5px solid #d3d8f3;
  padding: 1.8rem 1.2rem 1.5rem; text-align: left;
  border-radius: 4px; display: flex; flex-direction: column; align-items: flex-start;
}
.icard-icon {
  font-size: 5.5rem; line-height: 1;
  color: var(--blau);
  margin: 0 auto 1.2rem;
  display: flex; align-items: center; justify-content: center;
  width: 110px; height: 110px;
}
.icard-icon svg { width: 110px; height: 110px; }
.icard-icon img { width: 110px; height: 110px; object-fit: contain; }
.icard-icon--euro,
.icard-icon--plus {
  font-size: 5.5rem; font-weight: 900; color: var(--blau);
  font-family: 'Anton', sans-serif;
  width: 110px; height: 110px;
  display: flex; align-items: center; justify-content: center;
}
.icard h4 {
  font-size: .85rem; font-weight: 700; color: var(--blau);
  text-transform: none; letter-spacing: 0; margin-bottom: .5rem;
  line-height: 1.35; font-family: 'Montserrat', sans-serif;
}
.icard h4 strong { color: var(--blau); font-weight: 900; }
.icard p { font-size: .78rem; color: #333; line-height: 1.55; font-family: 'Montserrat', sans-serif; }
.bizum { margin-top: .5rem; color: var(--blau); font-weight: 700; font-family: 'Montserrat', sans-serif; font-size: .85rem; }
.icard-link {
  display: block; margin-top: auto; padding-top: 1.2rem;
  font-size: .82rem; font-weight: 700; color: var(--blau);
  font-family: 'Montserrat', sans-serif;
}
.icard-link:hover { text-decoration: underline; }

.implicat-quote {
  text-align: center; margin-top: 2.5rem;
  font-size: 1rem; font-weight: 900; letter-spacing: .04em;
  text-transform: uppercase; color: var(--blau);
  border-top: 1px solid rgba(0,0,0,.15); padding-top: 1.5rem;
  font-family: 'Montserrat', sans-serif; line-height: 1.5;
}


/* ═══════════════════════════════════════════
   NOTÍCIES I ACCIONS
   ═══════════════════════════════════════════ */
.noticies { background: #fff; }
.col-sub-h {
  font-family: 'Antonio', 'Arial Narrow', Arial, sans-serif;
  font-size: 1.8rem; font-weight: 700; text-transform: uppercase;
  color: var(--blau); letter-spacing: .02em; margin-bottom: 1.2rem; font-style: italic;
}
/* ─── Cards de notícies ─── */
.noticies-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}
.noticia-card {
  border: 1.5px solid #dde;
  border-radius: 4px;
  overflow: hidden;
  background: #fff;
  display: flex;
  flex-direction: column;
}
.noticia-card-img {
  aspect-ratio: 1 / 1;
  background: #f4f5fb;
  border-bottom: 1.5px solid #dde;
  overflow: hidden;
}
.noticia-card-img img { width: 100%; height: 100%; object-fit: contain; display: block; }
.noticia-card-body { padding: 1rem; flex: 1; display: flex; flex-direction: column; gap: .5rem; }
.noticia-card-title {
  font-family: 'Antonio', 'Arial Narrow', Arial, sans-serif;
  font-weight: 700; color: var(--blau);
  font-size: 1rem; line-height: 1.3;
}
.noticia-card-excerpt { font-size: .8rem; color: #444; line-height: 1.55; flex: 1; }
.mostra-mes { display: block; width: fit-content; margin: 2rem auto 0; padding: .55rem 2.5rem; font-size: .85rem; letter-spacing: .1em; }


/* ═══════════════════════════════════════════
   ADHERITS AL MANIFEST
   ═══════════════════════════════════════════ */
.adherits { background: #fff; }
.adherits-title {
  font-family: 'Antonio', 'Arial Narrow', Arial, sans-serif;
  font-size: 1.9rem; font-weight: 700; color: var(--blau);
  text-transform: none; letter-spacing: .01em; line-height: 1.2;
  margin-bottom: 1.5rem;
}
.adherits-title #adherits-count { font-weight: 700; }
.adherits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-flow: row;
  gap: .35rem 1.5rem;
}
.adherits-item {
  font-family: 'Montserrat', sans-serif;
  font-size: .85rem; font-weight: 600; color: var(--blau);
  line-height: 1.4; padding: .1rem 0;
}
.poblesvius-banner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; flex-wrap: wrap;
  margin-top: 2.5rem; padding-top: 1.5rem;
  border-top: 1px solid #e5e5e5;
}
.poblesvius-text {
  font-family: 'Antonio', 'Arial Narrow', Arial, sans-serif;
  font-size: 1.5rem; font-weight: 700; color: var(--blau); line-height: 1.2;
  margin: 0;
}
.poblesvius-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0; border-radius: 4px; white-space: nowrap;
  transition: transform .15s, filter .15s;
  text-decoration: none;
}
.poblesvius-btn img {
  display: block;
  height: 48px;
  width: auto;
  max-width: 100%;
}
.poblesvius-btn:hover { transform: translateY(-1px); filter: brightness(1.03); }


/* ═══════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════ */
footer { background: var(--blau); color: rgba(255,255,255,.85); padding: 2.5rem 0 1rem; }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 2rem; padding-bottom: 1.5rem; }
.footer-brand { display: flex; align-items: center; gap: .8rem; }
.footer-logo { height: 120px; }
.footer-brand p { font-size: .78rem; line-height: 1.7; color: rgba(255,255,255,.7); }

.footer-contact {
  text-align: left;
  display: flex; flex-direction: column; align-items: flex-start;
}
.footer-contact-title { font-size: .9rem; font-weight: 700; color: #fff; margin-bottom: .8rem; }
.footer-contact-row {
  display: flex; align-items: center;
  gap: .5rem; margin-bottom: .5rem; font-size: .9rem; color: #fff;
  min-height: 28px;
  width: fit-content;
}
a.footer-contact-row:hover { text-decoration: underline; }
.footer-icon { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; font-size: .85rem; flex-shrink: 0; }
.footer-icon--mail { background: rgba(255,255,255,.15); }
.footer-icon--insta {
  background: rgba(255,255,255,.15);
  font-size: 1rem;
}
.footer-icon--pin { font-size: 1rem; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.2); padding-top: .8rem;
  display: flex; justify-content: space-between; flex-wrap: wrap;
  gap: .4rem; font-size: .7rem; color: rgba(255,255,255,.5);
}
.footer-bottom a { color: rgba(255,255,255,.5); margin-left: 1rem; }
.footer-bottom a:hover { color: var(--groc); }

/* ═══════════════════════════════════════════
   MODAL LEGAL
   ═══════════════════════════════════════════ */
.legal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 2000; display: flex; align-items: center; justify-content: center; padding: 1rem; }
.legal-box { background: #fff; border-radius: 6px; width: 100%; max-width: 640px; max-height: 85vh; overflow-y: auto; padding: 2.5rem 2rem; position: relative; }
.legal-close { position: absolute; top: .8rem; right: 1rem; background: none; border: none; font-size: 1.6rem; line-height: 1; cursor: pointer; color: #888; }
.legal-close:hover { color: #222; }
.legal-box h2 { font-family: 'Antonio', sans-serif; font-weight: 700; font-size: 1.4rem; color: var(--blau); margin-bottom: 1.2rem; text-transform: uppercase; }
.legal-box h3 { font-family: 'Antonio', sans-serif; font-weight: 700; font-size: 1rem; color: var(--blau); margin: 1.2rem 0 .4rem; text-transform: uppercase; }
.legal-box p { font-size: .88rem; line-height: 1.65; color: #333; margin-bottom: .6rem; }
.legal-box ul { padding-left: 1.2rem; margin-bottom: .6rem; }
.legal-box ul li { font-size: .88rem; line-height: 1.65; color: #333; margin-bottom: .4rem; }
.legal-box a { color: var(--blau); text-decoration: underline; }


/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */
@media (max-width: 900px) {
  .implicat-cards  { grid-template-columns: 1fr 1fr; }
  .noticies-cards  { grid-template-columns: 1fr; }
  .rao             { grid-template-columns: 120px 1fr; }
}
@media (max-width: 768px) {
  section { padding: 2.5rem 0; }
  .hero { padding-top: 0; min-height: 100vh; min-height: 100svh; }
  .hero-text { padding: 2rem 1.5rem; transform: translateY(-34px); }
  .hero-slide:nth-child(1) { background-position: 70% center; }
  #navbar {
    height: auto; padding: .6rem 1rem;
    flex-wrap: wrap; align-items: center;
    background: transparent;
    position: relative; z-index: 200;
  }
  #navbar.scrolled {
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
  }
  #navbar.scrolled .nav-desc { color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.5); }
  #navbar { align-items: center; justify-content: space-between; gap: .9rem; }
  .nav-left { display: flex; flex: 1 1 0; min-width: 0; align-items: center; }
  .nav-left > a { display: none; }
  .nav-desc {
    display: block; width: 100%; text-align: left;
    font-size: .66rem; font-weight: 700;
    color: #fff; line-height: 1.3;
    text-shadow: 0 1px 3px rgba(0,0,0,.5);
    white-space: normal; max-width: none;
  }
  .nav-desc br { display: none; }
  .nav-burger span { background: var(--blau); box-shadow: none; }
  .hero-brand {
    display: flex; flex-direction: column; align-items: center;
    text-align: center;
    position: relative; z-index: 1;
    padding: .5rem 1.5rem 0;
  }
  .hero-brand img { height: 150px; mix-blend-mode: normal; }
  .hero-brand-desc { display: none; }
  .nav-links {
    display: none; position: absolute;
    top: 100%; left: 0; right: 0;
    background: rgba(255,255,255,0.97);
    box-shadow: 0 8px 20px rgba(0,0,40,.15);
    backdrop-filter: blur(8px);
    flex-direction: column; gap: 0; padding: .3rem 0;
    z-index: 300;
  }
  .nav-links.open { display: flex; }
  .nav-links li a {
    display: block; padding: .8rem 1.5rem;
    border-bottom: 1px solid rgba(0,0,40,.08);
    color: var(--blau); font-size: 1rem;
  }
  .nav-links li a.nav-active { color: var(--verd-logo); }
  .nav-burger { display: flex; }
  .qui-som-grid, .projecte-grid, .projecte-images { grid-template-columns: 1fr; }
  .qui-som-grid img.img-manifest { height: auto; object-fit: contain; }
  .noticies-cards-grid { grid-template-columns: 1fr; }
  .adherits-grid { grid-template-columns: repeat(2, 1fr); gap: .3rem 1rem; }
  .adherits-title { font-size: 1.6rem; }
  .projecte-label { flex-direction: row; gap: .5rem; }
  .projecte-label span { font-size: 2.6rem; }
  .perque-h { font-size: 2.6rem; }
  #mapa { height: 220px; }
  .projecte-images img { height: 220px; }
  .footer-inner { flex-direction: column; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .footer-bottom a { margin-left: 0; margin-right: 1rem; }
  /* PER QUÈ: apilar títol sobre text */
  .rao { grid-template-columns: 1fr; gap: .3rem; padding: 1.2rem 0; }
  .section-h { font-size: 2.6rem; }
}
@media (max-width: 480px) {
  .implicat-cards { grid-template-columns: 1fr; }
  .section-h { font-size: 2.3rem; }
  .projecte-label span { font-size: 2.3rem; }
  .perque-h { font-size: 2.3rem; }
}

/* ═══════════════════════════════════════════
   MODAL ADMIN (triple-click logo)
   ═══════════════════════════════════════════ */
.admin-overlay {
  display: none;
  position: fixed; inset: 0; z-index: 9000;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(4px);
  align-items: center; justify-content: center;
}
.admin-overlay.open { display: flex; }

.admin-box {
  background: #fff;
  border-radius: 10px;
  padding: 2rem;
  width: 100%; max-width: 480px;
  margin: 1rem;
  box-shadow: 0 8px 40px rgba(0,0,0,.25);
  position: relative;
}

.admin-box h3 {
  font-family: 'Anton', sans-serif;
  color: var(--blau);
  font-size: 1.1rem;
  letter-spacing: .05em;
  margin-bottom: 1.2rem;
  padding-bottom: .5rem;
  border-bottom: 2px solid var(--groc);
}

.admin-close {
  position: absolute; top: .8rem; right: 1rem;
  background: none; border: none;
  font-size: 1.4rem; cursor: pointer;
  color: #888; line-height: 1;
}
.admin-close:hover { color: #111; }

.admin-field { margin-top: .9rem; }
.admin-field label {
  display: block;
  font-size: .73rem; font-weight: 700; color: #444;
  margin-bottom: .3rem;
}
.admin-field input,
.admin-field textarea {
  width: 100%;
  padding: .6rem .75rem;
  border: 1.5px solid #dde;
  border-radius: 5px;
  font-family: inherit; font-size: .82rem;
  color: #111;
  transition: border-color .2s;
  resize: vertical;
}
.admin-field input:focus,
.admin-field textarea:focus { outline: none; border-color: var(--blau); }
.admin-field textarea { min-height: 90px; }

.admin-hint { font-size: .7rem; color: #888; margin-top: .2rem; }

.admin-btn {
  margin-top: 1.2rem;
  display: inline-block;
  padding: .65rem 1.6rem;
  background: var(--blau); color: #fff;
  font-family: inherit; font-weight: 700;
  font-size: .82rem; border: none;
  border-radius: 5px; cursor: pointer;
  transition: background .2s;
}
.admin-btn:hover { background: var(--blau-fosc); }
.admin-btn:disabled { opacity: .5; cursor: default; }

.admin-err { color: #c00; font-size: .78rem; margin-top: .5rem; display: none; }
.admin-ok  { color: #1a8a1a; font-size: .78rem; margin-top: .5rem; display: none; }

.admin-box { overflow-y: auto; max-height: 88vh; }

.admin-tabs {
  display: flex; gap: .5rem; margin-bottom: 1.2rem;
}
.admin-tab {
  flex: 1; padding: .5rem; border: 2px solid #dde;
  background: none; border-radius: 5px;
  font-family: inherit; font-weight: 700; font-size: .78rem;
  color: #888; cursor: pointer; transition: all .15s;
}
.admin-tab.active {
  border-color: var(--blau); color: var(--blau); background: rgba(45,63,224,.06);
}

.admin-form-actions { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: 1.2rem; }

.admin-btn-secondary {
  background: none; border: 1.5px solid #aaa; color: #666;
  font-family: inherit; font-weight: 700; font-size: .78rem;
  padding: .6rem 1.2rem; border-radius: 5px; cursor: pointer;
  transition: border-color .15s, color .15s;
}
.admin-btn-secondary:hover { border-color: #333; color: #333; }
.admin-btn-remove-img {
  background: none; border: none; color: #c0392b; font-size: .78rem;
  cursor: pointer; padding: .2rem 0; text-decoration: underline;
}
.admin-btn-remove-img:hover { color: #922b21; }

.admin-sep { border: none; border-top: 1px solid #eee; margin: 1.4rem 0; }

.admin-img-drop {
  position: relative; border: 2px dashed #ccd; border-radius: 6px;
  min-height: 80px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: .5rem;
  padding: .8rem; cursor: pointer; transition: border-color .2s;
  overflow: hidden;
}
.admin-img-drop:hover { border-color: var(--blau); }
.admin-img-drop input[type="file"] {
  position: absolute; inset: 0; opacity: 0; cursor: pointer;
  width: 100%; height: 100%;
}
.admin-img-drop img { max-height: 130px; border-radius: 4px; object-fit: contain; }
.admin-img-drop span { font-size: .8rem; color: #888; text-align: center; }

.admin-list-item {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 1rem; padding: .65rem .75rem; border: 1px solid #eee;
  border-radius: 5px; margin-bottom: .45rem;
}
.admin-list-info h6 { font-size: .8rem; color: #111; margin-bottom: .1rem; }
.admin-list-info span { font-size: .7rem; color: #888; }
.admin-list-actions { display: flex; gap: .35rem; flex-shrink: 0; }

.admin-btn-sm {
  background: none; border: 1.5px solid; border-radius: 4px;
  font-size: .68rem; font-weight: 700; padding: .25rem .6rem;
  cursor: pointer; transition: background .15s, color .15s; white-space: nowrap;
}
.admin-btn-edit { border-color: var(--blau); color: var(--blau); }
.admin-btn-edit:hover { background: var(--blau); color: #fff; }
.admin-btn-del  { border-color: #c00; color: #c00; }
.admin-btn-del:hover  { background: #c00; color: #fff; }
